Repository navigation
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: needs maintainer review before merge. Reviewed October 6, 2026, 8:35 PM ET / October 7, 2026, 00:35 UTC (Revision 4). ClawSweeper reviewWhat this changesThe PR bounds anchored chat-history pages and oversized message groups, adds directional continuation cursors, and extends full-message recovery for large outputs and retained sessions. Merge readiness✅ Ready for maintainer review This PR still addresses gaps left by the earlier merged history-budget work. No blocking introduced defect was found, and the previous test findings are resolved. Priority: P2 Review scores
Verification
How this fits togetherGateway chat history turns stored transcripts into bounded display pages for clients and embedded agent tools. The Control UI can retrieve referenced content separately without changing the stored transcript. flowchart TD
A[Client history request] --> B[Current session access]
B --> C[Transcript worker]
C --> D[Display projection]
D --> E[Bounded page assembly]
E --> F[Messages and continuation cursors]
E --> G[Oversized message references]
G --> H[Authorized full-message recovery]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +214, Tests +660, Docs 0, Other -1. Total +873 across 32 files. View PR surface stats
Review metrics
Mantis proof suggestionOptional browser proof would help confirm that a referenced large tool output recovers and remains usable in the chat interface. A maintainer can ask Mantis to capture proof by posting this exact PR comment: Technical reviewBest possible solution: Keep one bounded history-response owner, with lossless source-bound continuation and separately authorized recovery of complete referenced content. Do we have a high-confidence way to reproduce the issue? Yes, source provides a high-confidence path: request an anchored page or an indivisible projected group exceeding the smaller page target on main. The supplied regressions exercise those cases, but this read-only review did not execute them. Is this the best way to solve the issue? Yes, the shared response owner and existing full-message recovery path provide a focused solution without rewriting stored transcripts or duplicating transport policy. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 0288eb1f3692. LabelsLabel changes: No label changes. Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
…law#166263) * perf(gateway): bound anchored history pages and message groups * fix(gateway): bound history continuation metadata * test(gateway): align history budget and output recovery expectations * test(ui): narrow history recovery request parameters
#166263 made oversized message recovery request CHAT_MESSAGE_MAX_CHARS but left the chat-message-actions E2E expecting 500_000, turning checks-ui-e2e red on main.
…66365) ## What Problem This Solves `chat.send` could wait behind unrelated transcript-history reads while authorizing a request, admitting its run, or preparing durable input. An ordered metadata read could hold the database writer FIFO while waiting on the single history worker. ## User Impact Hot-session input can be persisted and acknowledged while history dispatch is blocked. Exact session rows, target discovery, transcript identity selection, and bounded cold-archive metadata use the existing projection worker. Writer FIFO ordering, current permissions, source replacement checks, and durable input custody remain intact. There are no schema, configuration, retention, or update changes. ## Why This Change Was Made Metadata discovery and payload reads selected different workers. Use the metadata worker consistently, remove the unused inventory lane parameter, and remove the discovery-only lane fallback. Transcript corpus/archive payloads and maintenance retain their existing owners. Production LOC delta: **+14**. The generic reader also serves transcript payloads, so the metadata operations must select the existing projection lane explicitly; transcript target selection also retains its lazy worker/incognito boundary. Most added lines are argument/import formatting. No new pool, cache, wrapper, or configuration option is introduced. ## Evidence Benchmarks and runtime tests ran with provider `blacksmith-testbox`, profile `openclaw-check`, on Linux x86_64 / Node 24.19.0. Paired measurements and the first full staged gate used lease **`tbx_01m499e9p8c3pwdkxrq7kqyt11`** on base `cc7e664dfe34`. The full staged gate also passed after rebase to `8f5c33c30d71` on the Linux rig fallback (`node scripts/check-changed.mjs --staged`, exit 0, approximately 50 minutes). Fresh-lease integration proof passed on **`tbx_01m49cshscnkd5rn7tva92rwrp`**: core production types and 63 tests covering exact reads, worktree-owner projection, managed owner policy, and durable ACK; total command 2m23s. On **`tbx_01m49wfjav8vbwxmsdrw22nrad`**, base `0288eb1f3692`, core production types and 218 tests across 16 focused files passed in 6m51s. The three corrected race fixtures passed all 58 tests in 2m24s. Their staged gate and a full 227-case registry lifecycle replay passed in 6m14s. The final branch is rebased onto `98567acd6060`; SHA-256 verification confirms all 17 reviewed files are byte-for-byte unchanged. The earlier results are prior-base evidence; hosted CI checks the final integration. All four leases are stopped/expired. The RPC router/handler and SQLite rig ran 64 sends at concurrency eight, alongside four continuous synthetic history readers and post-ACK preparation. Provider execution was mocked after ACK. Same baseline revision, synthetic data, and lease: | Request latency | Before | After | Reduction | |---|---:|---:|---:| | p50 | 6,451 ms | 979 ms | 84.8% | | p95 | 17,257 ms | 3,339 ms | 80.7% | | p99 / max | 18,234 ms | 3,470 ms | 81.0% | | mean | 7,548 ms | 1,273 ms | 83.1% | Afterward, all 1,500 history-worker requests were background page reads; foreground metadata used the projection worker. Harness RSS after the run was 2.995 GB before and 3.193 GB after; these are whole test-process measurements, including worker heaps and retained synthetic turns. A second paired run waited for warm startup, then measured 32 requests with one send outstanding and the same four background history readers: | Warm request latency | Before | After | |---|---:|---:| | p50 | 2,250 ms | 188 ms | | p95 | 3,036 ms | 323 ms | | p99 / max | 16,280 ms | 2,246 ms | | mean | 2,710 ms | 264 ms | **Both workloads still exceed the 150 ms p50 / 500 ms p99 targets.** The warm median is below 300 ms. The remaining 2,245 ms warm tail records 2,094 ms in authority, 9 ms in admission, 77 ms in persistence, and 65 ms in run admission. Repeated authority preparation and production latency still need finer attribution; this change removes the proven history-queue dependency without relaxing authority or durability. - The full router → durable transcript → ACK regression passes with history dispatch held. The original revision times out waiting for ACK under the same gate (the existing 120-second Vitest deadline), confirming the regression catches the old dependency. - Broader owner/sibling coverage: 167 tests passed across 12 files. After the transcript-target and cold-metadata cutover, 71 relevant tests passed, including cold restore authority, physical replacement, first registration, run admission, and ACK-before-skill-preparation behavior. - `pnpm test src/gateway/server-methods/chat-send-preparation-ack.test.ts --maxWorkers=1`: 5 passed; 38.85 s runner wall time including worker compilation; 10.93 s test time. The new case took 3.67 s. Real router authorization and SQLite custody are required to prove a durable ACK; helper-only tests would miss the persistence dependencies. Added Linux test execution cost: approximately 3.7 seconds per run, measured on Testbox; hosted per-case timing was not collected. - `node scripts/check-changed.mjs --staged`: passed on the paired measurement base in 27m53s, including all 27 core test type graphs, lint, dead-export, cycle, and storage guards. Every reviewed file matched its recorded SHA-256. - Independent Codex reviews of the production scope and final three test corrections: scoped-clean, no actionable P0/P1 findings. - Three additional test fixtures now inject metadata races/errors through the projection worker: native model ownership, diff-baseline generation, and SDK transcript-target locking. All 58 tests in those files passed on the fresh lease in 2m24s; their assertions are unchanged. The scoped staged gate selected and passed the `agents-other`, `other`, and `plugin-sdk` type graphs, lint, and dead-export checks. <details> <summary>24-hour slow-send attribution</summary> The journal query covered 2026-10-05 19:00:50Z through 2026-10-06 19:00:50Z and yielded 77 request and 99 startup records. These are **conditional slow-stage distributions**: the logger excludes stages below 1,000 ms. Timers include awaited/scheduling time and can overlap; they are not exclusive CPU measurements. Missing fields are absent samples. Nearest-rank p99 equals max for these sample counts. | Stage / phase | Samples | p50 ms | p95 ms | p99 / max ms | |---|---:|---:|---:|---:| | Request total | 77 | 3,418 | 5,611 | 6,951 | | Authority | 77 | 1,429 | 2,267 | 2,748 | | Admission | 77 | 273 | 469 | 685 | | Attachments | 77 | 0 | 11 | 285 | | Persistence | 77 | 566 | 1,234 | 2,815 | | Preparation | 77 | 0 | 1 | 8 | | Reply context | 77 | 0 | 83 | 116 | | Run admission | 77 | 1,135 | 2,314 | 2,402 | | Effects | 77 | 0 | 0 | 0 | | Response | 77 | 1 | 1 | 2 | | Startup total | 99 | 5,674 | 102,321 | 3,288,574 | | Startup ACK (repeated request duration) | 99 | 3,158 | 4,851 | 6,951 | | Startup authoring | 95 | 1 | 6 | 9 | | Startup preparation | 95 | 3,532 | 5,951 | 3,046,035 | | Startup reply initialization | 95 | 1,612 | 80,753 | 356,488 | | Startup reply context | 99 | 0 | 0 | 129 | | Startup worktree | 13 | 3,575 | 5,131 | 5,131 | | Startup dispatch | 99 | 15 | 544 | 8,757 | The 54.8-minute startup record had already ACKed in 250 ms and began after that process started. It does not establish pre-ACK blocking or unfinished work from the earlier restart. Source tracing and the blocked-history regression establish the metadata-worker dependency fixed here; they do not attribute every production tail. </details> Related: #165608. <details> <summary>Hosted CI investigation and remaining upstream failures</summary> Final-head [CI run 37556779529](https://github.com/openclaw/openclaw/actions/runs/37556779529), head `3292922b0e82`, completed with 79 successful jobs, 24 skipped jobs, two failed test jobs, and the failed aggregate gate. The stale metadata-race fixtures are corrected. No CI rerun was requested. - **MCP fixture routing:** all ten `mcp-http.session-controls.test.ts` cases fail during tool/auth preparation before the session action. On unchanged base `0288eb1f3692`, `pnpm exec vitest run --config test/vitest/vitest.gateway-core.config.ts src/gateway/mcp-http.session-controls.test.ts --maxWorkers=1 -t 'MCP dispatch preserves archive final-effect authority: allowed'` fails with the identical `Shared-state admission requires the host broker`; adding `--pool=forks` passes. Upstream #166199 moved the sibling question-authority fixture into the fork-backed database-worker lane but omitted this fixture. This branch does not change its routing. - **History expectation after the new base:** `chat.history advances past a replay boundary that cannot fit all projected siblings` still expects only sequence 2 on page one. Upstream #166263 now compresses an oversized source group into a fetchable placeholder before capping, allowing the older sequence-1 message to fit on the same page. The fixture and paging owner are byte-identical between base `98567acd6060` and this branch. The exact filtered case also fails on unchanged base `98567acd6060` on `blacksmith-testbox` lease `tbx_01m49zrpad1bfnzpwb9wp7t3tz`: a diagnostic print before the unchanged assertion captured `sequences: [1, 2]` and `hasMore: false`. The test exited 1 as expected; the probe command completed in 1m35s, restored the test, removed its temporary worktree, and the lease is stopped. No history behavior is changed here. The initial CI run also reported one remaining fake timer in `subagent-registry-lifecycle.test.ts`, case `preserves cleanup exhaustion when another run settles (related=true)`. The complete 227-case file passed separately on unchanged base and candidate, and the corrected head's CI no longer reports it. The original failure remains unexplained; passing replays are not claimed as a fix, and no assertion was weakened. </details>
openclaw#166263 made oversized message recovery request CHAT_MESSAGE_MAX_CHARS but left the chat-message-actions E2E expecting 500_000, turning checks-ui-e2e red on main.
…enclaw#166365) ## What Problem This Solves `chat.send` could wait behind unrelated transcript-history reads while authorizing a request, admitting its run, or preparing durable input. An ordered metadata read could hold the database writer FIFO while waiting on the single history worker. ## User Impact Hot-session input can be persisted and acknowledged while history dispatch is blocked. Exact session rows, target discovery, transcript identity selection, and bounded cold-archive metadata use the existing projection worker. Writer FIFO ordering, current permissions, source replacement checks, and durable input custody remain intact. There are no schema, configuration, retention, or update changes. ## Why This Change Was Made Metadata discovery and payload reads selected different workers. Use the metadata worker consistently, remove the unused inventory lane parameter, and remove the discovery-only lane fallback. Transcript corpus/archive payloads and maintenance retain their existing owners. Production LOC delta: **+14**. The generic reader also serves transcript payloads, so the metadata operations must select the existing projection lane explicitly; transcript target selection also retains its lazy worker/incognito boundary. Most added lines are argument/import formatting. No new pool, cache, wrapper, or configuration option is introduced. ## Evidence Benchmarks and runtime tests ran with provider `blacksmith-testbox`, profile `openclaw-check`, on Linux x86_64 / Node 24.19.0. Paired measurements and the first full staged gate used lease **`tbx_01m499e9p8c3pwdkxrq7kqyt11`** on base `4a96fff224ff`. The full staged gate also passed after rebase to `66cf8a4c0732` on the Linux rig fallback (`node scripts/check-changed.mjs --staged`, exit 0, approximately 50 minutes). Fresh-lease integration proof passed on **`tbx_01m49cshscnkd5rn7tva92rwrp`**: core production types and 63 tests covering exact reads, worktree-owner projection, managed owner policy, and durable ACK; total command 2m23s. On **`tbx_01m49wfjav8vbwxmsdrw22nrad`**, base `fd7d42fa5176`, core production types and 218 tests across 16 focused files passed in 6m51s. The three corrected race fixtures passed all 58 tests in 2m24s. Their staged gate and a full 227-case registry lifecycle replay passed in 6m14s. The final branch is rebased onto `772d281b298f`; SHA-256 verification confirms all 17 reviewed files are byte-for-byte unchanged. The earlier results are prior-base evidence; hosted CI checks the final integration. All four leases are stopped/expired. The RPC router/handler and SQLite rig ran 64 sends at concurrency eight, alongside four continuous synthetic history readers and post-ACK preparation. Provider execution was mocked after ACK. Same baseline revision, synthetic data, and lease: | Request latency | Before | After | Reduction | |---|---:|---:|---:| | p50 | 6,451 ms | 979 ms | 84.8% | | p95 | 17,257 ms | 3,339 ms | 80.7% | | p99 / max | 18,234 ms | 3,470 ms | 81.0% | | mean | 7,548 ms | 1,273 ms | 83.1% | Afterward, all 1,500 history-worker requests were background page reads; foreground metadata used the projection worker. Harness RSS after the run was 2.995 GB before and 3.193 GB after; these are whole test-process measurements, including worker heaps and retained synthetic turns. A second paired run waited for warm startup, then measured 32 requests with one send outstanding and the same four background history readers: | Warm request latency | Before | After | |---|---:|---:| | p50 | 2,250 ms | 188 ms | | p95 | 3,036 ms | 323 ms | | p99 / max | 16,280 ms | 2,246 ms | | mean | 2,710 ms | 264 ms | **Both workloads still exceed the 150 ms p50 / 500 ms p99 targets.** The warm median is below 300 ms. The remaining 2,245 ms warm tail records 2,094 ms in authority, 9 ms in admission, 77 ms in persistence, and 65 ms in run admission. Repeated authority preparation and production latency still need finer attribution; this change removes the proven history-queue dependency without relaxing authority or durability. - The full router → durable transcript → ACK regression passes with history dispatch held. The original revision times out waiting for ACK under the same gate (the existing 120-second Vitest deadline), confirming the regression catches the old dependency. - Broader owner/sibling coverage: 167 tests passed across 12 files. After the transcript-target and cold-metadata cutover, 71 relevant tests passed, including cold restore authority, physical replacement, first registration, run admission, and ACK-before-skill-preparation behavior. - `pnpm test src/gateway/server-methods/chat-send-preparation-ack.test.ts --maxWorkers=1`: 5 passed; 38.85 s runner wall time including worker compilation; 10.93 s test time. The new case took 3.67 s. Real router authorization and SQLite custody are required to prove a durable ACK; helper-only tests would miss the persistence dependencies. Added Linux test execution cost: approximately 3.7 seconds per run, measured on Testbox; hosted per-case timing was not collected. - `node scripts/check-changed.mjs --staged`: passed on the paired measurement base in 27m53s, including all 27 core test type graphs, lint, dead-export, cycle, and storage guards. Every reviewed file matched its recorded SHA-256. - Independent Codex reviews of the production scope and final three test corrections: scoped-clean, no actionable P0/P1 findings. - Three additional test fixtures now inject metadata races/errors through the projection worker: native model ownership, diff-baseline generation, and SDK transcript-target locking. All 58 tests in those files passed on the fresh lease in 2m24s; their assertions are unchanged. The scoped staged gate selected and passed the `agents-other`, `other`, and `plugin-sdk` type graphs, lint, and dead-export checks. <details> <summary>24-hour slow-send attribution</summary> The journal query covered 2026-10-05 19:00:50Z through 2026-10-06 19:00:50Z and yielded 77 request and 99 startup records. These are **conditional slow-stage distributions**: the logger excludes stages below 1,000 ms. Timers include awaited/scheduling time and can overlap; they are not exclusive CPU measurements. Missing fields are absent samples. Nearest-rank p99 equals max for these sample counts. | Stage / phase | Samples | p50 ms | p95 ms | p99 / max ms | |---|---:|---:|---:|---:| | Request total | 77 | 3,418 | 5,611 | 6,951 | | Authority | 77 | 1,429 | 2,267 | 2,748 | | Admission | 77 | 273 | 469 | 685 | | Attachments | 77 | 0 | 11 | 285 | | Persistence | 77 | 566 | 1,234 | 2,815 | | Preparation | 77 | 0 | 1 | 8 | | Reply context | 77 | 0 | 83 | 116 | | Run admission | 77 | 1,135 | 2,314 | 2,402 | | Effects | 77 | 0 | 0 | 0 | | Response | 77 | 1 | 1 | 2 | | Startup total | 99 | 5,674 | 102,321 | 3,288,574 | | Startup ACK (repeated request duration) | 99 | 3,158 | 4,851 | 6,951 | | Startup authoring | 95 | 1 | 6 | 9 | | Startup preparation | 95 | 3,532 | 5,951 | 3,046,035 | | Startup reply initialization | 95 | 1,612 | 80,753 | 356,488 | | Startup reply context | 99 | 0 | 0 | 129 | | Startup worktree | 13 | 3,575 | 5,131 | 5,131 | | Startup dispatch | 99 | 15 | 544 | 8,757 | The 54.8-minute startup record had already ACKed in 250 ms and began after that process started. It does not establish pre-ACK blocking or unfinished work from the earlier restart. Source tracing and the blocked-history regression establish the metadata-worker dependency fixed here; they do not attribute every production tail. </details> Related: openclaw#165608. <details> <summary>Hosted CI investigation and remaining upstream failures</summary> Final-head [CI run 37556779529](https://github.com/openclaw/openclaw/actions/runs/37556779529), head `3292922b0e82`, completed with 79 successful jobs, 24 skipped jobs, two failed test jobs, and the failed aggregate gate. The stale metadata-race fixtures are corrected. No CI rerun was requested. - **MCP fixture routing:** all ten `mcp-http.session-controls.test.ts` cases fail during tool/auth preparation before the session action. On unchanged base `fd7d42fa5176`, `pnpm exec vitest run --config test/vitest/vitest.gateway-core.config.ts src/gateway/mcp-http.session-controls.test.ts --maxWorkers=1 -t 'MCP dispatch preserves archive final-effect authority: allowed'` fails with the identical `Shared-state admission requires the host broker`; adding `--pool=forks` passes. Upstream openclaw#166199 moved the sibling question-authority fixture into the fork-backed database-worker lane but omitted this fixture. This branch does not change its routing. - **History expectation after the new base:** `chat.history advances past a replay boundary that cannot fit all projected siblings` still expects only sequence 2 on page one. Upstream openclaw#166263 now compresses an oversized source group into a fetchable placeholder before capping, allowing the older sequence-1 message to fit on the same page. The fixture and paging owner are byte-identical between base `772d281b298f` and this branch. The exact filtered case also fails on unchanged base `772d281b298f` on `blacksmith-testbox` lease `tbx_01m49zrpad1bfnzpwb9wp7t3tz`: a diagnostic print before the unchanged assertion captured `sequences: [1, 2]` and `hasMore: false`. The test exited 1 as expected; the probe command completed in 1m35s, restored the test, removed its temporary worktree, and the lease is stopped. No history behavior is changed here. The initial CI run also reported one remaining fake timer in `subagent-registry-lifecycle.test.ts`, case `preserves cleanup exhaustion when another run settles (related=true)`. The complete 227-case file passed separately on unchanged base and candidate, and the corrected head's CI no longer reports it. The original failure remains unexplained; passing replays are not claimed as a fix, and no assertion was weakened. </details>
Related: #165897
What Problem This Solves
Anchored
chat.historyreads bypassed the normal page target, and an indivisible display group could grow to the 6 MiB ceiling. The original RPC regression returned 1,205,168 bytes.User Impact
History pages and anchored continuations now share a 512 KiB message budget. Oversized source rows remain fetchable through
chat.message.get, including complete 5 MB tool outputs in the Control UI. Stored transcript bytes remain unchanged. No configuration or database migration is required.Why This Change Was Made
One response owner replaces oversized groups with existing message references and supplies pagination for both Gateway transports. This removes the oversized-group escape, partial-sibling replay, and duplicate embedded-adapter budgeting. Anchored cursors preserve physical-session and source identity, retain visibility/recovery context, and obey their own encoded-size limit. Full-message recovery restores visible fragments and supports retained sessions under the existing ownership checks.
Production/non-test delta: +213 lines (452 added, 239 removed; excludes tests, test support, and docs). The bidirectional source-bound cursor and retained-reference contracts require the growth. The embedded adapter alone loses 18 production lines.
Evidence
Page-assembly fixtures, measured as serialized UTF-8 bytes:
The normal page SHA-256 is unchanged:
41c297930d98612cf3b86c478de595db5fabc4c51bfff138d72c3f87cc228aea.blacksmith-testbox, profileopenclaw-check: leasestbx_01m48zph7zxzg9wh587kw2r05bandtbx_01m493nk56d954pa6yydm47ng9. The rebased RPC run passed 22 tests in 66.07 s; the final page-owner/embedded run passed 34 tests in 24.49 s; UI jsdom tests passed 61 tests in 6.66 s. Earlier ownership/recovery coverage also passed.node scripts/check-changed.mjs --staged, undernice -n 10 ionice -c3with a worktree-ownedTMPDIR. The run took approximately 45 minutes and verified candidate tree671726c296fc3ee7012e737b84a82e3610204681on basec10679395819.The first Testbox completed before its remaining gate steps finished. Its replacement queued for more than 20 minutes, enabling the authorized rig fallback. Static validation found and resolved a fixture timestamp, an unnecessary test sort, and a test-only export. No checks were waived. The final rebase onto
4de57f22aa1dpreserves every source/docs/test blob; only the baseline file incorporates unrelated upstream pruning. CI validates the published head.CI follow-up
bcaaf25c15d1updates two stale test expectations without production changes. It passed independent review and focused proof onblacksmith-testboxleasetbx_01m49cn4e4mfwrmjkq21ycxh7k. The initial security-fast failure is the inherited MCP production-dependency advisory GHSA-6qxp-vccf-f47h, tracked by #166217; this PR changes no dependency versions or lockfile entries.CI follow-up
d4856a668b01narrows the E2E request parameters through the shared record coercer, resolving the test-only TypeScript error. Independent review is clean. The exact candidate tree5f5979b1c5cf6e52a768bb17f26a078ad3ee9981passednode scripts/check-changed.mjs --stagedon the authorized Linux rig fallback (openclaw-node-01,/srv/rig/wt-lane560-history-bound-20261006-1734), exit 0, about 10 minutes. The UI E2E type graph passed in 104.3 s; all three export scans reported zero entries; changed-file lint passed in 25.0 s with zero warnings/errors. Formatting, graph boundaries, i18n verification, dependency/patch guards, and test ratchets also passed. The pending Testbox leasetbx_01m49e5h4f1ajrf8gdte31d645was stopped after rig verification. On headd4856a668b01, all selected Node test shards, typechecks, UI unit/E2E suites, UI performance, and build checks pass. In CI run37528922395, the remaining reported failure issecurity-fast: the same inherited MCP advisory above. Android/native checks are still running at this handoff. Full CI is not green; this PR has not been merged.The same CI run also failed the unchanged Android
ChatComposerLayoutTest.progressCardRendersAdjacentBarsWithoutLeakingMarkuptest: it could not find theExpand progress cardnode. Identical Android inputs passed on the previous head; the test suppliesprogressCard.getdata directly and does not exercise the changed history APIs. The cause is unresolved, and no Android code or assertion has been changed.Proof uses isolated synthetic state and jsdom components. No live deployment or browser automation was performed.
Focused commands and test cost
Changed test execution totals in the initial single-worker Gateway run: request budget 19.05 s; source cursors 7.94 s; page recovery 15.36 s; page byte limits 0.02 s; full-message handler 23.79 s. UI totals: tool output 1.36 s; transcript recovery 1.66 s; full-message loader 0.04 s. RPC fixtures require the actual SQLite/worker/authorization boundary to catch dropped cursor fields and retained-source mistakes. Initial CI executed the worker test file in 13.44 s and found the stale tiny-budget assertion. The corrected file passed 5/5 on Testbox in 19.44 s (38.88 s wrapper), and both changed tests passed lint in 14.7 s. The browser fixture retains its full-output/copy/download assertions and now checks that the requested capacity covers the fixture, rather than pinning the old 2M implementation value.