Skip to content

Strip hidden line-break characters from the weekly benchmark line in release plans (GST-3606) - #4866

Merged
capy-ai[bot] merged 3 commits into
mainfrom
stable-benchmark-strip-unicode-line-breaks
Nov 28, 2026
Merged

capy-ai[bot] merged 3 commits into
mainfrom
stable-benchmark-strip-unicode-line-breaks

Conversation

@garrytan

@garrytan garrytan commented Nov 28, 2026 •

Copy link
Copy Markdown
Owner

The weekly benchmark line in stable release plans now also strips C1 control characters and the Unicode line and paragraph separators (U+2028, U+2029) from record text.
This is the last fix needed before the release step may hold a cut on a measured drop. Holding stays off.

What changed
  • clean() in crew/lib/release-benchmark.ts strips C0, DEL, C1 (U+0080 to U+009F) and U+2028/U+2029, so no text from a published weekly record can break the BENCHMARK: line.
  • Two model ids that read the same once cleaned still refuse the record, which makes the whole benchmark read unreadable. That stays on purpose, because a gate should fail closed rather than guess which row counts. The docstring and the collision message now say so.
  • Two new tests cover the wider stripping and show that a colliding record makes the read unreadable even when an older readable record exists. Both fail on main.
  • docs/releases.md names the separators in the collision rule.
Why

The second-model review on #4782 left two Low notes. The cleaner missed C1 and U+2028/U+2029, and a collision fails the whole read. Both had to be settled before holding is switched on, after the first real weekly record on 2026-11-30.

Blast radius

Only the text of the BENCHMARK: line and the unreadable reason change. BENCHMARK.hold stays false, so no cut waits or is refused because of this.

Documentation

Status: updated: one factual line in docs/releases.md now matches the wider record-text cleaning.

Scope: base 778934c..0152b2e (1 commit: crew/lib/release-benchmark.ts, crew/test/release-benchmark.test.ts, changelog.d/stable-benchmark-strip-unicode-line-breaks.md) plus the unstaged fragment edit; nothing staged, no new files. Discovery covered tracked and new authored docs and templates; only docs/releases.md#weekly-benchmark documents the changed surface.

Documentation health:

  • docs/releases.md: Updated (the Weekly benchmark collision rule now says model ids are compared after control characters and the Unicode line and paragraph separators U+2028/U+2029 are stripped, matching clean())
  • changelog.d/stable-benchmark-strip-unicode-line-breaks.md: Current (reviewed, not edited)
  • README.md: Current (links docs/releases.md; no benchmark-line detail)
  • CLAUDE.md: Current
  • ARCHITECTURE.md: Current
  • CONTRIBUTING.md: Current
  • CHANGELOG.md: Current (latest entry 1.104.2.0 matches VERSION; not edited)
  • TODOS.md: Skipped (not audited in this mode)

Coverage: all shipped features have adequate documentation. The change hardens internal text cleaning behind the existing BENCHMARK: line, which has reference coverage in docs/releases.md. No new public surface.

Diagram drift: none.

Review notes

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

  • INFORMATIONAL crew/lib/release-benchmark.ts ids differing only by zero-width or look-alike characters stay distinct rows
  • INFORMATIONAL crew/lib/release-benchmark.ts the maintainer-supplied waiver is not passed through clean()
  • INFORMATIONAL crew/lib/release-benchmark.ts ModelRow.host is stored uncleaned; nothing prints it
Agent notes
Agent notes

Approvals

