Skip to content

fix(review): keep rating steps and security concerns from restating findings - #1760

Merged
obviyus merged 1 commit into
mainfrom
review-dedupe-blockers
Oct 8, 2026
Merged

obviyus merged 1 commit into
mainfrom
review-dedupe-blockers

Conversation

@obviyus

@obviyus obviyus commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Hosted reviews after #1759 still listed the same work several times when the patch tier was D or F: each typed finding, then the rating's rank-up steps (Improve patch quality, required work at D/F) restating those findings, plus a security concern restating a P1 finding. This extends Findings discipline rule 4 (one gap, one place): leave prRating.nextSteps empty when reviewFindings already list the remaining work, and keep a securityReview concern only for what the matching finding does not say. REVIEW_POLICY_VERSION v30 → v31.

Evidence

openclaw/openclaw#166604, hosted comment vs a local review through the shipped CLI (pnpm run review -- --local-only --target-repo openclaw/openclaw --item-number 166604 --codex-model gpt-6.1-sol, macOS, Node 24.21), Before-merge items:

Items
hosted (main) proof, 5 findings, security concern, next step, Improve patch quality ×2, maintainer decision (11)
this branch proof, 5 findings, security concern (now a distinct authority proof ask), next step, maintainer decision, 2 provenance overrides the model newly found (11)

The two restating Improve patch quality items are gone; the count stays 11 because the reviewer surfaced two real provenance overrides. Prompt suites 108/108; check:static passes.

Limits: one PR, one run; wording-level rule applied by the model.

Merge Danger

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

Blast radius: hosted PR reviews with D/F patch tiers show fewer restated blockers.

@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 P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. 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, 5:57 AM ET / 09:57 UTC.

ClawSweeper review

What this changes

The branch tells reviewers to avoid repeating findings in rating steps and security concerns, and advances the review policy version.

Example: A maintainer reads a review with five findings and a low patch rating.

  • Before: The reported hosted review adds two “Improve patch quality” items that repeat the findings.
  • After: The reported branch review omits both repeated items while retaining the findings and distinct blockers.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused correction with concrete CLI observations and no identified defect, bounded by one stochastic review run.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): The PR body's shipped review-CLI comparison exercises the changed model instructions on a real GitHub PR and reports removal of both duplicate rating blockers while preserving distinct concerns. Coverage is one model run, not a deterministic guarantee; no stored-data contract changes.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Maintainers see the same repair listed several times as separate Before-merge blockers.
Reason: Repeated blockers conflict with the established one-gap rule. This small clarification preserves the direction already established by the area's prior merged work.

Merge readiness

✅ Ready for maintainer review

This PR is a useful, narrowly scoped correction with shipped-CLI evidence and no actionable patch findings. Current main contains the broader deduplication rule but lacks these specific instructions.

Priority: P3
Reviewed head: 981f39ef4ade13a0894ae5f5e14f6410775135b7

Before merge

None.

Findings

None.

Agent review details

How this fits together

ClawSweeper supplies review rules to a model that produces structured PR assessments. Those assessments become GitHub review comments and Before-merge checklists.

flowchart TD
 A[PR source and discussion] --> C[Model review]
 B[Review rules] --> C
 C --> D[Findings and assessments]
 D --> E[Checklist renderer]
 E --> F[GitHub review comment]
Loading

Technical review

Best possible solution:

Keep remediation in its owning assessment field while preserving distinct security and proof obligations.

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

No deterministic current-main reproduction was established; the PR supplies a concrete hosted-versus-branch CLI comparison, but model wording varies between runs.

Is this the best way to solve the issue?

Yes. Clarifying the shared model instructions addresses semantic duplication without adding a competing string-matching deduplication layer.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

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

Security

None.

Evidence

What I checked:

  • Introduced changes: The pinned delta changes only the findings-discipline instructions, the policy version, and one changelog fragment. (instructions/pr-review-rules.md:211, 981f39ef4ade)
  • Existing product direction: feat(review): encode the maintainers' standing review rules #1759 introduced one gap, one place to prevent duplicate blockers. This PR extends that accepted direction. (instructions/pr-review-rules.md:207, dbd42faaac59)
  • Rating output remains compatible: Rating normalization preserves an explicitly empty nextSteps array for D/F ratings; the checklist fallback is suppressed when typed findings already explain the blocked patch. (src/clawsweeper-rating.ts:135, 981f39ef4ade)
  • Real CLI observation: The complete PR body reports pnpm run review -- --local-only --target-repo openclaw/openclaw --item-number 166604 --codex-model gpt-6.1-sol on macOS with Node 24.21. Compared with the hosted review, both repeating Improve patch quality items disappeared; a distinct authority-proof concern remained. Limits are one PR and one stochastic model run. This review did not execute the command. (981f39ef4ade)
  • Bay and stored-state scope: No Bay update is needed: its status and lifecycle projections are unchanged. The PR changes model instructions and policy identity without changing persisted record formats or migrations. (docs/openclaw-bay-demo.md:274, 981f39ef4ade)
  • Read-only validation: The full root AGENTS.md was read; no applicable nested policies or maintainer-notes directory were found. Diff whitespace validation passed and the checkout remains clean. Builds and tests were not run under the read-only contract. (AGENTS.md:1, 981f39ef4ade)

Likely related people:

  • Ayaan Zaidi: Raw commit dbd42fa adds instructions/pr-review-rules.md:207 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: dbd42faaac59; files: instructions/pr-review-rules.md)

Labels

Label changes:

  • add P3: This is a narrow review-output clarity improvement with no runtime, permissions, or stored-format change.
  • 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 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is a narrow review-output clarity improvement with no runtime, permissions, or stored-format change.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • 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 7204939 into main Oct 8, 2026
24 checks passed
@obviyus
obviyus deleted the review-dedupe-blockers branch October 8, 2026 10:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. 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