Repository navigation
chore: share one review checklist and gate pushes on the quick gate - #5788
Merged
Merged
Conversation
The Codex review guide gains an exhaustive-review rule and a fifteen-item checklist mined from 1,071 findings on 33 multi-round PRs. Authors run the same checklist on their own diff before every push and narrate the last pass in a new Self-review PR-body section. A pre-push hook runs `devtools verify --quick` on the pushed HEAD; the hosted quick gate stays the enforced record. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_015pdKaZWyGe6Ngvsz468dzg
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_015pdKaZWyGe6Ngvsz468dzg
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Sinity
enabled auto-merge (squash)
September 29, 2026 02:34
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Sinity
added a commit
that referenced
this pull request
Sep 29, 2026
Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_015pdKaZWyGe6Ngvsz468dzg
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.
Summary
docs/review/codex-review-guide.mdgains a Review exhaustively rule (report every issue in one pass, including every sibling site of a defect class) and a fifteen-item Checklist that replaces "Checks that are easy to miss". The checklist was mined from past review findings and keeps every still-valid rule of the old list.AGENTS.md, "Commits and PRs")..githooks/pre-pushrunsdevtools verify --quickon the pushed HEAD. The hostedci/circleci: quick-gatestays the enforced record.Problem
We looked at 33 PRs with three or more Codex review rounds: 1,071 findings over 344 rounds. Of the 917 findings from round 2 onward, a per-finding relation label gives 368 (40%) as the same defect class at a site an earlier fix missed, 332 (36%) as a defect inside an earlier fix, 205 (22%) as new, and 12 (1.3%) as restatements. Codex kept finding about three real issues per round without decay, diffs grew 2.3x during review, and 29% of pushed heads came back red on CI. Most later rounds were paying for incomplete fixes that a review of our own diff could have caught.
Solution
Each finding got one primary defect-class label (a second when clearly applicable). Primary counts:
Across the classes, two more patterns recur by title: a copy, retry, or rerun that drops state it should keep (117 titles start with "Preserve", "Retain", or "Keep … across", in 30 PRs) and degenerate inputs such as zero, empty, or non-positive values (38 titles, 16 PRs). They became items 11 and 12. Memory and caps share one item because the remedy for one is the defect of the other; paging joins per-unit cost. "The fix itself" (item 2) covers the defects-inside-a-fix relation.
The pre-push hook gates only a pushed commit that is the checked-out HEAD with no tracked changes on top, because the gate reads the working tree. Tracked changes refuse the push; a pushed ref that is not HEAD is left to CI with a notice; a deletion runs nothing; a missing
devtoolsrefuses the push.Verification
agentctl job start polylogue pytest_focused --workspace <worktree> --wait -- tests/unit/devtools/test_pre_push_hook.py(job 1961, head38c6b126; later commits do not touch the hook or its test):devtools test: PASSED exit=0 diagnosis=pytest_passed, 6 passed.agentctl job start polylogue verify_quick --workspace <worktree> --waiton38c6b126(job 1962): failed,render docs-surface: out of sync. The docs index row is generated fromdevtools/docs_surface.py; fixed at the source in84f754af.84f754af(job 1985):polylogue:verify_quick succeeded.Self-review
Two passes. Pass 1 found three defects, fixed before the first push: the checklist rewrite dropped still-valid details of the old items (item 11); the docs index row was edited in generated output instead of its source (item 13, caught by the quick gate); and the hook test asserted on stderr wording, which
AGENTS.mdrules out for behaviour tests (item 14). Pass 2 found nothing.grep -rn -i 'pre-push\|before pushing\|push hook'over docs, root Markdown, devtools, CI config): the only other claim, that a localverify --quickwas optional, was inAGENTS.mdand is replaced;CONTRIBUTING.md"Git Hooks" is updated. The checklist has one owner, the guide;AGENTS.mdpoints to it rather than copying it.devtools/docs_surface.py. The rerun quick gate (job 1985) checks every generated surface, and all of them are in sync.devtools verify --quick, which runs under 1 GiB.HEADandgit diff --quiet HEAD --shows no tracked changes. Untracked files are not inspected, and the header comment says so.devtoolsrefuses the push (tested). A non-zero gate exit refuses it (tested).except sqlite3.Errorpattern, "two classifiers that agree on today's fixtures", two interruption examples, and the definition of per-unit cost.AGENTS.md(pointer and PR format),CONTRIBUTING.md, the docs index and its generatordevtools/docs_surface.py. The main checkout's.githooksis the installed consumer (see Residuals).tests/unit/devtools/test_pre_push_hook.pypushes through a realgit pushto a bare remote with the repository's.githooks, so git supplies the hook's input. By reading the assertions (not by running mutants), each test fails on a named mutation: remove theexec devtoolsline and the first test fails (no gate call); ignore the gate's exit and the second fails (the remote advances); drop the dirty-tree check and the third fails; gate refs that are not HEAD and the fourth fails.[email protected]), and the finding counts in this body are aggregates only.Residuals
.githooks(core.hooksPathis anchored there), so the new pre-push hook takes effect in every worktree once the main checkout is on a commit that includes it.AGENTS.md"Code Review Rules" still repeats the compatibility and caps rules that the guide also states; they are left in place so Codex sees them even when it does not open the guide.🤖 Generated with Claude Code
https://claude.ai/code/session_015pdKaZWyGe6Ngvsz468dzg