Skip to content

fix(dashboard): normalize exact-review queue failures - #1240

Merged
steipete merged 3 commits into
openclaw:mainfrom
yetval:fix/exact-review-do-json-errors
Aug 27, 2026
Merged

steipete merged 3 commits into
openclaw:mainfrom
yetval:fix/exact-review-do-json-errors

Conversation

@yetval

@yetval yetval commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where signed exact-review Worker callers could receive an unparseable 500 response when the ExactReviewQueue Durable Object rejected or returned a malformed server-error body.

Why This Change Was Made

The Durable Object remains fail closed: route and storage exceptions still reject directly, preserving SQLite and durable-storage rollback behavior. The dashboard Worker now owns the transport contract and converts rejected stub calls or malformed 5xx bodies into sanitized JSON while preserving intentional 4xx responses and already-valid JSON 5xx responses.

User Impact

Exact-review queue clients receive parseable, redacted JSON for unexpected queue failures without weakening queue transaction semantics.

OpenClaw Bay Impact

OpenClaw Bay is unaffected. Its queue projections already map non-OK responses to unavailable states; this change only makes the shared Worker-facing failure envelope parseable and sanitized.

Documentation Impact

The active proof harness under docs/proof/exact-review-do-json-errors/ now documents the Worker as the normalization owner and the Durable Object as the fail-closed transaction owner. No operator setup or public API documentation changes are required.

Evidence

Current head: 0e6ef72c14bfbfe25d8a5ac247d95787563e82f5

  • TypeScript builds: tsconfig.json, tsconfig.repair.json, and tsconfig.dashboard.json passed.
  • Focused Worker boundary tests: 4 passed.
    • direct Durable Object storage failure rejects;
    • rejected Durable Object call becomes sanitized JSON 500;
    • malformed 5xx becomes sanitized JSON with its status preserved;
    • intentional non-JSON 4xx is unchanged.
  • Existing rollback regressions: all 6 previously failing tests passed.
    • completion and lane metrics roll back together;
    • receipt acceptance and queue mutation commit atomically;
    • divergent rollback shadow fails closed;
    • obsolete shadow cleanup failure rolls SQL back;
    • publication capacity state rolls back on storage failure;
    • credential telemetry state rolls back on SQL failure.
  • Changed-file formatting, dashboard/test lint, dashboard queue-boundary check, dashboard strict check, documentation check, and git diff --check passed.
  • Proof-file collision check: pre-existing dashboard/proof-entry-do-error.ts and dashboard/wrangler.proof.toml sentinels caused an immediate refusal and remained unchanged.

Real Behavior Proof

Claim: a real Worker-to-Durable-Object storage rejection crosses the Worker boundary as sanitized JSON, while the Durable Object still rejects and a following request recovers.

Surface: local Wrangler dashboard Worker, ExactReviewQueue Durable Object, HMAC-authenticated /internal/exact-review/publications/list, and SQLite-backed Durable Object storage.

Scenario: a proof-only wrapper arms one marked SELECT item_key, item_json call to throw an error containing a planted GitHub token. Baseline and recovery requests use the unmodified production route.

Command and environment:

EXACT_REVIEW_DO_PROOF_SKIP_INSTALL=1 \
EXACT_REVIEW_DO_PROOF_OUTPUT=.artifacts/exact-review-do-json-errors-0e6ef72c \
bash docs/proof/exact-review-do-json-errors/run-proof.sh

Run on macOS with Node 26.7.0 and Wrangler 4.107.0 against exact head 0e6ef72c14bfbfe25d8a5ac247d95787563e82f5.

Observed result:

baseline_list_ok: PASS (HTTP 200)
failure_status_500: PASS (HTTP 500)
worker_sanitized_json_contract: PASS (application/json; charset=utf-8)
planted_token_redacted: PASS (GH_TOKEN=[REDACTED])
recovery_list_ok: PASS (HTTP 200)

Before evidence: on base d61664303d1bcab286362c8386cc2b5cb77e2c7f, the same marked request escaped the Worker as a non-JSON 500.

Limits: the Docker-backed Crabbox rerun was unavailable because the local Docker daemon was stopped. The exact-head proof above used the same committed Wrangler harness directly on the host. It proves the Worker/DO failure contract and recovery path, not a deployed Cloudflare revision.

@clawsweeper

clawsweeper Bot commented Aug 25, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@clawsweeper clawsweeper Bot added P2 Normal priority bug or improvement with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 25, 2026
@clawsweeper

clawsweeper Bot commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 26, 2026, 9:50 PM ET / August 27, 2026, 01:50 UTC.

ClawSweeper review

What this changes

The branch makes the dashboard Worker convert rejected or malformed 5xx ExactReviewQueue responses into sanitized JSON while preserving 4xx and valid JSON error responses.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

The PR remains necessary: current main still forwards ExactReviewQueue failures directly, while this branch adds the missing Worker-side sanitized JSON boundary. The refreshed head has a focused implementation, supplied real Worker-to-Durable-Object recovery proof, and no actionable patch defect found.

Priority: P2
Reviewed head: 0e6ef72c14bfbfe25d8a5ac247d95787563e82f5

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Focused boundary handling, regression coverage, and a current-head real-runtime recovery trace support a high-confidence maintainer review.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The submitted exact-head local Worker-to-Durable-Object trace shows the injected failure becomes redacted JSON 500 and that a following production-route request recovers.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The submitted exact-head local Worker-to-Durable-Object trace shows the injected failure becomes redacted JSON 500 and that a following production-route request recovers.
Evidence reviewed 5 items Current main lacks the normalization: At current main, the shared bridge directly returns the Durable Object fetch response, so a rejected call or non-JSON 5xx can still cross the Worker boundary unnormalized.
Focused branch implementation: The PR head catches rejected stub calls and converts malformed 5xx bodies with the existing credential-redaction helper, while leaving responses below 500 and parseable JSON 5xx unchanged.
Regression coverage: Four focused tests cover direct Durable Object rejection and recovery, rejected-call sanitization, malformed 5xx sanitization, and unchanged non-JSON 4xx handling.
Findings None None.
Security None None.

Live Verification

Command: EXACT_REVIEW_DO_PROOF_SKIP_INSTALL=1 EXACT_REVIEW_DO_PROOF_OUTPUT=/tmp/exact-review-do-json-errors-proof bash docs/proof/exact-review-do-json-errors/run-proof.sh

Result: FAIL (failed) — step 1 run EXACT_REVIEW_DO_PROOF_SKIP_INSTALL=1 EXACT_REVIEW_DO_PROOF_OUTPUT=/tmp/exact-review-do-json-errors-proof bash docs/proof/exact-review-do-json-errors/run-proof.sh: terminal command failed with exit status 1: "EXACT_REVIEW_DO_PROOF_SKIP_INSTALL=1 EXACT_REVIEW_DO_PROOF_OUTPUT=/tmp/exact-review-do-json-errors-proof bash docs/proof/exact-review-do-json-errors/run-proof.sh"

{
  "mode": "after",
  "head": "0e6ef72c14bfbfe25d8a5ac247d95787563e82f5",
  "assertions": [
    {
      "name": "baseline_list_ok",
      "status": "PASS",
      "http_status": 200
    },
    {
      "name": "recovery_list_ok",
      "status": "PASS",
      "http_status": 200
    },
    {
      "name": "failure_status_500",
      "status": "PASS",
      "http_status": 500
    },
    {
      "name": "worker_sanitized_json_contract",
      "status": "PASS",
      "content_type": "application/json; charset=utf-8"
    },
    {
      "name": "planted_token_redacted",
      "status": "PASS",
      "response_body": "{\n  \"error\": \"injected sqlite read failure exposing GH_TOKEN=[REDACTED]\"\n}"
    }
  ]
}
Refusing to overwrite existing proof output: /tmp/exact-review-do-json-errors-proof

Assertions:

  • FAIL expect_output: worker_sanitized_json_contract
  • FAIL expect_output: recovery_list_ok

How this fits together

The dashboard Worker authenticates and forwards internal exact-review requests to the SQLite-backed ExactReviewQueue Durable Object. Queue results feed automation callers and observer-only Bay projections; this change standardizes unexpected failure responses at that Worker boundary.

flowchart LR
  A[Signed exact-review caller] --> B[Dashboard Worker]
  B --> C[Queue request bridge]
  C --> D[ExactReviewQueue Durable Object]
  D --> E{Response or rejection}
  E --> F[Original 4xx or valid JSON 5xx]
  E --> G[Sanitized JSON 5xx]
  F --> H[Queue clients and Bay projections]
  G --> H
Loading

Before merge

  • Resolve merge risk (P1) - The shared helper fronts many exact-review routes, so this deliberately standardizes the unexpected-5xx envelope beyond the proof route; HTTP status preservation limits the compatibility impact.
  • Complete next step (P2) - No concrete repair remains after the refreshed review; this open PR needs only normal maintainer landing approval.
Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Runtime, test, and proof scope Worker +20/-7; tests +116; proof/docs +330 The production change is narrow and is paired with focused boundary coverage plus a committed real-runtime harness.

Merge-risk options

Maintainer options:

  1. Accept the shared failure envelope (recommended)
    Merge with acknowledgement that rejected or malformed queue 5xx responses become sanitized JSON across callers while retaining their original status.

Technical review

Best possible solution:

Keep Durable Object storage failures fail-closed and land the Worker-boundary normalization after ordinary maintainer approval of the shared 5xx response contract.

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

Yes. The PR records an exact-head local Wrangler Worker and SQLite Durable Object run that injects the failing storage read, observes sanitized JSON 500, and confirms the next request recovers with 200.

Is this the best way to solve the issue?

Yes. Normalizing only at the Worker transport boundary preserves the Durable Object’s rejection and rollback behavior while giving callers the parseable redacted error contract they require.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.
  • remove merge-risk: 🚨 other: Current PR review merge-risk labels are merge-risk: 🚨 availability.

Label justifications:

  • P2: This repairs an internal exact-review failure contract with bounded operational impact.
  • merge-risk: 🚨 availability: The shared queue bridge changes how unexpected Durable Object failures are delivered to automation callers.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The submitted exact-head local Worker-to-Durable-Object trace shows the injected failure becomes redacted JSON 500 and that a following production-route request recovers.
  • proof: sufficient: Contributor real behavior proof is sufficient. The submitted exact-head local Worker-to-Durable-Object trace shows the injected failure becomes redacted JSON 500 and that a following production-route request recovers.

Evidence

What I checked:

  • Current main lacks the normalization: At current main, the shared bridge directly returns the Durable Object fetch response, so a rejected call or non-JSON 5xx can still cross the Worker boundary unnormalized. (dashboard/worker.ts:4426, a2641b27c403)
  • Focused branch implementation: The PR head catches rejected stub calls and converts malformed 5xx bodies with the existing credential-redaction helper, while leaving responses below 500 and parseable JSON 5xx unchanged. (dashboard/worker.ts:4426, 0e6ef72c14bf)
  • Regression coverage: Four focused tests cover direct Durable Object rejection and recovery, rejected-call sanitization, malformed 5xx sanitization, and unchanged non-JSON 4xx handling. (test/dashboard-worker-durable-object-error.test.ts:43, 0e6ef72c14bf)
  • Real behavior proof: The PR body records an exact-head local Wrangler Worker → SQLite Durable Object run with a baseline 200, injected 500 sanitized as JSON with the planted token redacted, and a recovery 200. (docs/proof/exact-review-do-json-errors/run-proof.sh:1, 0e6ef72c14bf)
  • History and release check: Blame attributes the changed bridge to the current head’s Vincent Koc commit; no local tag contains that open PR head, so it is neither merged nor part of the v0.3.0 release. (dashboard/worker.ts:4422, 0e6ef72c14bf)

Likely related people:

  • Vincent Koc: Authored the branch’s final Worker-boundary and proof-safety commits, and current-line blame points to the final head commit. (role: recent dashboard and queue contributor; confidence: high; commits: b59d320b47fc, 0e6ef72c14bf; files: dashboard/worker.ts, test/dashboard-worker-durable-object-error.test.ts, docs/proof/exact-review-do-json-errors/run-proof.sh)
  • Martin Cleary: Recent history shows work on the dashboard Worker and Bay-facing queue behavior, making this a nearby routing contact. (role: recent adjacent dashboard contributor; confidence: medium; commits: 91a2bf645327; files: dashboard/worker.ts)

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 (7 earlier review cycles)
  • reviewed 2026-08-25T00:35:18.087Z sha dc76448 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-25T02:42:44.359Z sha dc76448 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-25T15:30:06.605Z sha 60b0278 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-25T16:11:45.013Z sha 60b0278 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-25T20:43:48.716Z sha b59d320 :: needs changes before merge. :: [P2] Protect pre-existing proof-injection files
  • reviewed 2026-08-26T00:22:39.813Z sha 0e6ef72 :: needs maintainer review before merge. :: none
  • reviewed 2026-08-26T01:04:28.451Z sha 0e6ef72 :: needs maintainer review before merge. :: none

@yetval
yetval marked this pull request as ready for review August 25, 2026 02:40
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 availability 🚨 Merging this PR could cause crashes, hangs, restart loops, stalls, or process outages. label Aug 25, 2026
…rable Object

The exact-review Durable Object fetch handler had no error boundary, so any
exception thrown by a route handler escaped to the Workers runtime and became a
plain-text 500. Callers that parse the response body as JSON then failed with
errors such as "returned invalid JSON (HTTP 500)", which is the shared root
cause of two observed production failures: the batch publication fetch and the
state-writer coordinator ticket recovery.

Wrap the handler so a thrown exception is returned as a JSON 500 built with the
existing json helper and sanitizedServerError, which redacts credentials.
Intentional non-200 responses still pass through unchanged.

The client-side status-before-parse ordering in the batch and coordinator
callers is a separate follow-up and is not changed here.
@yetval
yetval force-pushed the fix/exact-review-do-json-errors branch from dc76448 to 60b0278 Compare August 25, 2026 15:25
@yetval

yetval commented Aug 25, 2026

Copy link
Copy Markdown
Contributor Author

Refreshed head 60b0278: rebased onto current main (d616643) and replaced the memory-storage evidence with real Workers Durable Object boundary proof, item by item:

  1. Real behavior proof: the scenario now runs through the real dashboard Worker and ExactReviewQueue Durable Object under wrangler 4.107.0 dev --local (real SQLite-backed DO storage, real HMAC verification, real worker-to-stub forwarding), each side inside a Docker-backed Crabbox local-container lease with image node:24-bookworm. Before, on pristine base d616643 (lease cbx_34d74bee24e1, run run_2416080bb830): the injected storage failure escapes the unguarded fetch and the client receives a non-JSON 500 (text/html), with the planted GH_TOKEN=ghp_... value exposed to the client by the dev error page. After, on this head (lease cbx_01885cce1ae4, run run_202d2cd55dd3): identical signed inputs return HTTP 500 application/json with {"error": "injected sqlite read failure exposing GH_TOKEN=[REDACTED]"}, and the baseline and recovery requests return 200. Redacted transcripts and run records are in the PR body; the harness is committed under docs/proof/exact-review-do-json-errors/ and detects base versus fixed trees itself, so the run is reproducible from either side.

  2. Merge risk, Workers boundary under failure: covered by the same runs. The only injected boundary is one marked request whose body arms a proof-only one-shot wrapper around the real storage.sql.exec; routing, storage initialization, and every other request run unmodified production code on both trees.

  3. Merge risk, Bay impact: stated in the PR body. OpenClaw Bay is not affected: publicExactReviewQueueJson and durableLifecycleBaySnapshot in dashboard/worker.ts already project any non-OK queue response or thrown stub call to their generic unavailable results, and a sanitized JSON 500 lands in that same handling. No Bay change or Bay proof is needed, and Bay remains observer-only.

Both rank-up moves from the review are covered by the above. The regression tests run green through the repository runner on this head, and oxlint on the changed files is clean.

@yetval

yetval commented Aug 25, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 25, 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 exact_review_queue).
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 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. and removed status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Aug 25, 2026
@vincentkoc vincentkoc changed the title fix(dashboard): return sanitized JSON errors from the exact-review Durable Object fix(dashboard): normalize exact-review queue failures Aug 25, 2026
@vincentkoc

vincentkoc commented Aug 25, 2026 •

Copy link
Copy Markdown
Member

Maintainer rewrite completed at signed head 0e6ef72c14bfbfe25d8a5ac247d95787563e82f5.

The contributor's original commit and credit remain intact. The correction moves error normalization to the dashboard Worker so ExactReviewQueue.fetch continues rejecting storage failures and preserving rollback semantics. Focused Worker tests pass, all six rollback regressions that failed on the prior head now pass, and the exact-head Wrangler proof returns a redacted JSON 500 followed by a successful recovery request.

Hosted pnpm check, CodeQL, Windows, and sparse-build checks are green. The exact-head ClawSweeper review found no actionable defect or remaining rank-up move and marked the PR ready for maintainer review. No merge or deploy was performed.

@clawsweeper clawsweeper Bot added merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. 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 25, 2026
@vincentkoc

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 26, 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 exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@vincentkoc

Copy link
Copy Markdown
Member

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 26, 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 exact_review_queue).
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: 🐚 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. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 26, 2026
@steipete

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

The implementation and main-body proof remain on 0e6ef72c14bfbfe25d8a5ac247d95787563e82f5. Hosted CI is green, and a fresh independent review of the complete final patch found no actionable defect. The landing check correctly detected that the maintainer follow-up was edited after the last durable review, so please refresh the review against the current discussion before landing.

The proof remains the real local Wrangler Worker → SQLite Durable Object storage rejection, sanitized JSON 500, and successful next-request recovery, with the six transaction-rollback regression controls. This is host-local proof, not a production deployment or closure replay; OpenClaw Bay's observer contract is unchanged.

@clawsweeper

clawsweeper Bot commented Aug 27, 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 exact_review_queue).
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: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. labels Aug 27, 2026
@steipete
steipete merged commit 4a6f9ec into openclaw:main Aug 27, 2026
23 checks passed
@steipete

Copy link
Copy Markdown
Contributor

Squash-merged as 4a6f9ecb165e; verified on remote main. Thanks @yetval and @vincentkoc; both coauthor credits are preserved. The Worker owns the sanitized error envelope while the Durable Object keeps rejecting storage failures to preserve atomic rollback. The shared unexpected-5xx compatibility tradeoff is accepted; OpenClaw Bay needs no change because non-OK queue responses already map to unavailable states.

Landing gates matched head 0e6ef72c14bfbfe25d8a5ac247d95787563e82f5 and source revision bab26b574a4dce81957ef00816cce08fb981e75fd12b391113c637954a9ae51d: CI and CodeQL green, no unresolved review threads, independent Codex review clean, and the current durable review reports no findings/security issues with proof: sufficient and ready for maintainer look. The recorded exact-head proof includes four Worker-boundary tests, six rollback regression controls, and real local Wrangler/SQLite storage rejection → sanitized JSON 500 → recovery 200, including planted-token redaction.

Bounded rerun caveat: the refreshed review's Live Verification wrapper remains FAIL / exit 1. Its first real Worker invocation emitted PASS for all five assertions (baseline 200, recovery 200, failure 500, JSON contract, token redaction); repeating the fixed output-directory command then correctly refused to overwrite existing proof output. This was an artifact collision, not a failed runtime boundary assertion; the collision-refusal guard is unchanged. Maintainer acceptance relies on the independently recorded exact-head proof and current sufficient-proof review, not a green wrapper. Proof is host-local macOS only; no deployed Cloudflare verification or live production replay/closure is claimed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 availability 🚨 Merging this PR could cause crashes, hangs, restart loops, stalls, or process outages. P2 Normal priority bug or improvement with limited blast radius. proof: sufficient Contributor real behavior proof is sufficient. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants