Repository navigation
Weekly benchmark records can't slip text into the release log or lose a model row (GST-3606) - #4782
Merged
Merged
Conversation
… 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>
|
😎 This pull request was merged. |
…ake a weekly record unreadable Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Merged
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.tschanges, by five lines. Its only caller is the benchmark block increw/scripts/release-cut.ts, which reads rows only throughObject.entriesandObject.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.
sf-613f913bc879security finding, details recorded privatelysf-26550c64872csecurity finding, details recorded privatelyExploratory 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:
unreadablenow also covers a record where two model ids read the same once control characters are stripped, so no row is silently lost.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 failbun run typecheck: 0 errors;bun run typecheck:test: none newAgent 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