Repository navigation
fix: reuse command review status comment - #1675
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
/clawsweeper review |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed September 24, 2026, 4:06 PM ET / 20:06 UTC (Revision 14). ClawSweeper reviewWhat this changesCommand-triggered exact reviews reuse their acknowledgement for progress and lease coordination, while reviews without a usable acknowledgement retain a temporary lease comment. Merge readiness✅ Ready for maintainer review Keep open for landing review. Current main contains the preparatory compatibility work but still creates a separate review lease comment. This branch provides distinct activation work with current-head proof, and this review found no additional blocking defect. Priority: P2 Review scores
Verification
How this fits togetherA review command enters the exact-review queue, which authorizes a worker to review an issue or pull request. GitHub comments show progress and carry lease markers that coordinate the worker and final publication. flowchart LR
A[Review command] --> B[Exact-review queue claim]
B --> C[Command status writer]
C --> D{Acknowledgement found?}
D -->|Yes| E[Reuse status comment]
D -->|No| F[Temporary lease comment]
E --> G[Review and publication]
F --> G
Before mergeNone. Agent review detailsSecurityNone. Review metrics
Technical reviewBest possible solution: Land the shared status-comment path with the existing marker readers, then use a live command-review canary to confirm one visible comment and successful finalization. Do we have a high-confidence way to reproduce the issue? Yes. Current-main workflow source shows a command progress update followed by a separate lease reservation; this read-only review did not execute that workflow. Is this the best way to solve the issue? Yes. Reusing the acknowledgement through the established lease-marker readers is a bounded fix, and the branch retains the temporary-comment fallback. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 0dc9e1c0870c. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (13 earlier review cycles; latest 8 shown)
|
|
/clawsweeper review |
|
🦞👀 Re-review progress:
|
|
/clawsweeper review |
|
🦞👀 Re-review progress:
|
|
/clawsweeper review |
|
🦞👀 Re-review progress:
|
|
/clawsweeper review |
|
🦞👀 Re-review progress:
|
|
/clawsweeper review |
|
🦞👀 Re-review progress:
|
|
/clawsweeper review |
|
🦞👀 Re-review progress:
|
| file: string, | ||
| args: string[], | ||
| options: { encoding: "utf8"; maxBuffer: number }, | ||
| ) => string = (file, args, options) => execFileSync(file, args, options), |
|
/clawsweeper review |
53a0f23 to
2620eeb
Compare
|
/clawsweeper review |
|
🦞👀 Re-review progress:
|
…tion Follow-ups to #1981, each of which left a command request unanswered: - A deferred publisher's source-drift requeue keeps the request's verification while the publisher still holds the request's newest publication and no other command reached the item since. The admitted item carries a queue-owned `held-publication-requeue:` delivery prefix that the load-time verification rule honors; `/enqueue` rejects caller delivery ids with either continuation prefix. Any other orphan requeue still drops it. - The batch publisher builds its requeue with the shared `enqueue source-drift` CLI, so both publishers send one delivery id per review generation (`publisher-source-drift:<producer run>:<attempt>`). - Command-bearing recovery is no longer shed by backpressure or a GitHub throttle window. - An artifact refresh leaves a queued command intact. A different, older producer command is answered as superseded instead of overwriting it. - An organic successor of a pending terminal finalizer no longer inherits the finalized command. The `--refuse-terminal-state` report is intended behavior (#1675) and is unchanged.
…tion Follow-ups to #1981, each of which left a command request unanswered: - A deferred publisher's source-drift requeue keeps the request's verification while the publisher still holds the request's newest publication and no other command reached the item since. The admitted item carries a queue-owned `held-publication-requeue:` delivery prefix that the load-time verification rule honors; `/enqueue` rejects caller delivery ids with either continuation prefix. Any other orphan requeue still drops it. - The batch publisher builds its requeue with the shared `enqueue source-drift` CLI, so both publishers send one delivery id per review generation (`publisher-source-drift:<producer run>:<attempt>`). - Command-bearing recovery is no longer shed by backpressure or a GitHub throttle window. - An artifact refresh leaves a queued command intact. A different, older producer command is answered as superseded instead of overwriting it. - An organic successor of a pending terminal finalizer no longer inherits the finalized command. The `--refuse-terminal-state` report is intended behavior (#1675) and is unchanged.
…tion Follow-ups to #1981, each of which left a command request unanswered: - A deferred publisher's source-drift requeue keeps the request's verification while the publisher still holds the request's newest publication and no other command reached the item since. The admitted item carries a queue-owned `held-publication-requeue:` delivery prefix that the load-time verification rule honors; `/enqueue` rejects caller delivery ids with either continuation prefix. Any other orphan requeue still drops it. - The batch publisher builds its requeue with the shared `enqueue source-drift` CLI, so both publishers send one delivery id per review generation (`publisher-source-drift:<producer run>:<attempt>`). - Command-bearing recovery is no longer shed by backpressure or a GitHub throttle window. - An artifact refresh leaves a queued command intact. A different, older producer command is answered as superseded instead of overwriting it. - An organic successor of a pending terminal finalizer no longer inherits the finalized command. The `--refuse-terminal-state` report is intended behavior (#1675) and is unchanged.
Problem
Command-triggered exact reviews currently display two adjacent ClawSweeper comments: the command acknowledgement is rewritten with progress, then the worker posts a separate temporary lease comment.
This change makes the existing command acknowledgement the single visible status and coordination comment. Queue-authorized command reviews rewrite it in place, attach the existing hidden review-lease markers, and return
queue_only=trueso the workflow does not create, expire, or release a second visible lease comment. Missing acknowledgements and non-command reviews retain the existing temporary-comment path.Status mutations are fenced through the exact-review queue before lookup and immediately before their single-attempt GitHub PATCH. Terminal command states remain successful no-ops; failed, interrupted, and waiting states remain retryable. Command-triggered issues compute their source revision during admission, while ordinary issue sweeps retain the previous zero-comment-read path. The acknowledgement receives a bounded 64-minute setup lease and refreshes that clock when reservation begins, covering the 56-minute maximum review allowance without a two-hour stale marker.
OpenClaw Bay is unaffected because lifecycle and telemetry contracts do not change.
Behavior proof
aae7a5f6723efc99f7cca1d3bea0335b2bbe2852.queue_only=trueand the superseded path stops without an extra GitHub mutation.200, 200, then reached a second authorized PATCH at reservation. The lease start and expiry advanced by 8,729 ms while retaining the 3,840,000 ms window. A competing run then received fences200, 409; the GitHub timestamp and body SHA-256 both remained unchanged, proving rejection after lookup and before final comment I/O..artifacts/queue-only-proof-aae7/summary.jsonand.artifacts/authority-chain-proof-aae7/summary.jsonin the maintainer checkout.Finding dispositions
Validation
mapfile