Repository navigation
fix(review): state each proof gap once and publish only verified facts - #1767
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, 3:32 PM ET / 19:32 UTC. ClawSweeper reviewWhat this changesThis PR removes repeated proof requests, hides unverified people, corrects native-app classifications, and derives added-test counts from recorded file status. Example: A reviewer reads an OpenClaw PR that modifies four existing test files
Review scores
ProductKind: Bug fix · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review This PR remains useful: current main still produces the audited presentation errors, and the merged rules change addresses only the model-side guidance. No actionable patch defect was found. Priority: P2 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherClawSweeper turns structured review decisions and GitHub file metadata into saved reports and public review comments. These changes affect the explanations and statistics readers see while preserving the existing proof and merge gates. flowchart TD
A[Review decision] --> C[Saved review report]
B[GitHub or local Git file metadata] --> C
C --> D[Proof policy]
C --> E[Verified people and file statistics]
D --> F[Public comment renderer]
E --> F
F --> G[Review scores and Before merge guidance]
Technical reviewBest possible solution: Keep factual counts and attribution host-owned, with one actionable proof request and a separate description of the missing scenario. Do we have a high-confidence way to reproduce the issue? Yes: base source and the supplied before/after rendered comments establish the repeated proof text, misleading test count, and native-source misclassification; this read-only review did not execute target code. Is this the best way to solve the issue? Yes: the repairs stay in the existing renderer, report adapters, and file-role owner, while preserving proof gates and tolerating older reports. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against ef72f4b940b4. Provenance checked
TestingProof path: in-process harness. Added test files: 10. SecurityNone. EvidenceWhat I checked:
Likely related people:
Review metrics
LabelsLabel 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 |
What
Host-side rendering fixes from the 2026-10-08 hosted-review audit (defects 4, 5, 6, 8-host, 9). No prompt/instruction changes in this PR (the retired
testingReview.addedTestFilesinstruction step already landed identically in #1765).publicReviewScoresBlock): theProof confidencecell no longer prints "Not applicable" beside a rated tier. With a rated tier and no proof block, it shows the proof summary (sufficient/override keep their status word). Only anNAtier reads "Not applicable". When proof blocks merge, the cell only says "Real behavior proof is necessary before merge. See Before merge."Add real behavior proofBefore-merge item owns the proof ask. The host no longer adds the "Needs real behavior proof before merge:" prefix (it doubled the model's own prefix on #167360). Thestatus:label justification is now only the label meaning.### Testskeeps the missing end-to-end scenario (a different fact from the proof assessment; see Codex disposition 2).likelyOwnerLinespublishes only people tied to a verified commit. Unverified routing candidates andunknownplaceholders are dropped; the section is omitted when none remain (keep-open and close comments).apps/(Swift, Kotlin) is a Source root; Swift*Tests/dirs and Gradlesrc/test*//src/androidTest*/source sets are Tests. "Added test files: N" moves to the host PR-surface summary and counts only test files whose GitHub status isadded. Reports written before file status was stored omit it. The model fieldtestingReview.addedTestFiles(instructions said "adds or changes") is deleted from schema, parser, types, and report. Local-range reviews now record GitHub file status words (added,modified,renamed, ...) instead of git letters, so the count works there too.Why
Audit: local hosted-audit-2026-10-08.md.
Proof
Before =
ad52903dc(main) dist; after = this branch's dist. Reports are built from a real saved report (166082.md), with each audited PR's hosted-comment proof/rating/testing/owner text and the real GitHub file list with status (gh api repos/openclaw/openclaw/pulls/<n>/files). Rendered withrenderReviewCommentFromReport(report, "none"). Excerpts are fromdiff before/<n>.md after/<n>.md:#167360 (external, mock-only proof):
The one remaining "Needs real behavior proof before merge:" is model text. The Rules slice removes the prompt line that tells the model to write it.
#167367 (MEMBER, rated proof tier):
#165844:
#167378 (Kotlin):
Tests (focused, against dist):
node --test test/pr-proof-automation.test.ts test/pr-review-labels.test.ts test/pr-surface-stats.test.ts test/regression-provenance.test.ts test/review-close-policy.test.ts test/review-comment-rendering.test.ts test/pr-review-comment-risk.test.ts test/openclaw-file-role.test.ts test/pr-review-quality.test.ts→ 217 pass, 0 fail.apps/runtime.ts → otherpin is nowsource;addedTestFilesparser pins are deleted.pnpm run check(full, on the branch before the rebase onto fix(review): keep paperwork and stale conflicts out of Before-merge items #1765 and before the last Tests-line commit): EXIT 0, all tests passed. After the rebase: build,check:changelog, oxfmt check, and focused tests (pr-proof-automation,review-comment-rendering,pr-review-labels,review-prompt-policy,pr-review-quality,pr-surface-stats,local-range-review) pass.Codex review dispositions
codex review --base main:instructions/pr-review-rules.mdstill asked fortestingReview.addedTestFiles, which the new schema rejects). Valid, fixed: fix(review): keep paperwork and stale conflicts out of Before-merge items #1765 (Rules slice) merged the identical deletion. The rebase dropped this branch's copy. The review policy hash includes the schema text, so cached reviews are invalidated.missingE2eunder Tests when proof blocks merge dropped the required scenario, which the Before merge item (realBehaviorProof.summary) does not carry. Valid, fixed by keeping the Tests line. The duplication that remains is model text (summary vs. missingE2e), and the Rules slice owns that.pnpm run checkalso showed that local-range reviews persisted git status letters. Fixed by mapping them to GitHub words at the local producer, with the tests updated.Merge Danger
Added test files:line still parse (the line is ignored).clawsweeper-label-presentation.ts, but only the status-label justification hunk (agreed with that slice).isOpenClawTestRolePathis shared with config/data-model detection, so native test targets are now also excluded there.