Skip to content

Write down what a lighter gate for crew-only pull requests would save, and how Phase 2 will switch crew steps (GST-1833) - #4144

Merged
capy-ai[bot] merged 3 commits into
mainfrom
capy/gate-cost-crew-only-prs-gst-1833
Nov 7, 2026
Merged

capy-ai[bot] merged 3 commits into
mainfrom
capy/gate-cost-crew-only-prs-gst-1833

Conversation

@garrytan

@garrytan garrytan commented Nov 7, 2026 •

Copy link
Copy Markdown
Owner

Adds a design note that measures what a lighter gate for crew-only pull requests would have saved, and specifies the one switch Phase 2 will use so /ship, /review and /autoplan run crew steps only on Capy. It serves gstack's goal of shipping without wasted spend, and changes no code or gate policy.

{
  "schema_version": 1,
  "pr": 4144,
  "head": "976ec4f19f2cc4cc76f7800641046437a47d5008",
  "version": "1.98.0.0",
  "base": "main",
  "gate": {
    "test": {
      "pass": 1631,
      "fail": 0,
      "skip": 0
    }
  },
  "ci_carried": [
    {
      "lane": "test",
      "run": 42417651501,
      "attempt": 1,
      "tree": "6b70b8836d0d04228d33894e577b4c55e9dbaad4"
    }
  ],
  "session_kind": "unattended",
  "head_tree": "6b70b8836d0d04228d33894e577b4c55e9dbaad4",
  "product_patch_id": "2eb2d79b97f655d6bd230709ca9d90d315c74a69",
  "gstack_version": "1.98.0.0",
  "review_depth": {
    "depth": "light",
    "class": "docs",
    "runtime_lines": 0,
    "rules": "c6a079fdf812f479",
    "base": "5f9b7ef2090757dbe5dcd3a3d57eff1ee5f6ed6f",
    "registry": "5f9b7ef2090757dbe5dcd3a3d57eff1ee5f6ed6f",
    "gate_scan": {
      "tagged": 0,
      "head": "976ec4f19f2cc4cc76f7800641046437a47d5008"
    },
    "reasons": [
      "runtime=0"
    ],
    "risk": [],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @6b70b8836d0d (8 checks, current for 976ec4f19f2c)",
  "requires_remote": [
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/42417651501/attempts/1",
    "pregate.json/remote_gate: remote-gate tree=6b70b8836d0d tests=36182 skipped=69 runs=42417651501/1 profiles=ci-reuse/free-tests heads=976ec4f19f2c verified=2026-11-07T21:56:02.890Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [
      4143
    ],
    "flakes": []
  },
  "docs": {
    "status": "current",
    "scope": "docs/, README.md, AGENTS.md, CLAUDE.md, CONTRIBUTING.md, changelog.d/ (154 docs hashed; diff adds docs/designs/GSTACK_ON_CAPY.md and one changelog.d fragment)"
  },
  "review_loop": {
    "passes": 2,
    "blocking_found": 0,
    "deferred": 0,
    "noted": 0,
    "fixed": 1,
    "scope": "frozen",
    "rounds": 2,
    "ledgers_read": 2
  }
}

