Skip to content

Weekly benchmark records can't slip text into the release log or lose a model row (GST-3606) - #4782

Merged
capy-ai[bot] merged 2 commits into
mainfrom
stable-benchmark-record-text-hardening
Nov 24, 2026
Merged

capy-ai[bot] merged 2 commits into
mainfrom
stable-benchmark-record-text-hardening

Conversation

@garrytan

@garrytan garrytan commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Weekly benchmark records can no longer slip text into the stable release job's log through their error messages, or silently lose a model row.
Why: holding on a measured drop gets switched on after two weekly records, and it has to read those records exactly.
Nothing to do.

What changed

When the release tool can't read a weekly benchmark record, it prints why. That reason could still contain raw text from the record, such as an unknown verdict with a newline in it, which the job log could read as a command. The reason is now cleaned before it is printed. Model rows are kept in a map with no prototype, so a row named __proto__ still counts toward the verdict, and two model names that read the same once cleaned make the record unreadable instead of one silently replacing the other. Two regression tests cover both, and both fail on main.

Why

Before holding is switched on, the reader has to agree exactly with what gstack-evals published. These were the two notes left open when the benchmark wiring landed in #4755.

Blast radius

Only crew/lib/release-benchmark.ts changes, by five lines. Its only caller is the benchmark block in crew/scripts/release-cut.ts, which reads rows only through Object.entries and Object.values (read at release-cut.ts:674-687), so the prototype-free map changes nothing for it; the release-cut tests pass unchanged.

Pre-Landing Review

One round at light depth (a batched specialist and a second native reader). No blocking findings.

Review notes

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

  • INFORMATIONAL sf-613f913bc879 security finding, details recorded privately
  • INFORMATIONAL sf-26550c64872c security finding, details recorded privately
Exploratory QA

Functional smoke: a live read of garrytan/gstack-evals passed, and a refused verdict with a newline and a workflow command now prints on one line. Both passed on this tree.

Design Review

No frontend files changed — design review skipped.

Eval Results

No prompt-related files changed — evals skipped.

Scope Drift

Scope Check: CLEAN

TODOS

No TODO items completed in this PR.

Documentation

Status: updated. docs/releases.md's Weekly benchmark section now names the one new case that makes a weekly record unreadable.

Scope: the branch diff a9c746f..d35199e (crew/lib/release-benchmark.ts, crew/test/release-benchmark.test.ts, changelog.d/stable-benchmark-record-text-hardening.md), audited against docs/releases.md (Weekly benchmark section and Outcomes table) and the related changelog.d fragments. There were no staged, unstaged or new files.

Documentation health:

  • docs/releases.md: Updated. The Weekly benchmark bullet on unreadable now also covers a record where two model ids read the same once control characters are stripped, so no row is silently lost.
  • changelog.d/stable-benchmark-record-text-hardening.md: Current. It already describes the change; it was not edited, because changelog.d belongs to the parent.
  • CHANGELOG.md: Skipped. Ship-owned mode does not edit it.

Coverage: the change adds no new public surface (no commands, flags or config). The new refusal case is covered as reference in docs/releases.md#weekly-benchmark; the cleaned reason text and the __proto__ row fix are internal and need no docs. No documentation debt. No architecture diagrams reference this module, so there is no diagram drift.

Tests
  • bun test crew/test/release-benchmark.test.ts crew/test/release-cut.test.ts: 63 pass, 0 fail
  • bun run typecheck: 0 errors; bun run typecheck:test: none new
  • CI free suite at 2c0c5d6 (run 45344507365): green, 39416 tests
Agent notes

Refs GST-3606. Follow-up to the two ruled notes on #4755.

Plan: exempt: bug fix for two ruled review notes on #4755

REVIEW_LOOP: passes=1 blocking_found=0 deferred=0 noted=2 fixed=0 scope=frozen dispatches=4
Gate edits: none detected (1 listed, 0 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)

🤖 Generated with Claude Code

{
  "schema_version": 1,
  "pr": 4782,
  "head": "2c0c5d688fd40bede4d7c522822bfff9aeeeadbd",
  "version": "1.103.1.0",
  "base": "main",
  "gate": {
    "targeted": {
      "pass": 63,
      "fail": 0,
      "skip": 0
    }
  },
  "calls": 13,
  "session_kind": "unattended",
  "run": "/home/user/.capy/work/gsta786/ship2",
  "head_tree": "13e2e6157c84d300924bffd06dba6cc36a704802",
  "product_patch_id": "a6ed947ae8ca8ca28ad5ed2b9d73b2aee57c3aff",
  "gstack_version": "1.103.1.0",
  "review_depth": {
    "depth": "light",
    "class": "code",
    "runtime_lines": 5,
    "rules": "33831f8248a814fd",
    "base": "a9c746fa0c5cb19524bfc45bf75806b99fc1d2b5",
    "registry": "a9c746fa0c5cb19524bfc45bf75806b99fc1d2b5",
    "gate_scan": {
      "tagged": 0,
      "head": "2c0c5d688fd40bede4d7c522822bfff9aeeeadbd"
    },
    "reasons": [
      "runtime=5"
    ],
    "risk": [],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @13e2e6157c84 (8 checks, current for 2c0c5d688fd4)",
  "requires_remote": [
    "pregate.json/remote_gate: remote-gate tree=13e2e6157c84 tests=39416 skipped=2 runs=45344507365/1 profiles=ci-reuse/free-tests heads=2c0c5d688fd4 verified=2026-11-24T07:17:47.935Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "updated",
    "scope": "docs/releases.md (Weekly benchmark and Outcomes) against a9c746fa0c5c..d35199e9a"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 0,
    "deferred": 0,
    "noted": 2,
    "fixed": 0,
    "scope": "frozen",
    "rounds": 1,
    "dispatches": {
      "specialist": 3,
      "red-team": 1
    }
  },
  "gate_dispositions": []
}

Open in Capy

… a model row

The reason an unreadable record prints is cleaned of control characters, model rows are kept in a prototype-free map, and model names that collide once cleaned make the record unreadable.

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

trunk-io Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

…ake a weekly record unreadable

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 24, 2026 07:19
@capy-ai
capy-ai Bot merged commit c34b967 into main Nov 24, 2026
55 of 56 checks passed
@garrytan garrytan mentioned this pull request Nov 24, 2026
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