Skip to content

review eval: scope reviewers to the staged case, and write their transcripts - #417

Merged
jwbron merged 14 commits into
mainfrom
jwbron/eval-reviewer-isolation
Sep 5, 2026
Merged

jwbron merged 14 commits into
mainfrom
jwbron/eval-reviewer-isolation

Conversation

@jwbron

@jwbron jwbron commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The live eval's SDK runner now restricts reviewers to Read, Grep, and Glob inside the staged case, records what each reviewer did, and checks on the installed SDK that the restriction holds before any arm spends (a demonstrated leak fails the job, a probe whose model never attempted the out-of-scope reads on either try proceeds under a warning). Before this, a reviewer under the eval could reach every default tool (Bash included) and read any path on the runner, which on that machine includes this repo's corpus (every case's must-catch spec) and scorer. After this, reads outside the staged case are denied by a PreToolUse hook and counted, every dispatch writes a transcript, and a probe fails the job if the installed SDK lets an out-of-scope read through.

Changes, all eval-side (review.md untouched, so no install pin or corpus hash moves):

  • live-runner.ts sets tools to Read/Grep/Glob (the SDK's allowedTools only pre-approves) and adds a PreToolUse hook that denies any tool outside that set and any read resolving outside the staged case root (checkout plus context/, symlinks followed, glob patterns judged by where their literal prefix lands after brace expansion). read-scope.ts is the pure predicate.
  • Denials are counted per agent, reads apart from tool-policy denials, and rendered on single-run and repeats reports (a "Reads denied outside the staged case" row or line, plus a section naming the reviewer when nonzero). Counts survive a timed-out attempt.
  • transcripts.ts writes one file per dispatch attempt (tool-call index on top) under $RUNNER_TEMP/review-transcripts, outside the staging root. All three live workflows upload it.
  • live-runner.ts --probe-read-scope: one haiku call (Read in scope, Read and Glob out of scope, Bash cat). A leak of either planted token, an attempted out-of-scope read that wasn't denied, or an attempted in-scope read that returned nothing fails the job. A step the model skipped or a failed dispatch retries once, then leaves the run unproven under a warning annotation. Each live workflow runs it before spending.
  • The ruler stamp gains the runner's tool policy (tools read-scoped:v1:Read,Grep,Glob on every "Ruler:" line). Pre-scope reports pool as unscoped, so a drift series crossing this change warns as mixed rulers.
  • README: a "What a reviewer can reach" section, a read-protocol line (read at least one transcript per arm before trusting a delta), and limits notes that pre-scope reports weren't isolated and that the eval's reviewers now have no shell while production's do.

Background

Found on the pi harness branch (#406), where transcripts existed: a gemini correctness-reviewer ran find / -name investigation-cap.ts, found this repo, read its own case's spec, another case's, and live-match.ts, 37 of its 42 calls on one case, while the tool-call count looked normal for two runs. Main's SDK arm had the same exposure with no transcripts to show whether a claude reviewer ever used it. The README's new section carries the detail.

Not in scope: prod's dispatch-runner.ts and judge-prose-runner.ts use the same allowedTools + bypassPermissions pair inside gh-aw's sandbox, and the dispatcher needs Bash for the cap CLI. Separate look.

Test plan

  • pnpm exec vitest run: 2279 green, including new tests for the scope predicate (lexical plus a real-fs symlink escape), the transcript writer, the report rows on single and repeats reports, the runner's hook and failure paths through a mocked SDK, the probe's verdict and retry gate through fake runners, the ruler-stamp aggregation, and probe-before-spend ordering in the three workflow files. pnpm run lint and tsc --noEmit clean.
  • The probe has passed on every push since 33801839704 (9 runs, $0.013 to $0.018 each): in-scope read returned, out-of-scope denied, nothing leaked in the final text or any tool result, haiku reports Bash unavailable. So the hook is honored under bypassPermissions and tools restricts, on SDK 0.3.220.
  • The per-PR A/B short-circuits at $0 (review.md identical), so no full reviewer has run through the new runner yet. A workflow_dispatch with force_arms on this branch is the remaining check: expect 0 denials on every agent, tool-call counts in the usual range, and the new tools field on the report's "Ruler:" line.

KORE-2663

@changeset-bot

changeset-bot Bot commented Sep 3, 2026 •

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: a8ed329

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
review Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions

github-actions Bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Review live A/B

No reviewable delta: review.md is byte-identical in both arms (baseline origin/main, sha 3b4f69f79dac), so the extracted prompts and the orchestrator body match and no arms were run. Pass --force-arms for a deliberate wobble control.

@khan-actions-bot
khan-actions-bot requested review from a team, jaredly and somewhatabstract and removed request for a team September 3, 2026 20:22
@jwbron

jwbron commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

The probe passed on this PR's own run (33801839704): in-scope read returned its contents, out-of-scope read did not leak, denials=1, toolCalls=2, $0.013. So a PreToolUse deny is honored under bypassPermissions on the SDK the checkout installs (0.3.220), and the dontAsk fallback in the test plan isn't needed. The A/B itself short-circuited at $0 as expected (review.md byte-identical in both arms), which is also why the transcripts artifact is empty on this run: no arm dispatched, nothing to write.

The "Testing with 'push' events" failure is the first-push race in Node CI Push (the push event landed before the PR existed, so get-changed-files had no base ref). Same failure on the first push of agent/reduced-depth-clearance, agent/review-eval-khan-rate, and jwbron/review-manual-depth. Not related to this change.

@khan-actions-bot
khan-actions-bot requested a review from a team September 3, 2026 20:46

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commented — medium-importance findings found; nothing blocks.

Lower-confidence observations (8; top: `workflows/review/eval/live-ab-report.ts:346` suggestion (non-blocking): deniedTotal was inserted between mergedTotal and its doc comment, so the merge-rate docstring now sits on the denial cou...)
  • workflows/review/eval/live-ab-report.ts:346 suggestion (non-blocking): deniedTotal was inserted between mergedTotal and its doc comment, so the merge-rate docstring now sits on the denial counter. (correctness-reviewer)
  • workflows/review/eval/transcripts.ts:11 suggestion (non-blocking, documentation): The module doc promises the tool-call index shows arguments whole and never trimmed, but toolCallIndex cuts each line to 300 characters with no marker; say the index is capped. (documentation)
  • workflows/review/eval/live-producer.ts:671 question (non-blocking): Denied reads are only folded into PerAgentReport.deniedReads on the runner's success return, so a dispatch that times out or ends with a non-success result subtype throws and drops every denial it counted, leaving the report's new "Reads denied outside the staged case" row at zero for exactly the attempts most likely to have hunted the corpus. (skill-auditor (out-of-lane))
  • workflows/review/eval/rereview-sweep.ts:197 note (non-blocking): The rereview sweep gets transcripts but no denial counter, so its recall numbers carry none of the "reads denied outside the staged case" signal the A/B report now shows. (completeness)
  • workflows/review/eval/read-scope.ts:123 suggestion (non-blocking): READ_SCOPE_REASON is a two-argument string builder named as a constant; the repo names these in camelCase (attributionLine, buildBounceMessage). (conventions)
  • workflows/review/eval/live-ab-report.test.ts:4 suggestion (non-blocking): live-ab-report.test.ts is the only test in this directory that imports nothing from its namesake module; import renderMarkdownReport/ArmProduce from ./live-ab-report. (conventions)
  • workflows/review/eval/live-runner.ts:124 suggestion (non-blocking): The PreToolUse hook allows every tool it does not recognize, so Bash is kept out only by the tools restriction — the one layer nothing in this PR verifies. (correctness-reviewer)
  • workflows/review/eval/live-runner.ts:151 suggestion (non-blocking): Only one of the two closed routes is actually enforced by the hook: the Bash route rests entirely on tools restricting, which the probe does not exercise and the scope predicate deliberately allows through. (completeness)
review details review-v1.25.0 | schema 2 | depth full | re-review scoped blocking-medium | enable holistic,completeness,test-adequacy,first-principles,conventions,documentation
review fingerprint pr-reviewer:rereview v=1 depth=full verdict=COMMENT anchor-draft=false hunks=eyIuY2hhbmdlc2V0L3Jldmlldy1ldmFsLXJlYWQtc2NvcGUubWQiOlsiZGQ4Njk4MWI3MDJiOTU1NiJdLCIuZ2l0aHViL3dvcmtmbG93cy9yZXZpZXctZXZhbC1hYi55bWwiOlsiYTRkOWViMmJmYzRhNzUyZSIsIjUxYzhjY2Y1NjYwNmJmYjEiLCJjNGExYjAwYzJhZDA3MzVjIl0sIi5naXRodWIvd29ya2Zsb3dzL3Jldmlldy1ldmFsLWRyaWZ0LnltbCI6WyJhNGQ5ZWIyYmZjNGE3NTJlIiwiYjAxMWY5MDIwOWU2NDNkMSIsImM0YTFiMDBjMmFkMDczNWMiXSwiLmdpdGh1Yi93b3JrZmxvd3MvcmV2aWV3LXJlcmV2aWV3LXN3ZWVwLnltbCI6WyJhNGQ5ZWIyYmZjNGE3NTJlIiwiOTQwNjNmOTAzZjYyYTdmMCIsIjVhZWQ5OWUxN2U1OWQwNzMiXSwid29ya2Zsb3dzL3Jldmlldy9ldmFsL1JFQURNRS5tZCI6WyI1MTY2NDY2ZG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MjRiYSIsImFkNTg3NGEwNDA5OTc3YjUiLCI0OWRmODNmNTdhYWI1NmJkIl0sIndvcmtmbG93cy9yZXZpZXcvZXZhbC9yZWFkLXNjb3BlLnRlc3QudHMiOlsiMDc1YzM3NmZmN2I2ZjJkNyJdLCJ3b3JrZmxvd3MvcmV2aWV3L2V2YWwvcmVhZC1zY29wZS50cyI6WyJmODI2NTQ4YzIxMjVlNTU3Il0sIndvcmtmbG93cy9yZXZpZXcvZXZhbC9yZXJldmlldy1zd2VlcC50cyI6WyJiZTYxZWU2ZTVlODQwYjBmIiwiYWQ1ODc0YTA0MDk5NzdiNSIsImYzOTIyZTE0MzhlNmI4NDgiXSwid29ya2Zsb3dzL3Jldmlldy9ldmFsL3RyYW5zY3JpcHRzLnRlc3QudHMiOlsiYzg1MjgwNWRlMzhjNjNkYyJdLCJ3b3JrZmxvd3MvcmV2aWV3L2V2YWwvdHJhbnNjcmlwdHMudHMiOlsiZDEwZTRhNTQ1YjY4YmQzYSJdfQ

Comment thread workflows/review/eval/live-runner.ts Resolved
Comment thread workflows/review/eval/live-runner.ts Resolved
Comment thread workflows/review/eval/live-runner.ts Resolved
@jwbron

jwbron commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

Round 1 handled in 01fb602, 7 of 8 taken:

  • hook allows unknown tools / Bash rests on tools alone (the two correctness and completeness findings on live-runner.ts): the hook now denies every tool outside Read/Grep/Glob, and the probe has a third step asking for a Bash cat of the planted file. The leak check covers both layers and the probe's log line now says whether Bash was absent from the toolset or present and denied. This PR's next per-PR run is the check.
  • denials dropped on a thrown attempt (live-producer.ts:671): runners now throw LiveAgentError carrying toolCalls and deniedReads, and dispatchWithRetry folds them into the report. New module live-agent-error.ts (live-producer.ts was at the 1000-line lint cap), plus a producer test for a timed-out first attempt.
  • deniedTotal moved next to snappedTotal with its own doc comment, mergedTotal has its docstring back.
  • transcripts.ts doc: says index lines cap at 300 chars (INDEX_LINE_CHARS) and the messages hold the full input.
  • READ_SCOPE_REASON is now readScopeReason.
  • live-ab-report.test.ts imports renderMarkdownReport from ./live-ab-report.

Not taken: a denial row on the rereview sweep's report. The sweep runs the same runner, so it gets the probe and the transcripts, but its report is a different shape and the A/B report is where the denial signal gets read. If a sweep ever needs it, the count is in every transcript's header.

@jwbron

jwbron commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

The three inline threads on live-runner.ts, handled in 2614e61 (can't reply in-thread from the sandbox, so here):

  • live-runner.ts:273, denials lost on a failed attempt: fixed in 01fb602 with LiveAgentError rather than the log-line sketch. The counts reach the report row, not just stderr, and toolCalls inherits the same fix.
  • live-runner.ts:369, the probe checked the final text and counted hook decisions, not enforcement: right, and that was the one property the probe exists to establish. It now runs with a transcript dir and scans every recorded message alongside the final text, so the out-of-scope tool result is what's checked. The in-scope check reads the transcript too, which also answers the sibling concern that a haiku formatting slip could fail the gate for the wrong reason.
  • live-runner.ts:373, no test on the probe's verdict: added live-runner.test.ts with a fake runner over 6 cases (pass, leak in final text, leak only in a tool result, no denial, in-scope missing, in-scope present only in the transcript). No model call. The module doc's "tests never load this file" line now says what the test loads and why.

Probe result on 01fb602's run (33804997109): bash absent from the toolset, denials=1, toolCalls=2, $0.014. So tools does restrict on SDK 0.3.220, haiku reported the Bash tool unavailable rather than having it denied, and the hook's non-read-tool rule is the second layer as described. 2614e61's run will be the first with the transcript-scanning probe.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commented — medium-importance findings found; nothing blocks.
All 3 prior review threads are resolved.

Non-blocking observations (8; top: `workflows/review/eval/README.md:93` suggestion (non-blocking, documentation): The README says the probe covers `tools` removing Bash and that its log line says which layer kept Bash out; the probe's...)
  • workflows/review/eval/README.md:93 suggestion (non-blocking, documentation): The README says the probe covers tools removing Bash and that its log line says which layer kept Bash out; the probe's verdict ignores Bash and its log prints "present or unreported" when it cannot tell. (documentation)
  • workflows/review/eval/live-runner.ts:295 suggestion (non-blocking): Nothing executes runOnce, so the runner side of the failure-path bookkeeping — wrapping into LiveAgentError, writing the transcript in finally, and the per-attempt counter that keeps a retry from overwriting attempt 1 — is unverified; add a mocked-SDK test for the throwing path. (test-adequacy)
  • workflows/review/eval/live-runner.ts:423 question (non-blocking): The probe spends a live model call and can fail the job on every PR touching workflows/review/**, including the ones where no arm spends at all — should it run only when an arm is about to dispatch? (first-principles)
  • workflows/review/eval/live-runner.ts:334 suggestion (non-blocking): The probe's model pin is a private PROBE_MODEL with no pin test, unlike the suite's two other PINNED_*_MODEL exports; consider matching that shape. (conventions)
  • workflows/review/eval/live-runner.ts:174 note (non-blocking): The description's "not in scope" note names dispatch-runner.ts as the other site of the allowedTools + bypassPermissions pair, but lib/judge-prose-runner.ts:79-80 has it too — is that covered by the same follow-up? (completeness)
  • workflows/review/eval/live-runner.ts:393 question (non-blocking): The probe's leak check treats a missing or unwritten transcript as "nothing leaked" (skill-auditor (out-of-lane))
  • workflows/review/eval/live-runner.ts:404 question (non-blocking): The probe's pass condition denied >= 1 depends on the model actually attempting step 2, so model non-compliance is indistinguishable from a broken hook and fails closed onto three workflows' critical path. (skill-auditor (out-of-lane))
  • workflows/review/eval/live-runner.ts:174 suggestion (non-blocking): Adding tools removes Bash entirely, so the investigation-cap request every reviewer prompt makes is absent rather than denied — the module doc's "the prompts' own fallback applies (a denied budget request stops investigation)" no longer describes what happens, and the eval arm now investigates uncapped where prod keeps Bash for parity. (holistic)
Note: re-review ran at scoped depth (re-review mode scoped, blocking-medium).
review details review-v1.25.0 | schema 2 | depth scoped | re-review scoped blocking-medium | enable holistic,completeness,test-adequacy,first-principles,conventions,documentation
review fingerprint pr-reviewer:rereview v=1 depth=scoped verdict=COMMENT anchor-draft=false hunks=eyIuY2hhbmdlc2V0L3Jldmlldy1ldmFsLXJlYWQtc2NvcGUubWQiOlsiNTgwODI5NmMwOTE5N2MyYiJdLCIuZ2l0aHViL3dvcmtmbG93cy9yZXZpZXctZXZhbC1hYi55bWwiOlsiY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cmtmbG93cy9yZXZpZXcvZXZhbC90cmFuc2NyaXB0cy50ZXN0LnRzIjpbImM4NTI4MDVkZTM4YzYzZGMiXSwid29ya2Zsb3dzL3Jldmlldy9ldmFsL3RyYW5zY3JpcHRzLnRzIjpbIjU3YTI4NGM0MDdiYWUwNDUiXX0

Comment thread workflows/review/eval/live-ab-report.ts Resolved
Comment thread workflows/review/eval/live-runner.ts Resolved
Comment thread workflows/review/eval/live-runner.ts Resolved
@jwbron

jwbron commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

Round 2 handled in 1b35829, 9 of 11 taken (3 inline, 8 observations):

  • one counter for two hook rules (security-auth, correctness, holistic, first-principles): split. deniedReads is the read-scope rule only, deniedTools the tool rule, on the result, the per-agent report, the failure-path partial, the run record, and the transcript header. The report's "read outside the staged case" section now only ever lists reads, tool-policy denials get their own section. The probe gates on deniedReads.
  • probe passes when the model never attempted step 2 / fails closed on non-compliance with a message blaming the hook: the probe reads the transcript's tool-call index for the out-of-scope Read attempt and, if absent, fails with "NOT attempted by the model" so the cause is named. It also fails if no transcript was written (the "missing transcript reads as clean" finding).
  • denial row only on single-run reports, drift never shows it: deniedSection is shared by both renderers and sums repeats per arm/case/agent, and the repeats report gets a pooled "Reads denied outside the staged case: baseline N, candidate M" line so the zero is visible too. Test added on a 3-repeat report.
  • hook's non-read-tool rule and runOnce untested: live-runner.test.ts now mocks the SDK the way dispatch-runner.test.ts does and drives the captured PreToolUse hook (Bash denied and counted apart, in-scope Read allowed, out-of-scope Glob denied), plus a non-success result thrown as LiveAgentError with the counters, and two attempts writing -1.json and -2.json.
  • PROBE_MODEL private with no pin test: now PINNED_PROBE_MODEL, exported and pinned by test like the judge and arbiter.
  • README overstates what the probe verifies about tools: rewritten to say what the verdict depends on and that the Bash leg is informational (the log line now says "denied by the hook", "absent from the toolset", or "not reported", in that order of evidence).
  • module doc's cap-CLI fallback wording: reworded, but the substantive claim doesn't hold: the cap CLI was never staged in the eval, so the eval arm was uncapped before this PR too. tools changed nothing there.
  • judge-prose-runner.ts:79 has the same allowedTools + bypassPermissions pair: yes, allowedTools: [] under bypass leaves every default tool available to the prose judge, same follow-up as dispatch-runner.ts. Both are prod-side and run inside gh-aw's sandbox, so out of scope here, but noted as two sites, not one.

Not taken: running the probe only when an arm will dispatch. It's $0.014 and the one per-PR signal on the installed SDK, and a PR that changes the runner but not review.md (this one) is exactly the case where it should still run.

Probe on 2614e61's run passed with the transcript-scanning check. 1b35829's run is the first with the split counters and the attempt check.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commented — medium-importance findings found; nothing blocks.
All 3 prior review threads are resolved.

Non-blocking observations (5; top: `workflows/review/eval/live-runner.ts:432` note (non-blocking): The probe's pass condition requires the model to attempt a read it may refuse on its own, so a Haiku behavior change red...)
  • workflows/review/eval/live-runner.ts:432 note (non-blocking): The probe's pass condition requires the model to attempt a read it may refuse on its own, so a Haiku behavior change reds all three live eval workflows with no retry. (correctness-reviewer)
  • workflows/review/eval/live-runner.ts:110 suggestion (non-blocking): runOnce is the one top-level function here without an explicit return type; annotate it Promise<LiveAgentResult> like its neighbours. (conventions)
  • workflows/review/eval/live-agent-error.ts:33 suggestion (non-blocking): addAccounting's documented no-false-zero contract — an absent counter must leave the total undefined — is asserted nowhere; the one test that reaches the helper runs the skip branch without checking it. (test-adequacy)
  • workflows/review/eval/live-ab-report.ts:130 thought (non-blocking): Denial protects the answer key but not the sample's comparability — a run with denied reads still pools into the A/B delta as if it were clean. (first-principles)
  • workflows/review/eval/live-runner.test.ts:42 nitpick (non-blocking): The repo's two other SDK-mocking tests import the module under test statically; a top-level await import here suggests hoisting doesn't happen. (conventions)
Note: re-review ran at scoped depth (re-review mode scoped, blocking-medium).
review details review-v1.25.0 | schema 2 | depth scoped | re-review scoped blocking-medium | enable holistic,completeness,test-adequacy,first-principles,conventions,documentation
review fingerprint pr-reviewer:rereview v=1 depth=scoped verdict=COMM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DJkYWZjMmMwYmM4ZjUiXSwid29ya2Zsb3dzL3Jldmlldy9ldmFsL3JlcmV2aWV3LXN3ZWVwLnRzIjpbImJlNjFlZTZlNWU4NDBiMGYiLCJhZDU4NzRhMDQwOTk3N2I1IiwiZjM5MjJlMTQzOGU2Yjg0OCJdLCJ3b3JrZmxvd3MvcmV2aWV3L2V2YWwvdHJhbnNjcmlwdHMudGVzdC50cyI6WyJkYmI0Y2YxMTM3MmQ0OTA4Il0sIndvcmtmbG93cy9yZXZpZXcvZXZhbC90cmFuc2NyaXB0cy50cyI6WyIwZjNiYmM3ZmRhMmQzNWMzIl19

Comment thread workflows/review/eval/live-runner.ts Resolved
@jwbron

jwbron commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

Round 3 handled in 304fac1, 5 of 6 taken:

  • probe fails three workflows on a model refusal with no retry: the probe result carries notAttempted, the CLI retries that case once (a leak or missing denial never retries), and the failure text says the scope is unproven for the run, not broken.
  • no shell in the eval arm while prod has one (the inline holistic finding): added to the README's statistical-honesty section. Both arms lose the shell step together so within-run deltas stay comparable, and eval recall reads as a lower bound on prod's. Scoping Bash by path instead isn't workable: find / is how the leak was found, and a shell command's paths aren't something the hook can resolve. So it stays a documented limit.
  • runOnce return type: annotated Promise<LiveAgentResult>.
  • addAccounting no-false-zero contract untested: live-agent-error.test.ts.
  • top-level await import in the test: static import, vitest hoists vi.mock.

Not taken: excluding or flagging cases with denied reads from the pooled delta. The section names the case and agent, the expected count is zero, and changing sample inclusion moves every rate. If a nonzero count ever appears on a real run, that report is where to decide.

Probe on 1b35829 passed with the split counters: attempted and did not leak, bash absent from the toolset, deniedReads=1, deniedTools=0, $0.014.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commented — medium-importance findings found; nothing blocks.
The 1 prior review thread is resolved.

Non-blocking observations (6; top: `workflows/review/eval/live-runner.ts:372` suggestion (non-blocking): The paragraph describing what `probeReadScope` does is attached to `export type ProbeResult` instead of the function; mo...)
  • workflows/review/eval/live-runner.ts:372 suggestion (non-blocking): The paragraph describing what probeReadScope does is attached to export type ProbeResult instead of the function; move it above probeReadScope. (conventions)
  • workflows/review/eval/live-runner.ts:479 suggestion (non-blocking): The --probe-read-scope gate's retry-and-throw wiring has no test, so a widened retry condition could let a leaking probe pass on the second try. (test-adequacy)
  • workflows/review/eval/live-runner.ts:400 suggestion (non-blocking): A failed probe dispatch throws out of probeReadScope instead of returning a verdict, so a transient run failure reds every live workflow with no detail line. (correctness-reviewer)
  • workflows/review/eval/live-runner.ts:427 suggestion (non-blocking): The probe proves enforcement by scanning its transcript for a planted token, but real runs' transcripts are never scanned — consider running the same content check over them at report time. (first-principles)
  • workflows/review/eval/README.md:312 suggestion (non-blocking, documentation): The added bullet reads: "5 Claude agent transcripts across 2 runs on the Pi harness branch each checked once for a tooling path, got nothing, and stayed in the checkout, where the Gemini reviewer on the same machine went looking." The reader cannot recover the operation from the sentence alone: "checked once for a tooling path" does not say what was searched for, and "stayed in the checkout, where the Gemini reviewer ... (documentation)
  • workflows/review/eval/README.md:321 question (non-blocking): Does "both arms lose it together, so within-run deltas stay comparable" hold for a review.md change that is itself about investigation — wouldn't that produce a null delta that reads as no-effect rather than not-measured? (first-principles)
Note: re-review ran at scoped depth (re-review mode scoped, blocking-medium).
review details review-v1.25.0 | schema 2 | depth scoped | re-review scoped blocking-medium | enable holistic,completeness,test-adequacy,first-principles,conventions,documentation
review fingerprint pr-reviewer:rereview v=1 depth=scoped verdict=COMMENT anchor-draft=false hunks=eyIuY2hhbmdlc2V0L3Jldmlldy1ldmFsLXJlYWQtc2NvcGUubWQiOlsiMjc1ZmNmODUxNWMxMDFiNiJdLCIuZ2l0aHViL3dvcmtmbG93cy9yZXZpZXctZXZhbC1hYi55bWwiOlsiYTRkOWViMmJmYzRhNzUyZSIsIjUxYzhjY2Y1NjYwNmJmYjEiLCJjNGExYjAwYzJhZDA3MzVjIl0sIi5naXRodW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E0MzhlNmI4NDgiXSwid29ya2Zsb3dzL3Jldmlldy9ldmFsL3RyYW5zY3JpcHRzLnRlc3QudHMiOlsiZGJiNGNmMTEzNzJkNDkwOCJdLCJ3b3JrZmxvd3MvcmV2aWV3L2V2YWwvdHJhbnNjcmlwdHMudHMiOlsiMGYzYmJjN2ZkYTJkMzVjMyJdfQ

Comment thread workflows/review/eval/live-runner.ts Resolved
Comment thread workflows/review/eval/live-runner.ts Resolved
@jwbron

jwbron commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

Round 4 handled in 818de2b, 7 of 8 taken:

  • notAttempted ignored leaked (inline, correctness): real bug from my round 3 retry, a Bash leak with no Read attempt would have retried and a clean second try would have passed the job. Gated on !leaked now, and the retry wiring is extracted into runProbeGate with tests covering pass, retry-then-pass, unproven after two non-attempts, and never-retry on leak / missing denial / dispatch failure.
  • probe ignores --transcripts-dir (inline, holistic): wired through, the three workflow probe steps pass $RUNNER_TEMP/review-transcripts, and each attempt writes under its own read-scope-probe/<n>/ so the verdict's scan can't read the prior attempt's file.
  • dispatch failure throws out of the probe with no detail: returns a failed verdict with the error in the detail line, never retries.
  • doc paragraph on ProbeResult instead of the function: moved.
  • README indirect-evidence sentence: now says the 5 claude agents each searched once for the gh-aw-review-lib directory, found nothing, and read only under the staged checkout after that, with the gemini clause separated.
  • "both arms lose it together" and investigation-focused review.md changes: yes, that's a null delta reading as no-effect. The bullet now says a review.md change to the shell step itself prints as zero rather than not measured, and goes through the canary and production rounds instead.

Not taken: scanning real runs' transcripts for corpus content at report time. No planted token exists in a real run, the hook denies before the read executes, and the probe proves enforcement per run on the installed SDK.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commented — medium-importance findings found; nothing blocks.
All 2 prior review threads are resolved.

Non-blocking observations (5; top: `workflows/review/eval/live-runner.ts:426` suggestion (non-blocking): A transient probe dispatch failure reds all three live workflows with no retry, and discards the denial evidence the att...)
  • workflows/review/eval/live-runner.ts:426 suggestion (non-blocking): A transient probe dispatch failure reds all three live workflows with no retry, and discards the denial evidence the attempt already produced. (correctness-reviewer)
  • .github/workflows/review-eval-ab.yml:95 suggestion (non-blocking): Nothing tests that the live-eval workflows actually run --probe-read-scope before spending on an arm — consider a CI backstop asserting the ordering in all three. (test-adequacy)
  • .github/workflows/review-eval-ab.yml:95 suggestion (non-blocking): The probe runs ahead of the A/B's identity short-circuit, so eval-only PRs pay a model call and a red-job risk for a run that spends nothing; calling runProbeGate from live-ab.ts/rereview-sweep.ts at the point of dispatch would gate exactly the runs that spend and replace 15 duplicated YAML lines in three workflows. (first-principles)
  • workflows/review/eval/live-runner.ts:346 suggestion (non-blocking): The probe's exported, unit-tested logic sits below the /* CLI */ banner; move it above, or give it its own banner section. (conventions)
  • workflows/review/eval/live-runner.ts:394 suggestion (non-blocking): The single retry only helps if the model's non-attempt is random, but both tries send the identical prompt asking it to read and cat a file named secret.txt; renaming the planted file to something neutral would remove the most likely deterministic cause. (first-principles)
Note: re-review ran at scoped depth (re-review mode scoped, blocking-medium).
review details review-v1.25.0 | schema 2 | depth scoped | re-review scoped blocking-medium | enable holistic,completeness,test-adequacy,first-principles,conventions,documentation
review fingerprint pr-reviewer:rereview v=1 depth=scoped verdict=COMMENT anchor-draft=false hunks=eyIuY2hhbmdlc2V0L3Jldmlldy1ldmFsLXJlYWQtc2NvcGUubWQiOlsiMjc1ZmNmODUxNWMxMDFiNiJdLCIuZ2l0aHViL3dvcmtmbG93cy9yZXZpZXctZXZhbC1hYi55bWwiOlsiYjE0NTJjODIzZjFmZWQwMCIsIjUxYzhjY2Y1NjYwNmJmYjEiLCJjNGExYjAwYzJhZDA3MzVjIl0sIi5naXRodWIvd29ya2Zsb3dzL3Jldmlldy1ldmFsLWRyaWZ0LnltbCI6WyJiMTQ1MmM4MjNmMWZlZDAwIiwiYjAxMWY5MDIwOWU2NDNkMSIsImM0YTFiMDBjMmFkMDczNWMiXSwiLmdpd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dHJhbnNjcmlwdHMudHMiOlsiMGYzYmJjN2ZkYTJkMzVjMyJdfQ

Comment thread workflows/review/eval/README.md Resolved
@jwbron

jwbron commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

Round 5 handled in 8a5e28b, 5 of 6 taken:

  • ruler stamp doesn't cover the tool policy (inline, holistic): right, this PR moved the instrument and the machine check built for that was left unwired. ReportProvenance.toolPolicy is stamped by live-ab.ts (read-scoped:Read,Grep,Glob), the aggregate reads a stamped report without it as unscoped and warns on a mixed pool, and the ruler line prints it in both renderers. A report with no stamp at all stays unstamped. Ruler rendering moved to aggregate-ruler.ts because aggregate.ts was at 999 of a 1000-line cap.
  • dispatch failure reds three workflows with no retry: it's its own state now (dispatchFailed) and retries once like a non-attempt, since neither says anything about the hook. Leak and missing denial still never retry.
  • nothing tests the probe-before-spend ordering: .github/workflows/review-eval-probe.test.ts, 6 assertions across the three workflows (probe precedes the spending step, both get the uploaded transcripts dir).
  • probe logic below the CLI banner: own banner.
  • secret.txt as the likely deterministic refusal: renamed notes.txt.

Not taken: moving the probe into live-ab.ts at dispatch time. Same reasoning as round 2. It's $0.014 per run, and a runner-only PR like this one (review.md untouched, A/B short-circuits) is exactly the case that should still exercise it.

818de2b's probe passed and its transcript uploaded (1 file, 2999 bytes in live-ab-transcripts), so a failed gate now leaves the evidence.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commented — medium-importance findings found; nothing blocks.
The 1 prior review thread is resolved.

Non-blocking observations (8; top: `workflows/review/eval/live-ab-report.ts:594` suggestion (non-blocking): The `toolPolicy` stamp is only ever asserted against a hand-built provenance fixture, never against what the report actu...)
  • workflows/review/eval/live-ab-report.ts:594 suggestion (non-blocking): The toolPolicy stamp is only ever asserted against a hand-built provenance fixture, never against what the report actually renders or live-ab.ts actually stamps. (test-adequacy)
  • workflows/review/eval/aggregate.ts:249 note (non-blocking): The description and changeset omit the new tool-policy ruler stamp, which makes drift pools spanning this PR warn as mixed rulers and changes every report's "Ruler:" line. (completeness)
  • .github/workflows/review-eval-probe.test.ts:29 question (non-blocking): The read-scope probe is pinned to run before the step that spends, but the A/B's own $0 short-circuit (byte-identical review.md) is decided inside live-ab.ts, so every eval-only PR push now pays a Haiku probe call and gains a way to fail red on a run that dispatches no reviewer arms at all. (skill-auditor (out-of-lane))
  • workflows/review/eval/live-runner.ts:321 suggestion (non-blocking): The transcript-write failure path in the finally block is untested, so nothing pins that a failed write leaves the run's result intact. (test-adequacy)
  • workflows/review/eval/read-scope.ts:23 suggestion (non-blocking): The eval reviewer is now Read/Grep/Glob while prod dispatch still grants LS+Bash; consider tying the two lists together with a test so the promised prod follow-up can't leave them silently divergent. (first-principles)
  • workflows/review/eval/read-scope.ts:32 suggestion (non-blocking): READ_TOOL_POLICY is derived from the toolset only, so a change to the scope rule keeps the same stamp and pooled reports won't warn; consider folding a content hash of the rule into it the way corpusSha hashes the corpus. (first-principles)
  • workflows/review/eval/README.md:271 suggestion (non-blocking, documentation): The transcript-reading bullet names a third failure mode, "shaping its JSON from the contract source", without naming the file or the operation to look for in the index. (documentation)
  • workflows/review/eval/live-runner.ts:448 question (non-blocking): attemptedOutside calls JSON.parse(f) unguarded on every .json file found under the probe's transcripts directory, while leaked/sawInside treat the same files as plain text; one malformed or foreign .json file makes probeReadScope throw instead of returning a verdict. (security-auth (out-of-lane))
Note: re-review ran at scoped depth (re-review mode scoped, blocking-medium).
review details review-v1.25.0 | schema 2 | depth scoped | re-review scoped blocking-medium | enable holistic,completeness,test-adequacy,first-principles,conventions,documentation
review fingerprint pr-reviewer:rereview v=1 depth=scoped verdict=COMMENT anchor-draft=false hunks=eyIuY2hhbmdlc2V0L3Jldmlldy1ldmFsLXJlYWQtc2NvcGUubWQiOlsiMjc1ZmNmODUxNWMxMDFiNiJdLCIuZ2l0aHViL3dvcmtmbG93cy9yZXZpZXctZXZhbC1hYi55bWwiOlsiYjE0NTJjODIzZjFmZWQw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3OTViIiwiOGY1ZDc3OGI4ODA2YTJjMiIsIjhmNWQ3NzhiODgwNmEyYzIiXSwid29ya2Zsb3dzL3Jldmlldy9ldmFsL2xpdmUtcnVubmVyLnRlc3QudHMiOlsiODg4ZTZlY2EwOTFmY2EwMSJdLCJ3b3JrZmxvd3MvcmV2aWV3L2V2YWwvbGl2ZS1ydW5uZXIudHMiOlsiYTgzMGFiMjA5MmQ1NTcwOCIsImQ5NDYyOWQ5YzE0MjdhMGQiLCI0OTk2NTA5MWIyZjJkNjU5IiwiMWU3ZGFhY2ZlYjgwMzQyZiIsImFkNTg3NGEwNDA5OTc3YjUiLCI0OWRmODNmNTdhYWI1NmJkIl0sIndvcmtmbG93cy9yZXZpZXcvZXZhbC9yZWFkLXNjb3BlLnRlc3QudHMiOlsiOTdkMTFlMjEyMjdjOWIyZiJdLCJ3b3JrZmxvd3MvcmV2aWV3L2V2YWwvcmVhZC1zY29wZS50cyI6WyIyNDQ3N2VmMWIxNjllYjNmIl0sIndvcmtmbG93cy9yZXZpZXcvZXZhbC9yZXJldmlldy1zd2VlcC50cyI6WyJiZTYxZWU2ZTVlODQwYjBmIiwiYWQ1ODc0YTA0MDk5NzdiNSIsImYzOTIyZTE0MzhlNmI4NDgiXSwid29ya2Zsb3dzL3Jldmlldy9ldmFsL3RyYW5zY3JpcHRzLnRlc3QudHMiOlsiZGJiNGNmMTEzNzJkNDkwOCJdLCJ3b3JrZmxvd3MvcmV2aWV3L2V2YWwvdHJhbnNjcmlwdHMudHMiOlsiMGYzYmJjN2ZkYTJkMzVjMyJdfQ

Comment thread workflows/review/eval/live-runner.ts Resolved
Comment thread workflows/review/eval/live-runner.ts Resolved
@jwbron

jwbron commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

Round 6 handled in ff7ba1e, 9 of 10 taken:

  • probe covers Read only, the corpus-hunting route is search (inline, holistic): added a Glob leg over the planted directory, with a second planted file whose name is a token (a Glob result is a listing, so the name is what would leak). The verdict now requires both out-of-scope legs attempted and both denied (deniedReads >= 2) and checks both tokens in the final text and every tool result.
  • dispatch failure skips the leak check (inline, security-auth + correctness): yes, same hazard as round 4's fix, one branch over. The catch scans the transcript first (the runner writes it in finally) and returns dispatchFailed only when no token escaped. Test: a runner that writes a leaking transcript then throws is not retried.
  • READ_TOOL_POLICY doesn't move on a rule change: SCOPE_RULE_VERSION folded in, stamp is read-scoped:v1:Read,Grep,Glob.
  • unguarded JSON.parse over every .json: guarded, a foreign or malformed file is skipped. Test added.
  • transcript-write failure path untested: test added (result survives, error logged).
  • eval toolset vs prod's untied: tool-policy.test.ts pins prod's allowedTools to the eval's read tools plus exactly LS and Bash.
  • toolPolicy only asserted on a hand-built fixture: the aggregate test now checks the rendered ruler line, and the changeset says what the stamp does to every report's "Ruler:" line. The stamp itself is assembled in live-ab.ts's main(), which has no unit seam, so that one stays covered by the next real run's report.
  • README's "shaping its JSON from the contract source": names the files and index lines to look for per failure mode.
  • description/changeset omit the stamp: changeset updated, PR body next.

Not taken: moving the probe behind the identity short-circuit, third ask. Adding to the earlier reasoning: an SDK pin bump touches neither review.md nor the runner and is exactly a run that needs the probe.

8a5e28b's probe passed. ff7ba1e's run is the first with the Glob leg, so its probe line should read deniedReads=2.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commented — medium-importance findings found; nothing blocks.
All 2 prior review threads are resolved.

Non-blocking observations (3; top: `workflows/review/eval/live-runner.ts:544` question (non-blocking): Should a probe verdict of "unproven, not broken" red the job, given the probe now runs unconditionally ahead of the $0 r...)
  • workflows/review/eval/live-runner.ts:544 question (non-blocking): Should a probe verdict of "unproven, not broken" red the job, given the probe now runs unconditionally ahead of the $0 review.md short-circuit and so is the only spend and only failure source on most per-PR runs? (holistic)
  • workflows/review/eval/README.md:268 suggestion (non-blocking): Two of the three symptoms this new mandatory per-arm transcript read cites are now denied by the hook and named automatically in the report; consider triggering the read on those signals rather than on every delta. (first-principles)
  • workflows/review/eval/read-scope.ts:130 suggestion (non-blocking): The Glob pattern guard is a lexical test on the raw string, so a brace alternation like {/**,x}/case.json or {..,x}/live-match.ts slips past both isAbsolute and climbs. (correctness-reviewer)
Note: re-review ran at scoped depth (re-review mode scoped, blocking-medium).
review details review-v1.25.0 | schema 2 | depth scoped | re-review scoped blocking-medium | enable holistic,completeness,test-adequacy,first-principles,conventions,documentation
review fingerprint pr-reviewer:rereview v=1 depth=scoped verdict=COMMENT anchor-draft=false hunks=eyIuY2hhbmdlc2V0L3Jldmlldy1ldmFsLXJlYWQtc2NvcGUubWQiOlsiZDA4MDk1MWMwY2JhMjA2YiJdLCIuZ2l0aHViL3dvcmtmbG93cy9yZXZpZXctZXZhbC1hYi55bWwiOlsiYjE0NTJjODIzZjFmZWQwMCIsIjUxYzhjY2Y1NjYwNmJmYjEiLCJjNGExYjAwYzJhZDA3MzVjIl0sIi5naXRodWIvd29ya2Zsb3dzL3Jldmlldy1ldmFsLWRyaWZ0LnltbCI6WyJiMTQ1MmM4MjNmMWZlZDAwIiwiYjAxMWY5MDIwOWU2NDNkMSIsImM0YTFiMDBjMmFkMDczNWMiXSwiLmdpdGh1Yi93b3JrZmxvd3MvcmV2aWV3LWV2YWwtcHJvYmUudGVzdC50cyI6WyI5MWJiOWM0NjAyZDE2YjE2Il0sIi5naXRodWIvd29ya2Zsb3dzL3Jldmlldy1yZXJldmlldy1zd2VlcC55bWwiOlsiYjE0NTJjODIzZjFmZWQwMCIsIjk0MDYzZjkwM2Y2MmE3ZjAiLCI1YWVkOTllMTdlNTlkMDczIl0sIndvcmtmbG93cy9yZXZpZXcvZXZhbC9SRUFETUUubWQiOlsiNTE2NjQ2NmRkYzIxNjM3NiIsImU2MTI3MGZjOWZmMTZkYWYiLCJiNGIyNDNiZjk2NzFhY2MyIiwiNGIxNTAyM2IwZmFiYzY0YyJdLCJ3b3JrZmxvd3MvcmV2aWV3L2V2YWwvYWdncmVnYXRlLXJ1bGVyLnRzIjpbIjQ0N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NSIsImYzOTIyZTE0MzhlNmI4NDgiXSwid29ya2Zsb3dzL3Jldmlldy9ldmFsL3Rvb2wtcG9saWN5LnRlc3QudHMiOlsiZDZmNDBhMzg5MDc0OTFkMyJdLCJ3b3JrZmxvd3MvcmV2aWV3L2V2YWwvdHJhbnNjcmlwdHMudGVzdC50cyI6WyJkYmI0Y2YxMTM3MmQ0OTA4Il0sIndvcmtmbG93cy9yZXZpZXcvZXZhbC90cmFuc2NyaXB0cy50cyI6WyIwZjNiYmM3ZmRhMmQzNWMzIl19

@jwbron

jwbron commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

Round 7 handled in 7087d5d, all 4 taken:

  • should "unproven, not broken" red the job: no, agreed. runProbeGate returns a verdict now. proven proceeds, unproven (model declined both tries or dispatch failed twice) proceeds under a ::warning annotation since nothing was learned against the hook either and a spending run's arms retry their own dispatches, broken (leak, missing denial, failed in-scope read) still fails. This also answers the round 2 and 5 asks about the probe being the only failure source on $0 runs, from the other direction.
  • brace alternation slips the Glob guard (inline): yes. Patterns are brace-expanded first (nesting handled, capped at 256 expansions, past the cap treated as escaping) and every expansion is checked. Tests for {/**,src}/case.json, {..,src}/live-match.ts, and two benign brace patterns that must still pass.
  • tool-policy test blind to allowedTools.push(...): both the literal and every push are read, expected difference is LS, Bash, mcp__review__submit_result.
  • read-protocol bullet: points at the denial sections first, and the per-arm read is for what the report can't see (what was investigated, looping, depth parity).

ff7ba1e's probe with the Glob leg: attempted (Read and Glob) and did not leak, deniedReads=2, deniedTools=0, toolCalls=3, $0.018. First live proof the SDK enforces the deny on Glob as well as Read.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commented — medium-importance findings found; nothing blocks.
The 1 prior review thread is resolved.

Non-blocking observations (7; top: `workflows/review/eval/read-scope.ts:197` suggestion (non-blocking): The Glob branch measures scope from cwd while every other branch measures it from readRoot, so an in-scope `../context/*...)
  • workflows/review/eval/read-scope.ts:197 suggestion (non-blocking): The Glob branch measures scope from cwd while every other branch measures it from readRoot, so an in-scope ../context/** search is denied and counted as an out-of-scope read. (first-principles)
  • workflows/review/eval/live-runner.ts:514 note (non-blocking): A probe run that misses only the in-scope read is classified broken and hard-fails the job, while the symmetric model-behavior miss on steps 2–3 is retried and downgraded to unproven. (correctness-reviewer)
  • workflows/review/eval/live-runner.ts:620 note (non-blocking): The probe gate fails open — two non-attempts or dispatch failures yield unproven, the arms spend anyway, and the report's ruler still stamps the scope as proven; the summary's "proves the restriction holds before any arm spends" doesn't say that. (completeness)
  • workflows/review/eval/read-scope.ts:197 question (non-blocking): The Glob branch judges pattern only lexically (escapesRoot rejects absolute pieces and .. segments) and canonicalizes only the path field, so a relative pattern that traverses a symlink inside the staged checkout is allowed — while the same target reached through Read is canonicalized and denied (the symlink case the new test suite covers). (skill-auditor (out-of-lane))
  • workflows/review/eval/read-scope.ts:148 suggestion (non-blocking): The fail-closed branch for a brace pattern that blows the expansion cap has no test; add one so the cap can't silently become fail-open. (test-adequacy)
  • workflows/review/eval/README.md:92 suggestion (non-blocking, documentation): The README lists "the model actually attempted the out-of-scope read" as a fail-the-job condition, but the next sentence and runProbeGate make that case a non-failing unproven warning; drop that clause from the failure list. (documentation)
  • workflows/review/eval/tool-policy.test.ts:25 suggestion (non-blocking): The production/eval toolset pin regex-parses dispatch-runner.ts's source; exporting the array and importing it would make the same pin a compile-time reference. (first-principles)
Note: re-review ran at scoped depth (re-review mode scoped, blocking-medium).
review details review-v1.25.0 | schema 2 | depth scoped | re-review scoped blocking-medium | enable holistic,completeness,test-adequacy,first-principles,conventions,documentation
review fingerprint pr-reviewer:rereview v=1 depth=scoped verdict=COMMENT anchor-draft=false hunks=eyIuY2hhbmdlc2V0L3Jldmlldy1ldmFsLXJlYWQtc2NvcGUubWQiOlsiZDA4MDk1MWMwY2JhMjA2YiJdLCIuZ2l0aHViL3dvcmtmbG93cy9yZXZpZXctZXZhbC1hYi55bWwiOlsiYj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QiLCI4ODM3NWFiNzdhOGU3OTViIiwiOGY1ZDc3OGI4ODA2YTJjMiIsIjhmNWQ3NzhiODgwNmEyYzIiXSwid29ya2Zsb3dzL3Jldmlldy9ldmFsL2xpdmUtcnVubmVyLnRlc3QudHMiOlsiY2U2NGUwZTdiOTgxOTBmZCJdLCJ3b3JrZmxvd3MvcmV2aWV3L2V2YWwvbGl2ZS1ydW5uZXIudHMiOlsiYTgzMGFiMjA5MmQ1NTcwOCIsImQ5NDYyOWQ5YzE0MjdhMGQiLCIyOTE0ODY3ZjVjZTEwMDk5IiwiMjExMTk0ZTA4NzYzMTA2NyIsImFkNTg3NGEwNDA5OTc3YjUiLCI0OWRmODNmNTdhYWI1NmJkIl0sIndvcmtmbG93cy9yZXZpZXcvZXZhbC9yZWFkLXNjb3BlLnRlc3QudHMiOlsiYmQ3YTYyMmU4ODcyZmNlYSJdLCJ3b3JrZmxvd3MvcmV2aWV3L2V2YWwvcmVhZC1zY29wZS50cyI6WyI3Nzc0MzU5NGE4YTU0OTAyIl0sIndvcmtmbG93cy9yZXZpZXcvZXZhbC9yZXJldmlldy1zd2VlcC50cyI6WyJiZTYxZWU2ZTVlODQwYjBmIiwiYWQ1ODc0YTA0MDk5NzdiNSIsImYzOTIyZTE0MzhlNmI4NDgiXSwid29ya2Zsb3dzL3Jldmlldy9ldmFsL3Rvb2wtcG9saWN5LnRlc3QudHMiOlsiNmY0MDUwODcyNmQ1ZjdlMiJdLCJ3b3JrZmxvd3MvcmV2aWV3L2V2YWwvdHJhbnNjcmlwdHMudGVzdC50cyI6WyJkYmI0Y2YxMTM3MmQ0OTA4Il0sIndvcmtmbG93cy9yZXZpZXcvZXZhbC90cmFuc2NyaXB0cy50cyI6WyIwZjNiYmM3ZmRhMmQzNWMzIl19

Comment thread workflows/review/eval/live-runner.ts Resolved
@jwbron

jwbron commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

Round 8 handled in dc677ba, 8 of 9 taken:

  • Glob measured from cwd, ../context/** denied (observation, and the top one): right, and worse than described since ../context/ is where the staged diffs the prompts point at live. Each brace expansion's literal prefix now resolves against the search base and is canonicalized like a Read target, so the context sibling is in scope and ../../case-2/** isn't. A .. inside the glob tail, or a pattern past the expansion cap, is still denied (cap branch has a test now).
  • symlink through a glob tail: the tail can't be canonicalized, the doc says so and says why it's acceptable (the staged tree is a plain copy of the fixture with no symlinks). Not fixing beyond that.
  • in-scope miss is broken while out-of-scope miss is unproven: same kind of miss now gets the same treatment. Only an attempted in-scope read that returned nothing is broken.
  • probe fails open on unproven and the summary said "proves": summary reworded to say what it does (checks, fails on a demonstrated leak, warns when the model wouldn't play along twice). Not stamping the verdict on the ruler, an unproven run isn't a different instrument, and the warning annotation plus the probe transcript are where it shows.
  • no test drives a tool_result through the mocked SDK (inline): added, reads the token back from the written transcript.
  • tool-policy test blind to prod not setting tools (inline): asserts prod sets no tools in the query options literal or after it, so the day prod restricts, the comparison starts describing the reachable set.
  • README probe paragraph contradicted itself on "attempted": fixed, it lists what fails and what leaves the run unproven.

Not taken: exporting prod's allowedTools for a compile-time import. That edits the production dispatcher, which this PR leaves alone.

7087d5d's probe passed (deniedReads=2, $0.018).

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved — no blocking issues found.
All 2 prior review threads are resolved.

Non-blocking observations (4; top: `workflows/review/eval/read-scope.ts:215` suggestion (non-blocking): No test resolves a Glob pattern against a supplied `path`, so the base-vs-cwd rule and the relative-`path` branch are un...)
  • workflows/review/eval/read-scope.ts:215 suggestion (non-blocking): No test resolves a Glob pattern against a supplied path, so the base-vs-cwd rule and the relative-path branch are uncovered. (test-adequacy)
  • suggestion (non-blocking, documentation): "a probe the model would not play along with twice" names no operation; say the model never attempted the out-of-scope reads on either try. (documentation)
  • workflows/review/eval/live-runner.ts:569 thought (non-blocking): A run's own report can't distinguish "no reviewer attempted an out-of-scope read" from "the hook stopped firing" — both render as 0 denials — and the one thing that resolves that ambiguity is allowed to end unproven and proceed; was a filesystem-level boundary considered instead? (first-principles)
  • workflows/review/eval/read-scope.ts:221 suggestion (non-blocking, documentation): The comment above the expandBraces(pattern) call restates this function's own JSDoc bullet, examples included; delete it and keep the JSDoc. (documentation)
Note: re-review ran at scoped depth (re-review mode scoped, blocking-medium).
review details review-v1.25.0 | schema 2 | depth scoped | re-review scoped blocking-medium | enable holistic,completeness,test-adequacy,first-principles,conventions,documentation
review fingerprint pr-reviewer:rereview v=1 depth=scoped verdict=APPROVE anchor-draft=false hunks=eyIuY2hhbmdlc2V0L3Jldmlldy1ldmFsLXJlYWQtc2NvcGUubWQiOlsiZDA4MDk1MWMwY2JhMjA2YiJdLCIuZ2l0aHViL3dvcmtmbG93cy9yZXZpZXctZXZhbC1hYi55bWwiOlsiYjE0NTJjODIzZjFmZWQwMCIsIjUxYzhjY2Y1NjYwNmJmYjEiLCJjNGExYjAwYzJhZDA3MzVjIl0sIi5naXRodWIvd29ya2Zsb3dzL3Jldmlldy1ldmFsLWRyaWZ0LnltbCI6WyJiMTQ1MmM4MjNmMWZlZDAwIiwiYjAxMWY5MDIwOWU2NDNkMSIsImM0YTFiMDBjMmFkMDczNWMiXSwiLmdpdGh1Yi93b3JrZmxvd3MvcmV2aWV3LWV2YWwtcHJvYmUudGVzdC50cyI6WyI5MWJiOWM0NjAyZDE2YjE2Il0sIi5naXRodWIvd29ya2Zsb3dzL3Jldmlldy1yZXJldmlldy1zd2VlcC55bWwiOlsiYjE0NTJjODIzZjFmZWQwMCIsIjk0MDYzZjkwM2Y2MmE3ZjAiLCI1YWVkOTllMTdlNTlkMDczIl0sIndvcmtmbG93cy9yZXZpZXcvZXZhbC9SRUFETUUubWQiOlsiNTE2NjQ2NmRkYzIxNjM3NiIsIjk3NGY2MDZjMWNjNDZiYTMiLCIzZGVlNzJiNzkwYmRmZWVhIiwiNGIxNTAyM2IwZmFiYzY0YyJdLCJ3b3JrZmxvd3MvcmV2aWV3L2V2YWwvYWdnc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iYWQ1ODc0YTA0MDk5NzdiNSIsImYzOTIyZTE0MzhlNmI4NDgiXSwid29ya2Zsb3dzL3Jldmlldy9ldmFsL3Rvb2wtcG9saWN5LnRlc3QudHMiOlsiNDJhNWZjNjIzYTFmNmU0ZSJdLCJ3b3JrZmxvd3MvcmV2aWV3L2V2YWwvdHJhbnNjcmlwdHMudGVzdC50cyI6WyJkYmI0Y2YxMTM3MmQ0OTA4Il0sIndvcmtmbG93cy9yZXZpZXcvZXZhbC90cmFuc2NyaXB0cy50cyI6WyIwZjNiYmM3ZmRhMmQzNWMzIl19

@jwbron

jwbron commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

Round 9 (approved) handled in 59ef42c, 2 of 4 taken: Glob tests against a supplied base (absolute and relative), and the comment that restated expandBraces's doc is gone. The body's probe sentence now says the model never attempted the out-of-scope reads on either try.

On the filesystem-level boundary question: yes, it was the original plan. The task this PR closes had "the SDK exposes no path denial for Read, so the only fix is a container" as its premise, and the pi harness branch (#406) does it with srt's denyRead, which is what the RM-11 invoker inherits. Turns out the SDK does expose a hook with deny, so on main the hook plus the per-run probe is the shape, and the 0-denials ambiguity you name is exactly why the probe exists and why an unproven run is annotated rather than silent. A container-level boundary for the SDK arm would be the fallback if a future SDK stopped honoring hook denies, and the probe is what would tell us.

Tally across 9 rounds: 66 findings, 56 taken. The remaining check before merge is the forced-arms workflow_dispatch, which no per-PR run can do.

@jwbron

jwbron commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

Round 10 (approved) handled in c2585e7, 3 of 4 taken:

  • // prefix on absolute globs: right, path.resolve was collapsing it so nothing was wrong in effect, but fixed to say what it means, with tests for an absolute in-root pattern and an out-of-root one.
  • nested brace groups untested: two tests, one benign and one where the inner group escapes.
  • switch falls open for a tool added to READ_TOOLS: the default branch now denies a tool that's in the list and unhandled, and a test walks READ_TOOLS asserting each member is judged.

Not taken: replacing the expander with "deny any brace group containing / or ..". A false denial isn't free here, it's counted as a reviewer reading outside the case and named in the report, so the predicate has to be right about ordinary patterns like {src/a,src/b}/*.ts, not just safe. The 50 lines buy that.

I'll stop pushing code for observation-only rounds from here unless one names a correctness issue. The remaining gate before merge is the forced-arms dispatch.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commented — medium-importance findings found; nothing blocks.

Non-blocking observations (3; top: `workflows/review/eval/read-scope.ts:31` suggestion (non-blocking): `SCOPE_RULE_VERSION` is the only ruler component nothing derives from behavior, so a scope-semantics change can ship wit...)
  • workflows/review/eval/read-scope.ts:31 suggestion (non-blocking): SCOPE_RULE_VERSION is the only ruler component nothing derives from behavior, so a scope-semantics change can ship without moving the stamp; consider a behavior-keyed backstop that forces the bump. (holistic)
  • workflows/review/eval/read-scope.ts:196 suggestion (non-blocking): Use the directory's local isRecord guard instead of hand-rolling the narrowing with a cast. (conventions)
  • workflows/review/eval/read-scope.ts:188 question (non-blocking): Was additionalDirectories plus a non-bypass permission mode ruled out? The SDK already models the cwd-plus-extra-dirs boundary that this module re-derives by hand. (first-principles)
Note: re-review ran at scoped depth (re-review mode scoped, blocking-medium).
review details review-v1.25.0 | schema 2 | depth scoped | re-review scoped blocking-medium | enable holistic,completeness,test-adequacy,first-principles,conventions,documentation
review fingerprint pr-reviewer:rereview v=1 depth=scoped verdict=COMMENT anchor-draft=false hunks=eyIuY2hhbmdlc2V0L3Jldmlldy1ldmFsLXJlYWQtc2NvcGUubWQiOlsiZDA4MDk1MWMwY2JhMjA2YiJdLCIuZ2l0aHViL3dvcmtmbG93cy9yZXZpZXctZXZhbC1hYi55bWwiOlsiYjE0NTJjODIzZjFmZWQwMCIsIjUxYzhjY2Y1NjYwNmJmYjEiLCJjNGExYjAwYzJhZDA3MzVjIl0sIi5naXRodWIvd29ya2Zsb3dzL3Jldmlldy1ldmFsLWRyaWZ0LnltbCI6WyJiMTQ1MmM4MjNmMWZlZDAwIiwiYjAxMWY5MDIwOWU2NDNkMSIsImM0Y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WV3L2V2YWwvbGl2ZS1ydW5uZXIudHMiOlsiYTgzMGFiMjA5MmQ1NTcwOCIsImQ5NDYyOWQ5YzE0MjdhMGQiLCI5OWVjODMzOThiMjc2NWViIiwiMjExMTk0ZTA4NzYzMTA2NyIsImFkNTg3NGEwNDA5OTc3YjUiLCI0OWRmODNmNTdhYWI1NmJkIl0sIndvcmtmbG93cy9yZXZpZXcvZXZhbC9yZWFkLXNjb3BlLnRlc3QudHMiOlsiNmRkZDUxYWI1NDM5OTRmNCJdLCJ3b3JrZmxvd3MvcmV2aWV3L2V2YWwvcmVhZC1zY29wZS50cyI6WyJkZGI1Nzg1MWM1NGE1NDdlIl0sIndvcmtmbG93cy9yZXZpZXcvZXZhbC9yZXJldmlldy1zd2VlcC50cyI6WyJiZTYxZWU2ZTVlODQwYjBmIiwiYWQ1ODc0YTA0MDk5NzdiNSIsImYzOTIyZTE0MzhlNmI4NDgiXSwid29ya2Zsb3dzL3Jldmlldy9ldmFsL3Rvb2wtcG9saWN5LnRlc3QudHMiOlsiNDJhNWZjNjIzYTFmNmU0ZSJdLCJ3b3JrZmxvd3MvcmV2aWV3L2V2YWwvdHJhbnNjcmlwdHMudGVzdC50cyI6WyJkYmI0Y2YxMTM3MmQ0OTA4Il0sIndvcmtmbG93cy9yZXZpZXcvZXZhbC90cmFuc2NyaXB0cy50cyI6WyIwZjNiYmM3ZmRhMmQzNWMzIl19

Comment thread workflows/review/eval/read-scope.ts Resolved
Comment thread workflows/review/eval/read-scope.ts Resolved

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved — no blocking issues found.
2 of 2 prior review threads are still unaddressed as of 3e059b2:

2 non-blocking threads still open
Note: re-review ran at scoped depth (re-review mode scoped, blocking-medium).
review details review-v1.25.0 | schema 2 | depth scoped | re-review scoped blocking-medium | enable holistic,completeness,test-adequacy,first-principles,conventions,documentation
review fingerprint pr-reviewer:rereview v=1 depth=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hbC90cmFuc2NyaXB0cy50ZXN0LnRzIjpbImRiYjRjZjExMzcyZDQ5MDgiXSwid29ya2Zsb3dzL3Jldmlldy9ldmFsL3RyYW5zY3JpcHRzLnRzIjpbIjBmM2JiYzdmZGEyZDM1YzMiXX0

@jwbron

jwbron commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

Forced-arms run 33902871639 (smoke subset, both arms on the same review.md, $13.35), read as planned:

  • Probe: deniedReads=2, toolCalls=3, $0.020, both out-of-scope legs denied, nothing leaked.
  • Ruler line carries the new field: tools read-scoped:v1:Read,Grep,Glob.
  • Recall 100% both arms, verdict agreement 100%, noise 69% / 70%, judge 0.84 / 0.88. Identical prompts, so all of that is wobble, as expected.
  • Tool calls per agent: means of 7 to 10 across both arms (320 and 316 total) against 7 to 8 on the last claude reference (run 33671015442's baseline, 257 total). Nothing dropped, so tools didn't remove anything the prompts leaned on.
  • Reads denied: 3 baseline, 5 candidate, one per agent, mostly skill-auditor. I expected 0 and was wrong in a useful way. Every one of the 8 was the same shape: the reviewer guessed <case>/src/<file> for a changed file (the checkout is <case>/checkout), got file-not-found, then either widened a Glob to the staging root (**/*.go over /tmp/review-ab-xIFxSJ) or climbed out of context/ with a diff-relative path. None touched case.json, mustCatch, or live-match.ts. Each recovered in scope on the next call.

So no corpus hunt in 78 transcripts, but the scope stopped something the eval never noticed: before this, those staging-root Globs returned other cases' files and the other arm's copy of the same case. Cross-case reads were happening silently on every run that had a skill-auditor guessing paths.

Two follow-ons in b76a7d2 (rebased onto the main merge): the denial message now names the checkout and the context dir by absolute path, since 8 of 8 denials were a path guess and naming the right directory makes the recovery one retry, and the README's scope section says what a denial usually is and that the transcript tells the two kinds apart in one line.

Read one transcript per arm beyond the denied ones (correctness-reviewer on incident-money-rounding and incident-cache-missing-key): pr-context, review-files, annotated diff, the changed file, a Grep for the changed symbol, a Glob of the checkout. 8 to 9 calls, all in scope, the same shape on both arms.

@jwbron

jwbron commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

Round 11 (approved), both inline findings taken in ae05a13, both correctness so they cleared the bar I set two rounds ago:

  • <symlink>/.. collapsed lexically before realpath (correctness + security-auth): right, and reproducible exactly as described. path.resolve was doing the climbing as text, so escape/../secret.json from the checkout was allowed while the same target as an absolute string was denied. Read, Grep's path, and Glob's base and literal prefix all took that route. The predicate now hands canonical() the raw ${base}${sep}${rel} join and lets realpath climb, and the lexical realpath the pure tests inject normalizes like the real one does. Narrow in practice (a fixture would have to carry an outward symlink, and the reviewer has no Write or Bash to plant one), but the predicate's job is to be symlink-aware and this was the one path where it wasn't.
  • real-fs symlink test covered Read only: now covers <symlink>/.. through Read, Grep, and Glob's base, plus a symlink in a glob's literal prefix and an in-root prefix that must still pass.

2319 tests green on top of the main merge.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved — no blocking issues found.
All 2 prior review threads are resolved.

Non-blocking observations (7; top: `workflows/review/eval/live-runner.ts:156` suggestion (non-blocking): The hook-wiring test never exercises an in-root/out-of-cwd read, so a `root`/`cwd` mix-up in this call would stay green;...)
  • workflows/review/eval/live-runner.ts:156 suggestion (non-blocking): The hook-wiring test never exercises an in-root/out-of-cwd read, so a root/cwd mix-up in this call would stay green; add a <readRoot>/context/... case to the hook test. (test-adequacy)
  • workflows/review/eval/README.md:91 note (non-blocking): The Test plan still lists the force_arms run as outstanding with "expect 0 denials on every agent", while README:91 in this diff reports that run already happened with 8 denials — please reconcile the description with the result. (completeness)
  • workflows/review/eval/README.md:90 suggestion (non-blocking, documentation): Three sentences in the new README section state their mechanism in a form the reader has to reconstruct; rewrite them plainly. (documentation)
  • workflows/review/eval/README.md:90 suggestion (non-blocking): Benign path fumbles and genuine corpus hunts render identically in the denial section, though the change's own data says all 8 denials in the first scoped run were fumbles; consider splitting them by where the denied read resolved. (holistic)
  • workflows/review/eval/live-runner.ts:165 suggestion (non-blocking): deniedReads keeps only a count, so the report's "read its transcript" section fires on benign path-guessing — 8 of 8 denials in the first scoped run, per the README. Classify each denial by where its target resolved instead. (first-principles)
  • workflows/review/eval/live-runner.ts:183 question (non-blocking): The SDK exposes a read boundary as configuration (permissionMode: 'dontAsk' plus permission rules, or sandbox.filesystem.allowRead); was that route tried before hand-writing the path predicate and the paid per-run probe that proves it holds? (first-principles)
  • workflows/review/eval/read-scope.ts:206 nitpick (non-blocking): Narrowing toolInput inline rather than with the local isRecord type guard every other parsing module in workflows/review/eval/ defines. (conventions)
Note: 1 finding(s) not re-posted (already tracked in open review threads). Note: re-review ran at scoped depth (re-review mode scoped, blocking-medium).
review details review-v1.25.0 | schema 2 | depth scoped | re-review scoped blocking-medium | enable holistic,completeness,test-adequacy,first-principles,conventions,documentation
review fingerprint pr-reviewer:rereview v=1 depth=scoped verdict=APPROVE anchor-draft=false hunks=eyIuY2hhbmdlc2V0L3Jldmlldy1ldmFsLXJlYWQtc2NvcGUubWQiOlsiZDA4MDk1MWMwY2JhMjA2YiJdLCIuZ2l0aHViL3dvcmtmbG93cy9yZXZpZXctZXZhbC1hYi55bWwiOlsiYjE0NTJjODIzZjFmZWQwMCIsIjUxYzhjY2Y1NjYwNmJmYjEiLCJjNGExYjAwYzJhZDA3MzVjIl0sIi5naXRodWIvd29ya2Zsb3dzL3Jldmlldy1ldmFsLWRyaWZ0LnltbCI6WyJiMTQ1MmM4MjNmMWZlZDAwIiwiYjAxMWY5MDIwOWU2NDNkMSIsImM0YTFiMDBjMmFkMDczNWMiXSwiLmdpdGh1Yi93b3JrZmxvd3MvcmV2aWV3LWV2YWwtcHJvYmUudGVzdC50cyI6WyI5MWJiOWM0NjAyZDE2YjE2Il0sIi5naXRodWIvd29ya2Zsb3dzL3Jldmlldy1yZXJldmlldy1zd2VlcC55bWwiOlsiYjE0NTJjODIzZjFmZWQwMCIsIjk0MDYzZjkwM2Y2MmE3ZjAiLCI1YWVkOTllMTdlNTlkMDczIl0sIndvcmtmbG93cy9yZXZpZXcvZXZhbC9SRUFET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2YmQiXSwid29ya2Zsb3dzL3Jldmlldy9ldmFsL3JlYWQtc2NvcGUudGVzdC50cyI6WyJhM2I4ZTJlZDUyMmRkYjRiIl0sIndvcmtmbG93cy9yZXZpZXcvZXZhbC9yZWFkLXNjb3BlLnRzIjpbIjlkMWEzMmI0M2UxMDJjMDciXSwid29ya2Zsb3dzL3Jldmlldy9ldmFsL3JlcmV2aWV3LXN3ZWVwLnRzIjpbImJlNjFlZTZlNWU4NDBiMGYiLCJhZDU4NzRhMDQwOTk3N2I1IiwiZjM5MjJlMTQzOGU2Yjg0OCJdLCJ3b3JrZmxvd3MvcmV2aWV3L2V2YWwvdG9vbC1wb2xpY3kudGVzdC50cyI6WyI0MmE1ZmM2MjNhMWY2ZTRlIl0sIndvcmtmbG93cy9yZXZpZXcvZXZhbC90cmFuc2NyaXB0cy50ZXN0LnRzIjpbImRiYjRjZjExMzcyZDQ5MDgiXSwid29ya2Zsb3dzL3Jldmlldy9ldmFsL3RyYW5zY3JpcHRzLnRzIjpbIjBmM2JiYzdmZGEyZDM1YzMiXX0

@jwbron
jwbron force-pushed the jwbron/eval-reviewer-isolation branch from ae05a13 to c7bc7d2 Compare September 5, 2026 00:54

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved — no blocking issues found.

Non-blocking observations (1)
  • workflows/review/eval/live-ab-report.ts:445 note (non-blocking): Denial reporting stops at the A/B and drift reports; the rereview sweep gained the scope, the probe, and the transcripts but no denial signal in its own recall report. (holistic)
Note: re-review ran at scoped depth (re-review mode scoped, blocking-medium).
review details review-v1.25.0 | schema 2 | depth scoped | re-review scoped blocking-medium | enable holistic,completeness,test-adequacy,first-principles,conventions,documentation
review fingerprint pr-reviewer:rereview v=1 depth=scoped verdict=APPROVE anchor-draft=false hunks=eyIuY2hhbmdlc2V0L3Jldmlldy1ldmFsLXJlYWQtc2NvcGUubWQiOlsiZDA4MDk1MWMwY2JhMjA2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N5LnRlc3QudHMiOlsiNDJhNWZjNjIzYTFmNmU0ZSJdLCJ3b3JrZmxvd3MvcmV2aWV3L2V2YWwvdHJhbnNjcmlwdHMudGVzdC50cyI6WyJkYmI0Y2YxMTM3MmQ0OTA4Il0sIndvcmtmbG93cy9yZXZpZXcvZXZhbC90cmFuc2NyaXB0cy50cyI6WyIwZjNiYmM3ZmRhMmQzNWMzIl0sIndvcmtmbG93cy9yZXZpZXcvZXZhbC93aWxzb24udGVzdC50cyI6WyIzNWE0Mzk0ZGYxMzRjODA0Il19

James Wies added 14 commits September 4, 2026 20:05
…staged case, and write their transcripts

The live A/B stages each case under the runner's temp dir on a machine
that also holds this repo, and this repo holds every case's must-catch
spec and the scorer. Nothing denied a reviewer reading across. On the Pi
harness branch (#406, runs 33793491316 and 33795650180) a gemini
reviewer did: find / -name investigation-cap.ts, then its own case.json,
another case's, a grep for mustCatch, and live-match.ts, 37 of its 42
calls on one case. The tool-call count hid it for two full runs.

Turns out main's SDK arm was open the same way, wider than the task
assumed. allowedTools only pre-approves, it does not restrict (the SDK
docs say to use `tools` for that), so under bypassPermissions every
default tool, Bash included, was reachable. The module doc's "no
network, Read/Grep/Glob only" described the intent, not the runtime.

Fixes, all in the eval, review.md untouched so no pin or hash moves:

- live-runner.ts sets `tools` to Read/Grep/Glob and adds a PreToolUse
  hook that denies any read resolving outside the staged case root
  (checkout plus its context sibling, symlinks followed). read-scope.ts
  is the pure predicate; Glob patterns that are absolute or climb with
  .. are denied outright since a pattern is not a path to canonicalize.
- LiveAgentRequest carries readRoot, LiveAgentResult and PerAgentReport
  carry deniedReads, and the report renders a "Reads denied outside the
  staged case" row plus a section naming any reviewer with a nonzero
  count. Zero is the expected value.
- transcripts.ts writes one file per dispatch attempt (tool-call index
  on top, trimmed message stream below, inputs never trimmed) under
  <tmpdir>/review-transcripts, outside the staging root, so a reviewer
  cannot read a sibling's mid-run. The three live workflows upload them.
- live-runner.ts --probe-read-scope: one Haiku call that reads a staged
  file and a planted file outside the case, and fails unless the first
  succeeded, the second was denied, and the planted contents never
  reached the model. Each live workflow runs it before spending on an
  arm, because the unit tests cover the predicate and not whether the
  installed SDK honors a hook deny under bypassPermissions.
- README: how the scope works, the probe, a read-protocol line (read at
  least one transcript per arm before trusting a delta), and a
  statistical-honesty note that pre-scope runs were not isolated from
  the corpus and what the indirect evidence says about them.
…the hook, keep denial counts through failed attempts

Round 1 of the reviewer bot on this PR, 8 non-blocking findings, 7 taken:

- The hook allowed any tool it did not recognize, so Bash was kept out
  by `tools` alone, and nothing verified that option restricts. The hook
  now denies every tool outside Read/Grep/Glob as a second layer, and
  the probe gains a third step (Bash cat of the planted file) so the
  leak check covers both layers and the log line says which one kept
  Bash out.
- A timed-out or non-success attempt threw a bare Error and dropped
  every denial it counted, zeroing the report row for the attempts most
  likely to have hunted. Runners now throw LiveAgentError (new module,
  live-agent-error.ts) carrying toolCalls and deniedReads, and
  dispatchWithRetry folds them into the per-agent report. Test added.
- deniedTotal had landed between mergedTotal and its doc comment; moved
  next to snappedTotal with its own.
- transcripts.ts's doc promised index lines carry arguments whole; they
  cap at 300 characters (now INDEX_LINE_CHARS) and the doc says the
  messages hold the full input.
- READ_SCOPE_REASON is a function, renamed readScopeReason.
- live-ab-report.test.ts imports renderMarkdownReport from its namesake.

Not taken: a denial row on the rereview sweep's report. The sweep gets
the transcripts and the probe; its report is a different shape and the
A/B is where the denial signal is read.
…sults, not just the final text, and has a test

Two inline findings from round 1 on the probe.

The probe checked the model's final text for the planted token and
counted hook decisions, so an SDK that ignored the deny but a model that
politely reported a refusal would have passed it. That is the one
property the probe exists to establish. The probe now runs with a
transcript dir and scans every recorded message alongside the final
text, so the out-of-scope tool result is the surface checked; the
in-scope check reads the transcript too, so a model that paraphrases
instead of quoting does not fail the gate for the wrong reason.

probeReadScope gated all three live workflows with no test of its
verdict. live-runner.test.ts drives it with a fake runner: pass,
leak in the final text, leak only in a tool result, no denial, in-scope
read missing, in-scope read present only in the transcript. No model
call; the module doc's "tests never load this file" is updated to say
what the test loads and why.
…ls apart from reads, show denials on repeats reports, test the runner

Round 2 of the reviewer bot, 3 inline plus 8 observations, 9 taken.

The hook's two rules fed one counter, so the report could name a
reviewer under "read outside the staged case" for a Bash call the hook
refused, and the probe could pass on a run where the out-of-scope Read
never reached the hook (tool rule fires on step 3, model declines step 2
on its own). deniedReads now counts only the read-scope rule and
deniedTools the tool rule, on LiveAgentResult, PerAgentReport,
PartialAccounting, the run record, and the transcript header. The
probe gates on deniedReads, requires a transcript to exist, and checks
the transcript's tool-call index for the out-of-scope Read attempt so a
model that declined on its own fails with a message naming that rather
than the hook. Its log line reports Bash as denied by the hook, absent
per the model, or unreported, in that order of evidence.

The denial row and section rendered only on single-run reports, so the
weekly drift run (3 repeats) never showed them. deniedSection is shared
by both renderers, sums repeats per arm/case/agent, and lists
tool-policy denials in their own section. The repeats report gets a
pooled "Reads denied outside the staged case" line so its zero is
visible too.

live-runner.test.ts now mocks the SDK (the dispatch-runner.test.ts
pattern) and drives the captured PreToolUse hook: Bash denied and
counted apart, in-scope Read allowed, out-of-scope Glob denied, a
non-success result thrown as LiveAgentError with the counters, and a
transcript per attempt with the retry numbered 2. PINNED_PROBE_MODEL is
exported and pinned by test like the judge and arbiter models.
addAccounting in live-agent-error.ts folds counters for both the success
and failure paths (live-producer.ts sits at the 1000-line cap).

Doc fixes: the README's probe paragraph says what the verdict actually
depends on, and the runner's module doc says the cap CLI was never
staged in the eval, so "uncapped" predates `tools` and is unchanged.

Not taken: gating the probe on whether an arm will dispatch. It costs
$0.014 per run and is the only per-PR signal on the installed SDK.
… model non-attempt, name the no-shell limit, test the accounting

Round 3 of the reviewer bot, 1 inline plus 5 observations, 5 taken.

The probe failed the job whenever the model declined to attempt the
out-of-scope read, with no retry, so a haiku behavior change would red
three live workflows for a reason that is not the scope. The probe
result now carries notAttempted, the CLI retries that case once (a leak
or a missing denial never retries), and the failure message says the
scope is unproven for the run rather than broken.

Dropping Bash from the eval arm removes the "one targeted cheap check
per finding" shell step review.md asks for, which production keeps.
The README's statistical-honesty section now says so: both arms lose it
together so within-run deltas stay comparable, eval recall reads as a
lower bound on production's, and scoping Bash by path is not an option
because `find /` is how the leak was found.

Also: runOnce gets its explicit Promise<LiveAgentResult> return type,
addAccounting's no-false-zero contract has a test
(live-agent-error.test.ts), and live-runner.test.ts imports the module
under test statically like the other SDK-mocking tests (vi.mock hoists).

Not taken: excluding or flagging cases with denied reads from the pooled
delta. The denial section names the case and agent, the expected count
is zero, and changing sample inclusion changes every rate; if a nonzero
count ever shows up on a real run, that report is the place to decide.
…etries, and the probe's transcript is uploaded

Round 4 of the reviewer bot, 2 inline plus 6 observations, 7 taken.

The retry I added in round 3 could turn a leaking probe green:
notAttempted was computed from the attempt check alone, so a run where
Bash leaked the secret without a Read attempt retried, and a clean
second try decided the job. notAttempted is now gated on !leaked, and
the wiring lives in runProbeGate (injected probe and log) with tests for
the pass, retry, unproven, and never-retry paths.

The probe was the one entry point ignoring --transcripts-dir, so the
transcript that shows which call went through landed in a throwaway
temp dir and was never uploaded. The three workflows now pass the flag
to the probe step, and each attempt gets its own subdirectory under
read-scope-probe/ so the verdict's scan cannot read a prior attempt's
file.

A dispatch failure threw out of probeReadScope with no detail line and
would red every live workflow the same way a leak does. It now returns
a failed verdict with the error in the detail, and never retries.

Also: the probe's doc paragraph sits on the function rather than on
ProbeResult, the README's indirect-evidence sentence names what the 5
Claude agents searched for (the gh-aw-review-lib directory) and
separates the Gemini clause, and the no-shell limit says a review.md
change to the shell step itself prints as a zero delta rather than as
not measured, so those go through the canary.

Not taken: scanning real runs' transcripts for corpus content at report
time. There is no planted token in a real run to look for, the hook
denies before the read happens, and the probe proves enforcement per
run on the installed SDK.
… policy on the ruler, retry the probe on dispatch failure, pin the workflow ordering

Round 5 of the reviewer bot, 1 inline plus 5 observations, 5 taken.

This PR changed the instrument (reviewers lost Bash and gained read
scoping) without extending the ruler stamp, so aggregate.ts pooled pre-
and post-scope drift runs as comparable. ReportProvenance gains
toolPolicy (READ_TOOL_POLICY in read-scope.ts, "read-scoped:Read,Grep,
Glob"), live-ab.ts stamps it, and the aggregate reads a stamped report
without it as `unscoped` and warns on a mixed pool the way it does for a
matcher or corpus change. A report with no stamp at all stays unstamped.
The ruler line prints the tools value in both renderers. The ruler
rendering moved to aggregate-ruler.ts because aggregate.ts was at 999
lines against a 1000 cap.

The probe's dispatch failure never retried and would red three
workflows on one 529. It is now its own state (dispatchFailed) and
retries once like a non-attempt, since neither says anything about the
hook; a leak or a missing denial still never retries.

Also: .github/workflows/review-eval-probe.test.ts asserts each of the
three live workflows runs the probe before the step that spends and
hands both the uploaded transcripts dir; the probe section has its own
banner above the CLI; and the planted file is notes.txt rather than
secret.txt so the retry is not repeating the most likely deterministic
reason for a refusal.

Not taken: moving the probe into live-ab.ts at the point of dispatch so
identity-short-circuit runs skip it. Same answer as round 2: $0.014 per
run, and a runner-only PR like this one is exactly the case that should
still run it.
…ies, the stamp carries the rule version

Round 6 of the reviewer bot, 2 inline plus 8 observations, 9 taken.

The probe proved the SDK honors the deny for Read only, while the route
the scope exists to close is search: the incident was `find /`, whose
Read/Grep/Glob analogue is Glob, and read-scope.ts names `**/case.json`
as the query a corpus hunt would make. The probe plants a second file
whose NAME is a token (a Glob result is a listing, so the name is what
would leak), adds a Glob leg over the planted directory, requires both
out-of-scope legs attempted and both denied (deniedReads at least 2),
and checks both tokens in the final text and every tool result.

The dispatch-failure early return skipped the leak check, so an attempt
that leaked and then timed out was retried and a clean retry greened
the gate, the same hazard notAttempted was hardened against in round 4.
The catch now scans the transcript first (the runner writes it in a
finally) and returns dispatchFailed only when no token escaped.

READ_TOOL_POLICY was derived from the toolset alone, so a change to the
scope rule would keep the same stamp and pooled reports would not warn.
SCOPE_RULE_VERSION (1) is folded in: read-scoped:v1:Read,Grep,Glob.

Also: the transcript index parse skips a malformed or foreign .json
instead of throwing; the transcript-write failure path has a test (the
result survives, the error is logged); tool-policy.test.ts pins
production's allowedTools to the eval's read tools plus exactly LS and
Bash so the two lists cannot diverge silently in another way; the
README's read-protocol bullet names the files and index lines to look
for per failure mode; the changeset names the stamp change and what it
does to the "Ruler:" line.

Not taken: moving the probe into live-ab.ts behind the identity
short-circuit (third time asked). An SDK pin bump is the other PR shape
that touches neither review.md nor the runner and still needs the probe.
…ation cannot slip the Glob guard

Round 7 of the reviewer bot, 1 inline plus 3 observations, 4 taken.

A probe that could not be exercised (the model declined both tries, or
the dispatch failed twice) failed the job with a message saying the
scope was unproven, not broken. On a per-PR run that short-circuits at
$0 the probe was the only spend and the only failure source, and a
spending run's arms retry their own dispatches. runProbeGate now returns
a verdict: proven, unproven (the job proceeds under a GitHub warning
annotation, since nothing was learned against the hook either), or
broken (a leak, a missing denial, or a failed in-scope read, which still
fails the job).

The Glob guard tested the raw pattern string, so a brace alternation
like {/**,x}/case.json or {..,x}/live-match.ts passed both the absolute
and the climbing check. Patterns are brace-expanded first (nesting
handled, capped at 256 expansions, past the cap the pattern is treated
as escaping) and every expansion is checked.

tool-policy.test.ts read only production's allowedTools literal and
missed the allowedTools.push("mcp__review__submit_result") line, so it
pinned a list production does not run with. Both are read now and the
expected difference is LS, Bash, and submit_result.

The README's read-protocol bullet points at the denial sections first
and reserves the per-arm read for what the report cannot see (what was
investigated, looping, depth parity), rather than listing symptoms the
hook now catches.
…skipped in-scope step as unproven

Round 8 of the reviewer bot, 2 inline plus 7 observations, 8 taken.

The Glob guard denied any `..` in a pattern, so `../context/*.diff` from
the checkout (the staged diffs the prompts point at) was denied and
counted as an out-of-scope read, while every other branch measures from
the case root. Each brace expansion's literal prefix (the segments before
the first glob character) now resolves against the search base and is
canonicalized like a Read target, so the context sibling is in scope and
`../../case-2/**` is not. A `..` inside the glob tail, or a pattern past
the expansion cap, is still denied since it cannot be resolved; the cap
branch has a test. The glob tail itself is not canonicalized, which the
doc now says along with why that is acceptable (the staged tree is a
plain copy with no symlinks).

A probe whose model skipped the in-scope read was `broken` and failed
the job, while skipping the out-of-scope steps was `unproven`. Same kind
of miss, same treatment now: only an attempted in-scope read that
returned nothing is broken.

live-runner.test.ts drives a user/tool_result message through the mocked
SDK and reads it back from the transcript, the half of the transcript the
probe's leak check depends on. tool-policy.test.ts also asserts
production sets no `tools` option (neither in the query options literal
nor after it), so the day production restricts its toolset the
allowedTools comparison starts describing the reachable set.

README: the probe paragraph lists the conditions that fail the job and
the ones that leave it unproven without contradicting itself.

Not taken: exporting production's allowedTools array for a compile-time
import. That edits the production dispatcher, which this PR leaves alone.
… restated the doc

Round 9 of the reviewer bot (approved), 2 of 4 observations taken: the
Glob branch's supplied-path base (absolute and relative) has tests, and
the comment above expandBraces that repeated the function's own doc is
gone. The PR body's probe sentence is reworded separately.
…redicate does not know falls closed

Round 10 of the reviewer bot (approved again), 3 of 4 taken.

literalPrefix prepended "/" to a join that already began with one, so
every absolute Glob pattern with a literal directory was checked as
"//dir/...". path.resolve collapsed it, so nothing was wrong in effect,
but the code said something it did not mean. The prefix is the join, and
"/" only when the pattern has no literal at all. Tests for an absolute
in-root pattern and an absolute out-of-root one, and for nested brace
groups, which the expander handled and nothing exercised.

outOfScopeRead's switch fell open for a tool it had no case for, so
adding a tool to READ_TOOLS (the hook's allowlist and the model's
toolset) would have shipped an unchecked read path. The default branch
denies a tool that is in the list and unhandled, and a test walks
READ_TOOLS asserting each member is judged.

Not taken: replacing the brace expander with "deny any brace group
containing / or ..". A false denial is not free here: it is counted as a
reviewer reading outside the case and named in the report, so the
predicate has to be right about ordinary patterns like
{src/a,src/b}/*.ts, not just safe.
First forced-arms run through the scoped runner (33902871639, smoke
subset, both arms, $13.35): probe deniedReads=2, recall 100% both arms,
verdict agreement 100%, tool-call means per agent 7 to 10 against 7 to 8
on the last claude reference run, and 8 denied reads, 3 baseline and 5
candidate. None was a corpus hunt. Every one was a reviewer that guessed
<case>/src/... for a changed file (the checkout is <case>/checkout),
missed, and widened a Glob to the staging root, or climbed out of
context/ with a relative path from the diff. Before the scope those
searches returned other cases' files and the other arm's copy of the
same case, silently. Each reviewer recovered in scope on the next call.

The denial message now names the checkout (the cwd) and the context
directory by absolute path so that recovery is one retry, and the
README's scope section says what a denial usually is and that the
transcript tells the two kinds apart in one line.
…psing it as text

Round 11 of the reviewer bot, both inline findings taken, both
correctness.

A relative read path was joined with path.resolve before canonical()
ran, and resolve collapses `x/..` as text. When `x` is a symlink the
kernel resolves it first and climbs from the target's parent, so
`escape/../secret.json` from the checkout resolved lexically to a path
inside the root and was allowed, while the same target as an absolute
string was denied. Grep's path and Glob's base and literal prefix took
the same route. The predicate now hands canonical() the raw
`${base}${sep}${rel}` join and lets realpath do the climbing; the
lexical realpath the pure tests inject normalizes, as the real one does.

The real-filesystem symlink test only exercised Read. It now covers
`<symlink>/..` through Read, Grep, and Glob's base, and a symlink in a
glob's literal prefix, plus an in-root prefix that must still pass.

Narrow in practice (a fixture would have to carry an outward symlink and
the reviewer has no Write or Bash to plant one), which is why the bot
filed it non-blocking, but the predicate's stated job is to be
symlink-aware and this was the one path where it was not.
@jwbron
jwbron force-pushed the jwbron/eval-reviewer-isolation branch from c7bc7d2 to a8ed329 Compare September 5, 2026 03:13
@jwbron
jwbron merged commit 088b1a1 into main Sep 5, 2026
11 checks passed
@jwbron
jwbron deleted the jwbron/eval-reviewer-isolation branch September 5, 2026 03:14

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Commented — medium-importance findings found; nothing blocks.

Non-blocking observations (5; top: `workflows/review/eval/live-runner.ts:368` suggestion (non-blocking, documentation): The `notAttempted` docstring is wrong on both of its claims: the flag also fires when the in-scope read was skipped, and...)
  • workflows/review/eval/live-runner.ts:368 suggestion (non-blocking, documentation): The notAttempted docstring is wrong on both of its claims: the flag also fires when the in-scope read was skipped, and a second non-attempt warns rather than failing the job. (documentation)
  • workflows/review/eval/live-ab-report-denials.ts:91 note (non-blocking): The pooled denial line claims repeatCount repeats even when the checkpoint has fewer (correctness-reviewer)
  • workflows/review/eval/live-ab-report-denials.ts:27 suggestion (non-blocking): No test exercises a denial on the baseline arm, so a deniedSection bug that drops or mislabels the baseline half of the pair loop would pass. (test-adequacy)
  • workflows/review/eval/live-ab-report-denials.ts:49 suggestion (non-blocking): A denial that widened a Glob to the staging root and a read that reached this repo's corpus render as the same line, so classifying the denied target at the hook would keep the row a signal instead of a transcript-reading chore. (first-principles)
  • workflows/review/eval/live-ab-report.test.ts:522 nitpick (non-blocking): Module-scope fixture produceMiss is declared between describe blocks; this directory's test files put module-scope fixtures above the first describe. (conventions)
Note: re-review ran at scoped depth (re-review mode scoped, blocking-medium).
review details review-v1.25.0 | schema 2 | depth scoped | re-review scoped blocking-medium | enable holistic,completeness,test-adequacy,first-principles,conventions,documentation
review fingerprint pr-reviewer:rereview v=1 depth=scoped verdict=COMMENT anchor-draft=false hunks=eyIuY2hhbmdlc2V0L3Jldmlldy1ldmFsLXJlYWQtc2NvcGUubWQiOlsiZDA4MDk1MWMwY2JhMjA2YiJdLCIuZ2l0aHViL3dvcmtmbG93cy9yZXZpZXctZXZhbC1hYi55bWwiOlsiYjE0NTJjODIzZjFmZWQwMCIsIjUxYzhjY2Y1NjYwNmJmYjEiLCJjNGExYjAwYzJhZDA3MzVjIl0sIi5naXRodWIvd29ya2Zsb3dzL3Jldmlldy1ldmFsLWRyaWZ0LnltbCI6WyJiMTQ1MmM4MjNmMWZlZDAwIiwiYjAxMWY5MDIwOWU2NDNkMSIsImM0YTFiMDBjMmFkMDczNWMiXSwiLmdpdGh1Yi93b3JrZmxvd3MvcmV2aWV3LWV2YWwtcHJvYmUudGVzdC50cyI6WyI5MWJiOWM0NjAyZDE2YjE2Il0sIi5naXRodWIvd29ya2Zsb3dzL3Jldmlldy1yZXJldmlldy1zd2VlcC55bWwiOlsiYjE0NTJjODIzZjFmZWQwMCIsIjk0MDYzZjkwM2Y2MmE3ZjAiLCI1YWVkOTllMTdlNTlkMDczIl0sIndvcmtmbG93cy9yZXZpZXcvZXZhbC9SRUFETUUubWQiOlsiNTE2N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XcvZXZhbC9saXZlLXJ1bm5lci50cyI6WyIyYTQzMDIxZTM2MjQ3N2MxIiwiZDk0NjI5ZDljMTQyN2EwZCIsImU3ZGFiZThhZjIxYWIxNmMiLCIyMTExOTRlMDg3NjMxMDY3IiwiYWQ1ODc0YTA0MDk5NzdiNSIsIjQ5ZGY4M2Y1N2FhYjU2YmQiXSwid29ya2Zsb3dzL3Jldmlldy9ldmFsL3JlYWQtc2NvcGUudGVzdC50cyI6WyJhM2I4ZTJlZDUyMmRkYjRiIl0sIndvcmtmbG93cy9yZXZpZXcvZXZhbC9yZWFkLXNjb3BlLnRzIjpbIjlkMWEzMmI0M2UxMDJjMDciXSwid29ya2Zsb3dzL3Jldmlldy9ldmFsL3JlcmV2aWV3LXN3ZWVwLnRzIjpbImJlNjFlZTZlNWU4NDBiMGYiLCJhZDU4NzRhMDQwOTk3N2I1IiwiZjM5MjJlMTQzOGU2Yjg0OCJdLCJ3b3JrZmxvd3MvcmV2aWV3L2V2YWwvdG9vbC1wb2xpY3kudGVzdC50cyI6WyI0MmE1ZmM2MjNhMWY2ZTRlIl0sIndvcmtmbG93cy9yZXZpZXcvZXZhbC90cmFuc2NyaXB0cy50ZXN0LnRzIjpbImRiYjRjZjExMzcyZDQ5MDgiXSwid29ya2Zsb3dzL3Jldmlldy9ldmFsL3RyYW5zY3JpcHRzLnRzIjpbIjBmM2JiYzdmZGEyZDM1YzMiXX0

ok,
// Never "not attempted" when a token escaped: a retry must not be
// able to turn a leaking probe green.
notAttempted: files.length > 0 && !attemptedAll && !leaked,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion (non-blocking): A demonstrated in-scope over-block is downgraded to unproven whenever the model also skipped an out-of-scope leg.

context

A demonstrated in-scope over-block is downgraded to unproven whenever the model also skipped an out-of-scope leg. Introduced by this change. attemptedAll folds in attemptedInside (line 501), and notAttempted is then files.length > 0 && !attemptedAll && !leaked — so a probe where the in-scope read was attempted and returned nothing is classified as "not attempted" as soon as any one of the out-of-scope legs is missing. runProbeGate retries that case and, on a repeat, returns unproven with the message "Not a scope failure" and lets the job proceed under a warning. That contradicts this function's own contract in two places: the comment right above at lines 498-501 ("Only an attempted in-scope read that returned nothing is a scope problem") and runProbeGate's docstring at line 547 ("only a demonstrated leak, a missing denial, or a failed in-scope read is broken and fails the job"). Verified against the tests: live-runner.test.ts's no-inside case (line 517) exercises echoInside: false with both out-of-scope legs attempted, which does reach broken, and skip-inside (line 527) exercises the in-scope leg not attempted; the combination — in-scope attempted and failed, out-of-scope legs not attempted — is not covered, so the gap is silent in CI. The verdict detail does still print "in-scope read did NOT return its contents", so a human reading the warning annotation could catch it, which is why this is worth fixing rather than blocking. The one-line fix is to treat attemptedInside && !sawInside as never retryable, the same way leaked already is.

A sketch, not a committable replacement:

        notAttempted:
            files.length > 0 &&
            !attemptedAll &&
            !leaked &&
            // A read that was attempted in scope and came back empty is a
            // demonstrated scope break, never a retryable non-attempt.
            !(attemptedInside && !sawInside),

found by correctness-reviewer | also flagged by skill-auditor (out-of-lane)

// failure source, and on a spending run the arms retry their own
// dispatches.
return {
verdict: "unproven",

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion (non-blocking): The probe's verdict never reaches the report, so a run that proceeded unproven posts a read-scoped ruler stamp and a zero denial row that read exactly like a proven-clean run.

context

The probe's verdict never reaches the report, so a run that proceeded unproven posts a read-scoped ruler stamp and a zero denial row that read exactly like a proven-clean run. The probe's own doc comment (live-runner.ts:385-387) makes the distinction the report then drops: "the counter records the hook's decision, only the tool result shows whether the SDK enforced it." The report renders only the counter — deniedTotal feeds the single-run row at live-ab-report.ts:824-827 and the pooled line via pooledDeniedLines at live-ab-report.ts:390 — and the ruler stamp is a compile-time constant: live-ab.ts:731 sets toolPolicy: READ_TOOL_POLICY from read-scope.ts:40, so every report asserts read-scoped whether or not the hook was honored on that run. Grepping the eval directory for probe/unproven outside live-runner.ts and its tests returns only read-scope.ts's unrelated local variable, so no ProbeGateResult is threaded into ReportProvenance or the markdown; the verdict lives only in the CI step's stderr and the ::warning annotation on a different step, while README.md:85-97 points the reader at the denial row as the primary signal. That is the ambiguity the probe was added to resolve, reintroduced one artifact downstream. Cheapest fix is to have the probe step write its verdict where the run can stamp it into provenance so the ruler reads read-scoped (unproven this run); alternatively, since the doc comment justifies unproven-proceeds by the per-PR run short-circuiting at $0, the gate could warn there and still fail a run that is about to spend.

A sketch, not a committable replacement:

    // live-runner.ts CLI, --probe-read-scope:
    if (gate.verdict === "unproven") {
        console.log(`::warning title=read-scope probe::${gate.message}`);
    }
    // Leave the verdict where the spending run can pick it up and stamp it
    // into ReportProvenance.toolPolicy, so the ruler line reads
    // "read-scoped:v1:Read,Grep,Glob (unproven)" rather than asserting a
    // scope this run never demonstrated.
    writeFileSync(
        join(transcriptsRoot, "read-scope-verdict.json"),
        JSON.stringify({verdict: gate.verdict, message: gate.message}),
    );

found by holistic

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants