Repository navigation
refactor(plugins): deslop plugin runtime fifth pass - #159945
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: blocked before merge. Reviewed September 28, 2026, 7:06 PM ET / 23:06 UTC (Revision 12). ClawSweeper reviewWhat this changesThis branch simplifies plugin discovery, setup, install, update, hooks, and provider runtime while preserving provider model-selection choices and avoiding an unintended config write during uninstall. Merge readiness⛔ Blocked before merge - 4 items remain Keep this PR open. Current main still lacks both targeted fixes, and the rebased head preserves the catalog behavior raised in the prior review. A successful published-version upgrade of the integrated candidate remains unrecorded. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw uses plugin manifests, install records, and saved configuration to discover and load plugins. Provider setup writes model choices, while uninstall updates configuration and removes plugin-owned sources. flowchart LR
A[Plugin manifests and installs] --> C[Discovery and validation]
B[Saved configuration] --> C
C --> D[Provider setup]
C --> E[Runtime registry]
D --> F[Model selection]
E --> G[Gateway capabilities]
B --> H[Install and uninstall]
H --> B
Before merge
Agent review detailsSecurityNone. PR surfacePR surface statistics unavailable: the file list is incomplete. Review metricsNone. Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep provider preferences with their registration owner and restrict uninstall writes to fields it changes, with plugin install and update behavior verified against a published installation. Do we have a high-confidence way to reproduce the issue? Yes, at source level: current main drops declared model-selection metadata and adds a channels property during plugin-only uninstall. The branch records before-and-after fixtures; this read-only review did not execute them. Is this the best way to solve the issue? Yes for the two defects: the changes correct values at their producing owners and retain the existing public plugin shapes. No narrower competing implementation was found. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 2594ae8f9870. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (11 earlier review cycles; latest 8 shown)
|
9f6030d to
8cd1d92
Compare
f169670 to
26421f0
Compare
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.
38f4cd1 to
30be704
Compare
* 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
* 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 …
* 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 …
What Problem This Solves
The fifth plugin-runtime cleanup removes remaining duplicate projections, forwarding layers, local type copies, and repeated normalization after the earlier plugin passes.
User Impact
The cleanup preserves plugin loading and lazy boundaries, manifest schemas, install/update behavior, SDK contracts, registry caching, and source-security checks. It fixes registered providers losing their existing model-selection preferences before configure/onboarding consumes them, and uninstall rejecting plugin settings stored in a
$includebecause cleanup invented a rootchannelsproperty. No new configuration, migration, or plugin-author action is required.Why This Change Was Made
The sweep started from a fresh main branch, read recent subtree history and the open fourth pass, then read the full production subtree largest-first. Most remaining complexity protects distinct lifecycle or trust boundaries. This pass combines bounded simplifications under the existing owners.
applyPrimaryModelwith all callers migrated.Fixes found along the way
normalizeRegisteredProviderdiscarded both supportedwizard.modelSelectionbooleans on provider and auth-method metadata. Ollama, GitHub Copilot and NVIDIA already declare this policy. The normalizer now preserves explicit true and false values. The existing registration-boundary fixture covers both levels; retained primary-model regressions moved to the canonical writer.removePluginRuntimePolicyFromConfigadded an ownchannels: undefinedproperty when there was no channel cleanup. The config ownership planner correctly treated that as a root change and refused to flatten plugin settings stored in an include. Uninstall now changes channels only when channel cleanup changed them. The existing source-cleanup fixture retains settings through deletion, then requires their removal; it failed on the original producer and passed 20 consecutive Linux iterations after this repair. Exact source-lock checks and the competing writer assertion remain, and a deliberate missing-lock control still fails them.Evidence
September 28 rebase validation
Validated candidate:
30be7040c445a8951250032bfd98d16a946d236d, based oneadee73a325e05b47d7419c53cb3dba80d417a95; source treeb82a13d7510dd382e7ef06cc76420087ff68ae37. The coordinator-armed auto-merge request was retired before rebasing. No new request has been armed and no merge has been submitted. The exact head was force-pushed with a lease against the previous published SHA. Hosted CI completed with the independently verified inherited failure documented below; the candidate is READY-TO-LAND under the coordinator's pre-existing-failure rule.Kept/dropped hunks: all six non-merge commits survive. Five patches are identical under
git range-diff; the first adapts only catalog/npm-root context. The sole manual conflict retains main's category merging/filtering and priority while inlining the equivalent local lookup. Main's managed npm-project admission, channel activation ownership, and missing-native-namespace readmission remain intact. Bothwizard.modelSelectionand include-owned uninstall fixes, including their regression files, are byte-identical to the original head. No substantive PR hunk was dropped; only old merge topology and stale patch context were retired. The original merge has an empty remerge diff, and main's catalog tests remain unmodified.The existing
plugin-provider-request-policy.tswrapper inventory entry remains necessary because two inventoried metadata normalizers eagerly import it. No additional inventory change was needed. The validated candidate merges cleanly with fresh main0851ea913342e06b5803833742025008fcb23f92.Fresh isolated Codex autoreview of the complete candidate was
scoped-cleanat P0–P2. Separate source audits found no rebase defect or semantic public API change.Accepted pre-existing Doctor lint failure: the coordinator explicitly ruled that the 746 > 700 max-lines failure in
src/commands/doctor/shared/missing-configured-plugin-install.repair.tsis pre-existing lane-scoping fallout. After fetching main ata46cde88785,git diff origin/main -- src/commands/doctor/shared/missing-configured-plugin-install.repair.tswas empty; candidate and main both resolve the file to blob491bcb3e5f66423a388c5d077f44c97b36a207e8. Neither that file nor a baseline was changed. The original full check-changed invocation remains a recorded failure, not a claimed green result; every remaining phase was subsequently executed and passed under this ruling.node scripts/check-changed.mjs --base origin/main --head HEAD --timed: reached the accepted lint error after 1,909 s. Production types, all 26 core test-type shards, formatting, 31 plugin metadata tests, and all three dead-export scans passed before that stop.createChangedCheckPlanfor the unchanged candidate; no remaining command was omitted.node scripts/run-vitest.mjs src/plugins <direct-importer tests, import boundaries, wrapper closures> --reporter=dot: 14,930 passed / 11 skipped, 845 files passed / 1 skipped, across 29 shards. The 2,541 s gate includes selection and the runner's build prerequisites; its native Vitest-wrapper total was 2,513.65 s. Selection included 519 direct-importer tests, all 20 named import-boundary suites, and botheager-import-closure/pr-wrapper-source-closuresuites. No test source, assertions, retries, worker pins, or timeouts were changed.pnpm plugin-sdk:api:diff --base eadee73a325e05b47d7419c53cb3dba80d417a95 --head HEAD: completed in 156 s. Source/declaration inspection confirms zero semantic public API changes: no entrypoints or exports added/removed, 2 equivalent signature-text changes, and 271 reachable-closure changes. The declaration artifact is not textually empty. The signatures reuse the exact activation parameter shape minusautoEnabledReason, and inline session-entry/adopted-source aliases verbatim.pnpm build: passed, 430 s, including SDK exports and runtime/control-plane import-closure checks. Git diff sanity passed.Build/API/initial static proof ran on Blacksmith Testbox
tbx_01m3mprd2mf6yc85be364200hk(workflow). Remaining checks and complete cross-shard/boundary proof ran ontbx_01m3mygc32tw0ccmth8h2ghtqj(workflow). Both invocations verified the same candidate source tree. All owned leases, including the initial queued lease, are stopped. Lease workflows may show cancellation during cleanup; the successful wrapper/gate exits above are the proof.Earlier attempts encountered a queued lease, a task-only selector output-buffer error before tests, and a lease cancellation during prerequisite building. The selector buffer was corrected without changing repository source, and the final complete run above passed. Those earlier attempts are not counted as test proof.
Net diff against the pinned base: 114 files, +1,146 / −2,046, net −900 LOC. Production: net −893; tests/support: net −4; inventory/ratchet: net −3. Earlier evidence below belongs to the historical heads named there.
Exact-head CI — proven inherited fixture failure
CI run 36495228507 attached to exact head
30be7040c445a8951250032bfd98d16a946d236d. Its sole underlying failed job waschecks-node-compact-small-20, in subshardcore-tooling-8-hosted-3:test/scripts/package-source-preflight.test.ts > package source preflight > normalizes release-check package mode and guards the source resolverThe fixture subprocess failed with
ERR_MODULE_NOT_FOUND:workflow/scripts/lib/official-external-provider-catalog.json, imported byworkflow/scripts/lib/docker-e2e-plan.mts; expected exit 0, received 1 (assertion lines 390/576, Node 24.19.0). The workflow ended cancelled after this failure;openclaw/ci-gatereports failure and other selected jobs were cancelled. Cancelled coverage is not claimed as passing. No other underlying failed check or pending check remained when verified.Independent current-run proof: unrelated open PR #157007 was verified at current head
0cca02df4cfdd1f8b325899e5871fa3a04993c90. Its current CI run 36495411146, job 109174529657 fails the identical test, exact subshard, assertion locations, missing file/importer, subprocess status, and Node version. Its compact pack is namedchecks-node-compact-small-28; the actual failing subshard is the same. That run tested merge03c64fa826b0b21eacc171ae8044ccdaf9676926, merging that current PR head into base2594ae8f9870cfc68f5695d8472f50dca743d79c. The unrelated PR changes only launchd/shutdown/runtime-recovery code, associated tests, and gateway docs, with no scripts, test/scripts, or workflow changes.Failure ownership: main commit
ac59199ad3fd438f35315554b5628a6945ca400aadded the provider-catalog import todocker-e2e-plan.mts; that import is absent from this PR's source head and enters CI through main.runReleaseInputCapturecopies a fixed workflow fixture list containing the channel catalog but omitting the provider catalog. The captured workflow importsplan-release-workflow-matrix.mjs, which imports the plan module and fails while linking that missing JSON. This PR changes none of the test, workflow, copied fixture files, or failure import path. Its sole script-tree change,scripts/pr-lib/wrapper-components.txt, is neither copied nor read by this fixture. No main fix, fixture edit, baseline edit, CI rerun, or extra push was made to obtain green.Handoff: READY-TO-LAND at the exact published head above under the coordinator's inherited-failure exception. All requested Testbox proof is complete, all owned leases are stopped, and no auto-merge or merge was submitted.
Independent Codex review completed with no accepted/actionable P0–P2 findings. A rebased-candidate concern about empty provider entries was rejected after checking that the unchanged canonical
copyProviderCatalogResultProjectionalready drops them before normalization. The uninstall repair received a separate clean P0–P2 review. The CI-admission rebase was patch-identical across all five commits. A later conflict resolution retains upstream #160360's writer-admission fixture repair together with this PR's include-settings regression; a fresh independent review of that two-file delta was clean P0–P2. The four cleanup commits remain patch-identical, and the production bug fix is unchanged. The one-line wrapper inventory correction also received a clean P0–P2 review.Published candidate:
daa98e7d729664783f574da49f3dd53db92c92c5, based on162dea17b03112d48c0f5c6f4b73f0da7a025233. Static/build/API and focused rebase proof below ran at452292f7912bb6675da491831e44efd6711036db(base5c467fb8f27c52846ca42f6ec398d610c84c1f9c). The subsequent CI-admission rebase preserved all five patches. The final conflict resolution changes only the uninstall fixture context; this PR’s production patches and SDK surface are unchanged. At26421f07039, the combined uninstall regression failed on the original producer with the exact include-flattening error, passed 20 consecutive Linux iterations (five tests per file, 28–43 s wall), and passed the targetedcheck-changedgate including types, lint, architecture guards, and dead exports. Another 83 tests across five lifecycle/source-capture/filesystem-boundary files passed in three shards. The final commit only adds the shared provider-request helper to the PR wrapper extraction inventory; its verified source tree is2771179f31a1d0fdae2440460dc8faaaebb298e3. Both wrapper closure suites passed on that tree: 19 tests, 46 s for the Vitest shard. Each Testbox invocation verifies the complete materialized source tree.node scripts/check-changed.mjs --base 5c467fb8f27c52846ca42f6ec398d610c84c1f9c --head HEAD --timed: passed, 1,930 s; includes production and all core test-type shards, lint, dead-export scans, and architecture guards.pnpm plugin-sdk:api:diff: passed, 305 s. No public exports added or removed. Two rendered signatures differ through equivalent existing type aliases; this is not a claim of zero declaration-text changes.f7c697a5fd4, cross-shardnode scripts/run-vitest.mjs src/plugins <direct importers and boundary guards> --reporter=dot: 17,597 passed / 11 skipped across 29 shards; 921 files passed / 1 skipped. All 15 import-boundary/guardrail suites were selected. After incorporating upstream loader/model/schema changes, another 724 tests across 63 files and 11 shards passed at452292f7912, including those boundaries.pnpm test:extensions:batch ollama,github-copilot,nvidia,firecrawl,brave,opencode --reporter=dot: 1,262 tests passed at452292f7912, 126 s.pnpm build: passed at452292f7912, 591 s.Measured changed-test file costs (
pnpm test <file> --maxWorkers=1 --reporter=dot): provider validation 2 s / 2 tests; primary model 1 s / 6 tests; auth-choice helpers 15 s / 13 tests; model auth commands 25 s / 62 tests; uninstall source cleanup 17–20 s / 5 tests. Refreshed hosted CI timing is pending for this head.Static/build/API and focused rebase gates ran on Blacksmith Testbox
tbx_01m3ke7q0rjcweqjcjnv078zc7(lease run). Broad/repeated plugin proof ran ontbx_01m3k7brezgcb463rgsd3m8n9x(lease run). The final CI-admission replay ran ontbx_01m3kreyh6q2davfqebqh04740(lease run). Final conflict and wrapper-inventory proof ran on Blacksmith Testboxtbx_01m3kw7bxk2cb5eew70cbn3tj7(lease run). All owned leases are stopped. Lease workflows can finish cancelled during cleanup; the wrapper command results above are the execution evidence.Published upgrade and inherited failures
The first hosted run after publication (36405262883) failed before tests because its Node matrix selected 145 jobs against the unchanged 130-job cap. The branch now incorporates existing main repairs
a08479ace1dand #160324. Atf1696707748on Testbox, the actual workflow manifest against this PR’s 113 changed paths emitted 95 non-dist Node rows, within the same 130-row cap. Seven focused planner/workflow regressions and nine retention tests passed. No capacity limit, timeout, or selected-test inventory was weakened. This is a failing-gate repair integration, with the product proof retained across a patch-identical rebase.The next hosted run at
26421f07039(36415709013) passed admission but finished cancelled after two compact jobs exposed the same branch omission: the extracted PR wrapper lackedsrc/plugins/plugin-provider-request-policy.ts. The final commit adds that required inventory entry. The existingtest/scripts/eager-import-closure.test.tsandtest/scripts/pr-wrapper-source-closure.test.tsboth passed on Testbox (19 tests). This is a repaired branch failure, not an inherited one; cancelled hosted coverage remains unproven by that run. Hosted CI for the final commit is pending.The additional canonical
pnpm test:docker:published-upgrade-survivorcell used the exact published[email protected]baseline, the candidate tarball, and thebasescenario, with no live credentials. Candidate packing passed tarball integrity, inventory, and import-graph validation. The upgrade cell failed during Doctor with missing native-capture README paths for Discord/WhatsApp; it is not passing upgrade proof.The failure is already owned by #160291. The affected native-admission reconciliation loop came from #159650 and is byte-unchanged in this PR. This lane only removes the unused
_captureDirectoryparameter fromfinishand its two arguments; it does not change capture selection, receipt handling, or namespace reconciliation. The owning repair's final-head Linux and published-driver cells were still pending when checked. No duplicate fix is included here. No persistent schema, manifest schema, updater protocol, or install-policy change is introduced by this refactor.One cross-shard attempt timed out in
server-reload-handlers.test.ts(“keeps committed config after a Gmail watcher follow-up fails”). The entire 208-test file passed separately on both clean base and candidate, then the original cross-shard selection passed. A filesystem-watcher startup race remains an unconfirmed hypothesis. No Gateway change, timeout increase, test retry, or weakened assertion was added, and the passing replay is not presented as a fix.The inherited UI line-cap failure was fixed upstream by #160159; the subsequent duplicate extraction was removed by
bb05e779e2a. Both affected UI files match the already-proven original extraction, and the final changed checks and build passed after rebasing. Earlier branch lint errors were corrected and covered by the final gates.Measured diff: 893 net production lines removed (1,021 added / 1,914 removed); tests and test support: 4 net lines removed (122 added / 126 removed). The wrapper extraction inventory adds one required path; the assertion-safety baseline separately shrinks by four lines. This is below the 1,000-line target after implementing the sound opportunities. The complete required >200-line coverage log follows.
Coverage: 224 production files over 200 lines, sorted by recorded census size
Plugin fifth-pass coverage
Production files over 200 lines in the initial census, plus refreshed-main additions, sorted by recorded size. Test and test-support files excluded: contract suites, the contract-test registry, and its build/test metadata inventory are not runtime production owners. Recent merged work and open fourth-pass PR #159600 were read before edits.
src/plugins/hooks.ts— Removed unused terminal callback, precedence wrappers, duplicate sync type aliases, finalization helper, and evaluator cast; preserved detached callback calls, SDK runner methods, and dispatch policies.src/plugins/discovery.ts— Applied: unscoped package-id slicing replaces split/fallback; collapse private bundle result states used only as a boolean. Security and provenance admission unchanged; fourth-pass grouping left untouched.src/plugins/sdk-alias.ts— Applied: one hit/miss diagnostic projection chooses the first existing runtime candidate; preserve ordered lookup, catch diagnostics and lazy SDK authority.src/plugins/clawhub.ts— Archive verification and source trust remain distinct required checks; fourth pass already owns error-table simplification.src/plugins/marketplace.ts— Local/remote policy and path confinement require distinct branches; fourth pass already owns remaining obvious duplicate branches.src/plugins/install-security-scan.runtime.ts— Initial and approved-again policy evaluations now share failure projection; canonical integer parser owns missing/empty env input. Source trust, dependency boundaries, hook ordering, fingerprints and output limits stay identical.src/plugins/hook-types.ts— Public typed hook/registration contracts and handler map; retained SDK shapes and existing hook categorization.src/plugins/provider-runtime.ts— Reused lookup/context contracts, configured-provider owner, and synthetic discovery options; removed loop scaffolding.src/plugins/setup-registry.ts— Applied: stage complete provider/backend entries by normalized key in one Map; preserve registration-time owner capture, failure rollback and successful commit ordering; share manifest acquisition for targeted lookups.src/plugins/plugin-instance.ts— Separate ordinary, retained-consumer, cleanup, and physical-disposal authority is intentional; no safe consolidation found.src/plugins/providers.ts— Owner, CLI fallback, model-pattern, setup trust, and usage/catalog selection policy differ intentionally.src/plugins/doctor-contract-registry.ts— Migration selection, declarations and legacy 2027.1 fallback have explicit contracts; fourth pass owns duplicated registry projections.src/plugins/plugin-source-capture-directory.ts— Native custody, recovery, synchronous exit cleanup, and asynchronous reclamation have distinct contracts; retained security checks.src/plugins/capability-provider-runtime.ts— Shared lazy canonical/alias iteration across active removal and loaded filtering; reused string normalization and removed unnecessary casts/forwarding helper. Canonical-hit short circuit preserved.src/plugins/plugin-metadata-snapshot.ts— Read snapshot freezing/projection/cache lifecycle in full; consolidation would add allocations or alter Map/Set descriptor ordering for little benefit.src/plugins/runtime/runtime-llm.runtime.ts— Authority intersections, prepared model ownership, settlement and diagnostics are required; fourth pass owns the redundant caller/error helpers.src/plugins/channel-presence-policy.ts— No change: trust consolidation occupied by fourth pass; presence, migration and announcement have different consent policies.src/plugins/runtime.ts— Registry publication and retirement checks distinguish live owners, admitted work, and reentrant cleanup; retain them.src/plugins/services.ts— No change: retained service ownership, stop settlement, exporter drain, and startup failure paths each encode distinct lifecycle contracts.src/plugins/update-installed.ts— Source-specific installers already share attempt/consent/transaction owners; remaining branches preserve source and failure policy.src/plugins/conversation-binding.ts— Applied one descriptor map for the three approval buttons; preserved labels, styles, order, and approval IDs.src/plugins/tools.ts— No change: manifest availability, runtime source ownership, factory admission, and per-tool policy gates are separate contracts.src/plugins/manifest-types.ts— Public manifest and diagnostic contracts; fields and migration semantics are distinct and must remain stable.src/plugins/install-record-commit.ts— Lease-bound index/config commit, retained-marker compensation and activation reread are distinct required lifecycle stages; no sound ownership reduction remains.src/plugins/runtime/runtime-agent.ts— Session creation/recovery and rollback fences are required; fourth pass already owns thinking-catalog wrapper cleanup.src/plugins/plugin-package-metadata-capture.ts— Package map preparation and selected-body capture intentionally retain different native-resolution/error policies.src/plugins/plugin-generation-artifact.ts— CHANGE: remove unused native admission finish argument at both callers; source acquisition checks and capture lifetime unchanged.src/plugins/management-service.ts— Installed, pending-review and official rows have different public projections; metadata/cache lifecycle and category batching remain owned here.src/plugins/provider-auth-choice.ts— Migrated primary-model writing to one owner; auth/cache/install lifetimes remain distinct.src/plugins/plugin-instance-value-views.ts— Proxy/realm/iterator admission branches preserve distinct native and retained-authority contracts.src/plugins/registry-runtime.ts— Runtime proxy owns property-specific live authority, session admission and scoped storage; no safe common policy replacement.src/plugins/provider-plugin.types.ts— Public SDK data/callback contract; preserving structural declarations and meaningful contract documentation.src/plugins/loader-runtime-candidate.ts— Setup, catalog, metadata and full registration branches have distinct trust, memory-slot and rollback boundaries.src/plugins/session-catalog-family.ts— Removed a single-use adoption page wrapper, retaining projection order and captured local host fields once for success/failure.src/plugins/compat/registry-records.ts— Declarative shipped compatibility inventory; dates, replacements and surface contracts remain required.src/plugins/status.ts— No change: per-plugin grouping occupied by fourth pass; runtime report disposal and metadata reports deliberately differ.src/plugins/official-external-plugin-catalog-hosted.ts— APPLIED shared rollback comparison, one signed/unsigned fallback decision and constructor parameter property.src/plugins/install-managed-npm.ts— Each retry has a different observed npm defect and recovery contract; staged publication, cancellation and integrity checks must remain ordered.src/plugins/plugin-registry-snapshot.ts— Persisted validation, disabled missing packages, and derived inventory paths require separate checks and recorded diagnostics.src/plugins/manifest-registry-installed.ts— Changed persisted CLI option normalization to the existing manifest object-list owner; retained all channel validation and snapshot selection.src/plugins/uninstall.ts— Managed-path ownership, authority-loss propagation and source deletion fences are substantive; removal planning is already shared.src/plugins/providers.runtime-core.ts— Retained/exact/loaded/setup modes have independent ownership, activation, and completeness contracts.src/plugins/host-hook-runtime.ts— Run-context copy-on-write ownership, terminal expiry and scheduler generation checks each protect distinct lifecycle races.src/plugins/manifest-registry-build.ts— Collision grouping is already owned by fourth-pass PR; remaining code enforces distinct precedence, trust and diagnostic contracts.src/plugins/update-source.ts— APPLIED direct official-install resolution instead of the one-caller id-replacement wrapper; fourth-pass changes kept separate.src/plugins/plugin-cache.ts— Physical cache retirement, retained borrowers, and explicit fact invalidation are separate lifecycle states.src/plugins/management-install.ts— Sources already converge on complete() and canonical persistence; remaining projections capture distinct provenance.src/plugins/plugin-native-admission.ts— CHANGE: remove unused finish capture-directory argument; receipt publication, custody, and namespace checks unchanged.src/plugins/runtime/types-core.ts— Retained the public session JSON value type consumer and SDK extension shape; removing it orphaned the public type export.src/plugins/cli-backend.types.ts— Applied shared no-output watchdog settings type for fresh and resumed CLI execution without changing fields or documentation.src/plugins/management-mutations.ts— Mutation lease, capability review and runtime apply boundaries differ by operation; no safe additional consolidation.src/plugins/bundle-mcp.ts— No change: argument/path reduction occupied by fourth pass; Agent schema admission and lazy data-dir preparation remain separate contracts.src/plugins/manifest-record.ts— Fourth pass owns catalog merge reuse; remaining explicit projections preserve absent fields, icon containment and per-field catalog precedence.src/plugins/official-external-plugin-catalog.ts— Fourth pass owns normalization/lookup simplifications; remaining selection order and source-specific integrity remain required.src/plugins/plugin-peer-link.ts— CHANGE: one package dependency reader owns optional read-error callback policy; retain audit/repair counts, authority checks, and effects.src/plugins/registry-runtime-session-ownership.ts— Checks bind locked sessions, runtime owners and delegated identities across reads and mutations; no safe simplification of authority boundaries.src/plugins/git-install.ts— APPLIED one normalized result projection after GitHub/local/URL admission; preserved accepted syntax and clone/install security.src/plugins/management-catalog.ts— Presentation merge, exact package provenance and metadata-scoped caching already have one owner.src/plugins/management-uninstall.ts— Shared leased removal serves CLI and management; remaining branching preserves their error, confirmation and publication contracts.src/plugins/loader-runtime-core.ts— Retention signatures, prepared-config comparison, staged authority and complete-cache publication are intentional.src/plugins/plugin-source-references.ts— CHANGE: import canonical Babel NodePath/AST types and narrow paths through Babel guards; remove duplicated hand-written visitor interfaces.src/plugins/provider-auth-persistence.ts— Rollback ownership, retained-profile protection, and lock release state cannot be collapsed safely.src/plugins/installed-plugin-index-store-write.ts— Lease-fenced writes, rollback receipts, admission preservation and policy projections have distinct durability contracts.src/plugins/computer-use-contract.ts— No change: explicit wire schemas and discriminated action variants preserve separate node-host contracts.src/plugins/manifest-capability-normalizers.ts— Shared map/list owners already centralize validation; fourth pass owns media-understanding record consolidation.src/plugins/installed-plugin-index-record-reader.ts— Recovery precedence, active ledger identity, exact package ownership and cached snapshot authority each preserve install semantics.src/plugins/install-persistence.ts— Recent source-custody fix owns cleanup after runtime adoption; retained predecessor, enablement, slots and config/index publication have different contracts.src/plugins/manifest-setup-normalizers.ts— Changed CLI command normalization to the existing object-list owner while retaining duplicate filtering and empty-array output.src/plugins/install-shared.ts— Folded private package API compatibility wrapper into sole admission caller; trimmed duplicate fallback cases and unnecessary result reconstruction.src/plugins/update-attempt.ts— Source attempts already share parameters and integrity callback; fourth pass owns wrapper deletions.src/plugins/capability-provider.types.ts— Public provider/worker contracts and documented authority/cleanup shapes; no safe runtime simplification remains.src/plugins/registry-types.ts— Registry contribution and provenance types express distinct public and internal capabilities; no removable runtime code.src/plugins/plugin-sdk-native-resolver.ts— Native host aliases intentionally differ by package/export layout; retained cache and parent-boundary behavior.src/plugins/install-package.ts— Fourth-pass change already carries the archive manifest forward; request projection preserves symbol-carried deferred transaction authority and source-specific policy metadata.src/plugins/loader-shared.ts— Existing canonical record/activation owners; preserve schema shortcut admission and version-fenced rollback.src/plugins/openai-compatible-embedding-provider.ts— No change: fourth-pass overlap; auth destination, secret handling, and lazy SDK edge remain intact.src/plugins/package-entry-resolution.ts— Missing, invalid and trusted-source fallback paths have different shipped install diagnostics/security contracts.src/plugins/update-channel.ts— Channel fallback and source fallback are already canonical; bundled repair preserves explicit source/linked-path intent.src/plugins/plugin-api.types.ts— Public SDK registration surface and migration documentation retained unchanged.src/plugins/current-plugin-metadata-snapshot.ts— No change: publication, immutable runtime scopes and live operation scopes require distinct identity/policy validation.src/plugins/capability-consent.ts— One artifact-review builder now carries identical source/config/history facts to initial and changed-artifact reviews; callback rereads and lease guards unchanged.src/plugins/registry-registrars-operations.ts— CLI, command, service and node registrars have different ownership and failure contracts; no invented generic registrar added.src/plugins/bundle-manifest.ts— No change: format capability simplification occupied by fourth pass; format and path precedence retain shipped contracts.src/plugins/schema-validator.ts— Schema compilation, defaults and source-secret semantics are distinct; fourth pass already owns adjacent simplifications.src/plugins/install-source-plan.ts— Reused already admitted file-spec discriminant and removed redundant hosted version selection; catalog identity/integrity precedence retained.src/plugins/plugin-instance-module-loader.ts— Bundled host, native captured, and Bun/Jiti paths have explicit separate module-identity contracts.src/plugins/payload-verification.ts— Bundle validation consumes the caller's prepared format instead of reclassifying records; reused string normalizer, single checked-id append, removed unused exports field and verbose static-check narration.src/plugins/registry-registrars-host.ts— Host registrations validate external plugin input and enforce per-surface duplicates, JSON schemas and lifecycle ownership.src/plugins/plugin-version-drift.ts— ClawHub resolver now returns target facts and its caller projects the drift entry once; simplified repeated filters while preserving cohort, downgrade, lag and exact-pin contracts.src/plugins/plugin-registration.types.ts— Public SDK callback, approval, node and lifecycle contracts retained unchanged.src/plugins/registry-registrars-tools-hooks.ts— Unified provided/default hook entry projection; preserved identity normalization, provenance, context restoration and dispatch policy.src/plugins/plugin-module-loader-cache.ts— CHANGE: replace handwritten Babel visitor/path types with @babel/traverse and @babel/types type-only imports.src/plugins/cli-registry-loader.ts— No change: preparation identity/revision and deferred command lifetimes must remain separate.src/plugins/http-registry.ts— Handoff, independent holder leases and route replacement authority have distinct ownership contracts.src/plugins/host-hook-state.ts— Persistent queue validation and slot mirror bookkeeping preserve state contracts; fourth pass owns expiry/array-copy simplifications.src/plugins/memory-state.ts— No change: capability precedence, exact runtime adoption, prompt snapshot isolation, and public artifact validation each own real behavior.src/plugins/native-module-require.ts— Native CJS/ESM/Bun adapters and terminal-error retention preserve runtime-specific loader behavior.src/plugins/provider-discovery.runtime.ts— Removed redeclared discovery request contract; entry/runtime coverage and capture lifetimes retained.src/plugins/loader-load-context.ts— Cache identity and source/runtime trust snapshots intentionally carry different inputs; preserve duplicate-sensitive trust merging.src/plugins/registry-lifecycle.ts— Epochs, preparation scopes, retained instances and physical retirement have separate authority lifecycles; keep current checks.src/plugins/command-registration.ts— No change: fourth-pass overlap; retains command validation and authority checks.src/plugins/provider-auth-choices.ts— Fourth-pass projections already shared; ambiguity and declaration/platform policy remain necessary.src/plugins/gateway-startup-plugin-providers.ts— No change: model-ref and embedding-id reductions occupied by fourth pass; memory inheritance/defaults differ from runtime provider selection.src/plugins/gateway-startup-plugin-config.ts— No change: forwarding and type cleanup occupied by fourth pass; slot, dreaming and authored config checks preserve policy precedence.src/plugins/provider-auth-choice-helpers.ts— Removed duplicate default-model writer; primary-model owner now serves all internal callers.src/plugins/plugin-native-namespace.ts— Companion topology, native retained roots, byte identity, and source-boundary checks are intentional.src/plugins/host-hook-scheduled-turns.ts— Removed single-use cron-result forwarding predicates; retained exact pagination snapshot and stale-authority rollback rules.src/plugins/plugin-source-build.ts— Sync Jiti, async CommonJS, and native ESM formats have different interop and evaluation contracts.src/plugins/official-external-plugin-catalog-source.ts— APPLIED one record filter for accepted feed shapes and shared authenticated rollback comparator.src/plugins/install-config.ts— Flattened equivalent admission guards and reused the parsed file-spec result; local recovery authority, owned paths and invalid-config policy remain unchanged.src/plugins/host-hook-cleanup.ts— Persistent slot cleanup, instance retirement and scheduler preservation have distinct authority and ordering contracts.src/plugins/captured-registration.ts— No change: fourth-pass overlap; capture registration shape and special registrar behavior retained.src/plugins/plugin-cache-files.ts— Further cache-size helper cleanup is already owned by fourth pass 2525608a200; do not repeat it.src/plugins/memory-runtime.ts— No change: standalone runtime retirement, proxy receiver binding, and cleanup admission are required contracts.src/plugins/manifest.ts— Parser explicitly preserves missing/empty distinctions and caches admitted bytes; no change to manifest schema or reserved IDs.src/plugins/update-config.ts— Fourth pass owns load-path/id-copy reductions; remaining path/config migration checks have named contracts.src/plugins/loader-records.ts— Share bundle warning projection; preserve manual failure grouping for the existing TypeScript library target.src/plugins/official-external-install-records.ts— APPLIED deletion of hasOfficialNpmIdReplacement forwarding wrapper after checking every caller/barrel; trust evidence checks remain intact.src/plugins/provider-auth-ref.ts— Removed one-use pointer wrapper and repeated internal prompt parameter forwarding.src/plugins/provider-self-hosted-discovery.ts— Untrusted endpoint limits, origin guards, fallback probes, and context precedence are all required.src/plugins/trusted-tool-policy.ts— No change: fourth-pass overlap and fail-closed malformed plugin policy paths retained.src/plugins/registry-registrars-network.ts— HTTP overlap, Gateway dispatch, channel read authority and MCP ownership are distinct security decisions.src/plugins/compat/deprecation-marking.ts— Shipped deprecated surfaces retain their dated contract inventory; cannot remove without completed public migration.src/plugins/host-hooks.ts— Optional string normalization now calls the existing host-hook string normalization owner.src/plugins/provider-auth-helpers.ts— Fourth-pass normalization already canonical; stored credential, alias order, and sibling sync semantics differ.src/plugins/loader-module-runtime.ts— Proxy receiver, descriptor, laziness and source-digest handling are intentional boundary logic.src/plugins/bundled-dir.ts— Source/built root precedence, test override trust and physical containment are meaningful plugin-source boundaries.src/plugins/provider-install-catalog.ts— Installed/official source precedence and workspace trust checks encode different input contracts.src/plugins/install-managed-npm-state.ts— Third pass owns package enumeration; generation selection distinguishes retained installs, updates and platform payload repair, so no safe broader cutover remains.src/plugins/catalog-discovery.ts— Applied: remove a one-use map-lookup forwarding wrapper; catalog provenance and output fields unchanged.src/plugins/registry-registrars-providers.ts— Fourth pass already consolidates provider-like registrars; retained provider and harness ownership checks.src/plugins/manifest-model-suppression.ts— Fourth pass owns canonical provider lookup; remaining suppression caches and native endpoint retirement rules are required.src/plugins/session-catalog.ts— Removed four private one-use/forwarding types without changing public structure; adoption completion now has one call site and stale historical comment removed.src/plugins/installed-plugin-package-ownership.ts— Package, orphan, operator-managed and reload ownership differ by real path and active ledger authority.src/plugins/installed-plugin-index-record-builder.ts— Replaced parallel activation compatibility branches and cast with a typed field/code table and the same sorted output.src/plugins/activation-planner.ts— No change: already descriptor-driven ordered predicates; ID-only query deliberately avoids reason allocations.src/plugins/provider-catalog.ts— Retained Array.some lookup: the existing contract distinguishes sparse holes from explicitly blank templates while preserving priority.src/plugins/install-installed-package.ts— Existing admission and scan/link owners already serve both archive and managed npm install paths; explicit result fields and security/source order are intentional.src/plugins/provider-validation.ts— Shared wizard method validation; preserved supported modelSelection booleans previously dropped at registration.src/plugins/status-snapshot.ts— No change: cold record projection omits runtime fields and must not reuse runtime record constructor with different output shape.src/plugins/status-dependencies-core.ts— No change: dependency lookup, managed host SDK audit and health projection enforce separate installation boundaries.src/plugins/install-runtime-batch.ts— Recent lease, async inventory and source-cleanup patches own this state machine; receipt reconciliation and invoker fences cannot be merged into ordinary bookkeeping.src/plugins/registry-contribution-types.ts— Acyclic public capability contracts retain memory, context-engine and discussion-specific fields and readonly boundaries.src/plugins/gateway-startup-plugin-activation.ts— No change: already shared startup policy predicates; policy exceptions preserve exact consent ordering.src/plugins/provider-self-hosted-setup.ts— Shared setup option contract and internal forwarding; removed unnecessary typed fallback cast.src/plugins/provider-runtime.types.ts— Public SDK data/callback contract; preserving structural declarations and meaningful contract documentation.src/plugins/provider-authentication.types.ts— Public SDK data/callback contract; preserving structural declarations and meaningful contract documentation.src/plugins/capability-summary.ts— Explicit surface groups and grant projections are intentional whitelists; provenance/hash ordering and dangerous-grant filtering retained.src/plugins/plugin-command-runtime.ts— Dispatch identity, registry retirement, and lazy execution revalidation serve distinct authority boundaries.src/plugins/doctor-contract-module.ts— Runtime coercion and public Doctor types retain distinct callback/data contracts; reducing field checks would weaken admission.src/plugins/provider-wizard.ts— Manifest dispatch and runtime wizard precedence differ; selection hook preserves scoped setup ownership.src/plugins/plugin-metadata-lifecycle.ts— Sibling Gateway publication and final-close ordering retain different cache lifetimes; no safe owner removal.src/plugins/plugin-command-execution.ts— CHANGE: infer the LLM completion request from existing contextual runtime type rather than redeclaring two intermediate aliases.src/plugins/provider-auth-availability-core.ts— Retained current main capability-aware credential filtering unchanged; dropped the overlapping cleanup already absorbed by fix(openai): keep SIWC credentials out of unsupported media requests #159920.src/plugins/registry-api.ts— Returned the API factory directly, removing the unnecessary intermediate function binding; lifecycle-scoped handlers retained.src/plugins/provider-hook-runtime-core.ts— Reused configured-provider owner and canonical string normalizer; retained generation handle rules.src/plugins/provider-api-key-auth.ts— Fourth-pass capture/persistence helpers already canonical; prompt and auth modes have distinct contracts.src/plugins/managed-npm-retention.ts— Cleanup differentiates legacy packages, generated projects and keep-files markers; directory enumeration differs from async npm owner in failure semantics, so retained as-is.src/plugins/update-cohort.ts— APPLIED one fresh-cache index reader at the same three existing inventory boundaries.src/plugins/session-entry-slot-keys.ts— Canonical exhaustive reserved key list plus historical/prototype fences; bulk is contract data, not duplication.src/plugins/public-surface-runtime.ts— Preserve captured membership and source/build-family lookup precedence across installed layouts.src/plugins/runtime/index.ts— Removed runtime-events factory layer; compose the same eager event subscriptions directly in the runtime owner.src/plugins/plugin-runtime-artifact-selection.ts— CHANGE: reuse canonical artifact selection input/result types instead of redeclaring internal shapes; selection, laziness, and cache keys unchanged.src/plugins/manifest-tool-availability.ts— Fourth pass owns boolean flow simplification; SecretRef and provider-base-URL guards retain the current availability contract.src/plugins/config-activation-shared.ts— No change: ordered activation precedence and scalar/readonly-array memory-kind checks retain distinct defaults and dual-kind slot behavior.src/plugins/cli-callback-binding.ts— No change: fourth-pass overlap; native Commander/EventEmitter receiver and descriptor preservation remain necessary.src/plugins/host-hook-attachments.ts— Path/MIME/size and bundled-origin checks are required; shared HTML helper escapes more characters and is not an exact substitute.src/plugins/official-external-plugin-catalog.types.ts— Canonical catalog wire/store/result contracts; no duplicate implementation to remove.src/plugins/web-provider-runtime-shared.ts— Applied direct prepared-context forwarding to the existing load-options projection owner.src/plugins/manifest-model-provider-normalizers.ts— Coordinated with plugin_core_sweep to move provider request normalization into one narrow shared owner without broadening metadata imports.src/plugins/install-npm.ts— Metadata compatibility, integrity acknowledgement, policy preflight and deferred managed publication have necessary separate boundaries; duplicate-looking field projection preserves source intent.src/plugins/install-channel-specs.ts— Source fallback and channel fallback have distinct availability contracts; beta, stable and extended-stable target selection already share the appropriate owners.src/plugins/bundled-plugin-scan.ts— Replaced a string-list forwarding function with an alias to its existing canonical normalizer; artifact search order retained.src/plugins/plugin-native-module-loader.ts— Bun module conditions and demand capture retain different import/require/SDK identities.src/plugins/provider-discovery.ts— Unified single-provider aliases and multi-provider entries under one safe-key projection loop.src/plugins/official-external-plugin-catalog-snapshot-store.kernel.ts— APPLIED shared rollback comparison; transaction reread, payload equality and stored schema unchanged.src/plugins/official-external-plugin-catalog-envelope.ts— Signature threshold, legacy snapshot and authenticated-payload validation have separate trust contracts.src/plugins/plugin-registry-contributions.ts— Fourth pass already owns trivial normalization and contract-value wrappers; retained selection flow.src/plugins/config-state.ts— Applied: derive effective-enable parameter type from activation owner with the same auto-reason omission; no runtime changes.src/plugins/capability-provider-acquisition.ts— Cleanup throws its final error directly instead of manufacturing another Result; error aggregation, cause, release ordering retained.src/plugins/plugin-source-capture-report.ts— Legacy versus modern native reclamation use different custody and maintenance contracts.src/plugins/installed-plugin-index.ts— Lazy per-operation enablement retains first-duplicate semantics and separates provider compatibility from ordinary policy.src/plugins/install-paths.ts— Scoped directory names, generation hashes, realpath shape checks and legacy unscoped identity compatibility are named install/security contracts.src/plugins/runtime/runtime-llm-isolated.ts— Validation, abort precedence and authority remapping are required; fourth pass owns error-map consolidation.src/plugins/gateway-startup-plugin-plan.ts— No change: prepared manifest/provider facts consumed once; bundled/source-external channel startup policies remain distinct.src/plugins/runtime/runtime-channel.ts— Facade preserves plugin-safe projections and lazy turn dispatch; fourth pass owns the redundant return cast.src/plugins/install-config-mutation.ts— Top-level include admission, snapshot target/hash ownership, nested includes and shared plugin/hook targets are distinct conflict checks.src/plugins/loader-provenance.ts— Path trust and operator diagnostic remediation differ by provenance; no safe structural consolidation.src/plugins/loader-channel-runtime.ts— Preserve setup registration receiver object and staged rollback; discarded a simplification that could change callback this.src/plugins/installed-plugin-index-store.ts— Persisted schema admission, legacy record restoration and diagnostic severity round-trip remain unchanged.src/plugins/registry-control-ui.ts— External descriptor validation protects host/path/method/scopes, native placement and slug ownership; no weakening.src/plugins/runtime/types.ts— Public runtime contracts retain exact optionality and shipped compatibility surfaces.src/plugins/provider-auth-input.ts— Fourth-pass option/env/prompt dispatch already shared; lazy secret resolution is required.src/plugins/manifest-themes.ts— Bounded theme/artwork validation and duplicate-key AST detection are distinct schema and source constraints.src/plugins/computer-use-registration.ts— No change: fourth-pass overlap; physical execution close and watcher settlement remain owned.src/plugins/bundled-discovery-state.ts— Process generation, pinned snapshots and prepared machine-state facts have distinct lifetime contracts.src/plugins/provider-model-routes.ts— Prepared provider/config facts and authored override projection already have one owner.src/plugins/provider-replay-helpers.ts— Deprecated SDK family helpers encode separate protocol replay contracts.src/plugins/legacy-session-surfaces.ts— Explicit shipped Doctor migration contract; missing setup entry and failed import remain separate diagnostics.src/plugins/compat/plugin-sdk-subpath-records.ts— Public subpath tombstones and dated pending removals retain different migration metadata.src/plugins/loader-runtime-load.ts— Infer immutable native bindings from canonical factories instead of redeclaring their types.src/plugins/install-npm-metadata.ts— Unified metadata fetch/result projection for stable and prerelease-only trusted fallback; warning text, sorting, policy selection and metadata failure remain identical.src/plugins/web-provider-public-artifacts.ts— Applied shared candidate parameter type, removed redundant map prefilter, and reused existing resolution inputs.src/plugins/plugin-native-admission-state.ts— Publication settlement and retained namespace release remain tied to their current admission owner.src/plugins/uninstall-package-config.ts— Fixed phantom channels: undefined insertion during plugin-only uninstall; preserve unchanged channels so the real include owner accepts the mutation. Retained path equality and actual channel removal semantics.src/plugins/plugin-metadata-provider-facts.ts— CHANGE: delegate provider request normalization to narrow shared owner; preserve malformed-record skip, key normalization, and empty-map values.src/plugins/manifest-metadata-scan.ts— Bounded metadata reads, source-rank dedupe and persisted-root fallback retain diagnostic and precedence semantics.src/plugins/tool-factory-runtime.ts— No change: proxy descriptor preservation, callback fencing, and factory timing diagnostics have separate obligations.src/plugins/config-normalization-shared.ts— No change: canonical normalizer already shares model and hook families; raw config normalization guards are required.src/plugins/plugin-instance-argument-views.ts— Data-only restoration preserves opaque handle/callback identity and collection callback positions.src/plugins/plugin-command.types.ts— CHANGE: remove decorative/narrating blocks and stale command-definition comment over prompt surface kinds; public signatures unchanged.src/plugins/install-transaction.ts— Symbols carry install ownership across adapters; refusal stickiness, exactly-once settlement and retryable rollback are required invariants.src/plugins/registry-registration-resources.ts— Registration work, rollback and final physical claims retain precise disposal ordering and retained-error settlement.src/plugins/plugin-lifecycle-lease.ts— Nested refusal latch, database lease identity, effect gates, and final cleanup settlement remain unchanged.src/plugins/legacy-sdk-resource-host.ts— Bare-result SDK compatibility owns retained release/drain failures; no safe lifecycle consolidation.src/plugins/plugin-runtime-artifact-identity.ts— Bounded hash scans and before/after file identities are explicit safety contracts.src/plugins/runtime/gateway-request-scope.ts— Scope composition deliberately retains/drops separate registry, identity and Gateway authority facts.src/plugins/slots.ts— No change: duplicate slot reverse-lookup simplification is occupied by fourth pass.src/plugins/loader-channel-setup.ts— Existing light/runtime export adapters retain different contracts; fourth pass owns obvious common projection.src/plugins/provider-login-options.ts— Choice eligibility, channel routing, ambiguity, and group order are separate required decisions.src/plugins/session-catalog-history-import.ts— Recent fourth-pass cleanup already owns bounded history import; byte accounting, ordering, idempotency, and transaction guard are required.src/plugins/dashboard-capabilities.ts— Read/action registrations differ in schema validation and scopes; atomic publication and bounded prompt projection already local owners.src/plugins/gateway-startup-plugin-metadata.ts— Raw/effective config scopes, owner completeness, allow/deny and disabled entries, and required harness activation have distinct contracts; fourth-pass loops already share their canonical owners. Added during refreshed-main coverage verification.src/plugins/runtime/load-context.ts— Prepared registration/activation fingerprints, immutable-value reuse and explicit load projection each preserve a named owner boundary.