What changed

  • The saving. A lighter gate for the 54 crew-only pull requests merged 2026-10-24 to 2026-11-07 (no public paid evals, one review pass) would have saved about $735–855 on recorded spend, or about $1,900–2,000 through today's selector. On today's direct-landing process the paid-eval part is close to $0. The note lists every caveat: the mid-window switch from trains to direct landing, the train-share upper bound, duration-priced trials, selector drift and the review estimate's thin sample.
  • The Phase 2 switch. "Crew loaded" is the same Capy-machine test setup uses (added by Install /captain only on Capy machines (GST-1833) #4143). Skill prose calls crew commands only through a gstack-crew-step wrapper, shared code calls them only through lib/crew-hooks.ts, and each step has a defined result when crew is absent. The note has a table of the absent behaviour per step and the checks Phase 2 must pass (a no-crew install job, byte-identical Capy output, focused evals with a no-loss bar).

Picture: not attached. The picture tool refused the note's text because an 11-digit CI run id in the method section matches its phone-number pattern; the text above stands in for it.

Why

Garry asked for a measured number before deciding whether crew-only pull requests should get a lighter gate. This note gives that number from recorded CI runs, for free, with its caveats, and fixes the interface Phase 2 builds so gstack works without the crew tools outside Capy.

Blast radius

Two new files: docs/designs/GSTACK_ON_CAPY.md and one changelog.d/ fragment. Nothing imports, generates from or tests against either file (pregate maps docs/** and changelog.d to no tests; regen and guard checks report no registered input touched), so no behavior can change (evidence: pregate and finish ran on this tree).

Approvals

Approved: yes (record r-99e90e0c8eb1). The full approval record stays private: this repository is public or its visibility is unknown.
Plan: approved (record r-dade9f38e7ca)
Plan check: approved (record r-dade9f38e7ca)

Summary

Phase 0 (a) and (b) of making crew tooling an optional gstack-on-Capy layer: a cost measurement for Garry's gate decision and the Phase 2 hook spec. Review added one small wording fix, so the note now says the Capy-machine check and its test come from #4143, since they are not on main yet.

Test Coverage

No runtime file changed, so there is no coverage diagram (Step 7 audit: skipped, no runtime file changed).
Tests ran: test 1631 files (carried from the free-tests CI run at 976ec4f, tree 6b70b88; 6 CI-skipped files owed nothing here)

Pre-Landing Review

Pre-Landing Review: 1 issue — 1 auto-fixed, 0 asked, 0 deferred, 0 noted

REVIEW_LOOP: passes=2 blocking_found=0 deferred=0 noted=0 fixed=1 scope=frozen ledgers_read=2
Gate edits: none detected (0 listed, 0 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)
Outside review: clean. A cross-family reader (openai/gpt-6.1-sol, medium) read the final tree and found nothing blocking; it did not reproduce the spend totals itself. The parent checked the published numbers against the measurement files instead (see Verification Results).

Exploratory QA

Not applicable: docs-only diff with no runtime behavior. In place of probes, the parent checked every repository path the note names (all exist on main except the three names #4143 adds, now marked as such) and cross-checked the numbers against the per-PR data (see Verification Results).

Design Review

No frontend files changed — design review skipped.

Eval Results

No prompt-related files changed — evals skipped. Paid budget for this run was $0.

Review bot comments

No review bot comments.

Scope Drift

Scope Check: CLEAN
Intent: record the crew-only gate cost measurement and the Phase 2 crew switch spec (GST-1833 Phase 0 (a) and (b)).
Delivered: one design note and one changelog fragment, docs only.

Plan Completion

Plan: docs/designs/GSTACK_ON_CAPY.md (the only design file this branch changed; it is also the deliverable). 3/3 DONE, 0 PARTIAL, 0 NOT DONE, 0 CHANGED, 0 UNVERIFIABLE: the measurement (section 1), the Phase 2 spec (section 2) and the changelog fragment. Phase 1 and Phase 2 implementation are later phases.
Acceptance edits: baseline unavailable (the plan is new on this branch).

Issues

Refs #4143

Verification Results

The plan names no executable checks for this phase (0 PASS, 0 FAIL, 0 BLOCKED, 0 NOT RUN). Published numbers, checked by the parent against the Captain drive's measurement-prs.tsv and measurement-raw.md: 54 crew-only pull requests (40 strict plus 14 with non-crew tests); $711 recorded paid evals ($245 screens plus $465 train share); 5,454 cases and $1,878 through today's selector; 3 of 54 select zero cases; 16 crew-only pull requests merged on or after 2026-11-04, all $0; widening to the 22 adds up to $1,044 and $2,659; group totals add up (260 = 54 + 22 + 184; $4,467; 373 extra rounds). The modelled column was not re-run here (scripts/gate-cost-replay.ts, read from the measurement record).

TODOS

No TODO items completed in this PR.

Documentation

Scope: the diff from 5f9b7ef to HEAD adds two files, docs/designs/GSTACK_ON_CAPY.md (a new design note on what crew-only pull requests cost and the Phase 2 crew switch) and one changelog.d fragment. There were no staged, unstaged or untracked changes.

Result: current. The note's references to files that exist today check out. Three names come from #4143 and are not on main yet: test/crew-skills-on-capy.test.ts, gstack_on_capy and onCapyMachine. No user-facing docs (README, docs/skills.md, AGENTS.md) describe behavior this change touches, since the change alters no behavior.

Debt: if #4143 lands without those names, the note's switch section needs a follow-up edit.

Test plan

  • bun run test: carried from the free-tests CI run at 976ec4f (tree 6b70b88), 1631 test files, 0 failed
  • pregate on the final tree: verify ok; the macOS named-regressions lane cleared from the same CI run
Agent notes

GST-1833 Phase 0 (a) and (b), approved by Garry in FOUN-32, 2026-11-07. The number goes to Garry through the Captain before any gate policy changes. Raw per-PR data and scripts: Captain drive handoffs/GST-1833/measurement-raw.md and measurement-prs.tsv. Docs only; no release-path files.

Open in Capy

…ed, and the switch for Phase 2 (GST-1833)

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

trunk-io Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 2 commits November 7, 2026 21:06
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Review-Finding: docs/designs/GSTACK_ON_CAPY.md:89:documentation reader=core
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai
capy-ai Bot merged commit fcfe890 into main Nov 7, 2026
43 checks passed
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