You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit ce25070
Browse filesBrowse the repository at this point in the historyBrowse files
feat(apply): requeue exact re-reviews for drift-blocked close proposals (#1231)
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.
echo "Not a default close-mode cursor run with a merged apply report; skipping drift requeue."
6831
+
exit 0
6832
+
fi
6833
+
items="$(pnpm run --silent workflow -- apply-requeue-review-item-numbers --report apply-report.json --limit 5)"
6834
+
if [ -z "$items" ]; then
6835
+
echo "No source-drift or unverified-checkout close blocks to requeue."
6836
+
exit 0
6837
+
fi
6838
+
target_branch="$(gh api "repos/${APPLY_TARGET_REPO}" --jq .default_branch)"
6839
+
IFS=',' read -r -a requeue_items <<< "$items"
6840
+
for item_number in "${requeue_items[@]}"; do
6841
+
jq -n \
6842
+
--arg target_repo "$APPLY_TARGET_REPO" \
6843
+
--arg target_branch "$target_branch" \
6844
+
--arg item_number "$item_number" \
6845
+
'{
6846
+
event_type: "clawsweeper_target_sweep",
6847
+
client_payload: {
6848
+
target_repo: $target_repo,
6849
+
target_branch: $target_branch,
6850
+
item_number: $item_number,
6851
+
batch_size: "1",
6852
+
shard_count: "1",
6853
+
hot_intake: "false",
6854
+
codex_timeout_ms: "1200000"
6855
+
}
6856
+
}' | gh api --method POST "repos/${{ github.repository }}/dispatches" --input -
6857
+
echo "::notice::Requeued exact review for ${APPLY_TARGET_REPO}#${item_number}: its close was blocked by source drift or an unverified-checkout review."
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@ checkpoint, and status-only commits are intentionally omitted.
19
19
20
20
### Changed
21
21
22
+
- Default close-mode apply runs now requeue up to five exact re-reviews for records whose close was blocked by source drift or an unverified-checkout review, so stale backlog records converge to closeable instead of being skipped by every cursor sweep.
22
23
- Live verification now publishes a sanitized, capped dev-server log tail when browser startup fails, and detects a start command that exits before its URL becomes reachable without waiting for the readiness timeout.
23
24
- Live verification now installs a missing target package manager on demand after execution is approved, publishes installer failures as verification results, and guides plans toward stable assertions the run can satisfy.
24
25
- Live verification now runs immediately after review in the same job and exact reviewed checkout; review judgment gates execution, target children receive a denylist-and-heuristic-sanitized environment, package installs suppress lifecycle scripts unless a repository explicitly opts in, and review jobs default to `ubuntu-latest` without requiring Linux namespaces. Existing publication jobs still validate and upload media before publishing the normal record and comment.
0 commit comments