Repository navigation
perf(gateway): stream append deltas to every client - #158587
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 27, 2026, 1:26 AM ET / 05:26 UTC (Revision 26). ClawSweeper reviewWhat this changesThe Gateway sends append deltas after recipient snapshots, while browser, SDK, terminal, ACP, Android, Apple, and Linux clients reconstruct live replies. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readiness⛔ Blocked before merge - 9 items remain This PR remains useful because current main still sends cumulative chat snapshots. It is not merge-ready: the proposed v4 wire change can silently break older raw clients, and active SDK replay can retain excessive cumulative text. Priority: P2 Review scores
Verification
How this fits togetherThe Gateway turns agent output into WebSocket chat and assistant events for connected clients. Its recipient delivery and each client's replay state determine the text shown during streaming and after reconnect. flowchart LR
A[Agent output] --> B[Gateway text projection]
B --> C{Recipient has baseline?}
C -->|No| D[Full snapshot]
C -->|Yes| E[Append delta]
D --> F[Client replay]
E --> F
F --> G[Chat display]
Decision needed
Why: The PR explicitly proposes an unnegotiated change to a documented public wire contract, so the compatibility choice requires maintainer intent. Before merge
Findings
Agent review detailsSecurityNone. PR surfacePR surface statistics unavailable: the file list is incomplete. Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Keep cumulative v4 delivery as the default, negotiate append delivery for capable clients, compact active SDK replay around one live baseline, and validate the changed native receive paths on Android and Linux. Do we have a high-confidence way to reproduce the issue? Yes, source gives high-confidence checks: a v4 raw client that reads cumulative message loses the second append frame, and more than 100 active long SDK runs expose the retention path. This read-only review did not execute them. Is this the best way to solve the issue? No. Append delivery addresses the measured traffic, but negotiating it and compacting active replay are safer than silently changing the existing v4 contract. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 13829435c8a8. 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 (25 earlier review cycles; latest 8 shown)
|
|
Native registration invalidates registry discovery at both admission and settlement. Concurrent history reads and Talk transcript broadcasts could surface AgentDatabaseRegistryChangedError during initial source discovery or final revalidation, including the unrelated CI failures in openclaw#158587 and openclaw#159102. Retry only the registry metadata read up to twice, retaining the original state admission and physical source bindings. Keep topology revalidation, revocation, and worker settlement checks; never replay history or writes. Schemas, permissions, retention, and update behavior stay unchanged. Extend the real history-reader fixture to force registration across both read phases. All four cases fail on the original code and pass after the fix. The focused Talk, history, broadcast, and source suites pass 56 tests. Independent review through P2 is clean.
The projection fixture launched collectors with Promise.all but assumed input order was admission order and Collector A had occupied capacity before B's creation event. Asynchronous requester lookup can reverse admission, while preparation before a full slot correctly projects as running rather than queued. Create the fixture's collectors sequentially and join dispatch with an explicit completion signal. Preserve the exact list, history, lifecycle, rename, and cancellation assertions. Extend the existing rename regression to reverse overlapping requester reads; it fails on the original fixture with the CI wrong-run-ID assertion. Controlled preparation also reproduced the original creation-event status failure. Production behavior is unchanged. Validation: all 34 tests in the file, 563 sibling session-utils/Gateway tests, changed checks with no touched-file lint/type warnings, and independent review through P2 passed. One-worker full-file wall time was 143.66s on the loaded local host. Repeated file and original CI shard verification continues before publication. Addresses unrelated CI failures observed in openclaw#159103 and openclaw#158587.
The first real queue operation cold-starts the shared-state worker and its lazy runtime. The acknowledgement-order test counted that initialization against vi.waitFor's one-second default; a cold standalone run reproduced zero acknowledgements after 1,007 ms, matching the failure on openclaw#158587. Await the acknowledgement callback's own readiness signal, racing receive completion so admission errors still fail promptly. Preserve exact call counts and acknowledgement-before-dispatch ordering. Always release the gate and join receive before stopping ingress on assertion failure. No runtime behavior, timeout, or retry policy changes. Scanned extension ingress/setup fixtures: other worker-backed waits follow awaited admission or seed writes; Google Chat's cold-import setup fix is already on main. No additional same-cause changes were needed. Validation: 20 cold-process/cache runs, 19 tests each (42-100 seconds wall per run, including transforms and worker preparation); the original 174-file Slack shard in its recorded order with two workers (2,844 tests); 25 focused sibling/history-policy tests; check:changed including extension test types and lint without warnings; scoped Codex review through P2. The unmodified-main ordered replay also exposed a separate history-policy flake: mediaFetchMock expected 5 calls and received 7. Its focused replay passed. Extra media refresh fallbacks are plausible but the original log lacks download errors, so no safe fix is established and no assertion was weakened. Passing replays do not establish a fix for that separate failure.
…57713) * feat(channels): configure mentions in bot-created threads Add requireMentionInBotThreads across supported channel plugins. Operators can accept unmentioned follow-ups only in threads created by the receiving bot, while preserving existing defaults, access restrictions, and session-binding activation. Document Discord and Slack setup, transport prerequisites, supported scopes, and bounded ownership evidence. Add native inbound regressions for ownership, strict activation, authorization, cache lifecycle, and bound topics. * fix(channels): preserve bot-thread identity and API contracts Retain the shipped Discord boolean runtime API and its precomputed ownership semantics. Revalidate ClickClack bot, workspace, and server identity after awaited admission and before dispatch. Enforce explicit Mattermost bot-thread mentions even when no detector is available. Add dispatch-boundary identity and no-detector regressions, with the existing Discord runtime API guard unchanged. Each reported defect fails before the repair and passes afterward. * test(msteams): complete runtime mocks for sent-message tracking * fix(clickclack): recheck bot-thread mention policy before dispatch * test(discord): keep mention contracts in the allow-list suite * fix(channels): revalidate sender access and inherit thread policy * fix(tlon): recheck thread mention policy before dispatch Retain raw mention and verified root facts, then synchronously recheck current settings before dispatch and direct summary replies. Reproduce three late-revocation effects with allowed controls. Complete ClickClack direct-model fixture account publication and authored workspace identity after current-admission checks exposed its missing setup. * test(talk): join transcript publications between fixture phases Reuse the focused fixture repair from openclaw#158587 (6425f59). Join owned broadcast reads before delegation admission and database close/reopen, and verify that the spoken message was published. Registry guards and production behavior are unchanged. * fix(tlon): revalidate channel sender access before dispatch Use one current admission resolver for sender and mention rules, refresh ingress policy when invoked, and preserve owner and explicit approval behavior. Deferred-ingress regressions cover channel restriction and sender removal with allowed controls. * fix(buzz): cancel relay queries while waiting for a slot Remove aborted queued lookups before they acquire a query slot and retain FIFO capacity ownership for live waiters. Clarify the existing admission-only policy contract: accepted turns retain their settings, while account, run, and transport liveness remain with their owners.
Adopt main roster admission and fixture repairs while preserving both sides of the in-flight Swift snapshot merge. Clear warnings in the touched session-action fixture without changing assertions.
* perf(gateway): stream append deltas across gateway clients * fix(sdk): retire streaming baselines across reconnects * test(gateway): remove unused wire fixture type import * fix(gateway): preserve streaming continuity through settlement and replay * fix(sdk): bind replay updates to the captured run identity * fix(gateway): recover text baselines after source event gaps * fix(gateway): preserve queued text across source discontinuities * fix(streaming): preserve completion and retire unsubscribed baselines * fix(streaming): preserve native terminal delivery across gaps * test(ui): pin reconnect jitter in chat delivery fixtures * fix(gateway): preserve nonblocking node fanout contracts * fix(streaming): reconcile runs and preserve client baselines * fix(linux): preserve quick chat output after startup status * fix(sdk): bind unsubscribe cleanup to acknowledged session identity * fix(streaming): preserve agent ownership during unsubscribe * fix(ui): retire globally aliased stream baselines * fix(streaming): preserve full replies through recovery and buffering * style(android): align streaming text expression with ktlint * style(android): format streaming regression tests * test(ui): supply connection-owned chat snapshots in fixtures * test(gateway): assert terminal delivery settlement metadata * test(streaming): migrate remaining wire event fixtures and readers * chore: remove retired client fixture assumptions and macOS wrappers * test(acp): declare authoritative empty replies in recovery fixtures * refactor(chat): match pending scroll command identity explicitly * test: split streaming fixtures for line-count ratchet * test(talk): join transcript publications between fixture phases * test(slack): adopt durable acknowledgement readiness fix Adopt main aa5473d. Await the acknowledgement-start signal and join pending receive work before fixture shutdown while preserving ACK-before-dispatch assertions.
What Problem This Solves
Concurrent chat streams repeatedly serialize the entire accumulated answer, making wire traffic grow quadratically with reply length.
User Impact
Paced chat and assistant events send append deltas, with complete snapshots for first delivery, attachment/reconnect, missed publications, rewrites, item or canvas/media changes, and terminal settlement. Control UI, SDK, gateway-client, TUI, ACP, Swift/Kotlin native transports, and Linux Quick Chat migrate together.
This intentionally changes wire semantics for all clients without negotiation. Third-party raw clients must honor optional snapshots, snapshot precedence, and append deltas. Schema and protocol version are unchanged. Internal observers retain complete payloads; SDK raw events remain actual wire events. Custom SDK transports must preserve acknowledged event ordering or end retired streams. ACP's existing downstream append-only protocol still cannot retract already emitted output.
Why This Change Was Made
Connection delivery owners track recipient receipts and coalesce append deltas while retaining a recovery snapshot. Node delivery selects its representation after pairing authorization and commits receipts after successful sends. Accepted terminal barriers preserve queued tails. Browser and native owners reconstruct before local fanout; SDK replay owns retained text and lifetime cleanup.
The branch merges main at
4f62a433acb7, including the incremental display projection. Chat consumeschatRunState.takeBufferDelta()from that owner; the retiredresolveBroadcastDelta/deltaLastBroadcastTextpath is removed.First adversarial review corrections (reviewed head
2414c4bc4c36):Xwith stale accumulated text.Second adversarial review corrections (reviewed head
49b11fadabc3):Third adversarial review corrections (reviewed head
0fc510457645):gateway-client; the duplicate TUI module is deleted. Adapter-specific reconnect, listener fanout, and unsubscribe ownership stay with their existing adapters. This extraction removes 20 net production lines.Evidence
Current head: canonical roster repair and fresh CI
Published head
7ee18d6f1f4c601f4950a2be4bb0b806cd247873merges mainfb39d6afef105bae1c3662d8e1589cce00328cb7without rebase or force-push. Squash auto-merge remains armed.The preceding complete run failed UI shards 1/3 and 3/3 and Node large-16 on normalized roster identity and optional-field fixture assertions. Its CI merge tree was
cdc50b88b1f27ead6311d5986765f8df69dd006d. The same failures occurred on scheduled main, UI shard 1, head6700317c46c6. Local unchanged reproduction yielded 12 failures across roster/hydration/chat and eight sidebar failures. The iPad job was cancelled by fail-fast; no repeated simulator boot failure was observed.Adopted the landed owner repair
634a626f5c070bc5cfdae75367566ed0a9748d2f(#159394): publish canonical row identities during admission, retain admitted-result identity after rejected events/failed reads, and align raw-response/optional-field fixtures with the normalized contract. An overlapping local candidate was discarded in favor of this canonical repair. The merged source passed 1,591 tests across 79 session/chat/sidebar files in 55.59 seconds, with one worker. UI production and test typing, scoped lint, and formatting passed.The sole streaming source overlap is Swift in-flight snapshot narration replay; both parents' behavior is retained. 64 shared Swift stream/session-action tests passed (2.31 seconds after compilation). The touched session-action fixture explicitly discards its joined task's unused return value and groups unchanged helpers in an extension, clearing compiler and SwiftLint warnings without suppressions or changed assertions. SwiftFormat, strict scoped SwiftLint, size ratchets, diff checks, and fresh independent integration review through P2 passed. Unchanged sign-in fixtures emitted existing compiler warnings on the first full build; no touched-file warning remains.
Focused wire-delta, terminal recovery, ACP, SDK, TUI, and Gateway delivery suites passed 143 tests across 12 files in 175.60 seconds. Earlier proof remains applicable to unchanged contracts.
Exact-head CI run
36296741570passed, including Windows Node shard 3, all three UI unit shards, both iPhone/iPad screenshot jobs, their same-attempt evidence reducer, and iOS smoke. No single-job retry was requested for this run. GitHub squash-merged this PR at2f58eadd0558f102071e14555a847e746c09902don September 27 at 05:53:40 UTC; ancestry inorigin/mainwas independently verified.Previous main integrations
Head
c40e986666c1abcc663cf2faa020a21a256729f8integrated main's Gateway cleanup (037feb16edd5, #159177), preserving lazy wire payloads/receipts while removing a redundant return-type declaration. Its node-subscription/runtime proof passed 25 tests in 56.08 seconds. Earlier head2842f13ab397064f26d87410a1c94c06c68fc158adopted main's collector FIFO (5cf18de3d103a6bea797cbfe52fa8f51dce8c596), wrapper inventory (0a9fa7dafabe), and Slack ACK (02fd486956c72604877bdfc584e705d12634e175) repairs. It retained the pre-aborted collector guard, cancellation/second-launch coverage, and Talk publication joins with main's teardown; focused proof passed 231 tests across eight files in 358.92 seconds. Core/test typing, lint, ratchets, and independent review passed on both integrations. Reviewed history and armed auto-merge were preserved.Previous head: Slack acknowledgement fixture repair
Published head
e5f4442f53f251c55b5758d68001f3e09767f4cdadopts main's02fd486956c72604877bdfc584e705d12634e175. The preceding head failed extension bundle 47 inSlack durable ingress > acknowledges a durable event before dispatch starts, atextensions/slack/src/monitor/ingress.test.ts:302. ACK was still uncalled whenvi.waitForexhausted its default one-second polling deadline (1,008 ms). This old fixture predates the shared-state worker implementation and is unrelated to wire-delta behavior.The unchanged exact CI merge tree
30cef099feeadd7eeb542b53f5315d33bac9e463passed the original 174-file / 2,844-test Slack workload in 175.50 seconds; that replay is not a fix. An isolated unmodified run naturally reproduced the failure at 1,011 ms, followed bySTATE_DATABASE_READ_ADMISSION_INVALIDATED: the failed assertion left receive work pending while fixture teardown closed its database. The test now observes ACK's own start signal, preserves exact call-count and ACK-before-dispatch assertions, and always releases the gate, joins receive, and stops ingress before database teardown. Production code and runtime/suite timeouts are unchanged.A local equivalent repair passed 20 standalone runs of all 19 cases (one source-equivalent PR-head run plus 19 exact-merge-tree runs), followed by three original-workload replays, each 174 files / 2,844 tests in 143.27, 144.99, and 186.47 seconds. Main then supplied the same repair using the existing deferred helper for both signals; that canonical version was adopted exactly and passed 19/19 cases with one worker, in 222.06 seconds wrapper wall, dominated by cold worker build/transform work (85% of the Vitest duration); the ACK-order case took 2,685 ms. The unchanged suite exercises real durable queue admission, replay, and cleanup. Extension-test typing, scoped lint/formatting, ratchets, and fresh independent review are clean.
The iPad job was cancelled by Node fail-fast again; it did not report a repeated boot failure. No single-job retry was requested. Squash auto-merge remains armed and the latest full-head run remains the landing gate.
Previous head: trusted-wrapper dependency inventory
Published head
13957377887184dc600be39d9273856d960e6fabmerges main50dc09d95a6de7f5b958ca31a24dd19fa18af230and repairs the missing runtime extraction entry. The preceding head's small Node job 42 failedtest/scripts/eager-import-closure.test.tsin “keeps the PR wrapper inventory closed over runtime imports” and “resolves wrapper package exports and workspace aliases from the extracted dependency context”. Main's945ec9ff561180bf509d6f75181ab078c10a8078(#159155) added the eagerruntime-session-changesimport, but omitted its source fromscripts/pr-lib/wrapper-components.txt. The isolated wrapper consequently could not resolve that import. Both failures reproduced locally in 18.95 seconds; the fix adds that existing runtime file to the extraction inventory without changing the assertions.The merge retains this PR's extracted live-text queue owner and main's
SessionEventProjectiondelivery callback. Main's ordinary collector fixture now waits for occupied capacity before creating the queued sibling; the dedicated concurrent FIFO regression and producer repair remain intact. The final integration passed 196 tests across seven files in 168.27 seconds, including the complete 16-case wrapper suite and the Gateway broadcast, serialization, transport, subscription, and queued-collector suites. Core and Gateway-test typing, scoped type-aware lint, formatting, line/annotation ratchets, and fresh independent review are clean. Swift's overlapping identity comparison was already identical on both sides.On the preceding fresh run, Windows Node shard 3 and Android Play tests passed. The iPad job was cancelled by Node fail-fast, not reported as another boot failure. No single-job retry was requested. Squash auto-merge remains armed; the new exact-head CI is the remaining gate. A repeated pre-test iPad boot failure will be reported without a retry.
Previous head: collector FIFO repair after main integration
The run for
6425f5926afc36b45e000c1a8034e87f54ffeb74failed checks-node-compact-large-5 inqueued collector session projection > preserves an operator rename when a queued collector reaches agent dispatch. The failure occurs before rename handling:src/gateway/session-utils.queued-collector.test-support.ts:222expected the first accepted run to launch, but observed a different run UUID.CI tested merge tree
4321dde10f2ce3bd13ac12b558d7789f58bddfa0, which includes main'sb2265de26980f16451d847d3442d552f10244e85(#159135). That change moved requester lookup to a database worker but awaited it before collector FIFO reservation. Concurrent requests could therefore reserve in read-completion order. This is an imported product race, unrelated to streaming wire encoding. The initial PR-head replay omitted that newer owner path and is not evidence against it. The corrected, unmodified merge-tree workload passed 327 tests across 18 files in 294.82 seconds; that passing replay did not fix the race. A deterministic real-spawn regression then held A's requester read while B completed and failed because B launched first.The repair keeps database reads in the worker and reserves the existing collector FIFO position before awaiting requester capture. Failed or cancelled reads withdraw the exact held reservation; successful capture transfers that same hold to the existing spawn lifecycle. Ordinary spawn cancellation still precedes admission effects, and retired holds cannot admit a replacement. Original concurrency, rename, cancellation, and active-run assertions remain intact. No timeout, retry, dependency, assertion, or baseline was relaxed.
Published head:
e1459690621cd0510a2d70a1e496f9458e34ab29, a normal merge of main8864423309d3b97e33b693f47be5ea4c330fa426plus this repair; no reviewed history was rebased or force-pushed. Final proof: 151 focused/owner-sibling tests passed, 20/20 standalone runs passed all 38 cases, and three original 18-file workload replays passed 331/331 cases each (266.81, 229.27, 178.72 seconds command wall). The standalone invocations used one worker each, four independent invocations concurrently, and measured 177.3–375.23 seconds on the loaded Mac. This existing Gateway suite exercises real session storage, admission, cancellation, and projection; the added deterministic cases protect producer ordering that the cheaper scheduler tests cannot observe. Core/Gateway-test typing, scoped type-aware lint, formatting, line/annotation ratchets, and fresh independent review are clean. The original-workload replays use the repository wrapper and original file set on macOS; hosted Linux/Windows/native CI remains the landing gate. CI case timings will be recorded when available.Android merge-overlap review found both sides preserved in
ChatController,GatewaySession,MicCaptureManager, and the reconnect tests. Native execution is not claimed locally: this Mac has no JDK or Android SDK, and the configured Blacksmith Testbox (tbx_01m3fx80dtq3b9qdrmrfjb1m0t, run 36276298839) timed out during source synchronization before executing a command. The lease was stopped and verified completed. Fresh hosted Android checks remain required.Squash auto-merge remains armed. No iPad retry was requested; another pre-test iPad boot infrastructure failure will be reported without another retry.
Previous head: native Talk fixture publication custody
Current head:
6425f5926afc36b45e000c1a8034e87f54ffeb74. The eight-line test-only fix joins transcript publications before the fixture advances from spoken input into delegation, and after voice close before intentionally closing/reopening its database. It additionally requires that the spoken message was actually published. Production registry fences, native input privacy/history assertions, timers, and retry budgets are unchanged. The separate transcript-first/delegation-first control cases remain intact. Squash auto-merge remains armed.Run 36270157956, compact-large-26 job, failed
client-native-actions.test.ts > keeps native generated input in current-turn custody but out of display and future callswithAgentDatabaseRegistryChangedErrorduring transcript publication discovery. The exact 17-file workload (include digest4019c86c4d1d) passed a first local replay, as did the matching latest-main job. A focused phase diagnostic then reproduced the same error during delegation, before database close/reopen. The specific invalidating registry writer was not instrumented. The concrete fixture gap is thatflushClientVoiceSessionWritesjoins writes, while transcript listeners return void; it does not join this test's asynchronous publication work. One event-loop turn did not establish that boundary.After repair, the failing case passed, followed by 20/20 standalone full-file runs and three original-workload passes of 406/406 tests across 17 files, retaining the original two-worker setting. Workload command wall times were 151.73 s, 177.43 s, and 177.59 s; standalone wall times ranged 36.10–90.86 s including initialization. The targeted case passed in 29.85 s dispatcher wall. Core Gateway test typing, scoped lint/formatting, the line-count ratchet, and diff checks passed. Independent review is scoped-clean at P0–P2. No new test process or production seam was added; these are existing native-action and real-transcript contracts.
Fail-fast cancelled the previous run's siblings; this was not an iPad boot failure. The exact-head watcher follows the newly pushed candidate, with the same explicit instruction to stop if iPad simulator startup fails again before tests begin.
Latest candidate with updater fixture repair
Current head:
6f503975a0193d13d8fe54c55196a6555796be47, merging main15990e691f4c20f9fb33b942de96cd65af4930dawithout rebase or force-push. Fresh complete CI run 36270157956 is attached to this exact head. Squash auto-merge was preserved throughout.The preceding run 36268245369 cleared the scheduler type failures, then compact-small-39 failed the registered
update-restart-module-outcomefixture. Its real production finalization path asked for reporting facts absent from the strict VM fixture:Unexpected dependency call: ../../infra/container-environment.js:isContainerEnvironment. Local reproduction failed 9 of 19 native cases in 3.36 s. Fail-fast cancelled screenshot jobs; this was not a simulator boot failure.Reused the landed owner fix #159127, commit
734f8658967c6389962ffe29fa1b9ad6911d4bdf. It supplies finite container/state-directory facts and a synthetic reporting row whose mutation callback checks run identity and environment. Real restart/finalization modules, backup-retention assertions, and strict rejection of unexpected dependencies remain in use; production update behavior is unchanged. All 19 native cases and the registered Vitest wrapper passed in 2.94 s on this merged candidate, with clean scoped lint, formatting, and diff checks. The apparent macOS overlap is byte-identical on both parents and the merge result. No manual conflict resolution was needed, and fresh full-candidate review is scoped-clean at P0–P2.No single-job retry was submitted. An iPad simulator boot failure before tests start remains the explicit stop condition; real test/implementation failures remain in repair scope. Earlier focused streaming and cron proof remains recorded below for unchanged paths.
Current candidate after cron fixture repair
Current head:
a82aaf4aa35ca507cecfcd45985cddd8a5068346. It merges main's scheduler-fixture repairc0e6951d6f02d3eabd4bc13cf8e9fa9e77d290acand has exactly the reviewed local candidate's Git tree,c78add63098e719e39a046fbf22427f8937a75a9. Reviewed history is preserved and squash auto-merge remains armed.The preceding complete run, 36266824291, failed test-type groups 2 and 5 with four TS2741 diagnostics: missing
schedulerin both Cron history fixtures and the startup-recovery service/lazy wrapper. Both groups reproduced locally, and scheduled main run36266137877had the same failures. Fail-fast cancelled the screenshot jobs; this was not another iPad boot failure.The repair was taken from main instead of publishing duplicate edits. History fixtures now receive the existing deterministic test scheduler; startup recovery uses one shared scheduler and awaits its clock directly, preserving exactly-once delivery through suspension. An initial local injection-only patch exposed the old fixture's detached fake-timer/polling race once; the owning main fix replaces that synchronization with joined clock advancement. Final integration passed 38 tests across four files in 125.53 s, both previously failing type graphs, scoped lint/formatting, and diff checks. Fresh independent full-candidate review is scoped-clean at P0–P2. The earlier eight-suite, 132-test integration proof remains applicable to the unchanged overlapping stream/lifecycle code.
The exact-head watcher now follows the published candidate. No single-job retry was submitted. The stop condition remains an iPad simulator boot failure before tests start; other real failures remain in repair scope.
Latest complete-run refresh
Merged main
7ff7042dc7796b76180d75db1bf5488f987e4a80into the PR without rebase or force-push. Current candidate:9891c140d8feccb4d5dd18fc0de1e7af603283c3. The merge applied cleanly with no manual source edits. Overlapping code changes preserve main's OS-assigned mock-server port/readiness handling ingateway-concurrent-streams.test.tsand scheduler injection into lazy cron state inserver-lifecycle.ts.Focused validation passed 132 tests across eight files in 302.87 s through
node scripts/run-vitest.mjs <files> --maxWorkers=1: concurrent streams, lazy cron, cron drain, hot cron reload, startup lifetime, chat wire delivery, live-text broadcast, and node-session delivery. Core and Gateway-root test typing passed; scoped lint and formatting reported no warnings in the overlapping files. The line-count ratchet andgit diff --checkpassed. Fresh independent full-candidate review is scoped-clean at P0–P2. Earlier proof remains recorded below for unchanged paths.This fresh complete run follows the iPad simulator-preparation infrastructure failure on the previous head. Squash auto-merge remains armed. No single-job rerun was requested. If iPad simulator boot fails again before tests begin, this attempt stops for coordinator review without another retry; real test or implementation failures remain in scope for repair.
Fresh complete run at the conflict-resolved head
Previous attempt outcome: open at
28b93d3528f0522bb1c9adc13c5cdcefcd317ff5, with squash auto-merge still armed and no merge commit. Fresh Windows shard 3 passed on its first attempt; no further ACPX retry was needed. The iPhone screenshots and iOS smoke build also passed. The exact-head watcher stopped on the new iPad screenshot failure.The iPad test build succeeded in 781.76 s. Before any screenshot test ran,
apps/ios/fastlane/Fastfile:2264calledscripts/ios-simulator-prepare.sh. Itssimslim onstep disabled 13 background services, then failed during the required simulator reboot:simslim: simctl boot: signal: killed:. Fastlane reports 601 s for simulator preparation and exit 1. This is a pre-test simulator-preparation failure; the job log does not establish whysimctlwas killed. The script and Fastfile are unchanged by this PR. Failure artifact 10914161753 retains the build/capture evidence. The screenshot reducer was skipped andopenclaw/ci-gatefailed. No iPad or whole-workflow retry was submitted after this new failure, per the requested stop-and-report condition.The initial freshness push became conflicting while main advanced during validation. Merged current main
d536eb0c2835ffd0e945cd271506f2def77f2afewithout rebase in28b93d3528f0522bb1c9adc13c5cdcefcd317ff5. The only textual conflict waspackages/sdk/src/index.test.ts: retained main's typed wait-result table and consolidated assertions while preserving this PR's extracted helpers and dedicated chat-stream tests. The moved suite retains raw-event filtering, terminal output, replay ordering/close behavior, and the deliberately changed snapshot-precedence contract. Removed the now-unused helper import and obsolete max-lines suppression, with an exact shrink of its baseline entry. The scheduler addition in Gateway auxiliary startup merged unchanged from main.Fresh complete CI run 36263924974 is attached to that full head. GitHub confirms
MERGEABLE; squash auto-merge remains armed. The first watcher observation caught a provisional security-review failure, which resolved in the same security workflow toNo sensitive product changes; the aggregate then reportedWaiting for CI. The watcher resumed after reconciling that transition and subsequently stopped on the iPad failure above. No job was retried for this status-publication transition.The final 60-file focused attempt ran in 620.52 s and found one Gateway test failure plus its associated teardown error:
chat-display-projection.media.test.ts > correlated channel mirrors in Gateway history > hides only new correlated mirrors and preserves old bytes and identical distinct turns. The error isSqliteWorkerError: Shared-state admission requires the host brokeratsrc/infra/sqlite-worker-store.ts:226, reached viaopenCleanup→cleanupRetiredAgentDatabaseLease→session-accessor.sqlite-reclamation-worker; teardown reportsagent database custody failed. The Gateway group otherwise passed 610 cases across 28 files. This is not the ACPX initialization timeout and is not claimed fixed. The original whole-workload order is retained in this failing attempt. An untouched-main checkout atd536eb0c2835then passed this file standalone: 35/35 tests, exact correlated-mirror case 1,453 ms, dispatcher 89.81 s including cold compilation. The relevant media/cleanup/reclamation/store sources are unchanged between the two main integrations. The failure remains unreproduced standalone, not fixed. A concrete fixture-routing candidate is that this database-backed media file runs in threadedgateway-core, while native retired-agent cleanup requires the host broker and the forkedgateway-database-workerslist includes the cron projection sibling but omits media; #155304 repaired the analogous agents-support mismatch. No routing change or retry was made without reproducing the original trigger.The dispatcher stopped before its remaining groups, so those were completed separately: 927 cases across 30 client/SDK/ACP/TUI/UI files passed in 64.02 s. Final browser validation again passed 34 cases across six files in 90.68 s. Core typing, package test typing, scoped lint/format, line-count, max-lines, assertion-safety ratchets, and diff sanity passed on this merge. Previous complete
check-changedevidence remains recorded below; the newer candidate is not represented as a wholly green focused run.Fresh full-candidate review had no accepted/actionable findings. Its Quick Chat snapshot concern was rejected against the unchanged
chatMessageTextimplementation, which already filters/maps typed text blocks atapps/linux/ui/quickchat.js:5–10, and the passing snapshot extraction tests. Independent conflict verification found no lost main assertion or duplicated test owner.Complete CI freshness update (September 26)
Merged main
2b2ae319c923751bc9621af6942867ccf4f3302einto the approved branch without rebasing or rewriting reviewed history. Merge commit693ae0e161403f55eecab63c4cc9fbfb4b0eacb4applied cleanly. The refreshed head ise5f9f2812c3a68669ae76dd09a4971bbf10ed33f. This is the requested freshness integration to obtain a complete new CI run; the earlier screenshot artifacts mixed workflow attempts, and their reducer correctly refused that mismatch. Squash auto-merge remains armed.The exact prior 55-file focused selection was recovered from the previous runner's result manifests and include digests. Those files plus three startup/lifecycle integration probes all passed: 1,591 tests across 58 files in 384.09 s through
node scripts/run-vitest.mjs <files> --maxWorkers=1. This covers Gateway wire/broadcast/chat/display/node delivery, gateway-client sequencing and recovery, SDK streaming/reconnect, ACP recovery, TUI, Control UI state/sidebar, and Linux Quick Chat. The first invocation also completed the runner-owned build prerequisites.Main introduced a line-count ratchet that rejected this PR's growth in two already oversized test files. Commit
e5f9f2812c3a68669ae76dd09a4971bbf10ed33fmoves the eight queued-WebChat real-wire cases intact intoserver.chat-queued-followup.test.ts, retaining suite-level startup, all terminal/delta assertions, and settlement cleanup. The attachment-layout case moves into the existing resource-layout suite. No production behavior, assertions, budgets, or baselines changed. All 220 cases across the four affected files passed in 86.39 s; Gateway tests accounted for 75.98 s, and UI tests 3.97 s. The separate Gateway suite adds one suite-level boot, with no per-test boot; it protects queued text/canvas/error/abort delivery through the real WebSocket boundary.The six browser suites referenced by the earlier proof also passed: 34 scenarios in 77.32 s, covering PR-refresh replay, run lifecycle, send-ACK ownership, Stop ownership, dashboard final-reply recovery, and native-desktop appearance. The targeted
check-changedinvocation passed all selected guards, formatting, core typing, all 25 core-test type graphs, UI typing, lint, dead-export scans, and runtime import-cycle checks.git diff --checkpassed.Independent full-candidate review produced one bare-string-array recovery concern, rejected against the canonical
readAssistantTextBlocksForPhase/extractAssistantTextForPhasecontract: those readers require typed text blocks, andsrc/shared/chat-message-content.test.tsexplicitly excludes bare string array elements. A permissive Android extractor does not establish a producer contract. Fresh review of the final extraction is scoped-clean at P0–P2. No accepted/actionable findings remain. The old Windows attempt 4 passed at 18:13:35 UTC, but it is not substituted for the fresh run.Windows initialization follow-up (September 26)
The original Windows shard-3 job has exactly one failure:
extensions/acpx/src/runtime-argv.process.test.ts > preserves ACP argv through real processes and reconnect (leased=false, command=relative). Published[email protected]wrapsclient.start()inwithTimeoutatsrc/runtime/engine/manager.ts:161; the error is raised at:168asACP_SESSION_INIT_FAILED, with the underlying timer atdist/queue-owner-runtime-C4OOosbo.js:172. This is the fixture's unchanged 5,000 ms runtime initialization limit, not a Vitest timeout.Source inspection separates this from the streaming change. The case launches copied Node with
test/fixtures/acp/owner-agent.mjs, which imports Node builtins and the ACP protocol SDK and answers initialize directly. It never launches the OpenClaw Gateway-to-ACP translator or the shared terminal-reply reader. The PR leaves the ACPX adapter, fixture, and ACPX/ACP SDK versions unchanged; its ACP edits consume downstream chat deltas and recover completed replies. A concrete existing Windows timing risk is that ACPX awaits descendant-process capture after the initialize response (src/acp/client.ts:1055–1063): Windows uses PowerShellGet-CimInstance Win32_Process(src/process-identity.ts:509–514) with an 8,000 ms helper deadline inside the fixture's 5,000 ms whole-start deadline. The failure log does not distinguish slow process startup from that post-handshake census, so this is a supported candidate cause, not a proven root cause.The four scheduled-main Windows runs at 14:29, 15:29, 16:31, and 17:29 UTC all passed all five Windows test shards (runs
36248686523,36252117384,36255766286,36259199631). Logs confirm this exact relative-command case passed on main in 4,734 ms total and on unrelated PR branches fix/152284-refuse-live-dist-build and perf/l80-session-entry-amplification. No matching failure was found in this bounded recent sample; this is not claimed as an observed red-main defect.The existing exact-merge-tree, original-order 48-file replay was independently verified as native Windows, not Linux: run
36259272302checked outb6498ca3f48749ebae348d6bf57f56f8f36b5c64, used the same Windows image/toolchain, and passed 899 tests with 103 skips in 591.76 s. Its relative-command case passed in 7,787 ms total across initialization, two turns, and reconnect. This preserves the original 5,000 ms per-start limit. The bounded reproduction and fixture/dependency investigation found no safe causal repair; no source, fixture, deadline, assertion, dependency, or baseline was changed. This is assessed as an intermittent failure in an existing initialization path outside this PR; the precise cause remains unproven. Under the test-failure policy, one retry of only the failed Windows job was accepted as attempt 4 at 18:02 UTC. The first submission was rejected while attempt 3 was finishing; fresh run/job reconciliation confirmed no retry started before resubmission. A passing retry would restore required-CI evidence, not establish a fix. Squash auto-merge remains armed. The already-requested iPad retry passed at 17:59:34 UTC; it was not duplicated.New blocker after the iPad retry
The full-head watcher (
node scripts/watch-pr-ci.mjs 158587 e35365b4c02c9d3b6b0a6a1b1f2f42adf9ecec6e --repo openclaw/openclaw --interval 120 --timeout 3600) attached to run36254760476and returnedFAILINGafter the iPad capture passed. Its dependent ios-screenshot-evidence job failed at 18:00:18 UTC withiphone workflow run attempt does not match the reducer context. Both same-merge-SHA shard artifacts downloaded successfully: the newly generated iPad artifact and the retained iPhone artifact from an earlier attempt. The reducer ran withRUN_ATTEMPT=3;scripts/ios-screenshot-evidence.mjs:625–626requires every shard's attempt to equal the reducer attempt. This source and the workflow are unchanged by this PR. The partial retry therefore exposes a deterministic artifact-provenance mismatch, separate from the resolved simulator bootstrap failure. Repeating only the reducer will not repair it.This is the requested stopping condition: a new real CI failure. Windows attempt 4 is running; no additional retry is queued.
check-additional-extension-package-boundaryalso remains cancelled from the earlier run, and the CI aggregate remains red. The PR is still open at the approved head with squash auto-merge armed; there is no merge commit yet. No source edits, commits, pushes, timeout changes, or persistent remote leases were needed for this investigation. The next repair must address screenshot partial-rerun provenance (or regenerate its required shard set together) and recover the cancelled package-boundary check before merge can complete.Landing integration
Initially merged main
bde1d5fae5976acd64c04902af82c9a866100f3f; after further main movement, merged latest mainf97967009060dd5b178edd56ac7e0813acff29acinto the approved branch (no rebase). Integration commit:45c72f887cc3d9dbef67890b70e488d538ba3549; current head:e35365b4c02c9d3b6b0a6a1b1f2f42adf9ecec6e(refreshed-main integration, recovery whitespace, and explicit native command identity). Five conflicts were resolved while retaining main's suspension-aware identity reads, scoped/hidden sidebar ownership, typed SDK validation, and Android wrapper cleanup alongside the wire-delta behavior. Append deltas still apply to all clients without negotiation.Focused validation on this merged candidate passed 1,287 tests across 43 files in 114.42 s using
node scripts/run-vitest.mjs <files> --maxWorkers=1. Coverage includes Gateway wire/broadcast/chat/projection/node delivery, gateway-client sequence and suspension requests, SDK recovery and WebSocket transport, ACP, TUI, Control UI streams/sidebar, and Linux Quick Chat. Scoped type-aware lint and formatting of the resolved TypeScript files passed;git diff --checkpassed. Hosted exact-head CI is pending and remains the landing gate. The first run (36244289845) failed Android ktlint atChatEventText.kt:15:69because the expression body must start on the signature line; fail-fast cancelled its sibling jobs. The formatting-only correction passed:app:ktlintMainSourceSetChecklocally in 57 s with all three tasks executed, and fresh scoped review is clean. The focused behavior proof remains applicable because source tokens did not change. A dependency-review failure during initial status publication resolved to success in the same security run after six seconds; no CI job was rerun merely to obtain green. The second run (36244672903) passed production-source ktlint, then found chained-expression/declaration formatting in three PR-owned Android test files. The canonical formatter corrected those files; the complete CI-equivalent:app:ktlintCheck :benchmark:ktlintCheck :wear:ktlintCheck :wear-shared:ktlintCheckpassed locally in 15 s, 40 tasks (37 executed, three up-to-date). Fresh review confirmed test semantics are unchanged. The first local probe had covered only the initially failing production source set; the complete lane now covers both production and tests.The third hosted run (36244991851) passed Android ktlint, production types, and the Control UI performance budget, then failed six assertions across the three Control UI unit shards (229.89 s, 248.19 s, and 237.96 s). Direct page/mounted-pane fixtures bypassed connection reconstruction but still delivered bare deltas. The original three-file local selection reproduced six failures / 169 passes in 11.76 s. Fixtures now deliver cumulative local messages while retaining their delta fields; all original scheduling, cursor, and terminal-ownership assertions remain. Two adjacent tests also gained setup assertions proving they actually hold live text (negative control: six failures / eight passes in 6.64 s). Three mocked WebSocket E2E fixtures now provide the required initial snapshot, while the subsequent send-ACK append remains suffix-only. The original Stop-current E2E timed out waiting for text in 33.01 s; all seven targeted browser scenarios passed in 30.04 s after correction. Final focused unit validation passed 201 cases across six files in 12.14 s; scoped type-aware lint, formatting, and fresh independent review passed. No production code, assertion, timeout, retry, or budget was weakened. These are deterministic fixture repairs, not flaky-test reruns. Native Android behavior and native Linux GUI delivery remain outside this proof.
The fourth hosted run (36246055364) passed all three previously failing UI unit shards, Android ktlint, production types, and the UI performance budget. It exposed ten dispatch-error test failures: the expectation omitted terminal delivery's intentional
settle: trueandsessionKeys. The same file reproduced ten failures / nine passes locally in 46.41 s. Its expectation now asserts the complete options object; 63 delivery/settlement cases across three files passed in 29.13 s, with scoped lint and fresh review clean. No production code changed.That run also timed out extension lint stripe 4's common
plugin-sdk boundary dtsbootstrap at 300,000 ms, before lint began and without a compiler diagnostic. Bootstrap/compiler/config/workflow files are unchanged, but gateway-client is a transitive compiler input, so this is not claimed as a proven unrelated flake. Same-head sibling compilation checks passed. The normal localprepare-extension-package-boundary-artifacts.mts --mode=package-boundarypath emitted 11,223 files in 94.70 s with the existing timeout. The hosted timeout's exact cause remains uncertain; no timeout or budget was increased and no workflow was rerun merely to get green.The fifth hosted run (36246926577) exposed remaining fixture/reader mismatches: Quick Chat and PR-refresh fixtures lacked first snapshots; dashboard live snapshots incorrectly retained provider phase metadata; two real-Gateway recovery tests assumed the last raw delta always contained a full message. Local recovery reproduction failed three cases / passed three, then all six passed in 109.86 s after folding the wire sequence with the canonical reader. All 12 repaired E2E cases passed in 43.14 s, preserving later append-only frames, persisted phase metadata, and recovery assertions. The Quick Chat stub now also follows native prepared-identity-before-ACK ordering.
A bounded follow-up audit found two further raw readers. The concurrent-stream test reproduced an undefined last
data.text; it now checks the required first snapshot, every reconstructed prefix, and exact final marker. Queued WebChat tail checks now reconstruct all deltas. Its negative failure case also exposed fixture settlement being skipped after a failed assertion, producing a 120-second timeout; the owned failed run was interrupted after bounded reproduction and its child PIDs were verified absent. Delivery/health waits now settle the fixture infinallybefore assertions. Both complete files passed 67 tests in 73.11 s; the final cleanup adjustment passed eight queued cases in 17.98 s. Scoped type-aware lint, formatting, and final independent review passed. The E2E audit inspected 63 delta payloads across 33 files and found no remaining initial-snapshot/live-phase mismatch; intentionally bare later appends remain. Production code, assertion values, timeout budgets, and baselines remain unchanged by these test corrections.The sixth hosted run (36248690683) reached a closing-socket handshake fixture that waited for a retired application event to resume its paused peer. The PR correctly suppresses such events after abort, so that obsolete synchronization waited for the WebSocket close timeout. The fixture now resumes from the transport write callback, preserves ordered delivery and all pre-hello/close/error assertions, and explicitly requires no retired event dispatch. 34 Node handshake/event/sequence cases passed in 6.38 s, with scoped lint and fresh review clean. An extra local Bun 1.4.2 probe failed in server cleanup (
Server is not running) and reported an internal directory mismatch; it is not CI's pinned Linux Bun 1.4.3-canary.1 runtime and is not claimed as passing proof. Exact-head hosted CI owns that comparison.The independent macOS Periphery scan found only unused
GatewayProcessManager.setProjectRoot(path:)andprojectRootPath()wrappers. Main's earlier #158516 had moved both real callers toCommandResolver; the now-unreferenced internal wrappers are removed, preserving that canonical owner and all public behavior. No Periphery suppression or baseline was added; the current-head hosted scan will verify the deletion.The seventh hosted run (36250030438) passed the macOS dead-code scan and extension stripe 4, then found five ACP stop-reason mocks returning successful but unspecified reply facts. Full
src/acpreproduction yielded five failures / 970 passes across 115 files in 286.67 s, plus the same rejected recovery promise as an unhandled error. The five no-output fixtures now declare the canonicalterminalReply: { disposition: "empty" }fact produced by the terminal owner and forwarded byagent.wait. This preserves no-output and late-close race semantics without inventing transcript data or restoring a summary fallback. 44 focused ACP/recovery cases across four files passed in 20.71 s; lint, formatting, and fresh review passed. The other 114 ACP files were unchanged and passed in the original run.Before CI could attach to the ACP-only head, newer main made the branch conflicting again. The second merge preserves both main's low-value watchdog-test cleanup and this PR's dedicated protocol-test owners; the stronger restart/retired-frame sequence coverage remains. The refreshed candidate passed 1,584 tests across 55 focused files in 258.88 s. Dependencies did not change.
Fresh integration review then identified whitespace loss in full reply recovery. The shared reader no longer trims assembled text or discards whitespace-only text blocks; ACP compares and slices against its exact previously emitted prefix. Existing SDK real-WebSocket reconnect cases now recover a >4,096-character reply with leading code indentation and a final newline. They failed on both paths before the fix; separate negative controls reproduced dropped whitespace blocks and ACP's false
reply-rewrittenrejection. 70 focused shared-reader/SDK/ACP cases across six files passed in 32.70 s, with type-aware lint and formatting clean. Existing cases were strengthened rather than adding new timer/process fixtures. The public reader documentation now states the whitespace guarantee. A context-incomplete Quick Chat suggestion was rejected: its existing lines 5–11 extract and return text blocks before the empty-array fallback, backed by the passing stream and browser tests. Final full-candidate independent review completed both chunks with no accepted/actionable P0–P2 findings. Wire-byte and recovery-RPC measurements remain applicable; this repair changes recovered text fidelity, not their encoder or request budgets.The refreshed head's shared OpenClawKit Periphery intersection reported
ChatScrollCommand.Request.id. This is an identity field used implicitly by synthesized equality: deleting it would collapse repeated requests to the same scroll target. The consumption guard now explicitly compares the pending command ID with the captured request ID, preserving immutable request identity, consume-once behavior, and the existing current-session check. Existing native tests cover repeated-target supersession, cancellation, replay, and cross-session/agent rejection; hosted native CI remains their proof route. Fresh scoped review is clean. No scanner suppression, baseline, public API, or rendered appearance changed.Current-head CI run 36254760476, attempt 1, failed before Android 16 KB-page crypto tests could run: Gradle Plugin Portal returned HTTP 520 to the pinned ktlint marker JAR HEAD request, disabling that repository during classpath resolution. Missing test-report upload was consequential, not a second product failure. A subsequent endpoint probe returned the expected marker POM 200 and optional JAR 404. One same-head full-workflow retry was requested after this specific infrastructure diagnosis because fail-fast cancelled the sibling jobs. Source, dependencies, timeouts, and budgets are unchanged for this retry.
Attempt 2 failed Windows Node shard 3 and the iPad 13 screenshot job; the additional extension package-boundary job was cancelled, and the required aggregate remains red. CI checked out synthetic merge
b6498ca3f48749ebae348d6bf57f56f8f36b5c64(this head merged intobe46e6966c2b52c6cde06abf965c44f9a175a47f). The Windows relative-command/reconnect case inextensions/acpx/src/runtime-argv.process.test.tsfailed upstream ACPX initialization at its unchanged 5,000 ms limit. Its original two-file subshard had 10 passes, one failure, one POSIX-only skip in 67.26 s. The first Windows diagnostic passed all 11 applicable cases with the same Windows image, Node 24.21.0, pnpm 12.4.2, and Vitest 5.0.1, but targeted raw PR head rather than CI's synthetic merge tree. That pass is limited diagnostic evidence, not a fix or replacement gate. The latest two scheduled-main Windows shard-3 jobs passed; this failure is not established as already red on main. The bounded original-workload/source diagnosis below is complete, with no timeout, assertion, dependency, or baseline changes.The corrected full Windows replay used the exact CI merge tree
b6498ca3f48749ebae348d6bf57f56f8f36b5c64and all 48 original files in six original project groups, with the same Windows image (20260922.246.2), toolchain, worker count, and ordering. Its validated receipt records source and dependency inputs unchanged: 48 files passed; 899 tests passed and 103 skipped; 591.76 s dispatcher wall. The final ACP/memory subshard passed in 64.22 s; the relative-command case took 7,787 ms total across initialization, two turns, and reconnect, retaining the original 5,000 ms per-initialization limit. Artifact 10911529220 binds this proof to the tested merge tree. An earlier full replay targeting raw PR head was cancelled when the source mismatch was discovered. The original timeout remains unreproduced, with no safe causal repair established. A passing diagnostic is neither a fix nor replacement required-CI evidence; the failed Windows gate has not been blindly retried. The diagnostic job completed with Actions-owned runner teardown and no persistent lease.The iPad failure artifact (
10911142342) establishes a pre-test XCTest/iOS 27 simulator Accessibility bootstrap failure: scene03-agent-connectedenteredloading Accessibilitywith an internal 70-second limit, stalled, and self-aborted withSIGABRT. The stack runs throughdyld_sim,NSBundle.loadAndReturnError, UIKit Accessibility,XCAXClient_iOS.loadAccessibility, andXCTestDriver._preTestingInitialization; no scene test method or OpenClaw app launch occurred. A subsequent 600-second diagnostic-collection timeout accounts for most of the 785.76 s job duration. One single-job retry was requested after inspecting this concrete infrastructure failure. The Windows job was not rerun as part of that request. Hosted exact-head CI remains the landing gate.Fresh independent candidate review completed in two chunks. Its two P2 suggestions were rejected after checking their actual contracts: SDK
GatewayRequestOptionsexposes onlyexpectFinalandtimeoutMs, keepingonSentclient-owned; Android's live delta producers always construct typed text blocks, while final/history payloads never seed its private delta cache. The hypothetical bare-string-array baseline cannot arise through those producers. No accepted/actionable finding remains.The prior serialized-byte proof (838,306,084 → 18,181,534 bytes) and recovery RPC bound remain applicable; this integration does not change their encoder or recovery algorithm. Existing inspected screenshots remain embedded below. Android execution, native Linux GUI execution, and a live-browser swarm run remain unverified. Prior inherited line-cap failures below remain historical evidence, not a green full-gate claim. No performance budgets or baseline allowances were changed for this integration.
Actual handler plus broadcaster, 50 concurrent runs, 100-character chunks, one eligible synthetic socket, including terminal settlement:
The merged-main measurement is 97.83% less traffic at 40 KB, with near-linear growth. Round three does not change the wire encoder, so this proof remains applicable. This measures serialized bytes, not live browser-swarm latency.
Third-round before/after proof:
Second itemFirst item\n\nSecond item; 8.88 s probe wallprefix suffix more; negative control fails, candidate passes in 0.18 sInspected synthetic browser proof uses the actual Quick Chat HTML/CSS/JavaScript with deterministic Tauri stubs. Each scenario submits once, injects 65 foreign runs, acknowledges the selected run, then finishes it; no browser errors or unexpected requests occurred. These captures show browser rendering, not native X11/WebView execution.
Prepared request identity preserves the complete reply through the same unrelated traffic:
The load bounds use the real SDK reconciliation owner with a fake clock, not a live 100-browser latency benchmark. Earlier real 100-client reconnect proof measured 300 initial recovery RPCs for active runs.
Focused validation uses
node scripts/run-vitest.mjs <files> --maxWorkers=1: 1,329 tests across 39 files passed in 117.02 s, covering Gateway live text/chat/projection/node delivery, gateway-client, SDK, ACP, TUI, UI streams/sidebar narration, and Linux Quick Chat. The subsequent iterator-handoff correction passed 56 SDK cases across six files in 2.51 s. Its negative control failed exactly that regression in 2.58 s; the other eight recovery cases passed. Restoring earlier implementations also reproduced seven SDK recovery failures, four terminal-text failures, two ACP failures, and the missing history run-identity failure.The final test-helper corrections passed 17 SDK/ACP cases in 20.17 s; after the behavior-neutral lint fixes, the same 17 cases passed in 34.49 s and scoped type-aware lint passed in 44.90 s; both affected test typing groups also passed locally (10.01 s and 8.96 s).
Both affected workspace package builds passed: gateway-client 39.28 s, SDK 16.61 s. An initial SDK build overlapped Tauri's generated schema creation and was rejected by the compiler input-snapshot guard; serializing it after native compilation passed without a source change.
The Linux native adapter compiled on this Mac. Focused Rust event-before-ACK and retry-identity tests both passed (120.45 s including the build, then 8.04 s);
rustfmt --checkpassed. These prove the native event pump and retry contract, not live X11/WebView delivery. The prepared-event ordering also follows Tauri's synchronous emit → shared WebView evaluation queue, before the Gateway request is polled. No native app or operator Gateway was launched. No Swift code changed in round three; the prior macOS build (234.77 s; final rebuild 61.45 s) and nine focused queued-terminal cases (3.63 s wall) remain valid. Android execution, full native suites, and a live 50–100-browser latency run remain unrun.Remote validation used exactly one Blacksmith Testbox, lease
tbx_01m3ercjax0f6r5ceqg0sx72y0(provider run). The first gate stopped on the two test typing issues described above after 752.28 s. The complete rerun passed every typecheck and the preceding guards, then failed lint after 2,294.35 s (wrapper command 2,358.557 s): eight task-owned lint issues, subsequently fixed, and three unchanged merged-main line-cap violations:src/gateway/server-kernel.test.ts: 1,003 counted lines, cap 1,000; introduced by refactor(gateway): own companion timed work in the kernel scheduler #158423.src/gateway/channel-health-monitor.test.ts: 1,023 counted lines, cap 1,000; introduced by refactor(gateway): schedule channel health checks #158537.src/state/openclaw-state-read.worker.ts: 703 counted lines, cap 700; corrected on newer main by refactor(state): keep read worker within lint limit #158661.Those three files have no diff from merged base
4f62a433acb7. The full gate is not claimed green. The final same-box follow-up passed in 122.662 s (192.18 s wrapper wall): core/package typing, type-aware lint of the repaired files, import-cycle checks, Linux-test lint, and formatting. The source capsule and targeted hashes were verified; its treedc61ff41346932bc86d9085e2caa80d20b5d68c7exactly matches published commit9c05028af3fa. The lease was stopped and verified completed. No second box was allocated.The initial wrapper preflight rejected a raw SHA as the base; using its required
origin/mainalias resolved to the same pinned fork point. No gate was skipped or relaxed. The wrapper result is authoritative; the linked hydration workflow may report cancellation during lease cleanup.Deslop completed. Fresh independent full-branch candidate review is scoped-clean at P0–P2, with both review chunks clean. A further review of all third-round corrections after the final test-helper and lint changes is also scoped-clean, with no accepted/actionable findings. One follow-up finding about replacing a cancelled SDK reader was fixed and regression-tested. A trailing-whitespace ACP finding was rejected from the sole writer’s source: it applies
trimEnd()before storingsentText; the subsequent clean review included that evidence. All three independent adversarial review rounds and their corrections are listed above.Before landing integration, the full PR was: production +3,048/−812, net +2,236; tests/support +5,185/−1,365, net +3,820; docs net +102; tooling/manifests net +7. Round three adds production +414/−238, net +176, tests/support +576/−127, net +449, and docs net +10. The shared baseline owner saves 20 production lines and one shared terminal reader avoids adding a second transcript implementation; correct recovery budgeting, native request identity, and explicit incomplete-state handling still require net growth.
Existing RPC limits remain explicit: terminal observations have finite retention; terminal text recovery scans at most ten 200-record history pages and uses the full-message reader when needed. Missing authority or incomplete text yields recovery-unavailable metadata. Unknown runs remain unsettled after their automatic budget expires; a capped summary or unrelated answer is never promoted to complete output. Generic custom SDK transports retain their documented terminal/end-of-stream obligations.
Second-round app and extension consumer audit
GatewayChannel/GatewayLiveTextProjectionWebChatSwiftUI/TalkModeRuntime; iOSIOSGatewayChatTransport/TalkModeManagerRealtimeTalkRelaySession; iOSTalkRealtimeWebRTCSessionGatewaySession/GatewayLiveTextProjection→ChatController/MicCaptureManagerTalkModeManager,RealtimeAgentCoordinator,WearRealtimeTalkControllertalk.eventis a separate protocol.WearProxyBridge/WearProxyController→ WearWearGatewayRepository/WearViewModelWatchInboxMessagesand Phone bridgeControlChannel,AgentEventStore,AgentEventsWindowgateway_ws.rs→quickchat.jsqa-labandgoogle-meetGateway clientscodex,acpx,agentsapi,copilotpluginsa2aandonepasswordtext matchesThe source audit found no further unmigrated chat/assistant wire-text consumer. Android execution remains unverified.