Repository navigation
v1.91.89.0 fix(windows,setup): Git Bash hook false-positive recovery, incoming-checker auto-update, setup never deletes its own checkout (Wave 9 Lane A0) - #3140
Conversation
…spec guards and gstack-wtree; incoming-checker auto-update; setup never replaces a runtime root holding its checkout - gstack-hook-check maps Bun's C:/ paths back to Git Bash's /c/ spelling (#3112, #3088, #3100) - gstack-session-update trusts the incoming release's own checker; falls back to the installed one; holds as hook-check-unavailable when neither verifies - /gstack-upgrade and /spec checkout guards use the --show-prefix root check - gstack-wtree treats drive-letter --git-path answers as absolute (#3108, #3101) - setup refuses to replace a runtime root that is or contains its checkout; --status suggests the move; summary verifies before saying left in place (#3084) - bin/gstack-path-spelling.sh + lib/path-spelling.ts - troubleshooting: Git Bash false positive recovery; Windows lane + e2e proof Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…tentative stamp 1.91.86.0 Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…tentative stamp 1.91.88.0 Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ommand line) and compare registered hooks in one native spelling Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
Heads-up from #3128, which I opened for #3084 at 14:12 UTC, before this wave. This branch supersedes it: I ran #3128's end-to-end cases against Two things this branch's tests don't pin yet, in case they're useful:
|
… checkout; pin the symlinked-root control (#3128) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Thanks @szsunyuan. Both points were real, and both are fixed in 68dab79.
#3128 closes with this wave once #3140 merges. You're credited in the CHANGELOG as |
E2E Evals: ✅ PASS108 executed, 13 reused rule/judge records | 0 manual accepted (unscored; no score-cache credit) | $92.31 rule/judge cost | reconcile exit: 0 Profile: pr / mode Derived dependents (scripts/pr-dependencies.ts):
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. |
…all-hotfix Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # CHANGELOG.md # VERSION # agents-digest/gstack-AGENTS.md # package.json
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… incoming-checker auto-update, setup never deletes its own checkout (Wave 9 Lane A0) (garrytan#3140) Git Bash hands native Bun C:/ paths while gstack-hook-check looked them up as /c/, so every TypeScript hook was refused and team-mode auto-update held every release since 1.91.31. The checker maps Bun's paths back to the shell spelling, the auto-updater lets the incoming release's own checker decide (installed checker only as a fallback, hook-check-unavailable when neither verifies), and docs/troubleshooting.md gives stuck installs one recovery command. /gstack-upgrade and /spec guards use the --show-prefix root check, gstack-wtree treats drive-letter --git-path answers as absolute, and setup refuses to replace a runtime root that is or contains its own checkout, Kiro's in-place root included (garrytan#3084), with --status suggesting the move. New sourced helper bin/gstack-path-spelling.sh and TS twin lib/path-spelling.ts. Co-authored-by: yuriysan <[email protected]> Co-authored-by: y$un_ <[email protected]> Co-authored-by: Frederik Reventlow <[email protected]> Co-authored-by: skleinbe-ny <[email protected]> Co-authored-by: bkermen <[email protected]> Co-authored-by: Drew Jankowski <[email protected]>
Wave 9 Lane A0: Windows and install hotfix (merges first)
Installs stuck on the Git Bash hook false positive run their own old updater and old
/gstack-upgradetext, so code alone doesn't reach them. The troubleshooting page their held-update and setup messages already link to does, so the doc fix ships with the code that makes the recovery work.What shipped, per item
bin/gstack-hook-checkmaps Bun's entry, input and error paths (C:/…,C:\…) back to Git Bash's/c/…, and canonicalizes the root throughcygpath -am(so/tmpand the native temp dir share keys). Healthy hooks pass in a root with spaces; a real syntax error still fails with its own file and line (fix: normalize Windows paths in hook syntax checks #3112's test, adapted). The checker keeps its own copy of the mapping on purpose: it runs on extracted archives and partial trees and must not fail for a missing helper.test/path-spelling.test.tskeeps that copy equal tolib/path-spelling.tsandgstack_path_shell. Bun is now required only when a hook actually runs TypeScript.#setup-hook-does-not-parseand#auto-update-hook-does-not-parsename the Git Bash false positive ("bun could not bundle the TypeScript entry" for every TS hook, from 1.91.31) and give one copy-paste recovery,cd ~/.claude/skills/gstack && git pull --ff-only --autostash && ./setup, which also clears/gstack-upgrade's "is not a gstack checkout" refusal.#upgrade-not-a-checkoutpoints there too. "Nothing to do locally" is gone. New anchors:#auto-update-hook-check-unavailableand#setup-runtime-root-contains-checkout.hook_incoming_holdruns the incoming revision's ownbin/gstack-hook-checkfrom the extracted archive. Only a verified, complete report counts: exit 0/1 consistent with its fail lines, every lineok|missing <hook>orfail <hook> <where>: <why>, and one verdict per hook its own--listnames. A crash, empty output or unparseable report falls back to the installed checker (HOOK_CHECK_FALLBACKlogged); if that gives no verified report either, the update is held ashook-check-unavailablewith a fix command and anchor. An incoming pass that the installed checker disputes is logged asHOOK_CHECK_DISAGREE. The held-reason prefix strip handles/tmp/x,/c/…/xandC:/…/x. Root checks:/gstack-upgrade's checkout guard (3 sites) and the/specspawn guard use_p=$(git rev-parse --show-prefix 2>/dev/null) && [ -z "$_p" ] && [ "$(git rev-parse --is-inside-work-tree 2>/dev/null)" = true ]instead of comparing--show-toplevel(C:/…) withpwd -P(/c/…). A static test rejects that comparison in skill bash.gstack-wtreetreatsC:/…from--git-pathas absolute (fixes gstack-wtree fails in a linked git worktree on Windows (drive-letter --git-path treated as relative) #3101), viagstack_path_absolutefrom the new helper. fix(wtree): treat Windows drive-letter --git-path output as absolute (#3101) #3108's test and curation entry land as-is._runtime_root_refusedruns before anything is written (all selected swap-style hosts) and again at the top of_activate_runtime_root(Codex, Factory, OpenCode, Cursor, Copilot, Antigravity). It checks each ancestor of the checkout against the root by filesystem identity (gstack_path_within→gstack_path_same→-ef). Kiro, which writes its runtime files into~/.kiro/skills/gstackin place, is refused in the same layout (it used to link the checkout into itself and stop onETHOS.md). A root that is itself a symlink stays replaceable (only the link goes; pinned by a control from fix(setup): refuse to replace a runtime root that holds the source checkout (#3084) #3128); Claude installs in place and is never refused. The Codex arm's old refusal now goes through the same helper and message (a Codex root that is the checkout still takes the direct-install migration). The message says what was refused, why, that nothing changed, the commands to move the checkout (turning a symlinked~/.claude/skills/gstackinto the checkout), and the anchor../setup --status,gstack-doctorand the--statusinstall checks suggest the move instead of./setup --host X. The install summary says "previous install was left in place" only after confirming the checkout, the skills directory and the runtime root still exist; otherwise it gives the fresh-clone reinstall. setup --host cursor deletes the gstack checkout when it lives at ~/.cursor/skills/gstack #3084's other defect (legacy unprefixed Cursor duplicates) is filed as setup --host cursor leaves 1.31-era unprefixed Cursor skill folders, so Cursor loads duplicate skills #3133.test/setup-hook-syntax-gate.test.tsis force-included in the Windows lane (path expectations go throughshellPath, PATH uses the platform delimiter).windows-setup-e2etriggers onbin/gstack-hook-check,bin/gstack-session-update, the helper and its TS twin,hosts/claude/hooks/**andgstack-upgrade/**. It adds three steps: the hook check on the checkout (no fail lines), the upgrade guard at the root and below it, and the documented recovery starting from a release whose checker has the false positive (v1.91.83.0's checker, asserted to reproduce the false positive first).gstack-hook-checkreports every TypeScript hook as "bun could not bundle" on Windows (Git Bash): MSYS argv path conversion breaks thebuilt.tsvlookup #3100 and close them, crediting @skleinbe-ny, @bkermen and @yuriysan (fix: normalize Windows paths in hook syntax checks #3112). Close fix: normalize Windows paths in hook syntax checks #3112 and fix(wtree): treat Windows drive-letter --git-path output as absolute (#3101) #3108 with a link to the merged commit. Close setup --host cursor deletes the gstack checkout when it lives at ~/.cursor/skills/gstack #3084 with a link to setup --host cursor leaves 1.31-era unprefixed Cursor skill folders, so Cursor loads duplicate skills #3133.New shared helper:
bin/gstack-path-spelling.sh(gstack_path_shell,gstack_path_native,gstack_path_same,gstack_path_absolute,gstack_path_within) and the TS twinlib/path-spelling.ts(shellPath,nativePath,samePath). Only this lane's call sites use them.Files outside the original lane list, approved by the queue:
bin/gstack-install-registry.sh(gstack_install_move_hintand the_gstack_status_rowssuggestion text), plus fixture-only edits totest/team-mode.test.tsandtest/setup-claude-code-migration.test.ts(copybin/gstack-path-spelling.sh, which setup now sources) andtest/upgrade-setup-recovery.test.ts(its fake git answers--show-prefix/--is-inside-work-tree). Assertions are unchanged.Behavior changes
HOOK_CHECK_DISAGREE). The installed checker decides only when the incoming one gives no verified report.hook-check-unavailable. Previously a checker crash, missing Bun orgit archivefailure failed open and the pull went ahead. Now, when neither checker gives a verified report, the update is held and nothing moves; the session-start line givescd <dir> && git pull --ff-only --autostash && ./setupand the anchor. On a tree with no TypeScript hooks, a missing Bun no longer makes the checker exit 3.--host autotoo when such a host is selected. The Codex refusal's wording changed; it still contains "runtime directory contains the source checkout"../setup --status/gstack-doctorsuggestion text for that layout is the move command, not./setup --host X.bin/gstack-path-spelling.sh. A tree without it stops with the standard "is missing. fix: reinstall from a fresh clone" line./gstack-upgradeand/specroot guards accept the checkout root through a symlink and refuse inside.git, below the root and outside a repo, on every shell.Could not verify
uname/cygpathshim (helper spellings, checker root canonicalization, held-reason strip). The real proof is this PR's Windows Free Tests (force-included hook gate, wtree, path-spelling) and Windows Setup E2E (hook check, upgrade guard, documented recovery). The force-includedsetup-hook-syntax-gatesetup-section tests have never run on Windows; they now use shell-spelled expectations, but CI is the first run./gstack-upgradetext can't be changed; they recover only through the doc's manual command.Test results
Revision
2a5e47819c2a8bdb328167ab78ecfed24484c2e8(lane commit plus a merge of main at v1.91.85.0).bun run test:ubicloud, standard-16, CI lane env, VM destroyed afterwards): all 17 of 17 shards PASS. The runner counts 27,846 tests in 1,190 files; the shard footers add up to 27,770 pass, 0 fail and 91 skip. (The 15-test gap between those totals is in the runner's accounting; no shard reported a failure.)test/session-update-hook-hold.test.ts10/10,test/setup-hook-syntax-gate.test.ts18/18,test/path-spelling.test.ts13/13,test/setup-runtime-root-guard.test.ts7/7,test/gstack-wtree-windows-paths.test.ts2/2 (1 fails on main),test/troubleshooting-windows-recovery.test.ts4/4. Mutation checks: the archive-prefix strip, the template guards and the setup --host cursor deletes the gstack checkout when it lives at ~/.cursor/skills/gstack #3084 layout each fail with the fix reverted.bun run typecheckclean;bun run typecheck:test: 865 known diagnostics, none new.gen:skill-docs --host allfresh.test/parity-suite.test.tspasses. Credential scan (.github/scripts/gate-secret-scan.mjs): 0 high, 1 advisory (a version string read as an IP).shellcheck --severity=erroris clean onsetupand every changed script.Credits
gstack-wtreefix, its test and curation entry. Accepted. (fix(setup): refuse to replace a runtime root that holds the source checkout (#3084) #3128, their earlier setup --host cursor deletes the gstack checkout when it lives at ~/.cursor/skills/gstack #3084 fix): superseded by this branch with the author's agreement; its symlinked-root control and the Kiro self-link finding carried over.gstack-wtreediagnosis and fix, verified through a full/shipon Windows.gstack-hook-checkreports every TypeScript hook as "bun could not bundle" on Windows (Git Bash): MSYS argv path conversion breaks thebuilt.tsvlookup #3100): the MSYS argv-conversion diagnosis.--statusand summary fixes.