Skip to content

Show the weekly benchmark in every stable release plan, ready to hold a measured drop (GST-3606) - #4755

Merged
capy-ai[bot] merged 3 commits into
mainfrom
stable-release-reads-weekly-benchmark
Nov 24, 2026
Merged

capy-ai[bot] merged 3 commits into
mainfrom
stable-release-reads-weekly-benchmark

Conversation

@garrytan

@garrytan garrytan commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

Every stable release plan now prints the weekly benchmark's result: whether this week's gstack measurably fixes more or fewer bugs than the current stable release.
Why: about 30 PRs land a week and this is the first number that says whether agents using gstack got better or worse; a measured drop should not reach every stable install.
Nothing to do: holding is off for the first two weekly records, so this only reports for now.

What changed

The stable release docs gain a Weekly benchmark section, and every cut plan prints the weekly result, report only for now

The stable release docs gain a Weekly benchmark section, and every cut plan prints the weekly result, report only for now.

Garry asked "Is Gstack this week significantly better than last week?" gstack-evals now answers that every Saturday and publishes a weekly.json record. Until now the stable release never looked at it. The release tool now reads those records and prints one BENCHMARK: line on every cut plan, dry runs included, using the same rule gstack-evals uses to decide which record counts. The code to hold a regular cut on a measured drop is in place and tested, but it stays switched off until two weekly records have arrived on time; security, data-loss and regression fixes always ship. A hand-run cut can pass a hold with a new benchmark_waiver input, which is written into the release tag so a retried cut is not held again. A malformed record reads as unreadable instead of stopping the cut, and text from the records is cleaned before it reaches the job log.

Why

"Is Gstack this week significantly better than last week?" (Garry, 2026-11-21). The weekly benchmark now measures that, and the stable release is where a measured drop would reach everyone, so the cut has to see the number before it can ever hold on it.

Blast radius

Only the stable release tool and its workflow change: crew/scripts/release-cut.ts gains one benchmark block after its existing plan, and planRelease, gateVerdict and readTrainNotes are untouched, so gstack-evals' resolver shim still loads the module (its export test passes). With BENCHMARK.hold false the gate always passes, which the report-only test and a live read against garrytan/gstack-evals (BENCHMARK: none (no weekly record published yet) (report only)) confirm.

Pre-Landing Review

Two review rounds at full depth (a gate-class change: specialists, red-team, a second native reader and a second-model review on GPT-6.2 Sol).

  • Round 1 found one blocker: a malformed weekly record could crash every cut, report-only included (security finding, details recorded privately). It was reproduced, fixed in b6b6322 and covered by a regression test. Three smaller findings were fixed in the same commit, including a test that a waiver written into the tag is read back.
  • Round 2 found two follow-on hardening gaps in that fix (security findings, details recorded privately). The second-model review marked them blocking. The repository owner's agent ruled them below the blocking floor, because both need release-write access on garrytan/gstack-evals and holding is off, so they ship as disclosed notes and the fix lands in a follow-up PR before holding is switched on.
Review notes

Below the blocking floor (advisory, informational, test-gap or wording items); recorded here and not fixed in this PR.

  • INFORMATIONAL sf-d93a26797613 security finding, details recorded privately
  • INFORMATIONAL sf-15b3e575a938 security finding, details recorded privately
Exploratory QA

Functional smoke (CLI, report only). Before the fix: a live read of garrytan/gstack-evals passed; a record with a null no-gstack comparison crashed the status line (reproduced twice); record text with a newline could start a workflow-command line. After the fix, all three reran on the fixed tree and passed. Not run: the hold-on paths through the CLI, since holding is a constant that is off; they are covered by unit tests of the gate.

Design Review

No frontend files changed — design review skipped.

Eval Results

No prompt-related files changed — evals skipped.

Scope Drift

Scope Check: CLEAN

Plan Completion

Every item in the approved plan is delivered: the record reader and resolver rule, the BENCHMARK: line on every cut plan, the hold table with the switch off, the waiver input, the tests and the Weekly benchmark docs.

Verification Results

