Repository navigation
Conversation
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs real behavior proof before merge. Reviewed August 8, 2026, 10:35 PM ET / August 9, 2026, 02:35 UTC. ClawSweeper reviewWhat this changesThe PR stores separate durable open and closed placeholder-recovery offsets, rotates bounded GitHub search windows, and reuses the signed cursor client already used by target fanout. Regression provenancePossible regression — probable (failure trace; reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked until real behavior proof from a real setup is added - 4 items remain Keep open: the proposed durable rotation addresses a real current-main starvation path, and no discrete patch defect was found. Merge remains blocked on real after-fix behavior proof through the deployed signed Worker boundary, not only mocked and in-memory tests. Priority: P2 Review scores
Verification
How this fits togetherPlaceholder recovery searches GitHub for aged review-start comments, validates each candidate, then either requeues open items or removes stale closed-item comments. The Worker’s ExactReviewQueue owns the cursor state so a bounded recovery run can eventually reach later search results. flowchart LR
A[GitHub placeholder search] --> B[Recovery scheduler]
B --> C[Open or closed cursor]
C --> D[Signed Worker cursor store]
B --> E[Live comment validation]
E --> F[Exact review queue]
E --> G[Closed placeholder cleanup]
Before merge
Agent review detailsSecurityNone. Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Retain the small shared cursor abstraction, then attach a redacted after-fix trace from an authorized deployed ExactReviewQueue/Worker run that shows signed cursor persistence, rotation, and safe recovery behavior. Do we have a high-confidence way to reproduce the issue? Yes, from source: current main restarts bounded placeholder search from the front, and the PR’s focused 180-candidate regression demonstrates the starvation shape with a later eligible closed candidate. Is this the best way to solve the issue? Yes, conditionally: separate revision-CAS cursors reuse the established fanout transport and preserve the existing live validation and age gates; deployment-boundary proof is still needed before merge. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 81c23bede7a8. 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
HistoryReview history (14 earlier review cycles; latest 8 shown)
|
|
@clawsweeper re-review |
|
Superseded by #1077, now merged — same design and diagnosis, re-applied over the retry-jitter change with a runnable rotation proof harness added (real local Worker + DO storage, synthetic GitHub). Original authorship credited via Co-authored-by on the landed commit. |
Summary
Root cause
Run https://github.com/openclaw/clawsweeper/actions/runs/31230348601 reported
checked=120 cleaned=0 matched=718 remaining=598. The stale placeholder on openclaw/openclaw#120368 was rank 144 in the closed search, but every scheduled invocation rebuilt the same oldest-first query, selected only the first 60 closed rows, and discarded its position. Stable false positives at the front therefore starved every later candidate indefinitely.GitHub remains authoritative for search, item state, comment identity, and age. The ExactReviewQueue Durable Object now owns only the fairness offset. Each state advances through all attempted search slots after live validation, including non-actionable and failed rows; a failed CAS leaves the old offset so the next run safely repeats queue-deduped or live-revalidated work.
Real behavior proof
AWS Crabbox run https://crabbox.openclaw.ai/portal/runs/run_569b0ecfe10c (
cbx_769ecf9555a9,c7a.8xlarge) ran the production TypeScript builds and recovery/Worker boundary suite inside a cleannode:24-bookwormDocker container:docker run --rm -v "$PWD:/repo" -w /repo node:24-bookworm bash -lc "corepack enable && pnpm install --frozen-lockfile && pnpm run build:all && node --test test/review-placeholder-recovery.test.ts test/dashboard-worker.test.ts"Result: 342 passed, 0 failed. The redacted runtime trace showed independent open/closed cursor transitions
0 → 60 → 120 → 0, no action while the open placeholder was below the two-hour guard, cleanup of the eligible closed placeholder at rank 144 in the third window, later recovery of the aged open placeholder after wrap, and an intentionally conflicted cursor write followed by a queue-deduped retry. The Worker boundary persistednext_cursor=120, revision=1across an ExactReviewQueue reconstruction. No credentials or live repository mutations were used.OpenClaw Bay is unaffected. These cursors are authenticated control-plane fairness state only; they are not included in Bay lifecycle projections, cards, counts, timing, or public status payloads.
Proof
pnpm run build:allnode --test test/review-placeholder-recovery.test.ts test/repair/target-fanout.test.ts test/dashboard-worker.test.ts test/sweep-workflow.test.ts test/review-reliability-workflow.test.ts— 478 passedtotal_count=1does not truncate the 180-row closed rotation; live page contents remain completion authoritypnpm run checkpassed format, all builds, lint, focused coverage, and 3,190/3,200 full tests; its sole local failure is the unchangedtest/repair/process-env.test.tspnpmfile-hook assertion, reproduced alone on this base/environment. Base CI is green: https://github.com/openclaw/clawsweeper/actions/runs/31230058102Production delta
The positive production delta adds the missing durable fairness owner and reusable cursor client. It removes the duplicate fanout transport implementation, preserves the existing KV key prefix, and does not change the ExactReviewQueue SQLite schema or version.