Use Garry Tan's exact Claude Code setup: 23 opinionated tools that serve as CEO, Designer, Eng Manager, Release Manager, Doc Engineer, and QA
TypeScript
fix(ship): trim DRIVER.md back under its 12 KB cap (main red since #3886) (#3981)
Garry Tanad6e1db1590b
diff --git a/changelog.d/gsta-266-driver-trim.md b/changelog.d/gsta-266-driver-trim.mdnew file mode 100644index 000000000..06c5f6ce6--- /dev/null+++ b/changelog.d/gsta-266-driver-trim.md@@ -0,0 +1,4 @@+bump: micro+---+### Fixed+- **`ship/DRIVER.md` fits its 12 KB limit again.** The restart line from #3886 pushed it to 12,329 bytes, past the 12,288-byte cap that `test/ship-driver.test.ts` enforces, so the free tests failed on main. The fix trims wording in five places and keeps every instruction. The file is now 12,282 bytes.diff --git a/ship/DRIVER.md b/ship/DRIVER.mdindex 66e2c0963..911d3b5cb 100644--- a/ship/DRIVER.md+++ b/ship/DRIVER.md@@ -7,13 +7,13 @@ Read this, not `ship/SKILL.md`, when a parent agent runs /shipthe `GSTACK_LAUNCH` assignments your installer printed (`. <its GSTACK_LAUNCH_FILE>`), never`export $(...)`, `env`, `printenv` or a bare `set` in a tool fence.-**Rules.** Each phase below is one call: one program (Capy: an execute program; else a script)+**Rules.** Each phase below is one call: one program (Capy: execute; else a script)that runs the bins, reads, dispatches and waits, returning only result lines and reader-outputs, printed verbatim. The model keeps only lead judgment, fixes, CHANGELOG, PR prose,+outputs verbatim. The model keeps only lead judgment, fixes, CHANGELOG, PR prose,gates, the report. `STOP:` (exit 3) means nothing after it ran; `NEXT:` namesthe next act. Read a section only when a phase or the list at the end sends you, never-up front. A STOP or decision this file does not cover: read `ship/SKILL.md` at that step, finish it-there, come back. Unattended, take a question's recommended option (log it); gate+up front. A STOP or decision this file does not cover: read `ship/SKILL.md` at that step, finish there,+come back. Unattended, take a question's recommended option (log it); gatedispositions and approvals stay pending and end the run. Keep a private invocation record (`--record`): write its six headings at Phase 1, fill each as its phase ends: **Checks**(Phases 2-4: lanes, pregate, evals, `Coverage:`, the plan checks, `Exploratory QA:`, `Scope Check:`), **Decisions** (anyphase: each answered or auto-taken question, verbatim), **Reviews** (Phases 3-5: the plan line,@@ -60,14 +60,14 @@ Install check, this file.## 2. Preflight, tests, evals and reads: Steps 0.9, 1, 2, 3, 4, 5, 6, 6.5, 10`gstack-ship-budget start --record <rec> --mode observe [--token-cap <n>] --reading R --credits C`, then-`gstack-ship-preflight --base <base> --run <run dir name> --lane <label>=<command>...` (repo test commands). `CARRY: carried` ends the run on its `GSTACK_RESULT:`+`gstack-ship-preflight --base <base> --run <run dir name> --lane <label>=<test command>...`. `CARRY: carried` ends the run on its `GSTACK_RESULT:`line. `ship_lanes_from`: push early (`sections/tests.md#ci-carry`). A lane passes on `tests_ran: N` with exit 0; `0` is ZERO-RUN (failed); `unknown`is `count unavailable`. In-branch failures stop; after a repair rerun `--tests-only`.`requires-remote` needs `gstack-pregate clear` before Step 18. When prompts, templates, judges or evalharness changed, start the eval selector and pre-merge command (detached past 30 min); elserecord `evals: none affected`. Step 6.5 runs only if `gstack-greptile-early detect` findsGreptile. Then `gstack-ship-preflight --audit --base <base> --out <run dir>` writes the diff once-(`CONTEXT:`) and the TODOS.md items naming touched paths (`TODOS:`), and prints the coverage map,+(`CONTEXT:`) and the TODOS.md items on touched paths (`TODOS:`); prints the coverage map,plan candidates and `READER: coverage=<needed|none> plan=<needed|none>`; read a section only when its reader is `needed`.Never read TODOS.md or the full diff into the parent. A `PERSIST:` hint never replaces Step 9.diff --git a/ship/DRIVER.md.tmpl b/ship/DRIVER.md.tmplindex f3f9594fc..3f13a1204 100644--- a/ship/DRIVER.md.tmpl+++ b/ship/DRIVER.md.tmpl@@ -5,13 +5,13 @@ Read this, not `ship/SKILL.md`, when a parent agent runs /shipthe `GSTACK_LAUNCH` assignments your installer printed (`. <its GSTACK_LAUNCH_FILE>`), never`export $(...)`, `env`, `printenv` or a bare `set` in a tool fence.-**Rules.** Each phase below is one call: one program (Capy: an execute program; else a script)+**Rules.** Each phase below is one call: one program (Capy: execute; else a script)that runs the bins, reads, dispatches and waits, returning only result lines and reader-outputs, printed verbatim. The model keeps only lead judgment, fixes, CHANGELOG, PR prose,+outputs verbatim. The model keeps only lead judgment, fixes, CHANGELOG, PR prose,gates, the report. `STOP:` (exit 3) means nothing after it ran; `NEXT:` namesthe next act. Read a section only when a phase or the list at the end sends you, never-up front. A STOP or decision this file does not cover: read `ship/SKILL.md` at that step, finish it-there, come back. Unattended, take a question's recommended option (log it); gate+up front. A STOP or decision this file does not cover: read `ship/SKILL.md` at that step, finish there,+come back. Unattended, take a question's recommended option (log it); gatedispositions and approvals stay pending and end the run. Keep a private invocation record (`--record`): write its six headings at Phase 1, fill each as its phase ends: **Checks**(Phases 2-4: lanes, pregate, evals, `Coverage:`, the plan checks, `Exploratory QA:`, `Scope Check:`), **Decisions** (anyphase: each answered or auto-taken question, verbatim), **Reviews** (Phases 3-5: the plan line,@@ -58,14 +58,14 @@ Install check, this file.## 2. Preflight, tests, evals and reads: Steps 0.9, 1, 2, 3, 4, 5, 6, 6.5, 10`gstack-ship-budget start --record <rec> --mode observe [--token-cap <n>] --reading R --credits C`, then-`gstack-ship-preflight --base <base> --run <run dir name> --lane <label>=<command>...` (repo test commands). `CARRY: carried` ends the run on its `GSTACK_RESULT:`+`gstack-ship-preflight --base <base> --run <run dir name> --lane <label>=<test command>...`. `CARRY: carried` ends the run on its `GSTACK_RESULT:`line. `ship_lanes_from`: push early (`sections/tests.md#ci-carry`). A lane passes on `tests_ran: N` with exit 0; `0` is ZERO-RUN (failed); `unknown`is `count unavailable`. In-branch failures stop; after a repair rerun `--tests-only`.`requires-remote` needs `gstack-pregate clear` before Step 18. When prompts, templates, judges or evalharness changed, start the eval selector and pre-merge command (detached past 30 min); elserecord `evals: none affected`. Step 6.5 runs only if `gstack-greptile-early detect` findsGreptile. Then `gstack-ship-preflight --audit --base <base> --out <run dir>` writes the diff once-(`CONTEXT:`) and the TODOS.md items naming touched paths (`TODOS:`), and prints the coverage map,+(`CONTEXT:`) and the TODOS.md items on touched paths (`TODOS:`); prints the coverage map,plan candidates and `READER: coverage=<needed|none> plan=<needed|none>`; read a section only when its reader is `needed`.Never read TODOS.md or the full diff into the parent. A `PERSIST:` hint never replaces Step 9.