Repository navigation
Conversation
…onclusion (garrytan#3469) Codex often closes a clean review with one sentence about its checks ("Tests, lint, and build all pass."). That sentence became the last sentence, so the no-findings statement before it no longer counted and the review read unverified. Closing check-results sentences are now stripped from the raw reply before the conclusion is read. They are matched before inline code is removed and only as whole sentences (after . ! ? ; or a blank line), so a negated, wrapped or conditional check is never dropped. They still count toward the sentence total, so dropping one never makes a scoped claim the reply's only sentence. "The changes introduce no ... regressions" is accepted as a no-findings statement and is always held to the whole-change scope rule. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
Merging to
After your PR is submitted to the merge queue, this comment will be automatically updated with its status. If the PR fails, failure details will also be posted here |
Contributor
|
Thank you for this fix. A crew lane is picking it up to land on current main with Co-authored-by credit to you. |
Contributor
|
A quick update, since we said a crew lane was picking this up: that hasn't happened yet, sorry. #3469 still reproduces on main at cefcb20 (1.98.0.0): the first sign-off from the issue still reads |
3 tasks done
Contributor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why (in your own words)
A clean Codex review often ends with one sentence about the checks it ran: "No actionable regressions were identified in the diff. Tests, lint, and build all pass." Since #3304, only the reply's last sentence (or its Recommendation because-clause) can conclude it, so that check sentence pushes the no-findings statement out of the conclusion and the review reads
VERDICT: unverified/REASON: untagged_review. /ship and /review then report missing outside coverage for a review that ran and found nothing.This change strips closing check-results sentences from the raw reply before the conclusion is read, as #3469 suggests. The #3304 safeguards still apply to the conclusion itself. It also accepts the reporter's second sign-off form, "The changes introduce no definite, actionable regressions." Without that, the second quote in the issue would still read unverified.
How the stripping avoids a false pass (each point was a false pass in an earlier draft, found by a Codex review of that draft and pinned by a test):
do notpass." and "Not alltests pass." are therefore never check reports..,!,?or;, or after a blank line. A wrapped tail ("Not all\ntests pass.") and a condition after a colon ("provided that:\nTests pass.") stay.Fixes #3469
Live evidence
The two sign-offs from #3469, plus a negative control, through the CLI as
/shipcalls it:The new tests were red first, then green:
Counter-review: I ran
codex exec(read-only, gpt-6.1-sol, high effort) on the diff after each fix. Rounds 1–6 each found one false-pass path, listed above. Each one got a negative test first and then a fix. Round 7 answeredNO_FINDINGS.Scope
lib/outside-review-result.ts:withoutClosingCheckResults()strips closing check-results sentences (CHECK_RESULTS) from the raw reply. The prose builder moved intoreviewProse().concludesNoFindings(code, concluding)reads the conclusion from the stripped reply and counts sentences on the full one.FINDING_NOUNtakes up to two adjectives (plusdefinite), andNO_FINDINGStakes a whole-change subject ("the/this/these change(s)/diff/patch introduce(s)/add(s)/contain(s)/has/have no …").test/outside-review-result.test.ts: a new#3469block with the reporter's two sign-offs (in-process and through the CLI), four more clean sign-offs, and 15 negative controls: the outside-review-result: "no actionable regressions" is read as an untagged (unverified) review #3294 safeguards plus every false-pass path the counter-review found.docs/troubleshooting.md: the "How the verdict is read" entry names the new form and the check-results rule.bun test test/outside-review-result.test.ts test/outside-review-severity.test.ts test/outside-review-unparsed-severity.test.ts: 85 pass, 0 fail;bun run typecheck: clean;bun run typecheck:test: "814 known diagnostics, none new".upstream/main(ce3a093) on macOS:bun run test:quickreports failures in 18 files, none of them outside-review. I ran those 18 files on both trees. Both give 163 pass and 67 fail, with the same failing tests. These are this Mac's host failures (Linux inotify, Bun store layout, Aside, cso and others)./shiprun whose Codex reply ends this way. The CLI runs use the reporter's exact text.NO_FINDINGSreply ended that way. Reading counts safely ("0 failed" vs "1 failed") is a separate change.Recommendation:line. Only the reply's last sentences are stripped; the because-clause still concludes as before.NO_FINDINGS_EXCEPTION). This PR does not change that, and the new paths do not reach it.Liveness proof (required for external contributors)
Checklist
GSTACK PRtyped live into a real surface) or PR author is @garrytan (owner exemption)🤖 Generated with Claude Code