Repository navigation
setup: new installs default to stable; Capy threads run latest main daily (GST-1642) - #4091
Merged
Merged
Conversation
… main (GST-1642) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…GST-1642, R75) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…pin prose (GST-1642) The R75 rules grew capy/skill/gstack/SKILL.md to 5491 tokens, past its 5315 ceiling; free-tests run 42251052228 failed test/context-budget-ratchet.test.ts. Per the ratchet protocol this records the capture's value (actual x 1.10 = 6041) for this skill only; every other ceiling is unchanged. Gate disposition left open for the owner. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
A review-voice --check no longer prints the run-the-fix-before-the-first-workflow stale note (its fix would move the lane's shared checkout); a refused fast-forward after the pin-override switch is now tested to restore the pin. Review-Finding: p1/red-team#2 reader=red-team Review-Finding: p1/specialist-batched#1 reader=testing Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Step 14.5 documentation audit gst1642-docs-1. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…(GST-1642) bun run gen:skill-docs --host all adds the pin-unreasoned anchor row the new result code needs. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… ceiling (reverts 943ff5d) (GST-1642) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
…default Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # README.md # capy/skill/gstack/SKILL.md # capy/skill/gstack/lane-card.md # docs/capy-install.md # docs/install.md # docs/releases.md
4 tasks done
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.
What changed
New installs follow the stable channel; Capy crews stay on main (GST-1642).
setuprecords the update channel on the first install of a machine throughbin/gstack-update-channel.sh --initial <state root> <install dir>:stablefor a fresh state root, theGSTACK_UPDATE_CHANNELvalue when set, ormainon a Capy machine. It printsUpdate channel: <ch> (<why>). Switch: <install>/bin/gstack-config set update_channel <other> (docs/releases.md#channels).gstack.contributor,GSTACK_CONTRIBUTOR=1, CI, a fork, a detached HEAD, a non-default branch, no upstream, local commits) or for an existing install (.last-setup-versionorconfig.yamlunder the state root or~/.gstack). No migration and no prompt.bin/gstack-capy-sessionexportsGSTACK_UPDATE_CHANNEL=mainunless it already namesstableormain. The Capy bootstrapper moves to wrapper 5 (GSTACK_CAPY_WRAPPER), becausechannel_stablenow follows stable only onGSTACK_UPDATE_CHANNEL=stable.GSTACK_CAPY_MIN_WRAPPERstays 3; Garry refreshes the Drive copy of the skill after this lands.Capy threads run gstack's latest main at least daily (R75).
stale=<h>h(orstale=no fetch from origin in <h>h), and install mode fast-forwards at the workflow boundary.GSTACK_CAPY_SELF_UPGRADE=off,GSTACK_CAPY_AUTO_UPGRADE=0, a detached HEAD, another branch) holds only with a recorded reason:GSTACK_PIN_REASON,git config --local gstack.pinReason, an explicit--revision, orgstack.contributor=true. An unreasoned stale pin on a clean, undiverged checkout is overridden and reported asPIN_UNREASONED(docs/troubleshooting.md#pin-unreasoned).UPGRADE_BUSY), never switches onto a diverged local default branch, and restores HEAD if gstack-upgrade refuses.Merge of main (2cd9c98). main's R74 daily stable check (#4083) and v1.97.0.0 (#4090) are merged in. The conflict resolution touches six prose files only (README.md, capy/skill/gstack/SKILL.md, capy/skill/gstack/lane-card.md, docs/capy-install.md, docs/install.md, docs/releases.md), keeping both R74's daily-check text and this PR's stable-default, Capy main pin and R75 text. README.md:33 now gives the R74 cadence and names Capy crew machines as main followers.
Why
New users were following every merge to main, while stable is the twice-weekly tested release. Capy crews need the newest main every day, and silent pins left threads days behind.
Blast radius
stale=), a new result codePIN_UNREASONED, and an automatic fast-forward at workflow boundaries. The session code runs only on Capy Linux machines.bin/gstack-update-channel.sh --helpoutput changed,--initialwith bad usage exits 2, and the Capy bootstrapper is wrapper 5.changelog.d/capy-gst-1642-stable-default.md.Approvals
Approved: yes (record r-ed18dc8df670). The full approval record stays private: this repository is public or its visibility is unknown.
Summary
New users who ran
./setupwere following every merge to main. A first install now records the stable channel and says how to switch, while contributor checkouts, existing installs and Capy crews stay on main. Capy threads also stop drifting, because a checkout more than 24 hours behind origin is reported asstale=and fast-forwarded at the next workflow boundary unless a pin carries a recorded reason. This head adds only the merge of main and its prose conflict resolution.Test Coverage
New paths are covered by test/update-channel.test.ts and test/update-channel-setup.test.ts (first-install channel selection, contributor and existing-install exclusions) and the capy session tests in test/capy-skill-wrapper.test.ts (stale measurement, pin reasons,
PIN_UNREASONED,UPGRADE_BUSY, foreign_busy, rollback). Coverage audit at 2cd9c98: 18 of 18 changed paths have a test, 16 of 18 strong; the two weak ones are the release-cut.ts notes sentence and thePIN_UNREASONEDregistry entry.Tests ran: test 1618 (files, carried from Free Tests run 42271705698 at 2cd9c98)
Pre-Landing Review
REVIEW_LOOP: passes=1 blocking_found=7 deferred=0 noted=9 fixed=0 scope=frozen unbound=1 ledgers_read=3 dispatches=2 est_input_tokens=53315
Pre-Landing Review: 1 issue — 0 auto-fixed, 1 asked (0 fixed, 1 skipped under the Captain's one-round ruling, then ruled), 0 deferred, 0 noted. Full gate-class panel at 2cd9c98 (tree 249d61fc): specialist batch (testing, security, state-machines) no findings; red team 1 informational; native adversarial 6 findings, none Blocks: yes; outside voice (openai/gpt-6.1-sol) 3 findings; targeted auth reader no findings. Every finding classify marked blocking is ruled below.
Ruled note: bin/gstack-capy-session:186:race at 13273d6 ruled by Captain GStack Minder (GSTA-36), 2026-11-06 at 2026-11-06T17:02:35.499Z: eval_live needs flock and fails open only off Linux; this code runs on Capy Linux machines, verified there; follow-up GST-1658 (approval a-ad262c3bcdf0)
Ruled note: bin/gstack-capy-session:247:race at 13273d6 ruled by Captain GStack Minder (GSTA-36), 2026-11-06 at 2026-11-06T17:02:36.082Z: pin-override checkout precedes .setup-lock; narrow window, git index lock refuses a concurrent checkout, rollback restores HEAD; follow-up GST-1658 (approval a-cb1c5e66f7e8)
Ruled note: bin/gstack-capy-session:247:adversarial at 2cd9c98 ruled by Captain GStack Minder (GSTA-36), 2026-11-06 at 2026-11-06T19:09:34.149Z: pin-override checkout precedes .setup-lock; narrow window, git index lock refuses a concurrent checkout, rollback restores HEAD; re-ruled from a-cb1c5e66f7e8; follow-up GST-1658 (approval a-79f5e225bc38)
Ruled note: bin/gstack-capy-session:187:adversarial at 2cd9c98 ruled by Captain GStack Minder (GSTA-36), 2026-11-06 at 2026-11-06T19:09:34.881Z: eval_live needs the flock binary and fails open only off Linux; this code runs on Capy Linux; re-ruled from a-ad262c3bcdf0; follow-up GST-1658 (approval a-c69d506913f5)
Ruled note: bin/gstack-capy-session:148:adversarial at 2cd9c98 ruled by Captain GStack Minder (GSTA-36), 2026-11-06 at 2026-11-06T19:09:35.061Z: date -r +%s is GNU-only so BSD/macOS reads no fetch recorded; the path runs on Capy Linux and its test is not in CI macOS lanes; follow-up GST-1658 (approval a-3b45907f072d)
Ruled note: bin/gstack-capy-session:246:adversarial at 2cd9c98 ruled by Captain GStack Minder (GSTA-36), 2026-11-06 at 2026-11-06T19:09:35.274Z: the default branch the pin override creates has no upstream, so a later @{upstream} read fails; low, Capy override path only; follow-up GST-1658 (approval a-ee8ec7de7459)
Ruled note: bin/gstack-capy-session:254:adversarial at 2cd9c98 ruled by Captain GStack Minder (GSTA-36), 2026-11-06 at 2026-11-06T19:09:35.521Z: the restore checkout result is unchecked, so pin kept can print with HEAD not restored; low, only after a refused fast-forward; follow-up GST-1658 (approval a-d6da9de303f0)
Ruled note: bin/gstack-capy-install:676:adversarial at 2cd9c98 ruled by Captain GStack Minder (GSTA-36), 2026-11-06 at 2026-11-06T19:09:35.718Z: stale-only fix note ends in then with nothing after it when GSTACK_CAPY_WRAPPER_PATH is unset; cosmetic fix-text gap; follow-up GST-1658 (approval a-eb362b8c557b)
Ruled note: bin/gstack-capy-session:136:adversarial at 2cd9c98 ruled by Captain GStack Minder (GSTA-36), 2026-11-06 at 2026-11-06T19:09:35.884Z: pin-reason sanitizer keeps fix: and parentheses so a reason can add a second fix: to the trailer; needs write access to git config or the session env; follow-up GST-1658 (approval a-3359434cb571)
Ruled note: bin/gstack-capy-session:163:red-team at 2cd9c98 ruled by Captain GStack Minder (GSTA-36), 2026-11-06 at 2026-11-06T19:09:36.074Z: a recorded pin reason is used even when nothing is pinned; informational, never moves the checkout wrongly; follow-up GST-1658 (approval a-ac46568c9102)
Notes (not fixed in this PR):
flock -n "$lock" truereleases the lock at once, so an eval can start during the following fetch and merge), and the 148, 246, 254, 676, 136 and 163 findings ruled above.--revisionorGSTACK_PIN_REASONpin reason lives only in that invocation, so a sibling session on the machine-shared checkout can override a deliberate detached pin once it is a day behind; onlygit config gstack.pinReasonpersists.GSTACK_CAPY_AUTO_UPGRADE=0andGSTACK_CAPY_SELF_UPGRADE=offstop freezing a tree after 24 hours without a recorded reason, as R75 documents.Gate edits: none detected (16 listed, 8 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)
Review notes
--for review-voicereader only reportsstale=, so such a reader is told to run gstack-upgrade on the shared checkout. gstack-upgrade refuses under a live lease (bin/gstack-upgrade:221), and the full rule remains in docs/capy-install.md:153.GSTACK_CAPY_AUTO_UPGRADE=0is documented as a pin that needs a recorded reason; a reader who set it alone will see it overridden withPIN_UNREASONED(s11 native adversarial docs: add README and CLAUDE.md #1, doc note).stale=fix has no terminal state.Eval Results
No paid evals ran; the change is install and session tooling plus skill prose covered by the free suite.
Documentation
Status: current. The docs match GST-1642's shipped behavior; no edits needed.
Scope: release diff be173d5..2cd9c98 (23 files; the working tree was clean). Covered new installs defaulting to
stable, Capy crews pinned tomain, wrapper 5, R75 daily staleness (stale=,PIN_UNREASONED,GSTACK_PIN_REASON) andUPGRADE_BUSYcovering the eval lock.Documentation health:
--initial)Coverage debt: minor. #pin-unreasoned lists only two of the four ways to keep a pin (
--revisionandgstack.contributorare documented in capy-install.md). docs/install.md does not say that contributor checkouts are an exception to the stable default. The README's contributor exceptions leave out CI.Diagram drift: none.
Test plan
Exploratory QA
Smoke only (4 probes, all pass at 2cd9c98):
bin/gstack-update-channel.sh --initialprintsmain Capy machine: crews follow every mergeon a fresh state root,stable set by GSTACK_UPDATE_CHANNEL at installwith the variable set,auto contributor checkout: CIunder CI, and exits 2 with usage when the state root is missing. The QA method reads were not run.Scope Drift
Scope Check: CLEAN. Intent: new installs default to stable, Capy crews stay on main, R75 daily freshness, plus the merge of main. Delivered: the same; the merge resolution is prose only.
TODOS
No TODOS.md changes; follow-ups are tracked in GST-1658.