Repository navigation
Write up a failed or shelved attempt before closing it (GST-3576) - #4735
Merged
Merged
Conversation
Adds docs/shelved-attempt.md and points the factory page, ETHOS, /eval-plan, /captain, the report template and the archive check at it. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
Merged
capy-ai Bot
added a commit
that referenced
this pull request
Nov 24, 2026
- `/ship` now tells you what to change when GitHub refuses a push for email privacy. (#4748) - The release gate's /cso check accepts the low-confidence hypotheses /cso now reports. (#4753) - /cso reports every security finding the code supports instead of dropping most of them. (#4739) - /cso can search the whole repository in one call, and a daily report now lists its low-confidence hypotheses. (#4742) - A first version's plan and try-it message now open with the owner's own words, and the build is tried the same way he will try it before he is asked. (#4759) - A first version's public export now keeps out the owner's short quotes and his reasons to leave something out, and a phone first-use check installs a build the cloud phone can actually run. (#4772) - Three intermittent test failures are fixed. (#4745) - Free Tests runs its shards on 8-core runners again. (#4749) - A land that waits on an earlier CI run now decides on what that run actually did. (#4763) - Landing a PR no longer starts a new CI run when one for the same merged code is already running or has passed. (#4760) - /ship no longer misses a file-mode change from main on files whose names start with `:`. (#4774) - make-pdf keeps quotes in alt text, link titles and raw HTML attributes inside the attribute, so a Markdown file can no longer add an `onerror`, `onload` or `javascript:` link that runs in the print browser. (#4761) - Posting a PR body that lists earlier /ship runs no longer stops for a phone number that isn't there. (#4747) - A first version's public export now catches a short owner quote whose padding or quote marks are encoded. (#4778) - A first version's public export now also keeps out a short owner quote written with spaces just inside its quote marks. (#4776) - Posting a PR body that lists earlier /ship runs no longer stops for a card number that isn't there. (#4751) - /ship no longer asks for an extra reader when you merge the base branch next to code that was already reviewed. (#4754) - /ship no longer plans narrow re-checks after a fix. (#4741) - /ship can't quietly gain new refusals. (#4740) - `gstack-upgrade` no longer refuses to run after you disable skills. (#4743) - The free test suite splits its shards from this week's recorded test times. (#4744) - gstack now writes up a failed or shelved attempt before closing it. (#4735) 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.
gstack now asks for a short write-up before any attempt is closed as failed, shelved, cut, null or not now, and the close links to it.
Why: a failed attempt is paid-for knowledge; without a page of notes the next person repeats it or never learns which part worked.
To do: nothing. Workflows that close an attempt now point at the new template, docs/shelved-attempt.md.
What changed
When an experiment, an eval arm or a prototype didn't work out, gstack had no default for what to keep, so a dead attempt often closed with a one-line reason and its numbers stayed in a thread nobody reopens. Now there's one short template and every place that closes an attempt points at it.
docs/shelved-attempt.md: takeaways, what we tried and why, what worked, what didn't (with numbers and how far each was checked), why it's shelved, what would reopen it, where the data and scripts are, what wasn't done, what went wrong on our side, and cost./eval-plan's results step (null, cut candidate, stopped at the approval ask, or out of budget), the lead skill's report and close rules, and the finished-work report template. The full list is in Agent notes.gstack-archive-check thread, run before archiving a thread, now prints aNOTE:line for each PR the thread holds that closed without merging, asking that its close link a write-up if it was shelved. It is a note only and never refuses.Why
A note and not a refusal, because no gstack tool sits on the moment an attempt closes. Issues close through the tracker, PRs close on GitHub, and an eval verdict is prose. The archive check is the one gstack step that sees a thread's closed PRs, but it can't read the close comment, and many closed PRs were superseded, not shelved. A refusal there would block every archive that holds a superseded PR, and /ship is being simplified to drop refusals without stated reasons, so this adds a reminder at the last moment the thread's context still exists. If write-ups still go missing, the next step is a refusal that checks the close comment for a link.
Blast radius
Prose in four agent-loaded files plus ETHOS.md and one new doc; the factory page budget rises from 5,300 to 5,550 bytes for point 17. The archive check's verdict and exit codes are unchanged, because the new line is pushed only as a note and the verdict still comes from open PRs and working issues alone (lib/archive-check.ts read, and a live run on two real PRs, one closed and one merged, printed one note and
ARCHIVE_CHECK: clean).Pre-Landing Review
No issues found by the checklist or the specialist reader. The second reader raised two low notes, neither blocking: the archive note also fires for superseded PRs (its wording says "if it was shelved", and it never changes the verdict), and nothing refuses a close without a write-up (by design; see Why).
Exploratory QA
Smoke: ran this branch's
gstack-archive-check threadon a thread holding a closed PR (#4697) and a merged one (#4734): oneNOTE:for #4697, none for #4734,ARCHIVE_CHECK: clean, exit 0. Control: main's copy printed no note. The new unit test fails on main's code and passes here.Eval Results
No evals ran at PR tier. The selector fell back to its full set because crew/docs/captain.md is an unknown dependency, and it reported no quick live coverage; its selected behaviors stay scheduled and release coverage.
TODOS
No TODO items completed in this PR.
Documentation
Status: current — the docs already match the change and no edits were needed.
Scope: branch
write-it-up-before-you-shelve-itagainst base71c5e34d(head37c5473, 13 files). There were no staged, unstaged or untracked candidate files. The audit covered the new templatedocs/shelved-attempt.mdand every doc that links to it.Documentation health
Coverage debt:
gstack-archive-check thread's newNOTE: pr … closed without mergingline has reference coverage only (the template doc and crew/docs/captain.md) and no how-to page. The template is not listed in a docs index, but readers can reach it from ETHOS.md and the factory page. There is no diagram drift because no doc diagrams reference these files.Tests
bun test test/archive-check.test.ts test/captain-skill.test.ts test/capy-skill-wrapper.test.ts test/parity-suite.test.ts): 100 pass, 0 failAgent notes
Agent notes
GST-3576. Owner instruction ("Do it", 2026-11-23), relayed by GSKI-1 then GStack Minder (GSTA-36).
Workflows that close work as cut, shelved, null or not now, and what each now says
capy/skill/gstack/factory.mdpoint 17: the directive.crew/docs/captain.md: new section "Write it up before you shelve it", and "Close only as landed, superseded or dropped" asks dropped attempts to link the write-up. The owner's words are quoted once, indocs/shelved-attempt.md(the captain manual must stay free of names).ETHOS.mdsection 9 ("Why null?" / R48 verdict path): a cut gets a write-up before it closes.eval-plan/SKILL.md.tmplStep 5: null, CUT-CANDIDATE, option C at Step 4, orbudget_exhaustedis shelved work; its results file adds why shelved, what would reopen it and where the data is.captain/SKILL.md.tmpl"Reports and waves": write-up first; report, issue and PR close link it.captain/templates/report.md: Outcome slot asks for the link.lib/archive-check.ts: the NOTE line (test intest/archive-check.test.ts, failing first on main's code).Searched and left unchanged:
/retro(reports merged PRs and issue counts, records no abandoned work),/gstack-upgrade,/office-hoursand/autoplan"not now" (snoozes, not closed attempts),/runaway-stopper(stops threads, doesn't judge their work),/benchmark-models,/plan-tune(end no experiment).R56 reason: the owner's standing rule (R120); measured by whether shelved closes carry a write-up link in the daily issue sweep. No new refusal. Factory budget raise reason is in the test comment.
REVIEW_LOOP: passes=1 blocking_found=0 deferred=0 noted=2 fixed=0 scope=frozen ledgers_read=2 dispatches=1
Gate edits: none detected (2 listed, 1 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)
Approvals
Approved: yes (record r-a40074e2bed3). The full approval record stays private.
Plan: approved (record r-8e0436f69f81)
Plan check: approved (record r-8e0436f69f81)