oficina / equipo Public

spec 3.3 + plan: fold in Astra round 3 (READY AFTER FIXES)

Instance checks labels on protocol-39 change reports; ask_design_taste
registered in provider and Claude allowlists and as a replayed
mutation; an open discovery card is told apart from an answered one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
claude agent, operated by paul@keymail.dev pushed by paul@keymail.dev f045f6ab45aa429f821ae57b62969a92262e9beb parent 7a1c0bd
3 files changed, +25 −5
  • docs/superpowers/plans/2026-11-30-design-feedback-1.md +11 −4
  • docs/superpowers/reviews/CODEX-FINDINGS-design-feedback-1-R3.md +12 −0
  • docs/superpowers/specs/2026-11-28-dynamic-specialists.md +2 −1
diff --git a/docs/superpowers/plans/2026-11-30-design-feedback-1.md b/docs/superpowers/plans/2026-11-30-design-feedback-1.md
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
diff --git a/docs/superpowers/reviews/CODEX-FINDINGS-design-feedback-1-R3.md b/docs/superpowers/reviews/CODEX-FINDINGS-design-feedback-1-R3.md
new file mode 100644
index 00000000..0273e968
--- /dev/null
+++ b/docs/superpowers/reviews/CODEX-FINDINGS-design-feedback-1-R3.md
@@ -0,0 +1,12 @@
+| Previous finding | Disposition | Evidence |
+|---|---|---|
+| R1 #5: Preserve the original request | fixed | Task 10 preserves the Add continuation’s stored request and explicitly carries the separate discovery ask’s source-labelled messages, with a fresh-session test beyond the conversation tail. |
+| R2 #10: Preserve Add authority limits | fixed | Discovery moves onto the Add card; its existing bound continuation remains. Task 10 tests project, task-count and maker restrictions. |
+| R2 #11: Carry `DesignAsk` into fixes | fixed | Task 6 explicitly copies it in `fixRound` and tests both repair paths, including a fresh session after forgetting. |
+| R2 #12: Validate change-report labels | **not fixed** | Tasks 1–2 add the validator and runner enforcement. [Task 4](/home/paulca/amadan.net/oficina/equipo-design-feedback-1/docs/superpowers/plans/2026-11-30-design-feedback-1.md:143) still specifies only exploration validation. Require `ValidOptions39` in the instance’s capture-acceptance path for protocol-39 change reports, with valid and invalid label tests. |
+
+**READY AFTER FIXES**
+
+13. **P2 — Register discovery in the runner’s tool allowlists.** [Plan:230](/home/paulca/amadan.net/oficina/equipo-design-feedback-1/docs/superpowers/plans/2026-11-30-design-feedback-1.md:230). Tasks 1 and 10 add `ask_design_taste` to the wire list, MCP schema and instance dispatcher, but omit `provider.ConverseTools` (`actions.go:229`) and Claude’s separate allowlist (`launcher.go:155`). `converseSet` takes its callable names from the provider list, and `mcp.go:318` rejects unlisted calls. Following the plan would advertise a tool the coordinator cannot call. Add both registrations and test a discovery call through the actual runner socket and launch policy.
+
+14. **P2 — Preserve an unanswered discovery ask across coordinator retries.** [Plan:237](/home/paulca/amadan.net/oficina/equipo-design-feedback-1/docs/superpowers/plans/2026-11-30-design-feedback-1.md:237). `TestAskTasteOnce` requires a second ask to say “start Design now”, without distinguishing an outstanding card from an answered or skipped one. The plan also omits `MutationKinds` and `WriteTools` registration; `mutationOp` (`tools.go:306`) therefore treats the new tool as a fresh operation. After a coordinator retry, another call can receive permission to proceed while the person’s first card remains unanswered. Register the mutation and its successful result, replay the existing ask across attempts, and distinguish pending from completed discovery. Test a new-attempt retry before the answer: one card remains open and Design is not started.
\ No newline at end of file
diff --git a/docs/superpowers/specs/2026-11-28-dynamic-specialists.md b/docs/superpowers/specs/2026-11-28-dynamic-specialists.md
index f27b2341..804fc2f3 100644
--- a/docs/superpowers/specs/2026-11-28-dynamic-specialists.md
+++ b/docs/superpowers/specs/2026-11-28-dynamic-specialists.md
@@ -2,7 +2,8 @@
Status: revision 3.3, 2026-11-30: section 8 is an addendum after Paul's
first use of Design, drafted on `design-feedback-1` from main 1755d03a;
-it is under Astra review and has one question for Paul (section 8.8).
+Astra rounds 1 and 2 NOT READY (9, then 4 findings), round 3 READY
+AFTER FIXES (3, all taken). One question for Paul (section 8.8).
Sections 0 to 7 are revision 3.2, APPROVED by Paul on 2026-11-28, and
slice 1 is live in production (27d50e7f) since 2026-11-30.