Skip to content

feat(captain): postmortem template and step, first on #3787; Unverified line in READY and lane reports (GST-805) - #3807

Merged
capy-ai[bot] merged 7 commits into
mainfrom
gsta-242-postmortem-unverified
Nov 4, 2026
Merged

capy-ai[bot] merged 7 commits into
mainfrom
gsta-242-postmortem-unverified

Conversation

@garrytan

@garrytan garrytan commented Nov 1, 2026 •

Copy link
Copy Markdown
Owner
{
  "schema_version": 1,
  "pr": 3807,
  "head": "f6cbc7339ce983d03f9545005d05ea2935946c18",
  "version": "1.95.5.0",
  "base": "main",
  "gate": {
    "focused": {
      "pass": 41,
      "fail": 0,
      "skip": 0
    }
  },
  "session_kind": "unattended",
  "head_tree": "30afdeb47949fe8e6e6ecbec284ab4d6dde9caf5",
  "product_patch_id": "bc7a594da289938d92b2240890c4d24b50dc5835",
  "gstack_version": "1.96.0.0",
  "review_depth": {
    "depth": "light",
    "class": "code",
    "runtime_lines": 164,
    "rules": "e2f876df0e87b2c3",
    "base": "c07eddb5afb0930434bd2fcbc1f83a9c75041086",
    "registry": "c07eddb5afb0930434bd2fcbc1f83a9c75041086",
    "gate_scan": {
      "tagged": 0,
      "head": "f6cbc7339ce983d03f9545005d05ea2935946c18"
    },
    "reasons": [
      "runtime=164"
    ],
    "risk": [],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @30afdeb47949 (7 checks, current for f6cbc7339ce9)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/41765057016/attempts/1",
    "windows-smoke.yml/windows-smoke: https://github.com/garrytan/gstack/actions/runs/41765056951/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=30afdeb47949 tests=35389 skipped=112 runs=41765057016/1 profiles=ci-reuse/free-tests heads=f6cbc7339ce9 verified=2026-11-04T03:16:46.419Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "blocked",
    "scope": "docs, captain, capy, README.md, AGENTS.md, CLAUDE.md, CONTRIBUTING.md (audit a242-3, diff c07eddb5..f6cbc733). Not shipped here: the report field lists in captain/templates/automation-flaky-pass.md and docs/recommended-harness.md don't name the Unverified line yet, and docs/skills.md's /captain template list doesn't name postmortem.md",
    "exception": {
      "accepted_by": "GStack Minder (Captain, under Garry's delegation)",
      "date": "2026-11-03",
      "via": "GStack Minder reply on GSTA-242, 2026-11-03: option A",
      "reason": "Ship at f6cbc733 with Documentation: blocked and the named scope; I'll fold those three lines into the next docs lane."
    }
  },
  "review_loop": {
    "passes": 2,
    "blocking_found": 0,
    "deferred": 0,
    "noted": 0,
    "fixed": 0,
    "scope": "frozen",
    "fix_checks": 4,
    "rounds": 6,
    "ledgers_read": 1,
    "dispatches": {
      "specialist": 1,
      "red-team": 1
    }
  }
}
{"head":"c7dfe16e14ebe8eff13ef95dbc15960c20faa3fd","version":"1.92.32.0","gstack_version":"1.92.32.0","review_loop":{"passes":2,"blocking_found":0,"deferred":0,"noted":0,"fixed":0,"scope":"frozen","fix_checks":3,"dispatches":{"specialist":1,"red-team":1}},"depth":"standard"}

What changed

READY lane lines gain a required Unverified line, asked for and never refused

READY lane lines gain a required Unverified line, asked for and never refused.

Before/after as text: READY lane lines gain a required Unverified line, asked for and never refused
--- Before · captain/templates/READY.md at 84c5019 · source text
+++ After · captain/templates/READY.md on this branch · source text
@@ ⋯ 38 unchanged ⋯ @@
 screen choice: <--no-screen: cases <ids> ran focused and passed | --screen: <reason>>
 flaky: <none | case, both run ids, logged in the ledger on <date>>
 review passes: <n> (deferred: <items filed as issues, or none>)
+Unverified: <none | each claim the lane did not check itself, and why>
 Head frozen from now on; a push drops this PR from any train and I will READY again.
 ```
+
+`Unverified:` is required. It lists every claim in the READY that the lane did not check
+itself: a local test that timed out, a paid run skipped, a number a model reported, a claim
+inherited from another thread, and a review finding set aside on an assumption nobody
+tested. `none` means the lane looked for each of these and found none. A missing line is
+asked for as a follow-up message: it never holds a PR out of a train, does not stale
+READYs sent before the line existed, and needs no new `ready` or /ship run.
 
 Optional lines a crew's rules file may require:
 

New postmortem template: the root cause section asks why every reviewer believed the change was right

New postmortem template: the root cause section asks why every reviewer believed the change was right.

Before/after as text: New postmortem template: the root cause section asks why every reviewer believed the change was right
--- Before · captain/templates/postmortem.md § Root cause: why did the lane and every reviewer believe it was right? at 84c5019 · source text (new in this change)
+++ After · captain/templates/postmortem.md § Root cause: why did the lane and every reviewer believe it was right? on this branch · source text
+## Root cause: why did the lane and every reviewer believe it was right?
+Read first, and mark any item `not retained` when it no longer exists:
+
+- the PR body and its ship receipt;
+- every review pass, fix-check, outside-voice and targeted-reader output (the run
+  directory or the lane's subagent transcripts);
+- the lane's decision trail and its READY, Unverified line included;
+- the controller's brief, approvals and grants;
+- earlier PRs, issues or trail rows that met the same problem.
+
+| Believer | What it was asked | What it checked | What it did not check | Why it passed | Source |
+|---|---|---|---|---|---|
+| the controller's brief | <the request> | <…> | <…> | <…> | <message> |
+| the lane | <the brief> | <its proof and tests> | <the direction it never tested> | <the assumption it held> | <trail row> |
+| <each review voice, by pass> | <its brief's question> | <…> | <…> | <its words, quoted> | <output> |
+| tests, pregate, CI, paid gate | <what selected them> | <…> | <the fixture that did not exist> | <…> | <run id> |
+
+Quote a believer's recorded reason; label anything else `inferred`. A missing record is a
+finding in its own right: say what it would have shown.
+
+<then one paragraph: the belief they shared, where it was written down or seen and set
+aside, and whether the knowledge that would have caught it already existed somewhere the
+lane did not read>

Why

When a merged PR breaks something, crews revert it and move on without recording why the lane and its reviewers believed it was right. #3787 is the example: it passed two review passes, three fix-checks, a cross-family outside voice and the remote gate, then dropped real blockers on main. Two adversarial reviewers had seen that loss and set it aside on an assumption nobody tested. Crews now write a postmortem after every revert or S1 fix, and every READY and report names what the lane didn't check itself.

Blast radius

Templates, the /captain skill text, the Capy lane guide, docs/captain.md and two tests. No bin parses lane READY lines: gstack-ship-queue ready prints only the tool's block (lib/ship-queue.ts:263), and lib/factory-scorecard.ts:71 only matches a READY marker. So the new line can't change what merges, and a missing line never holds a PR out of a train. captain/SKILL.md stays under its context-budget ceiling (6,551 tokens), which this PR doesn't raise: it trims existing prose instead. Rung: tested (focused lane 51/0, remote gate 18,282/0, CI).

Approvals

Date Asked Exact words Outcome Covers Still pending
2026-11-01 Approve the plan "Plan: postmortem template (first on #3787) and an Unverified line in READY and report" (autoplan run autoplan-20261101155621, 1 decisions) “Do it” (Garry (via GStack Minder, GSTA-36), relayed by agent:jam_01M6BWYBN0QTVAGQ1NQ26TPHV1) approved the reviewed plan (sha256 9b954e451b22), every recommendation taken none

Source: gstack-approvals record for gsta-242-postmortem-unverified (display only; not an approval citation).

Summary

  • Postmortem template and step (D1). captain/templates/postmortem.md covers what broke, how it was found, impact, timeline, a root cause section built on "why did the lane and every reviewer believe it was right?", what caught it and what should have, and a rule-change table with owner, status and an effectiveness check. It must be written from the review outputs, receipts, trail and approvals, with a source per row, not retained for missing records and inferred for unrecorded reasons. /captain and docs/captain.md tell the controller to start one after any revert or S1 fix of a merged crew PR, and to ship its rule change as a gstack PR. Postmortems live in the controller's drive, not the repo, because they name crew codes and people and the template set is tested to stay generic.
  • The first postmortem, on v1.92.29.0 fix(ship): review collector skips negated severity words and records the reviewer's stated severity (GST-766) #3787, is reports/postmortem-3787.md in the GStack Minder Captain drive.
  • Unverified line (E1). READY.md and report.md carry Unverified: <none | claim, and why>: a timed-out local test, a skipped paid run, a model-reported number, an inherited claim, or a review finding set aside on an untested assumption. The READY contract in /captain, docs/captain.md, the CREW template (rules 6 and 7) and the Capy lane guide name it. It's the one exception to the stale-READY rule. The controller asks for it in a follow-up and never refuses a READY without it.
  • Archaeology lint. One ALLOWLIST entry, scoped to the captain skill and anchored on captain/templates/postmortem.md, lets the skill name its template.

Test Coverage

test/captain-skill.test.ts gains two tests. One checks that the Unverified line sits in the READY lane lines and right under the report's Outcome, the skill, doc and lane guide name it, and it's never refused. The postmortem's sections appear in order with the believer and change tables. postmortem.md joins the generic-template check. Failing first: with this branch's templates stashed, six of the file's tests passed and four failed; at the head all ten pass.

Pre-Landing Review

Pre-Landing Review: three issues. One was fixed automatically, none were asked or deferred, and two Low observations are listed under Review notes.

REVIEW_LOOP: passes=2 blocking_found=0 deferred=0 noted=0 fixed=0 scope=frozen fix_checks=4 dispatches=2
Gate edits: none detected (gate scan tagged 0 hunks)

The REVIEW_LOOP line counts the review passes from the review log. The one fix came from a Step 11 voice and is listed below.

  • Pass 1 (standard): the batched specialist (testing, security, state machines) and the outside voice (openai/gpt-6.1-sol) were clean. The native adversarial voice found that the lane guide's "/ship does all of this" sentence now covered the Unverified line, which /ship doesn't write. The collector recorded it as CRITICAL; the reviewer wrote Severity: Low, Blocks: no. Fixed in 11d6b20: the guide says /ship does items 1-4 and the lane writes Evidence and Unverified.
  • Pass 2 (scoped on the fix): Red Team and adversarial clean. Fix-checks on the docs-audit commit and on the lint allowlist were clean.
  • Base merge: main c07eddb merged in bd6ad98 with no conflicts, under GStack Minder's rule 19 grant. Main's v1.94.4.0 captain docs: plan-first rule matches R65 (no plan review for bug fixes) #3908 pushed captain/SKILL.md to 6,574 tokens against its 6,551 ceiling. f6cbc73 trims the Reports and READY-options prose to fit, and the ceiling stays where it was. A scoped fix-check on bd6ad98..f6cbc73 found nothing. It's this PR's one review-loop exception, granted by GStack Minder.

Review notes

  • Low: "Unverified" is called required but is never refused or parsed, so a bare none can't be told from a lane that didn't look. That's the design the brief asked for. A later gstack-ship-queue ready check could print skipped or timed-out checks from the receipt.
  • Low: docs/captain.md says the controller refuses a block that misses any READY field, then makes Unverified the exception two sentences later. The exception sentence resolves it.

Exploratory QA

Smoke probes on the head showed that each template carries exactly one Unverified: <none line, and gen:skill-docs leaves captain/SKILL.md unchanged.

Eval Results

bun run eval:select --base origin/main: no behavioral probes or quality judges selected; captain/SKILL.md is deferred to broad coverage, which the train gate runs.

Plan Completion

Plan: autoplan run autoplan-20261101155621 (CEO + Eng, one round), approved with every recommendation. Every High and Medium finding was folded into the build. The line never stales earlier READYs, its sources include findings set aside on untested assumptions, the postmortem has an action table, missing-evidence handling and source pointers, the tests check position, and the lane guide gets the line. No parser change was needed because no bin parses lane READY lines.

Documentation

Status: blocked, shipped under a named documentation risk.

Scope: docs, captain, capy, README.md, AGENTS.md, CLAUDE.md, CONTRIBUTING.md (audit a242-3, diff c07eddb..f6cbc73). Not shipped here: the report field lists in captain/templates/automation-flaky-pass.md and docs/recommended-harness.md don't name the Unverified line yet, and docs/skills.md's /captain template list doesn't name postmortem.md

Documentation exception: accepted by GStack Minder (Captain, under Garry's delegation) 2026-11-03 via GStack Minder reply on GSTA-242, 2026-11-03: option A: Ship at f6cbc73 with Documentation: blocked and the named scope; I'll fold those three lines into the next docs lane.

Audit a242-3 (this /ship run, after the base merge) found every other changed doc and template current: docs/captain.md, captain/SKILL.md.tmpl, captain/templates/{CREW,READY,report,postmortem}.md and capy/skill/gstack/captain.md. It made two one-line edits naming the Unverified line, in captain/templates/automation-flaky-pass.md and docs/recommended-harness.md. They aren't in this PR, because /ship counts a template edit as behavior, and behavior needs another review pass that this PR doesn't have. They wait on a local branch for the next docs lane. Diagram drift: none.

Test plan

  • Focused lane (captain-skill, context-budget-ratchet, archaeology-lint, skill-md-size-guard, parity-suite, catalog-budget, capy-captain-flow, captain-brief) at f6cbc73: 41 tests, exit 0
  • bun run typecheck: clean
  • Remote lanes cleared from CI at f6cbc73: Free Tests run 41765057016 (macOS named regressions) and Windows Smoke run 41765056951
  • CI at the head

garrytan and others added 4 commits November 1, 2026 16:10
…ST-805, failing first)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… and lane reports (GST-805)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…writes Evidence and Unverified, /ship items 1-4; rewrap the READY contract paragraph)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ne (GST-805 docs audit a242-1)

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

trunk-io Bot commented Nov 1, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 3 commits November 1, 2026 16:34
…plate (GST-805)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…l stays under its 6,551-token ceiling (GST-805)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai
capy-ai Bot merged commit 15cbc27 into main Nov 4, 2026
42 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