Repository navigation
gstack-upgrade works again after you disable skills (#4704) - #4743
Merged
Merged
Conversation
…sabled skills (#4704) setup renders the tracked root SKILL.md in place for disabled_skills, and the upgrade's dirty check read that as a local edit. The upgrade now leaves SKILL.md out of the check only when its bytes equal a fresh render for the current config, restores the committed bytes for the fast-forward and renders the router again after it. Any other edit still refuses. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
gstack-upgrade checks the router's bytes again under the setup lock before it restores the committed file, and the tests cover plan_mode_preamble=off and a fast-forward that fails after the restore. Review-Finding: p1/red-team#1 reader=red-team Review-Finding: p1/specialist-batched#1 reader=testing Review-Finding: p1/specialist-batched#2 reader=testing Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
The router is rendered for comparison only when it is the one dirty path, a mode change still refuses, a failed fast-forward never renders over an edit made after the restore, and a failed post-update render leaves the reinstall pending. Review-Finding: p1/outside-voice#1 reader=outside-voice Review-Finding: p1/outside-voice#2 reader=outside-voice Review-Finding: p1/outside-voice#3 reader=outside-voice Review-Finding: p1/outside-voice#4 reader=outside-voice 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>
|
😎 This pull request was merged. |
…he config key census stays clean test/gstack-config-defaults.test.ts counts every literal 'gstack-config get <key>' as a key that needs a DEFAULTS entry; disabled_skills has none, and gstack-relink reads it through a variable. No behaviour change. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This was referenced Nov 23, 2026
Merged
Merged
capy-ai Bot
added a commit
that referenced
this pull request
Nov 24, 2026
- `/ship` now tells you what to change when GitHub refuses a push for email privacy. (#4748) - The release gate's /cso check accepts the low-confidence hypotheses /cso now reports. (#4753) - /cso reports every security finding the code supports instead of dropping most of them. (#4739) - /cso can search the whole repository in one call, and a daily report now lists its low-confidence hypotheses. (#4742) - A first version's plan and try-it message now open with the owner's own words, and the build is tried the same way he will try it before he is asked. (#4759) - A first version's public export now keeps out the owner's short quotes and his reasons to leave something out, and a phone first-use check installs a build the cloud phone can actually run. (#4772) - Three intermittent test failures are fixed. (#4745) - Free Tests runs its shards on 8-core runners again. (#4749) - A land that waits on an earlier CI run now decides on what that run actually did. (#4763) - Landing a PR no longer starts a new CI run when one for the same merged code is already running or has passed. (#4760) - /ship no longer misses a file-mode change from main on files whose names start with `:`. (#4774) - make-pdf keeps quotes in alt text, link titles and raw HTML attributes inside the attribute, so a Markdown file can no longer add an `onerror`, `onload` or `javascript:` link that runs in the print browser. (#4761) - Posting a PR body that lists earlier /ship runs no longer stops for a phone number that isn't there. (#4747) - A first version's public export now catches a short owner quote whose padding or quote marks are encoded. (#4778) - A first version's public export now also keeps out a short owner quote written with spaces just inside its quote marks. (#4776) - Posting a PR body that lists earlier /ship runs no longer stops for a card number that isn't there. (#4751) - /ship no longer asks for an extra reader when you merge the base branch next to code that was already reviewed. (#4754) - /ship no longer plans narrow re-checks after a fix. (#4741) - /ship can't quietly gain new refusals. (#4740) - `gstack-upgrade` no longer refuses to run after you disable skills. (#4743) - The free test suite splits its shards from this week's recorded test times. (#4744) - gstack now writes up a failed or shelved attempt before closing it. (#4735) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
If you turned off skills with
gstack-config set disabled_skills ..., everygstack-upgradestopped with "tracked files changed: SKILL.md". It now upgrades, and your skills stay off afterwards.Why: gstack has to keep itself up to date without a person cleaning up after its own setup.
Nothing to do.
What changed
Setup rewrites the router file
SKILL.mdin the gstack checkout to leave out skills you disabled (or the plan-mode preamble, withplan_mode_preamble off). The upgrade's safety check saw that rewrite as your own edit and refused.Now
bin/gstack-upgraderenders the router fresh for your current settings and compares. Only whenSKILL.mdis the one changed file, its file mode is unchanged, and its bytes match that fresh render exactly, does the upgrade treat it as gstack's own. It checks the bytes again under the setup lock, puts the committed file back for the fast-forward, and renders the router again right after, so the disabled skills stay off.Anything else still refuses exactly as before. That includes an edit on top of the rendered router, a router rendered for an old setting, a staged or mode-changed
SKILL.md, or any other changed tracked file. If the fast-forward fails, the router is rendered again only if it wasn't edited after the restore (a sub-second race remains; see Review notes). If the render after the update fails, the upgrade prints a fix and leaves the reinstall pending.Why
The bug report (#4704) showed every scheduled upgrade failing for anyone who disables a skill, and the next setup making the file dirty again. Two fixes were possible. One was to teach the upgrade's dirty check to recognise the generated router. The other was to move the per-install router out of the git checkout. The first is much smaller and keeps the safety check in force, because the exception is narrow (one file, exact bytes from the same generator and settings relink uses) and fails closed on any mismatch. Moving the router would touch setup, relink and every host's install layout, which this fix does not need.
Blast radius
Only
bin/gstack-upgradechanges behaviour, and only whenSKILL.mdis the sole changed tracked file. For everyone else the dirty check runs exactly as before.setup,gstack-relinkandgstack-configare unchanged. The check runs Bun and the router generator from the checkout, only after confirming every other tracked file is clean.Test Coverage
New
test/gstack-upgrade-rendered-router.test.ts(9 cases, skipped on Windows), written first and failing on main 45e33b5 (2 of its first 6 cases failed with "tracked files changed: SKILL.md"). It builds a throwaway gstack remote and clone in a temp folder, setsdisabled_skillsthrough the realgstack-configandgstack-relink, then upgrades. It covers the upgrade passing and the router staying rendered (plain and--ff-only-no-reinstall),plan_mode_preamble off, a failed fast-forward, and five refusals: a user edit on the rendered router, an edit with nothing disabled, a mode change, another tracked edit, and a router rendered for an older setting.Documentation
Status: current. The docs match the change, so no edits were needed.
Scope: the committed diff against base 45e33b5 (bin/gstack-upgrade, docs/troubleshooting.md, changelog.d/upgrade-works-with-disabled-skills.md, test/gstack-upgrade-rendered-router.test.ts), plus a search of the authored docs and templates for gstack-upgrade, disabled_skills and "tracked files changed".
Documentation health
Coverage debt: bin/gstack-upgrade has a new stderr warning ("could not render the router for disabled_skills again ...") that no troubleshooting entry covers. No diagram drift.
Tests
bun test test/gstack-upgrade-rendered-router.test.ts test/gstack-upgrade-bin.test.ts test/relink-disabled-router.test.ts test/bun-entry-isolation.test.ts test/gstack-config-defaults.test.ts: 67 pass, 0 fail at b48d1fabun run typecheck:test: no new diagnosticstest/gstack-config-defaults.test.ts; b48d1fa fixed it.gstack-config set disabled_skills qa-only,careful,./setup --host claude, thenbin/gstack-upgrade --ff-only-no-reinstallexited 3 with "tracked files changed: SKILL.md"Review notes
Below the blocking floor, recorded and not fixed in this PR:
SKILL.mdduring the roughly 0.2 second router render after the update could be overwritten by that render. Only gstack's own generated file is at risk.--ff-only-no-reinstall, the pending-reinstall marker stays until a plaingstack-upgraderuns, so--checkreports a pending reinstall.bin/gstack-relinkis the better fix there.bin/gstack-capy-session's own dirty checks (lines 177, 238) still count the rendered router; the upgrade itself now works, so this only changes which fix it prints.Agent notes
Plan: exempt: s1
Ruled note: bin/gstack-upgrade:244:outside-voice at b48d1fa ruled by Captain GStack Minder (GSTA-36) (relayed from GSTA-36:2026-11-23-notes-ruling) at 2026-11-23T14:26:25.255Z: an edit saved during the ~0.2 s post-update render could be overwritten; below the floor, nothing lost (approval a-6c18778792b5)
Ruled note: bin/gstack-upgrade:319:outside-voice at b48d1fa ruled by Captain GStack Minder (GSTA-36) (relayed from GSTA-36:2026-11-23-notes-ruling) at 2026-11-23T14:26:25.347Z: a refused fast-forward plus a failed re-render leaves the committed router while saying nothing changed; below the floor, nothing lost (approval a-fe066fc7f491)
Ruled note: bin/gstack-upgrade:323:outside-voice at b48d1fa ruled by Captain GStack Minder (GSTA-36) (relayed from GSTA-36:2026-11-23-notes-ruling) at 2026-11-23T14:26:25.431Z: a generator that keeps failing ends with the full router after the pending reinstall clears; below the floor, nothing lost (approval a-ddc6b671a365)
GST-3542.
Fixes #4704