Skip to content

v1.91.71.0 feat(install): gstack-doctor --check one-line verdict, gstack-capy-install, lazy Chromium (multi-agent wave PR A) - #3116

Merged
capy-ai[bot] merged 4 commits into
mainfrom
capy/v191710-featinstall-gstack
Oct 11, 2026
Merged

capy-ai[bot] merged 4 commits into
mainfrom
capy/v191710-featinstall-gstack

Conversation

@garrytan

Copy link
Copy Markdown
Owner

PR A of the multi-agent wave (docs/designs/MULTI_AGENT_WAVE_2026_10_10.md, plan PR #3113, owner-approved): items A1, A2 and the installer/doctor half of A3. Independent of #3115 (B-core); both create lib/result-codes.ts with disjoint codes, so whichever merges second takes a one-file merge.

What a parent agent gets

  • gstack-doctor --check: one PASS|FAIL|SKIP <id> <detail> row per component and exactly one trailer, gstack: ok <revision> for=<skill> (exit 0) or gstack: fail <id,id> (exit 1), usage 2. --for <skill> / --require <csv> scope the required set from one component table (lib/doctor-components.ts, generated into sourced bin/gstack-doctor-components.sh with a freshness test, so the doctor still reports with Bun absent). --json emits the same rows with code/anchor; every FAIL has a fix: command. --live gates the paid Codex probe. Fixtures: healthy, each missing component, wrong host, missing auth, runtime mismatch at both floors, bun removed from PATH, empty installed-host set (never ok), unmet --revision (never ok), browser required only for browser skills, --json shape, usage exits.
  • runtime row distinguishes the security floor (1.3.3) from the supported minimum (1.4.2): the Capy image's 1.3.14 is FAIL. pins row (lib/runtime-pins.ts) reads the target project's packageManager, engines, .tool-versions, .nvmrc, .bun-version and CI matrix pins per lane, naming each source.
  • bin/gstack-capy-install (147 lines, Bash 3.2): Bun/Node/jq preflight before ./setup; Bun upgraded from the exact release archive with SHA-256 verification (checksums in bin/gstack-bun-version.sh, same recipe as Dockerfile.ci) when gstack's minimum and the project pin agree, RUNTIME_PIN_CONFLICT otherwise (exit 3, nothing installed); reuses a checkout without reset or pull; both host setups with --no-browser; planning-only time printed separately; doctor trailer last; GSTACK_LAUNCH: GSTACK_SESSION_KIND=unattended GSTACK_STATE_ROOT=<path> GSTACK_EPHEMERAL=1. --revision reports (requested <ref>; run gstack-upgrade to move) and never pulls. docs/capy-install.md.
  • Lazy Chromium: ./setup --no-browser documented (precedence sentence in --help); bin/gstack-browser-ensure installs on first use under setup's lock; every browser skill's $B detection in scripts/resolvers/browse.ts runs it before READY, byte-neutral on the zero-headroom skills.
  • ./setup --status exits 1 on broken section links. Doctor state root row prints durable=yes|no from GSTACK_EPHEMERAL=1 (docs/state-root.md#ephemeral-machines).

Proof on this machine (scratch HOME, Bun 1.3.14 image)

gstack-capy-install --for autoplan: upgraded Bun to 1.4.2 (SHA-256 verified), both host setups, planning-only install: 62s (Chromium not downloaded), gstack: ok 1.91.69.0 for=autoplan, rc 0. --check --for autoplan: PASS claude/codex/patch/browse-bundle/cso/runtime/state-root(durable=no)/privacy/cores/revision; SKIP codex-cli (optional; Claude subagent is the outside voice), SKIP browser (lazy), SKIP pins (cwd not in a repo). First gstack-browser-ensure run downloaded Chrome for Testing 151 into the scratch HOME; second run BROWSER_OK in 0.6 s; --check --for qa then PASS browser. --revision 9.9.9 → ok:false, failed:["revision"], rc 1.

Plan corrections found while building

  • bun.sh/install pins by positional argument, not BUN_VERSION=; and BUN_INSTALL_SHA in scripts/resolvers/browse.ts:137 no longer matches the live script (left for a follow-up). The installer uses the Dockerfile.ci exact-archive recipe instead; setup's hint now reads bash "$tmpfile" "bun-v$BUN_VERSION".
  • Bun 1.3.14 does not stop the preflight; the installer upgrades whenever minimum and pin agree. Only RUNTIME_PIN_CONFLICT stops.
  • Three test fixtures every later PR will also hit: browse.ts prose needs a reversal entry in test/helpers/manual-judge-review-fixture.ts; new gen-skill-docs sibling modules need test/gen-skill-docs-prune-stale.test.ts; new bin/ network ops need an egress-receipt-wiring entry.

Validation

typecheck zero errors; typecheck:test no new diagnostics; gen:skill-docs --host all idempotent; parity suite (qa −28 B, design-consultation +17 B with 2 B headroom left, land-and-deploy −3 B, ship/review/autoplan unchanged); module-size, state-root, spawnsync, troubleshooting-anchors ratchets; agents-digest freshness; touched-file batch of 37 test files 1273 pass / 0 fail. test:quick remaining failures (PTY, Chromium-less image, Bun 1.3.14 refusals, Windows Job API) reproduce on a clean worktree of base 91bbd9e; full bun run test not run on this 4-core machine.

Version 1.91.71.0 (PATCH; bin/gstack-next-version bumped past #3115's 1.91.70.0).

Open in Capy

…ack-capy-install, lazy Chromium

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@trunk-io

trunk-io Bot commented Oct 10, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 2 commits October 10, 2026 23:25
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…gstack

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@github-actions

github-actions Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

E2E Evals: ✅ PASS

[test:paid] VERDICT GREEN — lane gate/pr, attempt 1
  rule 108/108 · behavior 0/0 · judge 24/24 · quarantined 0 (0 failing the lane)
  SKIPPED 0 · INFRA 0 · INCOMPLETE 0 · unattributed 0 · ACTION REQUIRED 0
  wall 8m39s · cost $91.97 known + 54 of 132 trial(s) cost unknown

121 executed, 0 reused rule/judge records | 0 manual accepted (unscored; no score-cache credit) | $91.97 rule/judge cost | reconcile exit: 0

Profile: pr / mode full-fallback; selected behaviors: 108, judges: 24. Deferred to scheduled/release coverage: 136 behaviors and 2 changed prompt files. Deferred checks did not run and receive no PR-pass credit.

Derived dependents (scripts/pr-dependencies.ts):

  • bin/gstack-browser-ensure: 227 case(s), 24 judge(s)
  • bin/gstack-capy-install: 227 case(s), 24 judge(s)
  • bin/gstack-doctor: 227 case(s), 24 judge(s)
  • bin/gstack-doctor-components.sh: 227 case(s), 24 judge(s)
  • lib/result-codes.ts: 227 case(s), 24 judge(s)
Rule and judge shards
Shard Automated result Manual/unscored Executed Reused Status Cost
e2e/skill-e2e-workflow 4/4 0 4 0 ✅ $3.16
e2e-deploy/skill-e2e-deploy--land-and-deploy-workflow 1/1 0 1 0 ✅ $1.49
e2e-safety-codex-consult/skill-e2e-safety-codex-consult 1/1 0 1 0 ✅ $0.98
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-stale-before 1/1 0 1 0 ✅ $1.17
e2e-review-attribution/skill-e2e-review-attribution 3/3 0 3 0 ✅ $1.01
e2e/skill-e2e-shared-libs--shared-libs-review-lifecycle 1/1 0 1 0 ✅ $2.53
e2e-qa-workflow/skill-e2e-qa-workflow--qa-quick 1/1 0 1 0 ✅ $1.51
e2e/skill-e2e-shared-libs-paths--shared-libs-review-prior-coverage 1/1 0 1 0 ✅ $2.31
e2e/skill-e2e-ship-skip 1/1 0 1 0 ✅ $0.62
e2e-qa-callers/skill-e2e-qa-callers--review-exploratory-small-cli 1/1 0 1 0 ✅ $2.21
e2e/skill-e2e-test-value 3/3 0 3 0 ✅ $2.36
e2e-qa-workflow/skill-e2e-qa-workflow--qa-only-no-fix 1/1 0 1 0 ✅ $1.68
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-plan-checks 1/1 0 1 0 ✅ $2.04
e2e/skill-e2e-shared-libs--shared-libs-review-revalidation 1/1 0 1 0 ✅ $5.33
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-recovery 1/1 0 1 0 ✅ $0.92
e2e-review/skill-e2e-review 2/2 0 2 0 ✅ $1.07
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-failure 1/1 0 1 0 ✅ $2.08
e2e-skillify/skill-e2e-skillify 3/3 0 3 0 ✅ $2.35
e2e/skill-e2e-shared-libs-paths--shared-libs-review-path-eligibility 1/1 0 1 0 ✅ $4.1
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-current 1/1 0 1 0 ✅ $3.29
llm-judge/skill-llm-eval 24/24 0 24 0 ✅ $1.44
e2e/skill-e2e-coverage-audit 2/2 0 2 0 ✅ $0.96
e2e-deploy/skill-e2e-deploy--setup-deploy-workflow 1/1 0 1 0 ✅ $0.38
e2e-review-army/skill-e2e-review-army--review-army-perf-n-plus-one 1/1 0 1 0 ✅ $1.08
e2e/skill-e2e-shared-libs-paths--shared-libs-review-index-flags 1/1 0 1 0 ✅ $2.29
e2e/skill-e2e-investigate-owned-completion 1/1 0 1 0 ✅ $0.23
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-late-result 1/1 0 1 0 ✅ $0.96
e2e-review-army/skill-e2e-review-army--review-army-json-findings 1/1 0 1 0 ✅ $0.21
e2e-deploy/skill-e2e-deploy--benchmark-workflow 1/1 0 1 0 ✅ $0.5
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-small-cli 1/1 0 1 0 ✅ $1.68
e2e-learnings/skill-e2e-learnings 1/1 0 1 0 ✅ $0.38
e2e-deploy/skill-e2e-deploy--land-and-deploy-review-gate 1/1 0 1 0 ✅ $1.01
e2e-review-army/skill-e2e-review-army--review-army-migration-safety 1/1 0 1 0 ✅ $1.13
e2e/skill-e2e-shared-libs--shared-libs-read-only 1/1 0 1 0 ✅ $0.68
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-stale-after 1/1 0 1 0 ✅ $1.21
e2e-deploy/skill-e2e-deploy--land-and-deploy-first-run 1/1 0 1 0 ✅ $0.84
e2e-docsync-spawned/skill-e2e-docsync-spawned 1/1 0 1 0 ✅ $1.14
e2e-qa-functional-fix/skill-e2e-qa-functional-fix 2/2 0 2 0 ✅ $2.83
e2e/skill-e2e-plan--plan-review-report 1/1 0 1 0 ✅ $1.27
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-unavailable 1/1 0 1 0 ✅ $1.73
e2e-retro/skill-e2e-retro 1/1 0 1 0 ✅ $1.07
e2e-qa-functional/skill-e2e-qa-functional 2/2 0 2 0 ✅ $2.39
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-late-input 1/1 0 1 0 ✅ $2.1
e2e-cso/skill-e2e-cso 1/1 0 1 0 ✅ $1.55
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-store 1/1 0 1 0 ✅ $3.81
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-completion 1/1 0 1 0 ✅ $3.68
e2e-design/skill-e2e-design--design-review-detector-shim-dom 1/1 0 1 0 ✅ $0.64
e2e/skill-e2e-shared-libs--shared-libs-unsupported-git 1/1 0 1 0 ✅ $0.55
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-missing-asset 1/1 0 1 0 ✅ $1.52
e2e-review-army/skill-e2e-review-army--review-army-quality-score 1/1 0 1 0 ✅ $0.39
e2e-safety-ship-evidence/skill-e2e-safety-ship-evidence 1/1 0 1 0 ✅ $0.64
e2e-hermetic/skill-e2e-hermetic-canary 2/2 0 2 0 ✅ $0.02
e2e-design/skill-e2e-design--design-review-plugin-handoff 1/1 0 1 0 ✅ $0.54
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-missing-marker 1/1 0 1 0 ✅ $0.5
e2e-browse/skill-e2e-bws 6/6 0 6 0 ✅ $0.9
e2e-third-party-actions/skill-e2e-third-party-actions 5/5 0 5 0 ✅ $1.2
e2e-plan-tune/skill-e2e-plan-tune 1/1 0 1 0 ✅ $0.42
e2e-session-intelligence/skill-e2e-session-intelligence 4/4 0 4 0 ✅ $0.81
e2e-safety-pair-agent/skill-e2e-safety-pair-agent 1/1 0 1 0 ✅ $0.31
e2e-design/skill-e2e-design--design-review-detector-shim 1/1 0 1 0 ✅ $0.39
e2e-qa-workflow/skill-e2e-qa-workflow--qa-bootstrap 1/1 0 1 0 ✅ $0.26
e2e-triage/skill-e2e-triage 1/1 0 1 0 ✅ $0.49
e2e/skill-e2e-ship-hook-consent 2/2 0 2 0 ✅ $0.68
e2e-review-army/skill-e2e-review-army--review-army-delivery-audit 1/1 0 1 0 ✅ $0.34
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-timeout-unsettled 1/1 0 1 0 ✅ $0.48
e2e/skill-e2e-ship-hook-refresh 1/1 0 1 0 ✅ $0.28
e2e/skill-e2e-investigate-owned-termination 2/2 0 2 0 ✅ $0.54
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-launch-failure 1/1 0 1 0 ✅ $0.46
e2e-deploy/skill-e2e-deploy--canary-workflow 1/1 0 1 0 ✅ $0.35
e2e-design/skill-e2e-design--plan-design-review-no-ui-scope 1/1 0 1 0 ✅ $0.5
Fail-closed reconciliation
4s  test/skill-e2e-qa-callers.test.ts#ship-exploratory-small-cli
  slice 12  passed            147s  test/skill-e2e-shared-libs-paths.test.ts#shared-libs-review-index-flags
  slice 12  passed            135s  test/skill-e2e-ship-docsync.test.ts#ship-docsync-late-result
  slice 12  passed             74s  test/skill-e2e-deploy.test.ts#benchmark-workflow
  slice 12  passed            140s  test/skill-e2e-review-army.test.ts#review-army-perf-n-plus-one
  slice 12  passed             98s  test/skill-e2e-plan-ceo-plan-mode.test.ts
  slice 12  passed             34s  test/skill-e2e-investigate-owned-completion.test.ts
  slice 12  passed             22s  test/skill-e2e-review-army.test.ts#review-army-json-findings
  slice 13  passed            141s  test/skill-e2e-ship-docsync.test.ts#ship-docsync-missing-asset
  slice 13  passed             90s  test/skill-e2e-plan-devex-plan-mode.test.ts
  slice 13  passed             86s  test/skill-e2e-safety-ship-evidence.test.ts
  slice 13  passed             93s  test/skill-e2e-design.test.ts#design-review-detector-shim-dom
  slice 13  passed             95s  test/skill-e2e-shared-libs.test.ts#shared-libs-unsupported-git
  slice 13  passed             59s  test/skill-e2e-office-hours-auto-mode.test.ts
  slice 13  passed             72s  test/skill-e2e-design.test.ts#design-review-plugin-handoff
  slice 13  passed             65s  test/skill-e2e-bws.test.ts
  slice 13  passed             59s  test/skill-e2e-ship-docsync.test.ts#ship-docsync-missing-marker
  slice 13  passed             56s  test/skill-e2e-review-army.test.ts#review-army-quality-score
  slice 13  passed              5s  test/skill-e2e-hermetic-canary.test.ts
  slice 14  passed             73s  test/skill-e2e-third-party-actions.test.ts
  slice 14  passed             61s  test/skill-e2e-plan-tune.test.ts
  slice 14  passed             57s  test/skill-e2e-triage.test.ts
  slice 14  passed             61s  test/skill-e2e-ship-docsync.test.ts#ship-docsync-timeout-unsettled
  slice 14  passed             57s  test/skill-e2e-ask-user-question-format-compliance.test.ts
  slice 14  passed             53s  test/skill-e2e-ship-docsync.test.ts#ship-docsync-launch-failure
  slice 14  passed             44s  test/skill-e2e-session-intelligence.test.ts
  slice 14  passed             49s  test/skill-e2e-ship-hook-consent.test.ts
  slice 14  passed             53s  test/skill-e2e-investigate-owned-termination.test.ts
  slice 14  passed             48s  test/skill-e2e-design.test.ts#design-review-detector-shim
  slice 14  passed             43s  test/skill-e2e-deploy.test.ts#canary-workflow
  slice 14  passed             44s  test/skill-e2e-ship-hook-refresh.test.ts
  slice 14  passed             55s  test/skill-e2e-design.test.ts#plan-design-review-no-ui-scope
  slice 14  passed             33s  test/skill-e2e-review-army.test.ts#review-army-delivery-audit
  slice 14  passed             33s  test/skill-e2e-safety-pair-agent.test.ts
  slice 14  passed             34s  test/skill-e2e-qa-workflow.test.ts#qa-bootstrap
  slice 15  passed             32s  test/skill-e2e-learnings.test.ts
  slice 15  passed             31s  test/skill-e2e-diagram.test.ts
[test:paid] collector final outcomes: 121 executed, 0 reused; 121 passed, 0 failed, 0 manual accepted (unscored; no score-cache credit) (121 attempt records from 70 collectors; every record counts)
[test:paid] deselected testcases, zero credit (307):
[test:paid]    293  sibling case of a case shard (its own shard runs it)
[test:paid]      8  periodic-tier case (this lane runs gate)
[test:paid]      6  Bun hook placeholder of a skipped describe block (not a test)
[test:paid] VERDICT GREEN — lane gate/pr, attempt 1
  rule 108/108 · behavior 0/0 · judge 24/24 · quarantined 0 (0 failing the lane)
  SKIPPED 0 · INFRA 0 · INCOMPLETE 0 · unattributed 0 · ACTION REQUIRED 0
  wall 8m39s · cost $91.97 known + 54 of 132 trial(s) cost unknown
[test:paid] report: every planned shard accounted and passed

Sliced 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.

…tance block so the ship caller fixture admits the documented command

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai
capy-ai Bot merged commit 6681adf into main Oct 11, 2026
67 checks passed
@capy-ai
capy-ai Bot deleted the capy/v191710-featinstall-gstack branch October 11, 2026 00:00
levi85 pushed a commit to levi85/gstack that referenced this pull request Oct 14, 2026
…gstack-capy-install`, lazy Chromium (multi-agent wave PR A) (garrytan#3116)

* v1.91.71.0 feat(install): gstack-doctor --check one-line verdict, gstack-capy-install, lazy Chromium

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>

* test(qa-callers): substitute <plan-path> in the plan-completion acceptance block so the ship caller fixture admits the documented command

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant