oficina / base Public

Jobs plan: Astra round 2 fixes (2 P1, 7 P2)

- A deploy switch for job actions, and Base strips controls for apps
  that can't draw them; the remaining gap degrades to typed answers.
- Decision cards on Base's side never carry Engineering's headline.
- Every ask's choices are its options (question, direction, replace,
  home); O1 answers the Coordinator's validated placement at once;
  CardHome is a namespace confirmation.
- Separate sweep rows per note kind; merge helper keeps its attempt;
  first looks drawn in every state; tests-first and run filters fixed.
- Follows honest-merge-refusals (ef909582): merge_no_access has no Try
  again, a deviation from K6 flagged for Paul.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Paul Campbell pushed by paul@keymail.dev 2ba6aee184ce0a038cbcb1cc69b2dc72458734a9 parent 361b883
1 file changed, +84 −61
  • docs/superpowers/plans/2026-11-25-jobs-that-keep-moving.md +84 −61

CI passed — run details

CI log
=== build ===
CGO_ENABLED=0 go build ./...
=== vet ===
go vet ./...
=== fmt-check ===
=== staticcheck ===
go run honnef.co/go/tools/cmd/staticcheck@v0.7.0 ./...
=== govulncheck ===
go run golang.org/x/vuln/cmd/govulncheck@v1.8.0 ./...
No vulnerabilities found.
=== gitleaks ===
7:41PM INF Unknown SCM platform. Use --platform to include links in findings. host=amadan.net
7:41PM INF 1 commits scanned.
7:41PM INF scanned ~2493167 bytes (2.49 MB) in 251ms
7:41PM INF no leaks found
=== budget ===
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget size
budget size: 22 directories within budget
=== script-test ===
scripts/prepare-apps_test.sh
ok   releases lookup failure stops before ship
ok   app owned elsewhere stops the script
ok   apps listing failure stops before create
ok   ambiguous release dir is refused
ok   explicit version resolves the ambiguity
ok   releases match is exact, not substring
ok   shipped version is only promoted, existing app not created
ok   fresh account creates, ships, promotes to edge, enables
ok   failing promote stops the script
ok   ship is retried while uploads are rate limited
all passed
hack/fonts_test.sh
fonts_test: ok
=== test ===
go run amadan.net/rastrillo/rastrillo/cmd/rastrillo budget test -count=1 ./...

receipt: test step 7.097s against a 60s target (the gate's other steps are not in this figure)
receipt: 16 packages ran, 0 cached, 6 without tests, 0 failed
receipt: slow package 6.227s amadan.net/oficina/base/internal/webtest
receipt: slow package 583ms amadan.net/oficina/base/internal/operations
receipt: slow package 463ms amadan.net/oficina/base/internal/issuer
receipt: slow package 197ms amadan.net/oficina/base/internal/consumer
receipt: slow package 167ms amadan.net/oficina/base/internal/web
receipt: slow test 1.52s amadan.net/oficina/base/internal/webtest TestHomeDoesNotWaitOnAStalledSnapshot
receipt: slow test 1.08s amadan.net/oficina/base/internal/webtest TestAskZoneIsToldOnce
receipt: slow test 510ms amadan.net/oficina/base/internal/operations TestOperationsRefusals
receipt: slow test 240ms amadan.net/oficina/base/internal/issuer TestAuthorizeRefusals
receipt: slow test 220ms amadan.net/oficina/base/internal/webtest TestAskZoneAgainOnANewConnection
=== native ===
strings: copy review's strings.json is not here (git-ignored); its comparison skipped
strings: 119 in the catalog, 116 used
worktree-lib_test: ok
diff --git a/docs/superpowers/plans/2026-11-25-jobs-that-keep-moving.md b/docs/superpowers/plans/2026-11-25-jobs-that-keep-moving.md
index cd48349..aa1c591 100644
--- a/docs/superpowers/plans/2026-11-25-jobs-that-keep-moving.md
+++ b/docs/superpowers/plans/2026-11-25-jobs-that-keep-moving.md
@@ -25,7 +25,7 @@
| (related) new job repositories start with `main` | **Done** | Equipo `c8c4b82d` (11-20): runner pushes an empty-commit `main` into a repository it created |
| (related) preview refusals reach the step (`preview_headers`) | **Done** | Equipo `8dc096b4` (11-21): runner reads carlos's stderr |
| (related) carry on after connecting Oficina | **Done** | Equipo `9f7e04a6` (11-19); Base `f42602f` |
-| (related) local merge refusals become final with a no-access reason | **In flight elsewhere** | Equipo branch `honest-merge-refusals` (no commits beyond main yet). Not planned here; Task 2.3 consumes its reason |
+| (related) local merge refusals become final with a no-access reason | **In flight elsewhere** | Equipo branch `honest-merge-refusals` at `ef909582` (not merged): `forge.ErrMergeNoAccess`, step reason `wire.ReasonMergeNoAccess = "merge_no_access"`, `causeNoAccess` in `jobStop` (also for `merge_forbidden`), detail `assistant.job.detail.no_access`, and "trying again cannot help". Not planned here; Tasks 1.6, 2.3 and 2.6 build on it (PD11) |
| (related) stopped-jobs audit | **Not landed** | report expected at `.superpowers/sdd/2026-11-13-assistant-jobs/stopped-jobs-audit-2026-11-25.md`; placeholder Task 0.2 |
| Addendum: decision cards carry context, link, recommendation, option detail (Equipo) | **Partly** | Equipo branch `decision-cards-context` `cf0614ec`, **not merged**; based on `c8c4b82d`, 154 commits behind; its protocol 29 and migration `0095` both collide with main (see PD1, PD2); its 34 strings are marked `COPY REVIEW PENDING`, which the release copy check does not catch. Landed by Task 1.1 |
| Addendum: Base renders the decision parts | Not started | Tasks 1.18 to 1.20 (job asks and outcome cards, web and native) |
@@ -44,17 +44,17 @@
## Plan decisions
-- **PD1 Protocol numbers.** Main has `ProtocolPinnedRelease = Protocol29 = ProtocolCurrent` (paused work). So: `ProtocolDecisions = Protocol30` (Task 1.1), `ProtocolJobsMoving = Protocol31` (phase 2: `ask_person` `open`/`about`/`default`, merge fault reasons), `ProtocolFirstLook = Protocol32` (phase 3: `record_task` `first_look`, review mode, Engineering's first-look note). The spec's single "protocol 29" is split so each phase's runner changes ship with their phase. Phases 2 and 3 may be built side by side (spec), but **phase 2 merges and deploys before phase 3**: phase 3's Coordinator rules mark later questions `about: taste`, which phase 2 adds, and `jobsMovingPhase` is cumulative. `TestSpokenIs31` and `TestSpokenIs32` pin the numbers.
+- **PD1 Protocol numbers.** Main has `ProtocolPinnedRelease = Protocol29 = ProtocolCurrent` (paused work). So: `ProtocolDecisions = Protocol30` (Task 1.1), `ProtocolJobsMoving = Protocol31` (phase 2: `ask_person` `open`/`about`/`default`, merge fault reasons), `ProtocolFirstLook = Protocol32` (phase 3: `record_task` `first_look`, review mode, Engineering's first-look note). The spec's single "protocol 29" is split so each phase's runner changes ship with their phase. Phases 2 and 3 may be built side by side (spec), but **phase 2 merges and deploys before phase 3**: phase 3's Coordinator rules mark later questions `about: taste`, which phase 2 adds, and `jobsMovingPhase` is cumulative. `TestProtocolJobsMovingIs31` and `TestProtocolFirstLookIs32` pin the numbers permanently; one current-version assertion in `internal/wire/assistant_test.go` moves with each bump.
- **PD2 Migration numbers.** Main's newest is `0106_release_connection.sql` (`0102` is unused; leave it). The spec's single `0095_jobs_moving.sql` is split per phase, each taking the next free number when its branch is rebased for merge: decision cards `0107_decision_cards.sql`, phase 1 `0108_jobs_act.sql`, phase 2 `0109_jobs_sweep.sql`, phase 3 `0110_first_look.sql`, phase 4 `0111_jobs_replace.sql`. `schema.sql` follows each; `make migration-check` passes.
- **PD3 Decision cards land first** (Task 1.1), rebased, renumbered (PD1, PD2) and with their strings marked `COPY REVIEW REQUIRED` (the marker `make copy-release-check` refuses), so the job ask can carry the same parts.
-- **PD4 Where the addendum's parts sit on a job card.** A job card with an `ask` uses the top-level `context`, `link` and `recommended` fields that decision cards add to `wire.AssistantCard`, and each `options[i].detail`; Base has one renderer for outcome and job cards. For a direction ask, `recommended.option` names an action (`build`, `again`, `drop`); otherwise an option value. Every part shown in Base is instance copy or the Assistant's words (K3), never the Coordinator's or Review's prose: a direction's context and why are instance copy keyed by Review's recommendation.
+- **PD4 Where the addendum's parts sit on a job card.** A job card with an `ask` uses the top-level `context`, `link` and `recommended` fields that decision cards add to `wire.AssistantCard`, and each `options[i].detail`; Base has one renderer for outcome and job cards. **Every ask's choices are its `options`**, whatever its kind: a question's are tokens `o1…`; a direction's are `build`, `again`, `drop`; a replace's are `replace`, `keep`; each with an instance label and detail. So `recommended.option` always names an option value, and `CleanAt` has one rule. A tap on a direction or replace option sends the option's value as the K2 `action` (Base maps `again` to the note field and `drop` to its confirm); a question's option is sent as `action=answer&choice=<value>`. `actions` keeps only the controls outside the ask (`retry`, `drop`, `dismiss`, `restore`), labelled by Base from the vocabulary; Base never shows an `actions[i].label`. Every part shown in Base is instance copy or the Assistant's words (K3), never the Coordinator's or Review's prose: a direction's context and why are instance copy keyed by Review's recommendation.
- **PD5 The act request** follows Carry on now: `idempotency_key` in the body (required, at most 128 bytes) and the `Idempotency-Key` header every Base mutation already sends; replay of a key answers the card as it is now. The 409 codes are `card_stale` and `decision_gone`.
- **PD6 Offline runners read paused.** K6's `NeedsRunnerOffline` and `NeedsMachineRemoved` rows: to a client that asked for `job_states=paused` (Base since `02e4f8d`), the job shows as `paused` with the approved offline words (`assistant.job.detail.paused_offline`); to any other, the K6 row. No new copy for an offline runner.
-- **PD7 Per-request stripping and per-person capability.** Equipo strips `ask`, job `options`, `actions`, `receipts`, `hidden`, `updated_at` and job-card decision parts from any snapshot or event read without the header (like `olderJobCard` for paused), and separately records the newest header value per person in `chat_assistant_hosts.capabilities` to switch the Assistant's notes and `team_reply` rules (spec's legacy mode). Every relayed call comes from Base's server, so Base decides per member: it sends the header only when **every** client the member uses can draw the controls. The web client is served by Base and always can. A native client says so with its own request header to Base, `Base-Client-Capabilities: job_actions` (from Task 1.20); Base records, per member and device, the newest value seen on `/ask/*` and withholds `job_actions` while any of the member's devices used in the last 30 days last called without it (Task 1.17). So an old app with a new Base and a new Equipo keeps today's prose questions (legacy mode) for that member, on every client.
+- **PD7 Per-request stripping and per-person capability.** Equipo strips `ask`, job `options`, `actions`, `receipts`, `hidden`, `updated_at` and job-card decision parts from any snapshot or event read without the header (like `olderJobCard` for paused), and separately records the newest header value per person in `chat_assistant_hosts.capabilities` to switch the Assistant's notes and `team_reply` rules (spec's legacy mode). Every relayed call comes from Base's server, so Base decides per member, behind a deploy switch: `BASE_JOB_ACTIONS` (Base config, default off) must be on for Base to send the header at all, and is turned on once the native build with job actions is in the hands of everyone who uses the app (no native build has shipped as of 2026-11-24, `docs/superpowers/specs/2026-11-24-paused-work-base.md`). With it on, Base sends the header only when **every** client the member uses can draw the controls. The web client is served by Base and always can. A native client says so with its own request header to Base, `Base-Client-Capabilities: job_actions` (from Task 1.20); Base records, per member and device, the newest value seen on `/ask/*` and withholds `job_actions` while any of the member's devices used in the last 30 days last called without it (Task 1.17). So an old app with a new Base and a new Equipo keeps today's prose questions (legacy mode) for that member, on every client. Base cannot list native sessions it has not seen since the upgrade (the native exchange's sessions are not in Base's store), so an old app unseen since the switch was turned on is the one gap; it degrades, not dead-ends: it shows the pill without controls, as today, and the person can answer by typing to the Assistant, which relays with `team_reply` (basis `conversation`) from the open-questions block. Base itself also strips the controls from any `/ask/*` answer to a native request without `Base-Client-Capabilities`.
- **PD8 Note names.** The spec's `noteUnanswered` becomes `noteTasteUnanswered` (the name is taken). Notes are gated by mode and by a compiled constant `jobsMovingPhase` (1 to 4), bumped by the task that completes each phase.
- **PD9 Copy goes through copy review before code.** Each phase starts with a copy task that runs the `copy-review` skill over that phase's pending strings (the register at the end). Code tasks write only approved wording; tests assert copy keys, not wording, except where a key's approved text is pinned. Equipo strings carry `// COPY REVIEW REQUIRED` until approved; Base strings get rows in `docs/copy-pending.md`; native strings go in `Localizable.xcstrings` with the same approved text.
- **PD10 Native parity.** Not in the spec (which predates the app). Each Base phase that changes what a pill offers gets a native task, as paused work did (`64742a1`). The native gate (`make native-check`) needs a Mac with Xcode; if the executor has none, the native task is handed to whoever has one and the phase's web half still ships.
-- **PD11 Merge faults and honest refusals.** Today `forge.MergeBranch` deliberately wraps a local refusal (no credential) as `ErrMergeUncertain` (`internal/runner/forge/merge.go` `uncertain`), so `merge_identity` cannot be told apart in `mergestep.go` alone. Making a local refusal final with its own identity is exactly what `honest-merge-refusals` does, so **that branch is a prerequisite of Task 2.3**: its final no-access reason *is* `merge_identity` (Task 2.3 maps it, adding no second code). Try again stays the person's single explicit Merge (one tap, one `MergeTask`), never automatic, so it is not the "endless try again" that branch removes. Flagged for Paul at handoff.
+- **PD11 Merge faults follow honest refusals (a deviation from K6, for Paul).** Today `forge.MergeBranch` deliberately wraps a local refusal (no credential) as `ErrMergeUncertain` (`internal/runner/forge/merge.go` `uncertain`). `honest-merge-refusals` (`ef909582`) makes it final as `merge_no_access` and stops the job on `causeNoAccess`, on the ground that trying again cannot help until access is set up. The spec's `merge_identity` is that reason; this plan uses the branch's names and adds no second code. **Deviation:** K6 offered Try again for `merge_identity`; this plan follows the branch instead: the `causeNoAccess` row is "Didn't go live", the branch's detail, Open in Equipo (the job view's title link) and Drop it, plus the operator alert (O8), so the owner fixes access and the go-ahead is given again on Equipo's page. It is an Open-in-Equipo row for T1. `merge_uncertain` (the hub may have merged) keeps the person's Try again. **That branch must merge before phase 1's Task 1.6** (it changes `jobView`/`jobState`, which Task 1.5 restructures); if it has not, Task 1.6 treats `merge_failed` with "merge outcome unknown" as today and the no-access row waits for it.
- **PD12 K8 step 4 is drawing.** "Stops nobody acts on fold into Waiting on you after 3 days" needs no sweep: Base folds by `state` and `updated_at` (sent from phase 1), so it ships with the fold rows in Task 4.4, not in phase 2. Nothing is dropped automatically (O4 as proposed).
- **PD13 "Open in Equipo" is never new visible text.** The K6 rows that say "Open in Equipo" use the job view's existing title link (approved, review 8). No new string names Equipo, a runner, a task, a branch, a merge or a repository.
@@ -89,9 +89,9 @@
| Step | What | Why this order |
|---|---|---|
| 1.a | Equipo instance with decision cards (protocol 30), then runners (`upgrade-thin.sh`) | `Encode` downgrades per peer, but the instance must know protocol 30 before a runner speaks it |
-| 1.b | Equipo instance, phase 1 (act endpoint, capability gate, notes); runner release with the mode-independent opening (Task 1.13) | Base's controls are drawn only from fields Equipo sends; an older Base ignores them (T13) |
-| 1.c | Base web and native build of phase 1, together | Base new + Equipo old is safe (header ignored, no `ask` to draw), but useless; deploy after 1.b. An older native app keeps its member in legacy mode (PD7), so the app may follow the web, never block it |
-| 2 | `honest-merge-refusals` merged; Equipo instance (protocol 31 known), then runners | No Base change in phase 2 beyond tests |
+| 1.b | `honest-merge-refusals` merged and deployed (PD11); Equipo instance, phase 1 (act endpoint, capability gate, notes); runner release with the mode-independent opening (Task 1.13) | Base's controls are drawn only from fields Equipo sends; an older Base ignores them (T13) |
+| 1.c | Base web of phase 1 with `BASE_JOB_ACTIONS` off; the native build; then `BASE_JOB_ACTIONS` on | Base new + Equipo old is safe (header ignored, no `ask` to draw), but useless; deploy after 1.b. With the switch off every member stays in legacy mode; turn it on once the app with job actions is what people use (PD7) |
+| 2 | Equipo instance (protocol 31 known), then runners | No Base change in phase 2 beyond tests |
| 3 | After phase 2: Equipo instance (protocol 32 known), then runners; T12 on staging | Base already draws `first_look` links from phase 1 |
| 4 | Equipo instance, then Base web and native | Base's fold rows read `updated_at`, sent since phase 1 |
@@ -131,10 +131,11 @@ The audit was not at `/home/paulca/amadan.net/carlos/base/.superpowers/sdd/2026-
- Produces: `wire.ProtocolDecisions = Protocol30` (`ProtocolCurrent`); `wire.AssistantCard.{Context string, Link *DecisionLink, Recommended *Recommendation}`; `wire.CardOption.Detail`; `wire.DecisionLink{URL, Label, State, Note}` with states `ready|starting|failed|off`; `(t *txn) assistantDecision(...)`; `(t *txn) taskDecisionLink(task string, always bool) (*wire.DecisionLink, error)`; `(t *txn) directionDecision(p progress) (context, recommended, why string, details []wire.OptionDetail)`.
- [ ] **Step 1:** Rebase; resolve against paused work (`jobView` now returns `carryOn`; `mirrorCard`'s `Select` list gains the decision columns beside `carry_on`).
-- [ ] **Step 2:** Renumber: protocol 30 below `ProtocolPinnedRelease`; `TestSpokenIs24` expects `Spoken(99) == 30` and `ProtocolCurrent == ProtocolDecisions`; migration file renamed and `schema.sql` regenerated.
+- [ ] **Step 2:** Renumber: protocol 30 after `ProtocolPinnedRelease` (29); `TestSpokenIs24` expects `Spoken(99) == 30` and `ProtocolCurrent == ProtocolDecisions`; migration file renamed and `schema.sql` regenerated.
- [ ] **Step 3:** Replace every `// COPY REVIEW PENDING` with the Task 1.0 approved text and no marker; any string not approved keeps `// COPY REVIEW REQUIRED`.
-- [ ] **Step 4:** Run `go test ./internal/wire ./internal/equipo/chat ./internal/runner/thin -run 'Decision|Direction|Spoken|Judge' -count=1`, then `make ci`. Expected: PASS.
-- [ ] **Step 5:** Commit `Decision cards on main: protocol 30, migration 0107, reviewed copy`.
+- [ ] **Step 4: One voice on mirrored cards (failing test first).** `assistantMirrorDecision` (`internal/equipo/chat/decision.go`) sets a go-ahead's context to Engineering's `Headline`, model words that can name a branch or a merge. Add `TestAssistantMirrorDecisionOneVoice`: with a headline "Merged the branch into the repository", the Assistant-lane go-ahead's context is the instance's `assistant.decision.merge_context` and contains none of the machinery words; Equipo's own conversation card still shows the headline. Run `go test ./internal/equipo/chat -run TestAssistantMirrorDecisionOneVoice -count=1` (FAIL), then use instance copy only in `assistantMirrorDecision`, run again (PASS). The same test covers a Publish mirror and a question mirror (a question's parts never reach the Assistant lane: questions are not mirrored, `mirrorKind`).
+- [ ] **Step 5:** Run `go test ./internal/wire ./internal/equipo/chat ./internal/runner/thin -run 'Decision|Direction|Spoken|Judge|Mirror' -count=1`, then `make ci`. Expected: PASS.
+- [ ] **Step 6:** Commit `Decision cards on main: protocol 30, migration 0107, reviewed copy`.
### Task 1.2 (Equipo): Job card wire contract
@@ -241,7 +242,7 @@ Ask by kind (phase 1): a question in the job lane → `AskQuestion`, text and la
- `TestJobAskDirectionCases`: deployed → status key `first_look_ready`, ask present, link rel `first_look`; queued → `making_first_look`, no ask; failed/declined → `ready_to_decide` with the can't-be-shown text; expired → `ready_to_decide` with the expired text.
- `TestJobAskNoCoordinatorWords`: the Coordinator's question text and option labels appear nowhere in the marshalled card.
- `TestJobAskWords`: words offered for an optionless worded question and for the fallback; not for a question with options and no `open_words`; never for placement.
- - `TestJobAskDirectionRecommendation`: a direction ask's `recommended.option` is one of `build`, `again`, `drop`, with instance why copy for each (Review may recommend `drop`).
+ - `TestJobAskDirectionOptions`: a direction ask's `options` are exactly `build`, `again`, `drop` with instance labels and details; `recommended.option` is one of them, with instance why copy for each (Review may recommend `drop`); `actions` holds none of them.
- [ ] **Step 2:** Run `go test ./internal/equipo/chat -run 'TestJobAsk' -count=1`. Expected: FAIL.
- [ ] **Step 3:** Implement.
- [ ] **Step 4:** Run, then `go test ./internal/equipo/chat -count=1`. Expected: PASS.
@@ -260,7 +261,7 @@ type stopRow struct { State, Key string; Actions []string; Retry retryPath; Open
func (t *txn) stopView(h handoffRecord, reason, cause string) (stopRow, error)
func mergeUncertainText(reason string) bool // step reason text says "merge outcome unknown"
```
-Rows: every K6 row of phase 1 (`stopFailed` with nudges used/left, `stopNoWork`, `causeGoingLive` merge failed / publish failed with and without an open Publish, every `blocksWork` kind, every `Needs*` need, dropped, stopping, `stopCancelled`). `NeedsRunnerOffline`/`NeedsMachineRemoved` per PD6. A merge failure whose step reason says "merge outcome unknown" (jobs 1, 5, 6, from older runners) is the `merge_uncertain` row (Try again → `retryMerge`). `CardHome` is an Open-in-Equipo row until Task 2.10. Copy keys `assistant.job.stop.<key>` and `assistant.job.stop.<key>.detail`.
+Rows: every K6 row of phase 1 (`stopFailed` with nudges used/left, `stopNoWork`, `causeGoingLive` merge failed / publish failed with and without an open Publish, every `blocksWork` kind, every `Needs*` need, dropped, stopping, `stopCancelled`). `NeedsRunnerOffline`/`NeedsMachineRemoved` per PD6. A merge failure whose step reason says "merge outcome unknown" (jobs 1, 5, 6, from older runners) is the `merge_uncertain` row (Try again → `retryMerge`). `causeNoAccess` (from `honest-merge-refusals`, PD11) is "Didn't go live" with that branch's `assistant.job.detail.no_access`, Open in Equipo and Drop it: no Try again. `CardHome` is an Open-in-Equipo row until Task 2.10. Copy keys `assistant.job.stop.<key>` and `assistant.job.stop.<key>.detail`.
- [ ] **Step 1: Failing test** `TestStopViewEveryCause`: table over every `jobStop` reason/cause and every kind `blocksWork` knows; asserts state, key, actions and retry path per K6; an unknown future `Needs*` falls back to `stopped` + Open in Equipo + Drop it.
- [ ] **Step 2:** Run `go test ./internal/equipo/chat -run TestStopViewEveryCause -count=1`. Expected: FAIL.
@@ -316,25 +317,25 @@ One transaction: ledger key `act:<card>:<key>` replay → card as now; project a
### Task 1.9 (Equipo): Try again, drop, dismiss, restore (K6, K9)
-**Files:** `internal/equipo/chat/job_act.go`, `internal/equipo/chat/handoff.go` (`teamCancel` body moved), `internal/equipo/chat/job_drop.go` (new), `internal/equipo/chat/lane.go` (snapshot excludes dismissed), `internal/equipo/chat/job_drop_test.go` (new).
+**Files:** `internal/equipo/chat/job_act.go`, `internal/equipo/chat/handoff.go` (`teamCancel` body moved), `internal/equipo/chat/merge.go` (`MergeTask` body moved), `internal/equipo/chat/job_drop.go` (new), `internal/equipo/chat/lane.go` (snapshot excludes dismissed), `internal/equipo/chat/job_drop_test.go` (new).
**Interfaces (Produces):**
```go
func (t *txn) dropJob(person string, h handoffRecord, dismiss bool) error // teamCancel's body; dismiss sets dismiss_pending
func (t *txn) jobSettled(h handoffRecord) (bool, error) // no followed task CancelRequested with unterminated steps, no merge under way, no job-lane Coordinator turn in flight
func (t *txn) settleDismiss(h handoffRecord) error // called where a termination, a merge end or a turn end is recorded; sets dismissed_at and sends the card with hidden:true
-func (t *txn) mergeTaskAs(person, id string) error // MergeTask's body (merge.go), moved: isOwner, creator, not final or cancelled, mergeOffered, personMerge
+func (t *txn) mergeTaskAs(person, id string) (attempt int64, err error) // MergeTask's body (merge.go), moved: isOwner, creator, not final or cancelled, mergeOffered, personMerge; attempt 1 on success
```
-`Store.MergeTask` becomes `s.tx(…, CurrentPerson; t.mergeTaskAs(person, id))`, unchanged in behaviour, so `ActOnJob` runs the merge inside its own transaction with the decision check, ledger and receipt (one rollback for all). `retry` by the card's `stopRow.Retry`: `retryFailedStep` → `retryFailed(h)` as the person; `retryResend` → the hand-off's words sent again as `teamNudge`'s send; `retryMerge` → `mergeTaskAs` for the followed task whose merge failed (`MergeBranch` on the runner records an already-merged candidate as merged). `drop` → `dropJob(…, false)`, receipt `dropped`. `dismiss` is offered in every job view and on finished pills: on a finished job (done, dropped, stopped with nothing running) it sets `dismissed_at` and hides at once; on unfinished work it is `dropJob(…, true)` (drop, then hide once settled). The "Drop this job too?" confirm is Base's, before it sends `dismiss` (O2 as proposed). `restore` clears `dismissed_at` and `dismiss_pending`, never undoes a drop. A dismissed card and the cards attached to it leave the snapshot; nothing is deleted.
+`Store.MergeTask` becomes `s.tx(…, CurrentPerson; attempt, err = t.mergeTaskAs(person, id))` and returns `(attempt, err)` as today, so `ActOnJob` runs the merge inside its own transaction with the decision check, ledger and receipt (one rollback for all). `retry` by the card's `stopRow.Retry`: `retryFailedStep` → `retryFailed(h)` as the person; `retryResend` → the hand-off's words sent again as `teamNudge`'s send; `retryMerge` → `mergeTaskAs` for the followed task whose merge failed (`MergeBranch` on the runner records an already-merged candidate as merged). `drop` → `dropJob(…, false)`, receipt `dropped`. `dismiss` is offered in every job view and on finished pills: on a finished job (done, dropped, stopped with nothing running) it sets `dismissed_at` and hides at once; on unfinished work it is `dropJob(…, true)` (drop, then hide once settled). The "Drop this job too?" confirm is Base's, before it sends `dismiss` (O2 as proposed). `restore` clears `dismissed_at` and `dismiss_pending`, never undoes a drop. A dismissed card and the cards attached to it leave the snapshot; nothing is deleted.
- [ ] **Step 1: Failing tests:**
- `TestJobActRetry` (T5): each K6 Try again runs its path; Try again after `merge_uncertain` where the candidate already reached the default branch records it merged and makes no merge call; a merge refused by `mergeTaskAs` (not offered any more) rolls back the receipt and ledger and answers `ErrDecisionGone` with the card; two racing Try again taps make one merge step.
- - `TestMergeTaskUnchanged`: the existing `MergeTask` tests pass unchanged after the move.
+ - `TestMergeTaskUnchanged`: `MergeTask` still answers attempt 1 on success and its errors (`ErrForbidden`, `ErrTaskEnded`, `ErrNotMergeable`) as before; the existing merge tests pass unchanged.
- `TestJobDropDismiss` (T6): drop cancels created tasks only; restore brings back visibility, never the work; a dismissed card is absent from the snapshot and sent once with `hidden: true`.
- `TestDropSettles` (T16): a drop-and-dismiss during a running Engineering step, during a merge, and with the runner disconnected keeps the card visible as Stopping until termination is proven; then hidden; restore after that restores visibility only; `dismiss_pending` survives a store reopen.
-- [ ] **Step 2:** Run `go test ./internal/equipo/chat -run 'TestJobActRetry|TestJobDropDismiss|TestDropSettles' -count=1`. Expected: FAIL.
-- [ ] **Step 3:** Implement; `teamCancel` calls `dropJob` after its tool-call checks.
-- [ ] **Step 4:** Run, then `go test ./internal/equipo/chat -run 'Cancel|Handoff' -count=1`. Expected: PASS.
+- [ ] **Step 2:** Run `go test ./internal/equipo/chat -run 'TestJobActRetry|TestJobDropDismiss|TestDropSettles|TestMergeTaskUnchanged' -count=1`. Expected: FAIL.
+- [ ] **Step 3:** Implement; `teamCancel` calls `dropJob` after its tool-call checks; `MergeTask` calls `mergeTaskAs`.
+- [ ] **Step 4:** Run the same, then `go test ./internal/equipo/chat ./internal/thintest -run 'Cancel|Handoff|Merge' -count=1`. Expected: PASS.
- [ ] **Step 5:** Commit `Try again, drop and dismiss a job; hide only once it has stopped`.
**Pending copy:** "Stopping" / "Stopping what's already under way."; "Dropped" / "You dropped this."; receipt "Tried again."
@@ -368,20 +369,23 @@ func (t *txn) mergeTaskAs(person, id string) error // MergeTask's body (mer
**Interfaces (Produces):** `const jobsMovingPhase = 1`; `(t *txn) jobNoteFor(h handoffRecord, capable bool) (string, error)` (legacy: today's text word for word); new notes `noteWordIt`, `noteDirection` (phase 1: without the build clause), `notePersonActed`; `noteAnswerIt` phase 1 (no default clause; names `decision`); `noteBlocked` for an Open-in-Equipo row ends "they can see what's needed on the job"; `(t *txn) personActedNote(person string, since time.Time) (string, error)` → the K5 block after the open-questions block, each `person_<action>` once. One scheduling path for every instance-started note turn, used by `noteWordIt` here and `noteTasteUnanswered` in Task 2.8:
```go
type noteTurn string // noteTurnWordIt | noteTurnTaste
-// scheduleNoteTurn claims chat_job_sweeps (subject "question", the question card id, attempt = decision revision)
-// with a 5-minute lease, and queues one team_update for h with the note, only for a capable person,
-// once per question and kind, outside the person's quiet hours (their zone), and while the person's
+// scheduleNoteTurn claims chat_job_sweeps with subject_kind "wordit" or "taste" (one row per kind),
+// subject_id the question card id, attempt the decision's revision, with a 5-minute lease; a row whose
+// tries is 1 is used. It queues one team_update for h with the note (tries = 1, audit assistant.job.sweep),
+// only for a capable person, outside the person's quiet hours (their zone), and while the person's
// assistant.job.sweep audits in the last 24 h number fewer than 6 (both kinds count). ok false: not queued.
func (t *txn) scheduleNoteTurn(h handoffRecord, q cardRecord, kind noteTurn) (ok bool, err error)
```
+`tellAssistant` returns early under housekeeping today ("Housekeeping never starts a turn"); it gains the spec's one exception here, in phase 1: a turn queued by `scheduleNoteTurn` (and nothing else) may start under housekeeping, since Task 1.14's sweep recovery calls it.
On `updateEnded`: when the job's open question has no Assistant answer and no `team_ask` for its decision, `scheduleNoteTurn(…, noteTurnWordIt)`. The card shows the K3 fallback ask (`Words: true`, no options, text key `assistant.job.ask.fallback`) when that turn has ended without either, **or** when `scheduleNoteTurn` declined (cap, quiet hours, already used), so a question is never held back for a turn that won't come. Task 1.14's sweep calls the same check for any asking question with no ask, so a restart between the two turns recovers.
- [ ] **Step 1: Failing tests:**
- `TestNotesByModeAndPhase` (T15): legacy notes equal today's strings; capable phase 1 notes name only `team_reply`, `team_ask`, `team_nudge` with `decision`; no note mentions `team_add`, `basis`, `replaces`.
- `TestPersonActedBlock` (K5): two actions since the last turn → two lines, once each; the next turn carries none.
- `TestWordItThenFallback`: first quiet turn → one `noteWordIt` turn; second → fallback ask with `Words` and no options; a `team_ask` in between prevents the fallback.
- - `TestWordItCappedOrQuietFallsBack`: with six sweep audits in the last 24 h, or inside quiet hours, no turn is queued and the fallback shows at once; two overlapping calls queue one turn; after a store reopen between the turns, the sweep finishes the job (fallback shown).
-- [ ] **Step 2:** Run `go test ./internal/equipo/chat -run 'TestNotesByModeAndPhase|TestPersonActedBlock|TestWordIt' -count=1`. Expected: FAIL.
+ - `TestWordItCappedOrQuietFallsBack`: with six sweep audits in the last 24 h, or inside quiet hours, no turn is queued and the fallback shows at once; two overlapping calls queue one turn; after a store reopen between the turns, the sweep (under housekeeping) finishes the job (fallback shown); a housekeeping call for anything but a scheduled note still starts no turn.
+ - `TestNoteKindsSeparate`: a used word-it row on a question does not stop a later taste row on the same question (Task 2.8 relies on it).
+- [ ] **Step 2:** Run `go test ./internal/equipo/chat -run 'TestNotesByModeAndPhase|TestPersonActedBlock|TestWordIt|TestNoteKinds' -count=1`. Expected: FAIL.
- [ ] **Step 3:** Implement (model-facing notes are not copy; the spec's wording is used).
- [ ] **Step 4:** Run, then `go test ./internal/thintest -run Assistant -count=1`. Expected: PASS.
- [ ] **Step 5:** Commit `Notes by mode and phase; the Assistant hears what the person did`.
@@ -393,7 +397,7 @@ On `updateEnded`: when the job's open question has no Assistant answer and no `t
**Files:** `internal/equipo/chat/dead_ends_test.go` (new); fixes wherever it fails.
- [ ] **Step 1: Test** `TestJobNeverDeadEnds`: for every `jobStop` reason and cause and every `blocksWork` kind, build the state, project the card; if `asking` or `stopped`, either `Retrying`, or an Open-in-Equipo row, or for **each** offered action call `ActOnJob` and assert success.
-- [ ] **Step 2:** Run `go test ./internal/equipo/chat -run TestJobNeverDeadEnds -count=1`. Fix any row that fails in its owning file.
+- [ ] **Step 2:** Run `go test ./internal/equipo/chat -run TestJobNeverDeadEnds -count=1`. Expected: PASS if Tasks 1.5 to 1.11 are complete; any FAIL names a row, fixed in its owning file (with a test there) until it passes.
- [ ] **Step 3:** Commit `No job card is a dead end`.
### Task 1.13 (Equipo, runner): The opening's mode-independent rules (K16)
@@ -438,9 +442,9 @@ func (c *Client) Act(ctx context.Context, token, id string, in Act) (Card, error
type Act struct { Action, Decision, Choice, Words, Note string; Revision int64; Key string }
func (c Card) FirstLook() (Link, bool)
```
-The client takes the capability per call (`WithCapabilities(ctx, bool) context.Context`; Task 1.17 decides it per member), and both `call` and `Events` (which builds its own request) set `Base-Capabilities: job_actions` when it is on. `CleanAt` keeps job options, `ask`, actions, receipts, decision parts and `first_look` links within the Global Constraints' bounds; drops unknown kinds, actions and non-http(s) links. `Recommended` is kept only when it names one of the card's **effective choices**: for a direction ask, `build`, `again` or `drop` (the ask kind's own actions, which are never listed in `actions`); for any other ask or an outcome card, a kept option value.
+The client takes the capability per call (`WithCapabilities(ctx, bool) context.Context`; Task 1.17 decides it per member), and both `call` and `Events` (which builds its own request) set `Base-Capabilities: job_actions` when it is on. `CleanAt` keeps job options, `ask`, actions, receipts, decision parts and `first_look` links within the Global Constraints' bounds; drops unknown kinds, actions and non-http(s) links. `Recommended` is kept only when it names a kept option value (PD4: every ask's choices are its options). A direction ask's options must be a subset of `build`, `again`, `drop` and a replace ask's of `replace`, `keep`, else the ask is dropped. `Go()` returns the first link with no rel **or** rel `first_look` (spec Base section); `FirstLook()` returns only the latter. `func (c Card) WithoutJobActions() Card` drops a job card's `ask`, options, actions and receipts (for Task 1.17's native stripping).
-- [ ] **Step 1: Failing tests** `TestCleanJobAsk`, `TestCleanJobBounds` (each bound at limit and limit+1), `TestCleanDropsUnknownActions`, `TestCleanFirstLookLink` (javascript: dropped), `TestCleanDirectionRecommendation` (a direction ask recommending `build` keeps it with `actions` empty; recommending `o9` drops it), `TestCleanOutcomeDecisionParts` (a go-ahead and a Publish card keep context, link, recommended, details), `TestCapabilityHeaderOnEveryCall` (snapshot, **events**, messages, answer, carry_on, act, time-zone, each with the capability on and off; `RegisterHost` body unchanged), `TestActConflictReturnsCard`.
+- [ ] **Step 1: Failing tests** `TestCleanJobAsk`, `TestCleanJobBounds` (each bound at limit and limit+1), `TestCleanDropsUnknownActions`, `TestCleanFirstLookLink` (javascript: dropped), `TestCleanDirectionAsk` (options `build`/`again`/`drop` with details and a `build` recommendation round-trip; an option `o1` on a direction ask drops the ask; recommending a value not offered drops the recommendation), `TestCleanReplaceAsk` (same for `replace`/`keep`), `TestGoFirstLook` (`Go()` returns a `first_look` link on a working card), `TestCleanOutcomeDecisionParts` (a go-ahead and a Publish card keep context, link, recommended, details), `TestCapabilityHeaderOnEveryCall` (snapshot, **events**, messages, answer, carry_on, act, time-zone, each with the capability on and off; `RegisterHost` body unchanged), `TestActConflictReturnsCard`.
- [ ] **Step 2:** Run `go test ./internal/equipo -count=1`. Expected: FAIL.
- [ ] **Step 3:** Implement.
- [ ] **Step 4:** Run. Expected: PASS.
@@ -452,19 +456,21 @@ The client takes the capability per call (`WithCapabilities(ctx, bool) context.C
**Interfaces (Produces):** `(f *Fake) AskJobQuestion(job, decision, text string, options []equipo.Option, words bool)`; `(f *Fake) AskJobDirection(job, decision string, firstLook equipo.Link)`; `(f *Fake) StopJob(job, result, detail string, actions ...string)`; `(f *Fake) FinishJob(job string, at time.Time)`; `(f *Fake) ActCalls() []Call`; `(f *Fake) RefuseAct(status int, code string)`; act replays by card and key as Equipo does; the fake records the `Base-Capabilities` header of each call and strips job asks without it.
-- [ ] **Step 1:** Implement with a self-test `TestFakeActReplaysByKey` in `internal/webtest`.
-- [ ] **Step 2:** Run `go test ./internal/webtest -run TestFakeActReplaysByKey -count=1`. Expected: PASS.
-- [ ] **Step 3:** Commit `Fake Equipo: job asks, stops and the act route`.
+- [ ] **Step 1: Failing tests** (`internal/webtest/fake_act_test.go`): `TestFakeActReplaysByKey` (same key → same card, one call recorded), `TestFakeStripsWithoutCapability` (no header → no ask, options or actions on job cards), `TestFakeRefuseAct` (the configured status and code come back with the card).
+- [ ] **Step 2:** Run `go test ./internal/webtest -run 'TestFake' -count=1`. Expected: FAIL (undefined).
+- [ ] **Step 3:** Implement the fake.
+- [ ] **Step 4:** Run the same. Expected: PASS.
+- [ ] **Step 5:** Commit `Fake Equipo: job asks, stops and the act route`.
### Task 1.17 (Base): `POST /ask/jobs/{id}/act` relay
-**Files:** `internal/web/ask.go` (route), `internal/web/ask_relay.go` (`askAct`), `internal/web/ask_caps.go` (new), `internal/store/migrations/0013_ask_clients.sql` (new), `internal/store/askclients.go` (new), `internal/webtest/ask_test.go`, `docs/api/base-native-v1.md`.
+**Files:** `internal/web/ask.go` (route), `internal/web/ask_relay.go` (`askAct`), `internal/web/ask_caps.go` (new), `internal/config/config.go` (`BASE_JOB_ACTIONS`, bool, default false), `.env.local.example`, `internal/store/migrations/0013_ask_clients.sql` (new), `internal/store/askclients.go` (new), `internal/webtest/ask_test.go`, `docs/api/base-native-v1.md`.
**Interfaces (Produces):**
-- Capability per member (PD7): `CREATE TABLE ask_clients (member_id integer NOT NULL, client text NOT NULL, caps text NOT NULL DEFAULT '', seen_at datetime NOT NULL, PRIMARY KEY (member_id, client))`, where `client` is the native session Base resolved from the app's bearer (web cookie sessions are not recorded). `func (s *Store) SeeAskClient(ctx, member int64, client, caps string) error` on every native `/ask/*` call (`Base-Client-Capabilities` header); `func (a *app) askCapable(ctx context.Context, member int64) bool`: true unless a row seen in the last 30 days has `caps` without `job_actions`. Every relayed Equipo call takes `equipo.WithCapabilities(ctx, a.askCapable(…))`.
+- Capability per member (PD7): `CREATE TABLE ask_clients (member_id integer NOT NULL, client text NOT NULL, caps text NOT NULL DEFAULT '', seen_at datetime NOT NULL, PRIMARY KEY (member_id, client))`, where `client` is the native session Base resolved from the app's bearer (web cookie sessions are not recorded). `func (s *Store) SeeAskClient(ctx, member int64, client, caps string) error` on every native `/ask/*` call (`Base-Client-Capabilities` header); `func (a *app) askCapable(ctx context.Context, member int64) bool`: false while `BASE_JOB_ACTIONS` is off; otherwise true unless a row seen in the last 30 days has `caps` without `job_actions`. Base's `/ask/state` and `/ask/events` answers to a native request without `Base-Client-Capabilities` drop job asks, job options, actions and receipts (`equipo.Card.WithoutJobActions()`). Every relayed Equipo call takes `equipo.WithCapabilities(ctx, a.askCapable(…))`.
- `func (a *app) askAct(w http.ResponseWriter, r *http.Request)`: form fields `action`, `decision`, `choice`, `words`, `note`, `revision`, `key`; JSON `{card}` to scripts (`wantsJSON`), 303 `/ask` without; Equipo's 409 → JSON 409 `{card}` (redraw) or 303; a 404 or `{card: null}` → reload; a retryable failure → JSON 502 `{error: "retry"}` for the script's message; the card through `CleanAt`. Contract section added to `base-native-v1.md`.
-- [ ] **Step 1: Failing tests:** `TestAskJobActRelaysEachAction` (bearer, key, decision, every action), `TestAskJobActConflictPassesCard`, `TestAskJobActStaleScriptsOff` (Review Focus 4: 303 to `/ask`, no error page, pill shows the new state), `TestAskCapabilityHeaderForOldMember` (a member whose host was registered before this release), `TestAskCapabilityWithheldForOldNative` (old native + new Base + new Equipo fake: after the app calls `/ask/state` without the client header, the member's snapshot, events and sends go without `Base-Capabilities`, and the fake keeps asking in prose; after a new app's call with it, and no old one within 30 days, the header returns), `TestAskCapabilityWebOnly` (a member with no native rows is capable).
+- [ ] **Step 1: Failing tests:** `TestAskJobActRelaysEachAction` (bearer, key, decision, every action), `TestAskJobActConflictPassesCard`, `TestAskJobActStaleScriptsOff` (Review Focus 4: 303 to `/ask`, no error page, pill shows the new state), `TestAskCapabilityHeaderForOldMember` (a member whose host was registered before this release), `TestAskCapabilityWithheldForOldNative` (old native + new Base + new Equipo fake: after the app calls `/ask/state` without the client header, the member's snapshot, events and sends go without `Base-Capabilities`, and the fake keeps asking in prose; after a new app's call with it, and no old one within 30 days, the header returns), `TestAskCapabilityWebOnly` (a member with no native rows is capable with the switch on, not with it off), `TestAskOldNativeGetsNoControls` (a native `/ask/state` without the client header has no ask, options, actions or receipts on job cards, while the web's does).
- [ ] **Step 2:** Run `go test ./internal/webtest ./internal/store -run 'TestAskJobAct|TestAskCapability|AskClient' -count=1`. Expected: FAIL.
- [ ] **Step 3:** Implement.
- [ ] **Step 4:** Run. Expected: PASS.
@@ -474,15 +480,15 @@ The client takes the capability per call (`WithCapabilities(ctx, bool) context.C
**Files:** `internal/web/templates/partials/chat.html` (`ask-job`, `ask-jobview`, new `ask-jobask`, `ask-receipts`), `internal/web/ask.go` (view helpers), `internal/look/static/app.css`, `internal/webtest/ask_test.go`.
-What it draws (no scripts needed): while `asking`, the ask strip under the pill title: context line, the link to the thing (or its note when not ready) **before** the options, one form button per option (detail under it when set), the recommended option marked with "Recommended" and its why, and "Something else" as a nested `<details>` with a one-line field "Tell me what you'd like" and "Send" when `ask.words`; a direction's Build it / Try again (a `<details>` whose field is labelled with the instance's `ask.note`, required, maxlength 1000) / Drop it (a `<details>` confirm). **Outcome cards too** (addendum): the existing `ask-card` (go-ahead, Publish) draws the same context, link-before-options, recommended mark and option details, through one shared partial `ask-decision` used by both. While `stopped`, the detail line and its actions (Try again, Drop it, Dismiss). The job view: the same, plus receipts, Dismiss on finished jobs, and for unfinished work Drop it's confirm "Drop this job too?" with "Drop it" / "Keep it" when reached from Dismiss. Look: option buttons are the ghost buttons; Try again and Build it the solid frost primary; Drop it and Dismiss quiet text buttons; the first-look link accent teal; reduced motion respected.
+What it draws (no scripts needed): while `asking`, the ask strip under the pill title: context line, the link to the thing (or its note when not ready) **before** the options, one form button per option (detail under it when set), the recommended option marked with "Recommended" and its why, and "Something else" as a nested `<details>` with a one-line field "Tell me what you'd like" and "Send" when `ask.words`; a direction's or a replace's options drawn the same way, with their instance labels and details: `again` is a `<details>` whose field is labelled with the instance's `ask.note` (required, maxlength 1000) and `drop` a `<details>` confirm. The first-look link (`Go()`) is drawn on the pill and in the job view in **every** state that carries one, not only ready and done (today's `ask-job` and `ask-jobview` limit links to those two). **Outcome cards too** (addendum): the existing `ask-card` (go-ahead, Publish) draws the same context, link-before-options, recommended mark and option details, through one shared partial `ask-decision` used by both. While `stopped`, the detail line and its actions (Try again, Drop it, Dismiss). The job view: the same, plus receipts, Dismiss on finished jobs, and for unfinished work Drop it's confirm "Drop this job too?" with "Drop it" / "Keep it" when reached from Dismiss. Look: option buttons are the ghost buttons; Try again and Build it the solid frost primary; Drop it and Dismiss quiet text buttons; the first-look link accent teal; reduced motion respected.
-- [ ] **Step 1: Failing tests (webtest):** `TestAskJobAskDrawn` (option forms carry `decision`, `choice`, `revision`, `key`; link before options; recommended marked), `TestAskJobDirectionDrawn` (note label from `ask.note`), `TestAskJobStopDrawn`, `TestAskJobReceiptsDrawn`, `TestAskJobNoActionsWithoutAsk` (an older Equipo: nothing new drawn), `TestAskOutcomeDecisionDrawn` (a go-ahead and a Publish card show context, link before options, recommended and details; one with none of them draws as today).
+- [ ] **Step 1: Failing tests (webtest):** `TestAskJobAskDrawn` (option forms carry `decision`, `choice`, `revision`, `key`; link before options; recommended marked), `TestAskJobDirectionDrawn` (options' instance labels and details; note label from `ask.note`), `TestAskJobFirstLookScriptsOff` (a working pill and its job view show the first-look link with scripts off), `TestAskJobStopDrawn`, `TestAskJobReceiptsDrawn`, `TestAskJobNoActionsWithoutAsk` (an older Equipo: nothing new drawn), `TestAskOutcomeDecisionDrawn` (a go-ahead and a Publish card show context, link before options, recommended and details; one with none of them draws as today).
- [ ] **Step 2:** Run `go test ./internal/webtest -run 'TestAsk(Job(Ask|Direction|Stop|Receipts|NoActions)|OutcomeDecision)' -count=1`. Expected: FAIL.
- [ ] **Step 3:** Implement with approved copy (Task 1.0); add rows to `docs/copy-pending.md`.
- [ ] **Step 4:** Run. Expected: PASS.
- [ ] **Step 5:** Commit `Pill and job view carry the decision, drawn by the server`.
-**Pending copy (Base):** "Something else", "Tell me what you'd like", "Send", "Build it", "Try again", "Drop it", "Drop this job?", "Drop this job too?", "Keep it", "Dismiss", "Recommended".
+**Pending copy (Base):** "Something else", "Tell me what you'd like", "Send", "Try again" and "Drop it" (the stop actions), "Drop this job?", "Drop this job too?", "Keep it", "Dismiss", "Recommended". (A direction's "Build it", "Try again", "Drop it" are instance option labels, Task 1.5.)
### Task 1.19 (Base): `ask.js` draws and acts, browser tests first
@@ -528,9 +534,9 @@ Behaviour: `addJob` draws Task 1.18's markup from the card; a tap posts `/ask/jo
**Files:** `internal/wire/runners.go`, `internal/wire/jobs_moving.go` (new: `downgradeJobsMoving`), `internal/wire/tasks.go` (reasons), `internal/wire/runners_test.go`.
-**Interfaces (Produces):** `ProtocolJobsMoving = Protocol31`; `ask_person` input gains `Open bool`, `About string` (`AboutTaste`|`AboutDecision`), `Default string` (one of the options); step reasons `ReasonMergeIdentity = "merge_identity"`, `ReasonMergeUncertain = "merge_uncertain"`; below 31, `Encode` drops `open`, `about`, `default` and says both reasons as `merge_failed`.
+**Interfaces (Produces):** `ProtocolJobsMoving = Protocol31`; `ask_person` input gains `Open bool`, `About string` (`AboutTaste`|`AboutDecision`), `Default string` (one of the options); step reason `ReasonMergeUncertain = "merge_uncertain"` (the no-access reason is `honest-merge-refusals`' `ReasonMergeNoAccess`, not redefined); below 31, `Encode` drops `open`, `about`, `default` and says `merge_uncertain` as `merge_failed`.
-- [ ] **Step 1: Failing tests:** `TestDowngradeJobsMoving`; `TestSpokenIs31`.
+- [ ] **Step 1: Failing tests:** `TestDowngradeJobsMoving`; `TestProtocolJobsMovingIs31` (permanent: `ProtocolJobsMoving == Protocol31`); the single current-version test (today `TestSpokenIs24`'s successor) now asserts `Spoken(99) == 31` and `ProtocolCurrent == ProtocolJobsMoving` (Task 3.1 moves this one assertion to 32).
- [ ] **Step 2:** Run `go test ./internal/wire -run 'JobsMoving|Spoken' -count=1`. Expected: FAIL.
- [ ] **Step 3:** Implement.
- [ ] **Step 4:** Run. Expected: PASS.
@@ -541,24 +547,24 @@ Behaviour: `addJob` draws Task 1.18's markup from the card; a tap posts `/ask/jo
**Files:** `internal/runner/thin/mcp.go` (`ask_person` schema), `internal/runner/thin/claude.go` (job-lane guidance: mark taste questions, offer a default), `internal/equipo/chat/tools.go` (store `about`, `default_option`, `open_words` on the question card), `internal/equipo/migrations/0109_jobs_sweep.sql` (adds `chat_cards.about`, `chat_cards.default_option`, `chat_handoffs.source_message` for Task 2.11).
- [ ] **Step 1: Failing tests:** `TestAskPersonAboutDefault` (instance: a `default` not among the options is refused; missing `about` is `decision`); `TestOpenWordsOnThePill` (an `open: true` question with options projects `ask.words` true and `ActOnJob` accepts words for it; placement never); runner `TestAskPersonSchemaJobsMoving`.
-- [ ] **Step 2:** Run `go test ./internal/equipo/chat ./internal/runner/thin -run 'AskPerson' -count=1`. Expected: FAIL.
+- [ ] **Step 2:** Run `go test ./internal/equipo/chat ./internal/runner/thin -run 'AskPerson|TestOpenWordsOnThePill' -count=1`. Expected: FAIL.
- [ ] **Step 3:** Implement.
- [ ] **Step 4:** Run. Expected: PASS.
- [ ] **Step 5:** Commit `ask_person says taste or decision, a default, and open words`.
### Task 2.3 (Equipo, runner): Merge faults reported as such (PD11)
-**Prerequisite:** `honest-merge-refusals` merged (PD11). It makes `forge.MergeBranch` return a local refusal (no credential) as a final error of its own instead of `ErrMergeUncertain`. Rebase onto it first and read its error and reason names; the names below stand in for them.
+**Prerequisite:** `honest-merge-refusals` (`ef909582` or its successor) merged (PD11). It already reports a local refusal as `merge_no_access` and stops the job on `causeNoAccess`; this task adds only the uncertain case.
**Files:** `internal/runner/thin/mergestep.go`, `internal/runner/thin/mergestep_test.go`, `internal/equipo/chat/job_stop.go`, `internal/equipo/chat/job_stop_test.go`.
-The final local refusal from `MergeBranch` → `ReasonMergeIdentity` (if that branch already reports its own reason code, map that code to the `merge_identity` row and add no second one); `ErrMergeUncertain` after the runner's retries → `ReasonMergeUncertain`. `stopView` adds `stopFault` rows: `merge_identity` and `merge_uncertain` → "Didn't go live", Try again (`retryMerge`), Drop it.
+`ErrMergeUncertain` after the runner's retries → `ReasonMergeUncertain` (today plain `merge_failed`). `stopView` adds the `stopFault` row `merge_uncertain` → "Didn't go live", Try again (`retryMerge`), Drop it; the Task 1.6 text-read for older rows stays for steps recorded before this release.
-- [ ] **Step 1: Failing tests:** runner `TestMergeStepFaultReasons`, driven **through `forge.MergeBranch`** with a fake forge that has no credential for the repository (→ `merge_identity`) and one that times out every try (→ `merge_uncertain`); instance `TestStopViewMergeFaults`.
+- [ ] **Step 1: Failing tests:** runner `TestMergeStepFaultReasons`, driven **through `forge.MergeBranch`**: a fake hub that times out every try → `merge_uncertain`; a fake forge with no credential for the repository → `merge_no_access` (unchanged from the branch, guarded here); instance `TestStopViewMergeFaults` (`merge_uncertain` offers Try again; `causeNoAccess` does not, and is an Open-in-Equipo row).
- [ ] **Step 2:** Run `go test ./internal/runner/thin ./internal/runner/forge ./internal/equipo/chat -run 'MergeStepFault|StopViewMergeFaults|MergeDetail' -count=1`. Expected: FAIL on the new tests.
- [ ] **Step 3:** Implement.
- [ ] **Step 4:** Run. Expected: PASS.
-- [ ] **Step 5:** Commit `Merge faults say whose they are; the person's Try again stays safe`.
+- [ ] **Step 5:** Commit `A merge with an unknown outcome says so; Try again stays safe`.
### Task 2.4 (Equipo): Taste gets a default; explore to build (K7)
@@ -588,9 +594,9 @@ The final local refusal from `MergeBranch` → `ReasonMergeIdentity` (if that br
**Files:** `internal/equipo/chat/job_stop.go`, `internal/equipo/chat/operator_alert.go` (new), `internal/equipo/chat/housekeeping_control.go` (owner digest line), tests in `job_stop_test.go`.
-Rows: `preview_scanner` with retries left → `working` "Retrying shortly"; retries used → `stopped`, Try again (`retryPreview`), Drop it. `merge_identity` and `preview_scanner` raise an operator alert: one operator log line (`operator alert`, kind, task id) and one line in the instance owner's next daily digest, once per task and kind.
+Rows: `preview_scanner` with retries left → `working` "Retrying shortly"; retries used → `stopped`, Try again (`retryPreview`), Drop it. A merge stopped on `causeNoAccess` (`merge_no_access` or `merge_forbidden`) and a `preview_scanner` failure raise an operator alert: one operator log line (`operator alert`, kind, task id; never a credential) and one line in the instance owner's next daily digest, once per task and kind. `func (t *txn) operatorAlert(kind, task string) error`, kinds `alertNoAccess`, `alertScanner`.
-- [ ] **Step 1: Failing tests:** `TestStopViewPreviewFault`, `TestOperatorAlertOncePerTask`.
+- [ ] **Step 1: Failing tests:** `TestStopViewPreviewFault`, `TestOperatorAlertOncePerTask` (both kinds; a second failure of the same task adds nothing; the digest line names the repository for no-access and nothing secret).
- [ ] **Step 2:** Run `go test ./internal/equipo/chat -run 'PreviewFault|OperatorAlert' -count=1`. Expected: FAIL.
- [ ] **Step 3:** Implement.
- [ ] **Step 4:** Run. Expected: PASS.
@@ -612,7 +618,7 @@ Rows: `preview_scanner` with retries left → `working` "Retrying shortly"; retr
**Files:** `internal/equipo/chat/job_sweep.go`, `internal/equipo/chat/handoff.go` (`tellAssistant` exception), `internal/equipo/chat/tools.go` (`noteTasteUnanswered`), `internal/equipo/chat/job_sweep_test.go`.
-A `taste` question asking 2 h with no person action → `scheduleNoteTurn(…, noteTurnTaste)` (Task 1.11: claimed, once per question, sharing the 6-per-rolling-24 h cap with `noteWordIt`, none in quiet hours in the person's zone). Still open at 24 h with a `default_option` → instance answers through `answerQuestion` at the decision's revision (`originGenerated`, audit `assistant.job.default`, receipt `went_ahead`). Never for `decision` questions or placement. `tellAssistant`'s housekeeping guard admits only `noteWordIt` and `noteTasteUnanswered` turns from the sweep.
+A `taste` question asking 2 h with no person action → `scheduleNoteTurn(…, noteTurnTaste)` (Task 1.11: claimed, once per question, sharing the 6-per-rolling-24 h cap with `noteWordIt`, none in quiet hours in the person's zone). Still open at 24 h with a `default_option` → instance answers through `answerQuestion` at the decision's revision (`originGenerated`, audit `assistant.job.default`, receipt `went_ahead`). Never for `decision` questions or placement. `tellAssistant`'s housekeeping exception (Task 1.11) already admits turns from `scheduleNoteTurn`, which this task's taste turns use.
- [ ] **Step 1: Failing tests:** `TestSweepTaste` (T9): one turn at 2 h and none after; daily cap across ticks and a store reopen, counting `noteWordIt` and `noteTasteUnanswered` turns together; 24 h default for `taste` with a default only; two overlapping ticks act once. `TestSweepTasteQuietHoursInZone` (Review Focus 5): person in Europe/Madrid with quiet 22–07; nothing at 23:00 local; cap identical across the March DST change.
- [ ] **Step 2:** Run `go test ./internal/equipo/chat -run 'TestSweepTaste' -count=1`. Expected: FAIL.
@@ -634,9 +640,9 @@ A `taste` question asking 2 h with no person action → `scheduleNoteTurn(…, n
**Files:** `internal/equipo/chat/job_ask.go`, `internal/equipo/chat/job_act.go`, `internal/equipo/chat/job_stop.go`.
-`CardHome` becomes an `AskApproval`-kind ask answered through `answerHome` (labels from project display names, instance context and recommendation); its K6 row leaves the Open-in-Equipo set. Other approvals stay on Equipo's pages.
+What `CardHome` is on main (`internal/equipo/chat/tools.go` around `set_project_home`, `projects.go` `answerHome`): the Coordinator proposes **where the team's new projects go**, a namespace from `create_in` in the card's `Choice`, or `""` to clear the setting; the card waits in state `CardHomeAsk` with no stored options; only an owner confirms it (`ChoiceConfirm`), which applies the change and lets it be undone (`ChoiceUndo`) while still current. On the pill it becomes an `AskApproval` ask with one option, value `confirm`, labelled by instance copy that names the place (or says it clears it), the instance context and why, and Drop it in `actions`. A tap sends `action=answer&choice=confirm`, which `ActOnJob` maps to `answerHome` with `wire.ChoiceConfirm` at the card's revision, only while the card is `CardHomeAsk` and the person is an owner (else `ErrForbidden`). Undo stays on Equipo's pages. Its K6 row leaves the Open-in-Equipo set. Other approvals stay on Equipo's pages.
-- [ ] **Step 1: Failing test** `TestJobActHome`; `TestJobNeverDeadEnds` updated.
+- [ ] **Step 1: Failing tests:** `TestJobActHome` (a proposed namespace: the ask names it, confirm applies it and the job moves on; a clearing proposal: the ask says so, confirm clears; a non-owner → `ErrForbidden`; a card no longer `CardHomeAsk` → `ErrDecisionGone`); `TestJobNeverDeadEnds` updated.
- [ ] **Step 2:** Run `go test ./internal/equipo/chat -run 'TestJobActHome|TestJobNeverDeadEnds' -count=1`. Expected: FAIL.
- [ ] **Step 3:** Implement.
- [ ] **Step 4:** Run. Expected: PASS.
@@ -644,12 +650,16 @@ A `taste` question asking 2 h with no person action → `scheduleNoteTurn(…, n
### Task 2.11 (Equipo): O1, a new site from Base without "Where should this go?"
-**Files:** `internal/equipo/chat/handoff.go` (`teamRequest` records provenance), `internal/equipo/chat/placement_consent.go` (`createConsent`), `internal/equipo/chat/placement_card.go` (proposal reused), `internal/thintest/assistant_o1_contract_test.go` (new).
+**Files:** `internal/equipo/chat/handoff.go` (`teamRequest` records provenance), `internal/equipo/chat/placement_card.go` (`askPlacement`), `internal/equipo/chat/placement_o1.go` (new), `internal/equipo/chat/placement_o1_test.go` (new), `internal/thintest/assistant_o1_contract_test.go` (new).
+
+How the proposal is made today: the Coordinator calls `ask_person` with a `wire.Placement` (`Repos` it considers, and `NewRepo`, its proposed new repository); `askPlacement` validates it (each repo allowed, `NewRepo` in an allowed namespace, labels within bounds) and raises the placement card; the person's answer makes `createConsent` accept `create_project` for exactly `NewRepo`. The proposal stays the Coordinator's and its validation stays `askPlacement`'s; O1 removes only the person's tap, in one place:
-Provenance: the hand-off's own message is the instance's send into the job lane (`handoffKey+h.ID`), so it is never `originComposer`. `teamRequest` already checks that `words` quote the person's Assistant-lane messages; it now stores the id of the person message the quote was found in as `chat_handoffs.source_message` (Task 2.2's migration). `createConsent(r, repo)` for a turn `r` in a job lane: find the hand-off by `r.Lane`; require that `r` is a turn of the hand-off's own first message (`h.MessageID`'s turn), that `source_message` is a person message with `Origin == originComposer` and `Lane == wire.LaneAssistant`, that its words name no existing project of the person's (the matcher `project_resolution.go` uses for the placement card), and that `repo` equals the `NewRepo` the placement proposal would offer for those words (the function that fills `placementData.NewRepo`, called without raising a card). Hand-offs made before phase 2 have no `source_message` and keep the placement card.
+- Provenance: the hand-off's own message is the instance's send into the job lane (`handoffKey+h.ID`), never `originComposer`. `teamRequest` already checks that `words` quote the person's Assistant-lane messages; it now stores the id of the person message the quote was found in as `chat_handoffs.source_message` (Task 2.2's migration).
+- `func (t *txn) o1Grant(r turnRecord, p wire.Placement) (bool, error)`: true only when `r` is in a job lane whose hand-off has `source_message`, that message is the person's with `Origin == originComposer` and `Lane == wire.LaneAssistant`, `p.Repos` is empty (nothing existing fits, the `new_first` case), and the source words name none of the person's existing projects (`project_resolution.go`'s resolver finds none).
+- In `askPlacement`, after its validation and before raising the card: when `o1Grant` holds, the card is created and answered in the same transaction with its new-repository label through `answerQuestionOrigin(…, originGenerated)` (audit `assistant.job.o1`, receipt none: the person sees the work start), and the tool result is the answered placement, so the Coordinator's next call is `create_project` with `NewRepo`, which `createConsent`'s existing answered-placement path accepts unchanged.
-- [ ] **Step 1: Failing tests:** `TestCreateConsentFromHandoff` (store): allowed in exactly that case; refused when the words name an existing project, when the repository differs from the proposal, when `source_message` is not `originComposer` or not in the Assistant lane, for a turn that is not the hand-off's first, and for a hand-off without `source_message`. `TestO1NewSiteWithoutPlacement` (thintest, the whole path): a person message "make me a website about Viennese pastries" → `team_request` → the job's Coordinator turn calls `create_project` with the proposed repository → the project exists, no placement card was raised; the same with words naming an existing project → a placement card is raised and nothing is created.
-- [ ] **Step 2:** Run `go test ./internal/equipo/chat ./internal/thintest -run 'TestCreateConsent|TestO1|Placement' -count=1`. Expected: FAIL on the new tests.
+- [ ] **Step 1: Failing tests:** `TestO1Grant` (store): granted in exactly that case; refused when the words name an existing project, when `p.Repos` is not empty, when `source_message` is not `originComposer` or not in the Assistant lane, for a hand-off without `source_message`, and for a turn outside a job lane. `TestO1NewSiteWithoutPlacement` (thintest, the whole path with the fake Coordinator): a person message "make me a website about Viennese pastries" → `team_request` → the job's Coordinator turn calls `ask_person` with a placement whose `NewRepo` is in an allowed namespace → answered at once, no open card → `create_project` with that `NewRepo` → the project exists; `create_project` with any other repository is refused; the same with words naming an existing project → an open placement card, nothing created.
+- [ ] **Step 2:** Run `go test ./internal/equipo/chat ./internal/thintest -run 'TestO1|Placement|CreateConsent' -count=1`. Expected: FAIL on the new tests; the existing placement tests pass.
- [ ] **Step 3:** Implement.
- [ ] **Step 4:** Run. Expected: PASS.
- [ ] **Step 5:** Commit `O1: a new site from Base starts without asking where it goes`.
@@ -676,11 +686,11 @@ Provenance: the hand-off's own message is the instance's send into the job lane
### Task 3.1 (Equipo): Protocol 32 for the first look
-**Files:** `internal/wire/runners.go`, `internal/wire/first_look.go` (new), `internal/wire/runners_test.go`.
+**Files:** `internal/wire/runners.go`, `internal/wire/tasks.go` (`DispatchCommand`), `internal/wire/first_look.go` (new), `internal/wire/runners_test.go`, `internal/wire/assistant_test.go` (the current-version assertion).
`ProtocolFirstLook = Protocol32`: `record_task`'s tool input gains `first_look bool`; `DispatchCommand` (`internal/wire/tasks.go`) gains `ReviewMode string` (`ReviewModeFirstLook = "first_look"`, Review steps only) and `FirstLookNote string` (Engineering steps only). Below 32, `Encode` drops all three (`downgradeFirstLook`).
-- [ ] **Step 1: Failing tests:** `TestDowngradeFirstLook` (at 31 the three fields are gone and nothing else changes; at 32 they pass), `TestSpokenIs32`.
+- [ ] **Step 1: Failing tests:** `TestDowngradeFirstLook` (at 31 the three fields are gone and nothing else changes; at 32 they pass); `TestProtocolFirstLookIs32` (permanent); the single current-version assertion moves to `Spoken(99) == 32` and `ProtocolCurrent == ProtocolFirstLook`, while `TestProtocolJobsMovingIs31` stays as it is.
- [ ] **Step 2:** Run `go test ./internal/wire -run 'FirstLook|Spoken' -count=1`. Expected: FAIL.
- [ ] **Step 3:** Implement.
- [ ] **Step 4:** Run `go test ./internal/wire -count=1`. Expected: PASS.
@@ -760,7 +770,7 @@ Base keeps `first_look` links since Task 1.15; this proves the drawing on a work
**Files:** `0111_jobs_replace.sql` (`chat_handoffs.replaced_by`), `internal/equipo/chat/handoff.go` (`teamRequest`: `replaces` in, `similar` out), `internal/equipo/chat/job_ask.go` (`AskReplace`), `internal/equipo/chat/job_act.go` (`replace`, `keep`), tests.
-`replaces` allowed only while the old job is the person's, open, no followed task beyond `investigated` and no step dispatched or running (`replaceable(old handoffRecord) (bool, error)`); else `replaces_busy`. Binding: the new job's card stores the replace decision in its own decision columns: `decision_card` = the **old** job card's id, `decision_rev` = that card's revision when the offer was made, `decision_cand` = `"replace"`; `chat_handoffs.replaces` (new column) names the old hand-off on the new one. At the tap, in one transaction: the decision check of Task 1.7 (the old card still at `decision_rev`, else `ErrDecisionGone`), `replaceable(old)` again (else `ErrDecisionGone` and the ask is cleared, with the receipt "Kept both: the earlier one had already started."), then `dropJob(old, true)`, `old.replaced_by = new.ID`, and receipts `replaced_by` on the old and `replaces` on the new. `keep` clears the ask. Any change to the old card (it moved on, the person answered something on it) moves its revision and so withdraws the offer. `similar`: the person's open jobs whose titles read alike (same normalised words, at least half shared).
+`replaces` allowed only while the old job is the person's, open, no followed task beyond `investigated` and no step dispatched or running (`replaceable(old handoffRecord) (bool, error)`); else `replaces_busy`. The ask is `AskReplace` with options `replace` and `keep` (instance labels "Replace it" and "Keep both", details, context, `recommended` = `replace` with its why), per PD4; a tap sends the option's value as the action. Binding: the new job's card stores the replace decision in its own decision columns: `decision_card` = the **old** job card's id, `decision_rev` = that card's revision when the offer was made, `decision_cand` = `"replace"`; `chat_handoffs.replaces` (new column) names the old hand-off on the new one. At the tap, in one transaction: the decision check of Task 1.7 (the old card still at `decision_rev`, else `ErrDecisionGone`), `replaceable(old)` again (else `ErrDecisionGone` and the ask is cleared, with the receipt "Kept both: the earlier one had already started."), then `dropJob(old, true)`, `old.replaced_by = new.ID`, and receipts `replaced_by` on the old and `replaces` on the new. `keep` clears the ask. Any change to the old card (it moved on, the person answered something on it) moves its revision and so withdraws the offer. `similar`: the person's open jobs whose titles read alike (same normalised words, at least half shared).
- [ ] **Step 1: Failing test** `TestTeamRequestReplaces` (T10): offers the ask; drops only on the person's tap; `replaces_busy` past building; `keep` leaves both; old work starting between the offer and the tap → `ErrDecisionGone`, nothing dropped, ask cleared with its receipt; the replace survives a store reopen between offer and tap.
- [ ] **Step 2:** Run `go test ./internal/equipo/chat -run TestTeamRequestReplaces -count=1`. Expected: FAIL.
@@ -782,7 +792,7 @@ Base keeps `first_look` links since Task 1.15; this proves the drawing on a work
**Files:** `internal/web/templates/partials/chat.html` (new `ask-fold`), `internal/web/ask.go`, `internal/look/static/ask.js`, `internal/look/static/app.css`, `internal/browsertest/jobs_fold_test.go` (new).
-A `done` job is a full pill for 24 h after `updated_at`, then drawn in the Finished row ("{n} finished", opening to them); `asking` or `stopped` jobs untouched 3 days fold into "Waiting on you ({n})", drawn above Finished and open when it has something new; the replace ask's actions "Replace it" / "Keep both".
+A `done` job is a full pill for 24 h after `updated_at`, then drawn in the Finished row ("{n} finished", opening to them); `asking` or `stopped` jobs untouched 3 days fold into "Waiting on you ({n})", drawn above Finished and open when it has something new; the replace ask drawn by the shared ask partial (its options carry instance labels).
- [ ] **Step 1: Failing tests:** `TestAskJobFoldsFinished` (fake clock 24 h), `TestAskJobWaitingOnYou` (3 days), `TestAskJobReplaceAsk`, scripts-off variants.
- [ ] **Step 2:** Run `go test -tags browser ./internal/browsertest -run 'TestAskJob(Folds|Waiting|Replace)' -timeout 20m -count=1`. Expected: FAIL.
@@ -831,6 +841,7 @@ DRAFT wording from the spec, for copy review before any code writes it. Keys are
- `assistant.decision.direction.why_again` "There are changes worth another try."
- `assistant.decision.direction.why_drop` "It isn't heading the right way."
- `assistant.job.ask.direction_note` (Try again's field label, sent as `ask.note`) "What should change?"
+- direction option labels (instance, PD4): `assistant.job.option.build` "Build it", `assistant.job.option.again` "Try again", `assistant.job.option.drop` "Drop it"
- `assistant.decision.link_expired` (the first look's link note when it expired; `cf0614ec` has starting, failed and off only) "The first look has expired."
- `assistant.decision.direction.detail_build` "Makes the full version from this first look."
- `assistant.decision.direction.detail_again` "Makes another first look from your note."
@@ -841,6 +852,7 @@ DRAFT wording from the spec, for copy review before any code writes it. Keys are
- failed: "Stopped" / "Something went wrong while making it."
- no_work: "Stopped" / "It didn't get started."
- going_live merge: "Didn't go live" / "It's ready, but couldn't go live."
+- no access (`causeNoAccess`, PD11): "Didn't go live" / the detail `honest-merge-refusals` adds (`assistant.job.detail.no_access`, "It can't go live until access to publish it is set up.", pending review on that branch; reviewed here if it is still pending)
- merge_uncertain (old rows): "Didn't go live" / "It's ready, but didn't go live. Trying again is safe."
- publish_failed, no Publish open: "Didn't go live" / "It's finished, but the site didn't go live."
- home (phase 1): "One question for you" / "Where should new work like this live?"
@@ -863,9 +875,9 @@ DRAFT wording from the spec, for copy review before any code writes it. Keys are
### Phase 2
-- Equipo stops: preview fault retrying "Retrying shortly" / "Held up on our side. Trying again in a few minutes."; retries used "Stopped" / "Held up on our side. We've let the people who run Base know."; merge faults "Didn't go live" / "It's ready, but didn't go live. Trying again is safe."
+- Equipo stops: preview fault retrying "Retrying shortly" / "Held up on our side. Trying again in a few minutes."; retries used "Stopped" / "Held up on our side. We've let the people who run Base know."; merge outcome unknown "Didn't go live" / "It's ready, but didn't go live. Trying again is safe."
- Equipo receipts: "Went ahead with “{option}”.", "Building it from the first look."
-- Equipo `CardHome` context and why (Task 2.10): "Work like this needs a home." / "{project} is where similar work lives."
+- Equipo `CardHome` on the pill (Task 2.10): ask text "Keep new work in {place}?" (clearing: "Stop keeping new work in one place?"); option label "Yes, keep it there" (clearing: "Yes, clear it"); context "New sites and apps need a place to live. This sets where they go from now on." (clearing: "New work will be placed one by one again."); why "It's where your other work already lives." (clearing: "Nothing will be moved.")
- Equipo owner digest (O8, owner-facing in Equipo): "A job couldn't go live: no access to {repository}." and "Previews can't be checked on {computer}: the secret scanner is missing."
### Phase 3
@@ -874,8 +886,8 @@ DRAFT wording from the spec, for copy review before any code writes it. Keys are
### Phase 4
-- Equipo: replace ask "Replace your earlier request, “{title}”?"; its context "You asked for something like this before." and why "One job for one thing is easier to follow."; receipts "Replaced by a newer request.", "Replaces an earlier request.", "Kept both: the earlier one had already started."
-- Base (web and native): "Replace it", "Keep both", "{n} finished", "Waiting on you ({n})".
+- Equipo: replace ask "Replace your earlier request, “{title}”?"; option labels "Replace it" and "Keep both" (instance, PD4), with details "Stops the earlier one and keeps this one." and "Both carry on."; its context "You asked for something like this before." and why "One job for one thing is easier to follow."; receipts "Replaced by a newer request.", "Replaces an earlier request.", "Kept both: the earlier one had already started."
+- Base (web and native): "{n} finished", "Waiting on you ({n})".
## Review
@@ -895,3 +907,14 @@ DRAFT wording from the spec, for copy review before any code writes it. Keys are
- P2 `noteWordIt` scheduling: one claimed, capped, quiet-hours-aware path for both note turns, fallback at once when declined, sweep recovery (Tasks 1.3, 1.11, 1.14, 2.8).
- P2 receipts for the Assistant's answers (Task 1.10). P2 replace binding stored and rechecked at the tap (Task 4.2). P2 phase 2 before phase 3 (PD1, deploy table). P2 missing copy added (register). P2 abbreviated tasks expanded, browser tests before `ask.js`, all three K14 targets recorded (Tasks 1.19, 2.12, 3.x, 4.x).
- P3 phase 0 marked "done in code; staging check pending".
+
+**Astra, round 2 (2026-11-25): REVISE**, 2 P1, 7 P2, 1 P3. Round 1's P1s resolved except the native one. Changes:
+
+- P1 old native apps unseen since the upgrade: `BASE_JOB_ACTIONS` deploy switch (off by default, on once the new app is what people use), Base strips controls from native requests without the client header, and the remaining gap degrades to typing the answer, which the Assistant relays (PD7, Task 1.17, deploy step 1.c).
+- P1 decision cards put Engineering's headline on Base's go-ahead: `assistantMirrorDecision` uses instance copy only, tested with machinery words (Task 1.1).
+- P2 one representation for choices: every ask's choices are its `options` (questions, directions, replace, home), so `recommended` and details have one rule (PD4, Tasks 1.5, 1.15, 1.18, 4.2).
+- P2 O1: no proposal function exists; the Coordinator's validated `ask_person` placement is answered at once by the instance when `o1Grant` holds, and `createConsent` is unchanged (Task 2.11).
+- P2 `CardHome` is a namespace confirmation, not a project choice: one `confirm` option through `answerHome`, owners only, copy rewritten (Task 2.10, register).
+- P2 note kinds have separate sweep rows; the housekeeping exception moves to phase 1 (Task 1.11).
+- P2 `mergeTaskAs` returns the attempt; merge tests in the run (Task 1.9). P2 `Go()` and the server templates draw first looks in every state, scripts-off test (Tasks 1.15, 1.18). P2 fake tests first, expected results, run filters, file lists, current-version vs permanent protocol tests (Tasks 1.12, 1.16, 2.1, 2.2, 3.1).
+- P3 `honest-merge-refusals` is at `ef909582` with `merge_no_access` and "trying again cannot help": the plan uses its names and follows it, a deviation from K6's Try again for a missing credential, flagged for Paul (PD11, Tasks 1.6, 2.3, 2.6).