Skip to content

fix: finalize legacy command acknowledgements without webhook races - #1018

Merged
steipete merged 5 commits into
mainfrom
codex/clawsweeper-legacy-terminal-receipts
Aug 3, 2026
Merged

steipete merged 5 commits into
mainfrom
codex/clawsweeper-legacy-terminal-receipts

Conversation

@steipete

@steipete steipete commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Complete the legacy terminal finalizer stuck on openclaw/openclaw#115286 by recognizing its exact, action/head-bound legacy command marker in both the repair CLI and authoritative Worker.
  • Bind legacy receipts to the actual authorized status comment and exact status marker; reject forged comment IDs, mismatched markers, duplicate identities, and malformed acknowledgement markers.
  • Fence modern shared status comments to their exact action/head marker so reused comments cannot finalize an older projection.
  • Preserve marker-only commands, migrate pre-existing deleted/replaced status-comment addresses, and bind future router dispatches to the retained comment before convergence can delete a temporary fast acknowledgement.
  • Complete Bay journeys idempotently for every authenticated, durably accepted review receipt, preserving the verified GitHub comment's actual updated_at; unchanged legacy completions work without a webhook, modern webhook completions remain single-counted, and command edits keep their correct journey.
  • Bind signed migrated receipts to their originally admitted status-comment ID so repeated same-head reviews cannot finalize a different lifecycle revision; unsigned request bodies are never parsed.
  • Preserve offline/local review, automatic OpenClaw fix PR creation with gpt-5.6-sol / xhigh, and disabled OpenClaw automatic merging.

Root cause and real production proof

The public exact-review queue repeatedly reported:

terminal-finalization:openclaw/openclaw#115286:5
health: critical / oldest_pending_over_6h

The real bot status comment 5150578737 contains the original command marker for source comment 5150571675, but predates canonical clawsweeper-command-ack markers. Existing finalization updates the comment successfully but cannot verify its source receipt, leaving the publication permanently retryable.

A fresh GitHub API fetch of that actual production comment, passed through the newly compiled production receipt parser, now proves:

{"verified":true,"issue":"openclaw/openclaw#115286","receipt":{"commandCommentId":5150571675,"completionCommentId":5150578737},"spoofRejected":true,"markerOnlyVerified":true}

The same production parser rejects the exact comment body when its comment ID is forged and still verifies authorized legacy commands that have only an exact status marker. Hosted Worker integration covers legacy and canonical acknowledgements across re-review, autofix, and automerge; the authoritative lifecycle rejects wrong IDs/markers without updating Bay telemetry, binds reused modern comments to the matching head marker, and preserves marker-only attempts. End-to-end repair CLI fixtures additionally recover legacy admissions whose advertised temporary comment was already deleted or whose advertised comment belongs to an older marker. Router workflow coverage proves the retained existing comment is selected before dispatch advertises its ID.

Executing the newly compiled production router dispatch function against a precreated-to-retained comment transition confirms the actual dispatched identity:

{"precreatedStatusCommentId":4466202000,"retainedStatusCommentId":4466201000,"dispatchedStatusCommentId":4466201000,"originalGithubDeliveryId":"github-original-command-delivery","dispatchPayloadProperties":10,"nestedReviewTimeouts":{"codex_timeout_ms":1200000,"media_proof_timeout_ms":480000},"retainedCommentDispatched":true}

Executing the newly compiled production status-update CLI against the real comment body and two stale predeployment addresses produces verified terminal receipts in both cases:

{"issue":"openclaw/openclaw#115286","legacyAddressRecovery":[{"mode":"deleted","advertisedCommentId":5150578738,"retainedCommentId":5150578737,"completedAt":"2026-08-03T05:43:18Z","verified":true},{"mode":"replaced","advertisedCommentId":5150578738,"retainedCommentId":5150578737,"completedAt":"2026-08-03T05:43:18Z","verified":true}]}

The existing guarded dead-letter reconciler separately resolved 45 stale rows. Generated OpenClaw fix PRs remain create-only; both OpenClaw merge switches are disabled.

Review disposition

A fresh Codex review of the original committed head found two actionable P1 provenance gaps: a legacy webhook could acknowledge a different same-marker status comment, and the repair CLI could select a different same-marker status comment than the one requested. Legacy acknowledgements now carry a strict status-comment provenance flag through the authoritative queue, and the repair verifier honors the expected status-comment ID.

