Repository navigation
refactor(review): state each review rule once and keep schema descriptions to what a value is - #1864
Conversation
…tions to what a value is
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR shortens ClawSweeper’s review instructions and schema descriptions, reorganizes rules by review stage, and removes tests that pin the old wording. Review scores
ProductKind: Refactor · Worth it: Yes Merge readiness✅ Ready for maintainer review This PR remains useful and distinct from the earlier prompt refactors. Current main does not contain this cleanup, and no concrete introduced correctness or security defect was found. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherClawSweeper combines repository policy, GitHub evidence, review instructions, and an output schema into a model request. The model returns a structured decision that drives review comments and maintenance proposals. flowchart LR
A[GitHub item and evidence] --> C[Review prompt assembly]
B[Repository policy] --> C
D[Shortened review instructions] --> C
E[Decision schema] --> F[Reviewer model]
C --> F
F --> G[Structured review decision]
G --> H[Review comment and maintenance proposal]
Technical reviewBest possible solution: Keep one authoritative statement of each review rule while preserving the existing decision contract. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a refactor rather than a reported bug; the PR records paired executions through the real review CLI. Is this the best way to solve the issue? Yes: consolidating instructions without changing schema structure or prompt assembly is a narrow approach, supported by source checks and paired review outcomes. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 27ed20b60e58. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Review metrics
LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed October 9, 2026, 8:30 PM ET / October 10, 2026, 00:30 UTC. |
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: refactor(review): state each review rule once and keep schema descriptions to what a value is This is item 1/1 in the current shard. Shard 0/1. This temporary status tracks the active review worker. The completed review will appear in the durable ClawSweeper review comment. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
What
Text-only writing-for-agents pass on the review prompt and decision schema. Every rule stays; each is stated once, in one owner:
--output-schema(minified)Proof
Hosted-like local reviews (
pnpm run review -- --local-only … --codex-model gpt-6.1-sol --codex-sandbox clawsweeper-review, review-permissions CODEX_HOME), mainb4ba39fa5vs this branch, same item heads, run as pairs:duplicate_or_superseded→ #110379, P2, impact:ux-frictionsource_reproducible,strict_bug,queue_fix_prThe first pairs caught three places where compression changed output (nextStep restating other blockers, risks restating an open owner decision, patch tier dropping a step because the product cap had lost its
overallTieranchor and the tier meanings were cut to one word). Those are fixed in the later commits, and the 166947/167985 reruns on the fixed text match main. Open difference: on 157845 the branch rates the patch D where main rates it C, in every run, even after the tier meanings were restored. Decisions, the shared finding, and labels otherwise hold. Model variance: the extra P1 on 157845 showed up in 1 of 2 branch runs. Main put the same concern inrisksin both of its runs. Total input tokens per run are dominated by how many tool turns the model takes, which varies by run, so the table shows first-turn input.Local:
pnpm run build:all,pnpm run lint,pnpm run format:check,check:changelog,check:docs, focused prompt/schema test files (883 pass).codex review --base origin/main: no actionable findings.Merge Danger
Door: two-way. This changes prompt and description text only and bumps the policy version; revert restores it.
Blast radius: every hosted review. If a compressed rule reads weaker, the matching decision field drifts. The paired reviews above are the check.