Repository navigation
fix(cli): avoid local startup validation for Gateway model runs - #158136
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 September 27, 2026, 3:58 PM ET / 19:58 UTC (Revision 24). ClawSweeper reviewWhat this changesThe branch gives Gateway model runs client-only config validation for both CLI aliases, adds parsed-flag regression cases, and adjusts TUI and browser test fixtures. Merge readiness✅ Ready for maintainer review Current main still sends Gateway model runs through local startup preflight. This PR has a distinct fix, and its parsed-option policy resolves the prior raw-argument review finding. Priority: P1 Review scores
Verification
How this fits togetherThe inference CLI parses a model-run command and checks configuration before dispatching it locally or through Gateway RPC. The Gateway handles the remote agent request and its session writes. flowchart LR
A[Model-run flags and prompt] --> B[Commander parsing]
B --> C{Gateway transport?}
C -- Yes --> D[Client config validation]
C -- No --> E[Local startup preparation]
D --> F[Gateway agent request]
E --> G[Local model execution]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +19, Tests +71. Total +90 across 7 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Keep transport selection aligned between CLI startup and dispatch, with Doctor owning legacy repair and local runs retaining their preflight. Do we have a high-confidence way to reproduce the issue? Yes at the source level: current main sends Gateway model runs through the normal local preflight. I did not replay the reported concurrent lock failure. Is this the best way to solve the issue? Yes: the patch uses the registered command's parsed transport options in the existing startup policy and retains the local/default path. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against ad76f83efaa0. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (23 earlier review cycles; latest 8 shown)
|
Resolve the generated Workboard manifest conflict using the current main asset output. Preserve the parsed transport startup policy and contributor ancestry. Co-authored-by: VACInc <[email protected]>
|
@clawsweeper re-review Published |
|
🦞👀 Re-review progress:
|
|
Merged via squash auto-merge.
|
Integrate upstream main while retaining PR openclaw#158136 CLI startup policy and TUI history-load synchronization. Co-authored-by: VACInc <[email protected]>
Restore the upstream PTY test file, preserving PR openclaw#158136 and removing duplicate frame waits. Co-authored-by: VACInc <[email protected]>
…claw#158136) * fix(cli): keep gateway model runs out of local state migration * fix(cli): use parsed transport for Gateway model startup Keep Gateway model invocations on non-observing validation while retaining local/default preparation. Cover flag-shaped prompts through real Commander parsing. Preserve bounded browser diagnostics and correct the TUI fixture to assert the loaded target frame rather than appended prior-session redraws. Co-authored-by: VACInc <[email protected]> * fix(workboard): carry canonical generated asset refresh Keep the generated Control UI manifest consistent with the unchanged canonical asset builder. The regenerated manifest exactly matches main commit 4afb919 after the protocol activity schema update; no capabilities or permissions change. Co-authored-by: VACInc <[email protected]> --------- Co-authored-by: VACInc <[email protected]>
Summary
High Level TLDR
Gateway-backed model runs now validate client configuration without preparing local shared state. Both
infer model runandcapability model runuse Commander-parsed transport options, so prompt text such as--localcannot change the startup path.What Problem This Solves
Fixes: Gateway model commands can enter local startup preparation, and flag-shaped prompt values can make preparation disagree with the selected transport.
User Impact
Gateway runs use non-observing config validation. Default/local runs retain their existing preflight. No new configuration, permissions, schema, or migration is introduced; explicit Doctor remains the repair owner.
Why This Change Was Made
Root Cause
The original catalog omitted model-run startup policy. The initial raw-argv correction then confused option values with transport flags. The registered action selects transport from parsed Commander options; startup now consumes those same facts. Earlier negative-control testing reproduced six failing routing cases before the correction.
Verification
Current candidate
Published head:
f056c528db3b32728b2e48404f19a81adf79d223; tree:d9eee5027193cd6e9e9bcff5ed7a456bb716e9fc.ad76f83efaa0b21b9eda589ea681807d124de68bto resolve the actual generated Workboard manifest conflict. The manifest now matches main exactly; the canonical Workboard asset generator reproduced it without changes. Original contributor ancestry and VACInc coauthor credit are preserved. The net candidate is seven files.node scripts/run-vitest.mjs src/cli/program/preaction.test.ts src/cli/program/config-guard.test.ts src/cli/command-startup-policy.test.ts --maxWorkers=1.f056c528db3b32728b2e48404f19a81adf79d223. An initial pre-commit ratchet attempt selected the old HEAD merge base while the merge was uncommitted and reported an untouched backup test; after committing the reconciliation, the correct-base line-cap ratchet passes. This was a check-context failure, not a source repair or passing full gate.Hosted test cost
src/cli/program/preaction.test.ts: 90/90 passed; 5.16s CI wrapper wall / 3.62s Vitest, inchecks-node-changed-3. Prior standalone one-worker wall cost: 59.16s.ui/src/pages/plugin/plugin-page.session-navigation.browser.test.ts: seven Chromium cases passed; 0.813s test execution / 1.394s module elapsed, inchecks-ui (2/3). Prior standalone one-worker wall cost: 2.50s.src/tui/tui-pty-harness.e2e.test.ts: retained standalone one-worker cost 121.86s for 72 tests. No per-file timing for this file was present in the inspected current CI changed-node/UI shard logs; no new standalone cost claim.Real behavior proof
Retained proof on previous published head
7f5985d87c724e94e92c0e150bbb79a38bbd8455: four model calls through disposable isolated Gateways passed across fresh and Doctor-migrated synthetic fixtures, covering both aliases and a--localprompt value. Four synthetic provider requests were observed; Doctor exited zero and migrated session identity/timestamp and cleanup were verified. Total: 34.466s. The parsed transport fix remains unchanged; this is previous-head synthetic-provider proof, not a new current-head runtime or production claim.What was not tested
No production deployment, live Gateway change, real-provider latency benchmark, or successful full native suite is claimed. The previous full-suite controller received SIGTERM/exit 143; its allocation was terminal and its lock recovered. Prior build/static/UI-budget results are historical evidence, not current-head CI.
Browser readiness diagnostics do not prove a fix for #159679. The retained TUI fixture correction addresses append-only redraw history as documented in #159777. Earlier attempts and measured changed-test costs remain below.
Evidence
ClawSweeper revision 24 completed on exact head
f056c528db3b32728b2e48404f19a81adf79d223at 19:58 UTC: no actionable findings, no before-merge items, ready for maintainer review. It explicitly confirms the parsed-options correction resolves the prior finding. Exact-head CI completed successfully; both enforced CI/security gate statuses passed. Native merge reconciliation verified the exact attempted head landed asddc8ebeabfe04dcffe70d38e21114049f385f1f8on September 27 at 20:06 UTC. Original implementation and incident report: @VACInc.Retained earlier evidence and interrupted validation history
What Problem This Solves
Fixes: Gateway-backed model commands enter local startup validation, and flag-shaped prompt values can select the wrong validation path.
User Impact
infer model run --gatewayandcapability model run --gatewayuse non-observing client config validation, including prompts such as--local. Local/default runs retain normal startup validation. No new flags, configuration migration, or user action is required.Why This Change Was Made
Startup now uses the transport options actually parsed by Commander rather than scanning prompt text for flag tokens. Both command spellings share the decision. Main already confines legacy imports and repair to explicit Doctor through #151025; this change preserves that ownership and keeps RPC clients out of local startup preparation.
Original implementation and incident report by @VACInc; contributor history is preserved.
Evidence
Current reviewed candidate: 7f5985d, tree 8bc47d0aa646bda89a45c4ed113aed60de30a973, preserves signed incoming head 216a9a4. Its complete eight-file net diff passed fresh independent P0–P3 source review (two passes, zero findings, scoped-clean; confidence 0.81). Review used supplied source context; it does not substitute for executed gates. Test-audit and deslop preceded the review. The incorporated startup-cleanup dependency passed 165 affected tests across five files in 66.72s. Native validation and read-only merge simulation against captured main 3d62d4e passed.
Generated asset reconciliation: the fresh build exposed two stale Workboard asset references in the updated base. The generated manifest now exactly matches canonical main fix 559b4f84; no plugin permission or capability changed. The unchanged build hook reproduced the same output, and full pnpm plugins:assets:check passed with a clean tree after commit. The superseded attempt was stopped before any remote allocation; its runtime prerequisite correctly refused the dirty tree before starting a Gateway. That refusal is not reported as runtime proof or a full gate pass.
Current exact-candidate runtime proof: all four concurrent model calls succeeded through real disposable Gateways on 7f5985d, across fresh and explicit-Doctor-migrated synthetic legacy fixtures. Both command aliases were exercised, including a prompt value of --local. Four synthetic HTTP provider requests were observed; public sessions.list checks retained the migrated session ID and timestamp. Doctor exited zero and both disposable environments cleaned up. Total proof wall time: 34.47s. Network/PID isolation excluded the operator Gateway and real provider credentials; this is runtime correctness proof, not external-provider latency evidence.
Current build and budgets: native build passed in 6m 10.4s and left the committed tree clean. The CI-equivalent pnpm ui:check-performance:base 574927f comparison passed on exact candidate 7f5985d in 44.27s: startup JavaScript 371,162 B under the unchanged 371,332 B limit, largest ordinary chunk below 215 KiB, and zero startup/largest CSS delta. The canonical normalized build identity resolves the raw build's report-only advisory without changing budgets. The new full native run began at 17:14 UTC: native build and complete static checks passed. The full 679-shard Testbox attempt used parallel projects/max workers both 2. Its local controller was interrupted by SIGTERM around 19:14 UTC and reported child exit 143; the local test log stopped advancing and no successful delegated timing report or native gates.env was produced. The provider still reported the lease ready during recovery inspection; allocation readiness is not workload completion. The operation lock was initially retained. After the provider reported the Testbox completed and the recorded local tools were absent, it was recovered using the native exact-token command before the later handoff push. No duplicate tests or source edits were performed. Its applied source capsule explicitly verifies candidate 7f5985d and tree 8bc47d0aa646bda89a45c4ed113aed60de30a973 (carrier f9a3e0d60b450bf65d044a7efda9509e5844bd81). The Actions workflow SHA is hydration metadata, not the tested candidate. No full-suite success is claimed.
Signed-base integration checkpoint (before the current generated refresh): GitHub produced head 216a9a4 at 16:19 UTC, preserving the prior head and incorporating main 574927f. Its signature and ancestry were verified. All eight correction-delta files composed on it are byte-identical to reviewed local candidate d27ef07; the net PR correction remains seven files. The package/lockfile and previous review contexts were unchanged; the nearby startup capture-cleanup owner now distinguishes Gateway contention from other failures. That interaction has passed the affected 165-test refresh and whole-candidate review described above.
Full native run failed and was stopped: the 679-shard run used verified source 2e720285489 / tree 1139f32e82ed080dd2958569e53daa88ccfc6729. Its TUI PTY lane recorded one failed assertion, 114 passing tests, and one existing skip across nine files. The received output contained the old session footer followed by the clean target footer. #159777 records the append-only-history fixture cause and deterministic counterexample. The already-red run was stopped and its owned Testbox was verified completed; this is not a full-suite pass.
Conflict reconciliation: the prior local prerequisite fixes conflict with the now-landed canonical repairs #158739 and #159061. GitHub’s exact-head base update produced verified signed merge 7d9fc7d, with parents 5f929a6 and current main 6786cc7. Contributor ancestry is preserved. The remaining CLI correction and browser diagnostics are committed on that base without the obsolete fixture patches. A fresh read-only merge simulation against native main checkpoint f0b149f was conflict-free; no unsigned local merge or correction publication was used.
Before the additional TUI fixture repair, independent P0–P3 autoreview was scoped-clean for the six-file candidate (confidence 0.88; zero findings). Test-audit and deslop preceded review. The complete seven-file repair then passed independent P0–P3 source review (two passes, zero actionable findings; confidence 0.80). The subsequent signed base update introduced a relevant startup-cleanup dependency; its affected proof and whole-candidate review have now passed as recorded above.
415 focused tests across eleven files passed on the refreshed corrected tree in 136.25s command wall, including current model lazy-loading, config snapshot, startup recovery/availability and Commander boundaries. A test-only negative control on exact hosted head 7d9fc7d failed six of sixteen model-run routing cases for the intended reason; all sixteen pass after correction. The required one-worker preAction file passed 90/90 in 59.16s command wall / 52.66s Vitest (91% cold transform, test execution 1%). Complete standalone static validation passed. The native fresh build also passed (7m 38.3s); the native complete static check also passed, but its full-suite run then failed the TUI fixture check and was stopped.
Narrow TUI fixture repair: use the existing authenticated current-screen owner to wait for the loaded target-session footer, rather than slicing append-only PTY history. Keep every mode-absence, trace transition, and process-owned delivery assertion, with unchanged wait and test deadlines. The original-order nine-file replays passed 115 tests plus one existing skip both unchanged and with the initial frame-based correction; a passing unchanged replay is not a fix. The final loaded-metadata guard passed the entire changed file: 72/72 tests in 121.86s one-worker command wall / 118.21s Vitest; the existing frame-oracle tests passed 8/8 and targeted static checks passed. No production TUI behavior, case count, process boots, assertions, or deadlines changed.
Earlier exact-candidate runtime proof passed: on local candidate 2e720285489, all four concurrent model calls returned successful Gateway transport results across fresh and Doctor-migrated synthetic legacy-state fixtures. Both infer and capability are exercised, including a prompt value of --local. The synthetic HTTP provider received exactly four requests; public sessions.list checks preserved the migrated session ID and timestamp, and both disposable instances cleaned up. Total proof command: 40.24s. Network/PID isolation excludes the operator Gateway and real provider credentials; the expected remote-catalog refresh warning reflects the isolated network.
Earlier CI-equivalent UI budget comparison passed: pnpm ui:check-performance:base 6786cc7 on exact candidate 2e720285489 completed in 57.54s using the repository-owned normalized build identity and common toolchain (Node 26.8.2, Vite 8.3.0, Pako 3.0.2). Startup JavaScript was 371,154 B under the unchanged 371,332 B limit; startup/largest CSS delta was zero. This investigated the raw build’s 40-byte advisory overshoot without widening any budget or modifying the running native candidate.
Historical runtime proof, not current-base validation: four concurrent model calls passed through real disposable Gateways and a synthetic HTTP provider on exact candidate
01659543fa6, across fresh and migrated legacy-state fixtures. Actual Doctor imported the legacy session, and publicsessions.listreads retained its ID and timestamp before and after the concurrent runs.Full native build and static checks passed on local candidate
dc1e8117ea0. Five baseline Docs Agent fixture failures were reproduced on unchanged main and repaired without workflow changes or weaker assertions; all 175 related tests passed. The private-QA prerequisite was successfully built in a disposable profile, without touching the operator Gateway.The subsequent shared-host full test run failed, including proxy-produced secret-egress responses and resource cleanup errors. An exact-tree isolated replay passed all 85 representative MCP/secret-egress cases; this is environment-triage evidence, not a full-suite pass.
The isolated full test gate then failed at a pre-existing Gateway fixture startup timeout. Its exact 45-file, 476-test original-order shard passed on a clean isolated replay (350.21s versus 1186.84s under full-suite co-scheduling). The specific bottleneck remains unproven; a passing replay is not a fix. Reproduction, suspected resource-pressure cause, and cleanup safeguards are tracked in #158957.
A subsequent full run exposed a second pre-existing fixture defect in
src/process/exec-spawn.test.ts: it treats a non-running PID as proof that its process group has disappeared. A deterministic isolatedwaitid(WNOWAIT)/waitpidprobe reproduced the mismatch with a real zombie. The original failing process table was not captured. #158997 records the cause and reproduction. The local repair replaces the existing PID-liveness wait with actual group-extinction observation using the same 2,000ms deadline and 25ms interval; PID-reuse and unrelated-process safety assertions remain.On exact repaired tree
098590dbd0a2b8abef61c5af057780bafbc6bf45, the changed process file passed 14/14, and its full process shard passed 976 cases with 64 unchanged platform skips (73 passing files and one unchanged skipped file). The earlier failing full run was stopped and its owned lease was verified terminated; it is not counted as a full-suite pass.The earlier Gateway lifecycle case also passed during the two-project full run in 31.985s. That does not close the unlocalized load-related report. The 1,372-file UI shard passed unchanged in 672.40s, versus 1,214.92s in the prior four-project run; these are separate-run observations, not a claimed fixture fix.
An extra remote changed-file check selected its default
origin/mainbaseline and reported growth in an untouched UI file after newer main shrinkage. That file is identical to the pinned PR base. That original attempt remains recorded as failed. The supported local changed-file check, explicitly bound to the real PR base5d952773, then passed all selected ratchets, formatting, typechecking, dead-export scans, and lint. The native build and full static checks also passed on committed candidatec3dc1ecc834; its complete Testbox suite subsequently ended with delegated exit 255 after 7,198.079s, without a Vitest failing-test summary or successful full-suite receipt. The owned lease is terminal. The exact termination owner is unresolved; bounded provider/source/log investigation is recorded in #159187. No unchanged retry or deadline increase was used.The process-fixture stability bar is complete on the repaired tree: 20/20 standalone file runs (14 cases each) and 3/3 runs of the original 74-file process shard, including its sibling tests (976 passing cases per run, unchanged platform skips). The final stability and cost allocation returned delegated exit 0 and was stopped; enclosing Actions allocation cancellation can be normal lease cleanup. These were one-off proof runs with stop-on-first-failure, not added CI retries or test cases.
Earlier full attempt failed and was then interrupted: build and full static checks passed, but the observed Testbox run recorded one Chromium failure in the sandbox-frame readiness helper of ui/src/pages/plugin/plugin-page.session-navigation.browser.test.ts (110/111 files and 1,428/1,429 tests passed in that browser shard). The actual click/navigation assertions were not reached. Later, local native-wrapper and SSH processes received SIGTERM from PID 1 at 03:19:54 UTC; native exit was 143, not a full-suite success. The enclosing allocation eventually showing success is not the delegated test verdict. #159679 tracks the browser failure. An unchanged, exact-tree replay of all 111 browser files passed all 1,429 tests in 103.25s wall / 101.40s Vitest; that passing replay is not a fix. The current investigation adds bounded frame-load/message diagnostics without changing assertions or deadlines and reproduces the browser shard alongside its observed 153-file agents-core neighbor. No additional repair is claimed from diagnostics alone.
Prior reviewed candidate eefe61952eb / tree e6cbe37c9ef138b25946ec02654737b1dcc00b47: bounded browser triage did not establish a safe causal repair, so the original one-second readiness deadline, real frame, source checks, and navigation/order assertions remain unchanged. Failure-only diagnostics now retain up to 16 lifecycle/message events and DOM state. Both the complete browser/agents-core pairing and a follow-up that waited for actual neighboring test execution passed; those are not flake-fix claims. The changed UI file passed 7/7 tests in 2.50s one-worker command wall / 1.32s Vitest. The pinned-base static gate passed, test-audit/deslop were completed first, and fresh whole-candidate P0–P3 autoreview is scoped-clean. Its new build passed, but the run was intentionally stopped during static checking before any Testbox allocation after the current-main merge preflight proved four fixture conflicts. This is not a full-gate pass; publication remains pending.
Publication for handoff completed: after the contributor explicitly corrected the scope to branch publication rather than native landing preparation, the managed roboclaw-bot identity pushed exact commit 7f5985d by normal fast-forward. The fork branch reported no active rules; contributor ancestry, the reviewed tree, and VACInc credit were preserved. The prior Testbox was terminal and the stale native lock was recovered through its exact-token command before publication. This does not create native successful-gate or signed-publication receipts. Full validation and current-head CI/review remain incomplete; no merge or auto-merge was requested.
ClawSweeper verification
Audited ClawSweeper revision 16 (September 27, 14:56 UTC) in the retained review, explicitly bound to hosted head 7d9fc7d. GitHub reports no inline review threads and no separate formal reviews. The four checklist entries track one substantive parser-boundary defect and its publication/review requirements:
No security finding or additional unanswered question appears in the current review. Earlier proof requests are superseded by its explicit maintainer exemption and no-stored-data-contract assessment; the stronger runtime evidence above remains available. The corrected published head must receive a fresh ClawSweeper review before any separately authorized landing.
Scope limits: no production deployment, real external-provider latency claim, or full published older-version updater test. The earlier read-only runtime fixture logged a post-reply best-effort hidden-session cleanup warning in the unchanged
src/agents/internal-session-effects.tsowner; replies and retained-session checks passed, but this PR makes no cleanup/durability claim.Test audit, cost, and failure triage
pnpm test src/cli/program/preaction.test.ts --maxWorkers=1passed in 25.00s wall, 22.99s Vitest, dominated by cold compilation (test execution below one second). Seven sibling files passed in 39.15s wall. The changed Docs Agent fixture was also measured withpnpm test test/scripts/ci-linux-git.test.ts --maxWorkers=1: 125/125 passed in 65.95s command wall, 64.78s Vitest. Its shared fixture helpers are exercised by this file and the Git-lifecycle suite, not separate executable suites.pnpm test src/process/exec-spawn.test.ts --maxWorkers=1passed in 17.05s command wall, 15.18s Vitest, in the isolated Testbox; the complete process shard took 124.53s command wall / 88.91s Vitest. A matched clean Linux/Node 24 single-worker comparison of the full Docs Agent file measured 51.32s wall / 50.18s Vitest before (pinned base5d952773: 120 pass, five expected fixture failures) and 50.24s wall / 49.22s Vitest after (125 pass). These used separate 16-vCPU Testboxes, and the baseline fails early, so no causal speedup is claimed. This existing >30s suite protects branch/provenance, failure propagation, and cleanup through real Git and process ownership; replacing those boundaries with mocks would miss the contract. No cases or process boots were added. The newly changed UI browser file passed via pnpm test ui/src/pages/plugin/plugin-page.session-navigation.browser.test.ts --maxWorkers=1 in 2.50s command wall / 1.32s Vitest, 7/7 tests. Current-head CI timing is pending publication.Original incident report and earlier evidence (historical)
Summary
High Level TLDR
Fixes a Gateway reply failure when a concurrent
openclaw infer model run --gatewaystarts local state maintenance. Gateway model runs now validate local config without entering Doctor's shared-state migration preflight. Local model runs keep their existing startup path.Root Cause
Before the fix, the command catalog had no policy for
infer model runor itscapabilityalias. Both inherited the defaultrunconfig guard.ensureConfigReadytherefore considered state migration even with--gateway, although this command sends its turn by Gateway RPC. During the reported incident, Gateway logs showedanother OpenClaw process owns state-lifecycleacross session, ingress, and reply writes; a separate one-shotopenclaw-inferprocess was observed holding the shared-state lifecycle lock. The deployed CLI fallback overlay touched a different file and did not change this startup route.What Problem This Solves
Fixes: a Gateway-backed one-shot model command can contend with its own Gateway's shared-state lifecycle and cause replies to fail.
User Impact
Concurrent Gateway model runs no longer start local state migration. No schema, configuration, or update migration changes are required.
Why This Change Was Made
The command catalog now chooses validation-only startup for
--gatewayand retains normal startup for the default local transport and--local. The same policy covers thecapabilityalias.Initial submission verification
2 failed | 17 passed) and pass after the fix (19 passed). Command:node scripts/run-vitest.mjs src/cli/command-startup-policy.test.ts --maxWorkers=1under Node 24.19.0. Whole command: 24.29 seconds after the fix.node scripts/check-changed.mjspassed for core and core tests, including formatting, targeted lint, core and selected test typechecks, repository guards, and import cycles.git diff --checkpassed. Diff-scoped independent review found no actionable P0–P2 issue.Initial submission behavior proof
The startup-policy test exercises the command's registered selection for both
infer model run --gatewayandcapability model run --gateway: each returnsskipConfigGuard: false, validateConfigOnly: true. Default and explicit local runs return novalidateConfigOnlyflag. The original code failed those gateway assertions. Source inspection confirmsvalidateConfigOnlypreventsensureConfigReadyfrom running the Doctor migration preflight and uses a non-observing config read. Incident logs show the prior Gateway error and a concurrent CLI lock holder, with private routing details omitted here.What was not tested
The patch was not deployed to the live Gateway; live restarts are paused. No live chat replay or representative end-to-end latency benchmark was run. An isolated CLI test cannot measure this incident's real concurrent Gateway load, so no deployed latency improvement is claimed.