Repository navigation
v1.91.258.0 feat(capy-install): project floor, --for none, WARN for behind and Node-only pins, in-place review-voice upgrade, /cso env hygiene (GSTA-114 lane F, PR 1) - #3475
Merged
Conversation
…de-only pins, in-place review-voice upgrade, /cso env hygiene (harness lane F) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
😎 This pull request was merged. |
…roller template stays under the 18,000-byte compactness bound Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…come consistently Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…name, not a key) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Red team (/ship Step 9): a Drive copy at a bootstrapper revision below GSTACK_CAPY_MIN_WRAPPER is a WARN with the owner action in a direct (no-provenance) run too; only a pre-bootstrapper copy fails. A --for none session never self-upgrades. Stale fail-behind comment in gstack-capy-session; SKILL.md says ok not-needed is not an install verdict. Tests: UPGRADE_SKIPPED collapse, silent in-place message, direct-run WARN, wrapper-2 --for none handover. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Trailer fix after a skipped upgrade is one runnable command (the refusal prose stays on the WARN behind row); the floor reader is whitespace-insensitive and names a non-version value instead of calling it absent. Found by /ship Step 11 (Claude adversarial, Codex adversarial + structured). Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ot retried) The floor reader reads only the first 64 KiB, takes the first occurrence of the field (the top-level one) and names a non-version string truthfully; /cso resumes a start whose ID never printed instead of retrying it (a run may already exist). Found by /ship pass 2 (Claude adversarial, Codex adversarial + structured). 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>
…can run on this tree Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
3 tasks done
…e: context-budget.json keeps captain 12011 and this PR's capy/skill/gstack 4075; CHANGELOG additive 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> # Conflicts: # CHANGELOG.md
… base=origin/main@7f53ddb policy=base origin/main@7f53ddb1f3cc:.gstack/ship-policy.json) ship, next in queue at 1.91.258.0 STAMP_VERSION: 1.91.258.0 claims: ignored (stamp-at-merge) stage version: done (wrote 1.91.258.0) stage release_tool: done (bun scripts/gen-agents-digest.ts) stage changelog: done (Unreleased -> 1.91.258.0) stage stamp_paths: skipped (no stamp_paths in policy) stage mirror: skipped (no mirror in policy) stage apply: done (4 file(s)) FILES: CHANGELOG.md VERSION agents-digest/gstack-AGENTS.md package.json MERGE_CONDITION: sha=831ac3c3cb3077f16b2f1a7802297523a2db1349 next: NEW_VERSION=1.91.258.0; commit and push only the stamp diff above (FILES), with no edit of your own: the train's verify accepts the CHANGELOG only as the base's plus this PR's entry re-headed; merge with the expected head 831ac3c and recompute on a stale queue. GSTACK_RESULT: skill=restamp status=complete run=/workspace/gstack/.gstack/tmp/restamp-journal.json Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
garrytan
force-pushed
the
gsta-114-install-runtime
branch
from
October 26, 2026 22:38
70f2b5b to
8630de4
Compare
This was referenced Oct 26, 2026
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
A machine that runs no gstack workflow used to get
gstack: fail not-installed(exit 1) and a crew rule telling it to ignore that;--for nonenow answersgstack: ok not-needed(exit 0) from the wrapper itself, installing nothing. That ok admits no workflow.Before/after as text
Five Captains running gstack on Capy hit the same install friction this week (the harness-codify inventory, section E rows 4, 5, 10, 15, 16, 21 and GBrain 16). Each becomes a product behaviour:
min_gstack_versionin.gstack/ship-policy.json(the fieldgstack-ship-queuealready validates). The doctor's newfloorrow reads it: PASS, SKIP, orWARN floor — installed <v> is below the floor <f> ...; fix: <install command>(PROJECT_FLOOR_UNMET). The Capy installer putsfloor=<f> (<file>)andfix:in the ok trailer. One commit replaces a crew-wide version broadcast (eight since Oct 16). The reader is whitespace-insensitive, reads only the first 64 KiB, takes the first occurrence, and a present value that is not a plain dotted version SKIPs as such.--for nonefor machines that run no workflow:gstack: ok not-needed for=none (...), exit 0, nothing cloned, moved or certified, with or without a checkout; admits no workflow because no verdict is written. Bootstrapper wrapper 3 answers it itself;GSTACK_CAPY_MIN_WRAPPERis 3. A Drive copy below that minimum is a WARN with the owner action, in bootstrapped and direct runs alike; only a pre-bootstrapper copy still fails. An older wrapper handing--for noneto the session never self-upgrades.behind=is a WARN, never a fail above the supported minimum: a skipped session-start fast-forward printsWARN behind ... (UPGRADE_BUSY|UPGRADE_REFUSED|UPGRADE_SKIPPED)and keeps the ok trailer withbehind=<n> (latest: <ver>); upgrade skipped: <reason> (<CODE>); fix: <command>, where thefix:is one runnable command (the refusal prose stays on the WARN row).REVISION_BELOW_MINIMUM(the security floor) is unchanged.PROJECT_NODE_PIN_UNMET): gstack runs on Bun and the project's tests choose their Node. A Bun pin that is unmet staysFAIL pins.--for <skill>on a--for review-voicecheckout says so, applies pins, runs./setupand both host profiles, and replaces the verdict; the admission refusal's fix no longer reads like a reinstall.env,printenv,set -x, bareset/export,export $(...)in a fence) and tooling errors fail loudly (two bounded retries,startresumed rather than restarted, then not assessed with command, exit code and stderr tail; never a quiet partial).ok not-neededis not an install verdict: grep forgstack: ok <revision> for=<skill>); run directories live under~/.capy/work, never/tmp(wiped on wake).Files outside the lane's list that this PR touches, each for one of the items above:
bin/gstack-doctor-check.sh(the floor row, the Node WARN, the WARN print format, the wrapper WARN),bin/gstack-install-verdict.shandlib/install-verdict.ts(one fix-text string),capy/support.env(wrapper minimum),cso/SKILL.md.tmpl(two startup paragraphs, 17,995 bytes),test/helpers/carve-guards.ts(/cso skeleton pin, measured 18,843) andtest/fixtures/context-budget.json(two ceilings,capy/skill/gstackandcso, only).After this lands, the owner recopies
capy/skill/gstack/into the user-scope Drive skill:SKILL.mdandscripts/install.shchanged there (captain.mddid not).Why
Install drift and false install failures cost every crew time: GBrain issue 4 (eight version broadcasts), GBrain 1 and ALPH (
fail not-installedon coordinators reads as broken), ALPH 2 (fail pinsfrom the image's Node), HARN (reviewers "reinstalled" for a workflow), TRUT 5/6 and FOUN 13 (an env dump from /cso setup; a quiet partial on a tooling error), GBrain 16 (/tmp run dirs lost on wake). Garry, 2026-10-26: "Do it and also improve it: fix the issues all the captains have seen in this Capy project".Approvals
Source: gstack-approvals record for gsta-114-install-runtime (display only; not an approval citation).
Summary
bin/gstack-capy-install,bin/gstack-capy-session,bin/gstack-doctor-check.sh,lib/doctor-components.ts,lib/install-verdict.ts,lib/result-codes-capy.ts): thefloorrow,--for none,WARN behindwith one runnablefix:, the Node-only pin WARN, the in-place review-voice upgrade, the wrapper-minimum WARN for bootstrapper copies, three new result codes with troubleshooting anchors.capy/skill/gstack/SKILL.md,scripts/install.shwrapper 3,capy/support.env):--for noneanswered in the wrapper, session-start steps for the new outcomes,~/.capy/workscratch guidance.cso/SKILL.md.tmpl): env hygiene and loud tooling errors in the always-loaded startup block.docs/capy-install.md,docs/troubleshooting.md,CHANGELOG.mdunder[Unreleased]).--for nonenever self-upgrades through an old wrapper, trailerfix:is one command, the floor reader is bounded and whitespace-insensitive,startis resumed not retried.Test Coverage
Coverage audit (Step 7, read-only): 25 of 30 new code paths covered (83%), 80% counting only ★★/★★★ tests; gate PASS against the defaults (minimum 60, target 80; CLAUDE.md has no
## Test Coveragesection). No test files were changed by the audit.Test value: 0 tests written by the audit, 0 rejected by the authoring gate, 0 existing tests extended, 1 path weakly covered (path 30, the /cso startup prose: →EVAL, prompt behaviour is not unit-testable).
Gaps left open (proposed tests, not written): (5)
--for nonewith remote == installed prints nolatest:note, and install mode with no checkout; (8)REMOTE_VERSIONfallback forlatest:when VERSION is absent; (10) the in-place upgrade message stays silent on a first install and a review-voice rerun (partly covered since bytest/gstack-capy-install.test.ts's "silent in-place message" case); (13) an unknown skip code collapses toUPGRADE_SKIPPED(covered since in pass 1's fixes); (17) the floor fix fallback chain when neither the wrapper path nor a behind fix is known.Tests ran: see Test plan (focused suites per commit; the free suite's remote lane is recorded below).
Pre-Landing Review
Three review passes (the cap under crew rule 23) plus a binding-only pass on the frozen tree.
GSTACK_CAPY_MIN_WRAPPER=3made a direct run (bin/gstack-upgrade's installer call, a baregstack-doctor --check) a hardFAIL wrapperon every machine whose Drive copy is the deployed wrapper 2. Fixed: bootstrapper copies below the minimum are a WARN with the owner action; only a pre-bootstrapper copy fails. Also fixed:--for noneself-upgrading through a wrapper-2 handover, a stale header comment, theok not-neededambiguity against^gstack: okgreps. Quality score 3.5 → fixes in fc69d3f.sedmissed a value on the line after its field (Codex P2); the trailerfix:carried the refusal prose with the;separator (Medium); the Node-only WARN leaves no trailer note (Medium, investigate: documented in the row, not the trailer; deferred). Then: the whole policy file was slurped throughtr(95 MB → 2 GB RSS, Medium) and the SKIP text claimed ship-queue rejects what it accepts (Low). Fixes in 761a22b and b017544.min_gstack_versionoccurrence, so a nested object placed before the top-level field wins ({"$schema":{"min_gstack_version":"0.0.0"},"min_gstack_version":"999.0.0.0"}reads 0.0.0; only JSON-aware top-level extraction fixes both orderings, andlib/ship-policy.tsrejects unknown nested keys so a policy ship-queue accepts cannot trigger it); (b) cso/SKILL.md.tmpl:33 "resume it, retry only when none exists" does not say how to learn whether a run exists (gstack-cso resumeneeds the IDstartprinted); (c) a test asserted on the shared/tmp/pwned(fixed, test-only, e814e2d). After the cap, one more test-only commit (79e3108) takes main's 3-linetest/host-conformance.test.tsC3 fix (test(host-conformance): the C3 broken-section-link case depends on readdir order (fails on ext4 VMs, passes on Actions) #3479) verbatim so the remote gate can run on this tree; the reviews were re-bound on that tree with no findings.--for nonestill fetches before the trailer; install.sh:122ok not-neededprinted before the remote_min comparison; lib/doctor-components.ts:100 NOT_NEEDED_REVISION duplication; bin/gstack-capy-install:606/627 shrink notes; bin/gstack-doctor-check.sh:375--jsonfixcarries itsfix:/owner action:label; bin/gstack-doctor-check.sh:501 a non-string floor value still reads as "null or absent"; test/helpers/carve-guards.ts:452 the /cso skeleton cap is a re-pin; unquoted$ROOTin the fix command when the root path has spaces; the--check/disabled path's behind fix is two commands (unset GSTACK_CAPY_SELF_UPGRADE, then bash …, pinned by an existing test).Gate edits: 17 listed, 16 read, 0 findings — 0 kept, 0 restored, 0 open (16 untagged hunks are expectation updates that follow a product change: wrapper 2→3,
fail behind→WARN behindexit 0, Node pin FAIL→WARN,floorin the required-row list, two context-budget ceilings and the /cso skeleton pin raised by the measured size of the added prose).Outside review (Codex, gpt-6-astra, CODEX_MODE unverified): pass 1 adversarial Medium + structured P2 (fixed); pass 2 structured P2 + adversarial Low (fixed); pass 3 structured VERDICT clean with the nested-first P2 above, adversarial two Low (one fixed, one deferred).
Exploratory QA
Surface: CLI (installer, doctor, wrapper). Six charters at
.gstack/qa-reports/ship-3475-functional:--for nonewith and without a checkout,WARN behindtrailer with a skipped upgrade, thefloorrow met/unmet/absent, the Node-only pin WARN beside a Bun FAIL, the in-place review-voice upgrade message, the wrapper-minimum WARN. 6 of 6 probes pass, verdict pass, 0 findings (one wording note on probe 005, resolved in pass 1). Fixtures under~/.capy/work/qa3475; no product fix came out of QA.Design Review
No frontend files changed — design review skipped.
Eval Results
Prompt-related files changed (
cso/SKILL.md.tmpl,capy/skill/gstack/SKILL.md).eval:selectpreview selected derived gate cases forbin/gstack-capy-install(250) andbin/gstack-doctor-check.sh(250) and the cso-diff-mode probes; none were run (paid; this lane is capped at $10, the full gate runs once per merge train). READY will ask for--screen.Greptile Review
No Greptile comments.
Plan Completion
Plan:
harness-codify.mdlane F items E7–E10, E13–E16, E21–E23 and GBrain 16 for this PR: 6 of 7 DONE; GBrain 16 (run directories under~/.capy/work) is documentation only in this PR, no code default was added.Verification Results
Step 8.1 obligations executed at Step 9: 6 PASS (the six QA probes above), 0 FAIL, 0 BLOCKED, 0 NOT RUN.
TODOS
No TODO items completed in this PR.
Documentation
Status: current. The branch's documentation already matches the shipped behaviour, so no edits were needed.
Scope: base 5755601, HEAD e814e2d, 22 committed files, no staged, unstaged or untracked changes. Steps 1, 1.5, 2-4 and 6 ran. The diff-driven docs and the code that defines the changed contracts were read, and all 705 candidate doc and template files were grepped for stale claims. The three main docs were read through the branch diff and targeted sections, not in full, since nothing was edited.
Documentation health:
docs/capy-install.md: Current. It covers--for none, the in-place review-voice upgrade, the floor row, the Node-pin WARN and theWARN behindoutcome. Trailer examples match the installer and wrapper minimum 3 matchescapy/support.env.docs/troubleshooting.md: Current. Anchors forPROJECT_FLOOR_UNMET,PROJECT_NODE_PIN_UNMETandUPGRADE_SKIPPEDmatchlib/result-codes-capy.ts. TheUPGRADE_BUSYand wrapper sections no longer describefail behind.capy/skill/gstack/SKILL.md: Current. It documents--for none,floor=, informationalbehind=, the Node WARN, in-place upgrade and~/.capy/workscratch.capy/skill/gstack/scripts/install.shandcapy/support.env: Current. Header comments match the code.cso/SKILL.md.tmpl: Reviewed, not edited (size cap).CHANGELOG.md: Current; not edited. The Unreleased entry matches the behaviour.Coverage debt:
--for none, the floor row,WARN behind, the Node-pin WARN and the three result codes (docs/capy-install.mdanddocs/troubleshooting.md).min_gstack_versionas a project floor is not cross-referenced fromdocs/ship-policy.md(no how-to for raising a floor).--for none.Issues
Refs #3479
(main's
test/host-conformance.test.tsC3 fix for #3479 was taken as a test-only commit so the remote free tier could run; the issue itself was closed by main.)Test plan
bun test test/gstack-doctor.test.ts test/gstack-capy-install.test.ts test/capy-skill-wrapper.test.ts test/doctor-components.test.ts test/capy-review-voice.test.tsat each review-fix commit: 134 / 318 / 247 pass, 0 fail (fc69d3f); 126 pass, 0 fail (761a22b); 30 and 99 pass, 0 fail (b017544);bun test test/gstack-doctor.test.ts -t floor2 pass (e814e2d).bun run gen:skill-docs --host allleaves the tree clean;bun run typecheckandbun run format:cso:checkpass at e814e2d (79e3108 adds only main's 3-line test fix).gstack-pregate --stage tests --remote --spend-cap 2, us-east-a2): 749 files, 21,507 tests, 0 failed at tree d512820b (head 79e3108). Three files failed once and passed on the runner's serial retry (test/pregate-supervise.test.tsstall-timeout case,test/section-capture-native-tools.test.tscompletion clock,test/plan-seed-submission.test.tsstartup-placeholder-unicode): timing-sensitive cases on a loaded 16-vCPU VM, not touched by this PR. An earlier run at e814e2d (before main'stest/host-conformance.test.tsC3 fix was taken) had that one pre-existing red, test(host-conformance): the C3 broken-section-link case depends on readdir order (fails on ext4 VMs, passes on Actions) #3479. macOS and Windows lanes cleared from the dispatched Actions runs 40372676954 and 40372682379. Ubicloud spend $0.39 (two capacity timeouts, two runs).test/fixtures/context-budget.json(both rows kept:captain12011 from main,capy/skill/gstack4075 from this PR) andCHANGELOG.md(main's file with this PR's [Unreleased] block on top, 31 insertions, nothing dropped);bin/gstack-doctor-components.shregenerated. Focused suites on the merged tree (doctor-components, gstack-doctor, gstack-capy-install, capy-skill-wrapper, capy-review-voice, context-budget-ratchet, context-budget, catalog-budget, skill-size-budget, parity-suite, changelog-style, bun-entry-isolation, spawnsync-timeout-tripwire): 165 pass, 0 fail; typecheck, typecheck:test, format:cso:check clean; gen:skill-docs leaves nothing dirty.browse/test/headless-gpu-and-reap.test.ts,browse/test/headless-launch-options.test.ts,test/section-capture-native-tools.test.ts): timing-sensitive browser and clock cases on a loaded VM, not touched by this PR. macOS and Windows lanes cleared from the pull_request runs 40397018343 and 40397018320 (all 8 workflows green at 9b104d0).gstack-pregate(install 1.91.254.0, with v1.91.254.0 pregate: starter policy, benign-finding allowlist, environment vs diff failures, per-run scratch #3480's literals matcher) on the merged tree: every stage passes exceptliterals, which still flagsGSTACK_CAPY_WRAPPER2 → 3 at five locations that only carry an incidental2(capy/skill/gstack/scripts/install.sh:12"from revision 2" in a comment,test/capy-skill-wrapper.test.ts:331"Field list 2",test/gstack-doctor.test.ts:77andtest/gstack-upgrade-bin.test.ts:240a$2in a stub script,test/pregate-selection.test.ts:106export default 2in a fixture). No test asserts the old revision (the wrapper tests read the number from the file), so the check's "update each listed test" fix does not apply; v1.91.254.0 pregate: starter policy, benign-finding allowlist, environment vs diff failures, per-run scratch #3480's allowlist covers the secrets check only. Left as a known false positive per option A (no edit tolib/pregate/checks/literals.ts, no rename)); filed as pregate literals: false positives on incidental "2" (comments, $2, fixtures) with no allowlist route #3492 for the next pregate PR.🤖 Generated with Claude Code