The first follow-up precommit review identified marker-only legacy commands and precreated fast acknowledgements that router convergence replaces with an older existing status comment. Both are preserved explicitly: marker-only attempts bind to the exact authorized marker, and dispatch resolves the retained comment before publishing its status-comment ID.

The next precommit review identified reused modern shared comments that could complete the wrong fence and pre-existing admissions that still pointed at a deleted/replaced status comment. Modern receipt matching now requires agreement when both markers exist. Legacy finalization securely rebinds only when the advertised comment no longer exists or demonstrably belongs to a different status marker; a still-valid same-marker advertised comment remains mandatory.

The latest fresh precommit review identified ID-only legacy admissions and Bay journeys completed through a signed direct receipt after a migrated webhook was rejected. Exact comment-ID matches now remain valid when the admission has no marker, and the authenticated lifecycle endpoint updates Bay only after the durable queue accepts a review/re-review receipt. All eight accepted findings have focused regression coverage.

A subsequent review identified double-counted normal review completions and parsing before signature verification. Signed receipts now carry their admitted status-comment ID; Bay repair runs only when that ID differs from the verified completion comment, and request JSON is parsed only after signature verification. All ten accepted findings have focused regression coverage.

The latest precommit review reproduced one additional P2 timestamp-provenance finding: synthesizing a migrated completion from receipt-processing time duplicated modern completions and could incorrectly complete a newer edit of the same source command. The repair CLI now extracts the verified GitHub comment's actual updated_at (including the returned PATCH response), signs that exact timestamp into the workflow receipt, and reuses it for Bay repair. Focused regressions independently cover migrated modern deduplication and preserving an older completion when a newer command edit exists.

The first committed-branch review reproduced a P1 cross-revision provenance gap and a P2 missed legacy completion: a migrated signed receipt could complete a newer same-head projection when its admitted comment ID was ignored, and unchanged legacy comments produced no new webhook. The authoritative queue now validates and forwards the signed admitted comment ID, lifecycle observation matches that exact authorized attempt, and every accepted signed review receipt completes its Bay journey using the verified GitHub timestamp.

A subsequent precommit review identified that replaying the same verified completion while another edit of the same source command remained pending could consume that unrelated edit. Bay merging now recognizes an exact existing completion identity before choosing another pending journey. End-to-end Worker regressions independently cover same-head cross-revision isolation, unchanged legacy receipt recovery, malformed admitted IDs, duplicate signed receipts, and webhook-plus-signed replay with multiple edits of the same source command.

The next committed-branch review reproduced an additional same-comment cross-revision collision. Terminal workflow receipts now sign the immutable lifecycle fence and revision, the authoritative queue requires that identity as an all-or-nothing pair, and the projection store matches the exact admitted revision. Its follow-up precommit review independently reproduced an unfenced GitHub webhook completing the wrong revision and a fenced older receipt completing a newer Bay journey. Ambiguous unfenced observations now fail closed without mutating either revision.

The following fresh review proved that lifecycle admission IDs (router:... / publisher:...) are not GitHub webhook delivery IDs, and reproduced unidentified-webhook races, legacy records without delivery IDs, and same-second orphan collisions. The original authenticated GitHub delivery ID now travels end-to-end through the hosted webhook, router workflow and command, sweep intake decision, immutable lifecycle admission, verified finalization receipt, and Bay reducer. Webhook completions receive the same canonical delivery identity from the authoritative queue. The reducer repairs a previously misattributed unidentified completion, accepts unambiguous legacy journeys, and keys identified orphan completions by delivery. The compiled production router proof above verifies both retained status-comment identity and the unchanged original GitHub delivery ID.

The next independent review found six additional production defects: both repository-dispatch hops exceeded GitHub's hard ten-property limit; edited comments could inherit an older delivery ID; scheduled recovery lost delivery provenance after a durable claim; identified completion orphans did not join legacy triggers; and a newer scoped receipt arriving before an older receipt left its journey permanently pending. The hosted webhook now omits redundant source_event only when carrying delivery identity, while the router workflow infers its fixed issue_comment source. Routed PR budgets share one review_options field, with backwards-compatible support for existing flat timeout fields. Delivery identity is accepted only for an authenticated matching comment timestamp and body digest, persisted in claimed/waiting durable ledger entries, and recovered only for that exact comment version. Bay accepts unambiguous mixed-version completion orphans and rejoins detached scoped receipts after correcting provisional matches. The real compiled PR dispatch proof above carries both adaptive timeouts, the original delivery identity, retained status-comment ID and command marker in exactly ten payload properties. All 120 possible trigger/webhook/scoped-receipt arrival permutations converge to two correctly attributed completed journeys.

The latest independent precommit review reproduced one P1 and two P2 integration regressions: the nested review-budget variable was accidentally declared in an earlier, separate Node heredoc; replacing a queued command without a new delivery ID retained the previous command's provenance; and shared-marker revisions with distinct status-comment IDs incorrectly rejected a uniquely identifiable webhook. The actual workflow serializer now declares its own nested options, and an executable regression runs both isolated Node heredocs against a real nested PR payload. Queue merges clear delivery identity whenever the marker or status-comment changes without a replacement identity. Unfenced lifecycle observations now prefer a single exact status-comment match while continuing to reject genuinely ambiguous same-comment attempts. All three behaviors have focused production-path regressions.

A second fresh review found three remaining same-comment race conditions. Concurrent state-ledger publication could discard a verified delivery when a scheduled waiting entry outranked the authenticated claim; same-head replacements could reuse both marker and status-comment ID while inheriting the old delivery; and an untagged legacy journey could capture a later tagged completion and disappear after normalization. Concurrent ledger union now preserves delivery only when repository, comment ID, exact comment timestamp and SHA-256 body digest all match. Any explicit command replacement without its own identity clears inherited provenance, including same-marker/same-comment replacements. Tagged completions detach provisional legacy observations and prefer their exact delivery-matched trigger before source-less legacy fallbacks. Regression tests exercise both concurrent merge directions, edited-body rejection, same-head replacements, and normalization after mixed legacy/scoped receipt arrival.

A further independent review stress-tested concurrent delivery permutations and exposed two additional convergence failures: three independently published command snapshots could choose different authenticated delivery IDs depending on merge grouping, and a provisional anonymous completion could consume the only identified journey before its genuine fenced completion arrived. Ledger union now chooses one canonical authenticated delivery deterministically, permanently discards provenance after conflicting or partially missing exact-comment identities, and is proven commutative and associative across 46,656 three-way status/delivery/body combinations, including legacy commands without body fingerprints. Bay now moves misassigned anonymous completions back to their own orphan, prefers exact delivery-matched orphans over earlier anonymous completions, safely assigns anonymous receipts only when exactly one compatible journey remains, keeps the newest of repeated delivery-fenced receipts, and breaks same-second completion ties by canonical comment ID. All 600 exhaustive permutations across nine identified/legacy/repeated-completion scenarios converge to identical journeys. The corrected reducer also passed 30,000 randomized, mixed-order trigger/retry/webhook/fenced-receipt scenarios without a dropped or misattributed journey.

The latest completed independent precommit reviews identified two related actionable P2 gaps: durable appendLedger() command advancement dropped the invalidated-delivery tombstone, and the router's in-memory prior-claim index discarded tombstones before an authenticated redelivery was dispatched. The authoritative ledger now preserves conflict tombstones across every status transition, suppresses all delivery IDs on conflicted commands, rejects malformed tombstones during durable loading, indexes conflicted pending commands even without a delivery ID, and rejects event delivery provenance whenever the matching prior command is tombstoned. Regressions advance a conflicted waiting command to executed with a forged replacement delivery and replay an authenticated exact-comment webhook; neither path restores delivery provenance.

The first committed-branch review identified one actionable P2 throughput regression: comment-history pagination ran before durable dispatch deduplication and repeated again when the status reply was written. Existing dispatch claims now short-circuit before any status-comment lookup, and retained status-comment selection reuses the router's existing per-issue comment cache. A follow-up precommit review correctly noted that a reused cache must be invalidated after successful comment creation, update, or temporary-ack deletion; all three mutation paths now evict the affected issue. The real compiled retained-comment dispatch proof remains unchanged while source-level coverage verifies the deduplication order, absence of duplicate ghPaged history scans, and all mutation invalidation paths.

