Results PRs with large agent transcripts can be reviewed again (GST-3273) (#4574)

Results PRs that commit captured agent sessions no longer stop at the 2
MB review limit: a data file kept in review only because a session
quotes a lint pragma, an env check or a `--no-verify` push now reaches
readers as those lines with context.

Why: harness-evals#494 (25 transcripts, 11.3 MB) could not be reviewed
at all. Only a strict set of files is cut, so anything in doubt still
goes to readers whole.

Nothing to do: the gate review still runs, and the change follows the
review policy you already have.

Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
This commit is contained in:
Garry Tanandcapy-ai[bot] authored and GitHub committed 2026-11-20 21:34:22 +00:00
1 parent 593d7e1634
commit ad65f62edf
12 files changed
+468 -52

No files matched your search

+3 -1
View File
@@ -751,7 +751,9 @@ targeted reader) reads the same selection: its `DIFF_CMD:` with one
same items, and the `DIFF_KEEP:` command for the kept files under those
patterns. A kept file whose only reason is a secret line reaches pass readers as
an excerpt of its matched lines in context instead ([secret-line
excerpts](ship-policy.md#secret-line-excerpts)). The outside voice's embedded diff is that selection. Each brief says
excerpts](ship-policy.md#secret-line-excerpts)), and so does an allowlisted data
file kept only for single-line gate tags ([gate-tagged data
excerpts](ship-policy.md#gate-tagged-data-excerpts)). The outside voice's embedded diff is that selection. Each brief says
how many files and bytes were left out and that the reader must not report on
their absence. Excluded paths count as docs for the depth and never trigger the
numeric-claim scan or a targeted class; kept files keep their own class.
+26
View File
@@ -1607,6 +1607,32 @@ whole through its keep command. Results PRs that capture model requests need
this: their system prompts name `${…_API_KEY}` variables and keychain commands
(harness-evals #269: 75 such files, 12.9 MB whole).
<a id="gate-tagged-data-excerpts"></a>
**Gate-tagged data excerpts (GST-3273).** A kept file whose only reason is
`gate-tagged` gets the same excerpt, under its own `## Gate-tagged data
excerpts` heading, only when all of these hold; anything else goes to readers
whole:
1. It is a `.jsonl`, `.ndjson`, `.csv`, `.tsv` or `.log` file, or a `.json`
file under a docs, results or reports tree. A
[`review_content_patterns`](#review-content-patterns) declaration alone never
qualifies a file.
2. No gate floor covers its path (test, CI, config, snapshot or golden), and it
was not renamed, so no tag can come from the floor or the old path.
3. It is kept for no other reason (not source, agent prose, config, a gate path,
executable, binary or a secret line).
4. Every tag instance in it is one added line's own tag: the multi-line rule
(an empty `catch` or `except: pass` across lines) finds nothing in its added
lines, and its untagged added lines, scanned together, tag nothing.
The excerpt shows every changed line the gate scan's line rules tag (and every
secret-line or secret-shaped line) and names the tags. The plan and the receipt
apply the same rule to the same input, so they build the same selection. The
gate class and the record's `gate_tagged` list are unchanged: only how much of
the data file a reader sees changes. Results PRs that commit captured agent
sessions need this: the sessions quote lint pragmas, env checks and
`--no-verify` pushes (harness-evals #494: 25 transcripts, 11.4 MB whole).
<a id="one-selection-every-reader"></a>
**One selection for every reader (GST-1476).** Every path that renders a
reader's brief builds its diff from the same selection: the policy's
+7 -3
View File
@@ -4164,9 +4164,13 @@ the base policy commit.
split the PR. When published data under a pattern is kept as `code`
(`REVIEW_EXCLUDE_KEPT: code …` on `.patch`, `.sha256` or extension-less files),
add [`review_content_patterns`](ship-policy.md#review-content-patterns) for it. Files kept only for a secret line already count as their
excerpts ([secret-line excerpts](ship-policy.md#secret-line-excerpts)); one in
`DIFF_KEEP:` is kept for another reason, and one the excerpt could not be
built for moves to the reader's keep command and counts whole.
excerpts ([secret-line excerpts](ship-policy.md#secret-line-excerpts)), and so
do allowlisted data files kept only for gate tags ([gate-tagged data
excerpts](ship-policy.md#gate-tagged-data-excerpts)); one in `DIFF_KEEP:` is
kept for another reason, and one the excerpt could not be built for moves to
the reader's keep command and counts whole. The line's `files=` field and the
fix name the largest files left; a name holding a space, a comma or a colon is
quoted in `files=`.
There is no override flag. See [the review ceiling](ship-policy.md#review-diff-ceiling).