Skip to content

feat(ship): /ship and /autoplan size their review to the diff (GSTA-131) - #3527

Merged
capy-ai[bot] merged 19 commits into
mainfrom
garrytan/gsta131-token-efficiency
Oct 28, 2026
Merged

capy-ai[bot] merged 19 commits into
mainfrom
garrytan/gsta131-token-efficiency

Conversation

@garrytan

@garrytan garrytan commented Oct 28, 2026 •

Copy link
Copy Markdown
Owner
{
  "schema_version": 1,
  "pr": 3527,
  "head": "805fae1f99c65a370920a147832efb3ceab40795",
  "version": "1.91.286.0",
  "base": "main",
  "gate": {
    "remote_gate linux (Ubicloud, 16 shards, tree d972a623f1b6)": {
      "pass": 23892,
      "fail": 0,
      "skip": 0
    },
    "windows-free-shard (run 40625615862, 6 shards)": {
      "pass": 16212,
      "fail": 0,
      "skip": 0
    },
    "macos-named-regressions (run 40625611677)": {
      "pass": 406,
      "fail": 0,
      "skip": 5
    },
    "cso-macos-launcher (run 40625611677)": {
      "pass": 177,
      "fail": 0,
      "skip": 0
    }
  },
  "session_kind": "unattended",
  "pregate": "requires-remote cleared @460d867f6404 (1 checks, current for 805fae1f99c6)",
  "requires_remote": [
    "free-tests.yml/cso-macos-launcher: https://github.com/garrytan/gstack/actions/runs/40631794934",
    "free-tests.yml/macos-named-regressions: https://github.com/garrytan/gstack/actions/runs/40631794934",
    "windows-free-tests.yml/windows-free-shard: https://github.com/garrytan/gstack/actions/runs/40631774097",
    "pregate.json/remote_gate: remote-gate tree=460d867f6404 tests=23935"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "updated",
    "scope": "docs/, README.md, CONTRIBUTING.md, AGENTS.md, CLAUDE.md (127 docs; edits to docs/ship-policy.md, docs/review-policy.md, docs/unattended.md)"
  },
  "review_loop": {
    "passes": 2,
    "blocking_found": 7,
    "deferred": 0,
    "noted": 6,
    "fixed": 27,
    "scope": "frozen"
  },
  "carry": {
    "from": "f659bd6d5ca76a82fb468a7f6bf93c18023b8e6c",
    "reason": "base merge + test-only change + release metadata",
    "product_patch_id": "58c2c6a225953a51b1a87ba573551d8bc1287798",
    "changed_paths": [
      "product:.github/workflows/weekly-release.yml",
      "product:AGENTS.md",
      "product:ARCHITECTURE.md",
      "metadata:CHANGELOG.md",
      "product:CLAUDE.md",
      "product:CONTRIBUTING.md",
      "product:NOTICE.md",
      "product:README.md",
      "product:SKILL.md",
      "product:SKILL.md.tmpl",
      "product:TODOS.md",
      "metadata:VERSION",
      "metadata:agents-digest/gstack-AGENTS.md",
      "product:bin/gstack-doctor-components.sh",
      "product:bin/gstack-learnings-log",
      "product:bin/gstack-learnings-search",
      "product:bin/gstack-skill-bill",
      "product:design-review/SKILL.md",
      "product:design-review/SKILL.md.tmpl",
      "product:design-review/sections/manifest.json",
      "product:design-review/sections/outside-voices.md",
      "product:design-review/sections/outside-voices.md.tmpl",
      "product:design-review/sections/test-bootstrap.md",
      "product:design-review/sections/test-bootstrap.md.tmpl",
      "product:docs/CONTRIBUTOR_REFERENCE.md",
      "product:docs/PROJECT_STRUCTURE.md",
      "product:docs/designs/SKILL_EVAL_CONTRACT.md",
      "product:docs/install.md",
      "product:docs/recommended-harness.md",
      "product:docs/releases.md",
      "product:docs/skills.md",
      "product:gstack/llms.txt",
      "product:learn/SKILL.md",
      "product:learn/SKILL.md.tmpl",
      "product:lib/doctor-components.ts",
      "product:lib/skill-bill.ts",
      "product:licenses/MIT-skill-diet.txt",
      "product:office-hours/SKILL.md",
      "product:office-hours/SKILL.md.tmpl",
      "product:office-hours/sections/manifest.json",
      "product:office-hours/sections/second-opinion.md",
      "product:office-hours/sections/second-opinion.md.tmpl",
      "product:office-hours/sections/visual-design.md",
      "product:office-hours/sections/visual-design.md.tmpl",
      "metadata:package.json",
      "product:plan-design-review/SKILL.md",
      "product:plan-design-review/SKILL.md.tmpl",
      "product:plan-design-review/sections/review-sections.md",
      "product:plan-design-review/sections/review-sections.md.tmpl",
      "product:scripts/release-cut.ts"
    ],
    "merge_commits": 1,
    "range_diff": "1:  fc5ee582e =  1:  fc5ee582e wip(GSTA-131): review depth, fix-check transitions, dispatch counters, carry pregate, autoplan round policy\n 2:  3925e9b56 =  2:  3925e9b56 wip(GSTA-131): reviewers stay at full effort; audits light\n 3:  636776fcf =  3:  636776fcf feat(ship): Step 9 dispatches what gstack-review-plan plans; fix-check after below-floor fixes; cap two full passes plus one fix-check\n 4:  268497460 =  4:  268497460 test: review-dispatch-compare has a free lane; review-depth fixtures registered free; resumed max_rounds case off the old default\n 5:  9c34fda1f =  5:  9c34fda1f fix(GSTA-131): ship review pass-1 repairs: fix-check binds under its own skill, Step 11.5 accepts a fix-check or a planned adversarial skip, delta carry with a pregate, carry --pregate pinned to the checkout, quiet-after-cap revise regates, skill-dir markdown and rule docs classed code, gate signals from tests class up, plan fails closed on git errors, per-class compare ratios\n 6:  0da1b8291 =  6:  0da1b8291 fix(GSTA-131): ship review pass-2 repairs: Step 11 follows the last full-pass plan, Important Rules restored, ship goldens regenerated, true per-class medians, review-policy transitions and once-per-invocation voices, docs/** assets stay docs-class, CLI and fix-check binding tests\n 7:  a94b37c03 =  7:  a94b37c03 docs(changelog): GSTA-131 review depth, fix-check, delta /ship and autoplan rounds\n 8:  85c1f1578 =  8:  85c1f1578 docs: ship-policy cap and counters, review-policy /review cycle cap, unattended passes (docs audit)\n 9:  6b62227b0 =  9:  6b62227b0 fix(review): 400-word findings cap fits the /review size pins (five host pins lowered by 2); CHANGELOG max_rounds wording\n10:  bdaca7bfe = 10:  bdaca7bfe docs(changelog): gate integrity names the size-ledger entry and the lowered /review pins\n11:  ced7be13e = 11:  ced7be13e test: the round-budget case asserts the default through ROUNDS output only (pregate literals heuristic)\n12:  7d9ad12e2 = 12:  7d9ad12e2 test: curate ship-receipt-carry-pregate out of the Windows lane like its --pregate siblings\n13:  c5e13f916 = 13:  c5e13f916 docs(changelog): end the Windows curation sentence instead of a mid-sentence colon\n14:  243ca8ea2 = 14:  243ca8ea2 fix(ship): one decision each for the review-loop exits, the planned adversarial skip and Step 16's TODOS rerun (screen judge repair)\n15:  f659bd6d5 = 15:  f659bd6d5 fix(ship): fix-check repairs: pin the renamed Step 11 heading, keep the below-floor exit at the cap, name the plan run a repeat reuses, print the native skip on outside-only plans",
    "covers": [
      "pre-landing review",
      "adversarial review",
      "gate integrity",
      "documentation audit"
    ],
    "reruns": [
      "CI at head (gstack-ship-queue ready requires it); test and helper code changed since the reviewed head runs there unreviewed"
    ]
  }
}

What changed

/ship review cost before vs after: docs-only diffs 0.26x, code diffs 0.85x

/ship's review now sizes itself to the diff, so a docs-only change costs about a quarter of what it did and a code change about 85%, with every blocking reviewer still at full effort.

Text before/after
Scenario (estimated review tokens) Before After
Docs-only diff, median of 5 loop scenarios 1.00x 0.26x
Code diff, median of 5 loop scenarios 1.00x 0.85x
All 10 runs 1.00x 0.52x (range 0.23–0.99)

Measured with scripts/review-dispatch-compare.ts and measured specialist output on two captured diffs across five loop scenarios: estimated review tokens are a median 0.26x of before on docs-only diffs and 0.85x on code diffs (0.52x over all ten runs, range 0.23–0.99). Replaying #3497's history through the new carry, 3 of its 6 base merges would have skipped a full /ship.

Why

Garry, 2026-10-27: "Can we get 95% of the outcome but with 50% of the token use". A /ship review sent the same specialist army, Red Team, adversarial pass and outside voice at every diff, and repeated the whole army after any fix, up to three passes. A README edit paid what a gate change paid.

Blast radius

The change touches /ship's review-army and adversarial sections, Step 1 and Step 11.5, the /review specialist prompt (one line), gstack-ship-receipt carry, the review log's fix-check skill and /autoplan's round and scope logic. It is safe because the plan only removes dispatches by diff class and never lowers a blocking reviewer's effort, and Step 11.5 binds a fix-check or a planned adversarial skip only through a verified, CURRENT review record (script ran: test/review-log-findings.test.ts, test/ship-control-flow.test.ts).

Approvals

Date Asked Exact words Outcome Covers Still pending
2026-10-27 Approve the token-efficiency plan (autoplan gates A-E) “A1, B1, C1 D1 E1 but also tell gstack-evals captain about what you need so it can build it as common capability” (Garry (via GStack Minder)) approved the reviewed plan with D1: every blocking reviewer at full effort, only audits and watchers light none
2026-10-27 Model tiers for cheap roles “Rec and go except don't use sonnet.” (Garry (via GStack Minder)) approved lower reasoning effort on the same model for cheap roles; no Sonnet none
2026-10-27 Rule-19 main merge and rule-23 one-step fix-check exception “Yes to the one-step exception under rule 23: run one full-effort fix-check on the reworded prompt line and the five lowered pins, then repeat Step 16 on the frozen head.” (GStack Minder) approved one fix-check after the review cap; one main merge at 3986182 with a size-ledger entry none

Source: gstack-approvals record for garrytan/gsta131-token-efficiency (display only; not an approval citation).

Summary

/ship now plans its review from the diff. gstack-review-plan classifies the change as docs, tests, code or gate and steps the loop through one transition table. A docs-only diff gets the core checklist, a gate change still gets every reviewer plus the Red Team, and a fix below the blocking floor goes to one full-effort fix-check instead of another army. The cap is two full passes plus one fix-check. Every reviewer that can block a ship stays at full effort on the lane's model; only audits and watchers drop to light (Garry's D1).

After a base merge that leaves the product diff unchanged, Step 1 dry-runs the receipt carry, runs the pregate at HEAD and carries the receipt instead of rerunning the review loop. /autoplan runs one round by default, a second only for High findings, and docs-only plans run CEO then Eng.

Test Coverage

New and extended tests: test/review-depth.test.ts (classes, transitions, plan, Red Team and scope arms), test/review-plan-cli.test.ts (CLI, untracked and stamp-only paths, scratch exclusion, subdirectory run, --adversarial-ran, review_effort_tiers off), test/review-dispatch-compare.test.ts, test/review-dispatch-counters.test.ts, test/ship-receipt-carry-pregate.test.ts (failing-first), test/autoplan-token-efficiency.test.ts (quiet-after-cap regate failing-first, rounds, ESCALATE, docs-only, dispatch counts), test/review-log-findings.test.ts (fix-check binding), test/ship-control-flow.test.ts (decision 2 flags, 3.5, Step 11.5, Step 1 carry order).
Step 7 (pass 1): 67% value-weighted coverage; the named gaps (gate scan, untracked and stamp-only detection, effort tiers, Red Team and scope arms) were then covered.
Tests ran: focused batch 3,168 passed, 0 failed, 7 skipped at 989b439; see Test plan for the frozen head.

Pre-Landing Review

REVIEW_LOOP: passes=2 blocking_found=7 deferred=0 noted=6 fixed=27 scope=frozen (three fix-checks; the installed 1.91.286.0 summary predates this PR's fix_checks and dispatches counters)

Gate edits: 40 listed, 28 read, 1 finding — 1 kept, 0 restored, 0 open

  • kept: RH-16 lib/autoplan-budget.ts — the new openHigh gate is the approved E1 rule (a second autoplan round only for open High or Critical findings); reviewed in both full passes and the Red Team, with failing-first tests in test/autoplan-token-efficiency.test.ts.

Gate integrity (every gate edit in this diff):

  • Ship's union growth is a +1,757-byte entry in the size ledger (test/size-ledger/ship/garrytan-gsta131-token-efficiency.json; SIZE_LEDGER: ok at 330,781 bytes); the ship skeleton cap in test/helpers/carve-guards.ts moves 60,913 → 60,960, pinned at the measured size.
  • The five /review size pins in test/fixtures/skill-md-size-allowlist.json go down by 2 bytes each (the skill shrank).
  • test/autoplan-token-efficiency.test.ts gives its subprocess-driven cases a 30-second timeout; a resumed-run fixture persists max_rounds: 1 instead of 3, inside the new cap of 2.
  • scripts/lib/windows-curation.ts: test/ship-receipt-carry-pregate.test.ts joins KNOWN_WINDOWS_INCOMPATIBLE like its four --pregate siblings. On a Windows host the fixture's Linux lane is a requires-remote obligation, so write refuses the pregate (run 40611810409). It still runs on Linux and macOS. Granted by GStack Minder under rule 23; follow-up: the five --pregate receipt fixtures declare their lane for the host platform so they run on Windows too.
  • Screen repair (run 40617200857's ship/SKILL.md workflow judge failed twice, clarity 3 and actionability 3, on authority conflicts this PR introduced): ship's Step 11 now runs the passes the review plan dispatches, so prose pins move with it. test/skill-validation.test.ts and test/outside-voice-preflight.test.ts expect the ship heading without "always-on" and the native pass "on DISPATCH: adversarial-native" (/review keeps "always runs"); test/ship-control-flow.test.ts pins the one plan call that picks decisions 2–4; test/fixtures/workflow-required-steps.json pins the renamed Step 11 heading. Granted by GStack Minder under rule 23.

Pass 1 (9 reviewers, gate class) found 4 CRITICAL, all fixed: a quiet autoplan revise after a capped one skipped the owner gate; carry --pregate could certify one head with another head's pregate; Step 11.5 could not bind a fix-check or a planned adversarial skip; a fix-check could run with a blocker open. Pass 2 on the range found 3, all fixed: Step 11 followed the latest plan and so dropped the adversarial pass on clean code diffs (it now follows the last full-pass plan); a file rewrite truncated four Important Rules bullets; the ship goldens were stale. The fix-check after pass 2 found nothing blocking. A size-guard failure after it (the 400-word cap grew five /review host renders by 38 characters) was repaired under GStack Minder's one-step rule-23 exception and covered, with the main merge's resolution, by a second fix-check: 0 CRITICAL. Two test-only commits follow it: ced7be1 removes a duplicated constant assertion that tripped the pregate literal scan, 7d9ad12 is the Windows curation entry above, and c5e13f9 rewords one CHANGELOG sentence for the prose lint. After the PR screen's judge went red, 243ca8e gave each loop exit, the planned adversarial skip and Step 16's TODOS rerun one decision; a full-effort fix-check found 1 CRITICAL (a stale heading pin) and 3 INFO wording regressions, all repaired in f659bd6.
Outside review (openai/gpt-6-astra): pass 1 Hold (2 CRITICAL, both fixed); pass 2 numbers check clean.

Review notes

  • scripts/resolvers/review-army.ts:144: "per finding per line, 400 words at most" can read as a per-finding cap; the intent is the total.
  • ship/SKILL.md.tmpl Step 1: "stop" after CARRY: carried no longer names the GSTACK_RESULT line the carry prints.
  • lib/autoplan-scope.ts: any non-markdown file under docs/ is docs-class (images, json).
  • autoplan/DRIVER.md: the docs-only sentence lists docs/*-policy.md as code but not docs/captain.md, unattended.md or pregate.md, which the classifier also treats as code.
  • lib/review-evidence.ts: a review-fix-check row reads CURRENT on the dashboard although the reviewer read only the touched hunks.
  • lib/autoplan-revise.ts: a Low-severity quiet revise can apply a large plan edit without re-review when no capped revise is pending.
  • test/autoplan-token-efficiency.test.ts: 30-second per-test timeouts on the subprocess-driven cases, unmeasured.
  • lib/autoplan-budget.ts: a corrupt consensus file counts as no pairs.
  • State-machine cells for the review plan without their own test (the specialist filed them informational).

Exploratory QA

No browser surface. The CLI and receipt paths are exercised by the tests above; gstack-review-plan drove this PR's own review (plan-p1..p3).

Design Review

No frontend files changed — design review skipped.

Eval Results

Paid evals ran before the build decision (preregistered, $12.55 of a $40 cap): pilot plus two runs; a medium-effort fix-check found 0/3 of a seeded gate fail-open versus 2/3 at full effort, which set the D1 rule that blocking reviewers stay at full effort.

Scope Drift

Scope Check: CLEAN against the approved plan (Garry's A1 B1 C1 D1 E1).

Plan Completion

Step 8 (pass 1) reported 3 NOT DONE; all three are done now: the 400-word specialist findings cap, Step 1's delta carry with a pregate, and the #3497 carry replay. AUDIT_EFFORT now reaches Steps 7 and 8.

Verification Results

No Step 8.1 executable obligations beyond the test lanes.

TODOS

No TODO items completed in this PR.

Documentation

Status: updated. Three factual corrections to policy docs. Nothing blocks.

Scope: candidate gsta131-docs-1793146992, base 10b77de4 to head a94b37c0 (60 files, 8 commits; the staged, unstaged and untracked lists in the candidate were empty). I read the changed docs and authored templates (docs/review-policy.md, docs/model-policy.md, docs/ship-policy.md, docs/unattended.md, docs/troubleshooting.md, autoplan/DRIVER.md.tmpl, ship/SKILL.md.tmpl, review/sections/review-army.md), plus the /ship and /autoplan rows and sections in README.md and docs/skills.md, docs/captain.md rule 23, and the CHANGELOG [Unreleased] entry (read only). Each claim was checked against lib/review-depth.ts, bin/gstack-review-plan, bin/gstack-config, bin/gstack-ship-receipt, lib/result-codes-release.ts, lib/autoplan-budget.ts and review/SKILL.md.tmpl. Banned-terms check: none (the repo keeps no list).

Documentation health:
docs/ship-policy.md Updated (review_scope item 3 said "Three passes is the cap ... instead of a fourth pass". It now says two full passes plus one fix-check, linked to the review-policy transition table. The review_loop counters now list fix_checks, dispatches and est_input_tokens as recorded-when-present.)
docs/review-policy.md Updated (restored the sentence saying /review on its own keeps the same floor, NO FINDINGS and its three-cycle CYCLES cap. The branch had dropped it, but review/SKILL.md.tmpl is unchanged.)
docs/unattended.md Updated (passes reads "1 or 2; up to 3 under review_scope: all", matching review-policy's receipt table.)
docs/model-policy.md Current (#reasoning-effort anchor and review_effort_tiers default on verified.)
docs/troubleshooting.md Current (RECEIPT_CARRY_PREGATE_STALE anchor matches lib/result-codes-release.ts.)
README.md Current
docs/skills.md Current
CHANGELOG.md Not audited for voice (ship-owned, read only)
TODOS.md Skipped (ship-owned)

Documentation Debt

  • Common gap: gstack-review-plan has reference docs (review-policy) but no how-to in docs/skills.md's /ship section.
  • Common gap: /autoplan round policy, --docs-only and ESCALATE: are documented only in autoplan/DRIVER.md. The docs/skills.md /autoplan section does not mention them.
  • Critical gap (contributor tool): scripts/review-dispatch-compare.ts is named only in the CHANGELOG.
  • Diagram drift: none found.

Test plan

  • gstack-pregate --allow-repo-commands at f659bd6: stage 1 (regen, secrets, strays, literals, timing, guards) pass; tests requires-remote
  • gstack-pregate --stage tests --remote --spend-cap 2 --timeout 2700 --allow-repo-commands (Ubicloud, tree d972a623f1b6): 23,892 tests, 0 failed, $0.10; test/plan-seed-submission.test.ts failed once and passed on the runner's serial retry (this PR does not touch it)
  • Windows Free Tests dispatched at f659bd6 (run 40625615862): 6 shards, 16,212 tests, 0 failed
  • Free Tests dispatched at f659bd6 (run 40625611677): green; macos-named-regressions 406 pass, 5 skip, 0 fail; cso-macos-launcher 177 pass, 0 fail
  • gstack-pregate clear --remote for the three macOS and Windows lanes with those runs, then gstack-pregate verify: ok, current for tree d972a623f1b6
  • Focused judges at f659bd6 (EVALS=1 EVALS_TIER=gate, one selected judge each): ship/SKILL.md workflow PASS clarity 4, completeness 4, actionability 4; review/SKILL.md workflow PASS 4/4/4 ($0.12)
  • Every test file that reads ship prose, goldens or the size ledger (105 files) at f659bd6: 3,792 passed, 102 skipped, 0 failed
  • History: the PR screen at c5e13f9 (run 40617200857) failed the ship/SKILL.md workflow judge twice (clarity 3, actionability 3), fixed by 243ca8e and f659bd6. At ced7be1, Windows Free Tests run 40611810409 failed both cases of test/ship-receipt-carry-pregate.test.ts (fixed by 7d9ad12). At 7d9ad12, the Quality gate's CHANGELOG prose lint failed (fixed by c5e13f9).
  • Main moved to 7204a39 (v1.91.287.0 feat(write-skill): write, change and diet skills; /learn at half its template size #3524) with a CHANGELOG-only conflict, handled by the dispatch route above, not a main merge. Earlier trial merges: v1.91.289.0 feat: skill diet pilots for plan-design-review, office-hours and design-review (GSTA-134) #3525 clean, with guards passing.

🤖 Generated with Claude Code

garrytan and others added 14 commits October 27, 2026 22:05
…, carry pregate, autoplan round policy

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>
…k after below-floor fixes; cap two full passes plus one fix-check

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…registered free; resumed max_rounds case off the old default

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…own skill, Step 11.5 accepts a fix-check or a planned adversarial skip, delta carry with a pregate, carry --pregate pinned to the checkout, quiet-after-cap revise regates, skill-dir markdown and rule docs classed code, gate signals from tests class up, plan fails closed on git errors, per-class compare ratios

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ull-pass plan, Important Rules restored, ship goldens regenerated, true per-class medians, review-policy transitions and once-per-invocation voices, docs/** assets stay docs-class, CLI and fix-check binding tests

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

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…unattended passes (docs audit)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ost pins lowered by 2); CHANGELOG max_rounds wording

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…y: ship size cap moves to the byte ledger (+1,877 entry); CHANGELOG released entries are main's

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

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… only (pregate literals heuristic)

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

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

trunk-io Bot commented Oct 28, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

…entence colon

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

github-actions Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

E2E Evals: ✅ PASS (flaky: 1 case(s) passed on their one rerun)

[test:paid] VERDICT GREEN — lane gate/pr, attempt 1
  rule 112/112 · behavior 1/1 · judge 24/24 · quarantined 0 (0 failing the lane)
  SKIPPED 0 · INFRA 0 · INCOMPLETE 0 · unattributed 0 · ACTION REQUIRED 0
  wall 6m06s · cost $33.24 known + 32 of 139 trial(s) cost unknown
  FLAKY 1 (failed once, passed on its one rule-16 rerun) · 1 rerun execution(s), cost $0.06

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

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

Full gate restored by:

  • test/size-ledger/ship/garrytan-gsta131-token-efficiency.json (real unknown dependency): register test/size-ledger/ship/garrytan-gsta131-token-efficiency.json under the cases that consume it in test/helpers/touchfiles-data.ts, add it to FREE_ONLY_PR_FILES in scripts/test-pr-profile.ts if no paid case reads it, or add its directory to DERIVABLE_PREFIXES so scripts/pr-dependencies.ts derives its consumers

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

  • bin/gstack-autoplan: 255 case(s), 24 judge(s)
  • bin/gstack-doctor-components.sh: 255 case(s), 24 judge(s)
  • bin/gstack-review-plan: 255 case(s), 24 judge(s)
  • bin/gstack-ship-receipt: 255 case(s), 24 judge(s)
  • lib/autoplan-budget.ts: 255 case(s), 24 judge(s)
  • lib/autoplan-export.ts: 255 case(s), 24 judge(s)
  • lib/autoplan-revise.ts: 255 case(s), 24 judge(s)
  • lib/autoplan-run.ts: 255 case(s), 24 judge(s)
  • lib/autoplan-scope.ts: 255 case(s), 24 judge(s)
  • lib/autoplan-state.ts: 255 case(s), 24 judge(s)
  • lib/headless-artifacts.ts: 255 case(s), 24 judge(s)
  • lib/review-depth.ts: 255 case(s), 24 judge(s)
  • lib/ship-receipt.ts: 255 case(s), 24 judge(s)
  • scripts/lib/windows-curation.ts: 255 case(s), 24 judge(s)
  • scripts/resolvers/fix-check.ts: 255 case(s), 24 judge(s)
Rule and judge shards
Shard Automated result Manual/unscored Executed Reused Status Cost
e2e-hermetic/skill-e2e-hermetic-canary 2/2 0 2 0 ✅ $0.02
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-completion 1/1 0 1 0 ✅ $1.03
e2e-skillify/skill-e2e-skillify 3/3 0 3 0 ✅ $0.81
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-failure 1/1 0 1 0 ✅ $0.64
e2e/skill-e2e-shared-libs-paths--shared-libs-review-path-eligibility 1/1 0 1 0 ✅ $1.45
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-unavailable 1/1 0 1 0 ✅ $0.63
e2e/skill-e2e-plan--plan-review-report 1/1 0 1 0 ✅ $1.16
e2e-retro/skill-e2e-retro 1/1 0 1 0 ✅ $0.3
e2e-qa-functional-fix/skill-e2e-qa-functional-fix 2/2 0 2 0 ✅ $0.93
e2e-review-army/skill-e2e-review-army--review-army-quality-score 1/1 0 1 0 ✅ $0.1
e2e-browse/skill-e2e-bws 6/6 0 6 0 ✅ $0.29
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-missing-asset 1/1 0 1 0 ✅ $0.29
e2e-design/skill-e2e-design--design-review-plugin-handoff 1/1 0 1 0 ✅ $0.13
e2e-design/skill-e2e-design--design-review-detector-shim-dom 1/1 0 1 0 ✅ $0.22
e2e-safety-ship-evidence/skill-e2e-safety-ship-evidence 1/1 0 1 0 ✅ $0.11
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-missing-marker 1/1 0 1 0 ✅ $0.17
e2e/skill-e2e-shared-libs--shared-libs-unsupported-git 1/1 0 1 0 ✅ $0.18
e2e/skill-e2e-ship-skip 1/1 0 1 0 ✅ $0.24
e2e-qa-workflow/skill-e2e-qa-workflow--qa-quick 1/1 0 1 0 ✅ $0.56
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-stale-before 1/1 0 1 0 ✅ $0.41
e2e-review-attribution/skill-e2e-review-attribution 3/3 0 3 0 ✅ $0.29
e2e/skill-e2e-shared-libs-paths--shared-libs-review-prior-coverage 1/1 0 1 0 ✅ $1.1
e2e/skill-e2e-shared-libs--shared-libs-review-lifecycle 1/1 0 1 0 ✅ $0.89
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-late-result 1/1 0 1 0 ✅ $0.34
e2e-deploy/skill-e2e-deploy--benchmark-workflow 1/1 0 1 0 ✅ $0.28
e2e/skill-e2e-investigate-owned-completion 1/1 0 1 0 ✅ $0.07
e2e/skill-e2e-shared-libs-paths--shared-libs-review-index-flags 1/1 0 1 0 ✅ $0.97
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-small-cli 1/1 0 1 0 ✅ $0.73
e2e-review-army/skill-e2e-review-army--review-army-perf-n-plus-one 1/1 0 1 0 ✅ $0.24
e2e-qa-functional/skill-e2e-qa-functional 2/2 0 2 0 ✅ $0.79
e2e-cso/skill-e2e-cso 1/1 0 1 0 ✅ $0.43
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-late-input 1/1 0 1 0 ✅ $0.84
e2e-qa-callers/skill-e2e-qa-callers--ship-exploratory-plan-checks 1/1 0 1 0 ✅ $0.73
e2e/skill-e2e-test-value 3/3 0 3 0 ✅ $0.73
e2e-qa-callers/skill-e2e-qa-callers--review-exploratory-small-cli 1/1 0 1 0 ✅ $0.8
e2e-qa-workflow/skill-e2e-qa-workflow--qa-only-no-fix 1/1 0 1 0 ✅ $0.55
e2e-deploy/skill-e2e-deploy--setup-deploy-workflow 1/1 0 1 0 ✅ $0.1
e2e/skill-e2e-coverage-audit 2/2 0 2 0 ✅ $0.27
llm-judge/skill-llm-eval 23/24 0 24 0 ❌ $1.44
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-current 1/1 0 1 0 ✅ $0.91
e2e-learnings/skill-e2e-learnings 1/1 0 1 0 ✅ $0.07
e2e-triage/skill-e2e-triage 1/1 0 1 0 ✅ $0.1
e2e-qa-workflow/skill-e2e-qa-workflow--qa-bootstrap 1/1 0 1 0 ✅ $0.08
e2e-third-party-actions/skill-e2e-third-party-actions 5/5 0 5 0 ✅ $0.45
e2e-design/skill-e2e-design--plan-design-review-no-ui-scope 1/1 0 1 0 ✅ $0.11
e2e-deploy/skill-e2e-deploy--canary-workflow 1/1 0 1 0 ✅ $0.12
e2e/skill-e2e-investigate-owned-termination 2/2 0 2 0 ✅ $0.17
e2e/skill-e2e-ship-hook-consent 2/2 0 2 0 ✅ $0.25
e2e-review-army/skill-e2e-review-army--review-army-delivery-audit 1/1 0 1 0 ✅ $0.17
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-timeout-unsettled 1/1 0 1 0 ✅ $0.18
e2e-session-intelligence/skill-e2e-session-intelligence 4/4 0 4 0 ✅ $0.29
e2e-design/skill-e2e-design--design-review-detector-shim 1/1 0 1 0 ✅ $0.12
e2e-plan-tune/skill-e2e-plan-tune 1/1 0 1 0 ✅ $0.14
e2e-safety-pair-agent/skill-e2e-safety-pair-agent 1/1 0 1 0 ✅ $0.1
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-launch-failure 1/1 0 1 0 ✅ $0.16
e2e/skill-e2e-ship-hook-refresh 1/1 0 1 0 ✅ $0.1
e2e/skill-e2e-shared-libs--shared-libs-read-only 1/1 0 1 0 ✅ $0.31
e2e-docsync-spawned/skill-e2e-docsync-spawned 1/1 0 1 0 ✅ $0.47
e2e-deploy/skill-e2e-deploy--land-and-deploy-first-run 1/1 0 1 0 ✅ $0.31
e2e-deploy/skill-e2e-deploy--land-and-deploy-review-gate 1/1 0 1 0 ✅ $0.27
e2e-review-army/skill-e2e-review-army--review-army-migration-safety 1/1 0 1 0 ✅ $0.25
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-stale-after 1/1 0 1 0 ✅ $0.44
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-store 1/1 0 1 0 ✅ $0.81
e2e-review-army/skill-e2e-review-army--review-army-json-findings 1/1 0 1 0 ✅ $0.07
e2e-safety-codex-consult/skill-e2e-safety-codex-consult 1/1 0 1 0 ✅ $0.25
e2e-deploy/skill-e2e-deploy--land-and-deploy-workflow 1/1 0 1 0 ✅ $0.61
e2e/skill-e2e-workflow 4/4 0 4 0 ✅ $0.94
e2e-failure-routing/skill-e2e-failure-routing 4/4 0 4 0 ✅ $0.42
e2e-ship-docsync/skill-e2e-ship-docsync--ship-docsync-recovery 1/1 0 1 0 ✅ $0.39
e2e-review/skill-e2e-review 2/2 0 2 0 ✅ $0.34
e2e/skill-e2e-shared-libs--shared-libs-review-revalidation 1/1 0 1 0 ✅ $1.9
Fail-closed reconciliation
         54s  test/skill-e2e-third-party-actions.test.ts
  slice 16  passed             30s  test/skill-e2e-plan-tune.test.ts
  slice 16  passed             20s  test/skill-e2e-triage.test.ts
  slice 16  passed             32s  test/skill-e2e-ship-docsync.test.ts#ship-docsync-timeout-unsettled
  slice 16  passed             48s  test/skill-e2e-ask-user-question-format-compliance.test.ts
  slice 16  passed             24s  test/skill-e2e-ship-docsync.test.ts#ship-docsync-launch-failure
  slice 16  passed             30s  test/skill-e2e-session-intelligence.test.ts
  slice 16  passed             35s  test/skill-e2e-ship-hook-consent.test.ts
  slice 16  passed             25s  test/skill-e2e-investigate-owned-termination.test.ts
  slice 16  passed             23s  test/skill-e2e-design.test.ts#design-review-detector-shim
  slice 16  passed             27s  test/skill-e2e-deploy.test.ts#canary-workflow
  slice 16  passed             30s  test/skill-e2e-ship-hook-refresh.test.ts
  slice 16  passed             18s  test/skill-e2e-design.test.ts#plan-design-review-no-ui-scope
  slice 16  passed             37s  test/skill-e2e-review-army.test.ts#review-army-delivery-audit
  slice 16  passed             27s  test/skill-e2e-safety-pair-agent.test.ts
  slice 16  passed             23s  test/skill-e2e-qa-workflow.test.ts#qa-bootstrap
  slice 17  passed             12s  test/skill-e2e-learnings.test.ts
  slice 17  passed             14s  test/skill-e2e-diagram.test.ts
[test:paid] collector final outcomes: 125 executed, 0 reused; 124 passed, 1 failed, 0 manual accepted (unscored; no score-cache credit) (125 attempt records from 71 collectors; every record counts)
[test:paid] deselected testcases, zero credit (316):
[test:paid]    302  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 112/112 · behavior 1/1 · judge 24/24 · quarantined 0 (0 failing the lane)
  SKIPPED 0 · INFRA 0 · INCOMPLETE 0 · unattributed 0 · ACTION REQUIRED 0
  wall 6m06s · cost $33.24 known + 32 of 139 trial(s) cost unknown
  FLAKY 1 (failed once, passed on its one rule-16 rerun) · 1 rerun execution(s), cost $0.06
[test:paid] flaky (rule 16: failed once, passed on its one rerun; green with this annotation):
  ⚑ plan-eng-review/SKILL.md sections  judge  FLAKY: failed in attempt 1 (paid-slice-5-a1), passed on its one rerun in attempt 1 rerun (slice 1 attempt 1); rerun cost $0.06; first failure: assertion: expect(received).toBeGreaterThanOrEqual(expected)
[test:paid] exercised-path map (shadow, non-blocking): 7 MAP_GAP line(s) over 106 executed case(s) with recorded commands
  MAP_GAP document-release bin/gstack-banned-terms: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
  MAP_GAP plan-review-report bin/gstack-plan-reality: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
  MAP_GAP plan-review-report browse/dist/browse: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
  MAP_GAP plan-review-report design/dist/design: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
  MAP_GAP review-gate-integrity browse/dist/browse: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
  MAP_GAP test-audit-report-only design/dist/design: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
  MAP_GAP timeline-event-flow bin/gstack-skill-end: non-blocking for this PR; the next census refresh widens the map (docs/TESTING_INTERNALS.md#exercised-path-map)
[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.

Flaky: failed once, passed on its one rerun (rule 16)

⚑ plan-eng-review/SKILL.md sections  judge  FLAKY: failed in attempt 1 (paid-slice-5-a1), passed on its one rerun in attempt 1 rerun (slice 1 attempt 1); rerun cost $0.06; first failure: assertion: expect(received).toBeGreaterThanOrEqual(expected)

Each failed and passed on its rerun in run 40634787316 at the attempts named above. Logged for the daily flaky-fix pass in this run's flake-records-a1 artifact (docs/TESTING_INTERNALS.md#flaky-reruns).

Dispatched narrow screen (gstack-ship-queue ready --screen) of merge commit 19436a1fa5f2e150c8699587153ffd79b8ddcab3.

garrytan and others added 4 commits October 28, 2026 02:50
…dversarial skip and Step 16's TODOS rerun (screen judge repair)

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…he below-floor exit at the cap, name the plan run a repeat reuses, print the native skip on outside-only plans

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

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

# Conflicts:
#	CHANGELOG.md
…n-efficiency

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

# Conflicts:
#	CHANGELOG.md
capy-ai Bot added a commit that referenced this pull request Oct 29, 2026
…ose; a cancelled judge names what it was waiting on (GSTA-139 S3) (#3544)

* fix(flaky): give the judged review and Eng prose one rule each, and name what a cancelled judge received (GSTA-139 S3)

- review: Step 5.8 records an unresolved non-gate defect as open, and a repeat
  pass's reruns are revalidation that run after smoke expiry in the same
  PROBE_DIR with materialize once on the final pass (every sample of #3527's
  red panel 40617200857 and its rerun named one of these). Nearby prose trimmed
  so union, skeleton and host pins do not grow.
- plan-eng-review: drop the Eng-only em-dash Voice variant so the shared Voice
  hoists; the Scope gate's Format precedence names em dashes (5 of 6 samples of
  40634787316 named the near-copy Voice). Host size pins lowered.
- llm-judge: a cancelled judge request prints llm-judge-aborted with timing,
  429 waits and stream event counts (no content), so the next workflow-judge
  deadline (train 35 gate 40660626349) names its cause.
- benchmark: the Phase 6 example no longer lazy-loads the hero image.

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

* fix(review): earlier passes link checkpoints; only the final pass materializes (all 3 samples of the focused judge run at 1bdc4ce)

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

* docs(changelog): Unreleased entry for the GSTA-139 S3 judge prose repairs

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

* test: record llm-judge abort diagnostic as non-behavioral; abort tests wait on events, not sleeps

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>

* docs: name the llm-judge-aborted line in TESTING_INTERNALS

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