Repository navigation
fix: trust source-backed triage and apply all safe close reasons - #1015
Conversation
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
@clawsweeper re-review |
|
Codex review: needs maintainer review before merge. Reviewed August 2, 2026, 3:11 PM ET / 19:11 UTC. ClawSweeper reviewWhat this changesThis PR makes direct, queued, and exact-batch review publication use the shared automatic-close policy, forwards relevant close-policy settings, and blocks labels containing Merge readinessKeep this PR open for maintainer review. The current head consistently replaces divergent publication allowlists with the shared close-reason policy, retains the downstream repository, freshness, protected-label, and reason-specific gates, and adds targeted regression coverage; I found no discrete patch defect. The operational choice is whether the broader default may reach immediate publication paths, so it needs explicit maintainer confirmation rather than automatic landing. Priority: P2 Review scores
Verification
How this fits togetherClawSweeper turns Codex review decisions into durable records, then its apply lane rechecks live GitHub state and repository policy before syncing comments or closing an item. This PR changes the workflow and event-publication inputs that determine which proposed close reasons can reach that guarded apply lane. flowchart LR
A[Codex review decision] --> B[Workflow or event publisher]
B --> C[Shared automatic-close policy]
C --> D[Durable review record]
D --> E[Apply lane live guards]
E --> F[Comment sync or safe close]
Decision needed
Why: The implementation is internally consistent, but this deliberately expands the set of high-confidence proposals that may enter the live apply lane; maintainers must choose that cleanup-policy boundary. Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep one shared close-reason policy for every publication path, retain the existing live apply safeguards as the final authority, and merge only after a maintainer accepts the wider operational rollout. Do we have a high-confidence way to reproduce the issue? Yes—source inspection identifies the former fixed close-reason subsets in direct and batch publication, and the PR body includes real apply-decision dry-run output for newly reachable reasons. I did not execute the mutation-capable apply command in this read-only review. Is this the best way to solve the issue? Yes for the implementation boundary: centralizing the publication policy eliminates divergent allowlists while retaining the guarded apply lane. Whether the broader default should be enabled operationally remains a maintainer policy decision. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 8a31b9f89386. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
History |
4fec9ae to
d7e6636
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
d7e6636 to
ec8c493
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
…nclaw#1015) Co-authored-by: Peter Steinberger <[email protected]>
Summary
implemented_on_main,duplicate_or_superseded,low_signal_unmergeable_pr, silently rejectingnot_actionable_in_repo,incoherent,cannot_reproduce, and other otherwise valid decisions. Replace those divergent lists with the single configurableCLAWSWEEPER_AUTO_CLOSE_REASONSpolicy, defaulting toall; final repository profile, live guards, and opt-in policy gates remain authoritative.Real behavior proof
Using the real apply-decision entrypoint against the actual issue-117838 source tuple, durable matching review, active same-revision mutation lease, and real repository policy produced:
{"close_reason":"not_actionable_in_repo","action":"closed","reason":"dry-run: would close as not actionable in this repository"} {"close_reason":"incoherent","action":"closed","reason":"dry-run: would close as too unclear to act on"} {"close_reason":"cannot_reproduce","action":"closed","reason":"dry-run: would close as cannot reproduce on current main"}An actual
gpt-5.6-sol/xhighreplay of two real reports also distinguished an externally owned QClaw bug from a substantive maintainer-reopened official-release regression:{"externalProduct":{"issue":117838,"decision":"CLOSE","closeReason":"not_actionable_in_repo","maintainerReviewRequired":false},"credibleUpstreamBug":{"issue":102534,"decision":"KEEP_OPEN","closeReason":"none","maintainerReviewRequired":true}}Issue #102534 explicitly targets official OpenClaw
v2026.6.5, and a maintainer already proved its prior closure incorrect; mentioning QClaw does not override that verified upstream defect or maintainer signal.The earlier production operator recovery on the preceding merged service head completed successfully with:
{"action":"reconcile","dry_run":false,"inventory_complete":true,"queue_pressure":"idle","inspected_targets":16,"recovered_targets":10,"resolved_rows":22,"closed_rows":11,"duplicate_rows":1}Safety and verification
securitynow blocks proposal, apply, and trusted close routing, includingimpact:security,clawsweeper:needs-security-review, and custom security labels.pnpm run check, independent committed-head review, and fresh ClawSweeper durable review will complete before merge.CLAWSWEEPER_ALLOW_AUTOMERGE=0,CLAWSWEEPER_ALLOW_MERGE=0,CLAWSWEEPER_FIX_PR_MODEL=gpt-5.6-sol, andCLAWSWEEPER_FIX_PR_REASONING_EFFORT=xhighremain unchanged.