Repository navigation
feat(captain): postmortem template and step, first on #3787; Unverified line in READY and lane reports (GST-805) - #3807
Merged
Conversation
…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>
|
😎 This pull request was merged. |
…plate (GST-805) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…-postmortem-unverified
…l stays under its 6,551-token ceiling (GST-805) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
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.
What changed
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
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
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 readyprints 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
Source: gstack-approvals record for gsta-242-postmortem-unverified (display only; not an approval citation).
Summary
captain/templates/postmortem.mdcovers 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 retainedfor missing records andinferredfor 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.reports/postmortem-3787.mdin the GStack Minder Captain drive.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.captain/templates/postmortem.md, lets the skill name its template.Test Coverage
test/captain-skill.test.tsgains 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.mdjoins 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.
Review notes
nonecan't be told from a lane that didn't look. That's the design the brief asked for. A latergstack-ship-queue readycheck could print skipped or timed-out checks from the receipt.Exploratory QA
Smoke probes on the head showed that each template carries exactly one
Unverified: <noneline, andgen:skill-docsleaves 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
bun run typecheck: clean