Repository navigation
v1.91.343.0 feat(captain): every ask to the owner uses the lettered ask format (R41) - #3655
Merged
Merged
Conversation
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
…r (typecheck:test) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…s (rec except <token>) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ink and simple steps (R43) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Every ask to the owner now uses one format, explained like they're five (Garry's rule R41): the Captain's name, then one lettered line per decision.
"do it" takes every recommendation in the list; a named option ("A2") takes that option instead. The recommendation is always option 1.
Every ask to the owner now uses one format, explained like they're five (Garry's rule R41): the Captain's name, then one lettered line per decision.
"do it" takes every recommendation in the list; a named option ("A2") takes that option instead. The recommendation is always option 1.
What changed
captain/templates/plan-ask.md: before, one decision line and reply rec; after, one lettered line per decision with the recommendation as option 1, closed by do it, plus the owner-action block (R43).gstack-owner-brief render --captain,lib/captain-brief.ts): "What we need from you" prints one lettered line per gate choice, with the plan approval as the last letter and the recommended option numbered 1. The header and closing reply invite do it or a named option. A new--captain-name <name>heads the list. The relaying agent's last line maps every letter to its gate token (A1=d1a A2=d1b …) next torec resolves to …, and says a named option answers as--reply "rec except <token>"(with a worked example), so a reply like "B2" translates exactly. A plan that is missing a section still invites no reply.captain/templates/plan-ask.md,DIGEST.md,merge-ask.md,AGENTS.md,report.md,captain/SKILL.md(.tmpl),capy/skill/gstack/captain.md(section 3, including therec exceptanswer for a named option),capy/skill/gstack/SKILL.mdanddocs/recommended-harness.md.plan-ask.md,merge-ask.md,captain/SKILL.md(.tmpl), factory.md point 11 at its byte cap).Why
Garry asked that every ask be answerable in a word or a letter from his phone, with one place per decision to see the problem, the options and the pick. Before this change, the rendered plan ask listed the choices
rectakes as a numbered list. That gave him no way to name an alternative, and other asks each used their own shape.Tests
test/captain-brief.test.tsasserts the lettered lines (recommendation first, "A1 to take recommendation"), the letter-to-token map, the--captain-nameheading, carried answers shown in the lettered lines, and no reply invitation on an incomplete plan.Blast radius
Prose for Captains and lanes, plus the Captain plan-ask renderer. The gate itself (
lib/gate-list.ts,lib/autoplan-gate.ts) is unchanged: replies still answer asrecorrec except <tokens>, andrec_hashbinds the same recommendation. Nothing machine-parses the trailer text. Owners pick up the Capy skill prose by copyingcapy/skill/gstack/into the Drive skill folder.Approvals
No approvals recorded for branch garrytan/r41-ask-format.
Summary
Lane commits 5373aaa and f110dbb (R41) and 21d4286 (R43); /ship added the changelog fragment and one fix from review (4e35a11): the trailer and captain.md now tell the relaying agent how a named option answers.
Test Coverage
test/captain-brief.test.tsasserts the lettered lines (recommendation first, "A1 to take recommendation"), the letter-to-token map and therec exceptline with its example, thatrec except d1bparses with nothing pending, the--captain-nameheading, carried answers shown in the lettered lines, and no reply invitation on an incomplete plan.Pre-Landing Review
Review depth standard (code class, 143 runtime lines): one batched specialist pass over six checklists on Claude Opus 5.5, a native adversarial pass, and a cross-family outside voice on GPT-6.1 Sol (added because the scan counted three numeric claims; all three are template placeholders like "1) ; 2) "). One finding was at the blocking floor and was fixed: the trailer printed the letter map but only the
--reply reccommand, so an owner's "B2" was either recorded asrecor, sent as a bare token, left the gate pending. A fix-check reviewer on the touched hunks found nothing. The R43 commit, added after that pass, got its own fix-check reviewer, which raised one informational note (below).Review notes
Informational, not fixed here (follow-ups for the owner of the gate and the renderer):
lib/autoplan-gate.ts:367):checkOwnerReplyskips its mismatch check when the owner's words do not parse, and "A2" or "do it except A2" do not parse. A relaying agent that recordsrecagainst a lettered override is not caught. Replies in words had the same exposure before this PR; teaching the guard the letter map is the real fix.lib/captain-brief.ts:120): after a partial answer, a re-render can moveA2to a different token with the samegate_revandrec_hash. Translate a reply with the trailer of the message the owner saw.lib/captain-brief.ts:119): a gate with more than 26 asks renders[,\,],^,_, and letters D, P and U look like gate ids.lib/captain-brief.ts:129): when a kept answer is option 1,(why: …)still explains the original recommendation.lib/captain-brief.ts:127,bin/gstack-owner-brief): option text, titles and--captain-nameare not stripped of newlines, so a newline can fake a lettered line or the agent trailer. Titles were already rendered raw.lib/captain-brief.ts:124): they omit<code>and the "hit problem … which happens when" clause from docs/captain.md, and the usual relay command does not pass--captain-name.captain/templates/plan-ask.md:37): it comes after the do it closer with a fixed letter C, while docs/captain.md puts the owner action inside the list with unique letters; a plan ask with three decisions already uses C. A placeholder such as<next letter>inside the list would fix it.bin/gstack-skill-startinjects (around line 692) andcapy/skill/gstack/SKILL.md:43still describe the one-word reply shape.Documentation
The PR is mostly documentation and updates every place that described the ask shape, except the two noted above.
Test plan
bun run typecheckclean;bun run typecheck:test: 814 known diagnostics, none newbun run gen:skill-docsleaves the tree unchangedleft=0)gstack-pregate verifyok