Skip to content

fix(review): keep paperwork and stale conflicts out of Before-merge items - #1765

Merged
obviyus merged 1 commit into
mainfrom
review-rules-paperwork-calibration
Oct 8, 2026
Merged

obviyus merged 1 commit into
mainfrom
review-rules-paperwork-calibration

Conversation

@obviyus

@obviyus obviyus commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

What

Prompt and review-rule changes only (prompts/review-item.md, instructions/pr-review-rules.md), policy 2026-10-08-policy-v34:

  • Paperwork is not merge work. Findings discipline rule 2 now keeps process concerns out of reviewFindings, risks, and a required nextStep, and names PR-body paperwork (timings, CI seconds, section headings, a new record of a command that already passed) as a process concern, also when target AGENTS.md asks for it or a PR-body check fails on it. Missing proof of the changed behavior stays a blocker. The prompt's AGENTS.md paragraph no longer routes "merge-readiness guidance" into risks; it points at that rule.
  • Merge conflicts come from GitHub's state only. Claim a conflict only when the context's pullRequest.mergeable is false or pullRequest.mergeableState is dirty for the reviewed head; null/unknown neither claims nor denies. Base drift belongs to the existing stale-base rule (the old text asked for a "rebase or review refresh" in risks, which became a blocker).
  • Plain, concrete Before-merge items. New Findings discipline rule 6: each risks entry, required nextStep, and finding title is one author action in plain words; no internal process names. overallCorrectness: patch is incorrect now needs a listed P0–P2 finding that says what is wrong.
  • proofPath calibration. A test in the PR that runs the changed code is in_process_harness or unit_only, never none.
  • No plumbing in public prose. Results, not wall-clock times, command inventories, or API request/file counts.
  • One gap, one place (model side). The proof prompt no longer tells the model to write "needs real behavior proof before merge" and re-review steps itself (the comment adds both, which doubled the prefix); missingE2e names the missing scenario in one sentence and summary does not repeat it.
  • Testing step 2 (addedTestFiles) removed and steps renumbered — the same hunk the presentation PR carries with its schema removal of that field.

Static prompt: 89,349 → 90,749 chars.

Why

Hosted audit 2026-10-08 (27 reviews on openclaw/openclaw):

  • #144991 blocked on "add the measured wall time … and CI seconds to the PR body"; #167362 on "rename the PR body's Problem/Proof headings"; #167374 on "record a successful pnpm build"; #167369 bundled CI seconds into its only blocker. All from target AGENTS.md PR-body policy.
  • #138087 (and #156636): P1 "head conflicts with current main" while GitHub reported CLEAN for the reviewed head.
  • #167126 "Complete the pending final-head validation handoff"; #167360 "missing-method failures"; #158148 "patch is incorrect" with no finding.
  • #167126 (an earlier revision): proofPath: none despite a ~190-line regression test.
  • #165844 "GitHub REST comparison returned 225 files across 15 later main commits" and wall-clock inventories in Evidence.
  • #167360 "Needs real behavior proof before merge: Needs real behavior proof before merge: …" — the model wrote the phrase because the prompt told it to; the host adds it too.

Proof

  • pnpm run build ✅; focused node --test test/review-prompt-policy.test.ts test/review-prompt-context.test.ts test/pr-review-quality.test.ts test/clawsweeper.test.ts → 194/194 pass.
  • pnpm run check → exit 0 (7240 tests, 0 fail).
  • Real local review, #144991 at the same head the hosted review used (33cc5ae9):
    CODEX_HOME=<tmp> pnpm run review -- --local-only --target-repo openclaw/openclaw --item-number 144991 --codex-model gpt-6.1-sol --codex-sandbox clawsweeper-review --output-retention debug --artifact-dir <dir>
    • Before (hosted, Revision 7): ⛔ Needs changes before merge - 1 item remains / - [ ] Complete next step (P2) - Add the measured wall time for pnpm test extensions/synology-chat/src/client.test.ts --maxWorkers=1 and the corresponding CI seconds to the PR body.
    • After: nextStep: none, risks: [], overallCorrectness: patch is correct, no findings, proof sufficient (terminal), tiers B/B/B, proofPath: in_process_harness. Rendered: ✅ Ready for maintainer review / ## Before merge / None. Summary: "…the focused repair has no actionable code findings. The earlier PR-body timing request is not a merge blocker under the current review rules." (Rendered with a hosted-style lease identity in front matter; a local-only run has no lease and the host adds its "Bind the durable review identity" item otherwise.)
  • Sanity run on #167362 (author has since fixed the headings, so it is no longer the paperwork case): keep_open, nextStep: none, risks: [], patch correct, proof sufficient (live_output), proofPath: shipped_entry_point, B/B/B.

Codex review dispositions

codex review --base main: "No actionable regressions found against the supplied merge base." No findings to dispose.

Merge Danger

  • Door: two-way. Prompt/rules text plus a policy version bump; revert restores v33.
  • Blast radius: every hosted review after deploy re-reviews under v34 (policy bump invalidates stored reviews). Risk: the model under-blocks a real PR-body requirement; mitigated because missing behavior proof stays an explicit blocker. Touches instructions/pr-review-rules.md Testing step 2 identically to the presentation slice PR (removes addedTestFiles); whichever lands second rebases trivially.

@clawsweeper

clawsweeper Bot commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added P2 Normal priority bug or improvement with limited blast radius. proof: sufficient Contributor real behavior proof is sufficient. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 8, 2026
@clawsweeper

clawsweeper Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 8, 2026, 3:01 PM ET / 19:01 UTC.

ClawSweeper review

What this changes

This PR updates review instructions to exclude paperwork-only blockers, ground conflict claims in GitHub’s merge state, and present concrete author actions without duplicate proof wording.

Example: A contributor submits an already-validated repair for review.

  • Before: The review blocks merge until measured test wall time and CI seconds are added to the PR body.
  • After: The demonstrated review reports no required next step and renders “Before merge: None.”

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, useful correction with real CLI before-and-after evidence and no actionable findings.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): The supplied local review CLI output exercises the changed prompt and rules against a real PR, showing removal of the earlier timing-only blocker and an empty rendered checklist. Coverage is a local review run rather than hosted publication; no stored-data contract changes.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes
User problem: Contributors receive Before-merge tasks for paperwork despite having already demonstrated a working repair.
Reason: The observed blockers contradict the established distinction between actionable defects and process advice. Prior merged area work establishes the author’s ownership context, and the demonstrated correction is worth its narrow scope.

Merge readiness

✅ Ready for maintainer review

This PR remains useful: current main lacks the correction, and the review found no actionable regression.

Priority: P2
Reviewed head: ec3ad8ca435bd72017a6369221be9e08fe7425bb

Before merge

None.

Findings

None.

Agent review details

How this fits together

ClawSweeper combines GitHub context, repository policy, and review instructions to produce structured PR assessments. Those assessments become public review comments and Before-merge checklists.

flowchart TD
  A[GitHub PR context] --> C[Review model]
  B[Repository policy and review rules] --> C
  C --> D[Findings and proof assessment]
  D --> E[Structured review result]
  E --> F[Public comment and Before-merge checklist]
Loading

Technical review

Best possible solution:

Keep review blockers tied to concrete defects, missing behavior evidence, and unresolved product contracts, with presentation wording owned by the comment renderer.

Do we have a high-confidence way to reproduce the issue?

Yes: the supplied before-and-after review of the same target head establishes the paperwork-only blocker, and current-main instructions contain the implicated guidance; this read-only review did not execute it independently.

Is this the best way to solve the issue?

Yes: correcting the shared review instructions addresses the source of the unwanted model output without adding a competing post-processing filter.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against ad52903dc9f1.

Provenance checked

  • instructions/pr-review-rules.md: testing classifications keeps the original intent (feat(review): judge PRs on product value, provenance and end-to-end proof #1755: Distinguish shipped-entry-point proof from weaker tests and let the model assess test value.)
  • instructions/pr-review-rules.md: findings discipline keeps the original intent (feat(review): encode the maintainers' standing review rules #1759: Keep each gap in one place and avoid multiple blockers for the same missing evidence.)
  • prompts/review-item.md: AGENTS policy routing changes intended behavior with a stated reason (197df62: Apply repository guidance while reserving findings for concrete actionable problems.)
  • prompts/review-item.md: proof heading and re-review wording keeps the original intent (197df62: Make missing real behavior proof visible and explain how contributors obtain a fresh review.)
  • prompts/review-item.md: merge-state and base-drift guidance changes intended behavior with a stated reason (ca92a1b: Prevent clean behind-base drift from being mistaken for removal of current-main behavior.)
  • src/clawsweeper-policy.ts: review policy version keeps the original intent (fix(review): point reviewers at REST GitHub reads #1764: Refresh stored reviews after changing the instructions for GitHub reads.)

Testing

Proof path: shipped entry point. Added test files: 2.

Security

None.

Evidence

What I checked:

Likely related people:

  • Ayaan Zaidi: Raw commit 197df62 adds instructions/pr-review-rules.md:21 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 197df625648b; files: instructions/pr-review-rules.md)
  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Takhoffman: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Labels

Label changes:

  • add P2: Incorrect review blockers create concrete contributor friction, while this correction has no demonstrated urgent runtime impact.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: Incorrect review blockers create concrete contributor friction, while this correction has no demonstrated urgent runtime impact.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/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.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only; repair and merge need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

@obviyus
obviyus merged commit ef72f4b into main Oct 8, 2026
23 of 26 checks passed
@obviyus
obviyus deleted the review-rules-paperwork-calibration branch October 8, 2026 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P2 Normal priority bug or improvement with limited blast radius. proof: sufficient Contributor real behavior proof is sufficient. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant