Skip to content

v1.91.343.0 feat(captain): every ask to the owner uses the lettered ask format (R41) - #3655

Merged
capy-ai[bot] merged 7 commits into
mainfrom
garrytan/r41-ask-format
Oct 31, 2026
Merged

capy-ai[bot] merged 7 commits into
mainfrom
garrytan/r41-ask-format

Conversation

@garrytan

@garrytan garrytan commented Oct 30, 2026 •

Copy link
Copy Markdown
Owner
{
  "schema_version": 1,
  "pr": 3655,
  "head": "21d428637b939c69eab3294460e41f6fe200eadc",
  "version": "1.91.342.0",
  "base": "main",
  "gate": {
    "remote-pregate": {
      "pass": 17687,
      "fail": 0,
      "skip": 0
    },
    "focused": {
      "pass": 73,
      "fail": 0,
      "skip": 0
    }
  },
  "session_kind": "unattended",
  "queue_mode": "stamp-at-merge",
  "head_tree": "64295cf0be8a440a82490d24506c48dc7bfa0ebc",
  "product_patch_id": "2f667ae84714f50da3ea9bc21c62410645168c0b",
  "gstack_version": "1.91.342.0",
  "review_depth": {
    "depth": "standard",
    "class": "code",
    "runtime_lines": 173,
    "rules": "55726fab80631072",
    "base": "53522b1bbc60b3dc820842371f80ebc9db7911ec",
    "registry": "53522b1bbc60b3dc820842371f80ebc9db7911ec",
    "gate_scan": {
      "tagged": 0,
      "head": "21d428637b939c69eab3294460e41f6fe200eadc"
    },
    "reasons": [
      "runtime=173>50"
    ]
  },
  "pregate": "requires-remote cleared @64295cf0be8a (1 checks, current for 21d428637b93)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/41135228901",
    "windows-free-tests.yml/windows-free-shard: https://github.com/garrytan/gstack/actions/runs/41135228827",
    "pregate.json/remote_gate: remote-gate tree=64295cf0be8a tests=17687"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "updated",
    "scope": "docs/captain.md, captain templates, captain/SKILL.md(.tmpl), capy/skill/gstack/{SKILL,captain,factory}.md, docs/recommended-harness.md updated in the PR; bin/gstack-skill-start's Capy preamble and capy/skill/gstack/SKILL.md:43 still describe the one-word reply (noted in Review notes)"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 1,
    "deferred": 0,
    "noted": 8,
    "fixed": 1,
    "scope": "frozen",
    "fix_checks": 2,
    "est_input_tokens": 22375,
    "dispatches": {
      "specialist": 1,
      "adversarial": 1,
      "outside-voice": 1,
      "fix-check": 2
    }
  }
}

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.

<Captain name>
- A: <code> hit problem p, which happens when h. We could fix it in these ways: 1) x; 2) y; 3) z. Recommendation: x because why. A1 to take recommendation.
- B: ...

"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.

<Captain name>
- A: <code> hit problem p, which happens when h. We could fix it in these ways: 1) x; 2) y; 3) z. Recommendation: x because why. A1 to take recommendation.
- B: ...

"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 and after: one decision line and reply rec, then one lettered line per decision with the recommendation as option 1, closed by do it, plus the owner-action block (R43)

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).

  • The plan-ask renderer (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 to rec 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.
  • docs/captain.md gains a section, The ask format. The plan ask (shape B), what the controller relays, and the digest's Needs you all point to it.
  • capy factory.md point 11 states the format and stays under its byte budget by tightening wording in other points.
  • Templates and restatements: 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 the rec except answer for a named option), capy/skill/gstack/SKILL.md and docs/recommended-harness.md.
  • Owner actions (R43): when the owner must act, the ask carries a lettered line with the exact link (never a menu path) and numbered steps in the simplest words, ending in "Reply done" (docs/captain.md under The ask format, plan-ask.md, merge-ask.md, captain/SKILL.md(.tmpl), factory.md point 11 at its byte cap).
  • changelog.d/garrytan-r41-ask-format.md carries the CHANGELOG entry; the merge step assigns the version.

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 rec takes 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.ts asserts the lettered lines (recommendation first, "A1 to take recommendation"), the letter-to-token map, the --captain-name heading, carried answers shown in the lettered lines, and no reply invitation on an incomplete plan.

Open in Capy

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 as rec or rec except <tokens>, and rec_hash binds the same recommendation. Nothing machine-parses the trailer text. Owners pick up the Capy skill prose by copying capy/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.ts asserts the lettered lines (recommendation first, "A1 to take recommendation"), the letter-to-token map and the rec except line with its example, that rec except d1b parses with nothing pending, the --captain-name heading, 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 rec command, so an owner's "B2" was either recorded as rec or, 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):

  • The owner-reply guard cannot read letters (lib/autoplan-gate.ts:367): checkOwnerReply skips 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 records rec against 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.
  • Letters follow option order, which follows kept answers (lib/captain-brief.ts:120): after a partial answer, a re-render can move A2 to a different token with the same gate_rev and rec_hash. Translate a reply with the trailer of the message the owner saw.
  • No rollover past Z (lib/captain-brief.ts:119): a gate with more than 26 asks renders [, \, ], ^, _, and letters D, P and U look like gate ids.
  • The "why" can argue for a different option (lib/captain-brief.ts:129): when a kept answer is option 1, (why: …) still explains the original recommendation.
  • Raw text in lettered lines (lib/captain-brief.ts:127, bin/gstack-owner-brief): option text, titles and --captain-name are not stripped of newlines, so a newline can fake a lettered line or the agent trailer. Titles were already rendered raw.
  • Rendered lines are shorter than the documented format (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.
  • The R43 example sits outside the lettered list (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.
  • Two older instructions remain: the Capy preamble bin/gstack-skill-start injects (around line 692) and capy/skill/gstack/SKILL.md:43 still 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 typecheck clean; bun run typecheck:test: 814 known diagnostics, none new
  • bun run gen:skill-docs leaves the tree unchanged
  • Focused at 21d4286: 73 pass, 0 fail across captain-brief, captain-skill, capy-skill-wrapper, parity-suite, changelog-fragments, version-gate-fragments
  • Remote pregate at 21d4286 (tree 64295cf0be8a): 17,687 tests, 0 failed, Ubicloud VM destroyed (left=0)
  • Free Tests (run 41135228901) and Windows Free Tests (run 41135228827) green at 21d4286; both pregate lanes cleared, gstack-pregate verify ok

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@trunk-io

trunk-io Bot commented Oct 30, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 6 commits October 30, 2026 21:39
…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>
@github-actions github-actions Bot changed the title feat(captain): every ask to the owner uses the lettered ask format (R41) v1.91.343.0 feat(captain): every ask to the owner uses the lettered ask format (R41) Oct 31, 2026
@capy-ai
capy-ai Bot merged commit 6748d54 into main Oct 31, 2026
62 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant