Skip to content

feat(review): encode the maintainers' standing review rules - #1759

Merged
obviyus merged 1 commit into
mainfrom
review-one-gap-one-place
Oct 8, 2026
Merged

obviyus merged 1 commit into
mainfrom
review-one-gap-one-place

Conversation

@obviyus

@obviyus obviyus commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Adds the review rules the maintainers keep repeating to their own agents, so ClawSweeper checks them on every PR, and stops one gap from appearing as several blockers.

Source: 1,940 typed maintainer prompts across OMP, Claude Code and Codex sessions (2026-09-11..10-08), clustered into repeated themes. Each new rule maps to a theme that was missing or partial in the review rules:

Rule (instructions/pr-review-rules.md) Theme (sessions / prompts)
Change rule 2: production growth needs a stated reason; prefer net-negative Net-negative diffs, no slop (40 / 80)
Change rule 3: root cause, not a symptom patch Fix the root cause (32 / 77)
Testing rule 7: upgrade from the latest stable release when config, defaults, stored data, Doctor or a protocol change Upgrade-safe (23 / 44)
Product rule 5: every hunk serves the stated problem Stay in scope (22 / 38)
Findings rule 5: ask only for work a real input needs No over-engineering (21 / 44)
Change rule 7: user messages say what happened and the next action Junk/spam user messages (17 / 46)
Change rule 8: public-text hygiene (private names, AI boilerplate) Public text hygiene (12 / 23)
Change rule 4: fix shared behavior in the shared owner Fix in core, not one consumer (10 / 14)
Change rules 5–6: model judgement over regex judges; restrictions need a trust boundary No security theater / regex judges (7 / 12)
Findings rule 4: one gap, one place (a proof gap is never also a risks blocker) Observed in hosted reviews after #1755

prompts/review-item.md no longer recommends "an explicit strict config option" as the compatibility fix; it prefers a migration, a Doctor repair or a clear in-product error, and recommends a new option only when an owner asked. REVIEW_POLICY_VERSION v29 → v30.

Evidence

Hosted reviews since #1755 deployed (21 openclaw/openclaw PRs) repeated one proof gap as "Add real behavior proof", "Resolve merge risk (P1)" and "Complete next step". Local reviews through the shipped CLI (pnpm run review -- --local-only --target-repo openclaw/openclaw --item-number <n> --codex-model gpt-6.1-sol, macOS, Node 24.21) with the one-gap rule, compared with the hosted comment on the same PR:

PR Hosted Before-merge items This branch
openclaw/openclaw#166293 3: merge risk (P1, restates pending proof), next step, config compatibility 1: config compatibility
openclaw/openclaw#166908 3: P1 finding, merge risk (P1, restates missing proof), next step 2: real behavior proof, next step
openclaw/openclaw#166997 3: real behavior proof, merge risk, next step 3: the merge risk is now a distinct stale-base concern

pnpm run check passed (7,230 tests, 0 failed). Prompt-pinning suites: 141/141.

Limits: three PRs, one run each; the other new rules are wording that the model applies, measured only by future hosted reviews. The local proof runs used the one-gap rule; the remaining rules landed after them.

Merge Danger

Door: two-way: prompt and rules text plus a policy version bump.

Blast radius: every hosted PR review. Expect fewer duplicate blockers and more findings for symptom patches, single-consumer fixes, regex judges, restrictions without a boundary, and bad user messages.

@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. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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, 5:08 AM ET / 09:08 UTC.

ClawSweeper review

What this changes

The branch expands shared PR-review guidance, replaces the default recommendation for strict configuration options, and advances the review policy version.

Example: ClawSweeper reviews openclaw/openclaw#166293

  • Before: The recorded hosted review lists three Before-merge items, including repeated proof work.
  • After: The recorded branch review with the one-gap rule lists one configuration-compatibility item.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The focused implementation has useful real-entrypoint evidence for part of the change, but proof does not cover the final ruleset.
Proof confidence 🦐 gold shrimp (3/6) Not applicable: Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes
User problem: Contributors receive repeated requests for the same missing evidence, and maintainers repeatedly restate review expectations.
Reason: The recorded review comparisons establish useful value, and the shared rules avoid adding a competing implementation. Prior merged framework ownership supplies direction for this focused expansion.

Merge readiness

✅ Ready for maintainer review

This PR remains useful and needs real behavior proof before merge for the current ruleset. The recorded CLI comparisons demonstrate the duplicate-blocker improvement, but explicitly predate the remaining rules; no concrete patch defect was established.

Priority: P2
Reviewed head: 8cf526c762ebec022e70be69b42fcd5ef0632905

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The reported production CLI comparisons precede the remaining rule changes; no recorded run establishes the final ruleset's behavior at the reviewed head, and a base-fail/head-pass regression was not shown.
Agent review details

How this fits together

ClawSweeper combines repository source and GitHub discussion with shared instructions for a model review. The resulting decision becomes a stored report, public comment, and readiness signals.

flowchart LR
  A[GitHub PR context] --> C[Review prompt assembly]
  B[Shared review rules] --> C
  C --> D[Model assessment]
  D --> E[Stored review decision]
  E --> F[Comment and readiness signals]
Loading

Technical review

Best possible solution:

Keep review judgment in the shared rules while preserving concrete-defect requirements, distinct compatibility warnings, and one presentation of each remaining blocker.

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

Not applicable to the policy expansion as a single bug; the body provides real CLI comparisons demonstrating repeated blockers and the earlier branch's improvement.

Is this the best way to solve the issue?

Yes: extending the existing model instructions is the narrowest implementation path, and the author has prior merged ownership of that framework; confidence in the final ruleset still requires current-head observations.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • instructions/pr-review-rules.md keeps the original intent (feat(review): judge PRs on product value, provenance and end-to-end proof #1755: Make product value, provenance, real-entrypoint proof, and model-owned judgment central to PR review.)
  • prompts/review-item.md: upgrade-sensitive fallback guidance changes intended behavior with a stated reason (12830cd: Expose upgrade-sensitive hard failures and recommend compatible defaults with explicit strict opt-in when that avoids breaking users.)
  • test/review-prompt-policy.test.ts keeps the original intent (ff8181e: The recorded commit summary describes splitting prompt proof-label policy coverage; the commit-to-PR lookup returned no associated PR.)
  • src/clawsweeper-policy.ts: review policy version keeps the original intent (refactor(review): retire dead decision fields #1758: Advance policy freshness after retiring unused decision fields.)

Testing

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

Security

None.

Evidence

What I checked:

  • Verified introduced scope: The pinned delta changes five files: shared rules, compatibility guidance, the policy version, one existing policy test, and a changelog fragment. The new guidance is absent from pinned main, and the related merged PR establishes the framework rather than replacing this work. (instructions/pr-review-rules.md:144, 8cf526c762eb)
  • Production loading path: The existing production prompt builder reads the shared rules and appends them for PR reviews. The policy hash incorporates both the rules and policy version, so this branch uses the established owner rather than creating a parallel path. (src/clawsweeper-review-runtime.ts:496, 8cf526c762eb)
  • Recorded CLI proof and explicit limits: The complete body records local-only production CLI reviews on macOS with Node 24.21 against three real PRs, with Before-merge counts changing 3→1, 3→2, and 3→3. It expressly says the remaining rules landed after these runs. Captured source identity: 3b8d6cee1dd263fbf0ff9f4f194bffc1c31038963be2af4845483612c9f160f4. The live body confirms the same scope and limitations. (8cf526c762eb)
  • Review framework provenance: The rules framework appears in commit 197df62 and the merged feat(review): judge PRs on product value, provenance and end-to-end proof #1755. Its stated purpose was product-first review, provenance, real-entrypoint proof, and model-owned judgments. The raw commit records parent 34cc1aa. (instructions/pr-review-rules.md:197, 197df625648b)
  • Compatibility guidance provenance: History finds the strict-option recommendation in commit 12830cd. The body of fix(review): surface upgrade-sensitive PR risks #104 explains that existing fallback users could otherwise discover hard failures only after upgrading. This PR explains its replacement recommendation while retaining warnings about broken existing setups. (prompts/review-item.md:103, 12830cd03034)
  • Relevant ownership history: Main-branch history connects Ayaan Zaidi to the merged review framework and Peter Steinberger to repeated prompt maintenance, including removal of redundant maintainer sign-off. Shortlog records 7 and 87 commits respectively on the sampled rules and prompt paths; these support reviewer routing, not causal attribution. (instructions/pr-review-rules.md, f47043cca05d)

Likely related people:

  • Ayaan Zaidi: Raw commit 197df62 adds instructions/pr-review-rules.md:164 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)
  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Labels

Label changes:

  • add P2: This is a normal-priority improvement to shared review quality and contributor-facing blocker clarity.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp 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: This is a normal-priority improvement to shared review quality and contributor-facing blocker clarity.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Refresh the reported CLI comparisons on the current head and put observed review output in the PR body; terminal screenshots, logs, or copied live output are acceptable. Redact private addresses, keys, and endpoints. Updating the body triggers a fresh review, or a maintainer can comment @clawsweeper re-review.

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 dbd42fa into main Oct 8, 2026
23 checks passed
@obviyus
obviyus deleted the review-one-gap-one-place branch October 8, 2026 09:27
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. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. 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