Repository navigation
v1.92.22.0 feat: Gemini CLI host, and older installs drop the dev toolchain - #3778
Conversation
…production deps (#3447) ./setup used node_modules/typescript as its contributor signal, so every install made before v1.91.231.0 (a full bun install) kept ~520 MB of test and eval packages forever. The contributor is now the clone bin/dev-setup marks with git config gstack.contributor true, or GSTACK_CONTRIBUTOR=1. An unmarked clone with the dev toolchain moves node_modules aside under a checkout lock, installs production-only, verifies every dependency, and drops the backup; any failure puts the full install back with SETUP_DEPS_MIGRATE_FAILED. CI and a clone whose git config cannot be read never migrate. Bun cache entries for the pinned Agent SDK are removed only when no other project links to them. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
./setup --host gemini (alias gemini-cli; --host auto when gemini is on PATH) installs gstack-<skill> directories into ~/.gemini/skills, which Gemini CLI 0.66.0 lists with gemini skills list, plus the ~/.gemini/skills/gstack runtime root. Renders go to .gemini-cli/ (gitignored) with name+description frontmatter whose names match their directories, CLAUDE.md rewritten to GEMINI.md, and a tool glossary for Gemini CLI's names (and Antigravity's, which can read the same folder). gstack-uninstall removes only gstack-managed entries there, so the user's own skills stay. Docs: ADDING_A_HOST.md verified facts, hosts.md, uninstall.md, README. 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>
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. |
…ontributor-marker Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # test/fixtures/skill-md-size-allowlist.json
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
E2E Evals: ✅ PASS (flaky: 2 case(s) passed on their one rerun)125 executed, 0 reused rule/judge records | 0 manual accepted (unscored; no score-cache credit) | $32.28 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. Flaky: failed once, passed on its one rerun (rule 16)Each failed and passed on its rerun in run 41282170782 at the attempts named above. Logged for the daily flaky-fix pass in this run's Dispatched narrow screen (gstack-ship-queue ready --screen) of merge commit |
…ontributor-marker Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # test/fixtures/skill-md-size-allowlist.json
…9fa633 The grant-3 merge resolved the CONTRIBUTING.md conflict by taking main's whole file, which dropped this branch's First free check lint section. This keeps main's #3778 toolchain sentence (plus oxlint) and restores every other line from 773964f byte for byte. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
What changed
./setup --host gemininow installs every gstack skill where Gemini CLI 0.66.0 finds it; your own skills stay.Before/after as text: ./setup --host gemini now installs every gstack skill where Gemini CLI 0.66.0 finds it; your own skills stay
An install made before v1.91.231.0 moves to production dependencies once; a contributor clone marked by
bin/dev-setupkeeps everything.Before/after as text: An install made before v1.91.231.0 moves to production dependencies once; a marked contributor clone keeps everything
Why
Gemini CLI users asked for gstack (#1247), and Gemini CLI 0.66.0 reads Agent Skills from
~/.gemini/skills, so it fits the same host model as Antigravity. Separately,./setupdecided who was a contributor by checking fornode_modules/typescript. Every install made before v1.91.231.0 ran a fullbun install, so it kept about 510 MB of test and eval packages forever (#3447). On main today,./setupon such an install runs the full install again (repro: an unmarked clone withnode_modules/typescriptgetsbun install --frozen-lockfileand keeps it).Summary
./setup --host gemini(aliasgemini-cli;--host autoonly whengeminiis on PATH) linksgstack-<skill>directories into~/.gemini/skillsplus the~/.gemini/skills/gstackruntime root. Renders go to the gitignored.gemini-cli/with frontmatter names matching their directories,CLAUDE.mdread asGEMINI.md, and a tool glossary for Gemini CLI's names and Antigravity's (which can read the same folder).gstack-uninstallremoves only gstack-managed entries there. Proof on a real Gemini CLI 0.66.0:gemini skills listshows all 63 gstack skills, uninstall leaves the user's own skill, and gemini and agy installed side by side each keep their own directory.bin/dev-setupsetsgit config gstack.contributor true;GSTACK_CONTRIBUTOR=1marks a single run.node_modulesaside, installs production-only, checks every runtime package resolves, then deletes the old copy. Any failure puts the full install back and printsSETUP_DEPS_MIGRATE_FAILEDwith the cause. CI and an unreadable git config never migrate. On a real Bun fixture an unmarked clone'snode_modulesshrank from 1079 MB to 569 MB, and a marked clone kept everything.Change from the approved plan: the plan also deleted Agent SDK entries from Bun's shared cache when no other project hard-linked them. Review showed Bun's
--backend=symlinklinks files without a hardlink, and deleting an entry broke another project (reproduced on Bun 1.4.4). That pruning is removed; Bun's cache is never touched.Security read
This edits
setupandbin/dev-setup, which every install and upgrade runs. What they do now:setupreadsgit config --bool gstack.contributorin the checkout (no network, no secrets), moves and deletes onlynode_modules,node_modules.gstack-migrateand its lock directory inside the checkout, and runs the samebun install --production --frozen-lockfileit already ran.bin/dev-setupwrites one local git config key. The Gemini arm writes only under~/.gemini/skillswith the same ownership gates as the Antigravity arm. No new dependency, no environment reads, no workflow edits.Blast radius
Touches every
./setuprun (the install-deps path) and adds one host arm. The migration only runs for a user-role clone that has dev packages; a git error reads asunknownand never migrates (walked in test/setup-production-deps.test.ts with a git that exits 128), and a failed install restores the oldnode_modules(script ran: failed and unverified installs both restore). Contributors who cloned before this and never ranbin/dev-setupwill drop the toolchain on their next./setup; the success line and CONTRIBUTING.md say how to mark the clone.Approvals
Source: gstack-approvals record for gsta222/gemini-host-contributor-marker (display only; not an approval citation).
Test Coverage
Pre-Landing Review
Pass 1 (specialists, red team, adversarial on Opus, outside voice on gpt-6.1-sol): one in-diff blocker, fixed (Bun cache pruning removed, see above); a fix-check found nothing new. The remote free tier then caught a host-count assertion in test/plan-mode-preamble-render.test.ts (5 guards, now 6 with Gemini); fixed with a second clean fix-check.
REVIEW_LOOP: passes=1 blocking_found=0 deferred=0 noted=3 fixed=0 scope=frozen fix_checks=2 dispatches=2
Gate edits: none detected. Test pins changed with the new host: five
gemini/*entries in test/fixtures/skill-md-size-allowlist.json (exact sizes; four sit below agy's pin for the same skill and plan-design-review is 94 characters above it), the plan-mode guard count went from 5 to 6, and the agy auto-detect test now pins PATH.After review, origin/main (v1.92.3.0 to v1.92.8.0) was merged in; the only conflict was the size allowlist, where main lowered every pin, so the five Gemini pins were re-measured on the merged render, twice (main at 64fb6ec, then 8695938); no pin was raised. The review's base was a stale local
main, so readers also saw train and e2e code already on main; those findings are outside this PR and were handed to the Captain, not fixed here.Review notes
Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.
lib/ship-queue-train-land.ts:54train land reads only classic branch protection; ruleset-only repos land slot 1 onlylib/ship-queue-train.ts:685prune keeps prefix refs of unattributed/incomplete generic trainssetup_deps_lock: stale-lock takeover is rm-then-mkdir, so two simultaneous ./setup runs in one checkout could both take it (each still restores on failure).Exploratory QA
Six smoke probes under an isolated HOME and Bun cache, all PASS:
./setup --host geminiexits 0;~/.gemini/skillsholds gstack entries; uninstall removes them and keeps the user's skill; an unmarked checkout migrates (1079 MB down to 569 MB); git config andGSTACK_CONTRIBUTOR=1both keep dev packages; a user-ownedgstack-minedirectory survives setup and uninstall. Not run live: a Gemini model session usingask_useror plan mode, Windows, trusted-folder workspace skills.Real upgrade, as the plan asked (isolated HOME and Bun cache, no CI variable): a clone at v1.91.230.0 installed by its own
./setuphad a 1079 MBnode_moduleswith typescript and the Agent SDK. Checked out at this PR's head,./setupprinted the move notice and left 570 MB with neither package, and a third run changed nothing. A clone at this head marked bybin/dev-setupkept both packages at 1080 MB across two./setupruns.bin/dev-setupitself exits 1 in a fresh clone on this PR and on main 4eff47c alike (a Codex project-local overlap refusal, after the marker is written); that is outside this PR and was reported to the Captain. Log: the upgrade script and its output are kept with the lane's evidence.Eval Results
No skill template or prompt text changed (
gen:skill-docs --host allleaves tracked files unchanged); the selector fell back to everything becausesetupchanged, so paid coverage is left to the train's full gate.Plan Completion
Approved plan: autoplan run autoplan-20261031204038 (GSTA-222). A1 and C1 built; the Bun-cache part of C1 dropped after review (above). A2 (Cowork) and C2 (npx skills add) were never code items.
Issues
Fixes #1247
Fixes #3447
Documentation
Status: current. No edits. The second origin/main merge (to v1.92.15.0, 8695938) kept every Gemini CLI and contributor-marker doc change.
Scope: base 8695938 (origin/main) to head 3a2f68c on gsta222/gemini-host-contributor-marker, 31 files, clean tree (no staged, unstaged or new files). Covers the Gemini CLI host (setup --host gemini / gemini-cli, hosts/gemini.ts, the gstack-uninstall Gemini block, registry, render and team-init wiring) and the explicit contributor marker with the one-time move of pre-v1.91.231.0 installs to production dependencies (install_runtime_deps, bin/dev-setup, SETUP_DEPS_MIGRATE_FAILED; node_modules is moved aside and restored on failure, and Bun's cache is left alone). Re-checked the docs main changed since the last audit (CONTRIBUTOR_REFERENCE, captain, hosts, pregate, review-policy, ship-policy, state-root, troubleshooting) and swept all authored docs and templates for host lists.
Coverage:
No critical gaps. Minor debt carried forward: troubleshooting says about 520 MB while the changelog fragment says about 510 MB; the CONTRIBUTING fork and real-project flows run ./setup in an unmarked clone, which drops the dev toolchain unless bin/dev-setup ran first; docs/uninstall.md's manual list lacks Copilot (pre-existing). Three historical docs/designs/ records mention Antigravity without Gemini CLI and are not host lists. Diagram drift: none.
Test plan
bun teston the 18 focused files: 1056 pass, 0 failbun run typecheckandbun run typecheck:test: clean🤖 Generated with Claude Code