Validation

  • 651 focused tests passed, zero failed, covering the authoritative Worker, repair status updater, router core and durable ledger, executable isolated workflow heredocs, sweep workflows, spoofed receipts, wrong markers, marker-only/ID-only commands, temporary-to-retained convergence, deleted/replaced pre-existing addresses, immutable same-comment cross-revision fencing, ambiguous webhook rejection, exact status-comment precedence, queued command-replacement delivery isolation, concurrent ledger publication, associative concurrent command merges, permanently invalidated conflicting provenance, durable conflict-tombstone advancement, original GitHub delivery identity through synthetic publisher admissions, ten-property dispatch payload bounds, nested backwards-compatible adaptive review budgets, exact authenticated comment-version provenance, durable retry recovery, webhook-first and receipt-first reconciliation, source-less legacy journeys, source-less legacy/scoped completion reassignment, source-less provisional completion transfer, safely disambiguated anonymous completion, newest repeated fenced completion, same-second canonical completion identity, delivery-matched orphan priority, same-second identified completion orphans, all 120 event-arrival permutations, exact GitHub completion timestamps, unchanged legacy completion, modern migration deduplication, command-edit journey isolation, and authenticate-before-parse enforcement.
  • Real live GitHub-comment receipt verification, forged-ID rejection, and marker-only verification passed.
  • A real Worker request with an invalid signature returned 401 after zero JSON parses.
  • Repair and dashboard TypeScript builds, changed-file lint, formatting, and git diff --check passed.
  • Fresh precommit Codex review, committed-branch Codex review, exact-head ClawSweeper review, and current-head GitHub CI are required before merge.

@clawsweeper clawsweeper Bot added proof: sufficient Contributor real behavior proof is sufficient. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. P2 Normal priority bug or improvement with limited blast radius. merge-risk: 🚨 automation 🚨 Merging this PR could break CI, automerge, proof capture, label sync, or automation. labels Aug 3, 2026
@clawsweeper

clawsweeper Bot commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 3, 2026, 4:38 AM ET / 08:38 UTC.

ClawSweeper review

What this changes

This PR binds legacy and modern command acknowledgements to exact GitHub comment versions, lifecycle revisions, and delivery identities across the repair router, GitHub workflows, Worker queue, and Bay telemetry.

Merge readiness

⚠️ Needs maintainer review before merge - 5 items remain

Keep this PR open: current main still records command-completion telemetry without observing whether the authoritative lifecycle accepted the acknowledgement, while the branch proposes a focused repair for that gap. The supplied real production proof is strong, but the prior completed review applies to 88acde2dc1367a34dbb42d2d9df4b4268fe5ea87 and the current head is f266f796d6c0b05f4a03388faf910851f190e834; the local promisor checkout could not retrieve the current-head blobs for a full final diff and security pass.

Priority: P2
Reviewed head: f266f796d6c0b05f4a03388faf910851f190e834

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The PR has strong real behavior evidence and extensive focused coverage, but the current head could not be fully materialized for independent functional and security review.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The PR body provides redacted live production-parser, router-dispatch, and status-update outputs showing legacy receipt verification, forged-ID rejection, retained-comment dispatch, and deleted/replaced-address recovery.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The PR body provides redacted live production-parser, router-dispatch, and status-update outputs showing legacy receipt verification, forged-ID rejection, retained-comment dispatch, and deleted/replaced-address recovery.
Evidence reviewed 5 items Current-main acceptance gap: The webhook completion path calls lifecycle acknowledgement recording and immediately writes Bay completion telemetry without observing whether the authoritative queue accepted the acknowledgement; the PR patch changes this path to gate telemetry on an accepted result.
Current-main lifecycle receipt contract: The current Worker forwards only target, marker, source comment, completion comment, and timestamp to the durable queue, while the supplied PR diff adds comment and delivery provenance to close cross-revision and webhook-race gaps.
Current PR-head provenance: The current head is a fifth follow-up commit, fix: reuse fresh router comment snapshots after dispatch recovery, on top of the earlier reviewed acknowledgement work; it is not contained in current main.
Findings None None.
Security Needs attention Complete the trusted receipt-path inspection: The branch changes how delivery IDs and comment identities pass from GitHub webhook input through workflows and the authoritative lifecycle endpoint; inspect the full current head before confirming that untrusted or stale identities cannot be admitted.

How this fits together

ClawSweeper turns authorized GitHub command comments into repair or review workflows, then writes verified terminal status back to GitHub and durable Bay telemetry. This change hardens the identity carried between those inputs, the authoritative queue decision, status acknowledgements, and completion records.

flowchart LR
  A[GitHub command comment] --> B[Repair router]
  B --> C[Workflow dispatch]
  C --> D[Authoritative review queue]
  D --> E[Verified status acknowledgement]
  E --> F[Bay journey telemetry]
Loading

Before merge

  • Resolve security concern: Complete the trusted receipt-path inspection - The branch changes how delivery IDs and comment identities pass from GitHub webhook input through workflows and the authoritative lifecycle endpoint; inspect the full current head before confirming that untrusted or stale identities cannot be admitted.
  • Resolve merge risk (P1) - The current head changes workflow dispatch, authenticated receipt provenance, durable queue state, and telemetry identity; an omitted propagation path could strand a command or attribute a completion to the wrong revision.
  • Resolve merge risk (P1) - The review context’s completed review covers 88acde2dc1367a34dbb42d2d9df4b4268fe5ea87, not the current head f266f796d6c0b05f4a03388faf910851f190e834.
  • Resolve merge risk (P1) - The read-only checkout is a partial clone whose promisor remote could not resolve, so a complete current-head patch and security inspection was not possible locally.
  • Complete next step (P2) - A maintainer should obtain a fresh complete-head review before merge because this patch changes authenticated provenance and durable lifecycle state across multiple operational boundaries.

Findings

  • [medium] Complete the trusted receipt-path inspection — dashboard/worker.ts:1159
Agent review details

Security

Needs attention: The available diff changes authenticated webhook and signed receipt provenance, but unavailable current-head blobs prevent a complete final security pass.

Review metrics

Metric Value Why it matters
Changed surface 15 files affected The PR crosses GitHub Actions, repair CLI code, Worker lifecycle handling, durable state, and regression tests.
Production vs. tests production +667/-62, tests +2126/-103 The substantial focused regression coverage is proportionate to a multi-boundary race and identity repair, but the production contract remains broad enough to require a current-head review.

Merge-risk options

Maintainer options:

  1. Refresh the complete head review (recommended)
    Make the full current-head diff available and obtain a fresh review plus current proof for the workflow, queue, and telemetry contracts before merge.
  2. Pause for a narrower split
    If the final integrated diff remains difficult to audit, split independent workflow/router and durable lifecycle changes into reviewable follow-ups.

Technical review

Best possible solution:

Retain the exact comment-version, lifecycle-fence, and delivery-identity approach, then obtain a fresh full-head review that verifies every workflow-to-Worker propagation path and preserves legacy compatibility before landing.

Do we have a high-confidence way to reproduce the issue?

Yes, from source: current main records a terminal completion into Bay immediately after submitting it to the lifecycle queue, without checking whether that queue accepted the exact acknowledgement. The supplied PR body also contains redacted production outputs for the legacy stuck-finalization case, although no tests were run in this read-only review.

Is this the best way to solve the issue?

Unclear until the full current head is inspectable: exact immutable comment, revision, and delivery identities are a narrow and appropriate repair direction, but every workflow and durable-state propagation path needs review at the latest head.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against e55de43cfc03.

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (live_output): The PR body provides redacted live production-parser, router-dispatch, and status-update outputs showing legacy receipt verification, forged-ID rejection, retained-comment dispatch, and deleted/replaced-address recovery.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.
  • remove status: 👀 ready for maintainer look: Current PR status label is status: ⏳ waiting on author.

Label justifications:

  • P2: This is a bounded reliability repair for review-command completion and telemetry attribution, without evidence in this review of a current user-facing emergency.
  • merge-risk: 🚨 automation: The PR changes GitHub Actions repository-dispatch payloads and repair-router contracts, including constrained dispatch property handling.
  • merge-risk: 🚨 session-state: The PR changes durable lifecycle and Bay journey matching for command revisions, status comments, and completion identities.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (live_output): The PR body provides redacted live production-parser, router-dispatch, and status-update outputs showing legacy receipt verification, forged-ID rejection, retained-comment dispatch, and deleted/replaced-address recovery.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body provides redacted live production-parser, router-dispatch, and status-update outputs showing legacy receipt verification, forged-ID rejection, retained-comment dispatch, and deleted/replaced-address recovery.

Evidence

Security concerns:

  • [medium] Complete the trusted receipt-path inspection — dashboard/worker.ts:1159
    The branch changes how delivery IDs and comment identities pass from GitHub webhook input through workflows and the authoritative lifecycle endpoint; inspect the full current head before confirming that untrusted or stale identities cannot be admitted.
    Confidence: 0.76

What I checked:

  • Current-main acceptance gap: The webhook completion path calls lifecycle acknowledgement recording and immediately writes Bay completion telemetry without observing whether the authoritative queue accepted the acknowledgement; the PR patch changes this path to gate telemetry on an accepted result. (dashboard/worker.ts:1159, e55de43cfc03)
  • Current-main lifecycle receipt contract: The current Worker forwards only target, marker, source comment, completion comment, and timestamp to the durable queue, while the supplied PR diff adds comment and delivery provenance to close cross-revision and webhook-race gaps. (dashboard/worker.ts:1699, e55de43cfc03)
  • Current PR-head provenance: The current head is a fifth follow-up commit, fix: reuse fresh router comment snapshots after dispatch recovery, on top of the earlier reviewed acknowledgement work; it is not contained in current main. (src/repair/comment-router.ts:1, f266f796d6c0)
  • Review freshness boundary: The supplied previous ClawSweeper review explicitly reviewed 88acde2dc1367a34dbb42d2d9df4b4268fe5ea87, whereas the PR now points to f266f796d6c0b05f4a03388faf910851f190e834; target policy requires a fresh review after a head change. (AGENTS.md:80, e55de43cfc03)
  • Release and main-only check: The latest release is v0.3.0 at dc824915bb6cad05d921cd0947b2f3ac301bd4c3; neither the current PR head nor its immediate acknowledgement predecessor is in main, so this work is neither shipped nor already implemented on main. (dc824915bb6c)

Likely related people:

  • Peter Steinberger: Peter authored the existing current-main terminal-acknowledgement repair and all five commits in this PR series, including the current head. (role: recent acknowledgement-path contributor; confidence: high; commits: f43618fd2cae, 88acde2dc136, f266f796d6c0; files: dashboard/worker.ts, src/repair/comment-router.ts, src/repair/update-command-status.ts)
  • Martin Cleary: Martin introduced and recently extended the exact-review lifecycle and Bay dashboard surfaces that consume this acknowledgement data. (role: lifecycle and telemetry contributor; confidence: high; commits: b07ab751813c, a80c24ebf2f1, 8cdf2a157a04; files: dashboard/exact-review-lifecycle.ts, dashboard/exact-review-queue.ts, dashboard/worker.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Make the full current-head diff accessible and obtain a fresh review for f266f796d6c0b05f4a03388faf910851f190e834.
  • Keep the existing redacted production proof in the PR body and add any updated output if the final review changes behavior.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • 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-review comments, 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-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to 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 explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (6 earlier review cycles)
  • reviewed 2026-08-03T03:51:02.323Z sha ff58a8b :: needs maintainer review before merge. :: none
  • reviewed 2026-08-03T06:32:36.286Z sha bc3ec5f :: needs maintainer review before merge. :: none
  • reviewed 2026-08-03T06:36:05.691Z sha bc3ec5f :: needs maintainer review before merge. :: none
  • reviewed 2026-08-03T06:40:59.620Z sha bc3ec5f :: needs maintainer review before merge. :: none
  • reviewed 2026-08-03T06:54:33.657Z sha 513d290 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-03T08:31:32.305Z sha 88acde2 :: needs maintainer review before merge. :: none

@steipete
steipete requested a review from a team as a code owner August 3, 2026 06:27
@steipete

steipete commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@steipete

steipete commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@steipete

steipete commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added the merge-risk: 🚨 session-state 🚨 Merging this PR could lose, corrupt, stale, or mis-associate session or agent state. label Aug 3, 2026
@steipete

steipete commented Aug 3, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 3, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 3, 2026
@steipete
steipete merged commit a769f25 into main Aug 3, 2026
18 checks passed
@steipete
steipete deleted the codex/clawsweeper-legacy-terminal-receipts branch August 3, 2026 08:42
azaj01 pushed a commit to azaj01/clawsweeper that referenced this pull request Sep 21, 2026
…penclaw#1018)

* fix: finalize legacy command acknowledgements without webhook races

* fix: recover fenced legacy command acknowledgements safely

* fix: fence command receipts and deduplicate Bay completions

* fix: fence terminal acknowledgements to original command delivery

* fix: reuse fresh router comment snapshots after dispatch recovery

---------

Co-authored-by: Peter Steinberger <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 automation 🚨 Merging this PR could break CI, automerge, proof capture, label sync, or automation. merge-risk: 🚨 session-state 🚨 Merging this PR could lose, corrupt, stale, or mis-associate session or agent state. P2 Normal priority bug or improvement with limited blast radius. proof: sufficient Contributor real behavior proof is sufficient. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant