| index 3a3ce5ce..ed4e4c96 100644 |
| --- a/docs/superpowers/plans/2026-11-30-design-feedback-1.md |
| +++ b/docs/superpowers/plans/2026-11-30-design-feedback-1.md |
| @@ -138,9 +138,9 @@ Order: 1, 2, 3, 4, 5, 6, 8, 7, 9, 10, 11, 12, 13, 14 (Task 7 uses Task 8's |
| - Consumes: Task 1. |
| - Produces: `func (t *txn) designOptionsShort(p progress) (bool, error)` (true for a Design exploration attempt done with no options passing `ValidExploreOptions`); `designFeedbackOptions` fixed feedback text. |
| |
| -- [ ] **Step 1: Failing tests**: `TestExploreTwoOptionsFixRound` (an approved-shaped Design attempt with 2 options gets a fix round carrying `designFeedbackOptions`, no Review step); `TestExploreNoSubmitFixRound`; `TestExploreShortAtMaxFixRounds` (at `MaxFixRounds` the task needs `NeedsFixRounds`); `TestOldReportStillShown` (a protocol-38 report with 2 options and no directions is shown, no fix round, since its step predates 39); `TestKeptCaptureFacts` (label, viewport, path, full page reach `StepCapture`); `TestDispatchProtocolPersists` (written at dispatch, survives a store reopen and a runner reconnect; legacy rows read 0). |
| +- [ ] **Step 1: Failing tests**: `TestExploreTwoOptionsFixRound` (an approved-shaped Design attempt with 2 options gets a fix round carrying `designFeedbackOptions`, no Review step); `TestExploreNoSubmitFixRound`; `TestExploreShortAtMaxFixRounds` (at `MaxFixRounds` the task needs `NeedsFixRounds`); `TestOldReportStillShown` (a protocol-38 report with 2 options and no directions is shown, no fix round, since its step predates 39); `TestKeptCaptureFacts` (label, viewport, path, full page reach `StepCapture`); `TestChangeReportLabels39` (a protocol-39 change report with one labelled option is kept; one with an unlabelled or 41-byte label is refused); `TestDispatchProtocolPersists` (written at dispatch, survives a store reopen and a runner reconnect; legacy rows read 0). |
| - [ ] **Step 2: Run** `go test ./internal/equipo/chat/ -run 'TestExplore|TestOldReportStillShown|TestKeptCaptureFacts'`; FAIL. |
| -- [ ] **Step 3: Implement.** Add `stepRecord.DispatchProtocol int` (migration 0125, default 0 meaning before this round), set at every dispatch from the lease's protocol. The check runs in `advanceExplore` before `judge`, only when `DispatchProtocol >= 39`. |
| +- [ ] **Step 3: Implement.** The capture-acceptance path (`design_captures.go:194`) checks a protocol-39 change report with `wire.ValidOptions39` and an exploration with `wire.ValidExploreOptions`; below 39 `wire.ValidOptions` as today. Add `stepRecord.DispatchProtocol int` (migration 0125, default 0 meaning before this round), set at every dispatch from the lease's protocol. The check runs in `advanceExplore` before `judge`, only when `DispatchProtocol >= 39`. |
| - [ ] **Step 4: Run**; PASS. |
| - [ ] **Step 5: Commit** `chat: a Design exploration needs 3 or 4 options before Review`. |
| |
| @@ -227,14 +227,14 @@ Sequenced after Task 8. **Interfaces:** Consumes `t.writeTaste` (Task 8). |
| |
| **Files:** |
| - Create: `internal/equipo/chat/taste_ask.go` |
| -- Modify: `internal/equipo/chat/tools.go` (dispatch, `status` gains `taste: {notes, asked}` per Design specialist), `internal/equipo/chat/specialists.go` (`propose_specialist` takes `feels`; the Add card shows the questions; Add writes the answers before `queueSpecialistAdded`), `internal/equipo/chat/projects.go` (`answerPrefix`: a taste card's answer carries the ask's stored words), `internal/runner/thin/mcp.go` (schema), the coordinator prompt's house rules, the card-answer path that builds `Answered` today (its message and person turn), `internal/equipo/templates/chat.html` (card), `internal/equipo/migrations/0125_design_feedback.sql` (`chat_taste_asks`), `internal/equipo/copy.go` |
| +- Modify: `internal/equipo/chat/tools.go` (dispatch, `status` gains `taste: {notes, asked}` per Design specialist), `internal/equipo/chat/specialists.go` (`propose_specialist` takes `feels`; the Add card shows the questions; Add writes the answers before `queueSpecialistAdded`), `internal/equipo/chat/projects.go` (`answerPrefix`: a taste card's answer carries the ask's stored words), `internal/runner/thin/mcp.go` (schema), `internal/runner/provider/actions.go:229` (`ConverseTools`) and `internal/runner/claude/launcher.go:155` (Claude's allowlist), `wire.MutationKinds` and `WriteTools` with the tool's successful result (so `mutationOp`, `tools.go:306`, replays it across attempts), the coordinator prompt's house rules, the card-answer path that builds `Answered` today (its message and person turn), `internal/equipo/templates/chat.html` (card), `internal/equipo/migrations/0125_design_feedback.sql` (`chat_taste_asks`), `internal/equipo/copy.go` |
| - Test: `internal/equipo/chat/taste_ask_test.go`, `internal/equipo/taste_card_test.go` |
| |
| **Interfaces:** |
| - Consumes: Task 8 `writeTaste`; the existing card answer's message and person turn. |
| - Produces: `func (t *txn) askDesignTaste(r turnRecord, project string, feels []string) (wire.ToolResult, error)` (person turns only, refused in every continuation); `func (t *txn) answerTaste(person string, c cardRecord, in wire.AnswerCard) (wire.Card, wire.Card, error)`; `func (t *txn) writeDiscovery(person, project, card string, in *wire.TasteAnswer) error` shared by the taste card and the Add card; `tasteAskRecord.Words` (the asking turn's messages, `addedWord` JSON). No new turn kind. |
| |
| -- [ ] **Step 1: Failing tests**: `TestAskTasteOnce` (second ask for the same person and project: refused text says start Design now); `TestAskTasteRefusedWithNotes`; `TestAskTasteFeelsBounds` (6 feels, a 31-byte feel, markup: refused); `TestAnswerWritesNotes` (two feels: two `choice` notes with Equipo's question; three boxes: three `words` notes); `TestAnswerOnce` (double tap: one set of notes, one message, one turn; the second is a card conflict); `TestAnswerFramedBySource` (the turn's prompt frames typed boxes as the person's words and feels and Skip as choices among options others wrote); `TestSkipRecorded` (no notes, ask recorded skipped, next Design dispatch has `TasteSkipped`); `TestAskRefusedInContinuation` (`ask_design_taste` in a `specialist_added` turn is refused); `TestAddCardWithAnswers` (Add with two feels and a box writes three notes, then the continuation is queued with its usual binding: another project, a second task and Engineering are still refused); `TestNotNowWritesNoTaste`; `TestAnswerCarriesRequest` (51 messages after the request, fresh coordinator session: the answer turn's prompt contains the original request under the person's label); `TestTasteCardRender` (feels as checkboxes, four boxes `maxlength=300`, Use these and Skip). |
| +- [ ] **Step 1: Failing tests**: `TestAskTasteOnce` (after an answer or Skip, a second ask for the same person and project is refused with text saying start Design now; while the first card is still open, it answers that the person has not answered yet and Design must wait); `TestAskTasteRetryReplays` (a new turn attempt repeats the call before the answer: one card stays open, the replayed result is "asked", no task is started); `TestAskTasteThroughRunner` (the tool is advertised and callable through the runner socket and Claude's launch allowlist); `TestAskTasteRefusedWithNotes`; `TestAskTasteFeelsBounds` (6 feels, a 31-byte feel, markup: refused); `TestAnswerWritesNotes` (two feels: two `choice` notes with Equipo's question; three boxes: three `words` notes); `TestAnswerOnce` (double tap: one set of notes, one message, one turn; the second is a card conflict); `TestAnswerFramedBySource` (the turn's prompt frames typed boxes as the person's words and feels and Skip as choices among options others wrote); `TestSkipRecorded` (no notes, ask recorded skipped, next Design dispatch has `TasteSkipped`); `TestAskRefusedInContinuation` (`ask_design_taste` in a `specialist_added` turn is refused); `TestAddCardWithAnswers` (Add with two feels and a box writes three notes, then the continuation is queued with its usual binding: another project, a second task and Engineering are still refused); `TestNotNowWritesNoTaste`; `TestAnswerCarriesRequest` (51 messages after the request, fresh coordinator session: the answer turn's prompt contains the original request under the person's label); `TestTasteCardRender` (feels as checkboxes, four boxes `maxlength=300`, Use these and Skip). |
| - [ ] **Step 2: Run** `go test ./internal/equipo/... -run 'TestAskTaste|TestAnswer|TestSkip|TestAskRefused|TestAddCard|TestNotNow|TestTasteCard'`; FAIL. |
| - [ ] **Step 3: Implement.** The house rule text: before starting Design, call `status`; with no taste and no style, mood or reference in the request, ask; else start. |
| - [ ] **Step 4: Run**; PASS. |
| @@ -289,6 +289,13 @@ stored words (Task 10). Fix rounds inherit `DesignAsk` (Task 6). |
| Protocol-39 capture labels are checked on change reports too (Tasks 1, |
| 2). |
| |
| +## Astra round 3: READY AFTER FIXES (2 new P2s and one leftover, all taken; round limit) |
| + |
| +Instance-side label check for protocol-39 change reports (Task 4); |
| +`ask_design_taste` registered in the provider and Claude allowlists and |
| +as a replayed mutation, with pending discovery told apart from answered |
| +(Task 10). |
| + |
| ## Reviews and the round limit |
| |
| Astra reviews the addendum and this plan (three rounds at most each), then |