Feature proposal: issue freshness recheck lane for fixes already on main
Summary
Add a conservative ClawSweeper freshness recheck lane for open issues that may already be fixed on current main or in the latest release before anyone starts a duplicate repair PR.
The goal is to catch the gap where an issue was valid when opened, but later became resolved by another merged PR. A maintainer or contributor can do this manually today by checking latest release and main, then asking ClawSweeper to re-review. This proposal would make that process easier and safer to run in batches.
This should reuse ClawSweeper's existing close machinery, especially implemented_on_main, rather than adding a new close path.
Motivation
When picking up new issues, there is a useful pre-flight step:
- check whether the latest release still has the reported problem
- check whether current
mainstill has the reported problem - look for merged PRs that may already have fixed it
- avoid opening a duplicate repair PR if the fix is already on
main
I recently did this manually on an issue: after noting that the latest release lacked the change but current main included it via a merged PR, I asked ClawSweeper to re-review. ClawSweeper then correctly closed the issue as completed.
This suggests ClawSweeper already has most of the right review/apply behavior; the missing piece is a small, deliberate lane that selects likely stale-open issues for this kind of freshness recheck.
Proposed approach
Add a new manual-first, optionally scheduled freshness recheck lane.
It should review a small batch of open issues that look unpicked-up or potentially stale, then ask the normal ClawSweeper review prompt to do a current-release/current-main check before recommending any repair work.
If the issue is clearly fixed or implemented on current main, ClawSweeper should use the existing implemented_on_main close reason with the existing evidence requirements:
- source evidence with file and SHA
- git history provenance, such as blame/log/show
- fixed PR or commit when known
- latest release status when known
fixedShafixedAtfixedReleasewhen shipped, or clear main-only provenance when not shipped yet
If evidence is not high-confidence, ClawSweeper should keep the issue open.
flowchart TD
A["Open issue already reviewed by ClawSweeper"] --> B["Freshness candidate scan"]
B --> C{"Looks unpicked-up or stale?"}
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 or implemented?"}
G --> I
H --> I
I -->|"Yes, high confidence"| J["Use existing close reason: implemented_on_main"]
I -->|"No or unclear"| K["Keep open"]
J --> L["Existing apply gate re-fetches live issue state"]
L --> M["Close as completed with evidence"]
Candidate selection
Start conservatively.
Candidate issues should generally be:
- open issues only
- already reviewed by ClawSweeper
- not assigned
- not maintainer-authored unless explicitly requested
- not protected by labels such as
security,beta-blocker,release-blocker, ormaintainer - not recently updated by a human
- not already linked to an open closing PR
- last reviewed by ClawSweeper long enough ago to make a freshness check useful
Good initial priority candidates may be issues with labels or report states such as:
clawsweeper:source-reproclawsweeper:current-main-reproclawsweeper:queueable-fixclawsweeper:fix-shape-clear- issues with clear related or merged PR context
CrabBox role
CrabBox may be useful, but it should probably be optional in v1.
For the first version, source/history/release evidence is enough when it is high-confidence. CrabBox should be treated as a later proof escalation path for runtime-dependent issues where source inspection suggests the issue may be fixed, but ClawSweeper cannot safely prove it from source/history alone.
flowchart TD
A["Freshness recheck candidate"] --> B["Source, history, and release check"]
B --> C{"High-confidence fixed on main?"}
C -->|"Yes"| D["Close via implemented_on_main"]
C -->|"No or runtime-dependent"| E{"CrabBox available?"}
E -->|"No"| F["Keep open or mark needs live repro"]
E -->|"Yes"| G["Run targeted CrabBox validation"]
G --> H{"Still reproduces?"}
H -->|"No"| D
H -->|"Yes"| I["Keep open as still reproducible"]
Suggested rollout
Phase 1a: manual dry-run/report
Add a manual workflow or command that finds a small batch of candidate issues and reports what would be freshness-checked.
No comments or closes yet.
Phase 1b: manual freshness re-review
Allow maintainers to manually dispatch freshness rechecks for selected issue numbers or a small candidate batch.
The lane may publish normal ClawSweeper review comments, but closes should still go through existing apply safeguards.
Phase 1c: scheduled small batch
Run at a quiet cadence, for example every 24 or 48 hours, with a small limit.
This should not run after every merge. That would likely be noisy and expensive.
Phase 2: optional CrabBox validation
For issues where source/history evidence is not enough, optionally run a targeted CrabBox validation and attach/report the result.
CrabBox should not be required for high-confidence source/history implemented_on_main closes.
Safety rules
- Do not open repair PRs from this lane.
- Do not add new labels just for this feature unless maintainers want a later dashboard/reporting signal.
- Do not close issues from shallow title matching.
- Do not close if the issue still has a meaningful unimplemented requirement.
- Do not close protected/security/release/maintainer-owned issues unless explicitly targeted or policy allows it.
- Do not close when there is an open linked PR that should remain the canonical path.
- Do not close if the current-main/release evidence cannot identify a concrete fixing SHA or merged PR.
- If fixed only on
mainand not yet in a release, say that clearly in the comment.
Non-goals
- Not an automatic repair lane.
- Not a new close mechanism.
- Not a replacement for maintainer judgment on product/security issues.
- Not a requirement to run CrabBox for every candidate.
- Not a bulk auto-close of old issues.
Acceptance criteria
- A maintainer can manually run a freshness recheck against selected issue numbers.
- The lane can optionally select a small conservative batch of likely stale-open issues.
- High-confidence fixed issues reuse
implemented_on_mainand existing apply gates. - The review output says whether the fix is in the latest release or only on current
main. - The close comment includes evidence and provenance rather than vague "seems fixed" wording.
- Unclear/runtime-dependent issues stay open.
- Protected or active issues are skipped unless explicitly targeted.
Open questions
- What should the default age/activity threshold be? 24h, 48h, 7d?
- Should the first version be report-only, or can it publish normal ClawSweeper review comments?
- Should scheduled operation be disabled by default behind a repository variable?
- Should CrabBox be a later explicit escalation, or should the workflow prepare for it from the start?
- Should latest-release detection use GitHub releases, tags, changelog parsing, or all three where available?
Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve.
Latest ClawSweeper review: 2026-05-23 23:55 UTC / May 23, 2026, 7:55 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 This is a valid feature proposal, but it is not already implemented as a dedicated freshness recheck lane and the ClawSweeper repository profile keeps issues open for maintainer triage. Current main has adjacent machinery for scheduled/exact reviews, re-review commands, and guarded apply of existing close proposals, so the right next step is a maintainer product decision on the lane shape rather than auto-closing or queueing a repair PR.
Reproducibility: not applicable. this is a feature proposal for a new review lane, not a report of broken existing behavior. Source inspection confirms adjacent mechanisms exist, but there is no failing current-main behavior to reproduce.
Ways to help us reproduce this
- Add a screenshot or short recording showing the behavior.
- Add expected vs actual behavior.
Next step The blocker is maintainer policy, not code shape: choose thresholds, schedule/default enablement, and whether v1 is report-only before implementation.
Review details
Best possible solution:
Add a report/manual-dispatch freshness lane only after maintainers choose candidate thresholds and rollout defaults, keeping review read-only and routing any close through the existing apply gate.
Do we have a high-confidence way to reproduce the issue?
Not applicable: this is a feature proposal for a new review lane, not a report of broken existing behavior. Source inspection confirms adjacent mechanisms exist, but there is no failing current-main behavior to reproduce.
Is this the best way to solve the issue?
Unclear: reusing implemented-on-main and apply safeguards is the right constraint, but the lane’s selection, scheduling, and publication defaults need maintainer policy choices before an implementation PR is safe.
Label changes:
- add
P3: This is a low-risk automation ergonomics proposal rather than a production breakage report. - add
issue-rating: 🌊 off-meta tidepool: Current issue advisory state selects this label. - add
clawsweeper:no-new-fix-pr: Current issue advisory state selects this label. - add
clawsweeper:needs-maintainer-review: Current issue advisory state selects this label. - add
clawsweeper:needs-product-decision: Current issue advisory state selects this label.
Label justifications:
P3: This is a low-risk automation ergonomics proposal rather than a production breakage report.
Acceptance criteria:
- pnpm run check
What I checked:
- Issue scope: The GitHub context describes a contributor-authored feature proposal with no comments, protected labels, timeline entries, or linked implementation PR; it asks for a new candidate-selection lane rather than reporting broken existing behavior.
- Repository profile keeps ClawSweeper issues open: The ClawSweeper target profile says automation/workflow/docs changes should be reviewed conservatively, issue apply close rules are empty, and issues should remain open for maintainer triage. (
config/target-repositories.json:19, 8482e5071867) - Existing review/apply guardrails: README documents scheduled and exact issue/PR review, durable comments, and guarded close behavior, but does not describe a separate stale-open issue freshness candidate lane. (
README.md:17, 8482e5071867) - Existing apply path already handles close proposals: README states apply narrows scheduled runs to existing eligible close proposals, exact event runs use selected item numbers, and writes remain guarded by live snapshot, label, authorship, and unchanged-state checks. (
README.md:315, 8482e5071867) - Current planner is cadence/activity based: Current source selects review candidates through shouldReviewItem, reviewPriority, schedulerBucket, and dueCandidate using review cadence, target-side activity, item age, and policy mismatch; it is not a freshness-specific scan for issues likely fixed by later merges. (
src/clawsweeper.ts:3640, 8482e5071867) - Manual exact review and apply-after-review exist: The workflow already exposes item_number/item_numbers and apply_after_review inputs, but these operate on explicitly selected artifacts rather than discovering a small stale-open issue freshness batch. (
.github/workflows/sweep.yml:78, 8482e5071867)
Likely related people:
- Takhoffman: Blame and -S history tie the current due-candidate scheduler, apply-after-review workflow surface, and initial ClawSweeper profile text to commit 6a5bd6226d8538a9761f04c84be85d4ca0954274. (role: introduced review/apply scheduler surface; confidence: high; commits: 6a5bd6226d85; files:
src/clawsweeper.ts,.github/workflows/sweep.yml,config/target-repositories.json) - steipete: Recent commits changed target fanout, apply close retries, workflow storm control, and issue implementation lanes around the same planner/apply/workflow surfaces. (role: recent area contributor; confidence: high; commits: 43cfca13e47e, c45201aa4cb5, eff1320a343a; files:
src/clawsweeper.ts,.github/workflows/sweep.yml,config/target-repositories.json)
Remaining risk / open question:
- Candidate thresholds, scheduled cadence, report-only versus comment-publishing behavior, and default enablement are still product/operations choices in the issue body.
- A freshness lane would touch workflow selection and apply-adjacent automation, so it should avoid duplicating the existing cadence planner or bypassing the existing apply safeguards.
Codex review notes: model gpt-5.5, reasoning high; reviewed against 8482e5071867.
Closing this as a duplicate of #179, which has the final proposal wording and diagrams.