mirror of
https://github.com/garrytan/gstack.git
synced 2026-11-23 08:31:44 +01:00
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. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> Review-Finding: v1/adversarial-native#2 reader=adversarial-native
4.9 KiB
4.9 KiB
How we work: gstack's factory on Capy
Your crew's CREW.md and recorded approvals decide who may merge, update a base, spend or touch production; urgency changes priority, never permissions or gates. With no Captain, ask the person; never merge without their word. Story: capy/README.md; examples: org Drive software-factory/README.md.
- Plan, then a yes. New functionality starts with /autoplan sized to the work; the build waits for "do it". [SKILL.md: Plan, approve, ship]
- Someone else merges. Run /ship to a receipt on your final pushed head, send one READY quoting gstack's verify output verbatim, and stop. One open PR per lane; follow-ups ride it. The merge owner merges on green and assigns versions; docs-only PRs run only docs checks. [crew/docs/captain.md: The READY contract]
- Block only on the floor. A finding blocks if it would fail a test, break production, or lose data or secrets; deferred findings stay on the PR and never become issues. [docs/review-policy.md]
- Go forward, don't stop and fix. Set a bad item aside, keep the rest moving, say what you set aside and repair it after. A red main gets its culprit reverted; a floor blocker still stops its PR. Follow-ups get one issue with an owner and one PR. [crew/docs/captain.md: Lane discipline]
- Severe first, same gates. A severe user-facing bug jumps the queue with a short plan; receipt, checks and merge owner stay.
- Trade findings, not small talk. Another crew's finding goes to its Captain, through yours, with evidence. A relay quotes its source unchanged and marked: who wrote it, when, and what you checked.
- Measure before you act. Run the real system on the merged tree you ship; a real run outranks a reviewed plan. A green fake or dry run isn't done until one run drives the real path. Before a check, budget or count decides, confirm it sees your change and counts what its name says. Each number names its run, commit or uncapped query; say what you did not verify.
- Evals decide, and losses get reported. Preregister bars, cap and stop rule before paying [/eval-plan]. Cheap proof (a keyless fake, a smoke) first. Controls: no-skill and placebo arms, clean decoys. Report use and pass apart; quote spend from the meter. A new part needs proof it helps or a dated test plan [ETHOS.md: 9. Earn Its Place].
- Flakes: one rerun, a ledger, a daily fix. Only the policy's rerun, never for a harness or infra red; a second red is real; never loosen a test. [crew/docs/captain.md: The daily flaky pass]
- Quiet. Messages wake the Captain cold: send READY, a blocker, done or a Captain or owner call, else end_turn; no acks or progress notes. Reports and replies open with
Failed or skipped:,Unverified:andAlso changed:lines (each item, or none), under 250 words; top 10 of long lists. Findings write-ups follow [ETHOS.md: 8. Explain the Number]. Broadcasts go in its notes. - Ask once, plainly (every skill's Ground Rules). One ask per decision, explained like the owner is five: your Captain's name, then a lettered line each: "A:
hit problem p, which happens when h. We could do 1) x, 2) y or 3) z. Recommendation x because why. A1 to take recommendation." "do it" takes every recommendation; "A2" takes option 2. Owner tasks: the exact link (in Capy: path and field), numbered steps, the reply word. Never re-ask a standing rule. [crew/docs/captain.md: The ask format] - Fresh threads, closed out. One thread per unit of work. A thread keeps its PR until it merges or closes and hands off only then, never mid-PR on a token count; past 500M own tokens it checks in with its Captain once and carries on. Standing threads that wake on every event (merge lanes, watchers) rotate at 250M tokens or 3 days; look at any subagent past 50M [/runaway-stopper]. Crew threads never create threads: ask your Captain (Captain to Captain across projects), or report one you made by code for crew.add. Its Captain archives only its crew's threads, never one holding an open PR, successor or not (R91), or an open issue; a PR closes only as landed, superseded or dropped. Threads outside every crew are the owner's, even its automation's. Size reviews to the diff. [docs/ship-budget.md; crew/docs/captain.md: New threads join the crew]
- The owner's model preference.
gstack-models resolve --role agentpicks agent models, except cross-family voices and eval subjects. [docs/model-policy.md: Your model preference] - Finish before starting. No new fix thread in a repo while more than 10 finished PRs (green, reviewed, waiting only to merge) sit in its queue: merge or close them first. Severe hotfixes are exempt: security, data loss, red main, a broken install. [crew/docs/captain.md: New threads join the crew]
- Subagents earn their context. Start one only for parallel work you can throw away, a fresh-eyes review or another model family, never for a step of your own procedure; name the compact result it returns. [crew/docs/captain.md: Lane context]