The plan's checks: 1 PASS (the real fetch against garrytan/gstack-evals, run locally on this tree), 0 FAIL. The Dry run against main CI job currently refuses before any new code runs because main's own release gate is red; the same refusal reproduces with main's own code.

TODOS

No TODO items completed in this PR.

Documentation

Status: updated. docs/releases.md now matches the weekly benchmark code after b6b6322; two small factual edits, no blockers.

Scope: the release diff b5eb401..b6b6322 (crew/lib/release-benchmark.ts, crew/scripts/release-cut.ts, .github/workflows/weekly-release.yml, changelog.d fragment, tests, docs/releases.md), plus the docs that reference the stable release tooling (crew/docs/recommended-harness.md, README.md channel notes). No staged, unstaged or untracked content.

Doc diff:

  • docs/releases.md (Weekly benchmark): added that a vs_none with a missing or non-numeric number is left out of the BENCHMARK line instead of making the record unreadable (b6b6322).
  • docs/releases.md (Dry runs): added crew/lib/release-benchmark.ts to the files whose PR runs the dry run against main, matching the workflow's pull_request.paths.
Documentation health:
  docs/releases.md                  Updated (vs_none drop sentence; dry-run trigger file list)
  crew/docs/recommended-harness.md  Current (defers release details to docs/releases.md)
  README.md                         Current (channel description unaffected)
  CONTRIBUTING.md                   Current (not affected by this diff)
  CHANGELOG.md                      Skipped (protected; changelog.d fragment matches the code)
  TODOS.md                          Skipped (protected; out of scope)

Coverage:

Documentation coverage:
  [entity]                   [reference] [how-to] [tutorial] [explanation]
  BENCHMARK: line / gate      ✅ releases  ✅ releases ❌      ✅ releases
  benchmark_waiver input      ✅ releases  ✅ releases ❌      ✅ releases
  --benchmark-waiver flag     ✅ release-cut usage  ❌  ❌      ❌

Debt: --benchmark-waiver is documented only in release-cut.ts's usage line and through the workflow input (common gap, reference-only). crew/docs/recommended-harness.md's stable-release summary doesn't mention the weekly benchmark (it links to docs/releases.md). Record-text control-character stripping isn't described anywhere (intentionally left out).

Diagram drift: none; no diagrams reference the release tooling.

Tests
  • bun test crew/test/release-benchmark.test.ts crew/test/release-cut.test.ts crew/test/release-cadence.test.ts test/weekly-release-workflow.test.ts: 73 pass, 0 fail
  • bun run typecheck: 0 errors; bun run typecheck:test: none new
  • CI free suite at ff8a7f9 (run 45239873740): green, 39270 tests
Agent notes

Refs GST-3606

Approvals

Approved: yes (record r-57e97403a7e4). The full approval record stays private.
Plan: approved (record r-fdf5dcc147b1)
Plan check: approved (record r-fdf5dcc147b1)

REVIEW_LOOP: passes=2 blocking_found=3 deferred=0 noted=4 fixed=4 scope=frozen open=2 dispatches=8
Gate edits: none detected (12 listed, 5 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)
Ruled note: redacted at b6b6322 ruled by GStack Minder (GSTA-36) (relayed from GSTA-36:2026-11-23T18:45Z) at 2026-11-23T18:29:29.338Z: security finding, details recorded privately (approval a-e53bf6e2dd25)
Ruled note: redacted at b6b6322 ruled by GStack Minder (GSTA-36) (relayed from GSTA-36:2026-11-23T18:45Z) at 2026-11-23T18:29:29.437Z: security finding, details recorded privately (approval a-0f182993efb5)

🤖 Generated with Claude Code

