Skip to content

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
56.3 KB
Raw Blame

gstack fix wave (October 15, 2026): open PRs and issues, ordered by severity

URGENT, outside this plan

  • bin/gstack-upgrade:50 compares a C:/… path with a /c/… path and refuses on every Git Bash install; bin/gstack-doctor-check.sh:372-374,401 recommends that command, so it is part of the Windows recovery path (PR 1, item 3). The file belongs to draft #3190 (capy/next-wave, thread jam_01M4YA0TAXXGQ01VVWMW71091K). Owner: the #3190 thread. This wave reports it there with the fix (compare gstack_path_shell of both sides, bin/gstack-path-spelling.sh) and does not edit the file.

Implementation plan

Context

Base: origin/main 47d639a (v1.91.101.0). Input: every open PR (25) and open issue (≈70) on garrytan/gstack as of 2026-10-15, triaged in six read-only lanes on a Capy cloud machine. Each lane reviewed external PR diffs line by line as untrusted input (scope, egress, credentials, dependencies, CI permissions, weakened tests), checked each issue's claim against main's code, and reproduced with focused tests where cheap. Evidence: ~/.capy/work/fixwave/triage-{A..F}.md. This is plan revision 3. Revision 1 was reviewed by six voices (CEO, DX, Eng; Claude Opus 5.5 and GPT-6.1 Sol each): 60 findings, no Critical. Revision 2 folded them in and was reviewed again by the same six voices: 37 findings, no Critical, no user challenge, every revision-1 finding confirmed addressed. This revision folds in the revision-2 findings. The Review record lists what each phase raised and how it was handled.

Owner request (Garry, 2026-10-15): "do a fix wave on gstack — plan, autoplan, eli5 for approval — go through all PRs and issues, figure out what to fix here in a wave, be circumspect on all code written by others, order by severity and priority." Garry merges gstack; this wave opens PRs and never merges them.

In-flight work this wave must not collide with. Garry's draft #3190 (capy/next-wave, claims v1.91.102.0) changes 110 files. None of this wave's items are fixed by it (each lane diffed its files against origin/capy/next-wave). Files both touch: setup (items 12, 13, 16: disjoint hunks), bin/gstack-bun-version.sh (item 11: disjoint function; #3190 adds new gstack_bun_status callers in the _gb_* namespace), lib/result-codes.ts and docs/troubleshooting.md (append-only), lib/pregate/checks/lanes.ts (item 9: one-line conflict), and generated SKILL.md/goldens (items 24, 25). lib/pregate/lane-selection.ts, lib/pregate/import-graph.ts, bin/gstack-session-update, setup.ps1, lib/redact-engine.ts, lib/cso/**, browse/**, lib/regen.ts, lib/restamp.ts, lib/gate-diff/**, bin/gstack-evidence, gstack-upgrade/SKILL.md.tmpl are untouched by #3190 (git diff --name-only origin/main...origin/capy/next-wave).

Security review result. No external PR in the wave has a red flag: no new egress, telemetry, credential handling, postinstall scripts, or CI permission changes; #3145's lockfile adds no new packages; dependabot #3175's five action SHAs match upstream tags. Two PRs are rejected on safety grounds: #2923 drops the Playwright patchedDependencies entry that keeps Windows windowsHide (reintroduces console-flash #2160/#1989), and #1796 writes a bearer token through writeFileSync+chmod (follows a planted symlink), hard-codes ~/.gstack against the state-root chain, and sends the cached bearer to a device address without checking which app listens.

How external code is adopted. Commits are cherry-picked onto the wave branch with original authorship; our changes land as separate commits on top; release churn (VERSION, CHANGELOG, package.json version, e.g. #3189's 1.91.102.0 commit 3d1caac) is dropped. Fork CI is not approved (it would run untrusted code with this repo's runner); the cherry-picked commits run on the wave branch's own CI. Every adopted PR gets at least one reviewer-written behavioral test in addition to the author's own; where that is impossible the PR body says "author test, reviewed". After Garry's review pass (never before: reporters would be running unreviewed code), each source issue gets a comment with exact commands to try the branch, labelled by shell: cd "<install>" && git checkout -- 'SKILL.md' '*/SKILL.md' '*/sections/*.md' && git fetch origin <branch> && git checkout --detach FETCH_HEAD && ./setup, and to go back: cd "<install>" && git checkout main && ./setup; it says auto-update pauses while a detached revision is checked out. Confirmations within 48 hours are recorded in the PR body (the reporters have the PS 5.1, MSYS tar, OrbStack, zsh, Cursor-1.31 and Claude Code 2.1.300 environments CI lacks); they are evidence, not a merge gate. The source PR is closed after merge with a comment naming what changed and why; issue reporters and PR authors are credited in the CHANGELOG.

Repo constraints: SKILL.md is generated from .tmpl; new logic in lib/*.ts behind thin bin/ entrypoints; test/module-size-ratchet.test.ts; state paths through lib/state-root.ts; result codes in lib/result-codes.ts with docs/troubleshooting.md anchors (test/troubleshooting-anchors.test.ts); every test subprocess has a timeout (test/spawnsync-timeout-tripwire.test.ts, which three adopted PRs fail today: #3188, #3178, #3181); parity and context-budget ratchets for template edits; ship is stamp-at-merge PATCH.

Thesis: people stuck this week get unstuck, including the installs that are already stuck; community fixes land with their authors credited; nothing a stranger wrote reaches main without an independent test.

Release promises (the finish line)

  • P1. No user is stuck, including already-stuck installs. An /autoplan run survives a Claude Code 2.1.300 compaction; a conflicting autostash never leaves conflict markers in a live install and never silently hides a user's edit; a Windows install held by the tar bug and a macOS zsh user get a verified recovery path; setup.ps1 runs under Windows PowerShell 5.1; /cso Semgrep returns findings; /cso works with OrbStack; the browse daemon recovers when its last tab is closed outside the CLI.
  • P2. Windows bugs are proven on Windows, in CI on windows-latest (PowerShell 5.1, real MSYS tar, Git for Windows), not only by Linux emulation.
  • P3. Pregate selects the right tests for bats repos and Next.js/tsconfig-alias repos without dropping a required platform receipt, and runs on Windows instead of refusing with a misleading message.
  • P4. Every new failure state says what happened and the one command that fixes it, with a troubleshooting entry under its exact error text and a CHANGELOG "If you…" line for each affected cohort.
  • P5. The tracker is honest: fixed issues are closed with file:line evidence on a dated follow-up; each deferred item has a reason, an owner and a revisit date.

Delivery shape

Seven PRs with stated dependencies, each a PATCH release with its own slot from bin/gstack-next-version at ship time, each running bun run test once on its frozen tree (on Ubicloud; this machine has 4 cores). PR 1a ships first and depends on nothing that has never run before.

PR Contents Base Depends on Blockers it can have
1a. Recovery, cross-platform items 1, 5, 6, 7, 11 main — its own tests
1b. Recovery, install and Windows items 2, 3, 4, 12, 13, 16, W PR 1a's branch (gh stack) 1a (Step 4 of /gstack-upgrade is edited by items 11 and 2) the first run of the Windows job
2. Windows script invocation item 10a, item 8's manifest-parser half main — its own Windows job file
3. Maintenance item 8's import-graph half, items 15, 19–23 main — #3145 classifier smoke (split out if unavailable)
4. Prompt changes items 17, 14 main — the free spike; paid gate cases and judges priced and approved first
5. After #3190 items 9, 10b, 24, 25, the doctor rows (D), the Windows curation move capy/next-wave #3190 #3190
6. Census repair item 18 main, or folded into PR 5 if the repair edits ship/ — evidence read first

Sibling PRs share no file except the integrator-owned append-only set (lib/result-codes.ts, docs/troubleshooting.md, test/fixtures/module-size-ratchet.json, CHANGELOG.md, package.json version line). Coordinator exception, recorded in each PR body: lane-check reports those files as intersections; the exception covers exactly that named set, and after any sibling or #3190 merges, the next PR merges main, resolves the appends, and restamps. Every other intersection is a blocker. For #3190 the exception also covers setup (PR 1b's hunks) and bin/gstack-bun-version.sh (PR 1a), backed by a receipt bound to both SHAs: the merged tree is computed once per pair (both orders recorded, the tree hash is the same), and on that tree gen:skill-docs freshness and the focused tests for both PRs' touched files run once. Files #3190 also changes that this wave needs (lib/pregate/context.ts, lib/pregate/index.ts, bin/gstack-doctor-check.sh, bin/gstack-doctor-components.sh, lib/doctor-components.ts, scripts/lib/windows-curation.ts, .github/workflows/free-tests.yml) are edited only in PR 5.

This thread registers dated follow-ups: 2026-10-22 (post the closes below) and 2026-10-29 (if #3190 has not landed, this thread rebuilds PR 5 on main, resolving the lanes.ts, bin/gstack-pregate, context.ts/index.ts and doctor hunks itself, and tells the #3190 thread).

Lanes and file ownership (each lane on a fresh machine, its own branch, bisected commits, no VERSION/CHANGELOG/package.json-version edits):

  • Lane A (PR 1a): lib/claude-journal-records.ts, lib/redact-engine.ts and the scanner capture path in lib/cso/** (process.ts, docker.ts, watchdog.c, the executor), browse/src/browser-manager.ts, browse/src/server.ts, bin/gstack-bun-version.sh (_gstack_bun_below only, no new _gb_* globals), new lib/sanitize-echo.ts + its bash twin, gstack-upgrade/SKILL.md.tmpl (Step 4's floor check only).
  • Lane B (PR 1b, on top of A): bin/gstack-session-update, new bin/gstack-ff-update, bin/gstack-config, bin/gstack-memorable, new bin/gstack-claude-root.sh, setup (hook-root, Cursor and Playwright hunks; the only PR that edits setup), setup.ps1, bin/gstack-browser-ensure, gstack-upgrade/SKILL.md.tmpl (Step 4's pull), .github/workflows/windows-setup-e2e.yml, test/setup-ps1.test.ts.
  • Lane C (PR 2): new lib/script-invocation.ts, hosts/claude/hooks/spawn-bin.ts, lib/gbrain-exec.ts, lib/regen.ts, lib/gate-diff/git.ts, bin/gstack-gate-diff, lib/restamp.ts, bin/gstack-evidence, lib/pregate/checks/secrets.ts, lib/pregate/lane-selection.ts (manifest parser and bash -c; the only PR that edits it), new .github/workflows/windows-pregate-e2e.yml.
  • Lane D (PR 3): lib/pregate/import-graph.ts, browse/src/terminal-agent.ts, bin/gstack-skill-end, bin/gstack-timeline-log, bin/gstack-gbrain-sync.ts, test-only files for #3163/#3156, .github/workflows/* action SHAs (not the two Windows job files), .github/dependabot.yml, bun.lock and dependency lines of package.json (#3145), README/CLAUDE.md skill lists, the OSV ledger comment, ios-qa/daemon/src/devicectl.ts and the ios-qa how-to.
  • Lane E (PR 4): scripts/resolvers/outside-voice-steps.ts, the three plan-skill templates' outside-voice sections, bin/gstack-ceo-plan-find, plan-eng-review/SKILL.md.tmpl.
  • Lane F (PR 5): lib/pregate/checks/lanes.ts, bin/gstack-pregate, lib/pregate/context.ts, lib/pregate/index.ts, the doctor files, scripts/lib/windows-curation.ts, scripts/gen-skill-docs.ts resolvers, the size-guard test.
  • Lane G (PR 6): the census case and whatever its evidence names.

Every item lands with a test that fails on 47d639a first (named per item). No existing assertion is weakened; existing pins that change are named per item as intentional contract changes.

PR 1a and PR 1b — Recovery (High severity; ship first)

PR 1a holds items 1, 5, 6, 7 and 11; PR 1b holds items 2, 3, 4, 12, 13, 16 and W (items 13 and 16 move here so that setup has one owner).

1. /autoplan locks after a Claude Code 2.1.300 auto-compaction — adopt #3196 (fixes #3194). After compaction the preservedSegment boundary makes a parent cycle, the phase guard denies every phase entry with close_incomplete, and the run cannot continue. #3196 (vilano93) teaches lib/claude-journal-records.ts the boundary. Verified: test/autoplan-compaction-preserved-segment.test.ts fails 2/7 on main, passes on the PR; CI green; two compactions hold. Added: when owned nodes are unreachable from the root after the walk and a compact_boundary record (its logical parent or preserved list) explains the unreachable component, map it to the guard's existing unrecognized_shape disposition (allow with a visible warning and a decision-log row) rather than a false close_incomplete; orphaned or not-yet-flushed components keep today's behaviour, so the fail-open surface does not widen beyond compaction. Listed under the PR's gate-integrity edits. Negative controls: the existing denial tests and captured fixtures (autoplan-publication-guard, -hook, guard-reasons, autoplan-publication-boundary-361c.json) still deny. Reviewer test: a journal with a ~50k-record history and three compactions finishes inside the hook's time budget (memoize descends per walk if it does not).

2. A conflicting autostash leaves conflict markers in the live install — adopt #3189 and #3191 through one shared bin. On git 2.55, merge --ff-only --autostash with a conflicting stash exits 0, leaves markers in tracked files of the install, and setup runs over them. #3189 (BenjaminDSmithy) detects unmerged files, restores the checked revision, and keeps the stash. Verified: 8/10 of its tests fail on main. Take commits 069b80b and 8dc0078; drop 3d1caac.

  • The fast-forward-plus-recovery moves into a new bash bin bin/gstack-ff-update <dir> <rev>, the only code that moves an install's tree, called by bin/gstack-session-update, by /gstack-upgrade Step 4 and by the held-install recovery command (item 3). Step 4 never reimplements recovery in prose.
  • Transaction ownership: the bin takes an install-scoped lock at $(git -C <dir> rev-parse --git-common-dir)/gstack-ff.lock (the updater's TTL and reap-by-mv logic) before any merge, update-ref or reset; callers keep their own locks. Inside the lock it captures the whole working tree as-is (tracked edits, unmerged and marker-laden files, and anything written after an earlier stash) into a rescue commit through a private index, then resets to the target only if the working-tree hash still equals the captured one; otherwise it refuses with autostash-unrecoverable: and changes nothing. The regenerable footprint (SKILL.md, */SKILL.md, */sections/*.md, rewritten by gstack-patch-names in prefix mode) is discarded first, as Step 4 does today.
  • Rescue refs are named by the rescue commit id (refs/gstack/rescue/<oid>), created compare-and-create, never overwriting an unrelated ref. Tests: Step 4 racing a background updater on one install with two state roots; a barrier-controlled edit written between capture and reset (refused, edit kept); same-second recoveries; a pre-existing ref.
  • A recovery that shelved edits is never silent: the session-start banner names the files and the rescue ref, says the edits conflicted with the update, and makes inspection the default (git -C '<dir>' show --stat <ref>); restoring is guided out of the live tree (git -C '<dir>' diff <target> <ref> > ~/gstack-local-edits.patch), never a bare stash apply into the install. The line repeats at most daily until the ref is deleted; the doctor lists rescue refs with the delete command (PR 5, item D). Ordinary success stays quiet. Test the background-to-foreground handoff.
  • #3191 (Jesssullivan) reaps the lock heartbeat and its sleep child on exit (5/5 of its tests fail on main); update the two static pins in test/session-update-autostash.test.ts it breaks (intentional pin change).
  • The #3189 test shim pins the real git binary once (resolving through any PATH wrapper) and fails fast with a named reason when it cannot, so no environment note is needed.

3. Windows auto-update is held on every release — fix #3184, plus the recovery path for held installs. hook_incoming_hold (bin/gstack-session-update:100) extracts the incoming revision with git archive | tar; MSYS tar cannot create the connect-chrome symlink (it precedes its target), the failure is fail-closed since 1.91.89.0, and the banner shows a stale "bun not found" instead of the hold.

  • Fix: extraction without tar and without symlinks, both commands in one subshell with a private index: ( export GIT_INDEX_FILE=<tmp>/index; git read-tree <incoming>; git -c core.symlinks=false checkout-index -a --prefix=<tmp>/tree/ ) (symlinks become plain files containing the target path, which the hook check never reads). Tests: a valid installed hook against an invalid incoming hook causes the hold (proving the incoming bytes were checked); the real index is byte-identical afterwards. A tripwire test asserts that no hooked path or hook-imported module in the tree is a symlink, so a future symlinked hook fails loudly instead of reading as missing.
  • The held reason carries the first 200 bytes of the failing command's stderr with newlines flattened and control characters stripped (as :322 does for PULL_REASON). Test: stderr containing \nstages=x and an ESC sequence.
  • Banner: the hold line prints before the stage line; each new hold reason (unmerged-files:, autostash-unrecoverable:, bun-version-unreadable:, hook-check-unavailable: with stderr) has its own banner case naming the exact command and a troubleshooting anchor, and no stages=setup fix prints while unmerged entries exist. Every path in a printed command is shell-quoted; tests execute the emitted commands against isolated installs whose paths contain a space and an apostrophe.
  • Already-held installs: their old updater cannot deliver the fix, and the old /gstack-upgrade Step 4 still has the autostash hole, so recovery runs the new gstack-ff-update fetched from the new revision. Published forms, each labelled with where it runs: in Git Bash, cd "<install>" && git fetch origin main && git show FETCH_HEAD:bin/gstack-ff-update > "${TMPDIR:-/tmp}/gstack-ff-update" && bash "${TMPDIR:-/tmp}/gstack-ff-update" . FETCH_HEAD && ./setup; in Windows PowerShell 5.1, the same script run through Git's bash.exe followed by .\setup.ps1; in Claude Code, ask it to run the Git Bash form. Each form handles clean, dirty-conflicting, already-unmerged and prefix-mode installs (the bin discards the footprint and rescues everything else). bin/gstack-upgrade's Git Bash refusal is reported to #3190 (URGENT block). The forms go into the CHANGELOG "If you…" block, the troubleshooting entry and the #3184 closing comment.
  • Test that fails first: test/session-update-hook-hold.test.ts with an incoming revision containing a symlink sorted before its target and a PATH tar shim emulating MSYS; main logs HELD hook-check-unavailable, fixed code fast-forwards.

4. setup.ps1 fails under Windows PowerShell 5.1 — fix #3130. PS 5.1's legacy native-argument passing strips the double quotes inside the bash -c string at setup.ps1:59. Reproduced with pwsh $PSNativeCommandArgumentPassing='Legacy'. Fix: a -c string with no double quotes, set -f; IFS=; mapfile -d '''' -t argv < $1; rm -f -- $1; exec ./setup ${argv[@]}; validated in Legacy and Standard modes with a space in TMPDIR and adversarial args ($(touch PWNED), it's, "quoted", ;echo injected, backticks, *, a\"b\), none executed, all forwarded exactly. An empty-string argument is refused in PowerShell before dispatch (setup.ps1: argument N is empty; setup takes no empty arguments). Test that fails first: a behavioral case in test/setup-ps1.test.ts under Legacy mode (exit 2 on main); on win32 the same test runs powershell.exe; the pinned-source assertion changes (intentional).

W. Windows CI proves items 3 and 4 natively. The existing windows-setup-e2e job gains setup.ps1 under powershell.exe (5.1) from a checkout path containing a space, setup.ps1 in its path filter, and the held-install journey: a local bare origin whose main is this PR's HEAD plus a synthetic later commit containing connect-chrome; a prefix-mode v1.91.101.0 install in three states (clean, dirty-conflicting, already-unmerged); auto_upgrade=true with the throttle cleared, polling the updater log. Assertions: (1) the v1.91.101.0 updater logs HELD hook-check-unavailable (so the test is not vacuous); (2) the PowerShell recovery form reaches HEAD with every local edit present in a rescue ref; (3) the new updater then logs UPDATED for the synthetic commit. The job asserts executed counts, not skips. PR 2 adds its own job file for pregate and restamp.

5. /cso Semgrep always reports INVALID_OUTPUT — fix #3185. The scanner path splices redactions into raw JSON; redactFindingSpans (lib/redact-engine.ts:577-583) replaces a bare 10+ digit number ("max_memory_bytes":1145427776, drizzle "when" epochs) with an unquoted placeholder, JSON.parse fails, and the report is discarded. A delimiter-only rule is not enough (it misses -4155551234 and can misfire inside strings). Fix: the scan operation's declared output format is carried through the real capture path (executor, Docker capture, process boundary) for scan stdout only; version probes and diagnostic stderr stay plain. For JSON-declared plans, the tokenizer runs over the concatenated stdout (not per interleaved run), tolerates multiple top-level values and NDJSON, is string- and escape-aware, and replaces each number token a merged span touches (-?digits, fraction, exponent) with the quoted placeholder, number by number; a span that crosses a token boundary or a structural character withholds the stream. Spans inside JSON strings keep today's in-string replacement; non-JSON streams are unchanged. Marker-only withholding and cross-stream release checks are kept. Tests that fail first: JSON.parse(redact('{"a":4155551234}')) succeeds with the value redacted; a spliced Semgrep report with "time":{"max_memory_bytes":…} returns status: 'complete'. Also: negative, exponent, [4155551234,4155551235], multi-line NDJSON, whitespace, punctuation-inside-string and escaped-quote cases; the real version-then-scan capture sequence with stderr interleaved; the output is a fixpoint of the views check at lib/cso/process.ts:120; a non-JSON stream keeps the unquoted form (test/cso-eval.test.ts:1029,1071). Behavior change listed.

6. /cso cannot use OrbStack's Docker — adopt #3188 (fixes #3187). executable() returns the realpath and OrbStack's multicall binary dispatches on argv0. #3188 (aegixx) spawns the trusted canonical path with argv0: 'docker', including in watchdog.c. Verified with a fake multicall binary; its test fails on main. Change: the python3 spawnSync at test/cso-docker-argv0.test.ts:109 gets a timeout. The trust check still runs on the realpath.

7. The browse daemon wedges when its last tab is closed outside the CLI — adopt #3179 with changes (fixes #3167). Reproduced on main: after an external close every command, status and stop included, throws "No active page". #3179 (aftabkh4n) reopens a page on demand. Changes: status and stop bypass recovery (so a closed headed context can still be stopped); a failed recovery maps to a named error carrying the restart command; a command that ran on a recreated tab prints a one-line warning. Reviewer tests: status, goto and stop after an external close; the closed-context case; a text read after recovery shows the warning.

11. The Bun floor check fails open under zsh — fix #3195 (promoted: zsh is macOS's default shell, so /gstack-upgrade Step 4 accepts Bun 1.3.2 there). _gstack_bun_below relies on word-splitting $_gb_core; zsh does not split, [ -ne ] errors, and every error path reads as "not below". Fix: compare the already-parsed _gb_maj/_gb_min/_gb_pat (copied between the two parses, no new _gb_* globals) with $((10#…)); a parse failure returns a distinct status that every caller treats as a hold and prints BUN_VERSION_UNREADABLE (the version output and the bun path, both passed through the one flatten-and-strip sanitizer every echoed external string uses, its own fix and anchor, never "bun upgrade"); Step 4 runs the check through bash -c. One version table (1.3.2, 1.3.3-canary.1, 1.3.3, 1.3.14, 1.4.2, 1.10.0, 01.04.02, 2.0.0, garbage) drives bash, zsh, bash --posix and the TypeScript twin's below(). Test that fails first: zsh -c '. bin/gstack-bun-version.sh; gstack_bun_status 1.3.2' expects too-old (skipped without zsh); a source assertion that Step 4 invokes bash.

12. Setup bakes an ephemeral CLAUDE_CONFIG_DIR into global hooks — adopt #3181 with changes (fixes #3180). #3181 (Brit-juho) registers hooks at $HOME when the config dir links back to it. Changes: bin/gstack-memorable has a verbatim copy of the old block, so gstack_canonical_claude_root moves into one sourced helper bin/gstack-claude-root.sh used by both; resolve()'s spawnSync gets a timeout (it fails the tripwire today); the PR's source-slicing test is rewritten to source the helper (intentional test change). Tests that fail first: test/setup-hook-canonical-paths.test.ts "per-session config dir linking back", plus a memorable case.

13. Cursor loads duplicate skills from 1.31-era unprefixed folders — adopt #3152 (fixes #3133; ships in PR 1b). #3152 (szsunyuan) removes unprefixed Cursor folders proven generated and keeps user-owned ones. Its test fails on main, passes on the branch; CI green. Reviewer test: a user folder whose SKILL.md is a symlink to somewhere outside any gstack checkout is kept. Setup prints which folders it removed.

16. Missing bunx is reported as a network failure — fix #3131 (ships in PR 1b). A winget Bun ships no bunx. Fix: bun x through setup's existing bun resolver and in bin/gstack-browser-ensure; rc 127 prints <resolved bun> x playwright install chromium exited 127 (command not found); install Bun from bun.sh (winget Bun ships no bunx), or skip with ./setup --no-browser (Git Bash) or .\setup.ps1 --no-browser (PowerShell). Test that fails first: test/setup-playwright-best-effort.test.ts with a winget-shaped Bun (bun present, no bunx); the existing bunx() stub is renamed (intentional: the block under test changes).

PR 2 — Windows script invocation (High)

10a. Windows pregate and restamp refuse because Bun cannot spawn bash scripts — fix #3197 on main's call sites. bin/gstack-wtree is spawned directly at lib/regen.ts:133, lib/gate-diff/git.ts:84, lib/restamp.ts:512, bin/gstack-evidence:200; gstack-slug at restamp.ts:591; gstack-redact at lib/pregate/checks/secrets.ts:38. gstack already has three conflicting Windows bash resolvers (hosts/claude/hooks/spawn-bin.ts:27 falls back to a bare PATH bash, the WSL trap lib/gbrain-exec.ts:211 warns about; lib/gbrain-exec.ts:180; setup.ps1:31).

  • lib/script-invocation.ts becomes the only TypeScript resolver, used by hooks' runBin, gbrain-exec, regen, restamp, evidence, secrets and lane-selection's bash -c. Order: GSTACK_GIT_BASH (canonical, the name setup.ps1 already reads), GSTACK_BASH as a deprecated alias at the same precedence in both setup.ps1 and TypeScript; then bash under git --exec-path (resolves through scoop-style shims, per-user and portable Git); then the known install paths; then a PATH bash only when it reports MSYS/MINGW (System32 and WindowsApps bash.exe, i.e. WSL, rejected); else an actionable refusal that lists each candidate tried with its rejection reason and names GSTACK_GIT_BASH. The same text is used by the gbrain "no bash found" line and setup.ps1. Hooks' hot path stays spawn-free (Bun.which plus path arithmetic) with the resolved bash cached in the state root keyed by git.exe path and mtime; the Windows job times a hook invocation. Bun-shebang bins run as process.execPath <script>, falling back to Bun.which('bun') when the executable is not Bun (compiled binaries); the tripwire stops compiled entries importing the module unguarded. One fixture table (override, alias, scoop shim, per-user Git, portable Git, WSL rejection, missing) drives both the TypeScript resolver and setup.ps1 (pwsh on Linux CI with injected paths). Behavior change listed: a non-MSYS PATH bash is no longer used.
  • One wtreeFingerprint({cwd, timeoutMs}) that always sets GIT_OPTIONAL_LOCKS=0, accepts 40–64 hex (so SHA-256 repos get a fingerprint in gstack-evidence), and returns {tree}|{error}, distinguishing a launch/discovery failure from a helper exit. Consumers migrated in this PR, each keeping its fail direction with an error-path test: bin/gstack-gate-diff:157, lib/regen.ts:147, lib/restamp.ts:512, bin/gstack-evidence:200, plus artifact tree-string fields and the before-check, after-check, publication and no-scratch regen paths (sync and async). The pregate consumers (lib/pregate/context.ts:66,97, lib/pregate/index.ts:120) are files #3190 changes, so they move in PR 5 (item 10b) through a compatibility wrapper this PR keeps.
  • Tests that fail first: an invocation unit test with injected platform:'win32' and exists (per-user Git, portable Git, override, WSL rejection, missing bash refusal); a source tripwire that no lib/, bin/*.ts or hosts/** file spawns a shebang bin by path or calls spawnSync('bash'; a new windows-pregate-e2e.yml job runs gstack-restamp --dry-run and the regen/evidence paths under pinned Bun and Git for Windows (gstack-pregate run joins it in PR 5). Moving pregate tests back into the Windows curation is a PR 5 edit (scripts/lib/windows-curation.ts is a #3190 file).

PR 3 — Maintenance (Medium and Low)

8. Pregate misses tests in Next.js route groups and tsconfig path aliases — adopt #3176 with changes (import-graph half in PR 3; manifest-parser half in PR 2, which owns lane-selection.ts). #3176 (vocodestudios): test/pregate-import-graph-paths.test.ts 2 fail on main → 4 pass. Changes: aliases resolve exact match first, then the most specific wildcard, then target fallback; when no single target is established, union the plausible dependencies (the graph's "uncertainty selects more tests, never fewer" contract); relative extends followed to a bounded depth (the limit named in no-lane explain output); trailing commas dropped inside the tokenizer, not by a global regex. lib/pregate/lane-selection.ts:42's manifest parser keeps framework paths intact (today app/(shop)/[id]/page.test.ts becomes page.test.ts, which can erase a platform lane's receipt obligation at :91-94 and fall back to a local run at :100). Reviewer tests: overlapping aliases with both targets present in both key orders; exact vs wildcard; a callback-level fixture where a bracketed route test in a platform-only lane keeps its remote receipt obligation. PREGATE_NO_LANE explain output prints the unresolvable specifiers seen in test files, with the hint to declare dependencies or report the resolver gap.

15. Terminal-agent shutdown can orphan HUP-immune PTY descendants — adopt #3148 with changes (fixes #3147). On main the PTY hangup already kills children that honour SIGHUP; the PR's test fails on main only because it checks the instant the agent exits. Changes: record a spawn-time ownership identity for the PTY session/process group that stays valid after the leader exits; group escalation is not cancelled when the direct child exits; after the grace period the proven-owned group is terminated, so long-lived HUP-immune descendants are reaped, not just the direct child; spawn with process.execPath; refuse new connections during the shutdown grace. Reviewer tests: a HUP-immune grandchild through an actual terminal-agent shutdown is dead after the grace period plus one second; an early-exiting leader with a surviving descendant; a foreign group and a reused PID are never signalled.

19. skill-end pushes before writing its own completion event — fix #3198 (Kkkkkuro's patch). Move the completion gstack-timeline-log call above the final drain; gstack-timeline-log waits for its enqueue (one config read and a spool write; exits early when sync is off or unattended). Every consent, secret-scan and queue-lock gate is kept. Fix the stale "local-only, never sent anywhere" comment. Test from the issue (2/7 → 7/7).

20. gstack-config root-path prefix compare and unquoted recovery commands — adopt #3186. Its test fails 2 on main. Reviewer test executes the printed recovery command against a root path containing a space. The bash 3.2 case is [unverified] on Linux.

21. gbrain-sync appends a pin line git already ignores — adopt #3178 with changes. Changes: test spawnSync timeouts (lines 89, 100); the check is git -c core.excludesFile= check-ignore -v and accepts only a tracked .gitignore as the matching source (not global excludes, not .git/info/exclude); fixtures isolate HOME and XDG_CONFIG_HOME.

22. Test hygiene — adopt #3163 (fixes #3162) and #3156 (fixes #2967). #3163: ship-measure CLI tests get a private HOME (reproduced: bun run test leaves ship-measure-cli-* dirs in the real ~/.gstack/projects). #3156: fixture git ignores inherited hooks, using core.hooksPath=/dev/null instead of NUL (Git for Windows rejects NUL); its load-only explanation is unproven, the isolation is right regardless.

23. Dependencies and small docs. Adopt dependabot #3175 and update the upload-artifact SHA pin at test/model-policy-workflow.test.ts:542 (intentional: the pin tracks the workflow). #3145 (sonukapoor, declares sharp, clears two transitive advisories): adopted only with a non-skipping, isolated classifier model-load and inference smoke on the changed tree that asserts non-degraded output; if that smoke cannot run, only the sharp declaration lands and the inference-runtime bump is deferred. Close #2923; .github/dependabot.yml ignores only semver-minor and semver-major updates for playwright/playwright-core (patch and security updates still flow), and the 1.64 migration (re-key the windowsHide patch, the Dia/cookie qualification pins, the arm64 artifact name) is filed with owner Garry and revisit date 2026-11-15. Defer #3174 (agent-sdk 0.3: 12 new test type errors, breaks overlay-sdk-cancel-eof cancellation 2/2) with the same owner and date. #3169: drop the stale skill lists in README and CLAUDE.md, keep the /browse rule; a free test fails if any skill list present differs from the */SKILL.md names; the matching doctor warning for pasted skill lists ships in PR 5 (item D). #2753: reword the OSV image-size ledger (2.0.3 fixes it; html-to-docx pins ^1.0.0), keep its 2026-11-30 expiry. #1796: reimplement only GSTACK_IOS_LAUNCH_ENV in both launch paths: a JSON object of string to string; invalid JSON, non-string values, or keys colliding with the debug bridge's own variables refuse with a result code instead of launching without it; documented with an example in the ios-qa how-to; credit Bmathews721, close the PR.

PR 4 — Prompt changes (Medium; eval-gated)

17. The Claude outside-voice fallback depends on the removed TaskOutput tool — fix #3182. Claude Code 2.1.277 removed TaskOutput; the native fallback in plan reviews (codexPlanBoundedWait, scripts/resolvers/outside-voice-steps.ts:466) preflights it, so users without the Codex CLI never get a second voice. Reading the background output file is not an option (it is the raw transcript, which the skill rejects).

  • Step 1, a free spike on Claude Code ≥2.1.277: record which completion and cancellation primitives exist (background completion notification and its subagent-result header, foreground Agent result, TaskStop) and measure native reviewer durations from captured runs.
  • Step 2: if the host can enforce a deadline (background dispatch, completion notification, stop on deadline), implement that, keeping "only an identifiable complete final report counts" (accounting for the 2.1.277 subagent-result header) and "no late-result credit". If it cannot, the item stops and returns to Garry as a decision: an honestly unbounded foreground reviewer, or "outside voice unavailable" with its cause. No unenforced prompt-only bound ships.
  • The unavailable line names the missing capability (Codex CLI missing or unauthenticated; Plan agent type not offered) and the action, in the output and the persisted result.
  • Pins that change (intentional): test/run-in-background-guidance.test.ts:189-193,272-286, test/outside-voice-preflight.test.ts, test/plan-review-cases.test.ts, test/skill-ceo-section-ordering.test.ts. Free check first: rendered review sections do not require TaskOutput. Then its selected judge and the affected paid outside-voice case, priced through /eval-plan and approved before spend.

14. plan-eng-review ignores the CEO plan — adopt #3159 with changes (fixes #280). #3159 (szsunyuan) adds bin/gstack-ceo-plan-find and reads the CEO plan in the Design Doc Check; CI green. It edits a plan-skill template, which selects paid gate cases and a judge, so it lives in this eval-gated PR. Changes: the finder's stdout stays a bare path or empty (the API $DESIGN-style callers rely on); provenance prints as one separate human line, CEO plan found (from branch <b>, not <current>): <path>, only for the cross-branch fallback; the skill lets an interactive user skip a plan from another branch, and an unattended run uses it with the printed disclosure (tested). The design-doc finder's matching disclosure is deferred (it changes the shared discovery block in four skills plus spec-review). The PR raises the plan-eng-review prompt-size ceiling from 1.2170 to 1.2196 [measured: triage-B, #3159 diff]; that is an owner decision (gate item); if declined, the template is trimmed to fit. Pins that change are named in the PR; its selected gate cases and judge are priced with item 17's.

PR 5 — After #3190

9. Pregate never recognises .bats tests — adopt #3177 (fixes #3161). In bats repos lanes always fails. #3177 (harjothkhara): CI green, its bats tests pass; one-line conflict with #3190 in lanes.ts, rebased. Reviewer test: a bats file in a nested directory selected end to end.

10b. The rest of #3197. #3190's new gstack-config spawn routes through lib/script-invocation.ts; bin/gstack-pregate:120 stops reporting a wtree failure as "origin/ is not a resolvable commit": the pregate consumers (lib/pregate/context.ts:66,97, lib/pregate/index.ts:120) migrate to item 10a's wtreeFingerprint; a launch/discovery failure is the new result code WTREE_UNAVAILABLE, whose detail lists each bash candidate tried with its rejection reason and whose fix names GSTACK_GIT_BASH (quoted example); a helper exit keeps a cause-specific message (for example a TMPDIR repair). Under --json, every context refusal (unavailable base, WTREE_UNAVAILABLE) is one envelope on stdout (ok:false, status:'refused', code, detail, fix, docs) with exit 3; GSTACK_RESULT goes to stderr under --json, documented in --help and the troubleshooting entry. gstack-pregate run joins the windows-pregate-e2e job, and the pregate tests excluded from the Windows curation for the "shebang via CreateProcess" reason move back where they now pass. Tests: a wtree failure does not print "is not a resolvable commit" and ends with (WTREE_UNAVAILABLE); a helper-exit failure keeps its own fix; both refusals through the CLI with --json parse as JSON with one discriminator shared with the success object.

D. Doctor rows. gstack-doctor lists refs/gstack/rescue/* with dates and the inspect and delete commands (item 2); warns when a gstack block in ~/.claude/CLAUDE.md or a project CLAUDE.md enumerates skills and prints the short replacement (#3169); prints the resolved Windows bash and the variable that chose it (item 10a); and its Windows fix line names the held-install recovery forms of item 3 instead of bin/gstack-upgrade until #3190's thread fixes the path-spelling refusal.

24. Generated SKILL.md size guard — #3199. A free test fails when any generated SKILL.md for any host exceeds 100,000 chars, printing host, skill, actual and limit, and the fix. Current offenders (Claude design-review 136.8k [measured: triage-D], eight Hermes skills) are allowlisted at their current size, so growth fails and shrinkage requires lowering the pin. The preamble hoist is deferred (owner Garry, revisit 2026-11-15).

25. Plan-mode section on hosts that have no plan mode — #3168. The resolver honours the existing, unread capabilities.planMode host setting so planMode:false hosts (Hermes) omit the plan-mode section; goldens regenerate after #3190's.

PR 6 — Census repair

18. The weekly census has one red case and one headroom breach — #3153. Its own PR so that a decision on item 17 cannot hold it; folded into PR 5 instead if the repair edits ship/ (a #3190 area). The periodic tiers were green on Oct 12; the red is the gate-census case ship-exploratory-late-input probing before reading its sections (the same failure as the Oct 7 capture) and review-army-simplification over its headroom cap. Read the Oct 12 evidence and the free Oct 19 census first; a repair to ship/ prose runs gstack-lane-check against #3190's ship/ templates and sections before editing. Paid reruns only for the affected cases, priced and approved first, never retried to change a verdict.

Not in this wave (reason, owner, revisit)

  • #3193 Dart/Flutter pregate lanes (High for Flutter users): ≈830 lines, conflicts with #3190 in 5 files, mixes in a trust-model change (user-owned pregate policy plus a local key that loosens the unrun-Windows-lane guard). Ask the author to rebase onto #3190 and split into recognition + import graph, run groups, and the policy change. Owner: Garry (policy decision); revisit when the split lands.
  • #3192 HydraDB (feature): depends on unmerged gbrain#6695 by the same author; changes every gbrain user's search path. Owner: Garry; revisit when gbrain#6695 merges.
  • #3129 drop "When to invoke": owner decision, rebuild after #3190. Owner: Garry; 2026-10-29.
  • #3132 ios-qa session resume (Garry's draft): real-iPhone verification. Owner: Garry.
  • #2595/#2124 Windows code signing: needs a signing account. Owner: Garry; 2026-11-15. #2124 closes as a duplicate of #2595.
  • Host drift canary: extend the daily canary with a tool-inventory assertion (tools and subagent types gstack prompts require) and a compaction journal-shape capture, since TaskOutput's removal (2.1.277) and the compaction shape (2.1.300) are one recurring class. Owner: Garry; 2026-10-29.
  • Design-doc finder cross-branch disclosure (the second half of item 14): changes the shared discovery block in four skills plus spec-review. Owner: Garry; 2026-11-15.
  • #340 wireframe persistence: needs a downstream consumer in plan review (an eval-gated prompt change). Owner: Garry; 2026-11-15.
  • #2993, #3183, #3091, #2120, #542, #1319, #2623, #3157, #3158, #3150, #356, #1060, #1048, #2118, #1791, #1651, #2378, #1022, #954, #661, #2920, #2754: product calls, eval-gated prompt changes, deprecated install modes, external owners, or needs-info. Each gets a comment with its reason; owner Garry unless the triage report names an external owner (#2920 → gbrain); revisit 2026-11-15.
  • Closes, posted by a dated follow-up this thread registers for 2026-10-22, each with its file:line evidence: #2709, #931, #407, #886, #1957, #2756 (also drops TODOS.md:47/:985), #2365 (refresh the past "sunsets Sept 4" wording), and, once their confirmation windows end that day, #2637, #2295, #2151, #1775, #1674, #1731, #1967, #494, #528, #2847, #1076.

Upgrade notes and docs (every PR)

Every printed or published command says where it runs (Claude Code, Git Bash, or Windows PowerShell 5.1) and quotes its paths; PowerShell users get a form that works in PowerShell (no &&, .\setup.ps1 rather than the extensionless script), exercised under powershell.exe in item W. Each user-visible item adds or extends a docs/troubleshooting.md entry headed by its exact error text (#3184 hold, #3130 EOF, #3131 exit 127, #3185 INVALID_OUTPUT, #3187 argv0, #3167 "No active page", BUN_VERSION_UNREADABLE, the rescue-ref banner, WTREE_UNAVAILABLE): meaning, one copy-paste fix, "fixed in vX" (test/troubleshooting-anchors.test.ts). The CHANGELOG has an "If you…" block, one line per cohort (Windows-held: the recovery command; local edits in the install: the rescue ref; Cursor: which folders are removed; hooks: the new registration root; /cso: the quoted placeholder), mirrored in each PR's ## Behavior changes.

Verification

Per lane: the failing-first tests above; bun run typecheck; typecheck:test ratchet; test/spawnsync-timeout-tripwire.test.ts; test/module-size-ratchet.test.ts; template edits run gen:skill-docs, test/parity-suite.test.ts and the context-budget ratchet; gstack-pregate run --allow-repo-commands. Integrator per PR: the SHA-bound merge receipt with #3190 (one merged tree per pair, freshness and focused tests run once), bun run test once on the frozen tree on Ubicloud, secret scan, CHANGELOG with contributor credit, the native Windows jobs green for PRs 1b and 2. Paid spend only for PR 4 (items 14 and 17) and PR 6 (item 18's affected cases), each priced through /eval-plan and approved before it starts.

Review record

Revision 1 (snapshot eed7849f) was reviewed by CEO, DX and Eng, each with Claude Opus 5.5 (native) and GPT-6.1 Sol (outside); 60 findings (CEO 16+6, DX 15+5, Eng 13+5), no Critical. Every finding was accepted into revision 2 except where noted:

  • CEO: delivery split into five independently acceptable PRs with recovery first (native F1, F4; outside F6); recovery path for already-stuck installs and the bin/gstack-upgrade URGENT handoff (native F2, outside F1, confirmed); item 1 maps to the existing unrecognized_shape (native F3); native Windows CI coverage, item W (native F5, the one user challenge; outside F3); host-drift canary recorded as a dated deferral (native F6); item 17 needs an enforced bound or an owner decision (native F7, outside F5, confirmed); dependabot ignore scoped to minor/major (native F8); #3197's main sites move to PR 2 on main (native F9); item 18 premise corrected and owned (native F10); owners and dates for deferrals and a dated close follow-up (native F11); tar-free extraction plus symlink tripwire (native F12); reviewer-written tests for adopted PRs (native F13); item 11 promoted (native F14); quoting limited to JSON streams (native F15); no fork CI approval (native F16); manifest-parser receipt preservation (outside F2); classifier smoke or split for #3145 (outside F4).
  • DX: banner cases and anchors per new hold reason (native F1); visible rescue-ref notice (native F2, outside F2); troubleshooting entries and the CHANGELOG "If you…" block (native F3, F4); one finder output format (native F5); BUN_VERSION_UNREADABLE (native F6); actionable exit-127 text (native F7); git shim pinned instead of an environment note (native F8); reporter confirmation before merge (native F9); size-guard output and ratchet (native F10); empty-argument refusal in setup.ps1 (native F11); doctor warning for pasted skill lists (native F12); unavailable line names cause and action (native F13); WTREE_UNAVAILABLE fix clause (native F14); unresolved specifiers in no-lane output (native F15); git.exe-relative bash discovery (outside F1); JSON refusal envelope (outside F3); quoted recovery commands executed in tests (outside F4); #340 deferred until it has a consumer (outside F5, resolved by deferral instead of adding a prompt change).
  • Eng: one bash resolver (native F1); shared gstack-ff-update bin (native F2); fingerprint consumer inventory (native F3, outside F5); #3181 tripwire and helper test (native F4); complete-token JSON quoting (native F5, outside F2); literal-safe extraction, superseded by tar-free extraction (native F6); flattened stderr (native F7); status/stop bypass recovery (native F8); merged-tree checks in the receipt (native F9); .git/info/exclude excluded (native F10); extends and tokenizer comma handling (native F11); long-journal performance test (native F12); one version table (native F13); stash-oid rescue refs (outside F1); alias precedence (outside F3); process-group reaping (outside F4).

Revision 2 (snapshot d0628720) was reviewed by the same six voices; 37 findings (CEO 10+3, DX 9+4, Eng 8+3), no Critical, no user challenge. All accepted into revision 3:

  • CEO: PRs 1a/1b split, real dependencies stated, setup and lane-selection.ts each given one PR, PR 2 gets its own Windows job file, the coordinator exception covers exactly the append-only set with merge-and-restamp after each sibling merge (native F1, F4; outside F3); #3190-shared files the revision added (doctor, curation, free-tests.yml, pregate context.ts/index.ts) moved to PR 5 (native F2; outside F3); held-install recovery runs the new gstack-ff-update fetched from the new revision and covers clean, dirty, unmerged and prefix-mode installs (native F3; outside F1); scoop-safe bash discovery via git --exec-path and MSYS-verified PATH bash (native F5); reporter trial after review, exact detached commands, 48-hour evidence not a gate (native F6); item 18 its own PR (native F7); spawn-bin.ts path (native F8); Oct 29 follow-up registered (native F9); whole-stdout JSON tokenizing (native F10); private index bound to both extraction commands (outside F2).
  • DX: commands labelled by shell with a PowerShell form (native F1); WTREE_UNAVAILABLE lists candidates and names GSTACK_GIT_BASH, separate from helper-exit failures (native F2; outside F2); one canonical override name (native F3); finder stdout stays a bare path, design-doc half deferred (native F4; outside F3); rescue refs repeat daily and are listed by the doctor (native F5); ok:false envelope and GSTACK_RESULT location (native F6); GSTACK_IOS_LAUNCH_ENV format and refusal (native F7); one echo sanitizer (native F8); unattended default for a cross-branch CEO plan (native F9); safe inspect-first rescue guidance (outside F1); item 14 moved to the eval-gated PR (outside F4).
  • Eng: install-scoped lock in gstack-ff-update (native F1; outside F1); working-tree capture and compare before reset protects late writes (outside F1); unrecognized_shape only for compaction-explained components with negative controls (native F2); spawn-free cached hook resolution (native F3); a non-vacuous item W harness (native F4); token-level, NDJSON-tolerant JSON quoting that withholds on cross-token spans (native F5); Bun.which fallback for compiled binaries (native F6); one merged tree per pair (native F7); one bash-discovery fixture table for TypeScript and setup.ps1 (native F8); PTY group ownership survives leader exit (outside F2); scan-stdout format propagated through the real capture path (outside F3).

Build corrections from the revision-3 review (binding on every lane)

Revision 3 (snapshot 5d243037) was reviewed by the same six voices: 23 findings (CEO 6+3, DX 6+1, Eng 5+2), one High, no Critical, no user challenge; every revision-2 finding was confirmed resolved. None changes scope or direction, so they are applied as lane tasks rather than another review round:

  1. Rescue export must not reverse upstream fixes (DX native F1, High; DX outside F1). The rescue commit's parent is the pre-update HEAD (its real baseline); the banner prints git -C '<dir>' diff <ref>^ <ref> > ~/gstack-local-edits.patch (the user's delta only) and suggests git apply -3 in a scratch checkout. Already-unmerged captures are labelled "needs manual resolution". Test: the patch touches only user-edited paths, and an unrelated upstream fix survives restoring the user's edit.
  2. The original index is preserved too (Eng outside F2). The rescue keeps the staged state as a second parent or ref, separate from the working tree, without touching the real index while building it. Tests: staged-only changes; differing staged and unstaged versions of one file.
  3. The lock path is absolute, with a heartbeat (Eng native F1, outside F1). git -C <dir> rev-parse --path-format=absolute --git-common-dir; the 300 s heartbeat with #3191's reaping, or reclaim only when the holder's PID is dead. Tests: two actors in different working directories and state roots, including a linked worktree; no lock dir appears in the user's project; a holder that outlasts the TTL.
  4. Move with a two-way read-tree, not reset (Eng native F3). git read-tree -m -u <captured> <target> on the private index, so git refuses to overwrite modified or untracked files; the refusal maps to autostash-unrecoverable:.
  5. Explicit rescue identity (Eng native F4). Rescue commits use scoped GIT_AUTHOR_*/GIT_COMMITTER_* (gstack rescue <gstack@localhost>); tested with HOME/XDG_CONFIG_HOME isolated and GIT_CONFIG_NOSYSTEM=1.
  6. gstack-ff-update is self-contained (CEO native F3; CEO outside F2). No sourcing; lock and sanitize logic inlined and pinned to the shared twins by a test. The recovery forms fetch and run it inside a uniquely created private temp directory (mktemp -d, checked, cleaned up), never a fixed $TMPDIR path. Free Linux test: copy the bin outside any checkout and recover a v1.91.101.0 install; a pre-existing symlink and concurrent invocations never clobber or share a script.
  7. Literal PowerShell 5.1 forms (DX native F2; CEO native F4). Recovery, trial and go-back each get a literal PowerShell form: locate bash.exe from git --exec-path, a -c string with no double quotes (item 4's pattern), all redirection inside bash, finishing with .\setup.ps1. The go-back command (both shells) discards the regenerable footprint first. Item W runs each form under powershell.exe on a prefix-mode fixture.
  8. Item W ordering (Eng native F2). The bare origin's main is PR HEAD for assertions 1 and 2 (connect-chrome already reproduces the hold); the synthetic commit (a symlink sorted before its target) is pushed only after recovery, then UPDATED is asserted for it.
  9. How to set the bash override (DX native F3, F5). Shell-labelled persistent recipes: a PowerShell user environment variable plus a Claude Code restart, or the env block of ~/.claude/settings.json (a Git Bash export reaches only that shell). The override bypasses the cache and is never cached. GSTACK_GIT_BASH wins when both names are set; a warning prints once when they differ (row added to the shared fixture table).
  10. Hook bash cache hygiene (Eng native F5). Written by temp file plus rename; the cached path is stat-checked before use and re-resolved if missing.
  11. Banner carries the delete command (DX native F6). git -C '<dir>' update-ref -d <ref>, shell-quoted and executed in the banner tests.
  12. Result codes and cohorts (DX native F4). Each new refusal gets a result code and a troubleshooting entry under its exact text: the shared "no bash found" refusal, the GSTACK_IOS_LAUNCH_ENV refusal (IOS_LAUNCH_ENV_INVALID), setup.ps1's empty-argument refusal, item 7's browse recovery error, item 17's unavailable line. CHANGELOG "If you…" adds zsh users now held on an old Bun, users of a non-MSYS PATH bash, and GSTACK_BASH users.
  13. Ownership holes (CEO native F1; CEO outside F3). bin/gstack-config moves from Lane B to Lane D (item 20). #3175 lands in PR 3 without its free-tests.yml hunk, re-bumped in PR 5. test/helpers/carve-guards.ts, test/fixtures/context-budget.json and test/setup-playwright-best-effort.test.ts join the integrator-owned set resolved at restamp, and are listed among the #3190 overlaps; tests and ratchet adapters are part of each lane's ownership inventory.
  14. PR 5's real dependencies (CEO native F2). PR 5 depends on PR 1b and PR 2 as well as #3190; it is built on capy/next-wave after main (with 1b and 2) is merged into it, or on main after #3190 merges. The Oct 29 rebuild has the same precondition.
  15. Paid gates for every PR (CEO outside F1). Each PR runs the no-spend gate and judge selection; any selected paid check, including in PRs 1a and 1b, is priced through /eval-plan and approved before dispatch; reused evidence is bound to unchanged consumed inputs.
  16. Item 25's hosts (CEO native F6). Every planMode:false host (hermes, codex, agy, openclaw, and define-host's default) is listed in item 25 and in PR 5's Behavior changes.
  17. The split is an owner decision (CEO native F5). .gstack/ship-policy.json sets default_pr_count=1 and split_requires_owner=true. Seven PRs means seven PATCH slots, seven frozen-tree bun run test runs on Ubicloud, and a restamp after each merge. Recommended for recovery speed; presented to Garry with the gate.