Repository navigation
feat(apply): requeue exact re-reviews for drift-blocked close proposals - #1231
Merged
Merged
Conversation
Close-mode cursor sweeps were closing ~0/40 records per checkpoint: ~50% skipped as changed-since-review (any third-party activity since the last review vetoes the close until a fresh review) and ~35% kept open because their stored review lacks verified local checkout access (legacy records that can never authorize a close). Both blocks have the same cure — a fresh exact review re-verifies the proposal at the current snapshot and writes a close-capable record. After each default close-mode cursor run, the apply job now dispatches up to five clawsweeper_target_sweep exact reviews for those items, drift skips first, so blocked backlog records converge to closeable instead of being re-skipped by every sweep.
Contributor
|
🦞👀 Pull request received. I will update this pull request when review starts. |
Contributor
|
ClawSweeper status: review started. I am starting a fresh review of this pull request: feat(apply): requeue exact re-reviews for drift-blocked close proposals This is item 1/1 in the current shard. Shard 0/1. This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking. Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What Problem This Solves
Close-mode cursor sweeps close almost nothing from the standing backlog: successful apply runs on 2026-08-24 (e.g. runs 32690338216 and 32684664263) report
closed=0/40on every checkpoint. The skip histogram from those runs shows two dominant vetoes: ~50%skipped_changed_since_review("updated_at changed" — any third-party activity since the last review blocks the close until a fresh review confirms it) and ~35%kept_openwith "review lacks verified local checkout access" (records whose stored review can never authorize a close). Old records accumulate drift faster than the weekly review cadence revisits them, so the same records are re-skipped by every sweep and the backlog only drains through the event-driven fresh-review path.Why This Change Was Made
Both vetoes have the same cure: a fresh exact review re-verifies the close proposal at the current snapshot and (since every modern review writes
local_checkout_access: verified) produces a close-capable record. After each successful default close-mode cursor run foropenclaw/openclaw, the apply job now dispatches up to fiveclawsweeper_target_sweepexact re-reviews for the blocked items — source-drift skips first, unverified-checkout keeps as filler — using the same repository-dispatch shape as the existing source-revision-drift requeue job.Bounds and safety:
workflowCLI subcommand (apply-requeue-review-item-numbers), consistent with the other apply-report helpers.Evidence
clawsweeper_target_sweepwithshard_count: "1".sweep-workflow,apply-live-state, andreconcilesuites;pnpm run lintandpnpm run check:static(docs check included) clean.patch is correct, 0.98).