{
  "schema_version": 1,
  "pr": 4755,
  "head": "ff8a7f9eb59b8b298ccbec61baf849981f1dd359",
  "version": "1.103.0.0",
  "base": "main",
  "gate": {
    "targeted": {
      "pass": 73,
      "fail": 0,
      "skip": 0
    }
  },
  "calls": 21,
  "session_kind": "unattended",
  "run": "/home/user/.capy/work/gsta786/ship",
  "head_tree": "ef2660f26c00fdd2faf97806f3f7db1fe81cecd0",
  "product_patch_id": "0b476483cccf251f93cea54c65307f8c8b11f93e",
  "gstack_version": "1.103.0.0",
  "review_depth": {
    "depth": "full",
    "class": "gate",
    "runtime_lines": 199,
    "rules": "33831f8248a814fd",
    "base": "b5eb401e450bdf73059296c303cb5fc3391a060e",
    "registry": "b5eb401e450bdf73059296c303cb5fc3391a060e",
    "gate_scan": {
      "tagged": 0,
      "head": "ff8a7f9eb59b8b298ccbec61baf849981f1dd359"
    },
    "reasons": [
      "gate-class",
      "runtime=199"
    ],
    "risk": [],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @ef2660f26c00 (8 checks, current for ff8a7f9eb59b)",
  "requires_remote": [
    "pregate.json/remote_gate: remote-gate tree=ef2660f26c00 tests=39270 skipped=2 runs=45239873740/1 profiles=ci-reuse/free-tests heads=ff8a7f9eb59b verified=2026-11-23T18:48:32.045Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "updated",
    "scope": "docs/releases.md, README.md, CONTRIBUTING.md, crew/docs/recommended-harness.md against the release diff b5eb401e..b6b6322a"
  },
  "review_loop": {
    "passes": 2,
    "blocking_found": 3,
    "deferred": 0,
    "noted": 4,
    "fixed": 4,
    "scope": "frozen",
    "rounds": 2,
    "dispatches": {
      "specialist": 6,
      "red-team": 2
    }
  },
  "ruled_notes": [
    {
      "finding": "redacted",
      "head": "b6b6322a35fb51c803b809b488e00265570a730c",
      "by": "GStack Minder (GSTA-36)",
      "reason": "security finding, details recorded privately",
      "at": "2026-11-23T18:29:29.338Z",
      "approval": "a-e53bf6e2dd25",
      "relayed": "GSTA-36:2026-11-23T18:45Z"
    },
    {
      "finding": "redacted",
      "head": "b6b6322a35fb51c803b809b488e00265570a730c",
      "by": "GStack Minder (GSTA-36)",
      "reason": "security finding, details recorded privately",
      "at": "2026-11-23T18:29:29.437Z",
      "approval": "a-0f182993efb5",
      "relayed": "GSTA-36:2026-11-23T18:45Z"
    }
  ],
  "gate_dispositions": []
}
{"head":"b6b6322a35fb51c803b809b488e00265570a730c","run":"gsta786-ship","status":"started","review_loop":{"passes":2,"blocking_found":1,"deferred":0,"noted":2,"fixed":4,"scope":"frozen","rounds":2,"dispatches":{"specialist":6,"red-team":2}}}

Open in Capy

… a measured drop (GST-3606)

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

trunk-io Bot commented Nov 23, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

garrytan and others added 2 commits November 23, 2026 18:17
A no-gstack comparison with missing numbers is now left out of the benchmark line instead of crashing the cut, any other failure to judge the records reads as unreadable, and text from the records is stripped of control characters before it reaches the job log.

Review-Finding: p1/red-team#1 reader=red-team
Review-Finding: p1/red-team#2 reader=red-team
Review-Finding: p1/specialist-batched#1 reader=testing
Review-Finding: p1/specialist-batched#2 reader=security
Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
… out of the benchmark line

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
@capy-ai
capy-ai Bot marked this pull request as ready for review November 23, 2026 18:53
@capy-ai
capy-ai Bot merged commit a9c746f into main Nov 24, 2026
57 of 58 checks passed
capy-ai Bot added a commit that referenced this pull request Nov 24, 2026
- make-pdf no longer lets a NUL character hide an `onerror` handler, a `javascript:` link or a `<script>` tag from its sanitizer. (#4762)
- After a blocking fix, /ship's second review round is always a full review whose every reader is recorded with the pass, instead of a narrower re-check whose result could go missing. (#4783, replacing #4781)
- /ship's instructions now match how it reviews code. (#4779)
- A weekly benchmark record can no longer slip text into the release job's log through its error messages, or lose a model row to an odd model name. (#4782)
- Every stable release plan now prints the weekly benchmark's result, so you can see whether this week's gstack measurably fixes more or fewer bugs than the current stable release. (#4755)

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