Repository navigation
Hash manifests no longer keep excluded results files in review, and the data-file scan cap can be raised (HARN-64) - #4643
Merged
Conversation
…eview, and the consumer-scan cap can be raised (HARN-64) The exclusion's name scan used git grep -o with every candidate path, which ran past its 120 s bound on harness-evals #538 (2,140 paths in one pins.sha256), so every file stayed in review. It now lists hit files with git grep -l and reads each one, and a file whose lines are all digests and paths names nothing. Those manifest lines also no longer set money, security, data or eval risk; secret lines still count. GSTACK_REVIEW_CONSUMER_SCAN_CAP raises the 2,000-file consumer-scan cap, and a tripped cap prints a CONSUMER_SCAN line naming both fixes. Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…ash-manifests Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com> # Conflicts: # bin/gstack-review-plan
|
😎 This pull request was merged. |
Planning 460 recent main commits across gstack, harness-evals and gstack-evals with the old and new rules gives the same class and risk classes on all 460 (replay HARN-64). Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
4 tasks done
… a finished review is checked again (HARN-64) Review-Finding: p1/red-team#1 reader=red-team Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
…p output (HARN-64) Review-Finding: p1/outside-voice#1 reader=outside-voice Co-authored-by: capy-ai[bot] <230910855+capy-ai[bot]@users.noreply.github.com>
Merged
3 tasks done
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.
A results PR whose
pins.sha256lists its data files now getsreview_exclude_pathsinstead of a refused 13.3 MB review, and hash-manifest lines no longer read as money, auth or data for review depth.Why: harness-evals #538 kept all 2,140 excluded result files in review because the name scan timed out on a 2,140-path manifest and would have counted that manifest as code anyway.
Nothing to do;
GSTACK_REVIEW_CONSUMER_SCAN_CAPis a new optional override.What changed
lib/review-exclude.ts):git grep -F -owith thousands of strings grew with the string count (2,140 paths: 176 s, past git's 120 s bound, so every candidate was kept asconsumer-scan-unavailable). It now lists hit files withgit grep -F -l --no-color, reads them (worktree files directly, blobs through onegit cat-file --batch), and checks each path with a substring test. A file whose every non-blank line is a hex digest and a path (assha256sumwrites) names nothing; any other line makes it a consumer again.lib/review-risk.ts): the same manifest rule skips the money, security, data and eval line checks. Path checks still run, and the secret line check still reads manifest lines. The manifest path may only hold letters, digits and. / _ - + @ ~, so no assignment, call or quoted string fits.lib/review-collect.ts,bin/gstack-review-plan):GSTACK_REVIEW_CONSUMER_SCAN_CAPraises the 2,000-file cap through the same bounded parser as the other review-plan limits. A tripped cap prints aCONSUMER_SCAN: skipped:line that names both remedies, raising the cap or moving the data into its own PR. The cap is read from the environment, so a raised cap must also be set where a finished review is checked again (docs/review-policy.md).Why
harness-evals #538 at 2072d985 (303,971 files): the plan took 163 s before and 48 s after, with
active excluded 2140 kept 0. Risk classes went from money, security, data and eval to security, data and eval, so the depth stays full.Blast radius
Only the review-depth and review-exclusion planning that /ship and the merge checks read. A manifest with any non-digest line is read exactly as before. With
color.grep=alwaysset in git config, the scan still reads plain file names (new test).Tests
color.grep=alwayscase failed before the--no-colorfix and passes after.Agent notes
Agent notes
Lane GSTA-757 for HARN-64. The cause was the exclusion's name scan, not CONSUMER_SCAN_CAP.
Documentation audit (Step 14.5):
Status: current. The docs already match the change, and no edits were needed.
Scope: the committed range from dd61103 to 4277b6a (11 files, no staged, unstaged or new files): the consumer-scan cap override in lib/review-collect.ts and bin/gstack-review-plan, the
git grep -lname scan and hash-manifest skip in lib/review-exclude.ts, theHASH_MANIFEST_LINErisk exemption in lib/review-risk.ts, plus tests and fixtures. I inventoried the docs tree and grepped every doc for consumer-scan, cap and manifest references.Documentation health:
GSTACK_REVIEW_CONSUMER_SCAN_CAP, theCONSUMER_SCAN: skipped:line and the warning that carry and the merge queue need the same cap)git grep -F -lscan)Coverage debt: the risk-class table in docs/review-policy.md doesn't say that a hash or pin manifest's lines skip the money, security and data classes but still count for secret; ship-policy.md covers it.
GSTACK_REVIEW_CONSUMER_SCAN_CAPhas reference coverage only, with no troubleshooting entry for theCONSUMER_SCAN:line. No diagram drift.Pre-Landing Review: 2 issues — 1 auto-fixed, 1 asked (0 fixed, 1 skipped), 0 deferred, 0 noted. Step 11: second-model review found 1 blocker (
git grep -llost--no-color), fixed in 4277b6a under the scoped fix-check below; native adversarial: 3 low notes.REVIEW_LOOP: passes=1 blocking_found=1 deferred=0 noted=4 fixed=2 scope=frozen fix_checks=2 dispatches=4
Review-loop exception: accepted by Captain GStack Minder (GSTA-36) 2026-11-22 via GSTA-757 relay to the /ship subagent; approval a-8603906745b2: one scoped fix-check for the second-model blocker (git grep -l lost --no-color) after round 2 (fix-check at 4277b6a, 0 findings)
Gate edits: none detected (4 listed, 1 read; patterns: RH-1,RH-3,RH-4,RH-12,RH-13,RH-14,RH-15,RH-16; unlisted idioms: none)
Review notes (below the merge floor, not fixed):
QUEUE_RECEIPT_DEPTH_RAISED, notRECEIPT_CARRY_REFUSED.CONSUMER_SCAN:could name the cap when the scan failed (a reader says the plan exits first on a scan error; untraced).includesloop has no deadline of its own.sha256sum -clets the files it pins leave the review diffs (intended for results receipts).Issue links: harness-evals #538 is in another repository, so no gstack Refs line is written.
Approved: yes (record r-cc72dcf257b1). The full approval record stays private.
Plan: exempt: bug fix HARN-64 under the GSTA-36 brief
Plan check: exempt bug fix