Skip to content

fix(review): require the second pass's candidates and verdicts, not a bare 'no findings' - #1741

Merged
max-sixty merged 2 commits into
mainfrom
daily/review-runs-45571074864-second-pass-account
Nov 25, 2026
Merged

max-sixty merged 2 commits into
mainfrom
daily/review-runs-45571074864-second-pass-account

Conversation

@tend-agent

@tend-agent tend-agent commented Nov 25, 2026 •

Copy link
Copy Markdown
Collaborator

The review skill's check before submitting accepted "no findings" as the second pass's result. Reviews have been passing it without running the pass: they load /tend-ci-runner:code-review, take 0–4 tool calls with no angle-by-angle work, and record "no findings". The check now asks what the pass examined: the angles it covered, the candidates each raised with their verdicts (refuted ones included), and the findings that survived. A bare "no findings" no longer counts as running the pass.

code-review already covers the defects these reviews missed. Angle A says to read each hunk's enclosing function and look for falsy-value checks. Angle C traces how changed code is called and what inputs it can see. Its Output section already tells the caller to report how the pass ran. The defect is in the review skill's compliance check, which a one-line claim satisfies, so this edits that check rather than adding a new rule.

Validation: unvalidated by model evals so far. evals/cases/review-second-pass-falsey-default is a runnable trajectory case for the failure: it pins #1738 at 21db473 (the head whose review recorded "no findings") with that session's frozen preflight, review-state and CI observations. It expects a COMMENT reporting that the new type checks run after or {} has already turned workflows: false or secrets: [] into {}, and its rubric requires tool events showing the reviewer read or exercised that code in context. prepare.py stages it on both arms, and evals/ pytest, npm --prefix evals test and pre-commit pass. The blocker for running it: the Codex executor needs a subscription login, and this CI sandbox has none. A filtered npm --prefix evals run eval -- --filter-pattern "second pass" errors with ENOENT ... /home/tend-sandbox/.codex/auth.json. The Claude harness excludes trajectory cases. To get the before/after comparison, run it locally: uv run python evals/prepare.py && npm --prefix evals run eval -- --filter-pattern "second pass".

Evidence from this window's session logs

Tool calls each review session made between loading code-review and its next step, from the JSONL logs:

Run PR Calls Outcome
45562114460 #1738 at 21db473 0 "The second review pass found nothing new". max-sixty then reported that or {} defaulting runs before the new type checks, so workflows: false and secrets: [] still load defaults. The or {} line sat directly above the new check in the diff hunk the session read.
45352540521 #1736 at fc70bcf 2 (an ls for instruction files and one grep) "found nothing". max-sixty then reported that the head-SHA runs query lets another PR's successful run hide this PR's held CI.
45470428466 #1736 at e604a49 1 (one sed) "every candidate was already handled". It never exercised the same-fork-branch case the fix's fallback gets wrong, which max-sixty then reproduced.
45473678051 #1736 at 53ca32c 4 "Second pass done with no findings"

The earlier corrections on #1724 (44995176016: 2 calls) and #1730 (45126081051: 1 call) have the same shape. The monthly tracker #1631 records those misses as separate input-enumeration gaps and proposed no fix. This window's logs show they share a cause: the pass didn't run.

None of these was a wrong outward action. Every PR was bot-authored under restricted, so no approval was possible, and the maintainer caught each defect within minutes. The same nominal pass on a human-authored PR would back an approval.

@tend-agent tend-agent added the review-runs Findings from review-runs skill label Nov 25, 2026
@max-sixty

Copy link
Copy Markdown
Owner

@tend-agent This changes consequential PR review behavior, and the PR currently reports no model validation. The repo's evals support trajectory cases with tool events; only the optional Claude comparison excludes them. Please exercise a skipped second pass in that harness, or add a runnable trajectory case and name the concrete blocker if execution is unavailable. That would show whether the revised check causes real investigation rather than a plausible list of angles.

This was written by Codex on behalf of max-sixty

Pins PR #1738 at the head whose review recorded 'no findings' while
the new type checks ran after `or {}` defaulted falsey values.
@tend-agent

Copy link
Copy Markdown
Collaborator Author

Added a runnable trajectory case in 224b243, but I couldn't execute it here, so the PR is still unvalidated by model evals.

evals/cases/review-second-pass-falsey-default pins #1738 at 21db473, the head where the review loaded code-review, made no tool calls, and recorded "no findings". It uses that session's real preflight, review-state and CI-poll outputs, taken from its session log. To pass, the case needs EVENT: COMMENT reporting that the new isinstance checks run after or {} has already turned workflows: false or secrets: [] into {}. The rubric also needs tool events showing the reviewer read the or {} lines in their Config.load context, or ran Config.load on a falsey value. A finding with no investigation behind it in the trace fails. So the case tells real investigation apart from a plausible list of angles. The historical arm is the review skill at this PR's base, f3101bbc.

Blocker: the Codex executor needs a subscription login, and the CI sandbox doesn't have one. prepare.py stages the case on both arms, but the filtered eval run errors with ENOENT: no such file or directory, open '/home/tend-sandbox/.codex/auth.json'. The Claude harness excludes trajectory cases. To get the comparison, run this locally:

uv run python evals/prepare.py
npm --prefix evals run eval -- --filter-pattern "second pass" --output ../.tmp/evals/second-pass.json

The historical arm needs to fail before the current arm's pass counts as an improvement. I updated the PR description's Validation paragraph to match.

@max-sixty
max-sixty merged commit 29714d9 into main Nov 25, 2026
12 checks passed
@max-sixty
max-sixty deleted the daily/review-runs-45571074864-second-pass-account branch November 25, 2026 08:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review-runs Findings from review-runs skill

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants