Repository navigation
refactor(review): retire dead decision fields - #1758
Conversation
Drop liveProofPlan (schema-pinned retired shape) and mantisRecommendation (copy-paste @openclaw-mantis suggestion; every OpenClaw Mantis workflow is workflow_dispatch-only, so the comment triggers nothing) from the review schema, prompt, decision type, parser, report document, comment rendering, and default decisions. Stored reports keep parsing: the Live Proof reader stays for the retained live-proof commands and attached-verification markers, and stale Mantis sections are ignored. Bump REVIEW_POLICY_VERSION to v29.
|
🦞👀 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:15 AM ET / 08:15 UTC (Revision 3). ClawSweeper reviewWhat this changesRemove retired live-proof planning and inactive Mantis recommendation fields from new review decisions, reports, and comments while preserving historical proof readers. Example: A maintainer reads a review with a stored Discord Mantis recommendation.
Review scores
ProductKind: Refactor · Worth it: Yes Merge readiness✅ Ready for maintainer review This PR remains useful, distinct maintenance work. The updated current-head CLI evidence resolves the prior proof request, and review found no actionable defect or remaining merge blocker. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherClawSweeper converts repository evidence into structured review decisions, stores reports, and renders GitHub comments and automation markers. This cleanup reduces the generated decision contract while retaining readers for historical proof artifacts. flowchart TD
A[Repository evidence] --> B[Review prompt and reduced schema]
B --> C[Model decision]
C --> D[Stored review report]
E[Historical proof reports] --> F[Compatible report readers]
D --> F
F --> G[Review comment and automation markers]
Technical reviewBest possible solution: Keep the reduced generation contract, historical attached-proof compatibility, and active Telegram proof labeling. Do we have a high-confidence way to reproduce the issue? Not applicable: this is retirement work rather than a reported bug; the base schema and renderer establish the existing overhead and suggestion behavior. Is this the best way to solve the issue? Yes: deleting generation and presentation plumbing while retaining historical readers is a narrow, maintainable cutover supported by current-head CLI evidence. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 11c625de8a3c. Provenance checked
TestingProof path: shipped entry point. Added test files: 7. 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 History |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
Summary
Every review sends the decision schema to the model and the model fills every field. Two fields cost tokens on every review and nothing acts on them; this removes them.
liveProofPlanstepsschema was still sent on every call.mantisRecommendation@openclaw-mantissuggestion that nothing acts on: openclaw/openclaw removed the Mantisissue_commenttriggers in openclaw/openclaw#126702 (all Mantis workflows areworkflow_dispatchonly), and openclaw'sdocs/concepts/mantis.mdroutes proof through@clawsweeper proof. Mantis proof receipts are separate and kept.telegramVisibleProofproof: telegram-e2elabel (100+ openclaw PRs, newest 2026-10-07) and the dashboard Telegram proof triage view.Readers of old stored reports keep their tolerant parsers (
reportLiveProofPlan, live-proof commands and attached-verification markers still use them).REVIEW_POLICY_VERSIONv28 → v29.Evidence
Production entry point, current head
c22475cbd. Command:pnpm run review -- --local-only --target-repo openclaw/openclaw --item-number 166090 --codex-model gpt-6.1-sol --output-retention summary(the shipped review CLI; macOS, Node 24.21). Target: openclaw/openclaw#166090 at headb14db4e6dcd4. Observed:review_status: complete, decisionkeep_open, rating C, and a full review comment rendered from the stored report. The run's own telemetry, compared with a run of the same PR on the previous main:## Live Proof/ Mantis sections in the stored reportThe model produced a valid decision without the retired fields, so generation works with the reduced schema; publication uses the same renderer covered by the old-report comparison below. Nothing was posted from this run (local-only).
reviewAutomationMarkersFromReportandrenderReviewCommentFromReporton the base and on this branch: automation markers and comments are byte-identical for all 8. A copy of 166082 with a recommended Mantis section differs only by the removed### Mantis proof suggestionblock; markers identical.pnpm run checkpassed (7,230 tests, 0 failed). Focused suites after rebasing on feat(review): show review scores above the product verdict #1757: 241/241./reviewagainst main: no actionable defects.Limits: one live review; output-token savings per review are not measured, only the input reduction. No hosted publication from this head yet. Prior proof request (current-head entry-point trace) is answered by the run above.
Merge Danger
Door: two-way. Old reports parse unchanged; a revert restores both fields.
Blast radius: PR review comments lose the "Mantis proof suggestion" / "Proof path suggestion" blocks; every review sends ~10 KB less schema and prompt.
OpenClaw Bay
Not affected: no dashboard code reads
live_proof_*ormantis_recommendation_*front matter; the Telegram proof triage view keeps its label.