Skip to content

perf(state): switching between agents reopens agent database executors on every request - #165993

Merged
steipete merged 5 commits into
mainfrom
codex/stab-warm-executors
Oct 7, 2026
Merged

steipete merged 5 commits into
mainfrom
codex/stab-warm-executors

Conversation

@steipete

@steipete steipete commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Maintainer decision: approved. A per-agent LRU of 4 warm executors, including the measured memory cost of about 110 MiB per additional warm idle executor (about 330 MiB from one to four). The branch merged current main after #165680 and #166003 landed in the same owner; their admission receipts, revocation and readmission, creation witnesses, and borrower accounting are preserved.

What Problem This Solves

Fixes: creating sessions or running turns for different agents back to back is slow. The agent-database executor kept only one global idle generation, so every switch between agents closed one executor and cold-opened the other, which took about 600-800 ms.

User Impact

User impact: with two or more agents in use, sessions.create and other agent-database work no longer pay a cold executor open on every agent switch. The cost is memory: each additional warm idle executor holds roughly 100 MiB until its idle timeout or LRU eviction.

Why This Change Was Made

The executor owner now retains up to four idle executors, keyed by physical agent, with least-recently-used eviction and an independent idle timer for each. Gateway shutdown closes all of them through the existing custody. A lifecycle watcher retires the affected executor after a committed agent removal, rename, or storage-path change.

Evidence

Live (dev Gateway, two agents on the built-in and Codex runtimes; fresh state, one session per agent first, then 6 sessions.create alternating agents, measured twice):

Build Sequential p50 / p95 Concurrent p50 / p95 Process RSS after
main 2983dfcfb319 609 / 787 ms, 592 / 726 ms 605 / 919 ms, 631 / 960 ms 1477 MiB
this branch 27 / 50 ms, 28 / 33 ms 70 / 88 ms, 73 / 85 ms 1576 MiB (+99 MiB, one extra warm executor)

Owner probe: 6 alternating creates open 6 executors on main and 2 on this branch (p50 715 to 31 ms). RSS probe: 105-107 MiB per additional warm idle executor, 316-322 MiB more for four than for one. Process RSS stayed elevated after all four stores closed, so prompt memory reclamation is not proven.

TMPDIR=/private/tmp/oc-warm-executors pnpm test src/state/openclaw-agent-execution.idle.test.ts --maxWorkers=1     # 13 passed (120.5 s wall, cold worker compile)
five owner and sibling files                                                                                        # 79 passed (56.4 s wall)
alternating-agent regression on main                                                                                # fails: 6 opens instead of 2

Lint, core types, format, docs lint, and the madge cycle check pass. Autoreview was scoped-clean through P2.

After the port onto main (merge commit 66674368539d): 203 tests across 13 files pass (one Linux-only skip). New regressions cover revoked receipts requiring fresh validation and active creators surviving eviction pressure. Owner probe on the port: 6 alternating creates open 6 executors on main and 2 on the branch; p50 756 to 48 ms, p95 1027 to 685 ms; 109.6 MiB per additional warm executor. Autoreview of the merged branch was scoped-clean through P2.

Production +109/-70, tests +289/-2, docs +2/-0 (against current main).

Latest conflict repair: merged main 7880834c19616b5efb871e1755cd4b30cf2f2481 into this branch as e3bc95ccc2b93ed174417e3f2367c3fda8bf7f18, preserving main's admission-error and execution-scope import split alongside the configuration watcher. No rebase or product-scope change. The PR delta remains five files (+400/-72), including production +109/-70.

Validation of the repaired tree: pnpm test src/state/openclaw-agent-execution*.test.ts src/state/openclaw-agent-db.worker-admission.test.ts --maxWorkers=1 passed 315 tests across 21 files, with one platform skip, in 287.95 seconds wall time. This includes idle revoked-receipt readmission, missing-index readmission, active-creator eviction pressure, configuration retirement, restart drain, and shutdown. Formatting and git diff --check passed. Independent Codex autoreview was scoped-clean through P2. Existing live Gateway measurements remain prior-head evidence; the conflict resolution changes imports only.

Latest mechanical CI repairs: f4493cc433e5 adds the configuration watcher to the trusted PR wrapper inventory (20/20 source-closure tests pass, 27.80 seconds wall). CI run 37556223388 then found four possibly-undefined fixture accesses in openclaw-agent-execution.idle.test.ts; 7b685c4ffd7a adds runtime presence assertions before those accesses, preserving the expected behavior. The affected state/logging test-type shard passes, all 14 idle-executor tests pass (8.85 seconds wall), and focused lint, formatting, and diff checks pass. Fresh isolated Codex autoreview is scoped-clean through P2 for the full candidate and the subsequent fixture-only repair. Production code is unchanged by both mechanical repairs.

Keep an owner-local LRU of four idle physical-agent executors with independent
idle timers, cleanup custody, and shutdown drainage. Retire affected executors
when committed configuration removes or renames their agent ID or changes a
storage locator. Keep display-only and unrelated config changes warm.

Alternating sessions.create calls previously reopened the executor on every
agent switch. The six-create baseline opened six workers with p50 715 ms and
p95 854 ms. Deterministic owner tests reproduce six opens on the original code
and verify two with retention, alongside eviction, expiry, aliases, config
invalidation, shutdown, and failed-close custody.

No schema, stored data, public configuration, or update contract changes.
@clawsweeper

clawsweeper Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: M labels Oct 6, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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 Oct 6, 2026
@clawsweeper

clawsweeper Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 6, 2026, 9:34 PM ET / October 7, 2026, 01:34 UTC (Revision 6).

ClawSweeper review

What this changes

Retains up to four idle agent database workers to reduce delays when switching agents, with independent expiry, eviction, configuration cleanup, and supporting tests and documentation.

Merge readiness

✅ Ready for maintainer review

This PR remains useful: current main still retains only one idle executor. The prior wrapper-inventory finding is resolved, and the latest fixture-only repair introduces no blocking finding. The accepted memory tradeoff remains unchanged.

Priority: P2
Reviewed head: 7b685c4ffd7a14c8f086cde56e7292a32ad04d00

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused lifecycle repair with strong real performance evidence, resolved prior feedback, and no remaining actionable finding.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): Recorded real dev-Gateway sessions.create runs exercise the changed execution owner and show lower alternating-agent latency; integrated owner measurements confirm six worker opens becoming two. GitHub comparison preserves production proof continuity through the fixture-only head. No stored-data contract changes require migration proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): Recorded real dev-Gateway sessions.create runs exercise the changed execution owner and show lower alternating-agent latency; integrated owner measurements confirm six worker opens becoming two. GitHub comparison preserves production proof continuity through the fixture-only head. No stored-data contract changes require migration proof.
Evidence reviewed 9 items Pinned introduced change: Reviewed the merge-base-to-head delta. The execution owner replaces its single idle slot with a bounded set, preserves borrower accounting, and retires affected owners through existing cleanup custody.
Current-main necessity: Fetched main still declares one optional idle owner and closes a different idle generation before opening another. The merged admission and concurrent-creation fixes do not implement this PR's bounded warm pool.
Incremental repair verified: GitHub's exact commit patch confirms that the latest commit only imports strict assertions and checks fixture entries before use; production code and expected test outcomes are unchanged. Local comparison encountered an unavailable historical blob and an HTTP 403; GitHub commit inspection supplied the missing comparison.
Findings None None.
Security None None.

How this fits together

Agent database workers execute storage operations requested by session creation and other Gateway workflows. The execution owner controls worker reuse, admission, and cleanup before returning results to callers.

flowchart TD
  A[Session and agent requests] --> B[Database execution owner]
  B --> C[Current admission checks]
  C --> D[Reuse or open worker]
  D --> E[Agent SQLite database]
  E --> F[Return operation result]
  F --> G[Bounded idle worker pool]
  G --> D
  H[Expiry configuration changes and shutdown] --> G
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +39, Tests +294, Docs +2, Other +1. Total +336 across 6 files.

View PR surface stats
Area Files Added Removed Net
Source 2 109 70 +39
Tests 2 296 2 +294
Docs 1 2 0 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 1 1 0 +1
Total 6 408 72 +336

Review metrics

Metric Value Why it matters
Accepted warm-worker memory Up to 3 additional idle workers; approximately 330 MiB additional RSS The measured resource cost is explicitly accepted, including uncertain prompt reclamation after close.
Production versus test growth Production +109/-70; tests +296/-2 Production growth implements bounded retention and configuration retirement; tests cover eviction, expiry, cleanup, and readmission.

Technical review

Best possible solution:

Keep bounded worker reuse under the existing execution owner, preserving per-operation admission and complete lifecycle cleanup.

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

Yes: alternating session creation between agents exercises the single-idle-worker churn shown in current main and the supplied live baseline. This review inspected source and recorded evidence without executing the workload.

Is this the best way to solve the issue?

Yes: bounded reuse repairs the existing execution owner while preserving admission and cleanup contracts; the latest assertions safely repair fixture typing without weakening coverage.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against c3c55eadb1c8.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This addresses repeated multi-agent storage latency with a bounded performance improvement.
  • merge-risk: 🚨 availability: Retaining four workers increases process memory by roughly 330 MiB over one; the maintainer explicitly accepted this measured tradeoff.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): Recorded real dev-Gateway sessions.create runs exercise the changed execution owner and show lower alternating-agent latency; integrated owner measurements confirm six worker opens becoming two. GitHub comparison preserves production proof continuity through the fixture-only head. No stored-data contract changes require migration proof.
  • proof: sufficient: Contributor real behavior proof is sufficient. Recorded real dev-Gateway sessions.create runs exercise the changed execution owner and show lower alternating-agent latency; integrated owner measurements confirm six worker opens becoming two. GitHub comparison preserves production proof continuity through the fixture-only head. No stored-data contract changes require migration proof.

Evidence

What I checked:

  • Pinned introduced change: Reviewed the merge-base-to-head delta. The execution owner replaces its single idle slot with a bounded set, preserves borrower accounting, and retires affected owners through existing cleanup custody. (src/state/openclaw-agent-execution.ts:64, 7b685c4ffd7a)
  • Current-main necessity: Fetched main still declares one optional idle owner and closes a different idle generation before opening another. The merged admission and concurrent-creation fixes do not implement this PR's bounded warm pool. (src/state/openclaw-agent-execution.ts:63, c3c55eadb1c8)
  • Incremental repair verified: GitHub's exact commit patch confirms that the latest commit only imports strict assertions and checks fixture entries before use; production code and expected test outcomes are unchanged. Local comparison encountered an unavailable historical blob and an HTTP 403; GitHub commit inspection supplied the missing comparison. (src/state/openclaw-agent-execution.idle.test.ts:191, 7b685c4ffd7a)
  • Prior finding resolved: The trusted wrapper inventory now lists the configuration watcher. This resolves the concrete finding retained from the earlier review; the supplied discussion records 20 passing source-closure checks. (scripts/pr-lib/wrapper-components.txt:1640, 7b685c4ffd7a)
  • Real behavior and accepted resource cost: The captured PR body reports real dev-Gateway sessions.create measurements across two agents: sequential p50 falls from roughly 600 ms to 27–28 ms, with concurrent improvement as well. The integrated owner probe records six opens becoming two and approximately 109.6 MiB per additional warm worker. Maintainer context explicitly accepts four warm executors and roughly 330 MiB additional memory; prompt RSS reclamation after closing is not established and remains within that accepted tradeoff. (66674368539d)
  • Production proof continuity: The GitHub comparison from the integrated proof revision to the pinned head reports no net changes in the execution owner or configuration watcher. The live measurements remain prior-head observations, supported by subsequent focused validation rather than represented as a new live run. (src/state/openclaw-agent-execution.ts, 7b685c4ffd7a)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • goutamadwant: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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 (5 earlier review cycles)
  • reviewed 2026-10-06T07:40:46.219Z sha 9e6d153 :: blocked before merge. :: none
  • reviewed 2026-10-06T09:17:36.679Z sha 6667436 :: blocked before merge. :: none
  • reviewed 2026-10-07T01:01:44.678Z sha 6667436 :: needs changes before merge. :: none
  • reviewed 2026-10-07T01:12:36.816Z sha e3bc95c :: blocked before merge. :: [P2] Include the config watcher in the trusted wrapper inventory
  • reviewed 2026-10-07T01:22:21.619Z sha f4493cc :: needs maintainer review before merge. :: none

Merge pinned main d20a281 into the
published warm-executor branch without rewriting its history.

Retain the current file execution owner, worker admission and validation
receipts, creation witness, and creating-borrower accounting. Keep four
idle physical-agent executors with independent expiry and lifecycle
retirement; evict only idle owners in least-recently-used order.

Cover shared creators under eviction pressure and readmission of revoked
proof and missing indexes through the same idle native generation.

Proof: 203 owner tests passed across 13 files (one Linux-only skip),
focused final idle and worker-admission tests passed, core types and
scoped lint/format passed, and Madge found no cycles. The main negative
control opens six executors for six alternating borrows versus two.
Direct sessions.create p50/p95 measured 756/1027 ms on main versus
48/685 ms with retention. Marginal idle RSS measured about 110 MiB per
extra executor; maintainer memory sign-off remains pending.
@steipete
steipete marked this pull request as ready for review October 7, 2026 00:51
@steipete

steipete commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper approve

@clawsweeper

clawsweeper Bot commented Oct 7, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. 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 Oct 7, 2026
The extracted PR-tooling wrapper closure requires every runtime source module; add src/state/openclaw-agent-execution-config.ts so wrapper source-closure checks resolve it.
@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Oct 7, 2026
@steipete

steipete commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Please review exact head f4493cc. The configuration watcher is now included in scripts/pr-lib/wrapper-components.txt; the focused wrapper source-closure and eager-import-closure tests passed 20/20. The existing maintainer approval for four warm idle executors and its measured memory cost remains in force.

@clawsweeper

clawsweeper Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

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 rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 7, 2026
@steipete
steipete merged commit 1240759 into main Oct 7, 2026
137 of 138 checks passed
@steipete
steipete deleted the codex/stab-warm-executors branch October 7, 2026 01:39
@steipete

steipete commented Oct 7, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 7, 2026
…s on every request (openclaw#165993)

* fix(state): retain four warm agent database executors

Keep an owner-local LRU of four idle physical-agent executors with independent
idle timers, cleanup custody, and shutdown drainage. Retire affected executors
when committed configuration removes or renames their agent ID or changes a
storage locator. Keep display-only and unrelated config changes warm.

Alternating sessions.create calls previously reopened the executor on every
agent switch. The six-create baseline opened six workers with p50 715 ms and
p95 854 ms. Deterministic owner tests reproduce six opens on the original code
and verify two with retention, alongside eviction, expiry, aliases, config
invalidation, shutdown, and failed-close custody.

No schema, stored data, public configuration, or update contract changes.

* fix(state): list warm executor config module in the PR wrapper inventory

The extracted PR-tooling wrapper closure requires every runtime source module; add src/state/openclaw-agent-execution-config.ts so wrapper source-closure checks resolve it.

* test(state): assert warm executor fixture entries exist
steipete added a commit that referenced this pull request Oct 7, 2026
Retire warm-cache eligibility when configuration changes, then drain the
physical executor after its last borrower settles. Config retirement from
#165993 revoked acknowledged work; the fresh-borrower repair in b798788
still fenced captured borrowers through a configuration epoch.

Remove that epoch fence while preserving physical identity, explicit
revocation, native admission recovery, and exact cleanup ownership. Released
references cannot select a current generation for refusal cleanup. Keep new
routing in the configuration owner and retain the original store for admitted
work. Schemas, stored bytes, and update behavior remain unchanged.

Cover last-borrower drainage, released-reference successor safety, and a
configuration change after a real native open. Both lifetime regressions
fail on current main; the native-open control fails at assertConfigCurrent.

Validation: all 544 selected tests pass across 31 files on isolated Linux,
including all 23 reported Gateway cases, owner siblings, and the suppression
guard. Full changed-file checks pass, including all core/test type graphs,
lint, repository guards, and zero runtime value cycles. The loaded macOS
parallel run hit readiness/timeouts and fixture cleanup recursion; the same
cases pass unchanged on Linux. No timeouts, retries, or suppressions changed.
jalehman added a commit that referenced this pull request Oct 7, 2026
…se on main (#166529)

* test(worker): stop chat.abort cases inheriting a pinned runtime config

Each chat.abort case captured the runtime config snapshot only after
ComposedGatewayHarness.create had run Gateway session storage work, which
pins the ambient test-home config through getRuntimeConfig. The case then
"restored" that pinned config, so every later case started with it.

Since #165993, agent database executors watch the runtime config's store
locator. In case 2+, the Gateway executor for the harness agent database
captured the inherited test-home locator, and the case's
setRuntimeConfigSnapshot(harness.cfg) retired it. The in-process simulated
worker had already replaced process.env.OPENCLAW_STATE_DIR, so the Gateway
live-event trajectory recorder reopened that database under the worker's
shared-state database and the executor stayed warm. Gateway transcript
commits were then refused ("belongs to another shared-state database"),
the worker reconnected and retried about a thousand times, and never
reached the provider before the cancellation-boundary timeout.

Capture the snapshot before the harness exists and restore it after
harness.close(), so each case starts from the same state as the first.

* test(worker): restore the runtime config even when harness cleanup fails
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 8, 2026
Retire warm-cache eligibility when configuration changes, then drain the
physical executor after its last borrower settles. Config retirement from
openclaw#165993 revoked acknowledged work; the fresh-borrower repair in e922159
still fenced captured borrowers through a configuration epoch.

Remove that epoch fence while preserving physical identity, explicit
revocation, native admission recovery, and exact cleanup ownership. Released
references cannot select a current generation for refusal cleanup. Keep new
routing in the configuration owner and retain the original store for admitted
work. Schemas, stored bytes, and update behavior remain unchanged.

Cover last-borrower drainage, released-reference successor safety, and a
configuration change after a real native open. Both lifetime regressions
fail on current main; the native-open control fails at assertConfigCurrent.

Validation: all 544 selected tests pass across 31 files on isolated Linux,
including all 23 reported Gateway cases, owner siblings, and the suppression
guard. Full changed-file checks pass, including all core/test type graphs,
lint, repository guards, and zero runtime value cycles. The loaded macOS
parallel run hit readiness/timeouts and fixture cleanup recursion; the same
cases pass unchanged on Linux. No timeouts, retries, or suppressions changed.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 8, 2026
…se on main (openclaw#166529)

* test(worker): stop chat.abort cases inheriting a pinned runtime config

Each chat.abort case captured the runtime config snapshot only after
ComposedGatewayHarness.create had run Gateway session storage work, which
pins the ambient test-home config through getRuntimeConfig. The case then
"restored" that pinned config, so every later case started with it.

Since openclaw#165993, agent database executors watch the runtime config's store
locator. In case 2+, the Gateway executor for the harness agent database
captured the inherited test-home locator, and the case's
setRuntimeConfigSnapshot(harness.cfg) retired it. The in-process simulated
worker had already replaced process.env.OPENCLAW_STATE_DIR, so the Gateway
live-event trajectory recorder reopened that database under the worker's
shared-state database and the executor stayed warm. Gateway transcript
commits were then refused ("belongs to another shared-state database"),
the worker reconnected and retried about a thousand times, and never
reached the provider before the cancellation-boundary timeout.

Capture the snapshot before the harness exists and restore it after
harness.close(), so each case starts from the same state as the first.

* test(worker): restore the runtime config even when harness cleanup fails
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: M 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.

1 participant