Repository navigation
fix(review): require the second pass's candidates and verdicts, not a bare 'no findings' - #1741
Conversation
… bare 'no findings'
|
@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.
|
Pins PR #1738 at the head whose review recorded 'no findings' while the new type checks ran after `or {}` defaulted falsey values.
|
Added a runnable trajectory case in 224b243, but I couldn't execute it here, so the PR is still unvalidated by model evals.
Blocker: the Codex executor needs a subscription login, and the CI sandbox doesn't have one. uv run python evals/prepare.py
npm --prefix evals run eval -- --filter-pattern "second pass" --output ../.tmp/evals/second-pass.jsonThe 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. |
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-reviewalready 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-defaultis a runnable trajectory case for the failure: it pins #1738 at21db473(the head whose review recorded "no findings") with that session's frozen preflight, review-state and CI observations. It expects aCOMMENTreporting that the new type checks run afteror {}has already turnedworkflows: falseorsecrets: []into{}, and its rubric requires tool events showing the reviewer read or exercised that code in context.prepare.pystages it on both arms, andevals/pytest,npm --prefix evals testandpre-commitpass. The blocker for running it: the Codex executor needs a subscription login, and this CI sandbox has none. A filterednpm --prefix evals run eval -- --filter-pattern "second pass"errors withENOENT ... /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-reviewand its next step, from the JSONL logs:max-sixtythen reported thator {}defaulting runs before the new type checks, soworkflows: falseandsecrets: []still load defaults. Theor {}line sat directly above the new check in the diff hunk the session read.lsfor instruction files and one grep)max-sixtythen reported that the head-SHA runs query lets another PR's successful run hide this PR's held CI.sed)max-sixtythen reproduced.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.