Repository navigation
Conversation
…by content (GST-3273) Results PRs that commit captured agent sessions can be reviewed: a data file the gate scan tags only by its content goes to readers as its tagged lines in context. Code files, path-tagged files and files whose tag spans lines stay whole, and the over-limit error names its largest files. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
Merging to
After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here |
Deterministic replay over 460 main commits plus the harness-evals #494 head: the reader selection moves only for gate-tagged data files, and every tagged and secret line stays in the excerpt. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…GST-3273) A data file kept for a credential value that also carried a gate-tagged line was excerpted to its tagged lines only, so readers never saw the credential. The excerpt now shows every line secretValueLine reads as a credential value. Review-Finding: p1/specialist-batched#1 reader=security Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
On a line longer than 400 characters the excerpt showed only windows around other matches, so a credential value could be cut. The excerpt now opens a window over each credential name and the 200 characters its value may start in, the same reach the keep rule uses. Review-Finding: p2/specialist-batched#1 reader=security Review-Finding: p2/red-team#1 reader=red-team Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
Flaky rerun (one, same head 95a30b6): |
…its file whole (GST-3273) The plan no longer drops cut data files from the code-reference scan or the kept-file argument bound, so a receipt written without the gate scan content set builds the same selection. A file whose hunk still tags once its one-line tagged lines are taken out stays whole. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…273) The gate scan check now runs the hunk-level detectors (removed test declarations, an empty catch across lines) on every line of each listed hunk before anything is taken out, and sends the file whole if either fires; an unreadable scan record cuts nothing. Excerpt files are named excerpt-<sha>.md now that they hold gate-tagged data too. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
|
Closing: superseded by a narrower design. The new PR cuts only data files that pass a strict allowlist (data extensions, no gate-floor path, kept only for the gate tag, every tag a single-line tag) and keeps everything else whole. It carries over this PR's tests and the REVIEW_DIFF_TOO_LARGE largest-files fix. A link follows when it opens. |
|
Superseded by #4574, which rebuilds this change on current main as a strict allowlist: only data extensions, only off test/CI/config/snapshot paths, and only single-line tags. |
Results PRs that commit captured agent sessions can now be reviewed: when the gate scan tags a data file only because a session quotes a lint pragma, an env check or a
--no-verifypush, readers get those lines with context instead of the whole file.Why: harness-evals#494 stopped at the 2 MB review limit because 25 such transcripts (11.4 MB) went to readers whole, and the only fix printed was "split the PR".
Nothing to do: code files, files tagged by their path and files whose tag spans lines still go whole, and the gate review still runs.
What changed
gstack-review-planreads which tagged files have every tag on a single added line outside the gate floor (gateScanPaths), andlib/review-exclude.tsexcerpts a keptgate-taggedfile when it is row data, results or preregistration JSON, a.logor declared data, kept for no other reason, not renamed and not named by code. Its keep reason, the record'sgate_taggedlist and the review class are unchanged.lib/review-secret-excerpt.ts) adds every linelineTags(new inlib/gate-diff/tags.ts, the floor-free half oftagHunk) tags, under its own "Gate-tagged data excerpts" heading that names the tags; secret-line files render byte for byte as before. A file with no tagged line found, or a long tagged line with no span to show, goes whole.REVIEW_DIFF_TOO_LARGEgains afiles=field and its "split the PR" fix names the largest files.Tests
test/review-gate-excerpt.test.ts, written first and red on main bd04289 (REVIEW_DIFF_TOO_LARGEat 3,150,647 bytes): twelve synthetic 230 KB sessions with three tagged lines each now fit, every tagged line reaches the excerpt, and a.tsfile with the same pragma, a path-tagged snapshot and a log whose tag spans two lines stay whole. A second case checks the over-limit error names its largest files; a unit case coversgateScanPaths. All synthetic data.Agent notes
Lane GSTA-667 for GStack Minder (GST-3273), from HARN-1 / HARN-98. /ship receipt follows on this PR.