No approvals recorded for branch stable-benchmark-strip-unicode-line-breaks.
Plan: exempt: bug fix (the two Low notes left open on #4782, GST-3606)
Plan check: exempt bug fix

{
  "schema_version": 1,
  "pr": 4866,
  "head": "333ee56e0ef2597478cfaafa854f3cc857394b12",
  "version": "1.104.2.0",
  "base": "main",
  "gate": {
    "targeted": {
      "pass": 74,
      "fail": 0,
      "skip": 0
    }
  },
  "calls": 19,
  "session_kind": "unattended",
  "run": "/home/user/.capy/work/gsta786/ship3",
  "head_tree": "504a60ffcf2a99123e80b0d2d6e18f758ba38ccd",
  "product_patch_id": "b1e9a664c09b09c2f20c6d93aa716ed72f92924d",
  "gstack_version": "1.104.2.0",
  "review_depth": {
    "depth": "light",
    "class": "code",
    "runtime_lines": 6,
    "rules": "33831f8248a814fd",
    "base": "778934c098f5d5c5e33931ed9c9ecee1807f9fe7",
    "registry": "778934c098f5d5c5e33931ed9c9ecee1807f9fe7",
    "gate_scan": {
      "tagged": 0,
      "head": "333ee56e0ef2597478cfaafa854f3cc857394b12"
    },
    "reasons": [
      "runtime=6"
    ],
    "risk": [],
    "mode": "panel"
  },
  "pregate": "requires-remote cleared @504a60ffcf2a (8 checks, current for 333ee56e0ef2)",
  "requires_remote": [
    "pregate.json/remote_gate: remote-gate tree=504a60ffcf2a tests=38564 skipped=2 runs=46121292845/1 profiles=ci-reuse/free-tests heads=333ee56e0ef2 verified=2026-11-28T07:33:22.429Z"
  ],
  "issues": {
    "fixes": [],
    "refs": [],
    "flakes": []
  },
  "docs": {
    "status": "updated",
    "scope": "README.md, CONTRIBUTING.md and docs/ (docs/releases.md#weekly-benchmark updated)"
  },
  "review_loop": {
    "passes": 1,
    "blocking_found": 0,
    "deferred": 0,
    "noted": 3,
    "fixed": 0,
    "scope": "frozen",
    "rounds": 1,
    "dispatches": {
      "specialist": 1
    }
  },
  "gate_dispositions": []
}

Open in Capy

garrytan and others added 3 commits November 28, 2026 07:17
…ext (GST-3606)

Model ids that read the same once cleaned still refuse the record, so the
whole benchmark read fails closed. Holding stays off.

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>
…tors are stripped

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

trunk-io Bot commented Nov 28, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

@capy-ai
capy-ai Bot marked this pull request as ready for review November 28, 2026 07:35
@capy-ai
capy-ai Bot merged commit b022764 into main Nov 28, 2026
52 of 54 checks passed
@garrytan garrytan mentioned this pull request Nov 28, 2026
capy-ai Bot added a commit that referenced this pull request Nov 28, 2026
- Dependency and CI action updates, each checked against its publisher. (#4873)
- The PR body check no longer loses the closing Agent notes section when the text quotes a `<!--` comment opener in inline code or a code block, (#4874)
- `/gstack-ship` stops mistaking ordinary text for Capy ids, and checks every part of a public PR body it posts. (#4872)
- `/gstack-ship` no longer puts home folder paths or Capy thread and message ids into PR bodies on public repositories. (#4868)
- `/gstack-ship` no longer stops or blocks because of time and tokens that belong to something else. (#4877)
- /gstack-ship keeps its token cap and clock when its budget start reruns mid-run. (#4882)
- `/gstack-ship` stops reopening findings that were already settled, and a missing run folder no longer costs a docs-audit attempt. (#4875)
- `/gstack-ship` closes five gaps in how it records reviews, and `--for gstack-ship` now installs the ship skill on Capy. (#4867)
- The stable release no longer skips a fully tested commit because a report-only workflow failed on it. (#4865)
- A test that copies its own `bun` binary no longer stops `/gstack-ship` with a fetch violation. (#4876)
- The secrets check no longer reports an 11-digit GitHub Actions run id as a phone number when code names it with a camelCase run identifier (#4881)
- `/review` now always runs its Codex second-model review when Codex is ready, and runs the Red Team on diffs over 200 lines. (#4870)
- The factory scorecard's red-train rate now counts each train (one batch of PRs tested together) once per report, by its branch, so re-testing the same batch inside the report's window no longer moves the rate. (#4880)
- The secrets check catches more Google API keys in encoded text, reads each JavaScript and TypeScript declaration under its own name, reports a provider key once, and stops matching look-alike values against your environment's secrets. (#4871)
- The secrets check now catches keys in JavaScript, TypeScript and Go declarations, and stops flagging JSON key paths, run folders and base64 noise. (#4869)
- The paid shared-code review test no longer fails a correct review that printed a caller file with `cat -A`. (#4878)
- The weekly benchmark line in the stable release plan now also strips C1 control characters and the Unicode line and paragraph separators (U+2028, U+2029) from record text, (#4866)

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