Repository navigation
fix(review): status label contradicts Before merge; regex classifiers add refuted blockers - #1766
Conversation
|
🦞👀 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. Reviewed October 8, 2026, 4:05 PM ET / 20:05 UTC (Revision 3). ClawSweeper reviewWhat this changesThe branch derives PR status labels from the Before-merge checklist, removes host config and storage classifiers, and clarifies remaining host-generated blockers. Example: A review requires recording four completed recovery-cell results
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR remains useful: current main still permits contradictory readiness guidance, and no actionable introduced defect was found. Priority: P2 Before mergeNone. FindingsNone. Provenance
Agent review detailsHow this fits togetherClawSweeper turns saved model reviews into GitHub comments, status labels, and advisory automation markers. The changed publication layer determines how outstanding review work appears to contributors and maintainers. flowchart LR
A[Model review] --> B[Saved review report]
B --> C[Before-merge checklist]
C --> D[Readiness decision]
D --> E[GitHub status labels]
C --> F[Published review comment]
D --> G[Advisory automation markers]
Technical reviewBest possible solution: Use the existing checklist owner for readiness while retaining explicit model compatibility assessments and independent proof, security, and publication safeguards. Do we have a high-confidence way to reproduce the issue? Yes. Current-main source uses separate checklist and label predicates, and the supplied paired CLI output demonstrates their disagreement; this review did not execute target code. Is this the best way to solve the issue? Yes. Reusing the existing checklist calculation removes the competing readiness decision and follows the established model-owned judgment direction. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 602e573750d0. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Review metrics
LabelsLabel changes: No label 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 History |
044caf7 to
e377da0
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
e377da0 to
1e00f00
Compare
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
What
pullRequestReviewReadinessFromReport).status: 👀 ready for maintainer lookappears only when## Before mergeisNone.. Aneeds-changesitem routes tostatus: ⏳ waiting on author; a blocked item with no author work gets no status label. The parallel predicate (isReadyForMaintainerLook/hasBlockingReviewFindings/ correctness checks) is deleted. The comment fallback (prStatusLabelKindFromReportLabels) now calls the same label policy instead of reusing stale labels.src/clawsweeper-change-detection.ts(config-surface, data-model and SQLite regex classifiers), theirconfig_surface_*/data_model_*/sqlite_schema_*front matter, theReview config compatibilityand genericAdd data-model compatibility proofblockers, the### Stored data modelsection, the topSQLite table changewarning, the automationneeds-humangates, the classifier tests (test/pr-surface-policy.test.ts, 14 fixtures), and the proof scripts/docs that only exercised the classifier.isDocsPathmoved tosrc/openclaw-file-role.ts.Add data-model compatibility proofnow appears only when Codex recordsrealBehaviorProof.dataModelCompatibility: insufficient, with an actionable detail. The schema/prompt field is unchanged.Correct the reviewed patchcarries the review's own rating summary instead of "Address the incorrect patch assessment". A superseded PR kept open by the close-coverage check getsMaintainer: close or keep this PR(maintainer audience, plain words) instead of asking the author to "Complete the pull request close-coverage proof". The automation gate for that state now follows readiness (blocked →needs-human, same markers as before).Why
Audit of 27 hosted reviews (2026-10-08, main ad52903):
status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left.unknown-truncated-pull-files). Maintainer rule: no regex/code judges; the model owns merge risk viarisks,mergeRiskLabels, anddataModelCompatibility.Proof
Production path: real review → shipped publisher (
apply-decisions)Environment: macOS 27.0 (arm64), Node v24.21.0. (The receipt below was run on
e377da05e. The current head1e00f0021is that branch rebased onto main602e57375(#1767); the only conflict was the docs test-role paragraph.pnpm run checkon1e00f0021: exit 0, 6961 pass, 0 fail.) Branch builde377da05e(this PR, rebased on main). Baseline buildef72f4b94(origin/main, includes #1765), checked out withwt switch -c verdict-proof-main -b origin/mainand built withpnpm run build.6c05dc5b. The hosted comment 6066244216 shows "Needs changes - 1 item", a### Stored data modelsection for 13scripts/e2e/...test-harness files, andstatus: 👀 ready for maintainer look.decision: keep_open,next_step: required "Record the four completed positive packed-candidate recovery-cell results.",risks: none,Overall correctness: patch is correct,real_behavior_proof_data_model_compatibility: not_applicable, author association MEMBER.config_surface_*,data_model_*andsqlite_schema_*were computed with main's compiled classifiers on the PR's REST file list (helper below). The result matches the hostedStored data modellist. The local-only run has no lease, so both copies get the hosted lease identity (review_lease_owner: github-run-37829619465-1,review_lease_comment_id: 6067121417). Without it the host adds its "Bind the durable review identity" item, as in fix(review): keep paperwork and stale conflicts out of Before-merge items #1765.node dist/clawsweeper.js apply-decisions --target-repo openclaw/openclaw --apply-kind all --sync-comments-only --item-numbers 167377 …, from each build.ghis the repo's recording stub (promotionGhMockfromtest/helpers.ts), loaded with the PR's live labels, so nothing is published to GitHub. The stub cannot reproduce GitHub's activity digests, so the driver swaps in the stub's emptyreview_activity_cursorand setsreview_timeline_revision: unknown. Without this, apply defers to a fresh review or skips label sync. Review content and decision fields do not change. Captured: the comment body that apply wrote, thegh issue editlabel calls, and the automation markers. Timestamps and lease attributes are trimmed from the markers.Main reproduces both hosted defects in the shipped publisher. It adds a classifier blocker and a
Stored data modelsection to a test-harness change, and it keepsready for maintainer looknext to "Blocked - 2 items remain" (no label call). The branch publishes one model-owned item. It moves the label towaiting on authorwith realgh issue editcalls, and the review-state marker changes fromblockedtoneeds-changes.The first attempt was #166703. It failed before the model ran ("Review source preparation failed.", a git fetch of the moved head
793a0f77), so the proof uses #167377.Throwaway drivers (not committed)
publish-proof.ts(run asnode publish-proof.ts <clawsweeperRoot> <report.md> <liveLabelsJson> <worktree>/test/helpers.ts):main-classifier-fields.ts(run asnode main-classifier-fields.ts <mainRoot> 167377):Render fixtures from hosted data (secondary)
Re-rendered fixtures rebuilt from the hosted comments' data (#166703 comment 6044785137, #167380 comment 6066198683, #158148), rendered with main's
dist(ad52903) and this branch'sdist(throwaway script, not committed):(For #167380 the "before" fallback render showed no status line because main's fallback only reuses existing labels; the hosted apply path computed and published
ready— see the hosted comment.)Tests:
test/review-state-contract.test.ts: new "the PR status label says ready only when Before merge lists no item" (real report → comment + label section), "host path classifiers no longer add Before-merge items or warnings" (legacy classifier front matter is inert; a modelrisksP1 still blocks), "host blockers name the real owner and reason".test/pr-label-policy.test.ts: new "ClawSweeper PR status is ready only when Before merge lists no item"; obsolete rank-up/findings-priority cases removed.test/compatibility-proof.test.ts: rewritten to the model-owned signal (onlyinsufficientholds; proof exemptions cannot waive it).test/pr-surface-policy.test.ts+test/fixtures/persistence-classifier-*.json(classifier-only), the config-classifier case intest/pr-proof-automation.test.ts.pnpm run check: static checks, build, lint, changed-coverage (13/13) and full suite ran; 6955 passed, 1 failed:apply-decisions routes parsed security owner acceptance to maintainer review, which pinned the removed behavior (owner-acceptance security item listed under Before merge but labelready). Updated it to assert noready/waitinglabel while the item is listed; rerun alone: pass.pnpm run lintrerun after removing an unused dependency: pass.test/apply-label-sync.test.ts: security owner acceptance that still renders a Before-merge item no longer getsready for maintainer look(deliberate: one owner; the item itself names the maintainer action).Codex review dispositions
codex review --base main(on cb451f0, the full change before rebase): "No actionable defects were found in the changes against the supplied merge base." Nothing to disposition. Later commits only drop an unused dependency and update one test that pinned removed behavior.Merge Danger
config_surface_*/data_model_*front matter, so no data migration either way.ready for maintainer lookis removed from PRs that still list Before-merge items, and blocked-only PRs lose the status label. Automerge behavior is unchanged except that classifier-only holds no longer forceneeds-human; model-recordeddataModelCompatibility: insufficientstill blocks.docs/pr-review-comments.mdupdated (Before-merge owns readiness and status label; model-owned stored-data signal; classifier text removed). Removed proof directories only documented the deleted classifier (history keeps them).