Repository navigation
Teach agents nine habits that several teams learned the hard way (GST-3336) - #4585
Conversation
…-3336) Adds G1-G10 and G13 from the second crew-rules audit to the start card, factory page, team manual, rotation templates, ship policy, /eval-plan and the cross-system page. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
The held-out exposure row asked for anything a whole-machine search reaches, which invites the sweep over runner state and ~/.ssh that agents must never run. It now names the task's own work tree and rules out a sweep of /. Review-Finding: v1/adversarial-native#2 reader=adversarial-native Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
E2E Evals: ✅ PASS (flaky: 1 case(s) passed on their one rerun)94 executed, 0 reused rule/judge records | 0 manual accepted (unscored; no score-cache credit) | $32.06 rule/judge cost | reconcile exit: 0 Profile: pr / mode Full gate restored by:
Rule and judge shards
Fail-closed reconciliationSliced lane: planner → duration-packed executors → fail-closed report. Behavior cases run a pre-registered 3-trial panel (PASS at 2/3 with no contract violation); a PASS 2/3 is shown with its failed trial, never as a clean pass. Reused results retain their original provenance and expiry. Flaky: failed once, passed on its one rerun (rule 16)Each failed and passed on its rerun in run 44863001421 at the attempts named above. Logged for the daily flaky-fix pass in this run's Dispatched narrow screen (gstack-ship-queue ready --screen) of merge commit |
- Habits from nine teams, written into gstack. (#4585) - Three more habits from teams that run evals. (#4602) - The /ship conductor trial plan gives its real-problem judge one more attempt on fresh labels after it missed its agreement bar twice, and stops the trial incomplete if it misses again (GST-3003). (#4611) - The /ship conductor trial plan now stops a trial only at the final remote-gate refusal, gives both arms the same note that the brief overrides team rules, and counts every report the no-gstack arm returns (GST-3003). (#4609) - The /ship conductor trial plan now ends a trial at the remote gate when its case base isn't main, gives the no-gstack arm a test runner, and audits every trial for exposure to the plan (GST-3003). (#4605) - The /ship conductor trial plan now runs an uncounted pilot in every arm before its counted trials and takes one planned look at half the cases (GST-3003). (#4587) - gstack's own use on Capy can be counted, and is kept out of real-use numbers. (#4576) - Free Tests shards finish closer together. (#4578) - The weekly test-time recording can land again on its own. (#4581) - The job-log tree.json step's recommended sleep is long enough for real runners. (#4589) - Pull requests no longer wait on the Trunk flaky-test upload, and the quick tier's flaky passes now reach Trunk. (#4579) - Windows Setup E2E finishes sooner on install changes. (#4575) - Skills no longer stop on Codex when they clean up temp files. (#4612) - /review on Codex with OpenAI models no longer holds back a review that ran its adversarial pass. (#4622) - Crew threads on Capy now check in at 500M own tokens, standing threads rotate at 250M and any subagent past 50M gets a look, half the old lines, because Capy's token counts read about half what they did before 2026-11-15. (#4582) - gstack no longer offers to add a `## Skill routing` section to your project's CLAUDE.md. (#4629) - The README and docs no longer say gstack makes your agent fix more bugs. (#4598) - `/eval-plan` now writes eval plans that waste less money. (#4591) - /cso checks every folder above a source file before it looks at the file, so it never looks through a symlinked folder. (#4592) - Plan reviews no longer read a /design-review audit summary as the branch's design doc. (#4623) - Node's built-in test files now run with `node --test` in repos that use vitest or jest. (#4626) - A quarantined test that the runner skipped now fails the run instead of passing it. (#4590) - A flaky free test is fixed: the spawnSync overflow check no longer fails about once an hour on CI. (#4613) - Free Tests runs its shards on 16-core runners. (#4600) - /office-hours asks for ground truth first. (#4468) - Every startup session ends with a dated test. (#4468) - /plan-tune's dream cycle now logs each send of your typed answers to Anthropic. (#4621) - Landing a ready PR no longer depends on a hand-copied gate decision, and the ready note, release PR and squash message say the right thing. (#4596) - /ship no longer asks for a fresh review because of a stacked parent that main already had. (#4580) - Results PRs with large captured agent sessions can be reviewed. (#4574) - /ship no longer stalls on review notes a reviewer already cleared, counts review rounds the way the review policy reads them, and keeps security findings out of the PR body. (#4595) - /ship's review readers are now told never to stop processes they didn't start. (#4607) - /ship's review no longer stops when Capy's own drive sync database grows past 100 MB. (#4606) - /ship's preflight now honors your repository's time limit for rerunning CI-skipped tests, and tells you when a fresh worktree needs its packages installed. (#4608) - The slowest free test file is now six files. (#4588) - Step 11.5 keeps a reviewed head current across base-only merges. (#4577) - On a Capy install, only the owner's opt-in sends telemetry. (#4597) - New page: working across agent systems. (#4583) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Agents using gstack now get nine working habits that three or four teams each reached on their own: don't write a file back from a cut-off read, change the design when reviews keep finding the same kind of bug, narrow a safety guard only with a tested exemption, prove a change on the real path, move timers and automations with a handoff, land base-branch settings first, and check that a check can see your change.
Why: each habit cost one of those teams a lost file, a leaked key, an outage or extra review rounds. Nothing to do as a reader.
Where each habit lives, with its evidence
git log --allin 19 of 160 sessions and a build cache held 164 hidden test names; a test agent ranfind /where the key was readableRule 5's example now says what happened: the owning side couldn't reproduce the report and the other side accepted that. This is a budget raise: the factory page's byte budget goes from 4,875 to 5,050 bytes because point 7 gains two clauses (a green fake or dry run isn't done; a check must see the change and count what its name says), each reached on its own by three teams.
What stayed prose, and why
gstack-review-planalready prints that a branch's ownreview_exclude_pathsapplies only after it lands; the new paragraph says to plan for that before opening the data PR.prereg --checkfailure: making it a hard check needs a dated grandfather rule and is left to the /eval-plan rework.Agent notes
Source: org drive audit 2026-11-21-crew-rules-for-gstack.md rows G1 to G10 and G13. Rows G11, G12 and G14 go to GST-3218.
Approvals
Plan: exempt: audited-list
Pre-Landing Review
Pre-Landing Review: 6 issues — 1 fixed (v1/adversarial-native#2, commit 520da60, re-read clean by a granted fix-check: the eval-plan answers check no longer points agents at a whole-machine
find /sweep), 0 asked, 0 deferred, 5 notedReview-loop exception: accepted by Captain GStack Minder (GSTA-36) 2026-11-21 via gstack-approvals a-61a3373cace1: GStack Minder, 2026-11-21: grant one scoped fix-check at 520da60 for v1/adversarial-native#2; it was fixed in 520da60 and re-read clean, but pass 2 logged findings: [] so the loop counts it open. (fix-check at 520da60, 0 findings)
Gate edits: none detected (1 listed, 1 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none). The read hunk raises the factory.md byte cap 4875 to 5050 for point 7's two added clauses, justified by that text in this diff (file is 5,035 bytes).
Scope Check: CLEAN. Intent: nine crew habits written into gstack docs and agent-loaded prose. Delivered: those habits in factory.md, lane-card.md, crew/docs/captain.md, docs/ship-policy.md, docs/working-across-agent-systems.md, eval-plan and the runaway-stopper templates.
Coverage: 4 of 7 changed runtime files have no changed test naming them (prose contracts; audit-only, three tests proposed, none written).
Exploratory QA: pass (2 of 2 smoke probes on
gstack-eval-plan prereg --init/--check, rerun at 520da60).Evals: selector full-fallback (unknown dependencies in crew/docs/captain.md and the runaway-stopper templates), so the paid screen decides.
Review notes
Below the blocking floor; recorded here and not fixed in this PR.
runaway-stopper/templates/successor-brief.md:6registering every automation or webhook can create duplicates or dead webhook URLs; should say rebind in placelib/eval-plan.ts:27the machine-check line is not enforced by prereg --checktest/capy-skill-wrapper.test.ts:697factory.md byte cap raised again, 15 bytes headroomdocs/working-across-agent-systems.md:36reworded published account without a cited sourcelib/eval-plan.ts:68the answers check names fewer places; /tmp and sibling checkouts not namedDocumentation
Status: current. The audit found no documentation corrections to make.
Scope: 12 files committed from 41729a0 to 520da60 on capy/agent-habits-second-batch-gst-3336: factory.md, lane-card.md, crew/docs/captain.md, docs/ship-policy.md, docs/working-across-agent-systems.md, the eval-plan template, SKILL.md and lib/eval-plan.ts, the runaway-stopper handoff and successor templates, a changelog.d fragment and a test budget. There were no staged, unstaged or new files.
Documentation health:
pregate.md#allowlistanchor resolves.Coverage debt: the runaway-stopper skill's rotation step mentions PR subscriptions but not the new Clocks table, so the change has reference-only coverage there.
Diagram drift: none.