Repository navigation
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review in progressClawSweeper is reviewing this revision. This supersedes any previous blocked status. |
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: f5378538a4
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Run native app-server spawn and bounded stdio forwarding in a tracked worker while preserving direct-parent registration and containment. Keep shared-client reuse and catalog refresh policy unchanged. Prove the blocked-spawn regression red on the original transport and green with the worker; verify the public Gateway catalog and concurrent health RPCs. Record the resource tradeoff and inherited line-cap failures in the PR.
The precise host-env rule matches a removal list nested in a test object. Scope the exception to that unchanged fixture line; keep the rule, inputs, assertions, and production behavior unchanged. Reproduced with OpenGrep 1.32.0 on the exact base and introducing commit 9284c76 (#167443); the candidate scan passes.
Allocate exactly the 166 net regression-test lines for blocked-spawn responsiveness, launch authority after worker startup, and native kill with caller stdin open. Keep the shared scalar unchanged and prune only the retired transport-spawn mock baseline entry. Both focused ratchets and Codex autoreview pass.
f537853 to
868e1d6
Compare
Preserve null native exit facts after worker startup errors, with a real-worker red/green regression. Allocate exactly 34 additional test lines for this distinct lifecycle failure. Disambiguate inline rename errors from toast alerts and use the existing trusted-pointer widget helper without weakening outcome assertions.
Keep pumping the virtual clock until the login gate is visible with exactly one connect attempt. The mock records requests before delivering queued responses; a delayed-response diagnostic reproduces the old deadlock. Preserve denial, retry pacing, and explicit reconnect assertions.
|
Merged via squash.
|
…tory (#192603) #192543 moved the managed Codex app-server spawn into the stdio.worker.ts worker thread so uv_spawn cannot block the Gateway thread. The packed dist/stdio.worker.js now carries that reviewed dangerous-exec finding; without an inventory entry the next plugin npm publish fails on @openclaw/codex.
…192543) * fix(codex): avoid Gateway freezes during app-server launch Run native app-server spawn and bounded stdio forwarding in a tracked worker while preserving direct-parent registration and containment. Keep shared-client reuse and catalog refresh policy unchanged. Prove the blocked-spawn regression red on the original transport and green with the worker; verify the public Gateway catalog and concurrent health RPCs. Record the resource tradeoff and inherited line-cap failures in the PR. * test(codex): document Git env removal scanner fixture The precise host-env rule matches a removal list nested in a test object. Scope the exception to that unchanged fixture line; keep the rule, inputs, assertions, and production behavior unchanged. Reproduced with OpenGrep 1.32.0 on the exact base and introducing commit c5bd4bd (openclaw#167443); the candidate scan passes. * test(codex): account for worker lifecycle regressions Allocate exactly the 166 net regression-test lines for blocked-spawn responsiveness, launch authority after worker startup, and native kill with caller stdin open. Keep the shared scalar unchanged and prune only the retired transport-spawn mock baseline entry. Both focused ratchets and Codex autoreview pass. * refactor(codex): let the stdio worker own pipe selection * fix(codex): report worker failure once and repair UI test consumers Preserve null native exit facts after worker startup errors, with a real-worker red/green regression. Allocate exactly 34 additional test lines for this distinct lifecycle failure. Disambiguate inline rename errors from toast alerts and use the existing trusted-pointer widget helper without weakening outcome assertions. * test(ui): settle denied handshake before stopping the clock Keep pumping the virtual clock until the login gate is visible with exactly one connect attempt. The mock records requests before delivering queued responses; a delayed-response diagnostic reproduces the old deadlock. Preserve denial, retry pacing, and explicit reconnect assertions.
…tory (openclaw#192603) openclaw#192543 moved the managed Codex app-server spawn into the stdio.worker.ts worker thread so uv_spawn cannot block the Gateway thread. The packed dist/stdio.worker.js now carries that reviewed dangerous-exec finding; without an inventory entry the next plugin npm publish fails on @openclaw/codex.
…RV (#192591) * fix(release): review Codex stdio worker exec in plugin npm scan inventory #192543 moved the managed Codex app-server spawn into the stdio.worker.ts worker thread so uv_spawn cannot block the Gateway thread. The packed dist/stdio.worker.js now carries that reviewed dangerous-exec finding; without an inventory entry the next plugin npm publish fails on @openclaw/codex. * ci: scan main-built plugin npm packs for reviewed-finding drift Release publication repacks plugins with its own tooling and scans the exact tarballs, but CI never scanned main-built packs, so a bundler bump (#188576) that moved a reviewed content hash only failed at publish. Add a check-additional row that packs selected publishable npm plugins and runs the release scanner; PRs select it from lockfile, bundler, packer, scanner, or plugin changes, and hourly/manual runs scan every package. * fix(release): scan plugin npm packs with publisher tooling in FRV Move the reviewed-finding drift scan out of PR/main CI and into Full Release Validation's Prepare exact plugin npm artifacts job. While the C-tooling preflight child runs, the job packs selected plugins that carry reviewed findings with the admitted publisher tooling P and scans them with P's inventory, exactly as Plugin NPM Release's normal route will. * test(release): compact publisher-tooling scan proofs Fold the drifted-bytes driver test and FRV wiring test into fewer lines and drop the iMessage reviewed-hash case it now covers.
* fix(release): shorten branch push preflight (#188743) * fix(release): shorten branch push preflight Co-authored-by: RomneyDa <[email protected]> * fix(release): shorten branch push preflight OpenClaw-Publication: c44888a1-979b-4d99-8ae5-cbd42b006db0 --------- Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit a03f8f6) * fix(release): pin stable OpenCode Go smoke to reachable model (#188814) Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 81ecf56) * fix(release): install WebKit for repo UI E2E (#188985) FRV repo UI shards run WebKit-owned suites, so provision WebKit alongside the cached Chromium install. Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit a57e5be) * fix(release): prevent ghost FRV reruns (#187996) * fix(release): prevent ghost FRV reruns Refuse multi-job retries, bind recovery to one exact failed job, and keep ambiguous mutations write-once. Treat duplicate-contaminated attempts as unsealable evidence. Co-authored-by: RomneyDa <[email protected]> * fix(release): preserve cancellation of ghost reruns Keep authenticated cancellation possible for runnerless ghost copies and update the producer recovery fixture for exact-job reruns. Co-authored-by: RomneyDa <[email protected]> * docs(release): align exact-job recovery contract Declare the single-job planner result and update operator guidance for conservative FRV recovery. Co-authored-by: RomneyDa <[email protected]> * fix(release): retire stale FRV client method Co-authored-by: RomneyDa <[email protected]> --------- Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 61306dd) * fix(release): normalize recovery run flags (#188019) * fix(release): normalize recovery run flags Co-authored-by: RomneyDa <[email protected]> * fix(release): preserve candidate help ordering Co-authored-by: RomneyDa <[email protected]> --------- Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 3c0c838) * fix(release): support nonblocking FRV job reruns (#188020) * fix(release): support nonblocking FRV job reruns Co-authored-by: RomneyDa <[email protected]> * fix(release): support nonblocking FRV job reruns OpenClaw-Publication: cf45f54b-799d-4a3d-ba11-36ba3eb8d603 * chore(release): retain FRV change attribution Co-authored-by: RomneyDa <[email protected]> --------- Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 03c9066) * fix(release): retry transient plugin readbacks (#188016) * fix(release): retry transient plugin readbacks Co-authored-by: RomneyDa <[email protected]> * fix(release): retry transient plugin readbacks OpenClaw-Publication: 86d82eb3-6bef-4dee-9b68-4772e0e4d9b5 * chore: preserve release fix attribution Co-authored-by: RomneyDa <[email protected]> * test(release): type retry delay callback Co-authored-by: RomneyDa <[email protected]> * fix(release): preserve readback rate-limit headers Co-authored-by: RomneyDa <[email protected]> --------- Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 546f56b) * ci(ios): explain screenshot Xcode mismatch (#190754) Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit cd2f589) * fix: keep release tooling fixtures runnable in module worktrees (#192456) * fix: keep release tooling fixtures runnable in module worktrees Use explicit CommonJS payloads for Crabbox command shims and ESM for extensionless release-tooling fixtures. Preserve current main source ownership and relocated build hooks. Co-authored-by: RomneyDa <[email protected]> * fix: keep relocated Crabbox fixtures with archive assets Resolve fs-safe fixture imports to their package-owned file URLs so the TAR parser retains its WASM asset after bundling and fixture relocation. Co-authored-by: RomneyDa <[email protected]> * fix: execute managed Crabbox fixture launchers directly Keep candidate and managed binary fixtures on the explicit CommonJS launcher boundary rather than passing shell shims to Node. Co-authored-by: RomneyDa <[email protected]> * test: allocate exact release fixture repair growth Allocate the measured 16 test lines required by explicit CommonJS launchers, ESM fixture imports, and package-owned archive assets. Keep shared baseline and test coverage unchanged. Co-authored-by: RomneyDa <[email protected]> --------- Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit baaa010) * fix: keep remaining release fixtures runnable in module workspaces (#192475) * fix: keep remaining release fixture executables module-safe Adapt executable and onboarding repairs to current main without reverting its fixture refactors or weakening assertions. Co-authored-by: RomneyDa <[email protected]> * test: isolate ClawHub loopback requests from host proxies Keep the current-main fetch implementation unchanged and allocate the exact 21 added fixture lines without adding or weakening test cases. Co-authored-by: RomneyDa <[email protected]> --------- Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 22f8b25) * fix: keep release fixture proofs valid in deep workspaces (#192494) Adapt approved native-update and socket fixture repairs to current main owners. Preserve exact 500-code-point diagnostics, real ingress, actual socket inodes, and existing timeouts. Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 0a21895) * fix(test): contain SDK revision compiler fixtures (#192499) Materialize the native compiler API, libraries, and platform binary inside each synthetic revision before fake pnpm installation settles. Adapt reviewed release repair 4e64bf37aff5835061047dfcd887b579b29d43a9 to current main fixture helpers without weakening declaration containment or assertions. Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit fa99733) * fix(test): isolate release fixtures from enclosing checkout state (#192487) * fix(test): isolate fixture package and Git scopes Bound runner fixtures with a neutral package scope and require exact worktree roots before trusting Git inventory and grep results. Preserve filesystem archive discovery and authoritative empty indexes. Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 98ab00607a9285f2fcac9191e59f08abe43942ae) * test(tooling): isolate standalone checkout artifact ownership Mark synthetic updater and source-runner checkouts as independent repositories so temporary roots nested in another checkout cannot acquire its retained artifact lock. Cover the actual updater transaction against a retained enclosing owner while preserving production discovery and fail-closed cleanup. Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit a4ff53a34437ba3fde81a03d59992b892c13c1c1) --------- Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 300b020) * fix: explain release-note verification failure in shallow clones (#192389) (cherry picked from commit 8510643) * fix(ci): prevent hosted release workers exhausting disk (#192408) (cherry picked from commit 993ad40) * fix: stabilize prompt snapshots and retry incomplete installer indexes (#192596) * fix: stabilize release snapshot and install qualification Keep canonical JSON snapshots independent of formatter ignore discovery. Treat partial APT index failures as failures before the non-root installer smoke attempts package installation. Co-authored-by: RomneyDa <[email protected]> * fix: stabilize prompt snapshots and retry incomplete installer indexes Worked on by: - @RomneyDa Co-authored-by: RomneyDa <[email protected]> OpenClaw-Publication: 437273d5-8294-476c-9403-ca27c07588b6 --------- Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 111ae11) * fix(test): report HTTP status when cache probes fail (#192684) * fix(test): report redacted HTTP status for cache probe failures Co-authored-by: RomneyDa <[email protected]> * fix(test): report HTTP status when cache probes fail Worked on by: - @RomneyDa Co-authored-by: RomneyDa <[email protected]> OpenClaw-Publication: e59e6dda-7953-4ddf-b1d6-3c5a9f7815f4 --------- Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 62a6650) * ci(release): add qualified package smoke (#191654) * ci(release): add qualified package smoke Co-authored-by: RomneyDa <[email protected]> * ci(release): add qualified package smoke Worked on by: - @RomneyDa Co-authored-by: RomneyDa <[email protected]> OpenClaw-Publication: 913f7aab-a831-4aa3-879e-1d180b08173e * fix(release): route qualified package validation Co-authored-by: RomneyDa <[email protected]> * Publish openclaw/sharp-claw Worked on by: - @RomneyDa Co-authored-by: RomneyDa <[email protected]> OpenClaw-Publication: 1a30bf9a-d42d-47bd-af61-718d5260b8a2 * test(release): satisfy test-line ratchet Co-authored-by: RomneyDa <[email protected]> * Publish openclaw/sharp-claw Worked on by: - @RomneyDa Co-authored-by: RomneyDa <[email protected]> OpenClaw-Publication: cd639c2e-7eca-491e-9d13-53df324e5f61 * test(release): consolidate resource matrix Co-authored-by: RomneyDa <[email protected]> * Publish openclaw/sharp-claw Worked on by: - @RomneyDa Co-authored-by: RomneyDa <[email protected]> OpenClaw-Publication: 2984f449-f70b-40d8-b869-55a0804343ab --------- Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit 42a23ab) * fix(release): wait for npm replication before Windows Gateway notify (#192584) (cherry picked from commit 592a02f) * fix(release): read waiver aggregate logs with escape sequences allowed (#193071) (cherry picked from commit 84097d6) * feat(release): add read-only release:watch for any publish parent (#192607) (cherry picked from commit 4671dd4) * docs: minimize downtime between full release validation cycles (#193095) * docs: minimize downtime between full release validation cycles * docs: frame FRV wall-time advice as scheduling guidance (cherry picked from commit 4d36c4b) * fix(release): print core npm resume and report required candidate flags together (#192590) * fix(release): print core npm resume and report required candidate flags together * test(release): consolidate resume and flag regressions within the test-line budget * test(release): explain preflight mock isolation (cherry picked from commit b4a70ce) * fix(release): retry EPIPE readbacks and reject gated ClawHub children on cleanup (#192589) * fix(release): retry EPIPE readbacks and reject gated ClawHub children on cleanup * fix(release): keep transient codes inline for fixed tooling closures * test(release): fit transient recovery regressions in test-line budget (cherry picked from commit 658e3db) * docs(release): keep blocked release work moving (#192829) * docs(release): keep blocked release work moving Co-authored-by: RomneyDa <[email protected]> * docs(release): keep blocked release work moving Worked on by: - @RomneyDa Co-authored-by: RomneyDa <[email protected]> OpenClaw-Publication: 763d7e84-fb24-47a4-a223-d1f7af1015dc --------- Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit ffbbb51) * fix(release): scan plugin npm packs with publisher tooling early in FRV (#192591) * fix(release): review Codex stdio worker exec in plugin npm scan inventory #192543 moved the managed Codex app-server spawn into the stdio.worker.ts worker thread so uv_spawn cannot block the Gateway thread. The packed dist/stdio.worker.js now carries that reviewed dangerous-exec finding; without an inventory entry the next plugin npm publish fails on @openclaw/codex. * ci: scan main-built plugin npm packs for reviewed-finding drift Release publication repacks plugins with its own tooling and scans the exact tarballs, but CI never scanned main-built packs, so a bundler bump (#188576) that moved a reviewed content hash only failed at publish. Add a check-additional row that packs selected publishable npm plugins and runs the release scanner; PRs select it from lockfile, bundler, packer, scanner, or plugin changes, and hourly/manual runs scan every package. * fix(release): scan plugin npm packs with publisher tooling in FRV Move the reviewed-finding drift scan out of PR/main CI and into Full Release Validation's Prepare exact plugin npm artifacts job. While the C-tooling preflight child runs, the job packs selected plugins that carry reviewed findings with the admitted publisher tooling P and scans them with P's inventory, exactly as Plugin NPM Release's normal route will. * test(release): compact publisher-tooling scan proofs Fold the drifted-bytes driver test and FRV wiring test into fewer lines and drop the iMessage reviewed-hash case it now covers. (cherry picked from commit bca996c) * fix(release): exit FRV continue on repeat child failure and flag ghost jobs (#192587) * fix(release): exit FRV continue on repeat child failure and flag ghost jobs * fix(frv): advise a fresh FRV only for duplicates that persist * test: allocate FRV repeat-failure regression lines (cherry picked from commit 2270152) * fix: reject unbridgeable update compatibility inventories (#192392) (cherry picked from commit b42ae21) * fix(release): adapt backported fixtures to 11.5 owners Release adaptation: retain branch-specific exact-cut and carried-failure contracts. Replace obsolete inline publication inventories with the upstream per-workflow watcher fixture. Exact-job child reruns are write-once, so remove the retired retry expectation while retaining parent retry live-authority proof. Drop the allocation-only delta for already-covered #192389. * docs(release): align 11.5 proof guidance with fast prepush * test(agents): regenerate canonical 11.5 snapshot layout Companion to #192596 and backport adaptation of #192628. Regenerated through pnpm prompt:snapshots:gen; parsed JSON remains unchanged. (cherry picked from commit 4ffe5d5) * fix(ci): keep qualified smoke owner export private Apply the release-planner companion hunk from #192850; unrelated UI repairs are not part of this backport. (cherry picked from commit e81ab22) * fix(release): observe extended-stable and Docker-only publication Address local review of #192607 backport: recognize authenticated publisher channel titles and use exact-attempt parent job evidence for the Docker-only route. Keep missing-plugin refusal without positive Docker-only evidence. Reproduced both failures at the runReleaseWatch boundary; watcher and stable suites now pass. * fix(release): pin calibrated Kova evaluator (#188918) Co-authored-by: RomneyDa <[email protected]> (cherry picked from commit b77ccbe) * fix: use live plugin registry inspection in performance CI (#190782) Use the corrected live plugin registry inspection in Performance CI while preserving the calibrated Kova dependencies and benchmark limits. (cherry picked from commit be17538) * fix: stop stale diagnostics failures in Performance CI (#190830) Use the calibrated Kova diagnostics correction in Performance CI and keep historical timeline metadata separate from scenario work. (cherry picked from commit eb48819) * fix(test): repair release branch CI fixtures * fix(agents): continue output-limited fallback turns (#188765) Keep committed-input acknowledgment from suppressing an owner-selected format fallback for the current run. Preserve ordinary retry and other-run no-redelivery boundaries. (cherry picked from commit cf83a69) --------- Co-authored-by: RomneyDa <[email protected]> Co-authored-by: Tideclaw Bot <[email protected]> Co-authored-by: Ayaan Zaidi <[email protected]> Co-authored-by: Peter Steinberger <[email protected]> Co-authored-by: Shakker <[email protected]>
…RV (openclaw#192591) * fix(release): review Codex stdio worker exec in plugin npm scan inventory openclaw#192543 moved the managed Codex app-server spawn into the stdio.worker.ts worker thread so uv_spawn cannot block the Gateway thread. The packed dist/stdio.worker.js now carries that reviewed dangerous-exec finding; without an inventory entry the next plugin npm publish fails on @openclaw/codex. * ci: scan main-built plugin npm packs for reviewed-finding drift Release publication repacks plugins with its own tooling and scans the exact tarballs, but CI never scanned main-built packs, so a bundler bump (openclaw#188576) that moved a reviewed content hash only failed at publish. Add a check-additional row that packs selected publishable npm plugins and runs the release scanner; PRs select it from lockfile, bundler, packer, scanner, or plugin changes, and hourly/manual runs scan every package. * fix(release): scan plugin npm packs with publisher tooling in FRV Move the reviewed-finding drift scan out of PR/main CI and into Full Release Validation's Prepare exact plugin npm artifacts job. While the C-tooling preflight child runs, the job packs selected plugins that carry reviewed findings with the admitted publisher tooling P and scans them with P's inventory, exactly as Plugin NPM Release's normal route will. * test(release): compact publisher-tooling scan proofs Fold the drifted-bytes driver test and FRV wiring test into fewer lines and drop the iMessage reviewed-hash case it now covers.
* fix(codex): avoid Gateway freezes during app-server launch Run native app-server spawn and bounded stdio forwarding in a tracked worker while preserving direct-parent registration and containment. Keep shared-client reuse and catalog refresh policy unchanged. Prove the blocked-spawn regression red on the original transport and green with the worker; verify the public Gateway catalog and concurrent health RPCs. Record the resource tradeoff and inherited line-cap failures in the PR. * test(codex): document Git env removal scanner fixture The precise host-env rule matches a removal list nested in a test object. Scope the exception to that unchanged fixture line; keep the rule, inputs, assertions, and production behavior unchanged. Reproduced with OpenGrep 1.32.0 on the exact base and introducing commit 9284c76 (#167443); the candidate scan passes. * test(codex): account for worker lifecycle regressions Allocate exactly the 166 net regression-test lines for blocked-spawn responsiveness, launch authority after worker startup, and native kill with caller stdin open. Keep the shared scalar unchanged and prune only the retired transport-spawn mock baseline entry. Both focused ratchets and Codex autoreview pass. * refactor(codex): let the stdio worker own pipe selection * fix(codex): report worker failure once and repair UI test consumers Preserve null native exit facts after worker startup errors, with a real-worker red/green regression. Allocate exactly 34 additional test lines for this distinct lifecycle failure. Disambiguate inline rename errors from toast alerts and use the existing trusted-pointer widget helper without weakening outcome assertions. * test(ui): settle denied handshake before stopping the clock Keep pumping the virtual clock until the login gate is visible with exactly one connect attempt. The mock records requests before delivering queued responses; a delayed-response diagnostic reproduces the old deadlock. Preserve denial, retry pacing, and explicit reconnect assertions. Backport to 2026.11.6: retain existing node exec-server framing; omit unrelated UI/performance edits and future cloud app-server callers absent from this branch. Regenerate runtime entrypoint assets without changing dependency pins. Source-commit: 649dbeb Co-authored-by: RomneyDa <[email protected]>
Landed: merged exact reviewed head
be60aa9d4640db4dd624120ca505f467734ce84eas649dbeb9f5aae0295ca67c67c822d47c66951c0fon 2026-11-04 06:04Z through native recovery, with fully green exact-head CI and no admin bypass. Resource acceptance is recorded below.What Problem This Solves
Fixes the whole Gateway freezing when the OS stalls while launching a local Codex app-server executable.
User Impact
Other Gateway requests remain responsive while Codex process creation waits. App-server startup still waits for the executable, and the existing shared-client reuse, idle retirement, process registration, and descendant cleanup contracts remain intact. No configuration or database migration is required.
The tradeoff is one stdio worker per retained app-server, including its heap and stream-forwarding CPU cost. The measurements below expose that cost; this is an availability repair, not a throughput optimization.
Why This Change Was Made
child_process.spawnsynchronously waits on the native exec-status pipe. Moving native creation and bounded stdio forwarding into a worker preserves the Gateway as the OS parent. The existing Linux spawn broker changes the native parent and can fall back to direct spawning, so using it here would require a broader process-owner migration.A late catalog launch does not imply repeated Gateway prewarm. The service captures its async task context; later catalog work retains that label. Ordinary reads use resident/persisted rows. A demand-gated safety refresh can launch a replacement after the shared client has retired for inactivity or exited. There is no demonstrated per-read spawn to remove, and the safety refresh is needed for silent older metadata/membership changes.
The upstream contract was personally checked at Codex d84c872: single-client stdio startup, initialize admission, and newline transport/closure.
Runtime TypeScript grows by 178 lines (+1 package worker-entry line; generated artifacts net zero). That is the stdio/event bridge needed to preserve direct-parent ownership. No cache, new config, public SDK export, or schema change was introduced.
Evidence
The blocked-spawn regression fails with the original transport: a 350 ms injected native-spawn wait produces a 369.416 ms host timer gap against the <150 ms requirement. The candidate passes, preserving exact payload, trailing stderr, native exit facts, and close. Focused consumer tests cover startup refusal/retry, durable registration, native config, node execution, upgrade, orphan recovery, and containment. Final transport suite: 22 passed. Final build passed in 2m45.5s; Node and Bun native worker stdio probes passed. Codex autoreview is scoped-clean at P0–P2 after fixing a reproduced worker-stdin retirement leak.
The committed isolated Gateway proof exercises public
sessions.catalog.listwith the pinned native app-server. During its 356 ms injected spawn hold, 15 health RPCs completed, maximum overlapping latency 39 ms; all 32 synthetic sessions were returned. Gateway shutdown completed cleanly in 5.641 s and Codex exited 0. A separate source-loader stall occurred before the spawn interval; this does not claim the entire source-loaded cold flow is stall-free.Transport measurements
Median (p95), five samples per arm; with five samples p95 is the observed maximum. Source-loaded transport on Apple M3 Ultra / macOS 27.0.1 / Node v26.12.1.
A/A no-wait cold startup medians were 95.752 / 96.454 ms (ranges 93.892–97.391 / 95.250–97.091); warm stream medians 17.495 / 17.628 ms (ranges 17.151–17.596 / 17.364–17.865). The blocked-spawn A/A timer gaps were 362.331 / 357.946 ms. Allocation A/A medians were 0.564 / 0.563 MiB. All 80 samples preserved byte hashes, stderr, native exit, and exactly one spawn.
The worker removes the injected main-thread pause, but no-wait cold startup is 19.5% slower, warm transfer time is 30.3% higher, and warm total CPU is 109.3% higher. It adds about 9.33 MiB worker heap in this source-loaded workload. These adverse changes exceed A/A variation; the performance lead explicitly accepted them below. Production packaged-worker absolute costs were not benchmarked. CPU totals cover the host process (main thread plus workers), excluding the native child. Allocation figures are sampled JavaScript heap allocations; worker memory is peak JavaScript heap, not total process RSS or external buffer allocation.
Commands:
Acceptance fixed in the committed runner: one real spawn; byte-identical stdio, drained stderr and natural exit; candidate host timer gap <150 ms during the 350 ms forced native-spawn wait. Five interleaved A/A and A/B pairs per mode/delay, separate timing/allocation passes, main/total/worker CPU and worker heap, with host load recorded. Resource regressions are exposed rather than automatically accepted.
The transport fixture contains 62,000 actual workspace files/1.1 GB and 6,000 synthetic metadata rows, streaming 17.5 MiB. The workspace is launch cwd context, not scanned. Its explicitly inert sparse 35 GiB placeholder is not a database or workload proof. These macOS/source-loaded measurements do not reproduce a btrfs kernel stall or a full 35 GiB catalog workload; no real user data or inference credentials are used.
Check results and inherited failures
pnpm check:changed --stagedwas run. All patch-caused failures were fixed; source/extension types, scripts/root test types, changed-code lint/format, import cycles, SDK boundaries/budgets, and ratchets pass. The broad command remains red for 20 pre-existingmax-linesviolations exposed because the worker package manifest edit disables untouched-file advisory overrides. All 20 reproduce with identical counts from exact base0c0875810a6ced55235a855a7e10499ecf5a8a87; each introduction and its actual parent were replayed under the unchanged lint rule (20 passing parents, 20 failing introductions). These remain unresolved main regressions, not noise.Exact-base inherited line-cap attribution
extensions/anthropic/cli.runtime.tsf964859d9f2b/ #176154extensions/codex/src/app-server/event-projector.ts96583dd4e435/ #154125extensions/crabbox/src/crabbox-worker-node-enrollment.test.tsdbcbb79c5c96/ #188802extensions/oc-path/src/cli.test.ts29447408ffeb/ #178692extensions/tlon/src/monitor/index.test.ts5b46d3b7dde8/ #177536src/agents/plugin-model-catalog.tsf9478d593c96/ #191148src/auto-reply/reply/session-event-handoff.ts62e0b2b7fcf5/ #184243src/cli/update-cli/update-command-post-update.tsed79334f5b72/ #189647src/config/sessions/session-entry-read.worker.tsd40aa7c6f2ba/ #190862src/config/sessions/transcript.test.tsf6a936bd6d06/ #156657src/cron/isolated-agent/run-prepare.tsb0b6c32eb846/ #191749src/gateway/server-plugin-reload.ts928818442b99/ #191536src/infra/update-startup.ts12dcf7313ba7/ #181949src/plugins/registry-runtime.tsdef63496ca8f/ #190950src/shared/text/text-projection.ts14081a8c8b31/ #183345ui/src/e2e/session-management.sidebar.e2e.test.tsba87a52ad848(no PR number in commit subject)ui/src/e2e/settings-layout.e2e.test.tseb0f58e907f7/ #191320ui/src/pages/activity/activity-page.test.tsc7d92911be35/ #174059ui/src/pages/chat/components/chat-sidebar-region.runtime.tsx5b4ee4d1465a/ #181229ui/src/pages/sessions/sessions-page.test.ts0c5327886c4b/ #189256An adjacent cleanup-test fix restricts its process observation to the known descendant PID. Its old full macOS census reproduced EPERM against unrelated user processes on the exact base; that regression was introduced by #174284 and retained by #175368. Native containment itself still uses its existing full lineage checks. Both affected cleanup scenarios now pass.
The first exact-head security scan failed on the unchanged Git-environment clearing fixture. OpenGrep 1.32.0 reproduced the finding on exact base 0c08758 and introduction 9284c76 / #167443; the actual introduction parent is clean. A documented exact-rule exception on that removal-list fixture preserves the rule, inputs, assertions, and runtime behavior. The actual scanner wrapper now passes locally, and a fresh Codex review is scoped-clean. The final hosted security gate must pass; it is not bypassed.
Initial test cost accounting: the dedicated allocation granted exactly the original 166 net test lines in this change, covering blocked native-spawn responsiveness, revoked launch authority after worker startup, and native kill with caller stdin still open. These exercise distinct lifecycle failures; the shared scalar is unchanged. The final transport run passed 22 tests in 32.80s wall time (30.22s Vitest duration, dominated by source compilation; test execution below 1s). The documented transport-spawn mock retires exactly one existing baseline entry; it is pruned with no new mock exception added to the baseline. CI caught both missing accounting updates, reproduced locally and repaired together; no runtime behavior changed.
The previous CI head also exposed a new main regression in the Draft capability-menu E2E tests. On exact CI parent
32f7f7fb14eabce0b2c204ce7809b694ccd7617f, all three unchanged tests fail for the removed Draft checkbox; all three pass onbefd729208b6db1780d59cf4b29c5b70679bf7ad. Introducing commit2efd33452f2dae07bbad86a78600147fa2011e99removes that menu item without migrating this test file. No UI source was changed here. A separate cron-inventory CI assertion did not reproduce: the exact-parent file passed 5/5. Its cause remains unresolved; this passing replay is not a fix and is not an inherited-failure waiver.Prior-head result (superseded by lane 2173)
Final head
f5378538a4050c70bf3b9c915309e5f48534cbf3completed CI run 41776377594 with one failing UI E2E lane plus its aggregate gate; all other jobs, including security, test accounting and cron UI, passed. Tested main parent was8b9e240149fb8c3c871f92a653a0423fcc8b320d. Draft failures again reproduced 3/3 on this exact parent, retaining the 2efd334 attribution. The saved-widget case (ReadyversusUpdated) and stale-sidebar-rename case (missing page error) passed unchanged on the exact parent: 1/1 and 3/3 respectively. They remain unresolved and unproven inherited; no admin exception or CI rerun was used. The earlier cron replay/current-CI pass is not claimed as a fix.Historical lane 2172 result; superseded by the final lane 2173 results below.
Resource acceptance
ACCEPTED — performance lead decision, 2026-11-04, under Peter’s standing unattended decision authority. Accepted costs: ~9.33 MiB worker heap, +19 ms cold launch, +5.5 ms elapsed / +17 ms CPU per 17.5 MiB streamed. Production on 2026-11-04 03:51Z showed a 67.5 s whole-Gateway freeze from a main-thread spawn during a filesystem stall. Worker creation has a bounded, one-time cost per worker; forwarding has the measured per-stream cost. The avoided risk is a full outage-class freeze.
Final simplification pass
Removed the caller’s redundant
stdiooption: the worker is the sole owner of native pipe creation and already selectsstdio: "pipe". The simplification alone reduced runtime growth from 177 to 176 TypeScript lines; the worker-failure repair below adds two necessary lines, so final growth is 178 TypeScript lines + 1 package worker-entry line. The remaining bridge preserves native PID, exit facts, bounded streams, startup authority, process registration, and cleanup while isolating the blocking spawn. No cache, configuration, or schema was added.Rebased verification (lane 2173)
Rebased onto exact main parent
52da7f61d3aaefbdbee2f637efa1c5a924f0b920; current head868e1d6fb55a6d1a4948a08739b7d36b6fbcbd7e. Focused transport, responsiveness, native launch failure and cleanup run: 33 tests passed across four files. Fresh independent Codex autoreview, P0–P2, scoped-clean, covers this base-to-candidate range including the one-line pipe-selection simplification (reviewed local snapshot equals committed tree). No worker imports are reachable from Control UI imports found by the scoped module-path search.The 20 line-cap files above are byte-identical between original proof base
0c0875810a6cand this exact new parent, preserving the recorded introducing commit/PR evidence.check:changedcompleted with exactly those same 20 inherited max-lines errors and no new errors; all other steps passed. Final targeted lint, format, UI test type checks and test-line accounting also pass. They remain unresolved main regressions.Both disputed UI files were replayed unchanged on exact parent
52da7f61d3aa: saved widget 1/1 pass, stale rename 3/3 pass. This is not a fix or inherited-red attribution. CI shard-order investigation remains open. Fresh head CI is run 41778763760; no rerun request was made.Final gate repairs
Hosted review identified a real worker failure bug: an uncaught worker startup exception emitted
error, then worker exit emitted a second syntheticerrorafter one-shot listeners could be removed. A real-worker preload regression reproduces two errors before repair and exactly one afterward, retaining null native exit facts. The adapter now remembers a reported failure before synthesizing an unexpected-exit error. All four lifecycle regressions pass; 64.03 s wrapper wall time / 59.01 s Vitest, predominantly compilation; test execution about 2.5 s. The dedicated allocation is exactly 200 net lines (original 166 + 34 for the new independent worker-failure regression).The two disputed UI cases were repaired rather than waived. Exact-parent unchanged replay passed all four cases. For stale sidebar rename, commit
116b47f21c98368188cf56df702351bbb2e838abmoved errors to a modal-reparented toast, leaving both toast and inline callout as alerts. A deterministic diagnostic using the existing virtual clock on exact parent52da7f61d3aareproduces the two-alert strict-mode ambiguity. The precise.callout[role=alert]selector fixes it and matches the sibling migrated in that commit. The committed test changes no timing, clocks or assertions.For the saved widget, the test now uses the existing
clickBoardWidgetControlhelper, which verifies ancestor iframe layout and trusted pointer routing before one mouse down/up. TheUpdatedresult and Gateway request assertions remain intact. The historical widget failure did not reproduce locally; compositor routing remains a hypothesis, so this is a test reliability repair with that limitation, not an inherited-red exemption. The two repaired files pass 4/4 in 31.35 s. UI production delta is zero; test delta is +1 line. A bounded shard replay stopped before either target and supplies no target verdict.The three Draft-menu cases separately fail 3/3 unchanged on exact main parent
52da7f61d3aa(49.83 s), preserving the prior proven introduction2efd33452f2dae07bbad86a78600147fa2011e99and clean-parent proof. That main regression was subsequently repaired by direct main commit7ea18e653dda, which migrates the tests to the header Draft switch. On the actual final CI main parent7ea18e653dda, all three Draft cases pass (14.60 s). No inherited CI exception is claimed for these repaired cases.Intermediate candidate
d0d128dea7f42c9716add66986756591cc4b1435received fresh independent Codex autoreview P0–P2: scoped-clean over the entire staged range from52da7f61d3aa(staged tree equals final committed tree). Hosted duplicate-error finding is repaired and its thread resolved. The intermediate review identified only the outdated index copy before staging; the complete staged re-review has no accepted/actionable findings. No known product finding is waived.Final CI run 41779810995 checks merge
0a587289c5560c5dd83ee92c1738dc535eeb3c5a, with ordered parents7ea18e653dda80989ea7e24608861ae3de9b9d5e(main) andd0d128dea7f42c9716add66986756591cc4b1435(reviewed head), verified from its checkout log. That run failed only the denied-handshake UI case described below; the originally repaired UI cases and upstream Draft repair passed.Denied-handshake fixture repair
Run 41779810995 failed only
gateway-connect-denial.e2e.test.tsin UI shard 4/7 (plus the aggregate gate), waiting for.login-gate. All other jobs passed. Both original cases pass on its exact main parent7ea18e653dda, so no inherited-red exception is claimed.The mock records a
connectrequest before a zero-delay timer delivers its response. The test freezes its virtual clock, pumps it only until request receipt, then waits for rendering without advancing the clock. A deterministic diagnostic using the existing fixture’s delayed response reproduces that deadlock. Setup commitc3571ed6aa0c/ #191379 moved the clock freeze before boot; its parent kept the clock running through gate visibility.The repair keeps the existing one-millisecond clock pump active until exactly one attempt and a visible gate are observed. It changes no runtime, retry policy, timeout, or authorization/reconnect assertion. Delayed-response diagnostic red→green; actual denied/unavailable tests 2/2 pass (2.708 s / 1.524 s; combined diagnostic+actual run 22.22 s). Production delta 0, test delta +2; lint, format, UI E2E types and test-line accounting pass.
The earlier accepted auto-merge was explicitly retired through native recovery before this head replacement. Final head
be60aa9d4640db4dd624120ca505f467734ce84ehas a fresh complete-range Codex autoreview P0–P2 scoped-clean (reviewed staged tree equals committed tree). Runtime growth remains 178 TypeScript lines + 1 package entry line. Final exact-head CI is required before recovery/merge.Replacement exact-head CI: run 41781576336, head
be60aa9d4640db4dd624120ca505f467734ce84e. No CI rerun was requested; this run follows the verified clock-fixture repair. Native replacement review is refreshed; completed CI evidence is required before recovering the retired merge request.Final exact-head CI result: SUCCESS. Run 41781576336 completed with no failed or pending jobs at
be60aa9d4640db4dd624120ca505f467734ce84e. Native recovery will use completed CI evidence. No CI bypass or inherited-CI exception is needed; the documented local line-cap debt remains inherited and unresolved.Native recovery completed successfully at
649dbeb9f5aae0295ca67c67c822d47c66951c0f; remote MERGED state and main ancestry verified. Completion receipt. Team was untouched.