Repository navigation
Conversation
…GSTA-161) modules/loadouts.json gains the lite loadout (eleven coaching preamble pieces dropped; upgrade-check and brain-sync kept) and a models map that sends only claude-opus-5-5 (and its dated snapshots) to it. Detection is explicit: Capy passes --model to the installer, Claude Code opts in with ./setup --loadout lite; anything unmapped, invalid or unreadable serves full. The checkout always stays the full render. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…p --loadout; troubleshooting anchors; changelog fragment (GSTA-161) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…text ceiling for the --model line (GSTA-161) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…STACK_LOADOUT_SKILL_ROOT, claude_loadout guard test) (GSTA-161) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…MODEL so an older installer ignores it) (GSTA-161) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… root from the canonical Claude install; fallback reason and source) (GSTA-161) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ch-file note (GSTA-161) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
Merging to
After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here |
E2E Evals: ❌ FAIL125 executed, 0 reused rule/judge records | 0 manual accepted (unscored; no score-cache credit) | $33.57 rule/judge cost | reconcile exit: 1 Profile: pr / mode Full gate restored by:
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. Failures and split verdictsDispatched narrow screen (gstack-ship-queue ready --screen) of merge commit |
…dout Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # test/fixtures/context-budget.json
…opus-lite-loadout Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # scripts/resolvers/preamble/generate-preamble-bash.ts
|
Frozen in wave |
|
Frozen in wave |
…GSTA-36) Resolution: test/fixtures/context-budget.json keeps main's capy/skill/gstack ceiling (5315). To fit it, #3700's GSTACK_MODEL/SKILL_ROOT sentence leaves capy/skill/gstack/SKILL.md (approved cut; GST-982 moves model pickup into the Capy installer). Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
* feat(loadouts): Opus 5.5 lite loadout with explicit model detection (GSTA-161) modules/loadouts.json gains the lite loadout (eleven coaching preamble pieces dropped; upgrade-check and brain-sync kept) and a models map that sends only claude-opus-5-5 (and its dated snapshots) to it. Detection is explicit: Capy passes --model to the installer, Claude Code opts in with ./setup --loadout lite; anything unmapped, invalid or unreadable serves full. The checkout always stays the full render. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * docs(loadouts): Opus 5.5 lite, detection order, Capy SKILL_ROOT, setup --loadout; troubleshooting anchors; changelog fragment (GSTA-161) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix(loadouts): claude_loadout read through CONFIG_BIN; capy skill context ceiling for the --model line (GSTA-161) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix: pre-landing review fixes (prune keeps a reused loadout folder, GSTACK_LOADOUT_SKILL_ROOT, claude_loadout guard test) (GSTA-161) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix: pre-landing review fixes (Capy skill passes the model as GSTACK_MODEL so an older installer ignores it) (GSTA-161) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix: pre-landing review fixes (prune only owned, unused folders; full root from the canonical Claude install; fallback reason and source) (GSTA-161) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * docs: loadout source example, install and resolve commands, Capy launch-file note (GSTA-161) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * feat(autoplan): --ceo-only runs the CEO review alone with zero questions (GST-537) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix: pre-landing review fixes Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * test: classify autoplan-ceo-only in the Codex host metadata Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix: select autoplan-ceo-only on the skills it runs; say it needs Claude Code Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * test: run autoplan-ceo-only in the marathon lane Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * docs: changelog entry for /autoplan --ceo-only Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * test: count the autoplan-ceo-only paid file in the shard inventory Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * feat: gstack-autoplan next --ceo-only runs the CEO review alone and ends reviewed (GST-537) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix: budget and close recover a budget-stopped CEO-only run; reviewed is at rest for checkpoints Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix: CEO-only finish leaves owner-only cap items undecided, refuses marker phase flags and a plan at the report path, and replaces ceo-review.md atomically Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix: the CEO-only report-path guard compares real paths and refuses at the finish when the report file is the plan Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * docs: CEO_ONLY_CONFLICT covers a plan linked to the report path Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * test(browse): failing-first device and touch tests (GSTA-227 F3, #3058) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix: the report-path guard keeps the lexical check, skips safe hard links and compares bigint file ids Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * browse: per-session tabs for parallel agents; tab pins stop moving the shared active tab (#1961) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * browse: keep the server.ts tab-pin anchor comment for source guards Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * feat(browse): per-tab phone emulation and touch input ($B device, tap, swipe, pinch, touch; #3058, GSTA-227 F3) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * test: copy lib/result-codes-autoplan.ts into the fixtures that copy the result-code tables, and keep it out of derived closures Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * docs(qa, aside): touch pointer in /qa, Aside touch recipe verified on Aside 1.26, report Phones row (GSTA-227 F3, #3058) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * browse: drop the sessions paragraph from /browse to stay inside the parity cap Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * changelog: F3 phone emulation and touch entry Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * browse: hide the ps window in the session harness walk Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * docs: the decisions.jsonl status list names auto_kept Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * test(browse): session cap, LRU eviction, headed release and scoped auto-session rows Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * browse: sessions keep tab <id> picks, sidebar claude stays on the user's tab, pinned rebuild and state load rebind the scope Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix: pre-landing review fixes (touch cancel with no finger held is a no-op) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix: Step 11 review fixes (headed tab adoption, pinned viewport reset, CLI retry keeps --session, rebuild id remap, --json notice, evicted-session reset, device kept after annotated captures, render opts out of sessions, session: client ids reserved) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix: headed viewport auto keeps the user's active tab; render's closetab opts out of sessions Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * docs: sessions, phone emulation and touch in BROWSER.md; session: client ids reserved; TODOS #1961/#3058 shipped Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * test: copy lib/result-codes-browse.ts into the fixtures that copy the result-code modules lib/result-codes.ts imports ./result-codes-browse, so fixtures with an explicit lib list failed with 'Cannot find module'. pr-dependencies lists it with the other reason-code modules as selection data. GSTA-227 Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * feat: gstack-clean reclaims per-repo .gstack scratch and logs, dry run by default (#2627) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * browse: name the Aside touch recipe's coordinates <tap-x>/<tap-y> with a numeric grammar The generated-bash lint (INV-3) rejected the free-text <x>/<y> placeholders. GSTA-227 Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix(clean): leave hard-linked and unreadable logs alone; cut through a no-follow descriptor checked against the evaluated inode Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * test(clean): tests that expect tmp removal see a quiet ps, so a codex elsewhere on the host cannot flake them Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix(clean): an unlistable tmp/ skips its group; liveness asked once per group on apply; BROWSER.md says which logs reset at daemon start Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix(clean): write output synchronously so --json reaches a pipe whole; test fixes for root, wrapper git and the ps stub Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix(clean): every change rechecks the verified folder and the measured file; full writes; EPIPE ends output quietly Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * test(clean): the early-close test checks the bin's own exit status Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * docs: list gstack-clean among the standalone CLIs Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * test(clean): copied-install fixtures and the dependency list carry lib/result-codes-clean.ts The remote pregate failed 11 cases in gstack-doctor, plan-tune-cathedral and timeline-stop-hook-slug: each copies an explicit list of lib/result-codes-*.ts files into a temp install, and lib/result-codes.ts now imports ./result-codes-clean. Same lists GSTA-168 extended for result-codes-eval. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * chore: regenerate gstack-doctor-components.sh for the gstack-clean result codes Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * qa: fold the touch pointer into the Phases sentence to fit the parity size cap after the main merge qa's union was 95988 bytes (ratio 1.142 > maxSizeRatio 1.142, train 75). Now 95975 (1.1419). GSTA-227 Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * docs: #3058 troubleshooting 'Fixed in' lines name v1.92.10.0 after the main merge GSTA-227 Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * test(clean): classify gstack-tasks rows files (tasks-*) as kept, after main added the producer Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * docs: #3058 troubleshooting 'Fixed in' lines name v1.92.20.0 after the main merge GSTA-227 Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix: pre-landing review fixes (restore the lib/result-codes-plan.ts ratchet row the base merge dropped) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * test(clean): the producer scan ends a name at a colon, so prose after a path names the file (train 78) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * docs: #3058 troubleshooting 'Fixed in' lines name v1.92.30.0 after the main merge GSTA-227 Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * outside-voice-api: caller receipts, stop_reason, OpenAI max_completion_tokens A caller can write its own egress receipt (sink, consent, payload class); the default stays the outside-voice receipt, so existing callers send and record the same bytes. The result carries the provider's stop reason, and an OpenAI request gets max_completion_tokens only when the caller sets an output limit (GST-537 PR 3). Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * autoplan gate: item classes and the owner's answer provenance Gate items carry item_class, ruleKept() names the keep-direction pick, and answered decision rows record owner_mode, owner_named, rec_hash and answered_role parsed from the owner's own words (GST-537 PR 3). Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * autoplan: shadow-mode decider module, frozen prompt and spend accounting The switch (off by default, fixed at init), the lease, one model call per gate with a page retry and a truncation retry under one deadline, the once-per-revision record with its journaled sha256, the 10% audit mark, and shadow-labeled ledger rows that count against the cap, show as shadow= on GATE_SPEND and stay out of the per-voice price (GST-537 PR 3). Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * gstack-autoplan: shadow every published gate, the shadow export, config and docs Every driver command that prints a gate records the shadow first and checkpoints after it; answer waits for a live lease and records a dead one retrospectively; gstack-autoplan shadow exports answered revisions for taste-replay R2 (SHADOW_BEFORE_ANSWER otherwise); gstack-config autoplan_shadow / autoplan_shadow_model; gstack-artifact validate checks the record's hash (GST-537 PR 3). Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * changelog: shadow mode for the CEO-only decider (GST-537 PR 3) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * autoplan shadow: /ship review fixes - register test/fixtures/shadow-fake-model.ts in FREE_FIXTURES (free-fixtures inventory failed) - withRunLock: count dead-owner reclaims apart from waitMs iterations, so a long wait can still reclaim - buildPage: fill the decider template in one pass, so slot names inside the plan stay plan text - revise regate: the shared publish step prints the GATE and ESCALATE lines once Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * autoplan shadow: reply files never follow a link; the retry reserves against the current cap - a model reply is written by temp file and rename, so a link at the reply path is replaced, not written through - each shadow reservation reads the run's current spend cap, so a budget change during the call is not undone Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * outside-voice-api: write the egress receipt under the caller's env callModel resolved the receipt's state root from process.env even when the caller passed env, so the shadow tests wrote to the real ~/.gstack (the free-suite home-containment guard caught it). The receipt now uses req.env; the shadow tests give the fake model a private HOME, GSTACK_HOME and GSTACK_STATE_ROOT, and the receipt test no longer sets process.env to pass. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix(autoplan): CEO-only runs leave main's open Critical/High finding items to the owner (no decision row) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix(autoplan): shadow pages carry main's finding items; a finding item is never ceo_eligible After merging #3767 (main 90a170c), open Critical/High findings are gate items (item_class finding). The shadow records one row per gate item, so its pages now include them. A CEO-only run leaves those items to the owner, so their rows are ceo_eligible false (rule_pick was already null). The shadow fixtures follow main's gate (items, counts, "Do it" tokens); the two merge adapters follow main's doNext(out, rest, price) and its per-voice reservation (--estimate-usd). Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * docs: #3058 troubleshooting 'Fixed in' lines name v1.92.61.0 after the main merge GSTA-227 Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix(investigate): drop the five-phase step procedure (GST-938) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * changelog: GST-938 fragment wording Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix(investigate): keep the web-search sanitize guard; update BROWSER.md and docs/skills.md (review pass 1) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * changelog: GST-938 wording Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * test(investigate): pin the web-search guard; changelog size (adversarial review) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * test(clean): classify restamp-staging.json, the restamp producer main gained after #3779's base (wave browse) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix: pre-landing review fixes (wave browse): scoped newtab keeps a concurrent tab switch; shadow validate catches a deleted record; a failed shadow publish is journaled Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix: a failed shadow publish journals under the run lock and never throws (wave browse review pass 2) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * docs(unattended): shadow publish failures and the missing-record validate check (wave browse docs audit) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * changelog: wave browse integrator fixes fragment Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * fix: shadow reader dedupes by run folder, so two runs started in the same second both count (wave browse CI free-suite 16) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * chore: regenerate doctor result anchors in generator order (wave browse rebuild without #3818) Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> * changelog: name the wave fragment after the rebuilt wave 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>
What changed
Opus 5.5 now resolves to the
liteloadout. A dated Opus snapshot maps to its base id, and every other model stays onfull.Text version
Why
GSTA-36 asked for this: "PR 1b ships lite as an Opus loadout only. The default stays full everywhere." Every model read eleven coaching sections of the shared preamble on every skill, and Opus 5.5 showed no loss without them. Now a Capy session on Opus 5.5 reads skills about 10.7 KB smaller on land-and-deploy. Every other model, and any model gstack is not told about, still reads the full skills, and the committed SKILL.md files stay the full render.
Blast radius
Most of the change touches only sessions that name Opus 5.5. The Capy installer,
./setup, gstack-config and the skill start line pick the loadout. Any unmapped, invalid or failed case serves full and prints a named note, and the install verdict and its key do not change. The one shared surface is the Capy skill's install line. It now passes the model asGSTACK_MODEL=<id>in front ofinstall.sh, so an installer older than this PR ignores it instead of refusing a--modelargument. Evidence:test/gstack-capy-install.test.tsruns both forms, and the fix-check read the bootstrapper andgstack-capy-sessionand found that both pass the environment through.Approvals
Source: gstack-approvals record for gsta161/opus-lite-loadout (display only; not an approval citation).
Evidence
Results are exploratory and support no public claim.
Preamble measurement (office-hours, GSTA-161, prereg 4ff434a, 13 tasks × 3 trials,
handoffs/GSTA-161/preamble-measurement.md).Opus showed no measurable loss: lite minus full was +10.3 pp, the same size as the run-to-run noise between the two full panels. Haiku caveat: Haiku leaned against lite (−5.1 pp, two tasks regressed, verdict FAIL), so small models stay on
fulland onlyclaude-opus-5-5maps to lite.Land-and-deploy confirmation (three arms, prereg 2f36500, 10 tasks × 3 trials on Opus 5.5, ledger gsta161-ldl-confirm, $43.08 of the $75 line). After = this branch's lite render, before = full, none = the same Opus model with no gstack skill text.
The first run was FAIL on ci-red-override. All three lite trials merged with CI red, and one of them used
--admin. The prereg allows one same-tree rerun of a red task (crew rule 16). The rerun went 3/3 lite against 2/3 full, so the verdict is PASS with ci-red-override flagged as flaky: lite minus full is +3.3 pp [−6.7, +13.3], with no loss signal. Full is noisy on this task too: it went 2/3 and 1/3 on the two full panels of the earlier land-and-deploy run (handoffs/GSTA-161/land-and-deploy/verdict.md), then 2/3 and 2/3 here.The prereg (2f36500) sets limits on what this run can show. With 10 tasks × 3 trials it cannot rule out a loss smaller than about 15 pp, so it guards against a visible regression and does not prove equivalence. No gstack minus full is −73.3 pp [−93.3, −53.3]. No gstack minus lite is −76.7 pp as a point difference; the runner computes no interval for it.
Secondary measures, mean per session, with the rule-16 rerun substituted:
None of the 30 lite sessions loaded a file under the full root, so the start line's re-read rule never fired. At this branch's head, the lite land-and-deploy render is byte-identical to the evaluated image in all 6 files.
Summary
GSTA-36 asked for lite as an Opus-only loadout, gated on a three-arm confirmation run. This PR makes
claude-opus-5-5, and only that id with its dated and-latestsnapshots, resolve tolite: full minus eleven coaching pieces of the shared preamble. Model detection is explicit. It checks an explicit loadout first, then the installer's--model, thenGSTACK_MODEL, and falls back to full. gstack never guesses the model from Claude Code settings.On Capy, the installer publishes the lite tree once per identity under
<state root>/loadouts/<loadout>-<digest12>beside the full install. It printsLOADOUTandSKILL_ROOTlines and writes a separate launch file, so the install verdict and its key never change. On Claude Code,./setup --loadout <name>savesclaude_loadoutand serves the loadout from the untracked render dir. The committed checkout always stays the full render.A lite skill's start line carries its bound model and the full root.
gstack-skill-startthen tells a session on another model to read the full file instead (LOADOUT_MISMATCH). Every unmapped, invalid or failed case serves full and prints a named note with a troubleshooting anchor.Test Coverage
New:
test/model-detect.test.ts,test/module-loadouts-install.test.tsandtest/loadout-setup.test.ts. Extended:test/module-loadouts.test.tsandtest/gstack-capy-install.test.ts. Together they cover:GSTACK_MODELand--modelinstall paths, the fallback reason,./setup --loadoutand theclaude_loadoutguard.The coverage audit counted 20 of 27 paths tested (74%, value-weighted 70%) before the review fixes added the prune, guard and
GSTACK_MODELcases. The paths still without a test are error text (--refresh-registeredwith no Claude target,--loadouton a non-Claude host), the manifest-unreadable catch branch, and gbrain-refresh with a saved loadout.Tests ran: remote pregate (Ubicloud, free tier) at caaa141, tree af58ab23b01a: 22541 tests, 0 failed.
Pre-Landing Review
Pass 1 found four findings below the floor and fixed the three in the diff. Pass 2 found one blocker and fixed it: the Capy skill told sessions to pass
--model, which an installer older than this PR rejects. Step 11's native and outside voices queued six fixes: prune ownership plus a one-day grace, command paths for a nondefault full root, the canonical Claude root, the launch-file check order, and the fallback reason and source. Both fix-checks were clean.Pass 4 ran after the second main merge (caaa141), at full depth. #3829 (GST-850) now counts any
child_processimport as security risk, which covers the git spawn inscripts/modules-install.ts. GSTA-36 granted this round outside the cap. It ran a batched specialist (testing, security, state machines), the Red Team, the native adversarial pass, the targeted gate reader and the outside voice (openai/gpt-6.1-sol). None of them found a security hole: the specialist reported nothing, and the adversarial pass checked the injection paths, the install lock and the launch-file handling and recommended shipping. The six findings labeled blocking are robustness and coverage gaps. GSTA-36 ruled they ship as open notes, listed below.REVIEW_LOOP: passes=4 blocking_found=16 deferred=2 noted=15 fixed=11 scope=frozen fix_checks=2 dispatches=8
Gate edits: the pass 4 plan on
dd9834d44..HEAD, under the GST-850 classifier, classes itgate(bin/gstack-capy-install). The gate scan tagged 26 hunks, and the depth is full because ofrisk:security. The targeted gate reader went through them and found one informational item, listed below.Outside review (openai/gpt-6.1-sol, high): request changes. Its four findings are fixed in 12bb281, and the fix-check confirmed the fixes.
Deferred findings
Blocking findings in code this PR did not change (review scope: frozen). Each is filed as an issue and is not closed by this PR.
passcomputes the diff base asgit merge-base <base> HEAD#3693, CRITICALbin/gstack-review-dispatch:158.passtakes the diff base from the bare localmain, which a Capy clone never updates. Passes 1 and 2 of this /ship therefore reviewed a range 62 main commits wider than the PR. The readers said they also read the PR's own 27 files, and this run reset localmainbefore the outside voice.bin/gstack-render-claude.sh:168. A failedclaude_loadoutre-render under the default overlay keeps the previous version's render without a message. The same gap already existed forplan_mode_preamble=off;claude_loadoutwidens it.Review notes
Below the blocking floor (advisory, informational, test-gap or wording items). They are recorded here and not fixed in this PR.
modules/loadouts.json:64: lite dropspreamble:search-before-building, the only place the ETHOS.md path appears. The lite office-hours and plan-ceo-review renders still point at that section, so Opus 5.5 is told to look in a section that is not loaded. This is the native Medium the plan deferred.lib/ship-queue-land.ts:432: already on main and outside this PR. Per-PRlandmerges on the checks scheduled so far and never readschangelog_fragments.required_checks.bin/gstack-skill-start:350:LOADOUT_MISMATCHneedsGSTACK_MODELin the session's environment, but the Capy skill sets it only in front ofinstall.sh. Nothing readsGSTACK_LOADOUT_SKILL_ROOT.scripts/modules-install.ts:177: with a non-nullinstallRoot, the SKILL byte-ceiling diagnostic becomes a warning, so a nondefault full root could publish an oversized lite tree. Lite is smaller than full today.Exploratory QA
bin/gstack-modules install --model claude-opus-5-5ran on the live checkout into a scratch store. It built a 433-file, 6.5 MB tree, all 118 absolute references in it resolve, and its start lines carry the binding flags. A second run reused the folder.Design Review
No frontend files changed, so design review was skipped.
Eval Results
See Evidence above. Office-hours preamble measurement: Opus lite 90% vs full 79% (second full panel 90%); Haiku lite 64% vs full 69% (FAIL). Land-and-deploy confirmation with the rule-16 rerun: lite 93%, full 90%, no gstack 17%, PASS with ci-red-override flagged as flaky.
Plan Completion
Plan items A1, B1 (claude-opus-5-5 and its snapshots only), C1 and D1 are built as approved. The three-arm confirmation ran as preregistered. Parked by GSTA-36: the plan-ceo-review and qa diets.
Verification Results
Focused suites after the second main merge at caaa141 (context-budget-ratchet plus the preamble, skill-start and Hermes tests): 283 tests, 0 failures.
bun run typecheckis clean.gen:skill-docsand--host allleave no diff. The troubleshooting anchors and docs link tests ran 360 tests with 0 failures at 12bb281.TODOS
No TODO items completed in this PR.
Documentation
Status: updated (four factual fixes in three docs, no blockers)
Scope: base 02da1a0..12bb281 on gsta161/opus-lite-loadout (27 committed files; nothing staged, unstaged or untracked). Docs written on the branch (docs/loadouts.md, docs/troubleshooting.md, docs/PROJECT_STRUCTURE.md, CONTRIBUTING.md, capy/skill/gstack/SKILL.md, the changelog.d fragment) were checked against the installer, skill-start, setup, gstack-config, model detection and gstack-modules code. docs/capy-install.md, README.md, CLAUDE.md, AGENTS.md and ARCHITECTURE.md were checked for drift.
Doc diff preview:
source=model-flagis nowsource=GSTACK_MODEL, matching how the Capy skill calls the installer; addedgstack-modules resolveandinstallto the Commands block, and one sentence onrender --bind-model <id> --full-root <abs>.LOADOUT_INVALID_MODEL,LOADOUT_MISMATCHandLOADOUT_FALLBACKservefullinstead of exiting 2.--model/GSTACK_MODEL, theLOADOUTandSKILL_ROOTlines, and the per-loadout.loadout-<name>-<digest>.envlaunch file that addsGSTACK_LOADOUT_SKILL_ROOT.Documentation health:
Documentation Debt
./setup --loadout <name>has reference insetup --helpand docs/loadouts.md, but there is no how-to in README.md's install section.claude_loadoutconfig key is described only in docs/loadouts.md and gstack-config's defaults; there is no config-key reference page.Diagram drift: none (ARCHITECTURE.md names no loadout or model-detection entities).
Test plan
UBI_OWNER=gsta161 gstack-pregate --stage tests --remote --spend-cap 2 --timeout 2700 --allow-repo-commands: 21654 tests, 0 failed on tree db00d439d8fa (remote gate, Ubicloud)bun run typecheckclean;gen:skill-docsand--host allno diffOpen review notes from pass 4 (accepted by GSTA-36, not fixed in this PR)
scripts/modules-install.ts:177(outside voice, reproduced by the Red Team): the lite tree renders without the install's gbrain detection anddisabled_skills, and the install identity leaves both out. On a gbrain-detected machine, Capy Opus 5.5 sessions lose the GBRAIN_CONTEXT_LOAD and GBRAIN_SAVE_RESULTS blocks that the full install serves, and disabled skills show up again in the lite router../setup --loadout liteis not affected.scripts/modules-install.ts:135(outside voice and the adversarial pass): prune treats a folder's mtime as its last use, but only an install reuse refreshes it. A session that started more than a day ago can lose its lite tree once three newer identities exist. Capy checks again at every session start, which limits the exposure.scripts/modules-cli.ts:114(outside voice): after an explicit./setup --loadout lite, thefullanswer for another model returns~/.claude/skills, and that folder serves the lite render while reportingLOADOUT: full.scripts/modules-install.ts:140(adversarial):prune()callsstatSyncwith no guard. A concurrent prune can hit ENOENT after this install has already published its tree, which turns a successful lite publish into the full fallback. No data is lost.scripts/modules-install.ts:162(adversarial): a folder at the final path that fails its integrity check throwsRENDER_DEST_NOT_OWNEDon every install, so that identity stays on full until the source tree changes. The message names the folder to remove.scripts/modules-install.ts:151(adversarial): the identity includes uncommitted and untracked changes, so every edit in a dev checkout publishes a new 6.5 MB tree, andcapy-install --checkwithGSTACK_MODELset now writes that tree.modules/loadouts.json:61(targeted): lite leaves outpreamble:evidence, the "Claims Need Evidence" rule, and the rule is not pinned. The preregistered runs measured office-hours and land-and-deploy, not evidence claims on /ship or /review.