Skip to content

fix(queue): queued publications starve behind stale batch probes and superseded rows - #1367

Merged
steipete merged 3 commits into
mainfrom
claude/vibrant-blackwell-a8d1e6
Sep 3, 2026
Merged

steipete merged 3 commits into
mainfrom
claude/vibrant-blackwell-a8d1e6

Conversation

@steipete

@steipete steipete commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Fixes an issue where a freshly reviewed pull request whose direct publication hit a GitHub rate limit was queued for durable publication but never published, while the review-lease placeholder kept blocking a maintainer @clawsweeper re-review for the full 41-minute lease.

Observed on 2026-09-02 (UTC):

Why This Change Was Made

Three independent defects in the exact-review queue Durable Object (dashboard/exact-review-queue.ts) combined into starvation:

  1. Batch claims demanded an exact selection match. The alarm probes the eight selected members, dispatches exact-review-batch-publish.yml, and stores the probe. When the workflow claimed ~30-60 s later it required the current eight-item selection to be byte-identical to the probe. Under load the selection changes almost every time (a fresh-lane arrival, a fresh item ageing past the 15-minute window, a revision bump, a superseded row), so the workflow retired the reservation, claimed nothing, and exited after ~30 s; the alarm re-dispatched 5 s later and the cycle repeated. Evidence: between 21:20 and 21:43 roughly ten batch runs were dispatched and each exited in 26-45 s without claiming (for example https://github.com/openclaw/clawsweeper/actions/runs/33686404002, https://github.com/openclaw/clawsweeper/actions/runs/33686365000, https://github.com/openclaw/clawsweeper/actions/runs/33686326722, https://github.com/openclaw/clawsweeper/actions/runs/33686280755, https://github.com/openclaw/clawsweeper/actions/runs/33686215783, https://github.com/openclaw/clawsweeper/actions/runs/33686143313), which is exactly the fresh-lane window of the review enqueued at 21:23. Producer https://github.com/openclaw/clawsweeper/actions/runs/33668772748 (review at 18:41) was only published at 22:03/22:22.
  2. Superseded publication rows never drained. A queue-maintenance dry run (https://github.com/openclaw/clawsweeper/actions/runs/33692922776, execute=false) reported scanned=352, staleRevisionEligible=243, legacyStateBatchTerminalCandidates=44. Those 243 rows have a source revision older than the target's publication head; they are excluded from batching but still count as pending/ready and pin next_attempt_at to Aug 13. Only the manual maintenance workflow with execute=true removed them, and it last ran successfully on 2026-08-08.
  3. Every enqueue re-probed target visibility live. hostedTargetAdmission called GET /repos/{repo} on each /enqueue, claim, and alarm pass; under rate-limit pressure the probe is retryable and /enqueue answered 503, exactly when the review workflow needed the queue as fallback.

Secondary: when direct publication fails with a rate limit and the item is queued, sweep.yml deliberately keeps the review-start lease comment (the later publisher deletes it), so a re-review is refused until the 41-minute lease expires.

What Changed

  • Batch claims consume the probed subset. A claim carrying the current dispatch reservation now claims the still-valid intersection of the probed [key, revision] pairs and the current candidates (filtered before the admission scan and the lease-size cut). Unprobed fresh arrivals wait for the next departure; an empty intersection keeps today's retire-and-repreflight behavior. Malformed or legacy probes fall back to the strict comparison.
  • Public hosted-target admission is cached in the queue's durable KV, for intake only. The four signed intake routes (/enqueue, /command-intake, /branch-authority, /source-authority) get a 60 s fresh tier without a probe and may reuse a public observation for up to 30 min when the live probe is retryable. Review claims, dispatch, batch claims, and acknowledgement paths always perform a live probe and fail closed, so a target that turns private is refused before any credential-bearing work is handed out. A terminal probe or terminal eligibility clears the entry and records a tokenized revocation so an out-of-order older probe cannot re-admit; EXACT_REVIEW_HOSTED_TARGET_ADMISSION_MAX_STALE_MS=0 disables the cache.
  • Alarm housekeeping prunes superseded publication rows (stale_revision class only, bounded by EXACT_REVIEW_STALE_PUBLICATION_PRUNE_LIMIT, default 100, oldest first, no GitHub reads, command-bearing rows excluded). Duplicate-lineage and legacy terminal classes stay on the operator workflow.
  • Queued publication expires the review-start lease. New expire-review-lease CLI command rewrites only lease_expires_at in the placeholder marker; sweep.yml calls it right after a successful queue handoff so a maintainer re-review is no longer blocked. The publisher still deletes the placeholder on terminal publication.
  • Docs: docs/live-dashboard.md, docs/limits.md.

No Durable Object binding, migration, SQLite table, or public /api/exact-review-queue field changed. OpenClaw Bay needs no change: it observes the same aggregate fields, which now reflect corrected pending/completed values.

pr-behavior-proof

  • Claim: dispatched batch workflows claim their probed members despite selection churn; superseded rows are pruned automatically; enqueue survives a retryable visibility probe; the review lease expires on queue handoff.
  • Exercised surface: ExactReviewQueue alarm/claim/enqueue routes and sweep.yml step contract, through the existing in-memory SQLite Durable Object harness and workflow-definition tests.
  • Regression tests (all fail before the fix, pass after): see the test list below.
  • Command: node --test <touched test files> plus pnpm run build:all, pnpm run lint, pnpm run format:check, pnpm run check:docs, pnpm run check:limits, pnpm run check:active-surface, pnpm run check:dashboard-queue-boundary, pnpm run check:dashboard-strict, git diff --check.
  • Limits: unit-level proof only; no deploy was performed. The full pnpm run check suite reports pre-existing, environment-caused failures in this worktree (agent-input-scan unsafe_path refusals because the worktree lives under a hidden directory); the same files pass from the main checkout path. Live before/after queue numbers must be captured after deployment.

Regression tests added

  • test/exact-review-publication-batches.test.ts: batch claim after {fresh arrival | revision bump | all probed items gone | older retries become ready beyond the scan window} consumes only still-valid probed items; hosted admission cache: {fresh | stale fallback | terminal clears | too old | disabled}; hosted admission rejects an older public probe after terminal revocation (cache 1800000 | 0); hosted admission fences an older public probe across same-millisecond revocations; terminal eligibility revokes cached admission and an overlapping {public | retryable} probe; alarm prunes stale publication revisions after batch expiry with limit {100 | 1}; alarm preserves command acknowledgements after batch expiry while pruning ordinary stale publications.
  • test/exact-review-publication-batches.test.ts (fail-closed follow-up): batch claim ignores cached public admission when the live probe is {terminal | retryable}.
  • test/dashboard-worker-queue-runtime.test.ts: matching empty batch departures release their own fence and redispatch current work (updated to remove every probed member explicitly).
  • test/review-comment-publication.test.ts: expireReviewStartStatusLease changes only the canonical expiry and releases the exact-head lease; expireReviewStartStatusLease leaves noncanonical markers and unrelated text byte-identical.
  • test/command.test.ts: expire-review-lease patches the queued placeholder and preserves unrelated comments.
  • test/sweep-workflow.test.ts: queued publication expires only its posted review lease after successful handoff.

Before the fix the claim tests returned claimed:false, the cache tests answered 503 on /enqueue, and the prune tests left the stale rows pending.

Queue API before (2026-09-02T22:52Z, pre-deploy)

lane.publication field value
pending / ready 371 / 371
dispatching / leased / active 0 / 0 / 0
capacity / available_slots 40 / 40
oldest_pending_at 2026-08-13T09:14:19Z
next_attempt_at 2026-08-13T09:24:59Z

After-deploy numbers will be added once the Worker is deployed through dashboard.yml.

Review finding disposition

  • ClawSweeper P1 "Fail closed when target visibility cannot be rechecked" (reviewed head b638315): accepted and fixed in the follow-up commit. The cache is now consumed only by the intake routes; every review claim, dispatch, batch claim, and acknowledgement path performs a live public probe and fails closed, with the private-transition regression test above.
  • Real-behavior proof: the changed owner is the production Durable Object, which can only be exercised after deployment. Unit-level proof is the in-memory SQLite Durable Object harness plus workflow-definition tests; the after-fix production-path queue trace will be attached after the Worker deploys (proof: evidence-in-progress, approved by the repository owner in the landing request).

🤖 Generated with Claude Code

Batch publication workflows refused to claim work whenever the eight-item
selection changed between dispatch and claim, which under load was nearly
always, so dispatched runs exited without publishing while hundreds of
ready rows waited. Superseded publication revisions also sat pending until
an operator ran reconciliation, and every enqueue re-probed target
visibility against GitHub, so the queue fallback returned 503 exactly when
direct publication was rate limited.

- claim the still-valid subset of the dispatch-time probe instead of
  requiring an identical selection; unprobed arrivals wait for the next
  departure
- cache successful public hosted-target admissions in durable KV with a
  60s fresh tier and a 30 min stale fallback for retryable probes; terminal
  observations revoke the cache with a tokenized tombstone
- prune superseded publication revisions in alarm housekeeping, bounded per
  alarm, excluding command-bearing rows
- expire the review-start lease once a publication is queued so a
  maintainer re-review is not blocked for the full lease window

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@steipete
steipete requested a review from a team as a code owner September 3, 2026 00:13
@clawsweeper

clawsweeper Bot commented Sep 3, 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 P0 Emergency: data loss, security bypass, crash loop, or unusable core runtime. merge-risk: 🚨 security-boundary 🚨 Merging this PR could weaken sandboxing, authorization, credentials, or sensitive data. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Sep 3, 2026
@clawsweeper

clawsweeper Bot commented Sep 3, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed September 2, 2026, 9:16 PM ET / September 3, 2026, 01:16 UTC.

ClawSweeper review

What this changes

The PR makes exact-review publication batching tolerate queue churn, prunes stale publication rows, caches hosted-target admission for signed intake, and expires a queued review lease sooner.

Regression provenance

Possible regression — probable (failure trace; reviewed change). No predecessor PR is attributed.

Merge readiness

⛔ Blocked before merge - 5 items remain

Keep this PR open: the introduced queue repair is focused and no blocking correctness defect was found, but its changed admission authority and production queue recovery still need real after-fix evidence before merge.

Priority: P1
Reviewed head: c889d48b97a34c0e7ba705cdcb8556aeb7072383

Review scores

Measure Result What it means
Overall readiness 🦪 silver shellfish (2/6) The implementation is focused and regression-tested, but the material authority boundary and queue recovery lack required production-path proof.
Proof confidence 🦪 silver shellfish (2/6) Needs real behavior proof before merge: Authority-chain proof required: the changed ExactReviewQueue admission path persists a public-target decision before later publisher work, but the available evidence is an in-memory Durable Object harness and workflow-definition tests rather than an after-fix deployed trace showing recovery and rejection before final publisher I/O. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Verification

Check Result Evidence
Real behavior Needs proof Needs real behavior proof before merge: Authority-chain proof required: the changed ExactReviewQueue admission path persists a public-target decision before later publisher work, but the available evidence is an in-memory Durable Object harness and workflow-definition tests rather than an after-fix deployed trace showing recovery and rejection before final publisher I/O. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
Evidence reviewed 6 items Queue claim repair: The introduced batch candidate selection fences a dispatched workflow to still-valid probed key/revision pairs before bounded admission, preventing new queue arrivals from displacing the dispatched work.
Credential-boundary implementation: Cached public admission is restricted by the intake argument, while callers without it continue through a live probe; concurrent terminal observations revoke cached admission.
Focused regression coverage: The added queue harness covers selection churn, stale admission fallback, terminal revocation, and live-probe rejection during batch claims; this supports the source reasoning but is not deployed behavior proof.
Findings None None.
Security Needs attention Prove revocation blocks publisher-side effects: The intake cache persists a prior public-target observation; the supplied tests model revocation, but no deployed trace yet proves that a target becoming ineligible is rejected before credential-bearing publisher work.

How this fits together

The exact-review queue Durable Object receives signed review-publication work, batches it, and dispatches publishers that write review results to GitHub. Its admission checks decide whether work can enter the queue and whether credential-bearing publication work may proceed.

flowchart LR
  A[Signed review intake] --> B[Exact-review queue]
  B --> C[Hosted-target admission]
  B --> D[Batch reservation]
  D --> E[Publication workflow]
  B --> F[Stale publication cleanup]
  E --> G[GitHub review comment]
Loading

Before merge

  • Add real behavior proof - Needs real behavior proof before merge: Authority-chain proof required: the changed ExactReviewQueue admission path persists a public-target decision before later publisher work, but the available evidence is an in-memory Durable Object harness and workflow-definition tests rather than an after-fix deployed trace showing recovery and rejection before final publisher I/O. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Resolve security concern: Prove revocation blocks publisher-side effects - The intake cache persists a prior public-target observation; the supplied tests model revocation, but no deployed trace yet proves that a target becoming ineligible is rejected before credential-bearing publisher work.
  • Resolve merge risk (P1) - A public-admission observation can be reused by signed intake during a retryable probe window; safety relies on every credential-bearing continuation retaining the live-probe fence.
  • Resolve merge risk (P1) - No after-fix deployed trace yet demonstrates queue recovery under selection churn or rejection before credential-bearing publisher work for a newly ineligible target.
  • Complete next step (P2) - Attach redacted after-fix deployed queue-recovery and final-effect authorization traces, then request a fresh review after updating the PR body.

Findings

  • [medium] Prove revocation blocks publisher-side effects — dashboard/exact-review-queue.ts:7632
Agent review details

Security

Needs attention: The changed admission authority has focused fail-closed source coverage, but its required final-effect authorization evidence has not yet been demonstrated in a deployed path.

Review metrics

Metric Value Why it matters
Production and regression delta runtime/workflow +295/-43, tests +463/-3, docs +24 The reliability fix changes the queue, publication workflow, and lease command while adding substantial focused regression coverage.

Merge-risk options

Maintainer options:

  1. Attach deployed authority and recovery evidence (recommended)
    Before merge, provide a redacted production queue trace that shows a churned batch publishes and a revoked target is rejected before publisher I/O.
  2. Pause pending production verification
    Keep the PR open until the deployment can supply the described real queue and authorization evidence.

Technical review

Best possible solution:

Land the focused queue repair only after a redacted deployed trace proves both publication recovery and final-effect rejection after target revocation.

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

No high-confidence deployed reproduction is present in the reviewed evidence. The source path and focused harness describe a credible regression mechanism, but they do not independently establish the production before/after result.

Is this the best way to solve the issue?

Yes, conditionally: the patch narrows cache reuse to signed intake and preserves live checks before credential-bearing work, which is the appropriate boundary if deployment evidence confirms it.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add merge-risk: 🚨 availability: The modified batching and stale-row handling control whether queued publications make progress.

Label justifications:

  • P1: Publication starvation can prevent review results from reaching maintainers during real queue load.
  • merge-risk: 🚨 security-boundary: The PR changes persisted hosted-target admission decisions that gate later credential-bearing publication work.
  • merge-risk: 🚨 availability: The modified batching and stale-row handling control whether queued publications make progress.
  • rating: 🦪 silver shellfish: Overall readiness is 🦪 silver shellfish; proof is 🦪 silver shellfish and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs real behavior proof before merge: Authority-chain proof required: the changed ExactReviewQueue admission path persists a public-target decision before later publisher work, but the available evidence is an in-memory Durable Object harness and workflow-definition tests rather than an after-fix deployed trace showing recovery and rejection before final publisher I/O. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Evidence

Security concerns:

  • [medium] Prove revocation blocks publisher-side effects — dashboard/exact-review-queue.ts:7632
    The intake cache persists a prior public-target observation; the supplied tests model revocation, but no deployed trace yet proves that a target becoming ineligible is rejected before credential-bearing publisher work.
    Confidence: 0.86

What I checked:

  • Queue claim repair: The introduced batch candidate selection fences a dispatched workflow to still-valid probed key/revision pairs before bounded admission, preventing new queue arrivals from displacing the dispatched work. (dashboard/exact-review-queue.ts:6373, c889d48b97a3)
  • Credential-boundary implementation: Cached public admission is restricted by the intake argument, while callers without it continue through a live probe; concurrent terminal observations revoke cached admission. (dashboard/exact-review-queue.ts:7632, c889d48b97a3)
  • Focused regression coverage: The added queue harness covers selection churn, stale admission fallback, terminal revocation, and live-probe rejection during batch claims; this supports the source reasoning but is not deployed behavior proof. (test/exact-review-publication-batches.test.ts:1117, c889d48b97a3)
  • Feature-history provenance: The queued-publication repair was introduced by the PR’s first commit and then refined by the current head, whose recorded parent is the fail-closed follow-up commit. (dashboard/exact-review-queue.ts:7636, b6383156bf49)
  • Current-main check: Current main is at 8d76b82 and does not contain this PR head, so the central repair is not already implemented on main. (8d76b82df542)
  • Proof gap: The reviewed PR body explicitly limits evidence to the in-memory Durable Object harness and workflow-definition tests, and says the after-deploy queue trace is still to be attached.

Likely related people:

  • unknown: The claimed source-line change could not be verified from bounded local history. (role: source history unknown; confidence: low)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rank-up moves

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

  • Attach the redacted after-fix deployed queue trace described in the PR body.
  • Show that the nearest newly ineligible target is rejected before publisher I/O after revocation.

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 (2 earlier review cycles)
  • reviewed 2026-09-03T00:17:05.086Z sha b638315 :: needs real behavior proof before merge. :: [P1] Fail closed when target visibility cannot be rechecked
  • reviewed 2026-09-03T01:06:27.103Z sha 49736e4 :: needs real behavior proof before merge. :: none

…et admission

Only the signed intake routes may consume a cached public hosted-target
observation. Review claims, dispatch, batch claims, and acknowledgement
paths always perform a live public probe before handing out credential-
bearing work, so a target that turns private is refused there immediately.
A transient probe failure on those live paths keeps a still-valid cached
observation for intake; only terminal observations revoke it.

Co-Authored-By: Claude Fable 5.1 <[email protected]>
@steipete

steipete commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

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

@clawsweeper clawsweeper Bot added P1 Urgent regression or broken agent/channel workflow affecting real users now. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. P0 Emergency: data loss, security bypass, crash loop, or unusable core runtime. labels Sep 3, 2026
Consolidate cached admission checks, batch probe validation, stale-head reads, lease identity checks, regression fixtures, and docs.

Preserve intake-only caching and all revocation, pruning, and lease fences.
PR insertions against main: 1,124 before; 782 after (30.4% fewer).
@clawsweeper clawsweeper Bot added the merge-risk: 🚨 availability 🚨 Merging this PR could cause crashes, hangs, restart loops, stalls, or process outages. label Sep 3, 2026
@steipete
steipete merged commit 139deec into main Sep 3, 2026
16 checks passed
@steipete
steipete deleted the claude/vibrant-blackwell-a8d1e6 branch September 3, 2026 01:28
@steipete

steipete commented Sep 3, 2026

Copy link
Copy Markdown
Contributor Author

Post-deploy proof (production clawsweeper-status)

Merge commit 139deec86, deployed via https://github.com/openclaw/clawsweeper/actions/runs/33703794935 (01:29Z), rolled back once by an over-cautious verification gate (https://github.com/openclaw/clawsweeper/actions/runs/33705607433, 01:55Z), and redeployed via https://github.com/openclaw/clawsweeper/actions/runs/33705843730 (01:59Z). Smoke tests passed on each deploy. /api/health reports deployment_sha = merge commit.

Queue before/after (lanes.publication)

Field 2026-09-02 22:52Z (before) 01:28Z (before deploy) 02:45Z (45 min after redeploy)
pending / ready 371 / 371 301 / 301 110 / 109
oldest_pending_at 2026-08-13T09:14Z 2026-08-13T09:14Z 2026-08-18T15:20Z
next_attempt_at 2026-08-13T09:24Z 2026-08-13T09:24Z 2026-08-18T15:20Z
completed_total 192,046 192,701 193,217

The 243 stale-revision rows reported by the maintenance dry run were pruned within the first alarm passes (301 → 81 pending at +45 s). A later dry run (https://github.com/openclaw/clawsweeper/actions/runs/33706395580) shows what remains eligible: 18 stale revisions with command context (kept for the operator path on purpose) and 13 legacy state-batch terminal candidates (need GitHub reads). Neither class blocks batching.

Batch workflow behavior

Baseline 22:00Z–01:29Z: 117 dispatches, 44 (38%) exited in under 60 s without claiming, 73 claimed, 17 of those failed (23%).

Redeploy window 01:59Z–02:45Z: 19 dispatches, 2 (11%) no-claim exits, 10 claimed and completed, 6 published successfully, 4 failed. Every post-redeploy batch that claimed carried a real batch (the exact-selection mismatch that previously retired reservations every 30 s is gone). The 4 failures were a single burst at 02:37–02:38Z: three client-side 20 s timeouts against the queue Worker during item preparation and one heartbeat that failed the same way. Worker logs in that period show Durable Object is overloaded. Requests queued for too long. and Internal error in Durable Object storage caused object to be reset; the object spends most of its CPU on /internal/state/records/export (about 24 s CPU in a 166 s window), which every batch's state hydration calls. Those are pre-existing platform/capacity classes; #1368 adds bounded retries for the heartbeat and post-effect requests, and export cost is a separate follow-up.

Handoff health stayed healthy for most samples; brief dispatcher_blocked and claim_stalled flips coincided with the review lane's workflow-state preflight and Actions claim latency, not the publication changes.

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. merge-risk: 🚨 security-boundary 🚨 Merging this PR could weaken sandboxing, authorization, credentials, or sensitive data. P1 Urgent regression or broken agent/channel workflow affecting real users now. 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant