Feature proposal: issue freshness recheck for items already fixed on main
Summary
Add a conservative, manual-first ClawSweeper freshness recheck lane for open issues that may already be fixed on current main or in the latest release before someone starts a duplicate fix PR.
This came from a manual maintainer workflow that worked well:
- Check whether the issue still exists on the latest full release.
- Check whether the issue still exists on current
main. - Look for a merged PR that appears to have fixed it.
- Ask ClawSweeper to re-review with that context.
- If ClawSweeper agrees, it can use its existing close path and close the issue as completed.
The proposal is to make that check easier and repeatable, without making ClawSweeper noisy or aggressive.
Current state
ClawSweeper's review confirms this is not currently built as a distinct lane:
- there is no
freshness-recheckCLI/action mode today - workflow dispatch has adjacent exact-item review/apply controls, but no freshness action, execute flag, or small-batch freshness lane
- the existing scheduler is based on review cadence, recent activity, item age, and policy mismatch, not stale-open issues that may have been fixed by later merged PRs
- existing
implemented_on_mainclose/apply machinery is the right safety path to reuse
The main decisions before implementation are policy/operator choices: candidate thresholds, report-only vs comment-publishing behavior, execute controls, and whether any scheduled path should be disabled by default.
Motivation
When picking up older or unclaimed issues, a maintainer/contributor may discover that the issue has already been fixed by a different merged PR. Today that usually requires a manual freshness comment and a manual ClawSweeper re-review.
This matters because otherwise we risk:
- opening duplicate fix PRs for issues already resolved on
main - leaving fixed issues open until the next release or a human cleanup pass
- spending review time on stale work candidates
- making it harder for contributors to know which issues are still worth picking up
ClawSweeper already has strong machinery for implemented_on_main closes, including evidence requirements and live apply gates. This proposal is about adding a safe candidate/re-review lane around that existing behavior, not inventing a new close policy.
Proposed approach
Add a small freshness recheck mode that can be run manually first, and optionally scheduled later once maintainers are comfortable with the results.
flowchart TD
A["Open issue with prior ClawSweeper review"] --> B["Freshness candidate scan"]
B --> C{"Looks unpicked-up?"}
C -->|No| D["Skip"]
C -->|Yes| E["Targeted freshness re-review"]
E --> F["Check latest release"]
E --> G["Check current main"]
E --> H["Search merged or related PRs"]
F --> I{"Fixed on release or main?"}
G --> I
H --> I
I -->|Yes| J["Use existing close reason: implemented_on_main"]
I -->|No or unclear| K["Keep open or request live repro"]
J --> L["Existing apply gates re-fetch live issue"]
L --> M["Close as completed with evidence"]
Candidate selection
Keep the first version deliberately conservative.
Potential candidates:
- open issues only
- issues with a previous ClawSweeper review/report
- issues with no assigned owner, or no sign that someone is actively working them
- issues with no open linked/closing PR
- issues with no recent human activity, for example 24-48 hours
- issues where the previous ClawSweeper review is old enough that a freshness check is useful
- issues where ClawSweeper previously found a likely source repro, current-main repro, queueable fix, or likely fix shape
- issues where a related/merged PR is already visible from ClawSweeper's related-context search
Skip or defer:
- recently updated issues
- assigned issues
- issues with an open linked PR
- security-sensitive issues unless explicitly allowed
- maintainer-owned/manual-policy issues unless explicitly requested
- anything where ClawSweeper cannot establish clear source/history evidence
Workflow shape
Start with a manual/dry-run path.
Suggested controls:
action: freshness-recheck- dry-run by default
- optional
executeflag before any issue is closed - small batch size, for example 5-10 issues
- optional target issue number for one-off checks
- scheduled workflow disabled by default, or behind an explicit environment/repository flag
Suggested rollout:
- Manual report-only mode that lists candidate issues and the reason each was selected or skipped.
- Manual freshness re-review for selected issue numbers or a small candidate batch.
- Explicit execute mode that can close only through the existing
implemented_on_mainapply path. - Optional scheduled mode later, still disabled by default unless maintainers enable it.
If this later becomes scheduled, it should probably run at low frequency, for example once every 24 or 48 hours, rather than after every merge.
Apply behavior
This should reuse the existing implemented_on_main close path.
The recheck should only close when ClawSweeper can provide the same kind of evidence it already requires, such as:
- current
maincontains the fix - latest release state is known, or the report clearly says the fix is main-only
- relevant commit/merged PR provenance is identified
- source/tests/docs evidence supports the conclusion
- live issue state is re-fetched before applying
If the evidence is not strong enough, ClawSweeper should leave the issue open and explain why. This should not create a parallel close mechanism.
Example outcome comment shape:
Freshness recheck:
- Latest release: v2026.x.y still appears affected.
- Current main: issue appears fixed by <commit/PR>.
- Evidence: <brief source/test/docs pointers>.
Closing as completed because this appears implemented on current main. If this still reproduces on main, please comment with updated reproduction details and ClawSweeper can re-review.
CrabBox / live validation
I do not think v1 needs to depend on CrabBox.
For the first pass, source/history evidence is probably enough for narrow cases where the fix is clear from code, tests, docs, and merged PR history.
CrabBox could be a later optional escalation for issues where source evidence is not enough.
flowchart TD
A["Freshness recheck"] --> B["Source and git-history evidence"]
B --> C{"High-confidence fixed?"}
C -->|Yes| D["Close via implemented_on_main"]
C -->|No| E{"Runtime-dependent and CrabBox available?"}
E -->|No| F["Keep open with explanation"]
E -->|Yes| G["Optional CrabBox validation"]
G --> H{"Still reproduces?"}
H -->|No| D
H -->|Yes| I["Keep open as still reproducible"]
Related OpenClaw tools
Peter asked whether this belongs with Crabyard or ClawFleet.
My read is:
- ClawSweeper should remain the review/apply brain for this feature because the key behavior is issue review, source/history evidence, and the existing
implemented_on_mainclose gate. - Crabyard may be the right operator surface later because it already has board-based task workflow, GitHub issue/PR lookup, Codex run control, runtime selection, and run history. It could eventually expose freshness candidates as cards or manual review batches.
- CrabBox/ClawFleet are runtime/provisioning concerns, not the first-pass freshness decision. If a later phase needs live validation, Crabyard already has provision adapter hooks that can delegate to a Cloudflare runner, CrabBox-style runner, or ClawFleet-backed
crabboxsessions.
So the proposed split is:
flowchart TD
A["ClawSweeper"] --> B["Select freshness candidates"]
A --> C["Review source/history/release evidence"]
A --> D["Apply existing implemented_on_main close gate"]
E["Crabyard"] --> F["Optional maintainer dashboard or run card"]
G["CrabBox / ClawFleet"] --> H["Optional live runtime validation"]
F --> A
H --> A
For v1, this should stay in ClawSweeper. Crabyard and ClawFleet are useful integration points once maintainers want dashboard/run orchestration or live repro validation.
Non-goals
- Do not run after every merge.
- Do not create duplicate fix PRs.
- Do not add new labels just for this first version.
- Do not auto-close without the existing ClawSweeper evidence/apply gates.
- Do not require CrabBox for v1.
- Do not override maintainer judgment on policy/product/security issues.
- Do not create a second close path separate from
implemented_on_main.
Acceptance criteria
- There is a manual freshness recheck mode for one issue or a small batch.
- Dry-run output shows what would be checked, skipped, or closed, and why.
- Execute mode is explicit and conservative.
- The implementation reuses existing
implemented_on_mainreport/apply behavior. - The apply path re-fetches live issue state before closing.
- Issues with recent activity, assignees, open linked PRs, or protected/security shape are skipped.
- Tests cover candidate selection, stale candidate skipping, linked PR skipping, recent activity skipping, evidence-required closes, dry-run behavior, and no-op behavior when scheduling is disabled.
- Docs explain how to run the recheck manually, how execute mode works, and how to enable any future scheduled path.
Why this seems useful
This fills a real gap in the issue pickup process. Before someone starts work on an older issue, ClawSweeper can help answer: is this still actually unfixed?
If the answer is clearly no, the issue can be closed through the existing safe path. If the answer is unclear, the issue stays open and maintainers still have the final call.
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve.
Latest ClawSweeper review: 2026-05-24 00:46 UTC / May 23, 2026, 8:46 PM ET.
Workflow note: Future ClawSweeper reviews update this same comment in place.
How this review workflow works
- ClawSweeper keeps one durable marker-backed review comment per issue or PR.
- Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
- A fresh review can be triggered by eligible
@clawsweeper re-reviewcomments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch. - PR/issue authors and users with repository write access can comment
@clawsweeper re-reviewor@clawsweeper re-runon an open PR or issue to request a fresh review only. - Maintainers can also comment
@clawsweeper reviewto request a fresh review only. - Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
- Maintainer-only repair and merge flows require explicit commands such as
@clawsweeper autofix,@clawsweeper automerge,@clawsweeper fix ci, or@clawsweeper address review. - Maintainers can comment
@clawsweeper explainto ask for more context, or@clawsweeper stopto stop active automation.
Summary Keep this open: current main has the adjacent review, exact-item, and apply machinery, but no dedicated freshness-recheck lane, and the ClawSweeper repository profile keeps issues open for maintainer triage. The closed related proposal at https://github.com/openclaw/clawsweeper/issues/178 makes this issue the active canonical discussion rather than something to close.
Reproducibility: not applicable. this is a feature proposal for a new automation lane, not a broken existing behavior report. Source inspection confirms adjacent review/apply paths exist, but there is no freshness mode to reproduce.
Ways to help us reproduce this
- Add a screenshot or short recording showing the behavior.
- Add expected vs actual behavior.
Next step Maintainers need to choose the freshness thresholds, operator controls, workflow input shape, and rollout defaults before a safe implementation PR is queued.
Review details
Best possible solution:
Add a maintainer-approved manual dry-run freshness lane that reuses implemented_on_main evidence and apply guards, with conservative skip rules, docs, and tests before considering scheduled operation.
Do we have a high-confidence way to reproduce the issue?
Not applicable: this is a feature proposal for a new automation lane, not a broken existing behavior report. Source inspection confirms adjacent review/apply paths exist, but there is no freshness mode to reproduce.
Is this the best way to solve the issue?
Unclear until maintainers decide the policy and operator UX. Reusing implemented_on_main evidence and the existing apply path is the right safety boundary, but thresholds, execute behavior, and scheduling defaults should be settled before implementation.
Label changes:
- add
clawsweeper:fix-shape-clear: Current issue advisory state selects this label.
Label justifications:
P3: This is a low-urgency automation ergonomics proposal with no current production regression, security impact, or data-loss path.
What I checked:
- Repository policy keeps ClawSweeper issues open: The ClawSweeper target profile says automation/workflow/docs changes should be reviewed conservatively and sets issue apply close rules to an empty list, so this feature issue should stay open for maintainer triage. (
config/target-repositories.json:19, e4ac6029f797) - Workflow dispatch has adjacent controls but no freshness mode: workflow_dispatch exposes review/apply/exact-item/hot-intake controls, but no freshness-recheck action, execute flag, or freshness batch input. (
.github/workflows/sweep.yml:8, e4ac6029f797) - Current scheduler is cadence and activity based: The review planner selects by activity, age, cadence, policy mismatch, hot intake, and exact item inputs; there is no candidate branch for stale-open issues that may have been fixed by later merged work. (
src/clawsweeper.ts:3625, e4ac6029f797) - Top-level CLI lacks a freshness command: The command dispatcher supports plan, review, apply-artifacts, apply-decisions, audit, reconcile, dashboard, status, assist, and check, with no freshness-recheck command. (
src/clawsweeper.ts:14321, e4ac6029f797) - Existing implementation-close guardrail is reusable: validateCloseDecision already requires source evidence, fixedSha, fixedRelease or fixedAt, git-history provenance, and release/main-only provenance for implemented_on_main closes. (
src/clawsweeper.ts:10584, e4ac6029f797) - Workflow input budget is a design constraint: The unit tests enforce GitHub's workflow_dispatch input limit, so adding manual controls may require replacing or multiplexing inputs rather than appending many new ones. (
test/clawsweeper.test.ts:11245, e4ac6029f797)
Likely related people:
- Tak Hoffman: Blame for the current review cadence, candidate selection, workflow dispatch inputs, repository profile, and implemented_on_main validation surfaces points to f607adc3. (role: feature-history owner; confidence: high; commits: f607adc363d9; files:
src/clawsweeper.ts,.github/workflows/sweep.yml,config/target-repositories.json) - Peter Steinberger: Recent commits touched close/apply lanes, workflow behavior, stale close handling, and the vision-fit issue implementation lane adjacent to this proposal. (role: recent adjacent contributor; confidence: medium; commits: 82841a028f0f, a564e53e7ca3, 6808b583bca2; files:
src/clawsweeper.ts,.github/workflows/sweep.yml)
Remaining risk / open question:
- Freshness candidate thresholds, report-only versus comment-publishing behavior, execute controls, and scheduled rollout defaults still need maintainer policy decisions.
- The existing workflow_dispatch input budget is already guarded by tests, so the operator UX may need a compact action mode instead of several new top-level inputs.
Codex review notes: model gpt-5.5, reasoning high; reviewed against e4ac6029f797.
@clawsweeper re-review
🦞🧹 ClawSweeper re-review requested.
I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.
Re-review progress:
- State: Complete
- Detail: The targeted re-review finished, the durable review comment was updated, and the synced verdict was routed.
- Run: https://github.com/openclaw/clawsweeper/actions/runs/26347433207
- Updated: 2026-05-24T00:34:16.840Z