Repository navigation
fix(review): align required proof comments and status labels - #1310
Conversation
Use the shared host proof projection for review comments and status labels while preserving recorded reviewer assessments and the existing proof merge gate.
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 30, 2026, 3:30 PM ET / 19:30 UTC. ClawSweeper reviewWhat this changesThe PR centralizes required-proof policy evaluation and applies it consistently to merge readiness, review comments, automation markers, and PR status labels. Merge readinessKeep this PR open for normal maintainer review. The introduced shared policy consistently distinguishes a recorded not-applicable assessment from a host-required proof gate, and the supplied native replay directly exercises the rendered output. Priority: P2 Review scores
Verification
How this fits togetherClawSweeper turns stored Codex review reports into public PR comments, labels, and merge/apply decisions. The new policy layer consumes recorded proof and verification state, then feeds those presentation and workflow outputs. flowchart LR
A[Stored review report] --> B[Proof policy projection]
B --> C[Merge readiness]
B --> D[Public review comment]
B --> E[PR status labels]
B --> F[Automation markers]
C --> G[Apply and merge gates]
Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain one canonical proof-policy projection, preserving recorded reviewer facts while testing contributor, docs-only, override, failed-review, and verification-receipt boundaries at every output surface. Do we have a high-confidence way to reproduce the issue? Yes, at high confidence: the PR body supplies an exact-head native replay of the production parser/policy/renderer using a sanitized real review artifact, and the source defines the asserted proof-policy path. Is this the best way to solve the issue? Yes. A single shared policy projection removes duplicated interpretations without rewriting valid reviewer assessments or widening the existing proof exemption. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 74b0f8552fde. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Maintainer disposition for The remaining checklist item describes general automation-routing risk, not a concrete defect. The current ClawSweeper review reports no actionable findings or security concerns, sufficient terminal proof, and readiness for maintainer look. Acceptance is supported by the exact-head native replay, 94 passing focused tests, unchanged results across 3,456 policy-input combinations and 600 report-level gate/marker controls, and clean precommit and committed-branch Codex reviews through P2. This accepts ordinary maintenance risk; it does not grant a proof override or broaden merge policy. Recorded N/A facts, the narrow |
What Problem This Solves
Resolves contradictory PR review guidance when the reviewer records real-behavior proof as
not_applicablebut the host's existing proof policy still requires it. A real README-only local-range review said proof was needed before merge, displayed Real behavior: Not applicable, and added an Add real behavior proof — Not applicable checkbox. The same split could select anautomerge armedstatus while the machine verdict correctly remainedneeds-human.Why This Change Was Made
One read-only host proof-policy projection now supplies merge blocking, readiness, verification, checklist guidance, and public/apply-time status selection. It retains the recorded reviewer assessment separately rather than rewriting valid N/A data or trusting it as an exemption.
The existing
docs/-only exemption remains narrow: rootREADME.mdis not newly exempt. Trusted-author, override, authority-chain, and machine merge/repair/close decisions are preserved. Historical verification failures remain separate maintainer-owned blockers; failed reviews stay unassessed instead of acquiring positive readiness labels.User Impact
Required proof has a consistent status and an actionable reason across the comment and labels. Recorded N/A context and ratings remain visible as the reviewer's assessment, not as permission to bypass host policy. No merge-policy broadening or historical comment rewrite is included.
OpenClaw Bay Impact
No Bay code or schema change is needed. Its observer projection does not consume this proof assessment or checklist.
Documentation Impact
Updated the active
docs/pr-review-comments.mdguidance to distinguish the recorded assessment from the host requirement, including receipt ownership, and added the user-facing changelog entry. ReviewedAGENTS.md,CONTRIBUTING.md, the documentation index, and the owning review/policy guidance. No prompt or schema policy was broadened.Evidence
Real Behavior Proof
Claim and exercised surface: the built production report parser/policy/comment renderer now projects a required proof assessment consistently without changing the underlying proof gate or recorded N/A facts.
Scenario: replay the complete sanitized report from an actual native local-range Codex/TruffleHog review of a synthetic README-only PR. Its facts are
author_association: CONTRIBUTOR,pull_files: ["README.md"], and proof{status: "not_applicable", evidenceKind: "not_applicable", needsContributorAction: false}. These are real prior reviewer results, not a newly fabricated model response.Current source:
fc057e80383a1721f4fa9b2b37e2217d02b8a5f0, based on74b0f8552fde46842a933ca360ed272f0212193e. Environment: macOS, Node 24.20.0, repository-pinned pnpm 11.10.0.CLAWSWEEPER_TARGET_REPO=openclaw/clawsweeperis set before importingdist/clawsweeper.js.Executed native replay:
Observed: the headline and machine verdict continue to block proof; verification now says Required by policy, readiness is blocked, and the checklist explains why recorded N/A does not satisfy the current policy. The original report bytes, proof fields, repository links, and provenance roles remain unchanged.
{ "repositoryContext": "openclaw/clawsweeper", "contextSetBeforeImport": true, "proofGateStillBlocks": true, "verdictStillNeedsHuman": true, "originalArtifactUnchanged": true, "allAssertionsPassed": true }Input report SHA-256:
da92b5a662db5bfc4ca3b887a939b227c4880a2bc735b6c864e6b09edd186010.Final native Markdown SHA-256:
4e5d2c2e5c47da08a9adb599f7b949821215cc6e65a615551599fce67745d624.The captures below show that actual native Markdown output, rendered locally with synthetic-only content. They are not screenshots of a historical GitHub comment being edited.
Limits: this is deterministic host-render proof using an existing real review artifact, not a fresh provider review. The disposable browser only presents local Markdown and makes no external page requests. The proof does not exercise GitHub publication or authorize a policy exemption. Tests, gate parity, CI, and current PR review support the native-render claim rather than substitute for it.