Skip to content

perf(agents): serialize large model requests once - #159574

Merged
steipete merged 3 commits into
mainfrom
steipete/perf-micro-model-request-body-serialization-20260919
Sep 27, 2026
Merged

steipete merged 3 commits into
mainfrom
steipete/perf-micro-model-request-body-serialization-20260919

Conversation

@steipete

@steipete steipete commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Large OpenAI-compatible model requests were traversed and serialized on the Gateway event loop for both diagnostic byte accounting and SDK dispatch, after already being sent to a worker for retry hashing.

User Impact

Reduces main-thread work and temporary JSON allocation for large HTTP model calls while preserving the wire body. No new configuration options.

Why This Change Was Made

Prepare the final HTTP body after payload hooks, sanitizers, tool filtering, and continuation projection. The existing prompt worker now encodes ordinary data once, hashes those encoded bytes, and transfers its buffer back. Diagnostics use its byte length, and guarded fetch consumes the prepared stream flag. SDK retries retain the same encoded body; requests whose content changes are prepared again. No cross-request payload cache is introduced.

The SDK contract is RequestOptions.body in node_modules/openai/internal/request-options.d.ts, raw typed-array handling in client.mjs::buildBody, and the options override in resources/responses/responses.mjs::create and resources/chat/completions/completions.mjs::create. Original params still supply SDK stream metadata.

The reported captureModelEvent clone belongs to completed assistant-response retention, not request diagnostics, and remains intact. WebSocket, compact, and custom-provider paths keep their existing behavior. Custom getters/toJSON and worker failure retain local encoding fallback.

Evidence

The synthetic fixture has 100 messages, six base64 images, Unicode/escaping cases, and an exact 614,400-byte final request. It goes through the actual transport, SDK, worker, and diagnostics, including tool removal after the payload hook.

Measurement per request Before After
Main-thread full-payload serialization traversals 2 0
JSON string bytes materialized by accounting + SDK encoding 1,229,010 614,400 (worker)
Request encoding operations repeated accounting + SDK one worker JSON encoding
Wire bytes 614,400 614,400, identical

The encoding microbenchmark counts returned JSON string bytes, not all heap allocation. The new UTF-8 buffer is also 614,400 bytes and is transferred from the worker. Existing worker input cloning remains. Instrumented synchronous SDK timings were 2.933 ms/call before versus 4.382 ms for pre-encoded Buffer dispatch; this is an allocation/off-thread change, not a demonstrated end-to-end latency or RSS improvement. An SDK retry probe reused the identical buffer twice without another serialization.

Net production growth: 138 lines. Independent Codex review: no P0–P2 findings.

All heavy validation used blacksmith-testbox, profile openclaw-check, with one active command per lease. All leases are stopped.

Testbox Command / proof Result
tbx_01m3gx0wgpg15kf00v5k0v94xb pnpm build Passed, 7m 0.8s (worker and transport implementation).
tbx_01m3gx0wgpg15kf00v5k0v94xb node scripts/run-vitest.mjs with the 12 focused OpenAI provider, transport, prompt-state, and diagnostics files, --maxWorkers=1 Passed, four routed shards in 34.86s.
tbx_01m3gx0wgpg15kf00v5k0v94xb New fixture against the original production owners at c43bc185020e Failed as intended: two main-thread payload traversals instead of zero; original wire still matched.
tbx_01m3gzycj9z85n6swpenpz3qrk Final fixture plus guarded-fetch and SSE files, --maxWorkers=1 79 tests passed; 22.43s wall.
tbx_01m3gzycj9z85n6swpenpz3qrk node scripts/check-changed.mjs --base c43bc185020e48b259e190ea9fbe064bc1184ba2 All guards, core types, 25 core-test typecheck shards, and dead-export scans passed. Final lint found two fixture style issues, repaired and verified below.
tbx_01m3h2z7q6q38pn0f99eb26nj5 Exact changed-core lint command: node scripts/run-oxlint.mjs --tsconfig config/tsconfig/oxlint.core.json <18 changed TS files> --threads=1 Passed, zero warnings/errors, 19.8s.
tbx_01m3h2z7q6q38pn0f99eb26nj5 pnpm test src/agents/embedded-agent-runner/model-request-body.test.ts --maxWorkers=1 --reporter=dot Passed, 17.86s wall; cold worker compilation 12.21s; test execution about 0.3s. Peak runner RSS 5,597,692 KiB includes the compiler, not Gateway memory.

The moved guarded-fetch/SSE coverage took 2.05s for its two-file shard (78 tests). No live deployment, production RSS, or production event-loop measurement is claimed. Reused-lease synchronization timeouts required fresh leases; no sync bypass or local heavy validation was used. The final GitHub CI build also passed on the exact published head (205s).

CI recovery: the first run stopped at the lint-suppression inventory because its merge snapshot contained a newly added Codex test-helper suppression. Upstream #159553 (b8fa8dc5250b) removed that suppression. This branch was rebased onto the fix with an identical stable patch ID. On blacksmith-testbox lease tbx_01m3h5zmeewmkc43bgj7dh890q, the exact original 48-file shard plan passed (47 files passed, one skipped; 1,398 tests passed, 101 skipped; 132.65s), and the serialization fixture passed again in 17.05s. That lease is stopped. Second CI run (superseded): https://github.com/openclaw/openclaw/actions/runs/36312245869 (head 0bd77a64106b58616dffbc783e45f41db75bd97d).

The second CI run exposed a fixture assumption: the continuation test fetch mock treated every byte buffer as zstd. The fixture now decodes by Content-Encoding, supporting both native zstd and uncompressed SDK JSON without changing its acceptance, refusal, cancellation, or settlement assertions. On blacksmith-testbox lease tbx_01m3h7v2sf1f749287xm78a234, replaying the original embedded-run group passed all 120 files / 1,990 tests in 69.96s. The 21-test continuation file passed in 2.72s wall with one worker; its focused changed-file checks and independent review passed. Lease stopped. Third CI run (superseded): https://github.com/openclaw/openclaw/actions/runs/36314572889 (ae0ed133b5f0617f2ca8cfea6326b57141653c01).

Remaining CI uncertainty: the third run failed the existing SIWC callback-port retry test with an error result, but its assertion omitted the actual error. On blacksmith-testbox lease tbx_01m3hak0psp9chkjkjq233cxft, the original two-group shard passed (74 files; 1,920 tests passed, three skipped), followed by five passing standalone probes. Temporary tracing showed listener close before retry binding. These passes do not establish a root cause or a fix. The test now includes WizardSession.getError() in the same assertion message; no timeout or assertion was weakened and no production auth behavior changed. That diagnostic-only change passed its focused changed-file checks, independent review, and standalone test (18.13s wall including cold worker compilation). Lease stopped. Current-head CI passed: https://github.com/openclaw/openclaw/actions/runs/36317673749 (b003d4fa632c84ec668d06874da4599032e1608a).

Final CI result on b003d4fa632c84ec668d06874da4599032e1608a: success, 847s elapsed; 157 jobs succeeded and 21 were skipped. Both required openclaw/ci-gate entries passed, including applicable security review requirements. The checks-node-compact-large-15 and checks-node-compact-small-38 jobs took 454s and 282s respectively, including setup and all tests in each job. The earlier SIWC failure remains unexplained; a green run is not claimed as a fix.

@clawsweeper

clawsweeper Bot commented Sep 27, 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 agents Agent runtime and tooling size: M labels Sep 27, 2026
@steipete
steipete marked this pull request as ready for review September 27, 2026 09:48
@steipete
steipete enabled auto-merge (squash) September 27, 2026 09:52
@clawsweeper

clawsweeper Bot commented Sep 27, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 27, 2026, 8:17 AM ET / 12:17 UTC (Revision 4).

ClawSweeper review

What this changes

The branch prepares OpenAI-compatible HTTP request bodies in the prompt worker and passes their encoded bytes to retry checks, diagnostics, and the SDK, with transport and regression tests.

Merge readiness

⛔ Blocked before merge - 4 items remain

Keep this PR open. Current main still uses separate prompt hashing and SDK serialization, so the optimization remains useful. The byte-parity fixture supports the new transport path, but two opt-in live checks reject its byte bodies and the overall performance benefit remains unmeasured.

Priority: P2
Reviewed head: b003d4fa632c84ec668d06874da4599032e1608a

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The transport fixture gives useful byte-level evidence, but broken live checks and the missing Gateway performance comparison limit readiness.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: The author has verified repository admin permission, so the external contributor real-setup gate does not apply. The reported SDK, worker, diagnostics, and mocked-fetch fixture observes identical wire bytes and retry behavior; the two opt-in live interceptors still need byte-body support. No stored-data contract changes.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The author has verified repository admin permission, so the external contributor real-setup gate does not apply. The reported SDK, worker, diagnostics, and mocked-fetch fixture observes identical wire bytes and retry behavior; the two opt-in live interceptors still need byte-body support. No stored-data contract changes.
Evidence reviewed 11 items Current main: Current main sends the prompt to the worker for hashing and later passes the request object to the SDK; it does not carry prepared request bytes.
Latest release: The v2026.9.6 transport still calls the SDK without a prepared body override; this PR's central behavior is absent from that release.
Introduced byte body: The introduced helper returns a Uint8Array as the SDK request body.
Findings 1 actionable finding [P2] Decode byte bodies in both live Responses interceptors
Security None None.

How this fits together

The embedded agent runner prepares model prompts and passes OpenAI-compatible requests to the AI transport package. That package sends the body through the OpenAI SDK and guarded fetch, then returns model responses and diagnostics to the run.

flowchart LR
  A[Agent prompt and payload hooks] --> B[Prompt worker]
  B --> C[Encoded body and retry digest]
  C --> D[OpenAI SDK]
  D --> E[Guarded provider fetch]
  E --> F[Model response]
  C --> G[Request diagnostics]
Loading

Before merge

  • Decode byte bodies in both live Responses interceptors (P2) - Late discovery on transport code unchanged since the prior reviewed head: this return value is a Uint8Array, while src/agents/tool-search.live.test.ts and src/agents/embedded-agent-runner.responses-output-limit.live.test.ts both throw unless init.body is a string. Their opt-in OpenAI Responses runs therefore stop before provider I/O. Decode the request body as UTF-8 JSON while preserving each check's measurements and request rewriting.
  • Resolve merge risk (P1) - Two opt-in OpenAI Responses live checks reject the new byte body before provider I/O, leaving those proof lanes broken after merge.
  • Resolve merge risk (P1) - The reported synchronous SDK segment worsens from 2.933 to 4.382 ms per call, while paired full-request seconds and Gateway RSS are absent; the net effect of heavier work in the shared worker is unknown.
  • Complete next step (P2) - Update both opt-in live OpenAI Responses interceptors for byte bodies, then add paired full-request seconds and Gateway RSS for a representative large agent request.

Findings

  • [P2] Decode byte bodies in both live Responses interceptors — packages/ai/src/transports/model-request-body.ts:49
Agent review details

Security

None.

PR surface

Source +138, Tests +156, Other 0. Total +294 across 21 files.

View PR surface stats
Area Files Added Removed Net
Source 14 178 40 +138
Tests 6 207 51 +156
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 2 2 0
Total 21 387 93 +294

Review metrics

Metric Value Why it matters
Code delta production +138, tests and test support +156 The added production path consolidates encoding; its size needs a demonstrated runtime benefit.
Reported SDK segment 2.933 to 4.382 ms per call The measured synchronous segment worsened, so the intended main-thread saving needs end-to-end context.

Merge-risk options

Maintainer options:

  1. Repair and measure (recommended)
    Decode byte bodies in both live interceptors, then record paired full-request seconds and Gateway RSS for a representative large agent request.
  2. Pause the optimization
    Hold this PR if representative measurements cannot support an acceptable latency and memory tradeoff.

Technical review

Best possible solution:

Keep one SDK-compatible encoding path after the live checks accept byte bodies and representative agent runs establish acceptable end-to-end time and Gateway memory use.

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

Yes, from source: an OpenAI Responses SSE request now reaches two live interceptors with a Uint8Array body, and each throws on non-string bodies. This read-only review did not run the credentialed checks or measure Gateway performance.

Is this the best way to solve the issue?

No for the current branch: the shared worker and SDK body override form a coherent path, but its live proof clients need the new body contract and the net performance tradeoff needs measurement.

Full review comments:

  • [P2] Decode byte bodies in both live Responses interceptors — packages/ai/src/transports/model-request-body.ts:49
    Late discovery on transport code unchanged since the prior reviewed head: this return value is a Uint8Array, while src/agents/tool-search.live.test.ts and src/agents/embedded-agent-runner.responses-output-limit.live.test.ts both throw unless init.body is a string. Their opt-in OpenAI Responses runs therefore stop before provider I/O. Decode the request body as UTF-8 JSON while preserving each check's measurements and request rewriting.
    Confidence: 0.96
    Late finding: first raised on code an earlier review cycle already covered.

Overall correctness: patch is incorrect
Overall confidence: 0.91

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a bounded agent performance improvement with a repairable live-check regression and limited immediate user impact.
  • merge-risk: 🚨 automation: The byte-body change causes two opt-in live proof interceptors to reject requests before network I/O, which routine green CI can miss.
  • merge-risk: 🚨 other: The overall request-time and Gateway-memory tradeoff is unmeasured despite a slower reported SDK segment.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🐚 platinum hermit and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The author has verified repository admin permission, so the external contributor real-setup gate does not apply. The reported SDK, worker, diagnostics, and mocked-fetch fixture observes identical wire bytes and retry behavior; the two opt-in live interceptors still need byte-body support. No stored-data contract changes.

Evidence

Acceptance criteria:

  • [P1] node scripts/check-changed.mjs --base b003d4f.
  • [P1] pnpm test src/agents/tool-search.live.test.ts src/agents/embedded-agent-runner.responses-output-limit.live.test.ts --maxWorkers=1.

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Markus Hartung: 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.

  • Update both live OpenAI Responses interceptors to decode Uint8Array request bodies and preserve their assertions.
  • Record same-host before-and-after full-request seconds and Gateway RSS for a representative large agent request.

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 (3 earlier review cycles)
  • reviewed 2026-09-27T09:55:42.392Z sha ffdc7ea75781cea848a39a41233b8352607f07c4 :: blocked before merge. :: none
  • reviewed 2026-09-27T10:34:42.100Z sha 0bd77a6 :: blocked before merge. :: none
  • reviewed 2026-09-27T11:19:22.373Z sha ae0ed13 :: blocked before merge. :: none

@steipete
steipete force-pushed the steipete/perf-micro-model-request-body-serialization-20260919 branch from ffdc7ea to 0bd77a6 Compare September 27, 2026 10:20
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. 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 Sep 27, 2026
@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 Sep 27, 2026
@steipete
steipete merged commit 69809d7 into main Sep 27, 2026
244 checks passed
@steipete
steipete deleted the steipete/perf-micro-model-request-body-serialization-20260919 branch September 27, 2026 12:22
vincentkoc added a commit that referenced this pull request Sep 27, 2026
* commit '69809d7a94277d01be964bd1cbbb7aa0ebc58c9b': (219 commits)
  perf(agents): serialize large model requests once (#159574)
  refactor(cli): share capability agent-selection test cases (#159616)
  fix(workers): restore installation type checks (#159629)
  test(channels,qa,providers): remove low-value tests (batch d065) (#159627)
  test(doctor): run isolated migration cases concurrently (#159609)
  feat(apple): show agent identities in native chat (#159528)
  chore(i18n): refresh native locales (#159635)
  fix(gateway): keep node provisioning's installation contract after overlapped preparation
  fix(models): keep shared catalog requests alive for remaining callers (#157191)
  feat: let agents query online people and device activity (#159117)
  perf(gateway): first cloud dispatch prepares worker artifacts one after another (#159520)
  refactor(android): deslop Android app third pass (#159589)
  test(qa-lab,openshell,slack,reef,team-reports): remove low-value tests (batch d064) (#159607)
  fix: align process liveness checks (#151107) thanks @ekinnee
  fix: sessions model default does not clear the override (#159587)
  fix(ios): preserve typing during reentrant SwiftUI updates
  fix(ci): frozen 2026.8.33 validation fails on inherited test clock (#159594)
  perf(gateway): avoid duplicate recipient row lookup (#159595)
  refactor(gateway): deslop gateway fourth pass (#158786)
  test(agents): split subagent task-settlement test support under the line cap (#159584)
  ...
vincentkoc added a commit that referenced this pull request Sep 27, 2026
* commit '69809d7a94277d01be964bd1cbbb7aa0ebc58c9b': (219 commits)
  perf(agents): serialize large model requests once (#159574)
  refactor(cli): share capability agent-selection test cases (#159616)
  fix(workers): restore installation type checks (#159629)
  test(channels,qa,providers): remove low-value tests (batch d065) (#159627)
  test(doctor): run isolated migration cases concurrently (#159609)
  feat(apple): show agent identities in native chat (#159528)
  chore(i18n): refresh native locales (#159635)
  fix(gateway): keep node provisioning's installation contract after overlapped preparation
  fix(models): keep shared catalog requests alive for remaining callers (#157191)
  feat: let agents query online people and device activity (#159117)
  perf(gateway): first cloud dispatch prepares worker artifacts one after another (#159520)
  refactor(android): deslop Android app third pass (#159589)
  test(qa-lab,openshell,slack,reef,team-reports): remove low-value tests (batch d064) (#159607)
  fix: align process liveness checks (#151107) thanks @ekinnee
  fix: sessions model default does not clear the override (#159587)
  fix(ios): preserve typing during reentrant SwiftUI updates
  fix(ci): frozen 2026.8.33 validation fails on inherited test clock (#159594)
  perf(gateway): avoid duplicate recipient row lookup (#159595)
  refactor(gateway): deslop gateway fourth pass (#158786)
  test(agents): split subagent task-settlement test support under the line cap (#159584)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 28, 2026
* perf(agents): serialize large model requests once

* test(agents): decode provider fixture bodies by HTTP encoding

* test(auth): expose callback retry failure details
steipete added a commit that referenced this pull request Sep 28, 2026
## What Problem This Solves

The Gateway architecture and cron documentation need to explain timer ownership, wake-after-sleep behavior, and shutdown joining after the scheduler cutovers.

## User Impact

Operators can distinguish a late wake in a running Gateway from cron's separate startup catch-up policy, and understand which work shutdown joins. This docs-only PR changes no runtime behavior or operator configuration.

## Why This Change Was Made

Document the kernel-owned `GatewayScheduler`, its single host timer, default replacement and `mode: "earliest"`, coalescing after sleep, and the `beginClose()` / `stop()` lifecycle. Durable deadlines and execution authority remain with their owners. Request/stream/process timers remain local, and SQLite WAL checkpoints remain storage-owned.

This PR also records the bounded timer census and the closeout's merge/proof evidence. The census is a baseline inventory, not a claim that all background plugin timers have moved to the kernel scheduler.

## Evidence

- Docs head: `4c23620461cd4d7a25f5df8b3856ab9265ec3a5c`, base `8b3f9bd1d69059f1ba8cbcdfb788cfa21bc24c13`. Cherry-picked only reviewed docs commit `522cf46835be9919a14c1b93f4a734c4b64ac720`; stable patch identity matches, exactly two docs pages. **Production +0/-0/net 0; tests +0/-0/net 0; docs +22/-0/net +22.**
- Independent exact-commit Codex autoreview: **scoped-clean through P2**, no accepted/actionable findings; reviewed the docs against the scheduler implementation.
- Exact-head docs sanity passed on Blacksmith Testbox lease `tbx_01m3m10xyr1gsv0bpgymeytt5f` ([lease run](https://github.com/openclaw/openclaw/actions/runs/36424356939)), using a clean detached checkout materialized from the Git bundle. `pnpm docs:list`: 0.11s; `node scripts/check-docs-mdx.mjs docs/automation/cron-jobs/how-it-works.md docs/concepts/architecture.md`: 0.24s, both pages passed; `pnpm docs:check-i18n-glossary --base 8b3f9bd1d69059f1ba8cbcdfb788cfa21bc24c13 --head 4c23620461cd4d7a25f5df8b3856ab9265ec3a5c`: 0.14s; `git diff --check`: passed. No tests added or changed; test cost is zero.
- Required `node scripts/check-changed.mjs --base 8b3f9bd1d69059f1ba8cbcdfb788cfa21bc24c13 -- docs/automation/cron-jobs/how-it-works.md docs/concepts/architecture.md`: **passed, 16.63s**. Dependency install took 6.22s.
- The broader `pnpm docs:check-links:anchors` reports **54 pre-existing broken links**: identical failure lines on this head (9.55s) and clean base `8b3f9bd1d69059f1ba8cbcdfb788cfa21bc24c13` (11.33s), with zero failures in the two changed pages and zero introduced failures. The new scheduler link and anchor are covered by that audit. Missing external ClawHub sources leave their unrelated fragments unverified.
- Merged-main live proof: **not yet run**. The intended proof is an isolated command cron job due in about 20 seconds, SIGSTOP past its due time then SIGCONT, followed by SIGTERM during a second job and a restart duplicate check. Replace this paragraph with observed evidence or link the final proof comment after the merged-main run.

### Closeout landings and accounting

Thirteen code/test PRs are merged with main ancestry verified. Four PRs remain parked with auto-merge disabled after bounded CI investigation; each PR body records its failure evidence and remaining uncertainty. Parked commits are excluded from merged LOC. Persistence-cache cleanup landed independently of activity summaries.

| Slice | PR | Merge SHA / parked head | Production +added/-deleted/net | Tests +added/-deleted/net |
|---|---|---|---:|---:|
| Node-presence dead handles | #160068 | `fa7c9bec6f746c647722371646a79c2413b498fc` | +1/-9/-8 | +0/-1/-1 |
| Approval bootstrap | #160315 | `3903ccc777261db6e71fb840478cd82052ad6386` | +29/-35/-6 | +133/-38/+95 |
| Skills refresh | #160318 | `df785c09718606b68a1f2edda226ba5e2cbcdb6e` | +18/-36/-18 | +102/-40/+62 |
| MCP dead timer options | #160326 | `a68299da6a282602d43dff45081eba83eaab32c6` | +8/-23/-15 | +83/-107/-24 |
| Question deadlines/retention | #160334 | `b9f86cfbf31ddaa28fa4c66d320d54f271b5ab16` | +89/-97/-8 | +211/-107/+104 |
| Restart sentinel | #160335 | `7f9528cbdbfadbad1e78b7aa414a0c5bd04d8b95` | +72/-72/0 | +190/-116/+74 |
| Activity summaries | #160340 | PARKED; head `c32f2e9b9bc676312260b23e5fadd7297ad7fec2` | Excluded | Excluded |
| Cron stream watchers | #160341 | `2aaf6d41a73e43180334a669315eb68bad1b3173` | +40/-37/+3 | +86/-0/+86 |
| Presence publication | #160369 | PARKED; head `8ee671f969a3140b9ad6ea6ac2be5b3eb89204d0` | Excluded | Excluded |
| Device-scope retention | #160370 | `ab2b206e204d46876a404d6a644b3b30afe76bc4` | +27/-26/+1 | +46/-1/+45 |
| Companion dead options | #160371 | `31199f528fad25d05cd55c61028e31d4648b6ad2` | +2/-6/-4 | +0/-0/0 |
| Install-policy test clocks | #160372 | `fc168b2f6c16312181ce15bcb56d36a14e2c4849` | +0/-0/0 | +10/-3/+7 |
| Node connection notices | #160374 | `7df73d33136d139f42168741d167ceba303c6f43` | +37/-55/-18 | +89/-45/+44 |
| Config reload/restart | #160375 | PARKED; head `238fa8cc96a000abafe82c86d49eb8aa496fcab7` | Excluded | Excluded |
| Cron exit watchers | #160381 | `ec1b2b460212cab3a4516bae5f56dc7cb264d4e2` | +32/-26/+6 | +100/-37/+63 |
| Persistence cache | #160391 | `013a04798b000e6f91c3b32b45a37f36207546ce` | +19/-15/+4 | +57/-35/+22 |
| TLS renewal | #160395 | PARKED; head `43edf9c8c6288730835d8b2e9cced5946d9f3637` | Excluded | Excluded |

LOC is cumulative first-parent merge-commit churn (`git diff-tree --numstat --no-renames`), not a moving-main snapshot. Production means `src/**` and `extensions/**` excluding basenames `*.test.ts`, `*.test-support.ts`, `test-helpers*`, and `*.test-utils.ts`. Tests and docs are separate; no production code is moved to tests or scripts to reduce the metric.

| Scope | Production +added/-deleted/net | Tests +added/-deleted/net | Docs +added/-deleted/net |
|---|---:|---:|---:|
| Prior scheduler stack (37 scheduler PRs, four requested repairs, four direct repairs) | +2562/-1495/+1067 | +7841/-3284/+4557 | +8/-0/+8 |
| This closeout: 13 merged code/test PRs | +374/-437/-63 | +1107/-530/+577 | +0/-0/0 |
| This closeout including this docs PR (docs merge pending) | +374/-437/-63 | +1107/-530/+577 | +22/-0/+22 |
| Grand scheduler stack, merged commits only | +2936/-1932/+1004 | +8948/-3814/+5134 | +8/-0/+8 |
| Grand scheduler stack including this docs PR (docs merge pending) | +2936/-1932/+1004 | +8948/-3814/+5134 | +30/-0/+30 |

The prior total excludes unrelated task-retirement PR #159179 and unrelated PR #159574. The closeout has **production net -63**, using actual merge SHAs. This unmerged docs PR adds exactly 22 docs lines and no production or test lines; the two labeled rows show that known addition separately. No parked candidate is counted.

### Merged-main live proof

**PENDING; no live result claimed.** Record the exact merged-main SHA, resolved provider, lease ID, commands, due/stop/resume/run/exit timestamps, receipt IDs and counts before/after restart, measured graceful shutdown wait, and process/socket cleanup. Include the observed build result and lease cleanup. Any missing part remains a stated gap.

### Follow-ups

The remaining census is 72 physical d sites: 67 structural follow-ups plus five timer sites in the four parked PRs (activity summaries, presence publication, TLS renewal, and two config reload/restart sites). Of the structural follow-ups, 49 plugin/channel sites need a supported service scheduling contract; 15 agent/cron sites need explicit ownership across Gateway, standalone, worker, or durable-repair lifetimes; three infra sites need host binding across Gateway/CLI/node-host uses. All four dead-plumbing groups have been removed in merged PRs. Reasons and baseline paths are recorded row by row below. No public scheduler SDK, schema, or durable write-custody contract is invented by this closeout.

## Timer census

Baseline: [`fb2487a903ab`](https://github.com/openclaw/openclaw/tree/fb2487a903ab3b15fe72f599a7d0bb33c1ec0488). All locations below refer to that baseline, not to shifted post-cutover lines. `G/` = `src/gateway/`, `I/` = `src/infra/`, `A/` = `src/agents/`, `C/` = `src/cron/`, `H/` = `src/channels/`, `P/` = `src/plugins/`, `X/` = `extensions/`.

**Baseline physical-site accounting:** a = 42 already migrated scheduler/owner registrations; b = 718 legitimately local operation/resource timers; c = 1 storage-owned WAL exception; d = 84 background-lifetime candidates. Total 845. The closeout migrated 12 of the 17 prepared baseline d sites (10 Gateway, approval bootstrap, question delivery retention). Four migrations remain parked, covering five Gateway sites: activity summaries, presence publication, TLS renewal, and config reload/restart. The remaining count is 72: 67 structural follow-ups (15 agents/cron, 49 extensions/channels, 3 infra) plus those five parked sites. This is not a count of final scheduler registrations: question expiry/retention combine, the device-result helper mixes local and retained work, and registrations can serve multiple logical jobs. Class e counts four dead-plumbing groups, not timer arms. All four groups were removed in merged PRs: node-presence handles, question-duration seams, MCP clock seams, and companion timer options. Merge evidence is in the landing table.

Counts are lexical arm/registration sites, not live timer instances. Native aliases, timer promises and event-loop yields are included. A clock adapter and its invocation count once. Shared timer helpers are counted at their implementation, not every caller. The infra audit conservatively also retains worker-owned timers, generated successor-helper timers and socket probe deadlines as b; these are expressly not Gateway maintenance. Test/bench/support fixtures, type declarations, imports, clears, non-timer `unref`, and `AbortSignal.timeout` are outside the primary denominator. CLI-only/generated-browser/generated-remote extension sites and Gateway socket-timeout settings are excluded here; their locations are recorded in the supplemental census. No new public scheduler SDK is introduced: plugin services currently have durable CronService operations, not `GatewayScheduler.schedule`.

| Class | Baseline sites (`file:lines`) | Reason / decision |
|---|---|---|
| a (1) | `G/auth-rate-limit.ts:171` | Authentication attempt pruning |
| a (1) | `G/channel-health-monitor.ts:315` | Channel health cadence |
| a (2) | `G/control-ui-session-pr-subscriptions.ts:321,507` | Subscription refresh delay and periodic PR polling |
| a (1) | `G/exec-approval-expiry.ts:48` | Approval expiry/retry deadlines |
| a (1) | `G/exec-approval-lifecycle.ts:510` | Terminal approval retention |
| a (2) | `G/github-oauth-lifecycle.ts:612,618` | System and personal OAuth maintenance |
| a (1) | `G/mention-inbox.ts:406` | Durable mention expiry/retry |
| a (1) | `G/server-cron.ts:1485` | System cron-job reconciliation retry |
| a (1) | `G/server-idle-task.ts:48` | Idle maintenance/prewarm retries, including startup handler prewarm |
| a (2) | `G/server-lifetime-sidecars.ts:78,99` | Secret expiry and GitHub publication maintenance |
| a (3) | `G/server-maintenance.ts:141,208,304` | Generic periodic maintenance, telemetry, and media maintenance registration sites; each helper creates multiple logical jobs |
| a (3) | `G/server-runtime-services.ts:110,298,346` | Post-ready maintenance and outbound/session delivery recovery |
| a (1) | `G/server-start.ts:108` | Post-ready work release deadline |
| a (1) | `G/server-startup-sidecar-scheduler.ts:73` | Generation deadline owner used by restart sentinel and startup sidecars |
| a (2) | `G/server-worker-placement-startup.ts:671,677` | Worker placement reconciliation and disk-space cadence |
| a (1) | `G/server/event-loop-health.ts:374` | Event-loop health sampling cadence |
| a (1) | `G/session-cold-storage-maintenance.ts:123` | Cold storage maintenance cadence |
| a (1) | `G/session-companion.ts:63` | Companion sweep cadence |
| a (1) | `G/session-incognito-lifetime.ts:61` | Incognito expiry deadline/retry |
| a (2) | `G/update-run-watcher.ts:50,126` | Schema-publication durable grace and detached update-run poll |
| a (1) | `G/worker-environments/service.ts:451` | Worker environment reconciliation cadence |
| a (1) | `I/gateway-scheduler.ts:34` | Canonical single host timer behind injected GatewayScheduler clock |
| a (2) | `I/session-delivery-queue-runtime.ts:53,86` | Migrated durable delivery scan/retry deadlines; required scheduler, earliest per-entry mode, joins admitted work on stop |
| a (1) | `I/update-campaign.ts:294` | Migrated campaign deadline via required GatewayScheduler; no raw timer remains |
| a (1) | `I/update-check-lifecycle.ts:58` | Migrated update/catalog check arming via required scheduler and lifecycle-owned joins |
| a (2) | `I/update-startup.ts:739,747` | Delegates periodic update/catalog checks to migrated UpdateCheckLifecycle schedule wrapper |
| a (1) | `A/agent-bundle-mcp-manager-lifecycle.ts:346` | MCP idle runtime sweep; required injected scheduler with stopped-lifecycle selection |
| a (1) | `C/maintenance-scheduler.ts:49` | Cron periodic maintenance; scheduler run returns admitted sweep completion and shutdown joins it |
| a (1) | `C/service/timer-scheduler.ts:119` | Cron due/recheck scheduling; cron owns durable job state and execution |
| a (1) | `C/service/foreign-receipt-monitor.ts:32` | Foreign receipt recovery polling; cron service owns cancellation and store reconciliation |
| a (1) | `P/plugin-source-capture-directory.ts:575` | Explicit Gateway metadata-owner maintenance; one scheduler job, recurring grace sweep; migrated in c6d17f6dfec (#158959) |
| d (1) | `G/config-reload.ts:357` | Config-source reload coalescing/lease retry; parked in #160375 at repaired head `238fa8cc96a0` after bounded CI investigation; auto-merge disabled, details in that PR body. |
| d (1) | `G/cron-exit-watchers.ts:211` | Durable exit-watcher retry; Migrated in #160381. |
| d (2) | `G/cron-stream-job-owner.ts:419,602` | Durable source restart and stable-run reset; Migrated in #160341. |
| d (1) | `G/device-scope-upgrade.ts:34` | Detached result retention; shared baseline helper also served awaited reconciliation; Migrated in #160370. |
| d (1) | `G/node-connection-notifications.ts:215` | First-connection alert routing; Migrated in #160374. |
| d (2) | `G/question-manager.ts:164,527` | Question expiry and terminal retention; Migrated in #160334. |
| d (1) | `G/server-reload-restart.ts:329` | Detached restart-emission retry; parked in #160375 at repaired head `238fa8cc96a0` after bounded CI investigation; auto-merge disabled, details in that PR body. |
| d (1) | `G/server-restart-sentinel.ts:435` | Pending control-plane update retry; Migrated in #160335. |
| d (1) | `G/server-startup-early.ts:135` | Skills-change coalescing/remote-bin refresh; Migrated in #160318. |
| d (1) | `G/server-tls-renewal.ts:40` | Accepted-certificate refresh debounce; parked in #160395. The original UI shard passed on clean baseline (80 files, 359 tests), leaving the old failure unclassified; details and source/UI proof gap are recorded in that PR body. |
| d (1) | `G/server/presence-events.ts:21` | Presence publication windows; parked in #160369 after bounded CI/baseline investigation; auto-merge disabled, details in that PR body. |
| d (1) | `G/session-activity-summaries.ts:556` | Background recap queue cooldown; parked in #160340 after bounded CI/baseline investigation; auto-merge disabled, details in that PR body. |
| d (1) | `G/session-lifecycle-persistence-owner.ts:133` | Retained terminal-write cache grace; Migrated in #160391. |
| d (1) | `I/approval-handler-bootstrap.ts:133` | Handler bootstrap retry; Migrated in #160315. |
| d (1) | `I/net/pinned-dispatcher-pool.ts:135` | Deferred: Idle eviction; shared Gateway/CLI singleton needs explicit host binding. |
| d (1) | `I/question-channel-runtime-internal.ts:139` | Terminal delivery retention; Migrated in #160334. |
| d (1) | `I/session-event-wake.ts:478` | Deferred: Cross-call wake/retry queue; embedded/SDK handler-generation binding and monotonic ordering need one owner. |
| d (1) | `I/terminal-file-upload.ts:122` | Deferred: Retained upload expiry/retry; both Gateway and node-host lifecycles must supply ownership. |
| d (1) | `A/bash-process-registry.ts:518` | Deferred: Finished-exec retention; global Gateway/standalone cache lacks host ownership and takeover/retirement. |
| d (1) | `A/code-mode-node.ts:141` | Deferred: Warm worker retirement; standalone/headless executor lacks host scheduler/stop owner. |
| d (1) | `A/code-mode-state.ts:276` | Deferred: Parked-cell expiry; required host binding must cover Gateway and standalone/headless callers. |
| d (1) | `A/main-session-recovery/main-session-recovery-lifecycle.ts:50` | Deferred: Durable repair can outlive its Gateway generation; define transfer/join for Gateway and standalone write custody. |
| d (1) | `A/mcp-ui-resource.ts:308` | Deferred: MCP view TTL retains a lease across calls; public preview/runtime has no scheduler capability or internal host owner. |
| d (1) | `A/provider-local-service.ts:482` | Deferred: Provider idle retirement; shared CLI/Gateway shutdown owner must receive host scheduler. |
| d (7) | `A/subagents/registry/subagent-registry-completion-runtime.ts:82`; `A/subagents/registry/subagent-registry-lifecycle-cleanup.ts:68`; `A/subagents/registry/subagent-registry-lifecycle-wake.ts:377`; `A/subagents/registry/subagent-registry-restore.ts:130`; `A/subagents/registry/subagent-registry-run-wait.ts:244`; `A/subagents/registry/subagent-registry-sweeper.ts:117`; `A/subagents/registry/subagent-registry.ts:201` | Deferred: global subagent registry retries/sweep; startup hydration precedes instance activation, standalone uses remain, and detached callbacks lack stop/join. Define host binding, row takeover and returning callbacks together. |
| d (1) | `A/subagents/swarm/swarm-scheduler.ts:172` | Deferred: Queued-launch retry; restored registry activation lacks lifecycle binding. Preserve FIFO reservations and existing joins. |
| d (1) | `C/store/run-receipt-settlement.ts:158` | Deferred: Durable receipt retry must retain write custody after cron stop; define settlement/close order for standalone/workers too. |
| d (1) | `X/beam/src/mirror.ts:612` | Deferred: Beam service catalog polling; service SDK lifecycle binding required. |
| d (1) | `X/beam/src/store.ts:114` | Deferred: Beam service cross-process SQLite inventory reconciliation; service SDK lifecycle binding required. |
| d (2) | `X/browser/src/browser-proxy-upload.ts:292,351` | Deferred: Browser service retained-upload cleanup and recovery retry beyond the originating request; service SDK lifecycle binding required. |
| d (1) | `X/browser/src/browser/session-tab-cleanup.ts:56` | Deferred: Browser service recurring tracked-tab retention sweep; service SDK lifecycle binding required. |
| d (1) | `X/buzz/src/buzz-bus.ts:148` | Deferred: Buzz account presence publication heartbeat; service SDK lifecycle binding required. |
| d (1) | `X/clickclack/src/discussions/reconcile-scheduler.ts:66` | Deferred: Discussion service event coalescing and retry queue, joined by its service owner; service SDK lifecycle binding required. |
| d (1) | `X/clickclack/src/discussions/service.ts:649` | Deferred: Discussion service durable ambiguous-create reconciliation; service SDK lifecycle binding required. |
| d (1) | `X/codex/src/app-server/desktop-generation.ts:213` | Deferred: Plugin desktop-generation filesystem watcher recovery; service SDK lifecycle binding required. |
| d (3) | `X/codex/src/session-catalog-currency.ts:65,125,166` | Deferred: Plugin catalog owner background hydration and native/file reconciliation; service SDK lifecycle binding required. |
| d (1) | `X/device-pair/notify.ts:479` | Deferred: Device-pair service background approval notification polling; service SDK lifecycle binding required. |
| d (1) | `X/discord/src/monitor/auto-presence.ts:231` | Deferred: Discord account service recurring presence evaluation; service SDK lifecycle binding required. |
| d (1) | `X/discord/src/monitor/thread-bindings.manager.ts:621` | Deferred: Discord account binding expiry sweep; service SDK lifecycle binding required. |
| d (1) | `X/discord/src/voice/voice-following.ts:305` | Deferred: Discord account voice-following service reconciliation; service SDK lifecycle binding required. |
| d (2) | `X/facetime/src/helper-supervisor.ts:199,209` | Deferred: FaceTime service helper injection and stale-process reconciliation; service SDK lifecycle binding required. |
| d (1) | `X/imap/src/watcher.ts:169` | Deferred: IMAP account message sweep and durable rejected-admission reconciliation; service SDK lifecycle binding required. |
| d (2) | `X/imessage/src/monitor/monitor-provider.ts:1611,1614` | Deferred: iMessage account approval-reaction polling and discovery; service SDK lifecycle binding required. |
| d (3) | `X/logbook/src/service.ts:123,127,131` | Deferred: Logbook service capture, analysis, and retention polling; service SDK lifecycle binding required. |
| d (1) | `X/matrix/src/matrix/client/file-sync-store.ts:209` | Deferred: Matrix account sync-cache persistence debounce outlives a receive call; service SDK lifecycle binding required. |
| d (1) | `X/matrix/src/matrix/sdk/client-base.ts:701` | Deferred: Matrix account periodic IndexedDB crypto snapshot persistence (not a WAL checkpoint); service SDK lifecycle binding required. |
| d (2) | `X/matrix/src/matrix/thread-bindings.ts:392,650` | Deferred: Matrix account binding delayed persistence and expiry sweep; service SDK lifecycle binding required. |
| d (2) | `X/memory-core/src/dreaming.ts:453,521` | Deferred: Memory service cron reconciliation and deferred interrupted-run cleanup; service SDK lifecycle binding required. |
| d (1) | `X/memory-core/src/memory/manager-session-sync-ops.ts:299` | Deferred: Memory manager background session-update batching; service SDK lifecycle binding required. |
| d (1) | `X/memory-core/src/memory/manager-watch-ops.ts:122` | Deferred: Memory manager periodic background index sync; service SDK lifecycle binding required. |
| d (2) | `X/memory-core/src/memory/manager-watch-resources.ts:90,262` | Deferred: Memory watcher startup diagnostics and file-change settling; service SDK lifecycle binding required. |
| d (1) | `X/nostr/src/nostr-cursor.ts:143` | Deferred: Nostr account durable cursor persistence debounce across receive calls; service SDK lifecycle binding required. |
| d (1) | `X/reef/src/owner-notice.ts:57` | Deferred: Reef service durable rejection-notice delivery retries; service SDK lifecycle binding required. |
| d (1) | `X/slack/src/monitor/presence-monitor.ts:437` | Deferred: Slack account presence polling service; service SDK lifecycle binding required. |
| d (1) | `X/team-reports/src/scheduler.ts:194` | Deferred: Team Reports service recurring report/catch-up scheduling; service SDK lifecycle binding required. |
| d (1) | `X/telegram/src/thread-bindings.ts:517` | Deferred: Telegram account binding expiry sweep; service SDK lifecycle binding required. |
| d (1) | `X/tlon/src/monitor/index.ts:1361` | Deferred: Tlon account channel discovery and polling service; service SDK lifecycle binding required. |
| d (1) | `X/visitor-access/index.ts:99` | Deferred: Visitor-access service retention sweep; service SDK lifecycle binding required. |
| d (1) | `X/visitor-access/src/visitors.ts:215` | Deferred: Visitor-access service grant expiry queue and revocation; service SDK lifecycle binding required. |
| d (1) | `X/voice-call/src/webhook/stale-call-reaper.ts:31` | Deferred: Voice Call service stale-call sweep; service SDK lifecycle binding required. |
| d (1) | `X/whatsapp/src/auto-reply/monitor.ts:510` | Deferred: WhatsApp account pending-delivery reconciliation polling; service SDK lifecycle binding required. |
| d (1) | `X/whatsapp/src/directory-config.ts:170` | Deferred: Account cleanup custody retries after originating call; service SDK lifecycle binding required. |
| d (1) | `X/workboard/src/automation-nudge.ts:111` | Deferred: Workboard service pending-nudge expiry queue; service SDK lifecycle binding required. |
| d (1) | `X/workboard/src/change-events.ts:44` | Deferred: Workboard service cross-process store-change polling; service SDK lifecycle binding required. |
| d (1) | `X/workboard/src/lifecycle-sync.ts:553` | Deferred: Workboard service recurring lifecycle recovery; service SDK lifecycle binding required. |
| d (1) | `H/message/ingress-monitor.ts:725` | Deferred: Shared SDK-exposed ingress monitor periodic drain/retry/retention trigger; service SDK lifecycle binding required. |
| c (1) | `I/sqlite-wal.ts:617` | Explicit storage-owner exception: handle-owned WAL checkpoint/identity admission timer |
| b (138) | `X/a2a/src/task-store.ts:123`; `X/codex/src/app-server/computer-use-health.ts:49`; `X/discord/src/internal/rest-scheduler.ts:380`; `X/facetime/src/runtime.ts:203,547`; `X/line/src/inbound-image-set.ts:202,231,247`; `X/matrix/src/matrix/sdk/client-base.ts:407`; `X/msteams/src/pending-uploads.ts:54`; `X/team-reports/src/scheduler.ts:176,298`; `X/telegram/src/bot-handlers.inbound-media.ts:503,517`; `X/telegram/src/bot/delivery.resolve-media.ts:120`; `X/telegram/src/client-fetch.ts:127`; `X/telegram/src/polling-lease.ts:77`; `X/telegram/src/telegram-ingress-worker.runtime.ts:130`; `X/telegram/src/telegram-ingress-worker.ts:89`; `X/telegram/src/webhook.ts:84`; `A/agent-bundle-mcp-runtime.ts:564`; `A/auth-profiles/oauth-refresh-fence.ts:378`; `A/bash-tools.exec-run.ts:683`; `A/cli-runner/execute-plugin.ts:402`; `A/code-mode-bridge.ts:435`; `A/code-mode-deadline.ts:21`; `A/code-mode-execution.ts:220`; `A/code-mode-headless.ts:66`; `A/code-mode-node.ts:234,320`; `A/command/maintenance-budget.ts:28`; `A/embedded-agent-runner/openrouter-model-capabilities.ts:149`; `A/embedded-agent-runner/run/attempt-queue-message.ts:219`; `A/embedded-agent-runner/run/attempt-timeout-prepare.ts:64,91`; `A/exec-auto-reviewer.ts:374`; `A/harness/attempt-deadlines.ts:37`; `A/harness/native-hook-relay-bridge.ts:260`; `A/harness/native-hook-relay.ts:133`; `A/main-session-recovery/main-session-restart-dispatch-start.ts:99`; `A/mcp-connection-resolver.ts:75`; `A/mcp-pagination.ts:79`; `A/models-config.providers.implicit.ts:366`; `A/prepared-model-catalog-worker.ts:551`; `A/prepared-model-runtime.catalog-access.ts:669`; `A/prepared-model-runtime.startup.ts:60`; `A/run-cleanup-timeout.ts:180`; `A/runtime/proxy.ts:164,218`; `A/subagents/announce/subagent-announce-capture.ts:32`; `A/subagents/announce/subagent-announce-completion-delivery.ts:74`; `A/subagents/completion/session-followup-completion.ts:275`; `A/subagents/registry/subagent-registry-lifecycle-announce-cleanup.ts:624`; `A/subagents/registry/subagent-registry-pending-lifecycle.ts:49`; `A/tools/subagents-tool.ts:209`; `C/active-jobs.ts:494`; `C/service/agent-watchdog.ts:87,103,122,162,233`; `G/agent-turn/agent-handler-helpers.ts:197`; `G/auth-rate-limit.ts:304`; `G/call.ts:895`; `G/channel-health-monitor.ts:291`; `G/cron-stream-job-owner.ts:111,346`; `G/desktop/managed-linux-audio.ts:110,162`; `G/desktop/rfb-preauth.ts:408`; `G/desktop/rfb-probe.ts:191`; `G/github-oauth-lifecycle.ts:655`; `G/local-http-probe.ts:110`; `G/mcp-http.loopback-runtime.ts:291`; `G/model-account-connect.ts:292`; `G/net.ts:349`; `G/node-registry.ts:961`; `G/openresponses-http.ts:753`; `G/provider-browser-auth.ts:112`; `G/server-discovery-runtime.ts:236`; `G/server-in-process-dispatch.ts:109`; `G/server-methods/channels.ts:129`; `G/server-methods/session-catalog-list-operations.ts:181`; `G/server-methods/session-discussion.ts:70`; `G/server-methods/tools-effective.ts:217`; `G/server-runtime-services.ts:316`; `G/server/connection-transport-close.ts:28`; `G/server/connection.ts:240`; `G/server/hooks-request-handler-response.ts:29`; `G/server/hooks.ts:489`; `G/server/ws-connection/node-lifecycle-dispatch.ts:44`; `G/server/ws-connection/worker-connection.ts:233`; `G/session-activity-summaries.ts:357`; `G/session-companion-ask.ts:517`; `G/session-observer-completion.ts:47`; `G/session-reset-acp.ts:25`; `G/system-ca-warmup.ts:138`; `G/terminal/open-deadline.ts:43`; `G/worker-environments/artifact-transfer-service.ts:111`; `G/worker-environments/node-launch-adapter.ts:232,323`; `G/worker-environments/worker-turn-launcher.ts:481`; `G/worker-environments/workspace-sync-helpers.ts:64`; `I/acquire-with-wait.ts:26`; `I/approval-native-route-coordinator.ts:180,229`; `I/diagnostic-events.ts:1243,1295`; `I/embedded-plugin-approval-broker.ts:64`; `I/http-request-lifecycle.ts:200`; `I/http-response-body-timeout.ts:53`; `I/jsonl-socket.ts:54`; `I/net/ssrf.ts:748`; `I/oauth-loopback-callback.ts:316`; `I/ports-probe.ts:90`; `I/provider-usage.shared.ts:93`; `I/push-apns-http2.ts:143,282`; `I/push-apns.ts:216`; `I/shell-env.ts:176`; `I/sqlite-backup.ts:10`; `I/sqlite-readonly-worker.ts:464`; `I/sqlite-wal-write-admission.ts:89`; `I/sqlite-worker-broker.ts:578`; `I/update-candidate-canary-process.ts:148`; `I/update-repair-agent.runtime.ts:342`; `I/update-repair-agent.ts:108,157`; `I/update-repair-inference.ts:38`; `I/worker-task-pool-core.ts:532`; `P/conversation-binding-pending.ts:47`; `P/hook-timeout.ts:13`; `P/host-hook-runtime.ts:119`; `P/plugin-instance.ts:564,625,722`; `P/runtime/runtime-llm-isolated.ts:144`; `P/services.ts:230` | Retain: one request, run, transfer or registration deadline/wait; released at settlement/disposal. |
| b (23) | `X/active-memory/recall-state.ts:79`; `X/crabbox/src/crabbox-worker-heartbeat.ts:46`; `X/reef/protocol/pipeline.ts:175`; `A/embedded-agent-runner/run/lane-controller.ts:171`; `A/harness/native-session/binding-leases.ts:202,372`; `A/worktrees/run-lease.ts:195`; `H/message/ingress-drain.ts:209,283`; `G/agent-turn/agent-handler-helpers.ts:203`; `G/desktop/session-registry.ts:201,423`; `G/server-chat-live-text.ts:178`; `G/sessions-history-http.ts:503`; `G/talk/relay/session-create.ts:642`; `G/worker-environments/placement-turn-claims.ts:442`; `I/clawhub-client.ts:233`; `I/outbound/delivery-queue-lease.ts:51,79`; `I/outbound/delivery-queue-migration.ts:191`; `I/outbound/delivery-queue-preparation.ts:76`; `I/session-cost-usage-reporting.ts:139`; `I/state-migrations.transcript-directives-archives.ts:410` | Retain: one claim, lease, request or operation owns renewal/deadline and settlement. |
| b (130) | `X/active-memory/transcript-watch.ts:142`; `X/agentsapi/agentsapi-client.ts:505`; `X/agentsapi/agentsapi-session.ts:249,547,579`; `X/discord/src/activities/interaction.ts:74`; `X/discord/src/activities/shell.ts:71`; `X/discord/src/api.ts:171`; `X/discord/src/internal/event-queue.ts:172`; `X/discord/src/internal/gateway-identify-limiter.ts:37`; `X/discord/src/internal/rest.ts:250`; `X/discord/src/monitor/message-media.ts:275`; `X/discord/src/monitor/native-command-model-picker-apply.ts:78`; `X/discord/src/monitor/provider.lifecycle.ts:107,126,202,204,314`; `X/discord/src/monitor/timeouts.ts:76,105,126`; `X/feishu/src/setup-surface.ts:314`; `X/github-copilot/login.ts:264`; `X/imap/src/watcher.ts:219`; `X/imessage/src/monitor/monitor-provider.ts:315`; `X/irc/src/monitor.ts:141`; `X/matrix/src/matrix/actions/verification.ts:150,187`; `X/matrix/src/matrix/client/shared.ts:350`; `X/matrix/src/matrix/monitor/verification-events.ts:268`; `X/matrix/src/matrix/sdk/client-support.ts:93`; `X/matrix/src/matrix/sdk/client-sync-quiesce.ts:95`; `X/matrix/src/matrix/sdk/client-sync-ready.ts:91`; `X/matrix/src/matrix/sdk/crypto-bootstrap.ts:192`; `X/matrix/src/matrix/sdk/decrypt-bridge.ts:231,359`; `X/matrix/src/matrix/sdk/verification-manager.ts:463`; `X/mattermost/src/mattermost/client.ts:552`; `X/mattermost/src/mattermost/monitor-thread-backfill.ts:256`; `X/mattermost/src/mattermost/monitor-websocket.ts:202,227,237,329`; `X/mattermost/src/mattermost/reconnect.ts:97`; `X/mattermost/src/mattermost/slash-http.ts:158`; `X/minimax/oauth.ts:349,361`; `X/ollama/src/setup-pull.ts:35,60`; `X/openai/openai-chatgpt-device-code.ts:443,448`; `X/openai/openai-chatgpt-oauth-flow.runtime.ts:45`; `X/openai/openai-chatgpt-oauth.runtime.ts:59`; `X/openai/realtime-session-retirement.ts:107,144`; `X/signal/src/client-container.ts:87,223,497`; `X/signal/src/client-unix.ts:51`; `X/signal/src/client.ts:142,197,296`; `X/signal/src/daemon.ts:292`; `X/signal/src/monitor/event-handler.ts:720`; `X/signal/src/socket-path.ts:112`; `X/team-reports/src/sources/discord/client.ts:28`; `X/telegram/src/draft-stream.ts:809`; `X/tlon/src/monitor/approval-runtime.ts:258`; `X/whatsapp/src/connection-owner.ts:57,96`; `X/whatsapp/src/creds-persistence.ts:80`; `X/whatsapp/src/inbound/message-delivery.ts:633`; `X/whatsapp/src/login-qr.ts:272,356,572`; `X/whatsapp/src/login.ts:57`; `X/whatsapp/src/session.ts:469`; `X/whatsapp/src/socket-close.ts:11`; `X/whatsapp/src/socket-timing.ts:110`; `X/xai/xai-oauth.ts:499,508`; `A/bash-tools.exec-approval-followup.ts:284`; `A/bash-tools.process.ts:258`; `A/cli-runner.ts:102`; `A/cli-runner/cli-run-settlement.ts:46`; `A/embedded-agent-runner/run/abortable.ts:63`; `A/embedded-agent-runner/run/auth-controller.ts:343,353`; `A/embedded-agent-runner/run/compaction-retry-aggregate-timeout.ts:39`; `A/harness/native-hook-relay-client.ts:220`; `A/mcp-http-transport.ts:291,350`; `A/run-wait.ts:271,317`; `A/sandbox/browser.ts:92,113`; `A/subagents/announce/subagent-announce-delivery-retry.ts:206,214`; `A/subagents/announce/subagent-announce-output.ts:450`; `A/subagents/spawn/subagent-spawn-cleanup.ts:156`; `A/subagents/spawn/subagent-spawn-gateway.ts:232`; `A/tools/ask-user-tool.ts:202,245,332`; `A/tools/sessions-tool.ts:658`; `A/workspace.ts:623`; `A/worktrees/checkout-apfs.ts:143,172`; `H/plugins/binding-routing.ts:303`; `G/agent-turn/agent-job.ts:301,723`; `G/desktop/observe-bridge.ts:301`; `G/probe.ts:411`; `G/server-methods/nodes.wake.ts:70`; `G/server-reload-active-work.ts:99`; `G/server-restart-sentinel-notice.ts:266`; `G/server-restart-sentinel.ts:133`; `G/server-startup-post-attach.ts:124,316,851`; `G/worker-environments/node-enrollment.ts:318`; `I/embedded-state-lock.ts:23`; `I/package-lifecycle.ts:256`; `I/session-cost-usage-cache-runtime.ts:290`; `I/sqlite-transaction.ts:528`; `I/ssh-tunnel.ts:218`; `I/state-migrations.audit-backup.ts:236`; `I/tailscale-backend-ready.ts:85`; `I/update-candidate-canary-readiness.ts:216`; `I/update-failure-report-precreate.ts:35` | Retain: retry/readiness/delay belongs to one operation, request or transport lifecycle. |
| b (169) | `X/active-memory/recall-run.ts:78`; `X/active-memory/recall.ts:289`; `X/active-memory/transcript-result.ts:144`; `X/active-memory/transcript.ts:170`; `X/anthropic/cli-process.ts:135`; `X/anthropic/cli-transport.ts:61,88`; `X/browser/src/browser/pw-session-cdp-transport.ts:75,133,167`; `X/buzz/src/directory-relay.ts:183`; `X/buzz/src/relay-auth.ts:153,202`; `X/buzz/src/relay-subscription.ts:125`; `X/buzz/src/room-membership-tracker.ts:48,375`; `X/clickclack/src/http-client.ts:173`; `X/codex/src/app-server/attempt-steering.ts:370`; `X/codex/src/app-server/attempt-timeouts.ts:70`; `X/codex/src/app-server/bounded-turn.ts:235`; `X/codex/src/app-server/client.ts:614`; `X/codex/src/app-server/compact-lifecycle.ts:117,136`; `X/codex/src/app-server/computer-use.ts:946`; `X/codex/src/app-server/connection-health.ts:194`; `X/codex/src/app-server/desktop-generation-owner.ts:83`; `X/codex/src/app-server/dynamic-tool-execution.ts:303`; `X/codex/src/app-server/ephemeral-turn.ts:125`; `X/codex/src/app-server/event-projector-tool-transcript.ts:481`; `X/codex/src/app-server/inference-proxy.ts:461,558`; `X/codex/src/app-server/native-config-fence.ts:82`; `X/codex/src/app-server/native-hook-relay.ts:128`; `X/codex/src/app-server/request-attempt.ts:175`; `X/codex/src/app-server/request.ts:276`; `X/codex/src/app-server/run-attempt-lifecycle-controller.ts:82`; `X/codex/src/app-server/run-attempt-settlement.ts:30`; `X/codex/src/app-server/sandbox-exec-server/sandbox-child.ts:163,278`; `X/codex/src/app-server/server-requests.ts:86`; `X/codex/src/app-server/transport-process-containment.ts:68,166`; `X/codex/src/app-server/transport-process-snapshot.ts:143,228`; `X/codex/src/app-server/transport-websocket.ts:80,107`; `X/codex/src/app-server/transport.ts:110,207`; `X/codex/src/app-server/turn-router.ts:272`; `X/codex/src/conversation-turn-collector.ts:130`; `X/codex/src/migration/session-binding-orphans.ts:136`; `X/codex/src/session-catalog-homes.ts:136,145,167,255`; `X/codex/src/session-catalog-index-state.ts:264`; `X/codex/src/session-catalog-index.ts:535`; `X/codex/src/session-catalog-list-operation.ts:85`; `X/codex/src/session-catalog-native-page.ts:63`; `X/codex/src/session-catalog-rollouts.ts:302`; `X/codex/src/session-rollout-snapshot.ts:99`; `X/comfy/workflow-runtime.ts:497`; `X/crabbox/src/crabbox-worker-provider.ts:105`; `X/fal/video-generation-provider.ts:527`; `X/feishu/src/async.ts:34,103`; `X/feishu/src/media-chunk-idle.ts:37`; `X/feishu/src/sequential-queue.ts:44`; `X/github-copilot/models.ts:317`; `X/google-meet/src/voice-call-gateway.ts:34`; `X/google/transport-stream.ts:715`; `X/google/video-generation-provider.ts:319`; `X/imessage/src/approval-handler.runtime.ts:253`; `X/imessage/src/client.ts:275,346`; `X/line/src/download.ts:113,169`; `X/line/src/webhook-spool.ts:103`; `X/lobster/src/lobster-runner.ts:206`; `X/memory-core/src/dreaming-state.ts:150,157,193`; `X/memory-core/src/memory-corpus.ts:131`; `X/memory-core/src/memory/manager-database-context.ts:347`; `X/memory-core/src/memory/manager-embedding-ops.ts:210,381`; `X/memory-core/src/memory/manager-search-knn-subprocess.ts:344,405`; `X/memory-core/src/memory/manager-search-vector.ts:153`; `X/memory-core/src/memory/manager-source-sync-ops.ts:51`; `X/memory-core/src/memory/search-deadline.ts:56`; `X/memory-lancedb/embeddings.ts:372,435`; `X/memory-lancedb/lancedb-store.ts:96`; `X/memory-wiki/src/compile.ts:402`; `X/minimax/tts.ts:68`; `X/msteams/src/msteams-ingress.ts:250`; `X/nostr/src/nostr-profile-import.ts:112`; `X/nostr/src/nostr-profile.ts:44`; `X/nostr/src/nostr-relay-subscription.ts:52`; `X/ollama/src/stream.runtime.ts:115`; `X/opencode-go/stream-termination.ts:175`; `X/openrouter/music-generation-provider.ts:225`; `X/reef/protocol/guard.ts:117`; `X/reef/src/audit-state.ts:175`; `X/slack/src/client.ts:74`; `X/slack/src/monitor/media.ts:167`; `X/slack/src/monitor/provider-support.ts:103`; `X/synology-chat/src/client.ts:288,465`; `X/synology-chat/src/outbound-media.ts:126`; `X/team-reports/src/sources/github/client.ts:90`; `X/team-reports/src/sources/http.ts:35`; `X/tlon/src/urbit/sse-client.ts:210`; `X/twitch/src/probe.ts:82`; `X/twitch/src/twitch-client.ts:287`; `X/vault/vault-secret-ref-resolver.js:195`; `X/xai/tts.ts:242,260`; `X/xiaomi/speech-provider.ts:228`; `X/zai/detect.ts:83`; `X/zalo/src/api.ts:154`; `X/zalo/src/monitor.ts:249`; `X/zalouser/src/zalo-js.ts:1428,1432`; `A/code-mode-node.worker.ts:380`; `A/context-cache-projection.ts:156`; `A/embedded-agent-runner/run/attempt-preparation.ts:25`; `A/embedded-agent-runner/runs.ts:1273,1380`; `A/harness/gateway-question.ts:488,658`; `A/prepared-model-runtime.build.ts:229,293,330,363,425`; `A/prepared-model-runtime.facts.ts:261,378,415,606`; `A/queued-file-writer.ts:75`; `A/tools/agents-wait-tool.ts:259,271,277`; `A/worktrees/filesystem-backend.ts:37`; `C/heartbeat-monitor.ts:177`; `G/cli-session-history.claude-snapshot.ts:188,231,266`; `G/server-channel-startup.ts:7`; `G/server-channels.ts:1444`; `G/server-cron-skill-review-jobs.ts:38,55,76`; `G/server-kernel.ts:228`; `G/server-methods/sessions-files.ts:238`; `G/server-methods/sessions-read.ts:337`; `G/server-methods/tts.ts:42`; `G/server-startup-observers.ts:39`; `G/server-startup-sidecar-scheduler.ts:31`; `G/server-startup-update-check.ts:99,152`; `G/server/ws-connection/request-start.ts:49`; `G/session-event-prepared-row.ts:36,55`; `G/session-projection-work.ts:10`; `I/session-cost-usage-worker-runtime.ts:428`; `I/state-migrations.transcript-directives.ts:331` | Retain: operation-scoped deadlines/backoff or cooperative event-loop dispatch; no maintenance cadence. |
| b (98) | `X/clickclack/src/activity.ts:209`; `X/clickclack/src/progress.ts:205,220`; `X/deepgram/audio-flux.ts:327`; `X/deepgram/realtime-transcription-provider-factory.ts:320`; `X/discord/src/internal/gateway-rate-limit.ts:110`; `X/discord/src/voice/audio-transport.ts:234`; `X/discord/src/voice/audio-worker.ts:400,517`; `X/discord/src/voice/audio.ts:197`; `X/discord/src/voice/capture-state.ts:96`; `X/discord/src/voice/realtime-output.runtime.ts:127,399,466`; `X/discord/src/voice/realtime-session.runtime.ts:76`; `X/discord/src/voice/transcripts-source.ts:344`; `X/facetime/src/audio-pump.ts:187,200,322,330,464`; `X/facetime/src/helper-rpc.ts:237,623`; `X/facetime/src/runtime-call-control.ts:260,294,324`; `X/facetime/src/runtime-helper-results.ts:193`; `X/facetime/src/talk-driver.ts:402`; `X/facetime/src/talk-initial-greeting.ts:33`; `X/feishu/src/streaming-card.ts:470`; `X/google/realtime-voice-provider.ts:1218`; `X/openai/realtime-live-delegation-queue.ts:36`; `X/openai/realtime-quicksilver-audio-buffer.ts:87`; `X/openai/realtime-quicksilver-bridge.ts:233`; `X/openai/realtime-quicksilver-gateway-bridge.ts:543`; `X/openai/realtime-quicksilver-media.runtime.ts:401`; `X/openai/realtime-quicksilver-peer.runtime.ts:180`; `X/openai/realtime-quicksilver-protocol.ts:95`; `X/openai/realtime-quicksilver-session.ts:254`; `X/openai/realtime-quicksilver-sideband.ts:96`; `X/openai/realtime-quicksilver-socket.ts:171`; `X/openai/realtime-quicksilver-socket.worker.ts:43`; `X/voice-call/src/gateway-continue-operation.ts:63`; `X/voice-call/src/manager/outbound.ts:466`; `X/voice-call/src/manager/timers.ts:53,136`; `X/voice-call/src/media-stream.ts:554,681`; `X/voice-call/src/providers/twilio.ts:667,681`; `X/voice-call/src/tunnel.ts:48,49,137`; `X/voice-call/src/webhook/realtime-audio-pacer.ts:325`; `X/voice-call/src/webhook/realtime-handler.ts:704,1526,1530,1652,1834,1974`; `X/voice-call/src/webhook/stream-disconnect-grace.ts:38`; `X/xai/realtime-voice-events.ts:380`; `A/command/attempt-execution.helpers.ts:157`; `A/embedded-agent-runner/run/attempt-transcript-lifecycle.ts:153`; `A/embedded-agent-runner/run/attempt.model-diagnostic-events.ts:41`; `A/embedded-agent-runner/wait-for-idle-before-flush.ts:42`; `A/mcp-transport.ts:77`; `A/tools/common.ts:445`; `H/draft-stream-loop.ts:125`; `H/progress-draft-compositor.ts:290`; `H/status-reactions.ts:245,271,275,343`; `H/streaming.ts:661`; `H/typing.ts:79`; `G/cron-stream-output.ts:85,477,659`; `G/node-registry.invoke-stream.ts:336`; `G/server-methods/session-change-event.ts:471,496`; `G/server-methods/session-typing-state.ts:117,152`; `G/session-observer-preamble.ts:113`; `G/session-observer.ts:293,446`; `G/session-row-projection-transcript.ts:24`; `G/talk/relay/cancellation-deadline.ts:17,32`; `G/talk/relay/voice.ts:66`; `G/talk/voice-selection.ts:309`; `G/terminal/output-coalescer.ts:76`; `G/terminal/output-flow-control.ts:135`; `G/worker-environments/workspace-sync-helpers.ts:435`; `I/diagnostics-timeline.ts:151`; `I/http-body.ts:176,343` | Retain: one work item/stream/session update, pacing or settlement window; canceled with that work. |
| b (85) | `X/acpx/src/harness-attempt.ts:101`; `X/acpx/src/process-reaper.ts:294`; `X/acpx/src/service.ts:173`; `X/browser/src/browser/cdp-page-session.ts:134`; `X/browser/src/browser/cdp-websocket.ts:191`; `X/browser/src/browser/cdp.helpers.ts:489`; `X/browser/src/browser/chrome-mcp-connect.ts:38,159`; `X/browser/src/browser/chrome-mcp-process.ts:279,295,318`; `X/browser/src/browser/chrome-mcp-routing.ts:98`; `X/browser/src/browser/chrome.diagnostics.ts:182`; `X/browser/src/browser/chrome.ts:471,517,953`; `X/browser/src/browser/client-fetch.ts:356,456`; `X/browser/src/browser/extension-install.ts:220`; `X/browser/src/browser/extension-relay-daemon-spawn.ts:18`; `X/browser/src/browser/extension-relay/auth-v2-websocket.ts:42,45`; `X/browser/src/browser/extension-relay/owner-client.ts:130`; `X/browser/src/browser/extension-relay/owner-server.ts:140,196`; `X/browser/src/browser/extension-relay/relay-auth.ts:158`; `X/browser/src/browser/extension-relay/relay-fetch.ts:203`; `X/browser/src/browser/extension-relay/relay-server.ts:197,262`; `X/browser/src/browser/extension-relay/relay-session-owner.ts:366`; `X/browser/src/browser/pw-download-capture.ts:164`; `X/browser/src/browser/pw-session-actions.ts:502`; `X/browser/src/browser/pw-session-connection.ts:227,544`; `X/browser/src/browser/pw-session-downloads.ts:61`; `X/browser/src/browser/pw-session-page-target.ts:44`; `X/browser/src/browser/pw-session-state.ts:386`; `X/browser/src/browser/pw-tools-core.downloads.ts:133`; `X/browser/src/browser/pw-tools-core.interactions.navigation.ts:310,383,607`; `X/browser/src/browser/pw-tools-core.responses.ts:65`; `X/browser/src/browser/routes/agent.act.existing-session.ts:31,96,128,204,295`; `X/browser/src/browser/routes/tabs.ts:102`; `X/browser/src/browser/screencast/session.ts:255`; `X/browser/src/browser/server-context.availability.ts:357`; `X/browser/src/sdk-node-runtime.ts:18`; `X/codex/src/app-server/native-subagent-completion-delivery.ts:284`; `X/codex/src/app-server/native-subagent-recovery-coordinator.ts:128`; `X/codex/src/app-server/native-subagent-submission-owner.ts:509`; `X/codex/src/app-server/sandbox-exec-server/processes.ts:58,429`; `X/copilot/src/attempt-active-run.ts:177`; `X/copilot/src/attempt-cleanup.ts:107,145`; `X/copilot/src/isolated-completion.ts:93`; `A/cli-runner/execute-node-claude.ts:181`; `A/provider-local-service.ts:326,665`; `A/sessions/exec.ts:120`; `A/sessions/tools/bash-local-exec.ts:76`; `A/shell-snapshot.ts:482,492`; `A/subagents/spawn/acp-spawn-parent-stream.ts:278,405,487,503`; `G/desktop/computer-process.ts:99,164`; `G/desktop/managed-linux.ts:486`; `G/server-methods/open-path.ts:76`; `G/worker-environments/tunnel-ssh-runner.ts:149,163`; `G/worker-environments/workspace-sync-inventory.ts:144,196`; `I/github-issue.ts:364`; `I/sqlite-readonly-worker-session.ts:272,334`; `I/tailscale.ts:207,253`; `I/update-runner-command.ts:31` | Retain: one process/run startup, output wait, stop or kill grace; process owner settles it. |
| b (12) | `X/anthropic/cli.runtime.ts:234`; `X/codex/src/app-server/client-runtime.ts:298`; `X/copilot/src/runtime.ts:136`; `X/diffs/src/browser.runtime.ts:452`; `G/desktop/computer-service.ts:170`; `G/question-manager.ts:310`; `G/server-chat.ts:755`; `G/talk/transcription-relay.ts:315,430`; `G/terminal/session-manager.ts:651`; `G/watch-node-http.ts:382,1082` | Retain: bounded session/client/resource idle retention; its resource owner cancels or retires it. |
| b (29) | `X/browser/src/browser/extension-relay/relay-bridge.ts:128,342,380`; `X/discord/src/internal/gateway-lifecycle.ts:13,34,69`; `X/line/src/monitor.ts:99`; `X/reef/src/transport.ts:424,733`; `X/telegram/src/polling-session.ts:50,505,518`; `X/whatsapp/src/connection-controller.ts:231,1018,1026`; `A/cli-runner/execute-plugin-watchdog.ts:17`; `A/embedded-agent-runner/run/llm-idle-timeout.ts:330,404`; `A/embedded-agent-runner/run/tool-activity-heartbeat.ts:20`; `A/sessions/tools/bash.ts:239,345`; `A/tools/media-generate-background-shared.ts:159,371`; `H/run-state-machine.ts:52`; `H/transport/stall-watchdog.ts:130`; `H/typing-lifecycle.ts:36`; `G/mcp-http.ts:63`; `G/websocket-keepalive.ts:63`; `I/backup-create-stream.ts:116` | Retain: active operation/transport liveness or watchdog; ends with that operation/resource. |
| b (8) | `C/service/active-run-cancellation.ts:31,160`; `G/server-run-shutdown.ts:93`; `G/server-shutdown.ts:10`; `I/gateway-active-work.ts:235`; `I/gateway-suspend-coordinator.ts:125`; `I/restart.ts:113,819` | Retain: bounded suspend/restart/drain control must work while scheduler admission is closed. |
| b (15) | `X/codex/src/app-server/client-catalog-worker.ts:153`; `A/auth-profiles/sqlite-read-pool.ts:79`; `I/sqlite-integrity-worker.ts:77,400`; `I/sqlite-readonly-location.worker.ts:101`; `I/tailscale-route-owner.worker.ts:97`; `I/triage-continuation.ts:90,215,368,438,556`; `I/update-repair-turn-worker.ts:31,120`; `I/worker-idle-gc.ts:22`; `I/worker-task-pool-retirement.ts:145` | Retain: worker/storage resource custody and reclamation, independent of Gateway maintenance. |
| b (8) | `I/update-managed-service-handoff-control.ts:263,267,282`; `I/update-managed-service-handoff.ts:194,988,1102,1175,2141` | Retain: successor-helper authority/parent-exit control or its IPC deadline; independent of Gateway exit. |
| b (3) | `X/buzz/src/room-access-wait.ts:45,172`; `X/cua-computer/src/commands.ts:473` | Retain: subscription-scoped polling; its disposer cancels the timer. |

Dead plumbing (zero physical arms; separate from the 845-site denominator):

| Class | Baseline locations | Deletion |
|---|---|---|
| e | `G/server-node-session-runtime.ts:85,170`; `G/server-lifecycle.ts:137,565`; `G/server-close.ts:241,503,504,505,506`; `G/server-close.test-support.ts:76` | Deleted in #160068: unused `nodePresenceTimers` map, threading and close hook; no production writer remained. |
| e | `A/agent-bundle-mcp-manager-lifecycle.ts:48,51,59,60,61,102,103,106,338,339` | Deleted in #160326: unused interval option and test-only enable/clock overrides after required scheduler injection. Independent inherited-CI evidence is retained in that PR body. |
| e | `I/question-channel-runtime-internal.ts:78,92` | Deleted in #160334: test-only retention-duration option; scheduler fake clock tests the actual retention policy. |
| e | `G/session-companion-ask.ts:82,83,364,365` (uses `:517,644`) | Deleted in #160371: uncalled timer override options and fallback locals. Independent inherited-CI evidence is retained in that PR body. Native per-ask deadline remains b; policy `now` remains. |

## Supplemental census references and exclusions

Baseline `fb2487a903ab3b15fe72f599a7d0bb33c1ec0488`. Path abbreviations match the primary census.

| Classification | Baseline locations | Reason |
|---|---|---|
| external-timer-helper | `G/active-sessions-shutdown-drain.ts:55`; `G/channel-stop-timeout.ts:12`; `G/chat-abort-lifecycle-internal.ts:105`; `G/dashboard-session-title.ts:271`; `G/desktop/managed-linux.ts:191`; `G/node-invoke-readiness.ts:50`; `G/server-channels.ts:1085`; `G/server-close.ts:99,126,169,542,555`; `G/server-cron-notifications.ts:245,423`; `G/server-media-cleanup-lifecycle.ts:34`; `G/server-methods/claws-monitors.ts:163`; `G/server-methods/sessions-lifecycle-drain.ts:298,301,321`; `G/server-reload-utils.ts:89`; `G/server-restart-sentinel-notice.ts:122`; `G/server-worker-placement-reclaim.ts:108`; `G/server/http-listen.ts:59`; `G/session-reset-incognito.ts:32`; `G/worker-environments/desktop-tunnel.ts:335`; `G/worker-environments/environment-access.ts:392`; `G/worker-environments/node-launch-adapter.ts:405`; `G/worker-environments/node-worker-tunnel.ts:261,275`; `G/worker-environments/service.ts:134,148`; `G/worker-environments/workspace-sync.ts:107` | b: bounded awaited timeout/backoff/drain; shared implementation owns the arm. |
| native-abort | `G/control-ui-link-preview.ts:186`; `G/control-ui-session-pr-check-details.ts:110`; `G/github-user-identity.ts:96`; `G/server-instance-runtime.ts:263`; `G/server-methods/web-search.ts:179`; `G/server-plugin-subagent-runtime.ts:275`; `G/user-profiles-http.ts:197,399`; `G/worker-environments/node-worker-tunnel.ts:210,440`; `G/worker-environments/node-worker-workspace-drain.ts:25`; `G/worker-environments/node-workspace-transfer-http.ts:132`; `G/worker-environments/node-workspace-transfer-service.ts:403,604`; `G/worker-environments/node-workspace-transfer-snapshot.ts:55`; `G/worker-environments/worker-turn-admission.ts:165`; `G/worker-environments/workspace-sync-preflight.ts:25` | b: one request/transfer/model abort deadline; outside named timer API count. |
| generated-browser | `G/mcp-app-standalone-host.ts:365` | Excluded: generated browser resource-load abort deadline. |
| helper/abort references | `I/backup-tar-retry.ts:41`; `I/clawhub-retry.ts:52`; `I/delivery-recovery.shared.ts:261`; `I/git-network-retry.ts:94`; `I/net/proxy/proxy-validation.ts:313`; `I/outbound/message-action-execution.ts:123`; `I/provider-usage.admin.ts:118`; `I/provider-usage.fetch.shared.ts:15`; `I/push-apns.relay.ts:258`; `I/restart-stale-pids.ts:93,102`; `I/retry-policy.ts:76,116`; `I/ssh-tunnel.ts:107`; `I/system-disks.ts:265`; `I/tailscale.ts:472`; `I/telemetry.ts:384`; `I/transport-ready.ts:60`; `I/update-candidate-canary-readiness.ts:107,114`; `I/update-candidate-io.ts:111,154,157`; `I/update-candidate-rehearsal.ts:227`; `I/update-managed-service-handoff-control.ts:424`; `I/update-managed-service-handoff-parent-source.ts:29`; `I/update-managed-service-handoff.ts:802,817,901,914,938,948,1096,1243` | b: operation retry/deadline or independent successor-helper wait; 34 references, no additional physical arm. |
| excluded | `G/mcp-app-standalone-host.ts:289` | Generated browser iframe teardown code; does not execute inside Gateway. |
| excluded | `G/server/plugin-legacy-listeners.ts:64,94` | HTTP server socket timeout configuration; no JS timer arm. |
| excluded | `G/server.e2e-ws-harness.ts:68` | Test harness, not production. |
| excluded | `G/websocket-keepalive.ts:34,87` | Socket timeout settings; the actual ping/pong keepalive interval at :63 is already counted as class b. |
| excluded | `G/worker-environments/project-setup-script.ts:127` | Generated remote child script setup command deadline; not Gateway execution. |
| excluded | `G/worker-environments/workspace-quiescence-scripts.ts:407,420,465` | Generated remote watchdog timers deliberately independent of Gateway process. |
| excluded | `X/acpx/src/codex-auth-bridge.ts:504,524` | Generated child-wrapper program: parent watchdog and child kill grace run in ACP wrapper process |
| excluded | `X/browser/src/browser/pw-tools-core.interactions.actions.ts:389` | JavaScript evaluate timeout executes in inspected web page |
| excluded | `X/browser/src/browser/relay-daemon.ts:99` | Standalone browser relay daemon owns its independent process idle exit |
| excluded | `X/browser/src/browser/routes/agent.act.ts:558` | Highlight cleanup executes in inspected web page |
| excluded | `X/crabbox/src/crabbox-worker-node-enrollment.ts:230` | Generated remote node enrollment program |
| excluded | `X/crabbox/src/crabbox-worker-node-process.ts:173,193,227` | Generated remote node process script |
| excluded | `X/crabbox/src/crabbox-worker-warm-image-scrub.ts:14` | Generated warm-image shell/Node cleanup script |
| excluded | `X/google-meet/src/transports/google-meet-caption-observer-source.ts:110`; `X/google-meet/src/transports/google-meet-page-scripts.ts:80` | JavaScript injected into the meeting web page |
| excluded | `X/matrix/src/cli-shared.ts:32` | CLI exit helper |
| excluded | `X/memory-core/src/cli-index-search.runtime.ts:132` | CLI-only index/search deadline |
| excluded | `X/mxc/src/mxc-spawn-launcher.mjs:39` | Child process launcher parent-disconnect kill grace |
| excluded | `X/policy/src/cli.ts:129` | CLI-only policy command delay |
| excluded | `X/signal/src/client.ts:148` | request.setTimeout(0) disables an existing socket timeout; it does not arm a timer |

<details>
<summary>Measured hosted CI run wall times</summary>

### Hosted CI run wall times

GitHub updated_at minus run_started_at, in seconds, for each completed workflow run. This is whole-run elapsed wall time, not per-file test duration, runner CPU time, billable time, or summed parallel job time. Cancelled runs remain labelled cancelled. Prior heads are separate evidence.

| PR | Slice / revision | Run | Head | Conclusion | RUN WALL (seconds) |
| --- | --- | --- | --- | --- | ---: |
| #160315 | approval-bootstrap / published | [36401825740](https://github.com/openclaw/openclaw/actions/runs/36401825740) | `c5b3c4ae0197` | failure | 1448 |
| #160318 | skills-refresh / published | [36402003337](https://github.com/openclaw/openclaw/actions/runs/36402003337) | `4fafc2add7ce` | failure | 1492 |
| #160326 | mcp / published | [36402978963](https://github.com/openclaw/openclaw/actions/runs/36402978963) | `1fceb8f4e742` | failure | 1525 |
| #160334 | questions / prior head | [36403551682](https://github.com/openclaw/openclaw/actions/runs/36403551682) | `9485d33201aa` | failure | 1629 |
| #160334 | questions / repaired head | [36407409443](https://github.com/openclaw/openclaw/actions/runs/36407409443) | `f2ca3af6feeb` | failure | 1700 |
| #160335 | restart-sentinel / published | [36403569235](https://github.com/openclaw/openclaw/actions/runs/36403569235) | `62cb7cd6ff93` | failure | 1505 |
| #160340 | activity-summary / published | [36404157978](https://github.com/openclaw/openclaw/actions/runs/36404157978) | `c32f2e9b9bc6` | failure | 1925 |
| #160341 | cron-stream / published | [36404170083](https://github.com/openclaw/openclaw/actions/runs/36404170083) | `42975a258c55` | failure | 1355 |
| #160369 | presence / published | [36410007950](https://github.com/openclaw/openclaw/actions/runs/36410007950) | `8ee671f969a3` | failure | 1414 |
| #160370 | device-scope / published | [36410030329](https://github.com/openclaw/openclaw/actions/runs/36410030329) | `cb777346a282` | failure | 1578 |
| #160371 | companion / published | [36410052666](https://github.com/openclaw/openclaw/actions/runs/36410052666) | `75c4c209949e` | failure | 1773 |
| #160375 | config-reload / prior head | [36410694894](https://github.com/openclaw/openclaw/actions/runs/36410694894) | `843ca77b7306` | failure | 1750 |
| #160375 | config-reload / repaired head | [36421206233](https://github.com/openclaw/openclaw/actions/runs/36421206233) | `238fa8cc96a0` | failure | 1892 |
| #160381 | cron-exit / published | [36411857535](https://github.com/openclaw/openclaw/actions/runs/36411857535) | `66d57e0dfa26` | failure | 1892 |
| #160391 | persistence-cache / published | [36415298483](https://github.com/openclaw/openclaw/actions/runs/36415298483) | `932dd2a523fa` | failure | 1688 |
| #160395 | tls-renewal / published | [36416138126](https://github.com/openclaw/openclaw/actions/runs/36416138126) | `43edf9c8c628` | cancelled | 802 |

Skipped unknown CI run IDs: #160068, #160372, #160374. No additional run discovery, logs, or tests were requested for this timing collection.

</details>
steipete added a commit that referenced this pull request Sep 28, 2026
…y, and scheduler changes

Release-check lanes that were also red on main asserted pre-change contracts:
- subagent settle wording now says "in this batch" (#158642)
- Responses request bodies are pre-encoded bytes (#159574); decode them
  without consuming init instead of requiring string bodies
- direct experience-review calls must bind the session MCP scheduler that
  Gateway startup binds in production (#159481)
- Docker lanes pin the plain PATH `codex` CLI for the Codex harness probe
- Telegram group-policy hot reload must name every array it replaces

Landed directly from #160746 (the native publisher needs a signed merge to
bring that branch current). Focused proof: four QA suites 200/200 in 81 s on
the merged tree; the two E2E files and credentialed live paths were not run.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 29, 2026
…w#160477)

## What Problem This Solves

The Gateway architecture and cron documentation need to explain timer ownership, wake-after-sleep behavior, and shutdown joining after the scheduler cutovers.

## User Impact

Operators can distinguish a late wake in a running Gateway from cron's separate startup catch-up policy, and understand which work shutdown joins. This docs-only PR changes no runtime behavior or operator configuration.

## Why This Change Was Made

Document the kernel-owned `GatewayScheduler`, its single host timer, default replacement and `mode: "earliest"`, coalescing after sleep, and the `beginClose()` / `stop()` lifecycle. Durable deadlines and execution authority remain with their owners. Request/stream/process timers remain local, and SQLite WAL checkpoints remain storage-owned.

This PR also records the bounded timer census and the closeout's merge/proof evidence. The census is a baseline inventory, not a claim that all background plugin timers have moved to the kernel scheduler.

## Evidence

- Docs head: `4c23620461cd4d7a25f5df8b3856ab9265ec3a5c`, base `6efeec96bb78a20d7c1ed1a398cb95132cab94a3`. Cherry-picked only reviewed docs commit `522cf46835be9919a14c1b93f4a734c4b64ac720`; stable patch identity matches, exactly two docs pages. **Production +0/-0/net 0; tests +0/-0/net 0; docs +22/-0/net +22.**
- Independent exact-commit Codex autoreview: **scoped-clean through P2**, no accepted/actionable findings; reviewed the docs against the scheduler implementation.
- Exact-head docs sanity passed on Blacksmith Testbox lease `tbx_01m3m10xyr1gsv0bpgymeytt5f` ([lease run](https://github.com/openclaw/openclaw/actions/runs/36424356939)), using a clean detached checkout materialized from the Git bundle. `pnpm docs:list`: 0.11s; `node scripts/check-docs-mdx.mjs docs/automation/cron-jobs/how-it-works.md docs/concepts/architecture.md`: 0.24s, both pages passed; `pnpm docs:check-i18n-glossary --base 6efeec96bb78a20d7c1ed1a398cb95132cab94a3 --head 4c23620461cd4d7a25f5df8b3856ab9265ec3a5c`: 0.14s; `git diff --check`: passed. No tests added or changed; test cost is zero.
- Required `node scripts/check-changed.mjs --base 6efeec96bb78a20d7c1ed1a398cb95132cab94a3 -- docs/automation/cron-jobs/how-it-works.md docs/concepts/architecture.md`: **passed, 16.63s**. Dependency install took 6.22s.
- The broader `pnpm docs:check-links:anchors` reports **54 pre-existing broken links**: identical failure lines on this head (9.55s) and clean base `6efeec96bb78a20d7c1ed1a398cb95132cab94a3` (11.33s), with zero failures in the two changed pages and zero introduced failures. The new scheduler link and anchor are covered by that audit. Missing external ClawHub sources leave their unrelated fragments unverified.
- Merged-main live proof: **not yet run**. The intended proof is an isolated command cron job due in about 20 seconds, SIGSTOP past its due time then SIGCONT, followed by SIGTERM during a second job and a restart duplicate check. Replace this paragraph with observed evidence or link the final proof comment after the merged-main run.

### Closeout landings and accounting

Thirteen code/test PRs are merged with main ancestry verified. Four PRs remain parked with auto-merge disabled after bounded CI investigation; each PR body records its failure evidence and remaining uncertainty. Parked commits are excluded from merged LOC. Persistence-cache cleanup landed independently of activity summaries.

| Slice | PR | Merge SHA / parked head | Production +added/-deleted/net | Tests +added/-deleted/net |
|---|---|---|---:|---:|
| Node-presence dead handles | #160068 | `c7336f8e9878a2ebcef70b286b3bf77c0ee5dc32` | +1/-9/-8 | +0/-1/-1 |
| Approval bootstrap | #160315 | `58091c95a4d9f75bae5d2f69db954585d24b42a3` | +29/-35/-6 | +133/-38/+95 |
| Skills refresh | #160318 | `fdde31799cea8e7b7f997520bb7e8038dcb3681b` | +18/-36/-18 | +102/-40/+62 |
| MCP dead timer options | #160326 | `c420679daec30e1186fdca98f87e1039fc5ef478` | +8/-23/-15 | +83/-107/-24 |
| Question deadlines/retention | #160334 | `a3df2dee1335ac4904acd5e17402828805b7ad1f` | +89/-97/-8 | +211/-107/+104 |
| Restart sentinel | #160335 | `e92b846d9ef23fca458982eab58ab751dc4c763d` | +72/-72/0 | +190/-116/+74 |
| Activity summaries | #160340 | PARKED; head `c32f2e9b9bc676312260b23e5fadd7297ad7fec2` | Excluded | Excluded |
| Cron stream watchers | #160341 | `9942ecb05f9fabbd6858661cbf38d92c1c55b083` | +40/-37/+3 | +86/-0/+86 |
| Presence publication | #160369 | PARKED; head `8ee671f969a3140b9ad6ea6ac2be5b3eb89204d0` | Excluded | Excluded |
| Device-scope retention | #160370 | `48771ec03ea3f28bf05db18fca405a5d62c2cbde` | +27/-26/+1 | +46/-1/+45 |
| Companion dead options | #160371 | `2998281406ab9a7849f4f6519963cd4336185764` | +2/-6/-4 | +0/-0/0 |
| Install-policy test clocks | #160372 | `fe49033cd6a57cf09fce7aa1401f29695460ad6b` | +0/-0/0 | +10/-3/+7 |
| Node connection notices | #160374 | `e632c90d1cd462fa9957a6681d3677a232cab625` | +37/-55/-18 | +89/-45/+44 |
| Config reload/restart | #160375 | PARKED; head `238fa8cc96a000abafe82c86d49eb8aa496fcab7` | Excluded | Excluded |
| Cron exit watchers | #160381 | `885f814c7066bb434392097468916337fa60efe9` | +32/-26/+6 | +100/-37/+63 |
| Persistence cache | #160391 | `41a385bd8edb59622567239d8217cd5393c107be` | +19/-15/+4 | +57/-35/+22 |
| TLS renewal | #160395 | PARKED; head `43edf9c8c6288730835d8b2e9cced5946d9f3637` | Excluded | Excluded |

LOC is cumulative first-parent merge-commit churn (`git diff-tree --numstat --no-renames`), not a moving-main snapshot. Production means `src/**` and `extensions/**` excluding basenames `*.test.ts`, `*.test-support.ts`, `test-helpers*`, and `*.test-utils.ts`. Tests and docs are separate; no production code is moved to tests or scripts to reduce the metric.

| Scope | Production +added/-deleted/net | Tests +added/-deleted/net | Docs +added/-deleted/net |
|---|---:|---:|---:|
| Prior scheduler stack (37 scheduler PRs, four requested repairs, four direct repairs) | +2562/-1495/+1067 | +7841/-3284/+4557 | +8/-0/+8 |
| This closeout: 13 merged code/test PRs | +374/-437/-63 | +1107/-530/+577 | +0/-0/0 |
| This closeout including this docs PR (docs merge pending) | +374/-437/-63 | +1107/-530/+577 | +22/-0/+22 |
| Grand scheduler stack, merged commits only | +2936/-1932/+1004 | +8948/-3814/+5134 | +8/-0/+8 |
| Grand scheduler stack including this docs PR (docs merge pending) | +2936/-1932/+1004 | +8948/-3814/+5134 | +30/-0/+30 |

The prior total excludes unrelated task-retirement PR #159179 and unrelated PR #159574. The closeout has **production net -63**, using actual merge SHAs. This unmerged docs PR adds exactly 22 docs lines and no production or test lines; the two labeled rows show that known addition separately. No parked candidate is counted.

### Merged-main live proof

**PENDING; no live result claimed.** Record the exact merged-main SHA, resolved provider, lease ID, commands, due/stop/resume/run/exit timestamps, receipt IDs and counts before/after restart, measured graceful shutdown wait, and process/socket cleanup. Include the observed build result and lease cleanup. Any missing part remains a stated gap.

### Follow-ups

The remaining census is 72 physical d sites: 67 structural follow-ups plus five timer sites in the four parked PRs (activity summaries, presence publication, TLS renewal, and two config reload/restart sites). Of the structural follow-ups, 49 plugin/channel sites need a supported service scheduling contract; 15 agent/cron sites need explicit ownership across Gateway, standalone, worker, or durable-repair lifetimes; three infra sites need host binding across Gateway/CLI/node-host uses. All four dead-plumbing groups have been removed in merged PRs. Reasons and baseline paths are recorded row by row below. No public scheduler SDK, schema, or durable write-custody contract is invented by this closeout.

## Timer census

Baseline: [`7fce9df1f277`](https://github.com/openclaw/openclaw/tree/7fce9df1f27770ca3ff72b6317b8d5f6f24ee06d). All locations below refer to that baseline, not to shifted post-cutover lines. `G/` = `src/gateway/`, `I/` = `src/infra/`, `A/` = `src/agents/`, `C/` = `src/cron/`, `H/` = `src/channels/`, `P/` = `src/plugins/`, `X/` = `extensions/`.

**Baseline physical-site accounting:** a = 42 already migrated scheduler/owner registrations; b = 718 legitimately local operation/resource timers; c = 1 storage-owned WAL exception; d = 84 background-lifetime candidates. Total 845. The closeout migrated 12 of the 17 prepared baseline d sites (10 Gateway, approval bootstrap, question delivery retention). Four migrations remain parked, covering five Gateway sites: activity summaries, presence publication, TLS renewal, and config reload/restart. The remaining count is 72: 67 structural follow-ups (15 agents/cron, 49 extensions/channels, 3 infra) plus those five parked sites. This is not a count of final scheduler registrations: question expiry/retention combine, the device-result helper mixes local and retained work, and registrations can serve multiple logical jobs. Class e counts four dead-plumbing groups, not timer arms. All four groups were removed in merged PRs: node-presence handles, question-duration seams, MCP clock seams, and companion timer options. Merge evidence is in the landing table.

Counts are lexical arm/registration sites, not live timer instances. Native aliases, timer promises and event-loop yields are included. A clock adapter and its invocation count once. Shared timer helpers are counted at their implementation, not every caller. The infra audit conservatively also retains worker-owned timers, generated successor-helper timers and socket probe deadlines as b; these are expressly not Gateway maintenance. Test/bench/support fixtures, type declarations, imports, clears, non-timer `unref`, and `AbortSignal.timeout` are outside the primary denominator. CLI-only/generated-browser/generated-remote extension sites and Gateway socket-timeout settings are excluded here; their locations are recorded in the supplemental census. No new public scheduler SDK is introduced: plugin services currently have durable CronService operations, not `GatewayScheduler.schedule`.

| Class | Baseline sites (`file:lines`) | Reason / decision |
|---|---|---|
| a (1) | `G/auth-rate-limit.ts:171` | Authentication attempt pruning |
| a (1) | `G/channel-health-monitor.ts:315` | Channel health cadence |
| a (2) | `G/control-ui-session-pr-subscriptions.ts:321,507` | Subscription refresh delay and periodic PR polling |
| a (1) | `G/exec-approval-expiry.ts:48` | Approval expiry/retry deadlines |
| a (1) | `G/exec-approval-lifecycle.ts:510` | Terminal approval retention |
| a (2) | `G/github-oauth-lifecycle.ts:612,618` | System and personal OAuth maintenance |
| a (1) | `G/mention-inbox.ts:406` | Durable mention expiry/retry |
| a (1) | `G/server-cron.ts:1485` | System cron-job reconciliation retry |
| a (1) | `G/server-idle-task.ts:48` | Idle maintenance/prewarm retries, including startup handler prewarm |
| a (2) | `G/server-lifetime-sidecars.ts:78,99` | Secret expiry and GitHub publication maintenance |
| a (3) | `G/server-maintenance.ts:141,208,304` | Generic periodic maintenance, telemetry, and media maintenance registration sites; each helper creates multiple logical jobs |
| a (3) | `G/server-runtime-services.ts:110,298,346` | Post-ready maintenance and outbound/session delivery recovery |
| a (1) | `G/server-start.ts:108` | Post-ready work release deadline |
| a (1) | `G/server-startup-sidecar-scheduler.ts:73` | Generation deadline owner used by restart sentinel and startup sidecars |
| a (2) | `G/server-worker-placement-startup.ts:671,677` | Worker placement reconciliation and disk-space cadence |
| a (1) | `G/server/event-loop-health.ts:374` | Event-loop health sampling cadence |
| a (1) | `G/session-cold-storage-maintenance.ts:123` | Cold storage maintenance cadence |
| a (1) | `G/session-companion.ts:63` | Companion sweep cadence |
| a (1) | `G/session-incognito-lifetime.ts:61` | Incognito expiry deadline/retry |
| a (2) | `G/update-run-watcher.ts:50,126` | Schema-publication durable grace and detached update-run poll |
| a (1) | `G/worker-environments/service.ts:451` | Worker environment reconciliation cadence |
| a (1) | `I/gateway-scheduler.ts:34` | Canonical single host timer behind injected GatewayScheduler clock |
| a (2) | `I/session-delivery-queue-runtime.ts:53,86` | Migrated durable delivery scan/retry deadlines; required scheduler, earliest per-entry mode, joins admitted work on stop |
| a (1) | `I/update-campaign.ts:294` | Migrated campaign deadline via required GatewayScheduler; no raw timer remains |
| a (1) | `I/update-check-lifecycle.ts:58` | Migrated update/catalog check arming via required scheduler and lifecycle-owned joins |
| a (2) | `I/update-startup.ts:739,747` | Delegates periodic update/catalog checks to migrated UpdateCheckLifecycle schedule wrapper |
| a (1) | `A/agent-bundle-mcp-manager-lifecycle.ts:346` | MCP idle runtime sweep; required injected scheduler with stopped-lifecycle selection |
| a (1) | `C/maintenance-scheduler.ts:49` | Cron periodic maintenance; scheduler run returns admitted sweep completion and shutdown joins it |
| a (1) | `C/service/timer-scheduler.ts:119` | Cron due/recheck scheduling; cron owns durable job state and execution |
| a (1) | `C/service/foreign-receipt-monitor.ts:32` | Foreign receipt recovery polling; cron service owns cancellation and store reconciliation |
| a (1) | `P/plugin-source-capture-directory.ts:575` | Explicit Gateway metadata-owner maintenance; one scheduler job, recurring grace sweep; migrated in 85b7ce95382 (#158959) |
| d (1) | `G/config-reload.ts:357` | Config-source reload coalescing/lease retry; parked in #160375 at repaired head `238fa8cc96a0` after bounded CI investigation; auto-merge disabled, details in that PR body. |
| d (1) | `G/cron-exit-watchers.ts:211` | Durable exit-watcher retry; Migrated in #160381. |
| d (2) | `G/cron-stream-job-owner.ts:419,602` | Durable source restart and stable-run reset; Migrated in #160341. |
| d (1) | `G/device-scope-upgrade.ts:34` | Detached result retention; shared baseline helper also served awaited reconciliation; Migrated in #160370. |
| d (1) | `G/node-connection-notifications.ts:215` | First-connection alert routing; Migrated in #160374. |
| d (2) | `G/question-manager.ts:164,527` | Question expiry and terminal retention; Migrated in #160334. |
| d (1) | `G/server-reload-restart.ts:329` | Detached restart-emission retry; parked in #160375 at repaired head `238fa8cc96a0` after bounded CI investigation; auto-merge disabled, details in that PR body. |
| d (1) | `G/server-restart-sentinel.ts:435` | Pending control-plane update retry; Migrated in #160335. |
| d (1) | `G/server-startup-early.ts:135` | Skills-change coalescing/remote-bin refresh; Migrated in #160318. |
| d (1) | `G/server-tls-renewal.ts:40` | Accepted-certificate refresh debounce; parked in #160395. The original UI shard passed on clean baseline (80 files, 359 tests), leaving the old failure unclassified; details and source/UI proof gap are recorded in that PR body. |
| d (1) | `G/server/presence-events.ts:21` | Presence publication windows; parked in #160369 after bounded CI/baseline investigation; auto-merge disabled, details in that PR body. |
| d (1) | `G/session-activity-summaries.ts:556` | Background recap queue cooldown; parked in #160340 after bounded CI/baseline investigation; auto-merge disabled, details in that PR body. |
| d (1) | `G/session-lifecycle-persistence-owner.ts:133` | Retained terminal-write cache grace; Migrated in #160391. |
| d (1) | `I/approval-handler-bootstrap.ts:133` | Handler bootstrap retry; Migrated in #160315. |
| d (1) | `I/net/pinned-dispatcher-pool.ts:135` | Deferred: Idle eviction; shared Gateway/CLI singleton needs explicit host binding. |
| d (1) | `I/question-channel-runtime-internal.ts:139` | Terminal delivery retention; Migrated in #160334. |
| d (1) | `I/session-event-wake.ts:478` | Deferred: Cross-call wake/retry queue; embedded/SDK handler-generation binding and monotonic ordering need one owner. |
| d (1) | `I/terminal-file-upload.ts:122` | Deferred: Retained upload expiry/retry; both Gateway and node-host lifecycles must supply ownership. |
| d (1) | `A/bash-process-registry.ts:518` | Deferred: Finished-exec retention; global Gateway/standalone cache lacks host ownership and takeover/retirement. |
| d (1) | `A/code-mode-node.ts:141` | Deferred: Warm worker retirement; standalone/headless executor lacks host scheduler/stop owner. |
| d (1) | `A/code-mode-state.ts:276` | Deferred: Parked-cell expiry; required host binding must cover Gateway and standalone/headless callers. |
| d (1) | `A/main-session-recovery/main-session-recovery-lifecycle.ts:50` | Deferred: Durable repair can outlive its Gateway generation; define transfer/join for Gateway and standalone write custody. |
| d (1) | `A/mcp-ui-resource.ts:308` | Deferred: MCP view TTL retains a lease across calls; public preview/runtime has no scheduler capability or internal host owner. |
| d (1) | `A/provider-local-service.ts:482` | Deferred: Provider idle retirement; shared CLI/Gateway shutdown owner must receive host scheduler. |
| d (7) | `A/subagents/registry/subagent-registry-completion-runtime.ts:82`; `A/subagents/registry/subagent-registry-lifecycle-cleanup.ts:68`; `A/subagents/registry/subagent-registry-lifecycle-wake.ts:377`; `A/subagents/registry/subagent-registry-restore.ts:130`; `A/subagents/registry/subagent-registry-run-wait.ts:244`; `A/subagents/registry/subagent-registry-sweeper.ts:117`; `A/subagents/registry/subagent-registry.ts:201` | Deferred: global subagent registry retries/sweep; startup hydration precedes instance activation, standalone uses remain, and detached callbacks lack stop/join. Define host binding, row takeover and returning callbacks together. |
| d (1) | `A/subagents/swarm/swarm-scheduler.ts:172` | Deferred: Queued-launch retry; restored registry activation lacks lifecycle binding. Preserve FIFO reservations and existing joins. |
| d (1) | `C/store/run-receipt-settlement.ts:158` | Deferred: Durable receipt retry must retain write custody after cron stop; define settlement/close order for standalone/workers too. |
| d (1) | `X/beam/src/mirror.ts:612` | Deferred: Beam service catalog polling; service SDK lifecycle binding required. |
| d (1) | `X/beam/src/store.ts:114` | Deferred: Beam service cross-process SQLite inventory reconciliation; service SDK lifecycle binding required. |
| d (2) | `X/browser/src/browser-proxy-upload.ts:292,351` | Deferred: Browser service retained-upload cleanup and recovery retry beyond the originating request; service SDK lifecycle binding required. |
| d (1) | `X/browser/src/browser/session-tab-cleanup.ts:56` | Deferred: Browser service recurring tracked-tab retention sweep; service SDK lifecycle binding required. |
| d (1) | `X/buzz/src/buzz-bus.ts:148` | Deferred: Buzz account presence publication heartbeat; service SDK lifecycle binding required. |
| d (1) | `X/clickclack/src/discussions/reconcile-scheduler.ts:66` | Deferred: Discussion service event coalescing and retry queue, joined by its service owner; service SDK lifecycle binding required. |
| d (1) | `X/clickclack/src/discussions/service.ts:649` | Deferred: Discussion service durable ambiguous-create reconciliation; service SDK lifecycle binding required. |
| d (1) | `X/codex/src/app-server/desktop-generation.ts:213` | Deferred: Plugin desktop-generation filesystem watcher recovery; service SDK lifecycle binding required. |
| d (3) | `X/codex/src/session-catalog-currency.ts:65,125,166` | Deferred: Plugin catalog owner background hydration and native/file reconciliation; service SDK lifecycle binding required. |
| d (1) | `X/device-pair/notify.ts:479` | Deferred: Device-pair service background approval notification polling; service SDK lifecycle binding required. |
| d (1) | `X/discord/src/monitor/auto-presence.ts:231` | Deferred: Discord account service recurring presence evaluation; service SDK lifecycle binding required. |
| d (1) | `X/discord/src/monitor/thread-bindings.manager.ts:621` | Deferred: Discord account binding expiry sweep; service SDK lifecycle binding required. |
| d (1) | `X/discord/src/voice/voice-following.ts:305` | Deferred: Discord account voice-following service reconciliation; service SDK lifecycle binding required. |
| d (2) | `X/facetime/src/helper-supervisor.ts:199,209` | Deferred: FaceTime service helper injection and stale-process reconciliation; service SDK lifecycle binding required. |
| d (1) | `X/imap/src/watcher.ts:169` | Deferred: IMAP account message sweep and durable rejected-admission reconciliation; service SDK lifecycle binding required. |
| d (2) | `X/imessage/src/monitor/monitor-provider.ts:1611,1614` | Deferred: iMessage account approval-reaction polling and discovery; service SDK lifecycle binding required. |
| d (3) | `X/logbook/src/service.ts:123,127,131` | Deferred: Logbook service capture, analysis, and retention polling; service SDK lifecycle binding required. |
| d (1) | `X/matrix/src/matrix/client/file-sync-store.ts:209` | Deferred: Matrix account sync-cache persistence debounce outlives a receive call; service SDK lifecycle binding required. |
| d (1) | `X/matrix/src/matrix/sdk/client-base.ts:701` | Deferred: Matrix account periodic IndexedDB crypto snapshot persistence (not a WAL checkpoint); service SDK lifecycle binding required. |
| d (2) | `X/matrix/src/matrix/thread-bindings.ts:392,650` | Deferred: Matrix account binding delayed persistence and expiry sweep; service SDK lifecycle binding required. |
| d (2) | `X/memory-core/src/dreaming.ts:453,521` | Deferred: Memory service cron reconciliation and deferred interrupted-run cleanup; service SDK lifecycle binding required. |
| d (1) | `X/memory-core/src/memory/manager-session-sync-ops.ts:299` | Deferred: Memory manager background session-update batching; service SDK lifecycle binding required. |
| d (1) | `X/memory-core/src/memory/manager-watch-ops.ts:122` | Deferred: Memory manager periodic background index sync; service SDK lifecycle binding required. |
| d (2) | `X/memory-core/src/memory/manager-watch-resources.ts:90,262` | Deferred: Memory watcher startup diagnostics and file-change settling; service SDK lifecycle binding required. |
| d (1) | `X/nostr/src/nostr-cursor.ts:143` | Deferred: Nostr account durable cursor persistence debounce across receive calls; service SDK lifecycle binding required. |
| d (1) | `X/reef/src/owner-notice.ts:57` | Deferred: Reef service durable rejection-notice delivery retries; service SDK lifecycle binding required. |
| d (1) | `X/slack/src/monitor/presence-monitor.ts:437` | Deferred: Slack account presence polling service; service SDK lifecycle binding required. |
| d (1) | `X/team-reports/src/scheduler.ts:194` | Deferred: Team Reports service recurring report/catch-up scheduling; service SDK lifecycle binding required. |
| d (1) | `X/telegram/src/thread-bindings.ts:517` | Deferred: Telegram account binding expiry sweep; service SDK lifecycle binding required. |
| d (1) | `X/tlon/src/monitor/index.ts:1361` | Deferred: Tlon account channel discovery and polling service; service SDK lifecycle binding required. |
| d (1) | `X/visitor-access/index.ts:99` | Deferred: Visitor-access service retention sweep; service SDK lifecycle binding required. |
| d (1) | `X/visitor-access/src/visitors.ts:215` | Deferred: Visitor-access service grant expiry queue and revocation; service SDK lifecycle binding required. |
| d (1) | `X/voice-call/src/webhook/stale-call-reaper.ts:31` | Deferred: Voice Call service stale-call sweep; service SDK lifecycle binding required. |
| d (1) | `X/whatsapp/src/auto-reply/monitor.ts:510` | Deferred: WhatsApp account pending-delivery reconciliation polling; service SDK lifecycle binding required. |
| d (1) | `X/whatsapp/src/directory-config.ts:170` | Deferred: Account cleanup custody retries after originating call; service SDK lifecycle binding required. |
| d (1) | `X/workboard/src/automation-nudge.ts:111` | Deferred: Workboard service pending-nudge expiry queue; service SDK lifecycle binding required. |
| d (1) | `X/workboard/src/change-events.ts:44` | Deferred: Workboard service cross-process store-change polling; service SDK lifecycle binding required. |
| d (1) | `X/workboard/src/lifecycle-sync.ts:553` | Deferred: Workboard service recurring lifecycle recovery; service SDK lifecycle binding required. |
| d (1) | `H/message/ingress-monitor.ts:725` | Deferred: Shared SDK-exposed ingress monitor periodic drain/retry/retention trigger; service SDK lifecycle binding required. |
| c (1) | `I/sqlite-wal.ts:617` | Explicit storage-owner exception: handle-owned WAL checkpoint/identity admission timer |
| b (138) | `X/a2a/src/task-store.ts:123`; `X/codex/src/app-server/computer-use-health.ts:49`; `X/discord/src/internal/rest-scheduler.ts:380`; `X/facetime/src/runtime.ts:203,547`; `X/line/src/inbound-image-set.ts:202,231,247`; `X/matrix/src/matrix/sdk/client-base.ts:407`; `X/msteams/src/pending-uploads.ts:54`; `X/team-reports/src/scheduler.ts:176,298`; `X/telegram/src/bot-handlers.inbound-media.ts:503,517`; `X/telegram/src/bot/delivery.resolve-media.ts:120`; `X/telegram/src/client-fetch.ts:127`; `X/telegram/src/polling-lease.ts:77`; `X/telegram/src/telegram-ingress-worker.runtime.ts:130`; `X/telegram/src/telegram-ingress-worker.ts:89`; `X/telegram/src/webhook.ts:84`; `A/agent-bundle-mcp-runtime.ts:564`; `A/auth-profiles/oauth-refresh-fence.ts:378`; `A/bash-tools.exec-run.ts:683`; `A/cli-runner/execute-plugin.ts:402`; `A/code-mode-bridge.ts:435`; `A/code-mode-deadline.ts:21`; `A/code-mode-execution.ts:220`; `A/code-mode-headless.ts:66`; `A/code-mode-node.ts:234,320`; `A/command/maintenance-budget.ts:28`; `A/embedded-agent-runner/openrouter-model-capabilities.ts:149`; `A/embedded-agent-runner/run/attempt-queue-message.ts:219`; `A/embedded-agent-runner/run/attempt-timeout-prepare.ts:64,91`; `A/exec-auto-reviewer.ts:374`; `A/harness/attempt-deadlines.ts:37`; `A/harness/native-hook-relay-bridge.ts:260`; `A/harness/native-hook-relay.ts:133`; `A/main-session-recovery/main-session-restart-dispatch-start.ts:99`; `A/mcp-connection-resolver.ts:75`; `A/mcp-pagination.ts:79`; `A/models-config.providers.implicit.ts:366`; `A/prepared-model-catalog-worker.ts:551`; `A/prepared-model-runtime.catalog-access.ts:669`; `A/prepared-model-runtime.startup.ts:60`; `A/run-cleanup-timeout.ts:180`; `A/runtime/proxy.ts:164,218`; `A/subagents/announce/subagent-announce-capture.ts:32`; `A/subagents/announce/subagent-announce-completion-delivery.ts:74`; `A/subagents/completion/session-followup-completion.ts:275`; `A/subagents/registry/subagent-registry-lifecycle-announce-cleanup.ts:624`; `A/subagents/registry/subagent-registry-pending-lifecycle.ts:49`; `A/tools/subagents-tool.ts:209`; `C/active-jobs.ts:494`; `C/service/agent-watchdog.ts:87,103,122,162,233`; `G/agent-turn/agent-handler-helpers.ts:197`; `G/auth-rate-limit.ts:304`; `G/call.ts:895`; `G/channel-health-monitor.ts:291`; `G/cron-stream-job-owner.ts:111,346`; `G/desktop/managed-linux-audio.ts:110,162`; `G/desktop/rfb-preauth.ts:408`; `G/desktop/rfb-probe.ts:191`; `G/github-oauth-lifecycle.ts:655`; `G/local-http-probe.ts:110`; `G/mcp-http.loopback-runtime.ts:291`; `G/model-account-connect.ts:292`; `G/net.ts:349`; `G/node-registry.ts:961`; `G/openresponses-http.ts:753`; `G/provider-browser-auth.ts:112`; `G/server-discovery-runtime.ts:236`; `G/server-in-process-dispatch.ts:109`; `G/server-methods/channels.ts:129`; `G/server-methods/session-catalog-list-operations.ts:181`; `G/server-methods/session-discussion.ts:70`; `G/server-methods/tools-effective.ts:217`; `G/server-runtime-services.ts:316`; `G/server/connection-transport-close.ts:28`; `G/server/connection.ts:240`; `G/server/hooks-request-handler-response.ts:29`; `G/server/hooks.ts:489`; `G/server/ws-connection/node-lifecycle-dispatch.ts:44`; `G/server/ws-connection/worker-connection.ts:233`; `G/session-activity-summaries.ts:357`; `G/session-companion-ask.ts:517`; `G/session-observer-completion.ts:47`; `G/session-reset-acp.ts:25`; `G/system-ca-warmup.ts:138`; `G/terminal/open-deadline.ts:43`; `G/worker-environments/artifact-transfer-service.ts:111`; `G/worker-environments/node-launch-adapter.ts:232,323`; `G/worker-environments/worker-turn-launcher.ts:481`; `G/worker-environments/workspace-sync-helpers.ts:64`; `I/acquire-with-wait.ts:26`; `I/approval-native-route-coordinator.ts:180,229`; `I/diagnostic-events.ts:1243,1295`; `I/embedded-plugin-approval-broker.ts:64`; `I/http-request-lifecycle.ts:200`; `I/http-response-body-timeout.ts:53`; `I/jsonl-socket.ts:54`; `I/net/ssrf.ts:748`; `I/oauth-loopback-callback.ts:316`; `I/ports-probe.ts:90`; `I/provider-usage.shared.ts:93`; `I/push-apns-http2.ts:143,282`; `I/push-apns.ts:216`; `I/shell-env.ts:176`; `I/sqlite-backup.ts:10`; `I/sqlite-readonly-worker.ts:464`; `I/sqlite-wal-write-admission.ts:89`; `I/sqlite-worker-broker.ts:578`; `I/update-candidate-canary-process.ts:148`; `I/update-repair-agent.runtime.ts:342`; `I/update-repair-agent.ts:108,157`; `I/update-repair-inference.ts:38`; `I/worker-task-pool-core.ts:532`; `P/conversation-binding-pending.ts:47`; `P/hook-timeout.ts:13`; `P/host-hook-runtime.ts:119`; `P/plugin-instance.ts:564,625,722`; `P/runtime/runtime-llm-isolated.ts:144`; `P/services.ts:230` | Retain: one request, run, transfer or registration deadline/wait; released at settlement/disposal. |
| b (23) | `X/active-memory/recall-state.ts:79`; `X/crabbox/src/crabbox-worker-heartbeat.ts:46`; `X/reef/protocol/pipeline.ts:175`; `A/embedded-agent-runner/run/lane-controller.ts:171`; `A/harness/native-session/binding-leases.ts:202,372`; `A/worktrees/run-lease.ts:195`; `H/message/ingress-drain.ts:209,283`; `G/agent-turn/agent-handler-helpers.ts:203`; `G/desktop/session-registry.ts:201,423`; `G/server-chat-live-text.ts:178`; `G/sessions-history-http.ts:503`; `G/talk/relay/session-create.ts:642`; `G/worker-environments/placement-turn-claims.ts:442`; `I/clawhub-client.ts:233`; `I/outbound/delivery-queue-lease.ts:51,79`; `I/outbound/delivery-queue-migration.ts:191`; `I/outbound/delivery-queue-preparation.ts:76`; `I/session-cost-usage-reporting.ts:139`; `I/state-migrations.transcript-directives-archives.ts:410` | Retain: one claim, lease, request or operation owns renewal/deadline and settlement. |
| b (130) | `X/active-memory/transcript-watch.ts:142`; `X/agentsapi/agentsapi-client.ts:505`; `X/agentsapi/agentsapi-session.ts:249,547,579`; `X/discord/src/activities/interaction.ts:74`; `X/discord/src/activities/shell.ts:71`; `X/discord/src/api.ts:171`; `X/discord/src/internal/event-queue.ts:172`; `X/discord/src/internal/gateway-identify-limiter.ts:37`; `X/discord/src/internal/rest.ts:250`; `X/discord/src/monitor/message-media.ts:275`; `X/discord/src/monitor/native-command-model-picker-apply.ts:78`; `X/discord/src/monitor/provider.lifecycle.ts:107,126,202,204,314`; `X/discord/src/monitor/timeouts.ts:76,105,126`; `X/feishu/src/setup-surface.ts:314`; `X/github-copilot/login.ts:264`; `X/imap/src/watcher.ts:219`; `X/imessage/src/monitor/monitor-provider.ts:315`; `X/irc/src/monitor.ts:141`; `X/matrix/src/matrix/actions/verification.ts:150,187`; `X/matrix/src/matrix/client/shared.ts:350`; `X/matrix/src/matrix/monitor/verification-events.ts:268`; `X/matrix/src/matrix/sdk/client-support.ts:93`; `X/matrix/src/matrix/sdk/client-sync-quiesce.ts:95`; `X/matrix/src/matrix/sdk/client-sync-ready.ts:91`; `X/matrix/src/matrix/sdk/crypto-bootstrap.ts:192`; `X/matrix/src/matrix/sdk/decrypt-bridge.ts:231,359`; `X/matrix/src/matrix/sdk/verification-manager.ts:463`; `X/mattermost/src/mattermost/client.ts:552`; `X/mattermost/src/mattermost/monitor-thread-backfill.ts:256`; `X/mattermost/src/mattermost/monitor-websocket.ts:202,227,237,329`; `X/mattermost/src/mattermost/reconnect.ts:97`; `X/mattermost/src/mattermost/slash-http.ts:158`; `X/minimax/oauth.ts:349,361`; `X/ollama/src/setup-pull.ts:35,60`; `X/openai/openai-chatgpt-device-code.ts:443,448`; `X/openai/openai-chatgpt-oauth-flow.runtime.ts:45`; `X/openai/openai-chatgpt-oauth.runtime.ts:59`; `X/openai/realtime-session-retirement.ts:107,144`; `X/signal/src/client-container.ts:87,223,497`; `X/signal/src/client-unix.ts:51`; `X/signal/src/client.ts:142,197,296`; `X/signal/src/daemon.ts:292`; `X/signal/src/monitor/event-handler.ts:720`; `X/signal/src/socket-path.ts:112`; `X/team-reports/src/sources/discord/client.ts:28`; `X/telegram/src/draft-stream.ts:809`; `X/tlon/src/monitor/approval-runtime.ts:258`; `X/whatsapp/src/connection-owner.ts:57,96`; `X/whatsapp/src/creds-persistence.ts:80`; `X/whatsapp/src/inbound/message-delivery.ts:633`; `X/whatsapp/src/login-qr.ts:272,356,572`; `X/whatsapp/src/login.ts:57`; `X/whatsapp/src/session.ts:469`; `X/whatsapp/src/socket-close.ts:11`; `X/whatsapp/src/socket-timing.ts:110`; `X/xai/xai-oauth.ts:499,508`; `A/bash-tools.exec-approval-followup.ts:284`; `A/bash-tools.process.ts:258`; `A/cli-runner.ts:102`; `A/cli-runner/cli-run-settlement.ts:46`; `A/embedded-agent-runner/run/abortable.ts:63`; `A/embedded-agent-runner/run/auth-controller.ts:343,353`; `A/embedded-agent-runner/run/compaction-retry-aggregate-timeout.ts:39`; `A/harness/native-hook-relay-client.ts:220`; `A/mcp-http-transport.ts:291,350`; `A/run-wait.ts:271,317`; `A/sandbox/browser.ts:92,113`; `A/subagents/announce/subagent-announce-delivery-retry.ts:206,214`; `A/subagents/announce/subagent-announce-output.ts:450`; `A/subagents/spawn/subagent-spawn-cleanup.ts:156`; `A/subagents/spawn/subagent-spawn-gateway.ts:232`; `A/tools/ask-user-tool.ts:202,245,332`; `A/tools/sessions-tool.ts:658`; `A/workspace.ts:623`; `A/worktrees/checkout-apfs.ts:143,172`; `H/plugins/binding-routing.ts:303`; `G/agent-turn/agent-job.ts:301,723`; `G/desktop/observe-bridge.ts:301`; `G/probe.ts:411`; `G/server-methods/nodes.wake.ts:70`; `G/server-reload-active-work.ts:99`; `G/server-restart-sentinel-notice.ts:266`; `G/server-restart-sentinel.ts:133`; `G/server-startup-post-attach.ts:124,316,851`; `G/worker-environments/node-enrollment.ts:318`; `I/embedded-state-lock.ts:23`; `I/package-lifecycle.ts:256`; `I/session-cost-usage-cache-runtime.ts:290`; `I/sqlite-transaction.ts:528`; `I/ssh-tunnel.ts:218`; `I/state-migrations.audit-backup.ts:236`; `I/tailscale-backend-ready.ts:85`; `I/update-candidate-canary-readiness.ts:216`; `I/update-failure-report-precreate.ts:35` | Retain: retry/readiness/delay belongs to one operation, request or transport lifecycle. |
| b (169) | `X/active-memory/recall-run.ts:78`; `X/active-memory/recall.ts:289`; `X/active-memory/transcript-result.ts:144`; `X/active-memory/transcript.ts:170`; `X/anthropic/cli-process.ts:135`; `X/anthropic/cli-transport.ts:61,88`; `X/browser/src/browser/pw-session-cdp-transport.ts:75,133,167`; `X/buzz/src/directory-relay.ts:183`; `X/buzz/src/relay-auth.ts:153,202`; `X/buzz/src/relay-subscription.ts:125`; `X/buzz/src/room-membership-tracker.ts:48,375`; `X/clickclack/src/http-client.ts:173`; `X/codex/src/app-server/attempt-steering.ts:370`; `X/codex/src/app-server/attempt-timeouts.ts:70`; `X/codex/src/app-server/bounded-turn.ts:235`; `X/codex/src/app-server/client.ts:614`; `X/codex/src/app-server/compact-lifecycle.ts:117,136`; `X/codex/src/app-server/computer-use.ts:946`; `X/codex/src/app-server/connection-health.ts:194`; `X/codex/src/app-server/desktop-generation-owner.ts:83`; `X/codex/src/app-server/dynamic-tool-execution.ts:303`; `X/codex/src/app-server/ephemeral-turn.ts:125`; `X/codex/src/app-server/event-projector-tool-transcript.ts:481`; `X/codex/src/app-server/inference-proxy.ts:461,558`; `X/codex/src/app-server/native-config-fence.ts:82`; `X/codex/src/app-server/native-hook-relay.ts:128`; `X/codex/src/app-server/request-attempt.ts:175`; `X/codex/src/app-server/request.ts:276`; `X/codex/src/app-server/run-attempt-lifecycle-controller.ts:82`; `X/codex/src/app-server/run-attempt-settlement.ts:30`; `X/codex/src/app-server/sandbox-exec-server/sandbox-child.ts:163,278`; `X/codex/src/app-server/server-requests.ts:86`; `X/codex/src/app-server/transport-process-containment.ts:68,166`; `X/codex/src/app-server/transport-process-snapshot.ts:143,228`; `X/codex/src/app-server/transport-websocket.ts:80,107`; `X/codex/src/app-server/transport.ts:110,207`; `X/codex/src/app-server/turn-router.ts:272`; `X/codex/src/conversation-turn-collector.ts:130`; `X/codex/src/migration/session-binding-orphans.ts:136`; `X/codex/src/session-catalog-homes.ts:136,145,167,255`; `X/codex/src/session-catalog-index-state.ts:264`; `X/codex/src/session-catalog-index.ts:535`; `X/codex/src/session-catalog-list-operation.ts:85`; `X/codex/src/session-catalog-native-page.ts:63`; `X/codex/src/session-catalog-rollouts.ts:302`; `X/codex/src/session-rollout-snapshot.ts:99`; `X/comfy/workflow-runtime.ts:497`; `X/crabbox/src/crabbox-worker-provider.ts:105`; `X/fal/video-generation-provider.ts:527`; `X/feishu/src/async.ts:34,103`; `X/feishu/src/media-chunk-idle.ts:37`; `X/feishu/src/sequential-queue.ts:44`; `X/github-copilot/models.ts:317`; `X/google-meet/src/voice-call-gateway.ts:34`; `X/google/transport-stream.ts:715`; `X/google/video-generation-provider.ts:319`; `X/imessage/src/approval-handler.runtime.ts:253`; `X/imessage/src/client.ts:275,346`; `X/line/src/download.ts:113,169`; `X/line/src/webhook-spool.ts:103`; `X/lobster/src/lobster-runner.ts:206`; `X/memory-core/src/dreaming-state.ts:150,157,193`; `X/memory-core/src/memory-corpus.ts:131`; `X/memory-core/src/memory/manager-database-context.ts:347`; `X/memory-core/src/memory/manager-embedding-ops.ts:210,381`; `X/memory-core/src/memory/manager-search-knn-subprocess.ts:344,405`; `X/memory-core/src/memory/manager-search-vector.ts:153`; `X/memory-core/src/memory/manager-source-sync-ops.ts:51`; `X/memory-core/src/memory/search-deadline.ts:56`; `X/memory-lancedb/embeddings.ts:372,435`; `X/memory-lancedb/lancedb-store.ts:96`; `X/memory-wiki/src/compile.ts:402`; `X/minimax/tts.ts:68`; `X/msteams/src/msteams-ingress.ts:250`; `X/nostr/src/nostr-profile-import.ts:112`; `X/nostr/src/nostr-profile.ts:44`; `X/nostr/src/nostr-relay-subscription.ts:52`; `X/ollama/src/stream.runtime.ts:115`; `X/opencode-go/stream-termination.ts:175`; `X/openrouter/music-generation-provider.ts:225`; `X/reef/protocol/guard.ts:117`; `X/reef/src/audit-state.ts:175`; `X/slack/src/client.ts:74`; `X/slack/src/monitor/media.ts:167`; `X/slack/src/monitor/provider-support.ts:103`; `X/synology-chat/src/client.ts:288,465`; `X/synology-chat/src/outbound-media.ts:126`; `X/team-reports/src/sources/github/client.ts:90`; `X/team-reports/src/sources/http.ts:35`; `X/tlon/src/urbit/sse-client.ts:210`; `X/twitch/src/probe.ts:82`; `X/twitch/src/twitch-client.ts:287`; `X/vault/vault-secret-ref-resolver.js:195`; `X/xai/tts.ts:242,260`; `X/xiaomi/speech-provider.ts:228`; `X/zai/detect.ts:83`; `X/zalo/src/api.ts:154`; `X/zalo/src/monitor.ts:249`; `X/zalouser/src/zalo-js.ts:1428,1432`; `A/code-mode-node.worker.ts:380`; `A/context-cache-projection.ts:156`; `A/embedded-agent-runner/run/attempt-preparation.ts:25`; `A/embedded-agent-runner/runs.ts:1273,1380`; `A/harness/gateway-question.ts:488,658`; `A/prepared-model-runtime.build.ts:229,293,330,363,425`; `A/prepared-model-runtime.facts.ts:261,378,415,606`; `A/queued-file-writer.ts:75`; `A/tools/agents-wait-tool.ts:259,271,277`; `A/worktrees/filesystem-backend.ts:37`; `C/heartbeat-monitor.ts:177`; `G/cli-session-history.claude-snapshot.ts:188,231,266`; `G/server-channel-startup.ts:7`; `G/server-channels.ts:1444`; `G/server-cron-skill-review-jobs.ts:38,55,76`; `G/server-kernel.ts:228`; `G/server-methods/sessions-files.ts:238`; `G/server-methods/sessions-read.ts:337`; `G/server-methods/tts.ts:42`; `G/server-startup-observers.ts:39`; `G/server-startup-sidecar-scheduler.ts:31`; `G/server-startup-update-check.ts:99,152`; `G/server/ws-connection/request-start.ts:49`; `G/session-event-prepared-row.ts:36,55`; `G/session-projection-work.ts:10`; `I/session-cost-usage-worker-runtime.ts:428`; `I/state-migrations.transcript-directives.ts:331` | Retain: operation-scoped deadlines/backoff or cooperative event-loop dispatch; no maintenance cadence. |
| b (98) | `X/clickclack/src/activity.ts:209`; `X/clickclack/src/progress.ts:205,220`; `X/deepgram/audio-flux.ts:327`; `X/deepgram/realtime-transcription-provider-factory.ts:320`; `X/discord/src/internal/gateway-rate-limit.ts:110`; `X/discord/src/voice/audio-transport.ts:234`; `X/discord/src/voice/audio-worker.ts:400,517`; `X/discord/src/voice/audio.ts:197`; `X/discord/src/voice/capture-state.ts:96`; `X/discord/src/voice/realtime-output.runtime.ts:127,399,466`; `X/discord/src/voice/realtime-session.runtime.ts:76`; `X/discord/src/voice/transcripts-source.ts:344`; `X/facetime/src/audio-pump.ts:187,200,322,330,464`; `X/facetime/src/helper-rpc.ts:237,623`; `X/facetime/src/runtime-call-control.ts:260,294,324`; `X/facetime/src/runtime-helper-results.ts:193`; `X/facetime/src/talk-driver.ts:402`; `X/facetime/src/talk-initial-greeting.ts:33`; `X/feishu/src/streaming-card.ts:470`; `X/google/realtime-voice-provider.ts:1218`; `X/openai/realtime-live-delegation-queue.ts:36`; `X/openai/realtime-quicksilver-audio-buffer.ts:87`; `X/openai/realtime-quicksilver-bridge.ts:233`; `X/openai/realtime-quicksilver-gateway-bridge.ts:543`; `X/openai/realtime-quicksilver-media.runtime.ts:401`; `X/openai/realtime-quicksilver-peer.runtime.ts:180`; `X/openai/realtime-quicksilver-protocol.ts:95`; `X/openai/realtime-quicksilver-session.ts:254`; `X/openai/realtime-quicksilver-sideband.ts:96`; `X/openai/realtime-quicksilver-socket.ts:171`; `X/openai/realtime-quicksilver-socket.worker.ts:43`; `X/voice-call/src/gateway-continue-operation.ts:63`; `X/voice-call/src/manager/outbound.ts:466`; `X/voice-call/src/manager/timers.ts:53,136`; `X/voice-call/src/media-stream.ts:554,681`; `X/voice-call/src/providers/twilio.ts:667,681`; `X/voice-call/src/tunnel.ts:48,49,137`; `X/voice-call/src/webhook/realtime-audio-pacer.ts:325`; `X/voice-call/src/webhook/realtime-handler.ts:704,1526,1530,1652,1834,1974`; `X/voice-call/src/webhook/stream-disconnect-grace.ts:38`; `X/xai/realtime-voice-events.ts:380`; `A/command/attempt-execution.helpers.ts:157`; `A/embedded-agent-runner/run/attempt-transcript-lifecycle.ts:153`; `A/embedded-agent-runner/run/attempt.model-diagnostic-events.ts:41`; `A/embedded-agent-runner/wait-for-idle-before-flush.ts:42`; `A/mcp-transport.ts:77`; `A/tools/common.ts:445`; `H/draft-stream-loop.ts:125`; `H/progress-draft-compositor.ts:290`; `H/status-reactions.ts:245,271,275,343`; `H/streaming.ts:661`; `H/typing.ts:79`; `G/cron-stream-output.ts:85,477,659`; `G/node-registry.invoke-stream.ts:336`; `G/server-methods/session-change-event.ts:471,496`; `G/server-methods/session-typing-state.ts:117,152`; `G/session-observer-preamble.ts:113`; `G/session-observer.ts:293,446`; `G/session-row-projection-transcript.ts:24`; `G/talk/relay/cancellation-deadline.ts:17,32`; `G/talk/relay/voice.ts:66`; `G/talk/voice-selection.ts:309`; `G/terminal/output-coalescer.ts:76`; `G/terminal/output-flow-control.ts:135`; `G/worker-environments/workspace-sync-helpers.ts:435`; `I/diagnostics-timeline.ts:151`; `I/http-body.ts:176,343` | Retain: one work item/stream/session update, pacing or settlement window; canceled with that work. |
| b (85) | `X/acpx/src/harness-attempt.ts:101`; `X/acpx/src/process-reaper.ts:294`; `X/acpx/src/service.ts:173`; `X/browser/src/browser/cdp-page-session.ts:134`; `X/browser/src/browser/cdp-websocket.ts:191`; `X/browser/src/browser/cdp.helpers.ts:489`; `X/browser/src/browser/chrome-mcp-connect.ts:38,159`; `X/browser/src/browser/chrome-mcp-process.ts:279,295,318`; `X/browser/src/browser/chrome-mcp-routing.ts:98`; `X/browser/src/browser/chrome.diagnostics.ts:182`; `X/browser/src/browser/chrome.ts:471,517,953`; `X/browser/src/browser/client-fetch.ts:356,456`; `X/browser/src/browser/extension-install.ts:220`; `X/browser/src/browser/extension-relay-daemon-spawn.ts:18`; `X/browser/src/browser/extension-relay/auth-v2-websocket.ts:42,45`; `X/browser/src/browser/extension-relay/owner-client.ts:130`; `X/browser/src/browser/extension-relay/owner-server.ts:140,196`; `X/browser/src/browser/extension-relay/relay-auth.ts:158`; `X/browser/src/browser/extension-relay/relay-fetch.ts:203`; `X/browser/src/browser/extension-relay/relay-server.ts:197,262`; `X/browser/src/browser/extension-relay/relay-session-owner.ts:366`; `X/browser/src/browser/pw-download-capture.ts:164`; `X/browser/src/browser/pw-session-actions.ts:502`; `X/browser/src/browser/pw-session-connection.ts:227,544`; `X/browser/src/browser/pw-session-downloads.ts:61`; `X/browser/src/browser/pw-session-page-target.ts:44`; `X/browser/src/browser/pw-session-state.ts:386`; `X/browser/src/browser/pw-tools-core.downloads.ts:133`; `X/browser/src/browser/pw-tools-core.interactions.navigation.ts:310,383,607`; `X/browser/src/browser/pw-tools-core.responses.ts:65`; `X/browser/src/browser/routes/agent.act.existing-session.ts:31,96,128,204,295`; `X/browser/src/browser/routes/tabs.ts:102`; `X/browser/src/browser/screencast/session.ts:255`; `X/browser/src/browser/server-context.availability.ts:357`; `X/browser/src/sdk-node-runtime.ts:18`; `X/codex/src/app-server/native-subagent-completion-delivery.ts:284`; `X/codex/src/app-server/native-subagent-recovery-coordinator.ts:128`; `X/codex/src/app-server/native-subagent-submission-owner.ts:509`; `X/codex/src/app-server/sandbox-exec-server/processes.ts:58,429`; `X/copilot/src/attempt-active-run.ts:177`; `X/copilot/src/attempt-cleanup.ts:107,145`; `X/copilot/src/isolated-completion.ts:93`; `A/cli-runner/execute-node-claude.ts:181`; `A/provider-local-service.ts:326,665`; `A/sessions/exec.ts:120`; `A/sessions/tools/bash-local-exec.ts:76`; `A/shell-snapshot.ts:482,492`; `A/subagents/spawn/acp-spawn-parent-stream.ts:278,405,487,503`; `G/desktop/computer-process.ts:99,164`; `G/desktop/managed-linux.ts:486`; `G/server-methods/open-path.ts:76`; `G/worker-environments/tunnel-ssh-runner.ts:149,163`; `G/worker-environments/workspace-sync-inventory.ts:144,196`; `I/github-issue.ts:364`; `I/sqlite-readonly-worker-session.ts:272,334`; `I/tailscale.ts:207,253`; `I/update-runner-command.ts:31` | Retain: one process/run startup, output wait, stop or kill grace; process owner settles it. |
| b (12) | `X/anthropic/cli.runtime.ts:234`; `X/codex/src/app-server/client-runtime.ts:298`; `X/copilot/src/runtime.ts:136`; `X/diffs/src/browser.runtime.ts:452`; `G/desktop/computer-service.ts:170`; `G/question-manager.ts:310`; `G/server-chat.ts:755`; `G/talk/transcription-relay.ts:315,430`; `G/terminal/session-manager.ts:651`; `G/watch-node-http.ts:382,1082` | Retain: bounded session/client/resource idle retention; its resource owner cancels or retires it. |
| b (29) | `X/browser/src/browser/extension-relay/relay-bridge.ts:128,342,380`; `X/discord/src/internal/gateway-lifecycle.ts:13,34,69`; `X/line/src/monitor.ts:99`; `X/reef/src/transport.ts:424,733`; `X/telegram/src/polling-session.ts:50,505,518`; `X/whatsapp/src/connection-controller.ts:231,1018,1026`; `A/cli-runner/execute-plugin-watchdog.ts:17`; `A/embedded-agent-runner/run/llm-idle-timeout.ts:330,404`; `A/embedded-agent-runner/run/tool-activity-heartbeat.ts:20`; `A/sessions/tools/bash.ts:239,345`; `A/tools/media-generate-background-shared.ts:159,371`; `H/run-state-machine.ts:52`; `H/transport/stall-watchdog.ts:130`; `H/typing-lifecycle.ts:36`; `G/mcp-http.ts:63`; `G/websocket-keepalive.ts:63`; `I/backup-create-stream.ts:116` | Retain: active operation/transport liveness or watchdog; ends with that operation/resource. |
| b (8) | `C/service/active-run-cancellation.ts:31,160`; `G/server-run-shutdown.ts:93`; `G/server-shutdown.ts:10`; `I/gateway-active-work.ts:235`; `I/gateway-suspend-coordinator.ts:125`; `I/restart.ts:113,819` | Retain: bounded suspend/restart/drain control must work while scheduler admission is closed. |
| b (15) | `X/codex/src/app-server/client-catalog-worker.ts:153`; `A/auth-profiles/sqlite-read-pool.ts:79`; `I/sqlite-integrity-worker.ts:77,400`; `I/sqlite-readonly-location.worker.ts:101`; `I/tailscale-route-owner.worker.ts:97`; `I/triage-continuation.ts:90,215,368,438,556`; `I/update-repair-turn-worker.ts:31,120`; `I/worker-idle-gc.ts:22`; `I/worker-task-pool-retirement.ts:145` | Retain: worker/storage resource custody and reclamation, independent of Gateway maintenance. |
| b (8) | `I/update-managed-service-handoff-control.ts:263,267,282`; `I/update-managed-service-handoff.ts:194,988,1102,1175,2141` | Retain: successor-helper authority/parent-exit control or its IPC deadline; independent of Gateway exit. |
| b (3) | `X/buzz/src/room-access-wait.ts:45,172`; `X/cua-computer/src/commands.ts:473` | Retain: subscription-scoped polling; its disposer cancels the timer. |

Dead plumbing (zero physical arms; separate from the 845-site denominator):

| Class | Baseline locations | Deletion |
|---|---|---|
| e | `G/server-node-session-runtime.ts:85,170`; `G/server-lifecycle.ts:137,565`; `G/server-close.ts:241,503,504,505,506`; `G/server-close.test-support.ts:76` | Deleted in #160068: unused `nodePresenceTimers` map, threading and close hook; no production writer remained. |
| e | `A/agent-bundle-mcp-manager-lifecycle.ts:48,51,59,60,61,102,103,106,338,339` | Deleted in #160326: unused interval option and test-only enable/clock overrides after required scheduler injection. Independent inherited-CI evidence is retained in that PR body. |
| e | `I/question-channel-runtime-internal.ts:78,92` | Deleted in #160334: test-only retention-duration option; scheduler fake clock tests the actual retention policy. |
| e | `G/session-companion-ask.ts:82,83,364,365` (uses `:517,644`) | Deleted in #160371: uncalled timer override options and fallback locals. Independent inherited-CI evidence is retained in that PR body. Native per-ask deadline remains b; policy `now` remains. |

## Supplemental census references and exclusions

Baseline `7fce9df1f27770ca3ff72b6317b8d5f6f24ee06d`. Path abbreviations match the primary census.

| Classification | Baseline locations | Reason |
|---|---|---|
| external-timer-helper | `G/active-sessions-shutdown-drain.ts:55`; `G/channel-stop-timeout.ts:12`; `G/chat-abort-lifecycle-internal.ts:105`; `G/dashboard-session-title.ts:271`; `G/desktop/managed-linux.ts:191`; `G/node-invoke-readiness.ts:50`; `G/server-channels.ts:1085`; `G/server-close.ts:99,126,169,542,555`; `G/server-cron-notifications.ts:245,423`; `G/server-media-cleanup-lifecycle.ts:34`; `G/server-methods/claws-monitors.ts:163`; `G/server-methods/sessions-lifecycle-drain.ts:298,301,321`; `G/server-reload-utils.ts:89`; `G/server-restart-sentinel-notice.ts:122`; `G/server-worker-placement-reclaim.ts:108`; `G/server/http-listen.ts:59`; `G/session-reset-incognito.ts:32`; `G/worker-environments/desktop-tunnel.ts:335`; `G/worker-environments/environment-access.ts:392`; `G/worker-environments/node-launch-adapter.ts:405`; `G/worker-environments/node-worker-tunnel.ts:261,275`; `G/worker-environments/service.ts:134,148`; `G/worker-environments/workspace-sync.ts:107` | b: bounded awaited timeout/backoff/drain; shared implementation owns the arm. |
| native-abort | `G/control-ui-link-preview.ts:186`; `G/control-ui-session-pr-check-details.ts:110`; `G/github-user-identity.ts:96`; `G/server-instance-runtime.ts:263`; `G/server-methods/web-search.ts:179`; `G/server-plugin-subagent-runtime.ts:275`; `G/user-profiles-http.ts:197,399`; `G/worker-environments/node-worker-tunnel.ts:210,440`; `G/worker-environments/node-worker-workspace-drain.ts:25`; `G/worker-environments/node-workspace-transfer-http.ts:132`; `G/worker-environments/node-workspace-transfer-service.ts:403,604`; `G/worker-environments/node-workspace-transfer-snapshot.ts:55`; `G/worker-environments/worker-turn-admission.ts:165`; `G/worker-environments/workspace-sync-preflight.ts:25` | b: one request/transfer/model abort deadline; outside named timer API count. |
| generated-browser | `G/mcp-app-standalone-host.ts:365` | Excluded: generated browser resource-load abort deadline. |
| helper/abort references | `I/backup-tar-retry.ts:41`; `I/clawhub-retry.ts:52`; `I/delivery-recovery.shared.ts:261`; `I/git-network-retry.ts:94`; `I/net/proxy/proxy-validation.ts:313`; `I/outbound/message-action-execution.ts:123`; `I/provider-usage.admin.ts:118`; `I/provider-usage.fetch.shared.ts:15`; `I/push-apns.relay.ts:258`; `I/restart-stale-pids.ts:93,102`; `I/retry-policy.ts:76,116`; `I/ssh-tunnel.ts:107`; `I/system-disks.ts:265`; `I/tailscale.ts:472`; `I/telemetry.ts:384`; `I/transport-ready.ts:60`; `I/update-candidate-canary-readiness.ts:107,114`; `I/update-candidate-io.ts:111,154,157`; `I/update-candidate-rehearsal.ts:227`; `I/update-managed-service-handoff-control.ts:424`; `I/update-managed-service-handoff-parent-source.ts:29`; `I/update-managed-service-handoff.ts:802,817,901,914,938,948,1096,1243` | b: operation retry/deadline or independent successor-helper wait; 34 references, no additional physical arm. |
| excluded | `G/mcp-app-standalone-host.ts:289` | Generated browser iframe teardown code; does not execute inside Gateway. |
| excluded | `G/server/plugin-legacy-listeners.ts:64,94` | HTTP server socket timeout configuration; no JS timer arm. |
| excluded | `G/server.e2e-ws-harness.ts:68` | Test harness, not production. |
| excluded | `G/websocket-keepalive.ts:34,87` | Socket timeout settings; the actual ping/pong keepalive interval at :63 is already counted as class b. |
| excluded | `G/worker-environments/project-setup-script.ts:127` | Generated remote child script setup command deadline; not Gateway execution. |
| excluded | `G/worker-environments/workspace-quiescence-scripts.ts:407,420,465` | Generated remote watchdog timers deliberately independent of Gateway process. |
| excluded | `X/acpx/src/codex-auth-bridge.ts:504,524` | Generated child-wrapper program: parent watchdog and child kill grace run in ACP wrapper process |
| excluded | `X/browser/src/browser/pw-tools-core.interactions.actions.ts:389` | JavaScript evaluate timeout executes in inspected web page |
| excluded | `X/browser/src/browser/relay-daemon.ts:99` | Standalone browser relay daemon owns its independent process idle exit |
| excluded | `X/browser/src/browser/routes/agent.act.ts:558` | Highlight cleanup executes in inspected web page |
| excluded | `X/crabbox/src/crabbox-worker-node-enrollment.ts:230` | Generated remote node enrollment program |
| excluded | `X/crabbox/src/crabbox-worker-node-process.ts:173,193,227` | Generated remote node process script |
| excluded | `X/crabbox/src/crabbox-worker-warm-image-scrub.ts:14` | Generated warm-image shell/Node cleanup script |
| excluded | `X/google-meet/src/transports/google-meet-caption-observer-source.ts:110`; `X/google-meet/src/transports/google-meet-page-scripts.ts:80` | JavaScript injected into the meeting web page |
| excluded | `X/matrix/src/cli-shared.ts:32` | CLI exit helper |
| excluded | `X/memory-core/src/cli-index-search.runtime.ts:132` | CLI-only index/search deadline |
| excluded | `X/mxc/src/mxc-spawn-launcher.mjs:39` | Child process launcher parent-disconnect kill grace |
| excluded | `X/policy/src/cli.ts:129` | CLI-only policy command delay |
| excluded | `X/signal/src/client.ts:148` | request.setTimeout(0) disables an existing socket timeout; it does not arm a timer |

<details>
<summary>Measured hosted CI run wall times</summary>

### Hosted CI run wall times

GitHub updated_at minus run_started_at, in seconds, for each completed workflow run. This is whole-run elapsed wall time, not per-file test duration, runner CPU time, billable time, or summed parallel job time. Cancelled runs remain labelled cancelled. Prior heads are separate evidence.

| PR | Slice / revision | Run | Head | Conclusion | RUN WALL (seconds) |
| --- | --- | --- | --- | --- | ---: |
| #160315 | approval-bootstrap / published | [36401825740](https://github.com/openclaw/openclaw/actions/runs/36401825740) | `c5b3c4ae0197` | failure | 1448 |
| #160318 | skills-refresh / published | [36402003337](https://github.com/openclaw/openclaw/actions/runs/36402003337) | `4fafc2add7ce` | failure | 1492 |
| #160326 | mcp / published | [36402978963](https://github.com/openclaw/openclaw/actions/runs/36402978963) | `1fceb8f4e742` | failure | 1525 |
| #160334 | questions / prior head | [36403551682](https://github.com/openclaw/openclaw/actions/runs/36403551682) | `9485d33201aa` | failure | 1629 |
| #160334 | questions / repaired head | [36407409443](https://github.com/openclaw/openclaw/actions/runs/36407409443) | `f2ca3af6feeb` | failure | 1700 |
| #160335 | restart-sentinel / published | [36403569235](https://github.com/openclaw/openclaw/actions/runs/36403569235) | `62cb7cd6ff93` | failure | 1505 |
| #160340 | activity-summary / published | [36404157978](https://github.com/openclaw/openclaw/actions/runs/36404157978) | `c32f2e9b9bc6` | failure | 1925 |
| #160341 | cron-stream / published | [36404170083](https://github.com/openclaw/openclaw/actions/runs/36404170083) | `42975a258c55` | failure | 1355 |
| #160369 | presence / published | [36410007950](https://github.com/openclaw/openclaw/actions/runs/36410007950) | `8ee671f969a3` | failure | 1414 |
| #160370 | device-scope / published | [36410030329](https://github.com/openclaw/openclaw/actions/runs/36410030329) | `cb777346a282` | failure | 1578 |
| #160371 | companion / published | [36410052666](https://github.com/openclaw/openclaw/actions/runs/36410052666) | `75c4c209949e` | failure | 1773 |
| #160375 | config-reload / prior head | [36410694894](https://github.com/openclaw/openclaw/actions/runs/36410694894) | `843ca77b7306` | failure | 1750 |
| #160375 | config-reload / repaired head | [36421206233](https://github.com/openclaw/openclaw/actions/runs/36421206233) | `238fa8cc96a0` | failure | 1892 |
| #160381 | cron-exit / published | [36411857535](https://github.com/openclaw/openclaw/actions/runs/36411857535) | `66d57e0dfa26` | failure | 1892 |
| #160391 | persistence-cache / published | [36415298483](https://github.com/openclaw/openclaw/actions/runs/36415298483) | `932dd2a523fa` | failure | 1688 |
| #160395 | tls-renewal / published | [36416138126](https://github.com/openclaw/openclaw/actions/runs/36416138126) | `43edf9c8c628` | cancelled | 802 |

Skipped unknown CI run IDs: #160068, #160372, #160374. No additional run discovery, logs, or tests were requested for this timing collection.

</details>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 29, 2026
…y, and scheduler changes

Release-check lanes that were also red on main asserted pre-change contracts:
- subagent settle wording now says "in this batch" (openclaw#158642)
- Responses request bodies are pre-encoded bytes (openclaw#159574); decode them
  without consuming init instead of requiring string bodies
- direct experience-review calls must bind the session MCP scheduler that
  Gateway startup binds in production (openclaw#159481)
- Docker lanes pin the plain PATH `codex` CLI for the Codex harness probe
- Telegram group-policy hot reload must name every array it replaces

Landed directly from openclaw#160746 (the native publisher needs a signed merge to
bring that branch current). Focused proof: four QA suites 200/200 in 81 s on
the merged tree; the two E2E files and credentialed live paths were not run.
azuretek added a commit to azuretek/nucleo that referenced this pull request Oct 8, 2026
* refactor(channels): deslop small channel plugins (#160639)

Reuse SDK parsing, normalization, timeout, status, and context contracts;
remove private forwarding layers and redundant result/type projections
across the ten small channel plugins. Preserve provider wire formats,
authorization, rate limits, chunking, and state contracts.

Keep meaningful owner-command and registration coverage at real channel
boundaries, and shrink only the affected assertion-baseline entries.

* fix(talk): speaking over the assistant does not interrupt it during forced consults (#153727)

Restore speech interruption during forced agent consults by resolving the existing provider preference independently of automatic audio responses. Preserve explicit interruption opt-out on both routing paths.

Closes #139278

Co-authored-by: JIE <[email protected]>
Co-authored-by: IWhatsskill <[email protected]>

* fix(ui): keep history rail wave while hovering its preview (#160722)

Co-authored-by: vyctorbrzezowski <[email protected]>

* fix(qa): unblock isolated harness tool and evidence checks (#160527)

* fix(qa): recognize settled subagent batches

Share requester-settle wake recognition between mock input classification and completion handling. Accept the current batch wording while retaining installed-candidate session wording and the existing provenance check.

The real catalog-only handoff spawned and completed a child on the baseline, but QA ignored its completion and timed out. Two focused regressions failed before this fix. The real handoff now passes, all 70 owner/sibling tests pass, and check-changed passes. Standalone changed-test wall times: input 3.21s; handoff 33.76s.

* fix(qa): admit canonical repository checkpoint commands

* fix(ui): stabilize Run Inspector evidence collection

Bind rendered evidence to the public run, execution, and selected decision
receipt identities. Add a shared collector that uses the component-owned
route model and a separate page, preserving the caller's Chat surface and
unsent draft through collection and later reload.

Cover exact run/execution selection, receipt cursor reload, back navigation,
wrong requested identity, missing receipt, and page cleanup in the existing
mock-Gateway Chromium harness. Document the collector and per-tab auth setup.

The regression failed on baseline before product edits because the rendered
run identity attribute was absent. Terminal R's optional assistant transcript
idempotency key is a distinct producer gap; this does not manufacture that
key, relabel historical cells, or change product appearance.

* fix(telegram): confine QA runtime and preserve readiness evidence

Run standard-library drivers through existing Python without UV inline-script virtual environments. Confine private runtime state, drain readiness pipes, retain structural diagnostics, and require verified teardown receipts before releasing recovery state. Preserve doctor, recovery, group, and published-upgrade callers.

Validation: native sandbox regression failed before the fix; 140 harness tests pass, and 72 final focused owner/sibling tests pass in 5.73s. Build exits 0. Broad changed checks stop on two unchanged TS2459 package-update test errors. Focused lint matches all 135 baseline findings with zero additions. No live credentials or Telegram sends.

* fix(telegram): avoid native scenario barrier watchers

* fix(qa): share production publication guard contract

* fix(qa): require named message availability in mock provider

A catalog dispatcher does not advertise every delivery tool. Require the
exact message declaration and a usable invocation surface, including trusted
system/developer instruction carriers. Finish with the recovered child result
when message is absent.

Prove the absent-message regression through the mock HTTP provider and retain
catalog delivery, namespace, text-only fanout, and subagent handoff coverage.

* fix(qa): pass checkout roots to script scenarios

Expand the selected repoRoot separately from each scenario outputDir in the
maintained test-file runner. Prove the argument and CWD contract through a
real subprocess with external artifacts and fresh passing producer evidence.

* fix(qa): distinguish tool declarations from instruction prose

* fix(qa): bind forked-context evidence to native receipts

* fix(qa): bind repeated-ingress MCP scheduler

* fix(qa): add owned provider continuation checkpoints

Let maintained mock scenarios hold one session continuation before response
bytes and observe its request cursor and tool-call identity. Reuse the
provider request log and scenario signal/shutdown lifecycle; replacement
requests proceed normally without touching Gateway decision state.

* fix(qa): keep harness proofs within their owners

* test(qa): exclude all registered runtime consumers

* fix(qa): preserve runtime inputs and enforce checkpoint launches

* test(qa): skip runtime proofs when tools are absent

* fix(qa): complete checkpoint launcher test admission

* test(qa): compile repeated ingress child before execution

* refactor(test): share caller-mode migration fixtures (#160714)

Co-authored-by: Vincent Koc <[email protected]>

* fix(ui): keep acknowledged session renames visible during reconciliation (#160579)

A label-only sessions.patch never resolved a pending row target or
published a field receipt, so the acknowledged rename was ignored until a
sessions.changed event or a post-commit sessions.list arrived. Closing the
title editor therefore showed the old name again after the Gateway had
committed the new one. With a slow roster read in flight and the change
event delayed, a real Gateway showed the old title for about one second
after the ack.

Route labels through the existing patch receipt owner: resolve the pending
conversation for label patches, project entry.label from the committed
receipt, and type it in the UI patch result. The receipt carries the
existing connection, agent, session-generation, updatedAt and read-cutoff
fences, so a roster read started before the rename cannot replace it while
newer Gateway snapshots still win.

The earlier permanent revert seen in the rename-composition probe was a
mock artifact: it answered a post-commit list with pre-commit rows and no
snapshotAt. On a real Gateway the event and post-commit list carry newer
snapshotAt clocks and eventually restore the name; the defect was the
visible revert window, not a lasting loss.

* fix(scripts): accept the CI workflow's fail-fast expression in admin landing (#160721)

* fix(ui): restore the alternating Talk, Send, and Stop button (#160725)

Worked on by:
- @vyctorbrzezowski


OpenClaw-Publication: 9ef95dec-f3a2-4939-9bee-d50cc60bc93d

Co-authored-by: vyctorbrzezowski <[email protected]>

* fix(cron): named-session jobs run in the wrong workspace (#159444)

* fix(cron): named-session jobs run in the wrong workspace

Use saved session workspace and cwd bindings for explicit named-session jobs,
retain their managed worktree lease, and preserve workspace context and
restrictions across persistent rollover without changing detached runs.

Co-authored-by: vyctorbrzezowski <[email protected]>

* fix(cron): named-session jobs run in the wrong workspace

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 85b73558-d465-449a-8257-0d87d3c1ccf8

* fix(cron): prevent cross-session scheduled file access

Bind requester-scheduled saved-workspace access to the authenticated owning
conversation while preserving trusted operator targeting. Prove the path
from creator tool grants through stored jobs and scheduling to real file I/O,
including foreign and archived-session rejection.

Correct mismatched session-key fixtures and make the outbound retry fixture
use the runner session reader and canonical delivery-plan owner.

Co-authored-by: vyctorbrzezowski <[email protected]>

* fix(cron): reject mismatched worktree owners

Apply the existing session-worktree owner invariant to the already-read registry record, before and after lease acquisition. Prove valid leases and rejected foreign-session or manual-owner bindings through real registry rows, Git worktrees, and final coding-tool file reads.

Co-authored-by: vyctorbrzezowski <[email protected]>

---------

Co-authored-by: vyctorbrzezowski <[email protected]>

* fix(ui): show the exact command to approve an admin access request (#160685)

* fix(ui): show exact scope approval command

Include the pending request ID in the Limited access approval instructions. The former openclaw devices command only printed help; render openclaw devices approve with the current request ID and align the connection documentation without changing scope or pairing policy.

Proof: real read-only browser requested admin, rendered the actual pending ID, and reconnected with admin scopes 981ms after CLI approval. Denial, expiry, and retry were also exercised. The new regression fails before the fix; sidebar tests pass (9 tests, 3.74s wall). Combined changed checks and UI build pass remotely. Local formatting hooks are replaced by completed remote gates; both private staged-content scans pass.

* test(ui): assert the exact scope approval command in the live e2e

Co-authored-by: Peter Steinberger <[email protected]>

* fix: worker turns fail on older session-host nodes after the Gateway adds a worker tool (#160147)

* fix(gateway): keep worker turns working on session hosts that predate new worker tools

A Gateway built from main added the `presence` worker session tool, and
every worker-turn launch to a published [email protected] session-host
node failed with `INVALID_REQUEST: invalid worker launch descriptor`
followed by `node worker cancellation timed out`. The installed node
supervisor validates `toolAuthority.allowedToolNames` against a closed
vocabulary, and bundle refresh does not replace the supervisor.

The Gateway now negotiates the launch vocabulary per node, following the
existing capability pattern: it advertises
`node-worker-launch-tool-names-v1`, updated nodes declare
`workerHost.launchToolNames` only to Gateways that advertise it, and the
Gateway treats an absent declaration as the frozen 2026.9.6 vocabulary.
Tool authority filters the projected tool set by the destination
vocabulary, so turn authorization and the launch descriptor stay
identical. Unknown declared names are ignored, so future worker tools
need no further capability.

Update behavior: Gateway-first updates keep older nodes hosting turns
without newer tools (one info log names them); node-first updates keep
the declaration unchanged for older Gateways; updated pairs get presence.

* fix(scripts): add worker tool authority to the PR wrapper inventory

src/infra/node-runner-inventory.ts is in the trusted-anchor PR wrapper's runtime import closure and now imports src/worker/tool-authority.ts for launch tool-name negotiation; the extracted wrapper could not resolve it.

* test(gateway): await the shared async node tunnel manager fixture

Main moved createManager into node-worker-tunnel.test-support.ts as an async helper (#160415); the launch-vocabulary lifecycle test still called it synchronously.

* fix(node-host): updates never install on Bun-only macOS and Linux hosts (#160575)

* fix(node-host): prepare updates on Bun-only POSIX hosts

Read exact registry manifests and stream SHA-512-verified archives in process, then use shared Bun staging inside the private node runtime generation. Preserve npm preparation on Node and Windows, including existing schema and candidate checks.

Cover Bun preparation, private bins, retained generations, invalid registry archives, loopback discovery, and Windows npm selection. Remove the Linux smoke blocker and document the remaining Windows limitation.

* refactor(update): share registry package document reads

Consolidate registry URL construction, HTTP fetching, JSON consumption, deadlines, and response cleanup for update discovery and node runtime preparation. Preserve caller metadata mapping, HTTP error strings, diagnostic labels, and body timeout policies.

Remove the redundant registry status wrapper and share the existing discovery error return. This removes 25 production lines without changing preparation or its regression tests.

* fix(node-host): skip npm freshness probing for Bun preparation

* fix(node-host): create the private Bun node_modules root before staging

* fix(node-host): seed the private Bun global project manifest

* fix(node-host): skip Node engine checks for candidates run on Bun

* docs(bun): link node update preparation history row

* refactor(node-host): move registry archive reads out of install-source-utils

install-source-utils sits under plugin install owners; importing the shared
registry document reader from it closed an import cycle through the provider
and plugin metadata graph. The in-process manifest and archive reads now live
in a leaf module that only the node host imports.

* test(telegram): join webhook drain before near-limit assertions (#160588)

The near-limit webhook tests polled handleUpdate for vi.waitFor's default
1 s after the 200. That response only proves durable admission; dispatch
still reads the ~1 MB row back through the SQLite worker, decodes and
inspects it, so a loaded 2-core shard can deliver after the budget and
fail with an empty update list. Join the ingress monitor's idle
settlement instead, like the sibling spool tests.

* fix(cloud-workers): retain bundles through provisioning (#160730)

Defer node bundle pruning while provisioning has not published its durable bootstrap receipt. Coalesced maintenance snapshots must not acknowledge and remove a newly installed bundle before readiness records ownership.

Add an install, Gateway retention, and worker entry resolution regression that reproduces ENOENT on the previous code. Workspace retention and existing bundle protocol contracts remain unchanged.

* fix(ci): pack hybrid hourly tooling within the row cap

Use the existing hosted retry file packing for hybrid tooling so an
indivisible file can share its spare worker without increasing its price.
The exact hourly hybrid plan drops from 80 total rows to 78, within the
unchanged 77 Node plus two dist limit. GitHub remains at 76 total rows.

Add the hybrid hourly cap regression and retain the GitHub ownership and
cap assertions. Preserve the complete file/config/environment inventory,
release descriptors, timing weights, runner policy, and worker limits.

Validation: 26,658 tooling tests and all test types passed on Linux
Testbox; script types and lint passed there. The connection ended after
those gates, so final root-test lint and format checks passed locally.
The integration file passed all 10 cases locally. P2 autoreview is clean.

* test(gateway): keep d080 scoped to six gateway shards (#160115)

Replay t0001, t0010, t0005, t0009, t0008, and t0007 on current main; preserve Gateway review repairs. Sessions, agents, infra, and cron shards moved to d088.

Retain accepted-input ownership and hook session/account idempotency coverage. Preserve newer worker-placement reconciliation expectations. No production behavior changes.

* fix: streamed replies split Markdown tables that fit one message (#160701)

Related: #160668 (fixes the fitting-table case; renderer-valid continuations for tables longer than `maxChars` are out of scope here, so the issue stays open for that part)

## What Problem This Solves

Fixes: with block streaming on (Discord defaults: 800/1200, paragraph), a reply containing a Markdown table that fits in one chunk gets split mid-table, so the channel renders the first part as a code table and posts the remaining rows as raw `| ... |` Markdown.

## User Impact

Streamed replies with a table that fits the chunk limit now arrive with the whole table rendered consistently. Tables larger than `maxChars` still split at row boundaries.

## Why This Change Was Made

The block chunker already refuses to break inside fenced code, but it had no idea about tables: once the buffer passed `minChars`, the last newline inside a still-streaming table was a valid break. The chunker now treats a table that fits in `maxChars` the way it treats a fence when choosing a break:

- Table ranges come from the same markdown-it table grammar the renderers use (`findMarkdownTableRanges` in markdown-core), so single-dash delimiters, single-column tables, rows without edge pipes, quoted tables and tables inside code fences behave like they render.
- While streaming, a table stays open until a full line follows it, so the unfinished line after it (even a bare `> `) may still become a row. Whether a table fits is decided by its parsed rows only, so an unfinished heading after it can't cost it that protection. A trailing header line waiting for its delimiter row is kept whole too. Other lines with pipes aren't protected, so prose containing `|` still streams at its normal newline breaks.
- If the buffer reaches `maxChars` inside a table that fits, the chunker breaks before the table (below `minChars` if it has to), not inside it.
- A table longer than `maxChars` isn't protected, so it still splits at row boundaries as before. Its headerless continuation still renders raw, as on main.
- If a streaming table that starts the chunk exactly fills `maxChars`, the chunker waits only until the next line starts; the final flush also ends the wait. Once the next line starts, the table is emitted whole at the cap, or split at row boundaries if it has grown. The size check counts row trailing spaces, so no chunk can exceed `maxChars`.

Fences, paragraph and newline breaks outside tables, source-range accounting and the forced final flush are unchanged. `src/auto-reply/chunk.ts` now names `FenceSpan` directly because `findFenceSpanAt` is generic over start/end spans.

Earlier attempts (#66344, #66568, #66557, #73981) were closed unmerged. This one is different:
- It uses the renderer's own parser, not a new regex table detector. That covers the repeated review notes about `-{3,}` delimiters, single-column tables, rows without edge pipes and pipes inside code.
- It keeps a streaming table open until a blank line arrives, not until the current buffer tail, which was the P1 in #66344 and #66568.
- Breaks at the table's own edges stay allowed. Only breaks inside a table that fits are refused.
- There's no import cycle through `chunk.ts`, it targets the current `embedded-agent-block-chunker.ts`, and it doesn't add a second limit model: `maxChars` stays the only cap.

Thanks @giodl73-repo for the fresh reproduction.

## Evidence

**Real Gateway, Discord plugin against a Crabline mock of the Discord API, frozen base `3775359a` vs this branch.** The mock model streamed the issue's reply over OpenAI Responses: intro, a 28-row table (983 chars in total), and a closing line, in 17-char deltas. Discord used its native chunking with `streaming.block.enabled: true`. The captured payloads are the `POST /channels/<dm>/messages` bodies:

- Base, Discord default coalescing: message 0 is the intro plus a code table R01–R11. Message 1 is a code table R12–R24 followed by a raw `| R25 | North | 1124 | 2224 |`. Message 2 is raw rows R26–R28 plus the outro.
- Base, coalescing off: block 1 is a code table R01–R24; block 2, 1.2 s later, is raw R25–R28 plus the outro.
- This branch, both coalescing settings: every row R01–R28 is inside code tables. The table only splits at Discord's own 17-line message cap, which reopens the fence. The outro is a separate block, and there are no raw rows.
- Rerun on head `2b3ec27a` with default coalescing: 3 messages, every row inside code tables, no raw rows.
- Oversized control (60 rows, 1943 chars; also rerun on `2b3ec27a`): both base and this branch split cleanly at a row boundary. The headerless continuation still renders raw on both, which is existing behaviour for tables longer than `maxChars`.

**Focused tests**
- The new `EmbeddedBlockChunker > Markdown tables` cases cover a short intro, a blockquote table, a break before the table when the intro leaves no room, and a table exactly `maxChars` long, each at 1/17/43-char deltas. All four fail on base (they get `822,160`-style splits) and pass here. The oversized-table controls (60 rows, and a table whose trailing spaces push it past the cap, streamed and flushed at once) check that every chunk stays within `maxChars` and splits only at row boundaries. They pass on both base and here. The trailing-space control fails if the size check ignores trailing spaces. Two more cases cover the provisional-span edges. Prose lines containing `|` chunk exactly like the same text without pipes, and a table exactly `maxChars` long is emitted as soon as the next line starts even while whitespace keeps streaming. Both fail on the previous revision of this branch. A further case sends an intro, a table exactly `maxChars` long and a directly following `# heading` in one delta as well as streamed. It yields intro, table, heading, and it failed on the revision before this one. The nine new cases take about 2.3 s in total locally; each 1-char cap-edge case takes about 0.45–0.5 s.
- `embedded-agent-block-chunker`, `block-reply-flushing`, `chunking-fences`, `final-answer-delivery`, `text-end-reconciliation`, `btw`, `auto-reply/chunk`, `markdown-core` `tables` and `fences` all pass.
- A chunker probe over 13 table shapes × 5 delta sizes (no-edge-pipe rows, single column, quoted, fenced, newline/sentence preference, `flushOnParagraph`, `minChars: 1`, two tables, prose with pipes) found no split fitting table, no chunk over `maxChars`, and unchanged source coverage.

Pash/Sarah check: #150407 touched `docs/concepts/streaming.md`, but only the Slack progress section. There's no other overlap, and Slack compact progress is unaffected.

Co-authored-by: Ayaan Zaidi <[email protected]>

* improve(ui): compact Online people activity rows (#160140)

* improve(ui): compact Online people activity rows

Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: steipete <[email protected]>

* improve(ui): compact Online people activity rows

Worked on by:
- @vyctorbrzezowski
- @steipete

Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: 0fdf9bc8-f33a-4798-ab8a-92330e30bae2

* improve(ui): clarify Online presence and workload text

Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: steipete <[email protected]>

* improve(ui): compact Online people activity rows

Worked on by:
- @vyctorbrzezowski
- @steipete

Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: a45e213a-610b-4632-9cb7-58e9586b75f1

* test(ui): wait for roster hydration before sidebar assertions

Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: steipete <[email protected]>

* improve(ui): compact Online people activity rows

Worked on by:
- @vyctorbrzezowski
- @steipete

Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: e35d4d74-12f7-4b00-9fa9-17a2fd9355c0

* test(ui): await split startup request before counting

Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: steipete <[email protected]>

* improve(ui): compact Online people activity rows

Worked on by:
- @vyctorbrzezowski
- @steipete

Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: c33e14bd-a4ce-4715-98cd-922eace93d41

* improve(ui): compact Online people activity rows

Worked on by:
- @vyctorbrzezowski
- @VACInc
- @steipete

Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: VACInc <[email protected]>
Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: b5a493a6-aefd-468b-9f44-a48b89ebff00

* improve(ui): list people with running sessions first in each presence group

* improve(ui): align the Online open-sessions icon with the running spinner

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: steipete <[email protected]>
Co-authored-by: VACInc <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>

* chore(ui): refresh control ui locales (#160753)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* fix: dashboards require approval after native app authentication (#159860)

* fix: dashboards require approval after native app authentication

* fix: register native auth test entries and remove the client type cycle

* fix: recover native dashboard auth on older WebViews and reconnects

* fix: preserve native dashboard auth across current app paths

* fix(ci): use idle hosted tooling workers during overflow

* fix(ci): preserve oversized tooling refusal

* test: load first-hop helpers in the survivor fixture

* test(macos): wire conversation auth fixture and tokenless route

---------

Co-authored-by: Peter Steinberger <[email protected]>

* fix(onboarding): stop claiming inference is ready after Skip for now (#160713)

* fix(onboarding): distinguish local setup from verified inference

Use a provisioning-specific summary title so Skip for now does not claim that inference is ready. Preserve the separate successful verification message and existing skip behavior.

* fix(onboarding): translate the local setup summary title

Co-authored-by: Peter Steinberger <[email protected]>

* feat(plugins): show installed accounts and credential status (#160092)

* prototype(plugins): show per-plugin auth alerts from live MCP checks

Place the shared alert beneath the individual plugin hero on main 018639af3b54. Read a real Notion HTTP OAuth challenge and use a Notion-specific read-only account probe for the local stdio server. Keep the app inventory isolated and the prototype out of production imports.

* prototype(plugins): simplify auth alerts to one line

* feat(plugins): connect detail auth alerts to MCP OAuth

* fix(plugins): align auth alert with the main content column

* feat(plugins): show installed accounts and credential sections

* fix(plugins): use the supported credential projection copy

* feat(plugins): simplify setup states and retain edit actions

* fix(plugins): reuse MCP ownership across inspections

* fix(plugins): keep MCP cache types in the metadata owner

* test(plugins): preserve real install failure classification in fixtures

* fix(ui): let channel setups run back to back (#160705)

* fix(ui): release channel setup sessions before retrying

Close wizard input without aborting committed work, and wait for same-client cancellation settlement before starting a replacement wizard.

Two regressions fail before their respective fixes. Real Gateway and Chromium proof on an isolated Blacksmith Testbox passes 50 cancel/restart cases across Telegram, Discord, Slack, and WhatsApp. Focused controller tests and the campaign-base changed-file gate pass. No local builds or tests; no autoreview per task instructions.

* fix(ui): bound channel wizard cancellation before replacement starts

A replacement wizard start waits for the previous wizard.cancel to settle.
Route that cancel through the same request ceiling as wizard.start so a
stalled Gateway response cannot block later setups indefinitely. Split the
cancellation cases into their own suite with shared fixtures to stay under
the test line cap.

The stalled-cancellation regression times out before the fix and passes
after on a Blacksmith Testbox; the controller suites pass 19/19.

* test(ui): keep channel label fixtures in the controller suite

Co-authored-by: Peter Steinberger <[email protected]>

* perf(cron): narrow delivery-target session reads (#160216)

* perf(cron): narrow delivery-target session reads

* fix(ci): keep plugin retention proof on Node

* fix(slack): progress card links open the visible work session instead of the main session (#160088)

* fix(slack): link finished progress cards to the visible work session

Slack progress cards linked "Open in OpenClaw" to the conversation's main
session even when the turn spawned a visible work session, so operators on
groupScope "main" landed on /chat/<agent> instead of the child doing the work.

Carry the child's canonical URL from its producer: accepted visible spawn
receipts keep sessionUrl and label across the embedded, Codex app-server,
and CLI runners; the settled run reports them once through a new optional
GetReplyOptions.onVisibleWorkSessions before final delivery; Slack's native
task card and Block Kit card render "Open work session" for one child,
labeled links in acceptance order (max five) for several, and keep the
conversation link when none was spawned. No request-time session discovery.

To satisfy the line-cap ratchet, the visible-spawn TypeBox schema moves to
sessions-spawn-visible.schema.ts and the new cases live in sibling test
files with shared test-support fixtures.

* fix(slack): match only generated session-link action IDs

The link-only acknowledgement matched any action_id starting with
openclaw:session_link, so an unrelated button such as openclaw:session_linked
was acknowledged and dropped instead of reaching plugin or agent dispatch.
Accept only the bare ID or a numeric suffix, as the renderer emits.

* test(ci): accept measured command ceilings beside startup health

The PR's 771st database-worker file changes compact placement and exposes a
contradiction: capacity checks accept measured command groups' two-worker
ceiling, but the startup-health sibling check expected no ceiling.

Share the complete measured-generation lookup between both assertions and
recognize the existing command policy without changing planner, packing,
worker, or job-level policies. Move the unchanged tooling placement helpers
to the sibling support module, reducing the test's counted lines from 7536
to 7524.

* fix(ui): keep Inbox empty-state heading larger than description (#160724)

* fix(ui): keep Inbox empty-state heading larger than description

Set both empty-state text sizes explicitly with the existing text-scale tokens.

Co-authored-by: vyctorbrzezowski <[email protected]>

* fix(ui): keep Inbox empty-state heading larger than description

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 69c70083-4f66-4e3b-a051-5642b6ead90e

* fix(ui): separate Inbox empty-state icon from its text

Use 16px between the icon and heading, and 4px between the heading and description.

Co-authored-by: vyctorbrzezowski <[email protected]>

---------

Co-authored-by: vyctorbrzezowski <[email protected]>

* feat: speak with Gemini 3.8 Flash TTS (#157331)

Add opt-in Gemini 3.8 Flash and Flash-Lite TTS in the existing Google speech plugin.

Keep the implicit Gemini 3.1 default and older GenerateContent path unchanged. Send Gemini 3.8 transcript text separately from delivery style and structured speaker metadata through stateless Interactions requests, then reuse the existing PCM, WAV, and voice-note outputs.

Preserve the shared Google auth and response helpers, document the model-specific prompting behavior, and cover speaker/no-speaker requests, transcript handling, model selection, and audio output.

Co-authored-by: IWhatsskill <[email protected]>

* fix(gateway): size bootstrap artifact transfer lifetime from its operation window (#160687)

Bootstrap artifact capabilities used a fixed ten-minute backstop while the owning operation could remain authorized for 45-95 minutes. Slow tunnel downloads were cut off mid-body at 600,000 ms, and every retry received an opaque 404.

Derive the transfer lifetime from the existing size-based bootstrap operation owner. Preserve live enrollment and operation revocation, three serial serves, busy exclusivity, and opaque rejection. Cover the streaming deadlines and revocation with fake time, and update the troubleshooting lifetime clause.

* fix(ui): preserve focus when onboarding suggestions arrive (#160677)

Do not move keyboard focus from the composer or another control when an asynchronous recommended option arrives. Preserve initial autofocus and selection within the option card.

Regression cases fail before the fix for focused textareas and buttons. Real isolated Gateway proof retains the full draft and avoids an unintended Talk to my agent handoff. Option-card and custodian-page tests pass, with final option-card checks at 3.01 seconds. Remote changed checks pass against c377d7ca822.

Co-authored-by: Peter Steinberger <[email protected]>

* fix(browser): Windows version probe pushes the env-var count over budget (#160756)

#160432 passed the Windows browser path to its leaf PowerShell child
under a new OPENCLAW_BROWSER_VERSION_PROBE_PATH name the env-var budget
never recorded, so check:env-var-count (and every local check:changed
run touching src, packages, or extensions) fails on main at 477/476.

Reuse the documented OPENCLAW_BROWSER_EXECUTABLE_PATH for that child-only
channel: it holds exactly the browser executable path, the override lives
only in the spawned powershell.exe environment, and the path still
reaches PowerShell as $env: data, never script text.

* fix(e2e): stage candidate providers for legacy-operator survivor lanes

Legacy published baselines (2026.7.35, 2026.6.34) author plugins.allow from
their bundled provider inventory. The candidate's doctor restores those
now-external providers at the exact candidate version, which does not exist
on npm or ClawHub before publication, so the prepublish registry must carry
them. Stage every official provider from the selected candidate's external
provider catalog for legacy-operator-state lanes, loaded once per plan.

* fix(ci): planner ownership census times out on loaded runners (#160586)

* perf(ci): scan wide import-graph frontiers in one pass

The PR-exempt ownership census plans a PR that edits all 906 PR-exempt
test files. Its consumer check sends ~2,700 terms through the wide native
reader path over ~42.5k tracked files. #160531 and #160517 each added a
match-before-parse filter, so that path spawned one reader child to match
every file and a second to re-read and parse the 2,136 matches.
readImportGraphEdges already requests matchingOnly, so drop the extra
pass: one child matches, parses only uncached matches, and still leaves
nonmatches uncached.

Build the Aho-Corasick automaton as a dense Int32Array over the UTF-16
code units the terms use, completing failure rows breadth-first, so the
scan takes one table load per code unit instead of Map lookups and
failure walks. Files with no match skip projecting every requested term.
Matching semantics, reference checks, and ordering are unchanged.

For the real 906-file request, reader output is byte-identical. Reader
CPU fell from ~12.1s over two passes to ~5.9s. Inside the Vitest worker
the census case's reader cost fell from 16.5s to 8.8s, and the case from
39.1s to 30.4s on a comparably loaded host. Timeout, assertions, and file
coverage are unchanged.

* perf(ci): bound term-matcher rows to the ASCII alphabet

Search terms come from tracked paths, which have no character-diversity
bound. One dense column per distinct UTF-16 unit could therefore grow the
transition table by nodes x alphabet on Unicode-heavy frontiers.

Keep dense Int32Array rows only for the ASCII units the terms use, at most
129 columns per node, and route other term units through sparse per-node
edges with the classic failure walk. Size the table once to its node upper
bound so it never reallocates; only rows of real nodes are written. Fold
isReferenceCharacter into an equivalent character-class test, which is
exhaustively equal for every UTF-16 unit and NaN.

The matcher contract fixture gains terms whose failure links cross dense
and sparse edges. A 24,000-case randomized differential against main's
matcher and a String.includes oracle shows no differences, and reader
output for the 906-file census request stays byte-identical.

* fix: disable plugin Connect when gateway OAuth is unavailable (#160761)

* fix(e2e): size upgrade-survivor Gateway readiness for saturated runners

Release Checks 36479006821 saw both the published 2026.9.6 baseline and the
2026.9.7 candidate bind HTTP after 56-58 s and miss the fixed 90 s readiness
window on saturated runners, while the same phases pass in 36-41 s on idle
ones. Raise the default startup budget to 300 s and make the readiness wait
honor the configured budget instead of a hardcoded 360 polls, so the
OPENCLAW_UPGRADE_SURVIVOR_START_BUDGET_SECONDS override actually extends it.

* fix(agents): reuse admitted plugin registry (#160658)

Reuse the plugin registry already admitted for unchanged agent turns instead of acquiring another captured registry. Keep selected-owner coverage, model-catalog scoping, cleanup and retirement with their existing lifecycle owners.

Add real-loader regression coverage for synchronous and inspection reuse, missing owners, catalog isolation and shutdown cleanup. Production LOC remains net zero.

Exact-head CI passed (run 36474645681); fresh autoreview is clean. Installed Linux parent/head evidence removes duplicate registration; full Windows reporter confirmation remains outstanding.

Fixes #160572. Thanks to @ekinnee for the focused repair, @oxen-horse for the report, and @steipete, @RomneyDa and @vincentkoc for the earlier work and evidence in #158369 and #150915.

Co-authored-by: IWhatsskill <[email protected]>
Co-authored-by: Patrick-Erichsen <[email protected]>

* fix: SQLite workers fail when running OpenClaw from source under Bun on Windows (#160310)

* fix(infra): keep Node's tsx loader away from Bun SQLite workers

Running OpenClaw from source under Bun, the SQLite worker broker started
every .ts worker with `--import <tsx/esm file: URL>` and asked it to
register tsx's loader API, regardless of runtime. Bun runs TypeScript
natively and resolves a file: preload by stripping "file://", so on
Windows `file:///C:/.../tsx/dist/esm/index.mjs` became `/C:/...` and the
worker failed with "preload not found" (device-token persistence broke).

runtime-worker-url already owns this decision for other workers. Extract
runtimeNeedsTypeScriptLoader from it, route the broker's worker execArgv
through resolveRuntimeWorkerThreadExecArgv, and only send the source
loader URL when the runtime needs it. Node keeps tsx for source workers.

* test(infra): keep Node's loader for simulated-Bun SQLite workers

bun-sqlite-library.worker.test.ts overrides process.versions.bun to
exercise Bun SQLite library selection, but its SQLite workers are real
Node worker_threads. Now that the broker omits tsx on Bun, those workers
could not load their TypeScript carrier. Mock the runtime-worker-url
loader decisions in this test to answer for a Node executable, which
restores its previous broker behavior.

* fix(http): adapt rejection transport to Bun's Node-compatible closure (#160329)

Detect Bun's native HTTP destroySoon override introduced by upstream #43557
and use the shared ordered half-close path while retaining native response
completion for older Bun transports. Version labels cannot distinguish the
pre-sync and post-sync canaries.

Wait for queued HEAD socket assignment on Bun without finish diagnostics,
then flush through the response callback to avoid Bun's dispatcher socket
cork. Preserve Node's existing ordering and transport operations. Update SDK
rejection documentation; retain all existing wire-level regression cases.

Validation: 31/31 lifecycle tests on Node 24.21.0, stock Bun 1.4.2, pre-sync
and post-sync Bun forks, and the finish-diagnostics build. Core and infra
test typechecks, scoped oxlint, oxfmt, assertion-safety ratchet, and diff
whitespace checks pass. No tests or dependencies added.

* chore(ui): refresh control ui locales (#160771)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* fix(ui): open voice setup before history admission (#160686)

* fix(ui): open voice setup before history admission

The microphone remains enabled for dictation during initial history, but its
short-tap handler returned at the history submission fence before opening
unavailable capability settings. Catalog admission populated a closed picker:
two unavailable DOM rows existed, while accessible Configure menuitems were zero.

Open capability guidance before that fence. Actual Talk creation still waits
for accepted history. Keep the existing unavailable-settings unit case and
all E2E assertions; hold startup and catalog across the target's early click.
Synchronize the four other proven desktop Talk-start races with the existing
waitForTalkReady helper. Leave direct/hold dictation, explicit picker triggers,
mobile Talk and already-synchronized Talk cases unchanged. Document the behavior.

Introducing ordering: 0b52dc467b3e added the history submission fence before
picker opening; d769e31af2b9 now awaits foreground stream admission before
history/startup, exposing that window more often. Read the parent-relative
patches and the 94cbd1335df, 6b9da9dc028, f03d64f6a56 and e256cbef8ae repairs.

Probe evidence on original production 49351700f3f6:
- Hold chat.startup and talk.catalog, click Start voice input, release both,
  and await visible history: unavailable=2, Configure visible=0,
  Configure including hidden=2, picker open=null. The original toBe(2)
  assertion fails with expected +0 to be 2; 24.333s case, 197.12s wall.
- The pending-history unit variant fails with dropdown.open=false; the
  ready-history variant passes. Extend the existing unit rather than adding
  a duplicate case.
- Holding startup across the initial click also leaves talk.client.create
  absent in transcript ordering, composer voice selection and both SDP cases;
  all four controlled probes fail, while the settings-only sibling passes.

Validation:
- Four changed E2E files: three consecutive passes, 16/16 each;
  313.04s, 293.49s and 340.02s command wall including isolated UI builds.
- One-worker dictation before/after: 11/11 each; 234.65s -> 181.54s wall,
  file time 63.604s -> 48.819s, changed case 4.663s -> 3.583s.
- One-worker siblings before/after: 5/5 each; 210.09s -> 162.56s wall.
  File times: ordering 13.101s -> 7.517s, voice selection 20.346s -> 13.522s,
  SDP 13.446s -> 8.394s. These are cost samples, not a speedup claim.
- Existing full browser files exceed 30s because they exercise multiple real
  composer/media flows and screenshots; no E2E cases or timers were added.
- Composer microphone, action and catalog owners: 80/80; 85.96s wall.
- Independent Codex autoreview: scoped-clean through P2.
- pnpm tsgo:ui passed in 85.05s; ui-e2e and ui-chat test graphs passed
  in 106.07s. Targeted oxlint, oxfmt and git diff --check passed.
- Local check-changed --base origin/main passed its guards, formatting,
  graph boundary and i18n, then stopped at inherited TS2741 in
  src/gateway/session-row-projection.config-commits.test.ts:76: the fixture
  omits the required scheduler. That untouched file is already repaired by
  4bd105408cc on main. The same gateway-root typecheck passes in 69.67s on
  untouched origin/main snapshot 28340c41f8b8, materialized under this task's
  artifacts with physically cloned, identical dependencies. No unrelated
  source was changed. The full changed pipeline is not claimed green.

Release-note context: Control UI opens unavailable voice setup when the
microphone is clicked during chat startup, while preserving Talk admission.

* test(ui): rely on Talk readiness without a no-op startup hold

The sibling Talk cases held chat.startup only to release it immediately, which exercises no ordering. waitForTalkReady with the ready-history message is the synchronization, matching the landed e256cbef8ae shape.

* test(agents,channels,cli): remove low-value tests (batch d091) (#160766)

* test(heartbeat): deslop t0067 tests

* test(agents): deslop t0119 tests

* test(telegram): deslop t0118 tests

* test(discord): deslop t0121 tests

* test(agents): deslop t0120 tests

* test(state): deslop t0129 tests

* test(browser): deslop t0128 tests

* test(status): deslop t0112 tests

* test(matrix): deslop t0125 tests

* test(cli): deslop t0082 tests

* test(agents): remove unused compaction fixture exports

* improve: keep Gateway responsive while compaction loads history (#160314)

* perf(agents): hydrate compaction transcripts off thread

* test: prepare managed handoff runtime before case deadline

* test: speed up database preflight lifecycle tests (#160728)

Co-authored-by: Peter Steinberger <[email protected]>

* improve: speed up child-session lists on large rosters (#160404)

* perf(gateway): select child sessions through the parent index

* test: prepare managed handoff runtime before case deadline

* perf(nodes): reuse warm workers so node session turns start as fast as local ones (#160265)

* perf(nodes): reuse warm workers so node turns start as fast as local ones

Retain settled workers for two minutes with at most two idle children per
node. Negotiate node-worker-idle-retention-v1 across Gateway, node, and
bundle; fresh turn admission and credentials remain mandatory. Protect
background work and preserve durable process cleanup and reconciliation.

Expose reclaimable idle capacity to placement admission and the session
picker. Consolidate lifecycle helpers under the supervisor and use the
shared capacity parser. Document the bounded process-count and memory
tradeoff; include lifecycle, negotiation, and picker regression coverage.

fix(nodes): retry failed idle worker cleanup

Rearm the supervisor idle timer after a transient physical cleanup failure while retaining the durable slot and retirement fence. Cover automatic expiry and idle-limit eviction alongside explicit cleanup with a fake clock.

Fold the cancellation forwarding wrapper into its owner and remove the immediately repeated admission abort check. Preserve the existing authority, settlement, and shutdown guards.

fix(nodes): synchronize idle capacity protocol models

Regenerate the Swift worker-slot model for the optional reclaimableIdle field. The schema and named capability contract remain unchanged.

Inline the single-caller prepared workspace custody wrapper in the supervisor and move its four cases to the public launch entry point. Preserve exact acquisition, abort, shutdown, and release ordering while keeping the complete branch production delta negative.

chore(nodes): prune stale worker assertion allowance

Remove the exact one-entry assertion baseline for worker-command.runtime.ts after the unsafe assertion was eliminated. Keep the scanner and all unrelated allowances unchanged.

fix(nodes): keep supervisor dependencies on protocol owners

Import protocol parsers and types directly from their canonical leaf, including the QA fixture, and remove the redundant supervisor-control re-exports. This breaks the dependency cycle without duplicating the wire contract.

Keep the runner cancellation mock and shutdown callback asynchronous with the real Promise<void> contract, including teardown restoration.

fix(nodes): complete asynchronous cleanup contracts

Join cancellation cleanup in callers and tests while preserving parallel shutdown settlement and expected failure identity. Exclude absent cleanup owners before aggregation and keep stale-connection rejection unchanged.

Use immutable worker input, type-only journal imports, stable sorted idle projections, and receiver-bound fault injection. Remove redundant descriptor bookkeeping and finish the test lint cleanup without changing limits or suppressions.

* test(nodes): disambiguate inventory fixtures

* fix(google): keep streaming silence to Gemini 3.8 Live instead of ending the audio stream (#152844)

Keep streaming supplied silent audio frames for Gemini 3.8 Live so server-side VAD can finish the user turn. Retain existing audioStreamEnd behavior for other Google Live models. The policy remains in the Google plugin model contract and shared production bridge.

Closes #152830

Co-authored-by: IWhatsskill <[email protected]>

* fix(agentmail): allow official ClawHub channel to load (#155097)

* fix(agentmail): allow official ClawHub channel to load

* docs(agentmail): keep setup guide vendor-owned

* fix(agentmail): require API key for configured state

* fix(plugin): verify pinned digest before legacy trust

* fix(doctor): update refuses when lint warns about an unusable agent database (#160184)

Fixes `openclaw update` refusing with candidate-doctor-lint / doctor-failed when candidate Doctor lint warns about an unusable agent database, and plain `openclaw doctor --lint --json` printing a Clack warning box before its JSON report.

Doctor notes rendered to process.stdout even when machine-output mode reserved stdout, so runDoctorAgentDatabaseOperation's nonfatal "Doctor warnings" note preceded the lint JSON; in an update rehearsal the private lint worker's first stdout line failed the strict JSON parse and became a core/doctor/lint-inspection error. Notes now follow loggingState.forceConsoleToStderr: terminal-core gains a dependency-free, callback-scoped note output resolver (note-output.ts), and withConsoleLogsRoutedToStderrForJson installs one that reads the live flag at write time. Warnings stay visible on stderr. Candidate-side only; released updaters (verified against the 2026.9.6 driver) accept the clean JSON unchanged.

Proof: json-output-mode regression fails on main and passes; published [email protected] driver x candidate upgrade-survivor cell with an ownership-mismatched secondary agent DB refused before (doctor-failed) and succeeded after with the warning on stderr and the bootstrap import guard passing.

* refactor(gateway): remove duplicate artifact API scenario (#160779)

Co-authored-by: Vincent Koc <[email protected]>

* test(release): repair release-check lanes after settle, Responses body, and scheduler changes

Release-check lanes that were also red on main asserted pre-change contracts:
- subagent settle wording now says "in this batch" (#158642)
- Responses request bodies are pre-encoded bytes (#159574); decode them
  without consuming init instead of requiring string bodies
- direct experience-review calls must bind the session MCP scheduler that
  Gateway startup binds in production (#159481)
- Docker lanes pin the plain PATH `codex` CLI for the Codex harness probe
- Telegram group-policy hot reload must name every array it replaces

Landed directly from #160746 (the native publisher needs a signed merge to
bring that branch current). Focused proof: four QA suites 200/200 in 81 s on
the merged tree; the two E2E files and credentialed live paths were not run.

* fix(active-memory): recalls on claude-cli never reuse the prompt cache (#160768)

Closes #160672

## What Problem This Solves

Fixes: every Active Memory recall on the `claude-cli` runtime writes the whole OpenClaw system prompt into Claude's prompt cache again, even for two recalls of the same agent seconds apart.

## User Impact

User impact: repeated Active Memory recalls of the same agent on `claude-cli` now send a byte-identical system prompt, so the recall's first API call can read it from Claude's cache instead of paying for a 10k+ token cache write each time. Normal `claude-cli` turns are unchanged.

## Why This Change Was Made

Each recall gets a new session key (`<parent>:active-memory:<per-run hash>`) so its session entry stays unique. The Runtime line rendered that key into the system prompt, and Claude CLI receives the whole system prompt as one `appendSystemPrompt`, so the per-run key forced a full cache rewrite. The recall's session key is the only value that differed between two recalls.

One-shot CLI dispatch runs (today only Active Memory recall) now carry the Runtime facts line in their only user turn, through the same `UserPromptSubmit` context Claude CLI already uses for other per-turn facts. This reuses the existing relocatable Runtime region that Chat Completions routes already move into the first user message. The recall model still sees its agent, session, model and channel. Recall session keys, storage and cleanup are unchanged. Normal resumable CLI turns keep the Runtime line in the system prompt.

Thanks @ndakota79 for the detailed cache-counter report and cause analysis.

No overlap with Pash/Sarah changes.

## Evidence

Isolated Gateway (task-owned home, state, config, port) with agents `alpha` and `beta` on `agentRuntime: claude-cli`, Active Memory `mode: always`, and a fake `claude` executable that records the `initialize.appendSystemPrompt` and the `UserPromptSubmit` context it receives. Two `chat.send` turns on `agent:alpha:main` about 60 s apart, then one on `agent:beta:main`.

- Base (`7f0781faa67`): the two alpha recalls' system prompts differ in exactly one line:
  ```
  -Runtime: agent=alpha | session=agent:alpha:main:active-memory:e10ad4c9dc5e | ...
  +Runtime: agent=alpha | session=agent:alpha:main:active-memory:9945b3fb179b | ...
  ```
- Candidate: both alpha recalls send the same system prompt (14,210 bytes, sha256 `f7a45b89f4e84e5f…`). Each recall's user turn carries its own `Runtime: agent=alpha | session=agent:alpha:main:active-memory:<hash> | ... | channel=webchat | ...`. The candidate recall prompt equals the base recall prompt minus the Runtime line.
- Controls: the beta recall still gets its own prompt (its working directory differs) and its own `agent=beta` Runtime facts in the turn. The alpha and beta main (non-recall) turns send the same system prompt and user turn as on base, with the Runtime line still in the system prompt.
- Regression: `src/agents/cli-runner/prepare.test.ts` "keeps per-run helper session identities out of the reusable system prompt" fails on base (system prompts differ) and passes with the fix. `prepare.test.ts` (194), `cli-backend-dispatch.test.ts` (40) and `helpers.system-prompt.test.ts` (15) pass.
- Test cost: the new test runs in 136 ms. `pnpm test src/agents/cli-runner/prepare.test.ts --maxWorkers=1`: 194 passed, 83.3 s wall (Vitest 65.9 s); the same command filtered to the new test: 23.1 s wall (Vitest 5.8 s).

Not verified: a real Claude Code run. The proof checks the bytes OpenClaw sends to the CLI (the `initialize` system prompt and the `UserPromptSubmit` response); it does not show Claude Code's cache counters. The Runtime facts use the same `UserPromptSubmit` additional-context path that already carries `before_prompt_build` hook context (including Active Memory's own recalled context) on `claude-cli` turns.

Co-authored-by: Ayaan Zaidi <[email protected]>

* fix(release): retry the shipped 2026.9.6 Windows updater after its exit-13 liveness defect

Windows packaged upgrade from [email protected] to the 2026.9.7 candidate failed on Node 24 and 26.1.0 because the shipped 9.6 updater exits 13 (unsettled top-level await) before switching the install: it awaits an unreferenced 300 ms cleanup timer after cancelling the retained-runtime progress probe. 02720df7e6c5 fixes it for 2026.9.7+, but cannot repair the executing 9.6 parent, and it is intermittent on native Windows.

Classify exactly that signature (win32, exit 13, the warning, empty stdout, install still on a baseline older than 2026.9.7), retry the same update once as a user would, and only if the retry fails the same way use the existing verified direct candidate install. Both outcomes are recorded as updater fallback evidence; any other failure still fails the lane.

* perf(gateway): reuse pending narration deadlines (#160769)

Keep the existing two-second deadline while replacing pending narration text. Preserve immediate final flush, retractions, and retirement cancellation.

* refactor: remove redundant final-delivery reconciliation (#160764)

* test(e2e): align survivor startup budget expectations

The upgrade-survivor readiness default moved from 90 to 300 seconds, but three existing helper assertions still expected 90. Keep them aligned with the runner; forwarding, overrides, and explicit timeout behavior stay covered.

Reproduced the original failing case on main. Validation: 350 tests across the helper and startup-budget suites passed in 59.06 seconds, plus scoped lint, formatting, and independent review.

* docs(ios): qualify SimSlim scope in setup guide (#160784)

SimSlim also prepares the compare-mode arms of native release qualification, not only the ios-build iPhone test simulator. Follow-up to the ClawSweeper finding on #160607.

* fix(ci): scope untouched line-limit diagnostics in changed checks (#158995)

* test(channels): track the inlined Synology context builder call

#160639 (5ddcce60fabb) inlined resolveSynologyChatInboundRoute, so the
Synology inbound event now calls rt.channel.inbound.buildContext on the
same getSynologyRuntime() handle instead of resolved.rt. The caller
inventory still expected the old text and failed build-artifacts on main
and in 2026.9.7 Full Release Validation (CI 36496123315).

Update only the expected call text; the runtime provenance is unchanged.
Proof: context-builder-callers.test.ts fails 1/6 on main before, passes
6/6 after (3 s, one worker).

* fix(ci): restore Doctor plugin repair lint budget (#160715)

* docs(ci): explain why the plugin retention proof stays on Node

#160216 routed src/plugins/runtime.retention.test.ts to the unit-fast Node
partition after reproducing Bun failures. Record why in the runtime-selection
docs, beside the other GC-sensitive proofs.

Root cause, measured on Blacksmith Testbox tbx_01m3n11pjbtgfgcqv8t1jjbh4n with
pinned Bun 1.4.3-canary.1+6b9148b17 on 300ef3991158: the registry-instances
case kept a released successor registry past eight forced collections in 3/350
and 6/900 runs. In every retained case, a GCDebugging heap snapshot one task
later still held the oldest-registry control marker but no successor, and each
WeakRef then read empty. No retaining path exists, so this is collector
nondeterminism, not a product leak. Node ran 0/600.

The registry-case failure seen on openclaw/openclaw#160136 (CI run
36380533796) is a separate, already-fixed fixture defect. That run merged onto
56376753f832, before c136ec631464 (#160200) moved gc() out of promise
continuations. On Bun, that base fails the registry case 339/350 and 300ef3991158
fails it 0/550.

Routing proof on the same lease: replaying the failing core-unit-fast-2 group
(186 files, bun-compatible policy) exits 0, with all 10 retention cases in the
Node subset. The runtime-inventory guard fails without the routing entry.

* fix(ci): restore frozen planner dependency closure

Include the provider catalog and record helper added by ac59199 in frozen
tooling admission and all affected copied harnesses. Verify their bytes
through the existing closure owner. Keep child evidence isolation covered
with the child-only Codex install helper now that record-shared is common.

The original package failure reproduces locally: 93 failed and 462 passed.
Both added integrity cases fail before the closure repair. Afterward, all
555 package tests and 445 closure sibling tests pass. Independent review
is clean through P2; the full selected static check passes in 1448.701s.

Measured one-worker wall times: package 218.673s and closure siblings
267.426s. The two added integrity cases take 208ms and 202ms. No timeout,
retry, baseline, or integrity check is relaxed.

Related CI: 36494713554 and 36494667447. Separate startup assertion and
Synology caller fixes landed in 8799587 and c4845a6 and are not duplicated.
The separate macOS native reconnect failure in main CI 36492763105 remains
causally unproven and is not claimed fixed here.

* fix(security): parse gpt generation numbers in the audit tier check (#140012)

Fix security audit warnings that incorrectly classify numbered GPT-6 models as below GPT-5. Compare numeric generations in the shared model-hygiene classifier while preserving older-model warnings and Azure's legacy gpt-35-turbo naming contract.

The repair covers primary models, fallbacks, image models, and agent overrides without changing provider routing, authorization, or unknown-name advisory policy. Broader unknown-name behavior remains separate in #160580.

Fixes #139751
Thanks @holny for the fix, regression coverage, and isolated CLI evidence.

Co-authored-by: holny <[email protected]>
Co-authored-by: IWhatsskill <[email protected]>

* refactor(daemon): prune redundant Scheduler test fixtures (#160794)

Co-authored-by: Vincent Koc <[email protected]>

* fix(release): admit the provider catalog read by legacy-operator survivor planning

ac59199ad3fd made docker-e2e-plan.mts import scripts/lib/official-external-provider-catalog.json and scripts/lib/record-shared.mjs and read the candidate's provider catalog through the frozen target reader for legacy-operator-state lanes. Frozen admission hydrates only declared source paths in a no-lazy-fetch checkout, so targeted survivor dispatches failed with 'unable to read selected source (cat-file)', and the admission fixture lacked both tooling imports. Declare both files in the tooling closure and hydrate the candidate catalog for survivor lanes.

* refactor(plugins): deslop plugin runtime fifth pass (#159945)

* refactor(plugins): deslop plugin runtime fifth pass

Consolidate repeated provider, manifest, install, catalog, hook and registration projections under their existing owners. Preserve plugin loading, SDK, caching and source-security contracts.

Preserve provider wizard modelSelection preferences through registration so configured onboarding choices retain their documented model-picker behavior.

* fix(plugins): preserve build and type cleanup contracts

* fix(plugins): retain distinct public credential source types

* fix(plugins): preserve sparse catalog matching and cleanup contracts

* fix(plugins): preserve include ownership during uninstall

* fix(plugins): include request policy in PR wrapper inventory

* chore(ios): simplify store release workflow (#160791)

* perf(subagents): avoid sibling scans for registry patches (#160800)

* fix(channels): isolate Mattermost sends and retain capture owner proof (#150915)

Keep Mattermost inbound monitoring behind account startup rather than the
outbound runtime. Bind the Discord E2E fixture to its selected runtime
artifact and assert exact provider/instance identity through model selection
and rerouting, preserving late-STT, history, and cleanup fences.

The prepared-registry handoff is already on main via #160658; do not
duplicate it or retain the obsolete release-preparation ancestry.

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: steipete <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: vincentkoc <[email protected]>

* perf(ui): stop forbidden canvas lease refresh loops (#160808)

Use granted hello scopes to admit canvas lease renewal and stop automatic retries after FORBIDDEN. Preserve read access implied by write/admin scopes and re-evaluate access on reconnect.

* fix(ui): multi-file chat sends fail late when attachments together exceed the frame limit (#160071)

* fix(ui): admit chat attachments against the chat.send frame budget

One chat.send carries every composer attachment base64-encoded in a single
WebSocket frame, but the Control UI only checked each file against the
per-attachment hello-ok.policy.attachments ceilings. Files that fit one at a
time could together exceed the frame, and the send failed late: after the
composer cleared and the whole batch was encoded, with a generic payload
error from the browser transport.

The per-send decoded budget is floor((policy.maxPayload - 256 KiB) * 3/4),
the formula the Gateway already used to clamp its advertised ceiling, now
owned by src/shared/chat-attachment-frame-budget.ts for both sides. Every
composer intake path counts staged attachments plus in-flight reads and
rejects the file that would overflow with the existing "Too large to send"
toast. handleSendChat, outbox delivery, and new-session submission …
azuretek added a commit to azuretek/nucleo that referenced this pull request Nov 24, 2026
* refactor(channels): deslop small channel plugins (#160639)

Reuse SDK parsing, normalization, timeout, status, and context contracts;
remove private forwarding layers and redundant result/type projections
across the ten small channel plugins. Preserve provider wire formats,
authorization, rate limits, chunking, and state contracts.

Keep meaningful owner-command and registration coverage at real channel
boundaries, and shrink only the affected assertion-baseline entries.

* fix(talk): speaking over the assistant does not interrupt it during forced consults (#153727)

Restore speech interruption during forced agent consults by resolving the existing provider preference independently of automatic audio responses. Preserve explicit interruption opt-out on both routing paths.

Closes #139278

Co-authored-by: JIE <[email protected]>
Co-authored-by: IWhatsskill <[email protected]>

* fix(ui): keep history rail wave while hovering its preview (#160722)

Co-authored-by: vyctorbrzezowski <[email protected]>

* fix(qa): unblock isolated harness tool and evidence checks (#160527)

* fix(qa): recognize settled subagent batches

Share requester-settle wake recognition between mock input classification and completion handling. Accept the current batch wording while retaining installed-candidate session wording and the existing provenance check.

The real catalog-only handoff spawned and completed a child on the baseline, but QA ignored its completion and timed out. Two focused regressions failed before this fix. The real handoff now passes, all 70 owner/sibling tests pass, and check-changed passes. Standalone changed-test wall times: input 3.21s; handoff 33.76s.

* fix(qa): admit canonical repository checkpoint commands

* fix(ui): stabilize Run Inspector evidence collection

Bind rendered evidence to the public run, execution, and selected decision
receipt identities. Add a shared collector that uses the component-owned
route model and a separate page, preserving the caller's Chat surface and
unsent draft through collection and later reload.

Cover exact run/execution selection, receipt cursor reload, back navigation,
wrong requested identity, missing receipt, and page cleanup in the existing
mock-Gateway Chromium harness. Document the collector and per-tab auth setup.

The regression failed on baseline before product edits because the rendered
run identity attribute was absent. Terminal R's optional assistant transcript
idempotency key is a distinct producer gap; this does not manufacture that
key, relabel historical cells, or change product appearance.

* fix(telegram): confine QA runtime and preserve readiness evidence

Run standard-library drivers through existing Python without UV inline-script virtual environments. Confine private runtime state, drain readiness pipes, retain structural diagnostics, and require verified teardown receipts before releasing recovery state. Preserve doctor, recovery, group, and published-upgrade callers.

Validation: native sandbox regression failed before the fix; 140 harness tests pass, and 72 final focused owner/sibling tests pass in 5.73s. Build exits 0. Broad changed checks stop on two unchanged TS2459 package-update test errors. Focused lint matches all 135 baseline findings with zero additions. No live credentials or Telegram sends.

* fix(telegram): avoid native scenario barrier watchers

* fix(qa): share production publication guard contract

* fix(qa): require named message availability in mock provider

A catalog dispatcher does not advertise every delivery tool. Require the
exact message declaration and a usable invocation surface, including trusted
system/developer instruction carriers. Finish with the recovered child result
when message is absent.

Prove the absent-message regression through the mock HTTP provider and retain
catalog delivery, namespace, text-only fanout, and subagent handoff coverage.

* fix(qa): pass checkout roots to script scenarios

Expand the selected repoRoot separately from each scenario outputDir in the
maintained test-file runner. Prove the argument and CWD contract through a
real subprocess with external artifacts and fresh passing producer evidence.

* fix(qa): distinguish tool declarations from instruction prose

* fix(qa): bind forked-context evidence to native receipts

* fix(qa): bind repeated-ingress MCP scheduler

* fix(qa): add owned provider continuation checkpoints

Let maintained mock scenarios hold one session continuation before response
bytes and observe its request cursor and tool-call identity. Reuse the
provider request log and scenario signal/shutdown lifecycle; replacement
requests proceed normally without touching Gateway decision state.

* fix(qa): keep harness proofs within their owners

* test(qa): exclude all registered runtime consumers

* fix(qa): preserve runtime inputs and enforce checkpoint launches

* test(qa): skip runtime proofs when tools are absent

* fix(qa): complete checkpoint launcher test admission

* test(qa): compile repeated ingress child before execution

* refactor(test): share caller-mode migration fixtures (#160714)

Co-authored-by: Vincent Koc <[email protected]>

* fix(ui): keep acknowledged session renames visible during reconciliation (#160579)

A label-only sessions.patch never resolved a pending row target or
published a field receipt, so the acknowledged rename was ignored until a
sessions.changed event or a post-commit sessions.list arrived. Closing the
title editor therefore showed the old name again after the Gateway had
committed the new one. With a slow roster read in flight and the change
event delayed, a real Gateway showed the old title for about one second
after the ack.

Route labels through the existing patch receipt owner: resolve the pending
conversation for label patches, project entry.label from the committed
receipt, and type it in the UI patch result. The receipt carries the
existing connection, agent, session-generation, updatedAt and read-cutoff
fences, so a roster read started before the rename cannot replace it while
newer Gateway snapshots still win.

The earlier permanent revert seen in the rename-composition probe was a
mock artifact: it answered a post-commit list with pre-commit rows and no
snapshotAt. On a real Gateway the event and post-commit list carry newer
snapshotAt clocks and eventually restore the name; the defect was the
visible revert window, not a lasting loss.

* fix(scripts): accept the CI workflow's fail-fast expression in admin landing (#160721)

* fix(ui): restore the alternating Talk, Send, and Stop button (#160725)

Worked on by:
- @vyctorbrzezowski


OpenClaw-Publication: 9ef95dec-f3a2-4939-9bee-d50cc60bc93d

Co-authored-by: vyctorbrzezowski <[email protected]>

* fix(cron): named-session jobs run in the wrong workspace (#159444)

* fix(cron): named-session jobs run in the wrong workspace

Use saved session workspace and cwd bindings for explicit named-session jobs,
retain their managed worktree lease, and preserve workspace context and
restrictions across persistent rollover without changing detached runs.

Co-authored-by: vyctorbrzezowski <[email protected]>

* fix(cron): named-session jobs run in the wrong workspace

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 85b73558-d465-449a-8257-0d87d3c1ccf8

* fix(cron): prevent cross-session scheduled file access

Bind requester-scheduled saved-workspace access to the authenticated owning
conversation while preserving trusted operator targeting. Prove the path
from creator tool grants through stored jobs and scheduling to real file I/O,
including foreign and archived-session rejection.

Correct mismatched session-key fixtures and make the outbound retry fixture
use the runner session reader and canonical delivery-plan owner.

Co-authored-by: vyctorbrzezowski <[email protected]>

* fix(cron): reject mismatched worktree owners

Apply the existing session-worktree owner invariant to the already-read registry record, before and after lease acquisition. Prove valid leases and rejected foreign-session or manual-owner bindings through real registry rows, Git worktrees, and final coding-tool file reads.

Co-authored-by: vyctorbrzezowski <[email protected]>

---------

Co-authored-by: vyctorbrzezowski <[email protected]>

* fix(ui): show the exact command to approve an admin access request (#160685)

* fix(ui): show exact scope approval command

Include the pending request ID in the Limited access approval instructions. The former openclaw devices command only printed help; render openclaw devices approve with the current request ID and align the connection documentation without changing scope or pairing policy.

Proof: real read-only browser requested admin, rendered the actual pending ID, and reconnected with admin scopes 981ms after CLI approval. Denial, expiry, and retry were also exercised. The new regression fails before the fix; sidebar tests pass (9 tests, 3.74s wall). Combined changed checks and UI build pass remotely. Local formatting hooks are replaced by completed remote gates; both private staged-content scans pass.

* test(ui): assert the exact scope approval command in the live e2e

Co-authored-by: Peter Steinberger <[email protected]>

* fix: worker turns fail on older session-host nodes after the Gateway adds a worker tool (#160147)

* fix(gateway): keep worker turns working on session hosts that predate new worker tools

A Gateway built from main added the `presence` worker session tool, and
every worker-turn launch to a published [email protected] session-host
node failed with `INVALID_REQUEST: invalid worker launch descriptor`
followed by `node worker cancellation timed out`. The installed node
supervisor validates `toolAuthority.allowedToolNames` against a closed
vocabulary, and bundle refresh does not replace the supervisor.

The Gateway now negotiates the launch vocabulary per node, following the
existing capability pattern: it advertises
`node-worker-launch-tool-names-v1`, updated nodes declare
`workerHost.launchToolNames` only to Gateways that advertise it, and the
Gateway treats an absent declaration as the frozen 2026.9.6 vocabulary.
Tool authority filters the projected tool set by the destination
vocabulary, so turn authorization and the launch descriptor stay
identical. Unknown declared names are ignored, so future worker tools
need no further capability.

Update behavior: Gateway-first updates keep older nodes hosting turns
without newer tools (one info log names them); node-first updates keep
the declaration unchanged for older Gateways; updated pairs get presence.

* fix(scripts): add worker tool authority to the PR wrapper inventory

src/infra/node-runner-inventory.ts is in the trusted-anchor PR wrapper's runtime import closure and now imports src/worker/tool-authority.ts for launch tool-name negotiation; the extracted wrapper could not resolve it.

* test(gateway): await the shared async node tunnel manager fixture

Main moved createManager into node-worker-tunnel.test-support.ts as an async helper (#160415); the launch-vocabulary lifecycle test still called it synchronously.

* fix(node-host): updates never install on Bun-only macOS and Linux hosts (#160575)

* fix(node-host): prepare updates on Bun-only POSIX hosts

Read exact registry manifests and stream SHA-512-verified archives in process, then use shared Bun staging inside the private node runtime generation. Preserve npm preparation on Node and Windows, including existing schema and candidate checks.

Cover Bun preparation, private bins, retained generations, invalid registry archives, loopback discovery, and Windows npm selection. Remove the Linux smoke blocker and document the remaining Windows limitation.

* refactor(update): share registry package document reads

Consolidate registry URL construction, HTTP fetching, JSON consumption, deadlines, and response cleanup for update discovery and node runtime preparation. Preserve caller metadata mapping, HTTP error strings, diagnostic labels, and body timeout policies.

Remove the redundant registry status wrapper and share the existing discovery error return. This removes 25 production lines without changing preparation or its regression tests.

* fix(node-host): skip npm freshness probing for Bun preparation

* fix(node-host): create the private Bun node_modules root before staging

* fix(node-host): seed the private Bun global project manifest

* fix(node-host): skip Node engine checks for candidates run on Bun

* docs(bun): link node update preparation history row

* refactor(node-host): move registry archive reads out of install-source-utils

install-source-utils sits under plugin install owners; importing the shared
registry document reader from it closed an import cycle through the provider
and plugin metadata graph. The in-process manifest and archive reads now live
in a leaf module that only the node host imports.

* test(telegram): join webhook drain before near-limit assertions (#160588)

The near-limit webhook tests polled handleUpdate for vi.waitFor's default
1 s after the 200. That response only proves durable admission; dispatch
still reads the ~1 MB row back through the SQLite worker, decodes and
inspects it, so a loaded 2-core shard can deliver after the budget and
fail with an empty update list. Join the ingress monitor's idle
settlement instead, like the sibling spool tests.

* fix(cloud-workers): retain bundles through provisioning (#160730)

Defer node bundle pruning while provisioning has not published its durable bootstrap receipt. Coalesced maintenance snapshots must not acknowledge and remove a newly installed bundle before readiness records ownership.

Add an install, Gateway retention, and worker entry resolution regression that reproduces ENOENT on the previous code. Workspace retention and existing bundle protocol contracts remain unchanged.

* fix(ci): pack hybrid hourly tooling within the row cap

Use the existing hosted retry file packing for hybrid tooling so an
indivisible file can share its spare worker without increasing its price.
The exact hourly hybrid plan drops from 80 total rows to 78, within the
unchanged 77 Node plus two dist limit. GitHub remains at 76 total rows.

Add the hybrid hourly cap regression and retain the GitHub ownership and
cap assertions. Preserve the complete file/config/environment inventory,
release descriptors, timing weights, runner policy, and worker limits.

Validation: 26,658 tooling tests and all test types passed on Linux
Testbox; script types and lint passed there. The connection ended after
those gates, so final root-test lint and format checks passed locally.
The integration file passed all 10 cases locally. P2 autoreview is clean.

* test(gateway): keep d080 scoped to six gateway shards (#160115)

Replay t0001, t0010, t0005, t0009, t0008, and t0007 on current main; preserve Gateway review repairs. Sessions, agents, infra, and cron shards moved to d088.

Retain accepted-input ownership and hook session/account idempotency coverage. Preserve newer worker-placement reconciliation expectations. No production behavior changes.

* fix: streamed replies split Markdown tables that fit one message (#160701)

Related: #160668 (fixes the fitting-table case; renderer-valid continuations for tables longer than `maxChars` are out of scope here, so the issue stays open for that part)

## What Problem This Solves

Fixes: with block streaming on (Discord defaults: 800/1200, paragraph), a reply containing a Markdown table that fits in one chunk gets split mid-table, so the channel renders the first part as a code table and posts the remaining rows as raw `| ... |` Markdown.

## User Impact

Streamed replies with a table that fits the chunk limit now arrive with the whole table rendered consistently. Tables larger than `maxChars` still split at row boundaries.

## Why This Change Was Made

The block chunker already refuses to break inside fenced code, but it had no idea about tables: once the buffer passed `minChars`, the last newline inside a still-streaming table was a valid break. The chunker now treats a table that fits in `maxChars` the way it treats a fence when choosing a break:

- Table ranges come from the same markdown-it table grammar the renderers use (`findMarkdownTableRanges` in markdown-core), so single-dash delimiters, single-column tables, rows without edge pipes, quoted tables and tables inside code fences behave like they render.
- While streaming, a table stays open until a full line follows it, so the unfinished line after it (even a bare `> `) may still become a row. Whether a table fits is decided by its parsed rows only, so an unfinished heading after it can't cost it that protection. A trailing header line waiting for its delimiter row is kept whole too. Other lines with pipes aren't protected, so prose containing `|` still streams at its normal newline breaks.
- If the buffer reaches `maxChars` inside a table that fits, the chunker breaks before the table (below `minChars` if it has to), not inside it.
- A table longer than `maxChars` isn't protected, so it still splits at row boundaries as before. Its headerless continuation still renders raw, as on main.
- If a streaming table that starts the chunk exactly fills `maxChars`, the chunker waits only until the next line starts; the final flush also ends the wait. Once the next line starts, the table is emitted whole at the cap, or split at row boundaries if it has grown. The size check counts row trailing spaces, so no chunk can exceed `maxChars`.

Fences, paragraph and newline breaks outside tables, source-range accounting and the forced final flush are unchanged. `src/auto-reply/chunk.ts` now names `FenceSpan` directly because `findFenceSpanAt` is generic over start/end spans.

Earlier attempts (#66344, #66568, #66557, #73981) were closed unmerged. This one is different:
- It uses the renderer's own parser, not a new regex table detector. That covers the repeated review notes about `-{3,}` delimiters, single-column tables, rows without edge pipes and pipes inside code.
- It keeps a streaming table open until a blank line arrives, not until the current buffer tail, which was the P1 in #66344 and #66568.
- Breaks at the table's own edges stay allowed. Only breaks inside a table that fits are refused.
- There's no import cycle through `chunk.ts`, it targets the current `embedded-agent-block-chunker.ts`, and it doesn't add a second limit model: `maxChars` stays the only cap.

Thanks @giodl73-repo for the fresh reproduction.

## Evidence

**Real Gateway, Discord plugin against a Crabline mock of the Discord API, frozen base `3775359a` vs this branch.** The mock model streamed the issue's reply over OpenAI Responses: intro, a 28-row table (983 chars in total), and a closing line, in 17-char deltas. Discord used its native chunking with `streaming.block.enabled: true`. The captured payloads are the `POST /channels/<dm>/messages` bodies:

- Base, Discord default coalescing: message 0 is the intro plus a code table R01–R11. Message 1 is a code table R12–R24 followed by a raw `| R25 | North | 1124 | 2224 |`. Message 2 is raw rows R26–R28 plus the outro.
- Base, coalescing off: block 1 is a code table R01–R24; block 2, 1.2 s later, is raw R25–R28 plus the outro.
- This branch, both coalescing settings: every row R01–R28 is inside code tables. The table only splits at Discord's own 17-line message cap, which reopens the fence. The outro is a separate block, and there are no raw rows.
- Rerun on head `2b3ec27a` with default coalescing: 3 messages, every row inside code tables, no raw rows.
- Oversized control (60 rows, 1943 chars; also rerun on `2b3ec27a`): both base and this branch split cleanly at a row boundary. The headerless continuation still renders raw on both, which is existing behaviour for tables longer than `maxChars`.

**Focused tests**
- The new `EmbeddedBlockChunker > Markdown tables` cases cover a short intro, a blockquote table, a break before the table when the intro leaves no room, and a table exactly `maxChars` long, each at 1/17/43-char deltas. All four fail on base (they get `822,160`-style splits) and pass here. The oversized-table controls (60 rows, and a table whose trailing spaces push it past the cap, streamed and flushed at once) check that every chunk stays within `maxChars` and splits only at row boundaries. They pass on both base and here. The trailing-space control fails if the size check ignores trailing spaces. Two more cases cover the provisional-span edges. Prose lines containing `|` chunk exactly like the same text without pipes, and a table exactly `maxChars` long is emitted as soon as the next line starts even while whitespace keeps streaming. Both fail on the previous revision of this branch. A further case sends an intro, a table exactly `maxChars` long and a directly following `# heading` in one delta as well as streamed. It yields intro, table, heading, and it failed on the revision before this one. The nine new cases take about 2.3 s in total locally; each 1-char cap-edge case takes about 0.45–0.5 s.
- `embedded-agent-block-chunker`, `block-reply-flushing`, `chunking-fences`, `final-answer-delivery`, `text-end-reconciliation`, `btw`, `auto-reply/chunk`, `markdown-core` `tables` and `fences` all pass.
- A chunker probe over 13 table shapes × 5 delta sizes (no-edge-pipe rows, single column, quoted, fenced, newline/sentence preference, `flushOnParagraph`, `minChars: 1`, two tables, prose with pipes) found no split fitting table, no chunk over `maxChars`, and unchanged source coverage.

Pash/Sarah check: #150407 touched `docs/concepts/streaming.md`, but only the Slack progress section. There's no other overlap, and Slack compact progress is unaffected.

Co-authored-by: Ayaan Zaidi <[email protected]>

* improve(ui): compact Online people activity rows (#160140)

* improve(ui): compact Online people activity rows

Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: steipete <[email protected]>

* improve(ui): compact Online people activity rows

Worked on by:
- @vyctorbrzezowski
- @steipete

Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: 0fdf9bc8-f33a-4798-ab8a-92330e30bae2

* improve(ui): clarify Online presence and workload text

Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: steipete <[email protected]>

* improve(ui): compact Online people activity rows

Worked on by:
- @vyctorbrzezowski
- @steipete

Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: a45e213a-610b-4632-9cb7-58e9586b75f1

* test(ui): wait for roster hydration before sidebar assertions

Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: steipete <[email protected]>

* improve(ui): compact Online people activity rows

Worked on by:
- @vyctorbrzezowski
- @steipete

Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: e35d4d74-12f7-4b00-9fa9-17a2fd9355c0

* test(ui): await split startup request before counting

Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: steipete <[email protected]>

* improve(ui): compact Online people activity rows

Worked on by:
- @vyctorbrzezowski
- @steipete

Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: c33e14bd-a4ce-4715-98cd-922eace93d41

* improve(ui): compact Online people activity rows

Worked on by:
- @vyctorbrzezowski
- @VACInc
- @steipete

Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: VACInc <[email protected]>
Co-authored-by: steipete <[email protected]>
OpenClaw-Publication: b5a493a6-aefd-468b-9f44-a48b89ebff00

* improve(ui): list people with running sessions first in each presence group

* improve(ui): align the Online open-sessions icon with the running spinner

---------

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>
Co-authored-by: steipete <[email protected]>
Co-authored-by: VACInc <[email protected]>
Co-authored-by: vyctorbrzezowski <[email protected]>

* chore(ui): refresh control ui locales (#160753)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* fix: dashboards require approval after native app authentication (#159860)

* fix: dashboards require approval after native app authentication

* fix: register native auth test entries and remove the client type cycle

* fix: recover native dashboard auth on older WebViews and reconnects

* fix: preserve native dashboard auth across current app paths

* fix(ci): use idle hosted tooling workers during overflow

* fix(ci): preserve oversized tooling refusal

* test: load first-hop helpers in the survivor fixture

* test(macos): wire conversation auth fixture and tokenless route

---------

Co-authored-by: Peter Steinberger <[email protected]>

* fix(onboarding): stop claiming inference is ready after Skip for now (#160713)

* fix(onboarding): distinguish local setup from verified inference

Use a provisioning-specific summary title so Skip for now does not claim that inference is ready. Preserve the separate successful verification message and existing skip behavior.

* fix(onboarding): translate the local setup summary title

Co-authored-by: Peter Steinberger <[email protected]>

* feat(plugins): show installed accounts and credential status (#160092)

* prototype(plugins): show per-plugin auth alerts from live MCP checks

Place the shared alert beneath the individual plugin hero on main 018639af3b54. Read a real Notion HTTP OAuth challenge and use a Notion-specific read-only account probe for the local stdio server. Keep the app inventory isolated and the prototype out of production imports.

* prototype(plugins): simplify auth alerts to one line

* feat(plugins): connect detail auth alerts to MCP OAuth

* fix(plugins): align auth alert with the main content column

* feat(plugins): show installed accounts and credential sections

* fix(plugins): use the supported credential projection copy

* feat(plugins): simplify setup states and retain edit actions

* fix(plugins): reuse MCP ownership across inspections

* fix(plugins): keep MCP cache types in the metadata owner

* test(plugins): preserve real install failure classification in fixtures

* fix(ui): let channel setups run back to back (#160705)

* fix(ui): release channel setup sessions before retrying

Close wizard input without aborting committed work, and wait for same-client cancellation settlement before starting a replacement wizard.

Two regressions fail before their respective fixes. Real Gateway and Chromium proof on an isolated Blacksmith Testbox passes 50 cancel/restart cases across Telegram, Discord, Slack, and WhatsApp. Focused controller tests and the campaign-base changed-file gate pass. No local builds or tests; no autoreview per task instructions.

* fix(ui): bound channel wizard cancellation before replacement starts

A replacement wizard start waits for the previous wizard.cancel to settle.
Route that cancel through the same request ceiling as wizard.start so a
stalled Gateway response cannot block later setups indefinitely. Split the
cancellation cases into their own suite with shared fixtures to stay under
the test line cap.

The stalled-cancellation regression times out before the fix and passes
after on a Blacksmith Testbox; the controller suites pass 19/19.

* test(ui): keep channel label fixtures in the controller suite

Co-authored-by: Peter Steinberger <[email protected]>

* perf(cron): narrow delivery-target session reads (#160216)

* perf(cron): narrow delivery-target session reads

* fix(ci): keep plugin retention proof on Node

* fix(slack): progress card links open the visible work session instead of the main session (#160088)

* fix(slack): link finished progress cards to the visible work session

Slack progress cards linked "Open in OpenClaw" to the conversation's main
session even when the turn spawned a visible work session, so operators on
groupScope "main" landed on /chat/<agent> instead of the child doing the work.

Carry the child's canonical URL from its producer: accepted visible spawn
receipts keep sessionUrl and label across the embedded, Codex app-server,
and CLI runners; the settled run reports them once through a new optional
GetReplyOptions.onVisibleWorkSessions before final delivery; Slack's native
task card and Block Kit card render "Open work session" for one child,
labeled links in acceptance order (max five) for several, and keep the
conversation link when none was spawned. No request-time session discovery.

To satisfy the line-cap ratchet, the visible-spawn TypeBox schema moves to
sessions-spawn-visible.schema.ts and the new cases live in sibling test
files with shared test-support fixtures.

* fix(slack): match only generated session-link action IDs

The link-only acknowledgement matched any action_id starting with
openclaw:session_link, so an unrelated button such as openclaw:session_linked
was acknowledged and dropped instead of reaching plugin or agent dispatch.
Accept only the bare ID or a numeric suffix, as the renderer emits.

* test(ci): accept measured command ceilings beside startup health

The PR's 771st database-worker file changes compact placement and exposes a
contradiction: capacity checks accept measured command groups' two-worker
ceiling, but the startup-health sibling check expected no ceiling.

Share the complete measured-generation lookup between both assertions and
recognize the existing command policy without changing planner, packing,
worker, or job-level policies. Move the unchanged tooling placement helpers
to the sibling support module, reducing the test's counted lines from 7536
to 7524.

* fix(ui): keep Inbox empty-state heading larger than description (#160724)

* fix(ui): keep Inbox empty-state heading larger than description

Set both empty-state text sizes explicitly with the existing text-scale tokens.

Co-authored-by: vyctorbrzezowski <[email protected]>

* fix(ui): keep Inbox empty-state heading larger than description

Worked on by:
- @vyctorbrzezowski

Co-authored-by: vyctorbrzezowski <[email protected]>
OpenClaw-Publication: 69c70083-4f66-4e3b-a051-5642b6ead90e

* fix(ui): separate Inbox empty-state icon from its text

Use 16px between the icon and heading, and 4px between the heading and description.

Co-authored-by: vyctorbrzezowski <[email protected]>

---------

Co-authored-by: vyctorbrzezowski <[email protected]>

* feat: speak with Gemini 3.8 Flash TTS (#157331)

Add opt-in Gemini 3.8 Flash and Flash-Lite TTS in the existing Google speech plugin.

Keep the implicit Gemini 3.1 default and older GenerateContent path unchanged. Send Gemini 3.8 transcript text separately from delivery style and structured speaker metadata through stateless Interactions requests, then reuse the existing PCM, WAV, and voice-note outputs.

Preserve the shared Google auth and response helpers, document the model-specific prompting behavior, and cover speaker/no-speaker requests, transcript handling, model selection, and audio output.

Co-authored-by: IWhatsskill <[email protected]>

* fix(gateway): size bootstrap artifact transfer lifetime from its operation window (#160687)

Bootstrap artifact capabilities used a fixed ten-minute backstop while the owning operation could remain authorized for 45-95 minutes. Slow tunnel downloads were cut off mid-body at 600,000 ms, and every retry received an opaque 404.

Derive the transfer lifetime from the existing size-based bootstrap operation owner. Preserve live enrollment and operation revocation, three serial serves, busy exclusivity, and opaque rejection. Cover the streaming deadlines and revocation with fake time, and update the troubleshooting lifetime clause.

* fix(ui): preserve focus when onboarding suggestions arrive (#160677)

Do not move keyboard focus from the composer or another control when an asynchronous recommended option arrives. Preserve initial autofocus and selection within the option card.

Regression cases fail before the fix for focused textareas and buttons. Real isolated Gateway proof retains the full draft and avoids an unintended Talk to my agent handoff. Option-card and custodian-page tests pass, with final option-card checks at 3.01 seconds. Remote changed checks pass against c377d7ca822.

Co-authored-by: Peter Steinberger <[email protected]>

* fix(browser): Windows version probe pushes the env-var count over budget (#160756)

#160432 passed the Windows browser path to its leaf PowerShell child
under a new OPENCLAW_BROWSER_VERSION_PROBE_PATH name the env-var budget
never recorded, so check:env-var-count (and every local check:changed
run touching src, packages, or extensions) fails on main at 477/476.

Reuse the documented OPENCLAW_BROWSER_EXECUTABLE_PATH for that child-only
channel: it holds exactly the browser executable path, the override lives
only in the spawned powershell.exe environment, and the path still
reaches PowerShell as $env: data, never script text.

* fix(e2e): stage candidate providers for legacy-operator survivor lanes

Legacy published baselines (2026.7.35, 2026.6.34) author plugins.allow from
their bundled provider inventory. The candidate's doctor restores those
now-external providers at the exact candidate version, which does not exist
on npm or ClawHub before publication, so the prepublish registry must carry
them. Stage every official provider from the selected candidate's external
provider catalog for legacy-operator-state lanes, loaded once per plan.

* fix(ci): planner ownership census times out on loaded runners (#160586)

* perf(ci): scan wide import-graph frontiers in one pass

The PR-exempt ownership census plans a PR that edits all 906 PR-exempt
test files. Its consumer check sends ~2,700 terms through the wide native
reader path over ~42.5k tracked files. #160531 and #160517 each added a
match-before-parse filter, so that path spawned one reader child to match
every file and a second to re-read and parse the 2,136 matches.
readImportGraphEdges already requests matchingOnly, so drop the extra
pass: one child matches, parses only uncached matches, and still leaves
nonmatches uncached.

Build the Aho-Corasick automaton as a dense Int32Array over the UTF-16
code units the terms use, completing failure rows breadth-first, so the
scan takes one table load per code unit instead of Map lookups and
failure walks. Files with no match skip projecting every requested term.
Matching semantics, reference checks, and ordering are unchanged.

For the real 906-file request, reader output is byte-identical. Reader
CPU fell from ~12.1s over two passes to ~5.9s. Inside the Vitest worker
the census case's reader cost fell from 16.5s to 8.8s, and the case from
39.1s to 30.4s on a comparably loaded host. Timeout, assertions, and file
coverage are unchanged.

* perf(ci): bound term-matcher rows to the ASCII alphabet

Search terms come from tracked paths, which have no character-diversity
bound. One dense column per distinct UTF-16 unit could therefore grow the
transition table by nodes x alphabet on Unicode-heavy frontiers.

Keep dense Int32Array rows only for the ASCII units the terms use, at most
129 columns per node, and route other term units through sparse per-node
edges with the classic failure walk. Size the table once to its node upper
bound so it never reallocates; only rows of real nodes are written. Fold
isReferenceCharacter into an equivalent character-class test, which is
exhaustively equal for every UTF-16 unit and NaN.

The matcher contract fixture gains terms whose failure links cross dense
and sparse edges. A 24,000-case randomized differential against main's
matcher and a String.includes oracle shows no differences, and reader
output for the 906-file census request stays byte-identical.

* fix: disable plugin Connect when gateway OAuth is unavailable (#160761)

* fix(e2e): size upgrade-survivor Gateway readiness for saturated runners

Release Checks 36479006821 saw both the published 2026.9.6 baseline and the
2026.9.7 candidate bind HTTP after 56-58 s and miss the fixed 90 s readiness
window on saturated runners, while the same phases pass in 36-41 s on idle
ones. Raise the default startup budget to 300 s and make the readiness wait
honor the configured budget instead of a hardcoded 360 polls, so the
OPENCLAW_UPGRADE_SURVIVOR_START_BUDGET_SECONDS override actually extends it.

* fix(agents): reuse admitted plugin registry (#160658)

Reuse the plugin registry already admitted for unchanged agent turns instead of acquiring another captured registry. Keep selected-owner coverage, model-catalog scoping, cleanup and retirement with their existing lifecycle owners.

Add real-loader regression coverage for synchronous and inspection reuse, missing owners, catalog isolation and shutdown cleanup. Production LOC remains net zero.

Exact-head CI passed (run 36474645681); fresh autoreview is clean. Installed Linux parent/head evidence removes duplicate registration; full Windows reporter confirmation remains outstanding.

Fixes #160572. Thanks to @ekinnee for the focused repair, @oxen-horse for the report, and @steipete, @RomneyDa and @vincentkoc for the earlier work and evidence in #158369 and #150915.

Co-authored-by: IWhatsskill <[email protected]>
Co-authored-by: Patrick-Erichsen <[email protected]>

* fix: SQLite workers fail when running OpenClaw from source under Bun on Windows (#160310)

* fix(infra): keep Node's tsx loader away from Bun SQLite workers

Running OpenClaw from source under Bun, the SQLite worker broker started
every .ts worker with `--import <tsx/esm file: URL>` and asked it to
register tsx's loader API, regardless of runtime. Bun runs TypeScript
natively and resolves a file: preload by stripping "file://", so on
Windows `file:///C:/.../tsx/dist/esm/index.mjs` became `/C:/...` and the
worker failed with "preload not found" (device-token persistence broke).

runtime-worker-url already owns this decision for other workers. Extract
runtimeNeedsTypeScriptLoader from it, route the broker's worker execArgv
through resolveRuntimeWorkerThreadExecArgv, and only send the source
loader URL when the runtime needs it. Node keeps tsx for source workers.

* test(infra): keep Node's loader for simulated-Bun SQLite workers

bun-sqlite-library.worker.test.ts overrides process.versions.bun to
exercise Bun SQLite library selection, but its SQLite workers are real
Node worker_threads. Now that the broker omits tsx on Bun, those workers
could not load their TypeScript carrier. Mock the runtime-worker-url
loader decisions in this test to answer for a Node executable, which
restores its previous broker behavior.

* fix(http): adapt rejection transport to Bun's Node-compatible closure (#160329)

Detect Bun's native HTTP destroySoon override introduced by upstream #43557
and use the shared ordered half-close path while retaining native response
completion for older Bun transports. Version labels cannot distinguish the
pre-sync and post-sync canaries.

Wait for queued HEAD socket assignment on Bun without finish diagnostics,
then flush through the response callback to avoid Bun's dispatcher socket
cork. Preserve Node's existing ordering and transport operations. Update SDK
rejection documentation; retain all existing wire-level regression cases.

Validation: 31/31 lifecycle tests on Node 24.21.0, stock Bun 1.4.2, pre-sync
and post-sync Bun forks, and the finish-diagnostics build. Core and infra
test typechecks, scoped oxlint, oxfmt, assertion-safety ratchet, and diff
whitespace checks pass. No tests or dependencies added.

* chore(ui): refresh control ui locales (#160771)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* fix(ui): open voice setup before history admission (#160686)

* fix(ui): open voice setup before history admission

The microphone remains enabled for dictation during initial history, but its
short-tap handler returned at the history submission fence before opening
unavailable capability settings. Catalog admission populated a closed picker:
two unavailable DOM rows existed, while accessible Configure menuitems were zero.

Open capability guidance before that fence. Actual Talk creation still waits
for accepted history. Keep the existing unavailable-settings unit case and
all E2E assertions; hold startup and catalog across the target's early click.
Synchronize the four other proven desktop Talk-start races with the existing
waitForTalkReady helper. Leave direct/hold dictation, explicit picker triggers,
mobile Talk and already-synchronized Talk cases unchanged. Document the behavior.

Introducing ordering: 0b52dc467b3e added the history submission fence before
picker opening; d769e31af2b9 now awaits foreground stream admission before
history/startup, exposing that window more often. Read the parent-relative
patches and the 94cbd1335df, 6b9da9dc028, f03d64f6a56 and e256cbef8ae repairs.

Probe evidence on original production 49351700f3f6:
- Hold chat.startup and talk.catalog, click Start voice input, release both,
  and await visible history: unavailable=2, Configure visible=0,
  Configure including hidden=2, picker open=null. The original toBe(2)
  assertion fails with expected +0 to be 2; 24.333s case, 197.12s wall.
- The pending-history unit variant fails with dropdown.open=false; the
  ready-history variant passes. Extend the existing unit rather than adding
  a duplicate case.
- Holding startup across the initial click also leaves talk.client.create
  absent in transcript ordering, composer voice selection and both SDP cases;
  all four controlled probes fail, while the settings-only sibling passes.

Validation:
- Four changed E2E files: three consecutive passes, 16/16 each;
  313.04s, 293.49s and 340.02s command wall including isolated UI builds.
- One-worker dictation before/after: 11/11 each; 234.65s -> 181.54s wall,
  file time 63.604s -> 48.819s, changed case 4.663s -> 3.583s.
- One-worker siblings before/after: 5/5 each; 210.09s -> 162.56s wall.
  File times: ordering 13.101s -> 7.517s, voice selection 20.346s -> 13.522s,
  SDP 13.446s -> 8.394s. These are cost samples, not a speedup claim.
- Existing full browser files exceed 30s because they exercise multiple real
  composer/media flows and screenshots; no E2E cases or timers were added.
- Composer microphone, action and catalog owners: 80/80; 85.96s wall.
- Independent Codex autoreview: scoped-clean through P2.
- pnpm tsgo:ui passed in 85.05s; ui-e2e and ui-chat test graphs passed
  in 106.07s. Targeted oxlint, oxfmt and git diff --check passed.
- Local check-changed --base origin/main passed its guards, formatting,
  graph boundary and i18n, then stopped at inherited TS2741 in
  src/gateway/session-row-projection.config-commits.test.ts:76: the fixture
  omits the required scheduler. That untouched file is already repaired by
  4bd105408cc on main. The same gateway-root typecheck passes in 69.67s on
  untouched origin/main snapshot 28340c41f8b8, materialized under this task's
  artifacts with physically cloned, identical dependencies. No unrelated
  source was changed. The full changed pipeline is not claimed green.

Release-note context: Control UI opens unavailable voice setup when the
microphone is clicked during chat startup, while preserving Talk admission.

* test(ui): rely on Talk readiness without a no-op startup hold

The sibling Talk cases held chat.startup only to release it immediately, which exercises no ordering. waitForTalkReady with the ready-history message is the synchronization, matching the landed e256cbef8ae shape.

* test(agents,channels,cli): remove low-value tests (batch d091) (#160766)

* test(heartbeat): deslop t0067 tests

* test(agents): deslop t0119 tests

* test(telegram): deslop t0118 tests

* test(discord): deslop t0121 tests

* test(agents): deslop t0120 tests

* test(state): deslop t0129 tests

* test(browser): deslop t0128 tests

* test(status): deslop t0112 tests

* test(matrix): deslop t0125 tests

* test(cli): deslop t0082 tests

* test(agents): remove unused compaction fixture exports

* improve: keep Gateway responsive while compaction loads history (#160314)

* perf(agents): hydrate compaction transcripts off thread

* test: prepare managed handoff runtime before case deadline

* test: speed up database preflight lifecycle tests (#160728)

Co-authored-by: Peter Steinberger <[email protected]>

* improve: speed up child-session lists on large rosters (#160404)

* perf(gateway): select child sessions through the parent index

* test: prepare managed handoff runtime before case deadline

* perf(nodes): reuse warm workers so node session turns start as fast as local ones (#160265)

* perf(nodes): reuse warm workers so node turns start as fast as local ones

Retain settled workers for two minutes with at most two idle children per
node. Negotiate node-worker-idle-retention-v1 across Gateway, node, and
bundle; fresh turn admission and credentials remain mandatory. Protect
background work and preserve durable process cleanup and reconciliation.

Expose reclaimable idle capacity to placement admission and the session
picker. Consolidate lifecycle helpers under the supervisor and use the
shared capacity parser. Document the bounded process-count and memory
tradeoff; include lifecycle, negotiation, and picker regression coverage.

fix(nodes): retry failed idle worker cleanup

Rearm the supervisor idle timer after a transient physical cleanup failure while retaining the durable slot and retirement fence. Cover automatic expiry and idle-limit eviction alongside explicit cleanup with a fake clock.

Fold the cancellation forwarding wrapper into its owner and remove the immediately repeated admission abort check. Preserve the existing authority, settlement, and shutdown guards.

fix(nodes): synchronize idle capacity protocol models

Regenerate the Swift worker-slot model for the optional reclaimableIdle field. The schema and named capability contract remain unchanged.

Inline the single-caller prepared workspace custody wrapper in the supervisor and move its four cases to the public launch entry point. Preserve exact acquisition, abort, shutdown, and release ordering while keeping the complete branch production delta negative.

chore(nodes): prune stale worker assertion allowance

Remove the exact one-entry assertion baseline for worker-command.runtime.ts after the unsafe assertion was eliminated. Keep the scanner and all unrelated allowances unchanged.

fix(nodes): keep supervisor dependencies on protocol owners

Import protocol parsers and types directly from their canonical leaf, including the QA fixture, and remove the redundant supervisor-control re-exports. This breaks the dependency cycle without duplicating the wire contract.

Keep the runner cancellation mock and shutdown callback asynchronous with the real Promise<void> contract, including teardown restoration.

fix(nodes): complete asynchronous cleanup contracts

Join cancellation cleanup in callers and tests while preserving parallel shutdown settlement and expected failure identity. Exclude absent cleanup owners before aggregation and keep stale-connection rejection unchanged.

Use immutable worker input, type-only journal imports, stable sorted idle projections, and receiver-bound fault injection. Remove redundant descriptor bookkeeping and finish the test lint cleanup without changing limits or suppressions.

* test(nodes): disambiguate inventory fixtures

* fix(google): keep streaming silence to Gemini 3.8 Live instead of ending the audio stream (#152844)

Keep streaming supplied silent audio frames for Gemini 3.8 Live so server-side VAD can finish the user turn. Retain existing audioStreamEnd behavior for other Google Live models. The policy remains in the Google plugin model contract and shared production bridge.

Closes #152830

Co-authored-by: IWhatsskill <[email protected]>

* fix(agentmail): allow official ClawHub channel to load (#155097)

* fix(agentmail): allow official ClawHub channel to load

* docs(agentmail): keep setup guide vendor-owned

* fix(agentmail): require API key for configured state

* fix(plugin): verify pinned digest before legacy trust

* fix(doctor): update refuses when lint warns about an unusable agent database (#160184)

Fixes `openclaw update` refusing with candidate-doctor-lint / doctor-failed when candidate Doctor lint warns about an unusable agent database, and plain `openclaw doctor --lint --json` printing a Clack warning box before its JSON report.

Doctor notes rendered to process.stdout even when machine-output mode reserved stdout, so runDoctorAgentDatabaseOperation's nonfatal "Doctor warnings" note preceded the lint JSON; in an update rehearsal the private lint worker's first stdout line failed the strict JSON parse and became a core/doctor/lint-inspection error. Notes now follow loggingState.forceConsoleToStderr: terminal-core gains a dependency-free, callback-scoped note output resolver (note-output.ts), and withConsoleLogsRoutedToStderrForJson installs one that reads the live flag at write time. Warnings stay visible on stderr. Candidate-side only; released updaters (verified against the 2026.9.6 driver) accept the clean JSON unchanged.

Proof: json-output-mode regression fails on main and passes; published [email protected] driver x candidate upgrade-survivor cell with an ownership-mismatched secondary agent DB refused before (doctor-failed) and succeeded after with the warning on stderr and the bootstrap import guard passing.

* refactor(gateway): remove duplicate artifact API scenario (#160779)

Co-authored-by: Vincent Koc <[email protected]>

* test(release): repair release-check lanes after settle, Responses body, and scheduler changes

Release-check lanes that were also red on main asserted pre-change contracts:
- subagent settle wording now says "in this batch" (#158642)
- Responses request bodies are pre-encoded bytes (#159574); decode them
  without consuming init instead of requiring string bodies
- direct experience-review calls must bind the session MCP scheduler that
  Gateway startup binds in production (#159481)
- Docker lanes pin the plain PATH `codex` CLI for the Codex harness probe
- Telegram group-policy hot reload must name every array it replaces

Landed directly from #160746 (the native publisher needs a signed merge to
bring that branch current). Focused proof: four QA suites 200/200 in 81 s on
the merged tree; the two E2E files and credentialed live paths were not run.

* fix(active-memory): recalls on claude-cli never reuse the prompt cache (#160768)

Closes #160672

## What Problem This Solves

Fixes: every Active Memory recall on the `claude-cli` runtime writes the whole OpenClaw system prompt into Claude's prompt cache again, even for two recalls of the same agent seconds apart.

## User Impact

User impact: repeated Active Memory recalls of the same agent on `claude-cli` now send a byte-identical system prompt, so the recall's first API call can read it from Claude's cache instead of paying for a 10k+ token cache write each time. Normal `claude-cli` turns are unchanged.

## Why This Change Was Made

Each recall gets a new session key (`<parent>:active-memory:<per-run hash>`) so its session entry stays unique. The Runtime line rendered that key into the system prompt, and Claude CLI receives the whole system prompt as one `appendSystemPrompt`, so the per-run key forced a full cache rewrite. The recall's session key is the only value that differed between two recalls.

One-shot CLI dispatch runs (today only Active Memory recall) now carry the Runtime facts line in their only user turn, through the same `UserPromptSubmit` context Claude CLI already uses for other per-turn facts. This reuses the existing relocatable Runtime region that Chat Completions routes already move into the first user message. The recall model still sees its agent, session, model and channel. Recall session keys, storage and cleanup are unchanged. Normal resumable CLI turns keep the Runtime line in the system prompt.

Thanks @ndakota79 for the detailed cache-counter report and cause analysis.

No overlap with Pash/Sarah changes.

## Evidence

Isolated Gateway (task-owned home, state, config, port) with agents `alpha` and `beta` on `agentRuntime: claude-cli`, Active Memory `mode: always`, and a fake `claude` executable that records the `initialize.appendSystemPrompt` and the `UserPromptSubmit` context it receives. Two `chat.send` turns on `agent:alpha:main` about 60 s apart, then one on `agent:beta:main`.

- Base (`7f0781faa67`): the two alpha recalls' system prompts differ in exactly one line:
  ```
  -Runtime: agent=alpha | session=agent:alpha:main:active-memory:e10ad4c9dc5e | ...
  +Runtime: agent=alpha | session=agent:alpha:main:active-memory:9945b3fb179b | ...
  ```
- Candidate: both alpha recalls send the same system prompt (14,210 bytes, sha256 `f7a45b89f4e84e5f…`). Each recall's user turn carries its own `Runtime: agent=alpha | session=agent:alpha:main:active-memory:<hash> | ... | channel=webchat | ...`. The candidate recall prompt equals the base recall prompt minus the Runtime line.
- Controls: the beta recall still gets its own prompt (its working directory differs) and its own `agent=beta` Runtime facts in the turn. The alpha and beta main (non-recall) turns send the same system prompt and user turn as on base, with the Runtime line still in the system prompt.
- Regression: `src/agents/cli-runner/prepare.test.ts` "keeps per-run helper session identities out of the reusable system prompt" fails on base (system prompts differ) and passes with the fix. `prepare.test.ts` (194), `cli-backend-dispatch.test.ts` (40) and `helpers.system-prompt.test.ts` (15) pass.
- Test cost: the new test runs in 136 ms. `pnpm test src/agents/cli-runner/prepare.test.ts --maxWorkers=1`: 194 passed, 83.3 s wall (Vitest 65.9 s); the same command filtered to the new test: 23.1 s wall (Vitest 5.8 s).

Not verified: a real Claude Code run. The proof checks the bytes OpenClaw sends to the CLI (the `initialize` system prompt and the `UserPromptSubmit` response); it does not show Claude Code's cache counters. The Runtime facts use the same `UserPromptSubmit` additional-context path that already carries `before_prompt_build` hook context (including Active Memory's own recalled context) on `claude-cli` turns.

Co-authored-by: Ayaan Zaidi <[email protected]>

* fix(release): retry the shipped 2026.9.6 Windows updater after its exit-13 liveness defect

Windows packaged upgrade from [email protected] to the 2026.9.7 candidate failed on Node 24 and 26.1.0 because the shipped 9.6 updater exits 13 (unsettled top-level await) before switching the install: it awaits an unreferenced 300 ms cleanup timer after cancelling the retained-runtime progress probe. 02720df7e6c5 fixes it for 2026.9.7+, but cannot repair the executing 9.6 parent, and it is intermittent on native Windows.

Classify exactly that signature (win32, exit 13, the warning, empty stdout, install still on a baseline older than 2026.9.7), retry the same update once as a user would, and only if the retry fails the same way use the existing verified direct candidate install. Both outcomes are recorded as updater fallback evidence; any other failure still fails the lane.

* perf(gateway): reuse pending narration deadlines (#160769)

Keep the existing two-second deadline while replacing pending narration text. Preserve immediate final flush, retractions, and retirement cancellation.

* refactor: remove redundant final-delivery reconciliation (#160764)

* test(e2e): align survivor startup budget expectations

The upgrade-survivor readiness default moved from 90 to 300 seconds, but three existing helper assertions still expected 90. Keep them aligned with the runner; forwarding, overrides, and explicit timeout behavior stay covered.

Reproduced the original failing case on main. Validation: 350 tests across the helper and startup-budget suites passed in 59.06 seconds, plus scoped lint, formatting, and independent review.

* docs(ios): qualify SimSlim scope in setup guide (#160784)

SimSlim also prepares the compare-mode arms of native release qualification, not only the ios-build iPhone test simulator. Follow-up to the ClawSweeper finding on #160607.

* fix(ci): scope untouched line-limit diagnostics in changed checks (#158995)

* test(channels): track the inlined Synology context builder call

#160639 (5ddcce60fabb) inlined resolveSynologyChatInboundRoute, so the
Synology inbound event now calls rt.channel.inbound.buildContext on the
same getSynologyRuntime() handle instead of resolved.rt. The caller
inventory still expected the old text and failed build-artifacts on main
and in 2026.9.7 Full Release Validation (CI 36496123315).

Update only the expected call text; the runtime provenance is unchanged.
Proof: context-builder-callers.test.ts fails 1/6 on main before, passes
6/6 after (3 s, one worker).

* fix(ci): restore Doctor plugin repair lint budget (#160715)

* docs(ci): explain why the plugin retention proof stays on Node

#160216 routed src/plugins/runtime.retention.test.ts to the unit-fast Node
partition after reproducing Bun failures. Record why in the runtime-selection
docs, beside the other GC-sensitive proofs.

Root cause, measured on Blacksmith Testbox tbx_01m3n11pjbtgfgcqv8t1jjbh4n with
pinned Bun 1.4.3-canary.1+6b9148b17 on 300ef3991158: the registry-instances
case kept a released successor registry past eight forced collections in 3/350
and 6/900 runs. In every retained case, a GCDebugging heap snapshot one task
later still held the oldest-registry control marker but no successor, and each
WeakRef then read empty. No retaining path exists, so this is collector
nondeterminism, not a product leak. Node ran 0/600.

The registry-case failure seen on openclaw/openclaw#160136 (CI run
36380533796) is a separate, already-fixed fixture defect. That run merged onto
56376753f832, before c136ec631464 (#160200) moved gc() out of promise
continuations. On Bun, that base fails the registry case 339/350 and 300ef3991158
fails it 0/550.

Routing proof on the same lease: replaying the failing core-unit-fast-2 group
(186 files, bun-compatible policy) exits 0, with all 10 retention cases in the
Node subset. The runtime-inventory guard fails without the routing entry.

* fix(ci): restore frozen planner dependency closure

Include the provider catalog and record helper added by ac59199 in frozen
tooling admission and all affected copied harnesses. Verify their bytes
through the existing closure owner. Keep child evidence isolation covered
with the child-only Codex install helper now that record-shared is common.

The original package failure reproduces locally: 93 failed and 462 passed.
Both added integrity cases fail before the closure repair. Afterward, all
555 package tests and 445 closure sibling tests pass. Independent review
is clean through P2; the full selected static check passes in 1448.701s.

Measured one-worker wall times: package 218.673s and closure siblings
267.426s. The two added integrity cases take 208ms and 202ms. No timeout,
retry, baseline, or integrity check is relaxed.

Related CI: 36494713554 and 36494667447. Separate startup assertion and
Synology caller fixes landed in 8799587 and c4845a6 and are not duplicated.
The separate macOS native reconnect failure in main CI 36492763105 remains
causally unproven and is not claimed fixed here.

* fix(security): parse gpt generation numbers in the audit tier check (#140012)

Fix security audit warnings that incorrectly classify numbered GPT-6 models as below GPT-5. Compare numeric generations in the shared model-hygiene classifier while preserving older-model warnings and Azure's legacy gpt-35-turbo naming contract.

The repair covers primary models, fallbacks, image models, and agent overrides without changing provider routing, authorization, or unknown-name advisory policy. Broader unknown-name behavior remains separate in #160580.

Fixes #139751
Thanks @holny for the fix, regression coverage, and isolated CLI evidence.

Co-authored-by: holny <[email protected]>
Co-authored-by: IWhatsskill <[email protected]>

* refactor(daemon): prune redundant Scheduler test fixtures (#160794)

Co-authored-by: Vincent Koc <[email protected]>

* fix(release): admit the provider catalog read by legacy-operator survivor planning

ac59199ad3fd made docker-e2e-plan.mts import scripts/lib/official-external-provider-catalog.json and scripts/lib/record-shared.mjs and read the candidate's provider catalog through the frozen target reader for legacy-operator-state lanes. Frozen admission hydrates only declared source paths in a no-lazy-fetch checkout, so targeted survivor dispatches failed with 'unable to read selected source (cat-file)', and the admission fixture lacked both tooling imports. Declare both files in the tooling closure and hydrate the candidate catalog for survivor lanes.

* refactor(plugins): deslop plugin runtime fifth pass (#159945)

* refactor(plugins): deslop plugin runtime fifth pass

Consolidate repeated provider, manifest, install, catalog, hook and registration projections under their existing owners. Preserve plugin loading, SDK, caching and source-security contracts.

Preserve provider wizard modelSelection preferences through registration so configured onboarding choices retain their documented model-picker behavior.

* fix(plugins): preserve build and type cleanup contracts

* fix(plugins): retain distinct public credential source types

* fix(plugins): preserve sparse catalog matching and cleanup contracts

* fix(plugins): preserve include ownership during uninstall

* fix(plugins): include request policy in PR wrapper inventory

* chore(ios): simplify store release workflow (#160791)

* perf(subagents): avoid sibling scans for registry patches (#160800)

* fix(channels): isolate Mattermost sends and retain capture owner proof (#150915)

Keep Mattermost inbound monitoring behind account startup rather than the
outbound runtime. Bind the Discord E2E fixture to its selected runtime
artifact and assert exact provider/instance identity through model selection
and rerouting, preserving late-STT, history, and cleanup fences.

The prepared-registry handoff is already on main via #160658; do not
duplicate it or retain the obsolete release-preparation ancestry.

Co-authored-by: roboclaw-bot <[email protected]>
Co-authored-by: steipete <[email protected]>
Co-authored-by: RomneyDa <[email protected]>
Co-authored-by: vincentkoc <[email protected]>

* perf(ui): stop forbidden canvas lease refresh loops (#160808)

Use granted hello scopes to admit canvas lease renewal and stop automatic retries after FORBIDDEN. Preserve read access implied by write/admin scopes and re-evaluate access on reconnect.

* fix(ui): multi-file chat sends fail late when attachments together exceed the frame limit (#160071)

* fix(ui): admit chat attachments against the chat.send frame budget

One chat.send carries every composer attachment base64-encoded in a single
WebSocket frame, but the Control UI only checked each file against the
per-attachment hello-ok.policy.attachments ceilings. Files that fit one at a
time could together exceed the frame, and the send failed late: after the
composer cleared and the whole batch was encoded, with a generic payload
error from the browser transport.

The per-send decoded budget is floor((policy.maxPayload - 256 KiB) * 3/4),
the formula the Gateway already used to clamp its advertised ceiling, now
owned by src/shared/chat-attachment-frame-budget.ts for both sides. Every
composer intake path counts staged attachments plus in-flight reads and
rejects the file that would overflow with the existing "Too large to send"
toast. handleSendChat, outbox delivery, and new-session submission …
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M 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