Skip to content

perf(nodes): load only what a worker turn needs - #160442

Merged
steipete merged 7 commits into
mainfrom
codex/node-parity-l1-bundle
Oct 2, 2026
Merged

steipete merged 7 commits into
mainfrom
codex/node-parity-l1-bundle

Conversation

@steipete

@steipete steipete commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Landed

Merged through the native maintainer workflow as 4aa24e3a1340 on main.

Refreshed candidate: d0ab325a9aa39de0d4ce32093833aab32e492651, rebased onto main 49135a709150d4b9760146a795bb841d4e2e0e64. The seven PR commits remain patch-identical to the reviewed candidate a68e5db402bf37cb44f2dc1cf9535be34e275e77. ClawSweeper completed its exact-head review at 2026-10-02T19:47:22.911Z with no actionable findings. Exact-head CI run 37055559008 completed successfully on attempt 2 after the single authorized failed-job rerun described below. The PR is merged, and native closeout completed.

All three inherited fixture failures from CI run 37041147256 were fixed separately on main in 49135a709150: session-accessor.identity-projection.test.ts, startup-migration.registry-recovery.test.ts, and doctor-auth-flat-profiles.test.ts. Their synchronous fixture closes returned before worker-backed database resources had drained. The fixtures now await the existing lifecycle owner before reopening, copying, or directly editing the database; every assertion and the production admission guard remain unchanged.

Boundary bisection on one AWS Linux lease identified d6929f854d2e9: its parent passed all 97 tests, while that commit and unpatched main c8be3222c262f reproduced the five session and two Doctor failures. Each repaired file then passed three repetitions (291 test executions). The original CI owner groups passed 49 files / 632 tests, with one existing benchmark skipped, in 174 s, 150 s, and 62 s. Lease formatting and source-byte verification passed; independent autoreview was scoped-clean at P0. The repair was verified on main and its lease released.

The build, typecheck, focused, browser, and live evidence below was captured for the reviewed rewrite before this patch-identical rebase. The refreshed candidate has completed CI and an exact-head ClawSweeper review. The previous database-fixture landing hold is resolved; no main repair was added to this PR's delta.

Fresh CI: one inherited fixture flake, one failed-job rerun

The first exact-head CI run 37055559008 completed with one test-job failure: checks-node-changed-compact-small-8. In session-accessor.sqlite-metadata-read.test.ts, the native-handle isolation case expected {observedAt: 10, updatedAt: 20} and received {observedAt: 20, updatedAt: 20}. The other cases in that group, including the repaired startup-registry cases, passed; the Doctor group passed as well.

Source attribution identifies an existing maintenance race in the fixture. It creates entries with updatedAt: 1 under default enforced 30-day retention, overwrites the transcript fences directly, then awaits another fixture. Automatic stale-entry archival calls writeSessionEntry, which intentionally snapshots the current transcript_updated_at into transcript_observed_at; that is the exact 10 to 20 transition. The PR changes none of this fixture, its metadata reader, timestamp writer, maintenance scheduler/store, or retention defaults. Import timing does not make the fixture's unprotected snapshot stable.

On unchanged main 4e529baa8f6dc431fd93f8591859a022d29858fb, the full five-case file passed once and the exact failing case passed three further runs. The same original CI group had also passed on Linux during the main-fixture repair proof. These passes do not prove a fix; the source ownership and asynchronous write path identify the intermittent fixture issue. No merged correction exists through main 0ef5c30120312cb5ea33fc24a6d4686d6b357971 in the relevant owners. No additional main file was changed. Per the bounded landing instruction's proven-unrelated-flake exception, only the failed jobs were rerun once. Attempt 2 completed successfully, including the CI-gate job. This did not repair the fixture race; the original failure and limitation remain recorded here.

What Problem This Solves

Cold node workers evaluate optional runtime code before admission, delaying startup and retaining memory that a lightweight turn does not need.

User Impact

Cold worker admission is faster and lightweight retained workers use less memory. In the controlled Linux comparison below, spawn-to-hello fell from 744 ms to 209 ms, and peak RSS after three text turns fell from 426.2 MiB to 243.6 MiB. Warm worker retention is already on main; this change complements it. No operator configuration change is required.

Why This Change Was Made

Split the worker deployment bundle while preserving every emitted chunk in the existing openclaw-worker-bundle-v1 manifest. The build validates every chunk's dependency closure, and Gateway, node, and SSH/npm installation paths hash and verify the same complete artifact. Heavy turn imports begin after accepted admission; explicit prewarming uses the same loader. Remaining production edits are the import-boundary repairs needed by that split build and the lazy MCP OAuth repair.

This replaces the sprawling earlier iteration: repeated rebases had accumulated unrelated main repairs and LOC-offset cleanup, making review and integration fragile. The new delta is 51 production files, +321/−323 lines, net −2; 68 files total including tests and documentation. These counts include mechanical import/path updates. No unrelated main repairs or cleanup are included.

The requested backup is a7a19ed344fb, retained locally as codex/node-parity-l1-sprawl-backup-20261002. That backup object is currently local-only and its GitHub link does not resolve. The previous published head b72ae3174fc0 remains the public reference for the dropped implementation.

Evidence

Fresh live comparison: unpatched main a324281c67173594b56acad3322c9cd1e35b2131 versus candidate a68e5db402bf37cb44f2dc1cf9535be34e275e77, on the same AWS Linux lease. Production proof used the exact committed patch; timing markers were applied only inside the lease afterward. The lease-only instrumentation was updated for main's node-launch module move.

Same AWS Linux machine and provider configuration, with one cold worker followed by two turns on that retained worker:

Measurement Unpatched main Minimal rewrite
Cold spawn → entry 506 ms 138 ms
Cold spawn → accepted hello 744 ms 209 ms
Peak / retained RSS after three text turns 426.2 MiB 243.6 MiB
Peak RSS in a separate two-tool-turn session 1,116.8 MiB 955.3 MiB
Retained RSS after that tool session 809.9 MiB 697.0 MiB

Both versions returned all six exact local/node text replies. Two successive turns on one node worker used exec and read, preserved the written file across turns, and settled successfully. These are single controlled observations in Linux process mode, not an end-to-end latency-parity claim.

  • Full qaRuntime build and complete worker-artifact validation passed on the rebased candidate (51.3 s). Both import-cycle checks report zero cycles; sidecar-loader checks pass.
  • Full typecheck coverage passed: core, UI, plugins, scripts, all 27 core test shards, plugin tests, and all root-test partitions. The final core test pass used the repository's supported complete 1/1 stripe with four compiler processes (109.7 s).
  • The initial 11 changed test files had passing focused coverage. The sibling selection passed 398 files / 5,216 tests, with three platform-skipped files and nine skipped tests (974.9 s). After rebasing, affected worker, node installation/startup, session hydration, and claim-recovery suites passed again (209.7 s).
  • Independent autoreview of the published rewrite was scoped-clean at its configured P0 threshold. Hosted CI subsequently exposed the defects described in the landing status. Formatting and git diff --check passed for that published rewrite.
  • CI run 37026222132 found a declaration-fixture inventory omission on the previous minimal head. The shared fixture now supplies the real worker manifest module and the highlighting input path. Its four declaration/artifact consumer suites pass (76 tests, four platform skips, 115.7 s), as does the script test typecheck. That historical CI run failed on the now-corrected main fixtures; refreshed-head CI is recorded above.

The initial focused run caught obsolete single-file tsdown fixture assumptions. Fixtures now exercise split chunks under the sealed worker directory and distinguish Node built-ins from package dependencies. A separate inherited main type error was reproduced on unpatched main, then resolved by upstream 90897637d32e; that repair is in the base. Main's new maintenance types also exposed a cycle under the required static import boundary; moving those unchanged DTOs into the existing hydration type owner removed it. No exception or baseline was weakened.

Production scope and deletion inventory

Resolve the browser static/dynamic import conflicts required by the split build while preserving lazy cleanup (6 files): extensions/browser/src/browser-tool.ts, extensions/browser/src/browser/client.ts, extensions/browser/src/browser/client-tab-close.runtime.ts, extensions/browser/src/browser/session-tab-registry.ts, extensions/browser/src/gateway/browser-request-tab-scope.ts, extensions/browser/src/gateway/browser-request.ts.

Emit, validate, seal, stage, and install every worker chunk (6 files): scripts/check-cli-bootstrap-imports.mts, scripts/lib/worker-deploy-build-plugin.mts, src/gateway/worker-environments/bootstrap.ts, src/gateway/worker-environments/bundle-staging.ts, src/shared/worker-bundle-hash.ts, tsdown.config.ts.

Move bootstrap/model helpers and update callers of moved helpers and types (12 files): src/agents/bootstrap-files.ts, src/agents/defaults.ts, src/agents/embedded-agent-helpers/bootstrap.ts, src/agents/embedded-agent-runner/run/attempt-bootstrap-prepare.ts, src/agents/embedded-agent-runner/run/model-setup.ts, src/agents/embedded-agent-runner/run/setup.ts, src/agents/harness/workspace-context.ts, src/agents/sessions/session-manager-core.ts, src/agents/sessions/session-manager-suffix-persistence.ts, src/agents/sessions/session-manager-view-types.ts, src/plugin-sdk/agent-harness-runtime.ts, src/worker/embedded-agent.runtime.ts.

Keep the MCP OAuth runtime behind the authenticated fetch path (1 file): src/agents/mcp-oauth-fetch.ts.

Load highlighting from a sealed chunk and remove the superseded injection shims (5 files): src/agents/utils/syntax-highlight.ts, src/worker/worker-deploy-highlight-runtime.cjs, src/worker/worker-deploy-highlight-runtime.d.cts, src/worker/worker-deploy-runtime-registry.ts, src/worker/worker-deploy-runtime.ts.

Resolve session-worker import conflicts and keep read contracts independent of runtime readers (17 files): src/config/sessions/session-accessor.sqlite-active-context.ts, src/config/sessions/session-accessor.sqlite-archive.ts, src/config/sessions/session-accessor.sqlite-artifact-cleanup.ts, src/config/sessions/session-accessor.sqlite-contract.ts, src/config/sessions/session-accessor.sqlite-entry.ts, src/config/sessions/session-accessor.sqlite-exact-read.ts, src/config/sessions/session-accessor.sqlite-history.ts, src/config/sessions/session-accessor.sqlite-lifecycle-state.ts, src/config/sessions/session-accessor.sqlite-page-reclamation.ts, src/config/sessions/session-history-eviction.ts, src/config/sessions/session-transcript-hydration.ts, src/config/sessions/session-transcript-hydration.types.ts, src/config/sessions/session-transcript-maintenance-read.ts, src/config/sessions/session-transcript-reconcile.ts, src/config/sessions/session-transcript-worker-runtime.ts, src/config/sessions/session-transcript-worker.types.ts, src/config/sessions/session-transcript.worker.ts.

Admit before loading the turn runtime; remove the superseded admission-preparation callback (4 files): src/worker/worker-connection-admission.ts, src/worker/worker-connection-contract.ts, src/worker/worker-deploy-entry.ts, src/worker/worker.runtime.ts.

Deleted superseded files:

  • src/worker/worker-deploy-highlight-runtime.cjs
  • src/worker/worker-deploy-highlight-runtime.d.cts
  • src/worker/worker-deploy-runtime-registry.ts

The old admission-preparation callback and its obsolete tests are also removed. Moved helper/type definitions have one owner and their callers move with them.

Changed-test cost

Measured through pnpm test <selected files> --maxWorkers=1. Values are Vitest file time where emitted, otherwise the sum of reported case times; they exclude shared transform/setup time. The initial mixed selection took 106.2 s including the subsequently corrected fixture failure; the successful six-file completion run took 58.0 s. Hosted CI seconds will be recorded when the exact-head run finishes.

Test file Reported test seconds
src/worker/worker-connection.test.ts 0.658
src/worker/worker-deploy-entry.test.ts 0.152
src/worker/worker.runtime-imports.test.ts 2.473
test/scripts/tsdown-config.test.ts 18.691
test/scripts/worker-deploy-build-plugin.test.ts 53.818
test/scripts/check-cli-bootstrap-imports.test.ts 0.079
src/gateway/worker-environments/bootstrap.test.ts 1.607
src/gateway/worker-environments/bundle.test.ts 3.471
src/config/sessions/session-transcript-reconcile.readiness.test.ts 6.480
src/agents/mcp-http-fetch.test.ts 1.163
extensions/browser/src/browser/session-tab-registry.test.ts 0.087
extensions/browser/src/browser/client.test.ts 0.056
extensions/browser/browser-maintenance.cold.test.ts 1.502

The existing 53.8 s worker-deploy integration file compiles the real dependency closure and executes relocated, dependency-free artifacts, including SQLite-backed exec authorization. A mocked helper cannot establish that bundle/install contract. No new sleep, retry, serial configuration, or persistent worker pin was added.

@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime cli CLI command changes scripts Repository scripts commands Command implementations agents Agent runtime and tooling fleet extensions: browser size: XL labels Sep 28, 2026
@steipete
steipete marked this pull request as ready for review September 28, 2026 12:22
@github-actions

github-actions Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

⚠️ Security sensitive changes

This maintainer PR changes sensitive security components. This comment is informational because the PR author has repository Maintain or Admin access.

  • Current SHA: d0ab325a9aa39de0d4ce32093833aab32e492651
  • Maintainer: @steipete
  • Repository role: admin

These security sensitive changes were made:

  • src/agents/mcp-oauth-fetch.ts: Controls credential persistence, secret resolution, or redaction. Check storage permissions, credential scope, and exposure in logs or responses.

Carefully review these changes before merging.

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 28, 2026
@clawsweeper

clawsweeper Bot commented Sep 28, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 2, 2026, 4:33 PM ET / 20:33 UTC (Revision 103).

ClawSweeper review

What this changes

The PR splits node-worker code into verified runtime chunks and loads turn-specific code after admission, with matching installation, import-boundary, and test updates.

Merge readiness

✅ Ready for maintainer review

The optimization remains useful on current main. The pinned patch has no actionable correctness or security findings, and its recorded production comparison supports the performance benefit.

Priority: P2
Reviewed head: d0ab325a9aa39de0d4ce32093833aab32e492651

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A coherent optimization with meaningful production measurements, preserved ownership boundaries, and broad recorded validation.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The captured Linux production comparison exercises the changed worker admission/runtime path and shows faster hello, lower retained memory, successful text replies, and exec/read continuity. The recorded patch-identical rebase preserves that evidence; artifact tests and exact-head CI supplement it. Persisted data contracts are unchanged.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The captured Linux production comparison exercises the changed worker admission/runtime path and shows faster hello, lower retained memory, successful text replies, and exec/read continuity. The recorded patch-identical rebase preserves that evidence; artifact tests and exact-head CI supplement it. Persisted data contracts are unchanged.
Evidence reviewed 9 items Pinned change ownership: Reviewed the introduced delta from merge base 49135a7 to the original PR head d0ab325. Raw test-merge records separately confirm the ordered main and PR-head parents; unrelated base-only changes were not attributed to this PR.
Still necessary on main: Inspected fetched main's worker runtime and bundle staging: runtime preparation still begins through the admission-request callback, and staging still collects only the fixed artifact list. The proposed deferred loading and split-chunk packaging are therefore distinct remaining work. Related merged tool-policy work at #160444 does not replace this optimization.
Runtime preparation and cleanup: The changed runtime checks accepted admission and the required tool surface before starting turn preparation. Both module loading and workspace preparation settle before environment cleanup; explicit prewarming calls the same runtime loader.
Findings None None.
Security None None.

How this fits together

Node workers execute agent turns assigned by the Gateway. Their deployment artifact supplies the runtime, while Gateway admission supplies the current tool policy and execution context.

flowchart TD
  A[Worker build] --> B[Sealed runtime chunks]
  B --> C[Verified node installation]
  C --> D[Worker admission]
  E[Gateway assignment and tool policy] --> D
  D --> F[Load turn runtime]
  F --> G[Agent replies and tool results]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source -50, Tests -8, Docs +2, Other +48. Total -8 across 68 files.

View PR surface stats
Area Files Added Removed Net
Source 48 247 297 -50
Tests 16 315 323 -8
Docs 1 3 1 +2
Config 0 0 0 0
Generated 0 0 0 0
Other 3 74 26 +48
Total 68 639 647 -8

Review metrics

Metric Value Why it matters
Controlled cold-worker comparison Accepted hello 744 → 209 ms; retained RSS 426.2 → 243.6 MiB The same-machine production observation demonstrates the intended startup and memory improvement without claiming a general latency guarantee.

Technical review

Best possible solution:

Preserve the existing admission, artifact-integrity, and cleanup owners while keeping optional runtime loading off cold worker startup.

Do we have a high-confidence way to reproduce the issue?

Not applicable as a bug reproduction: this is a performance optimization, supported by a controlled comparison through real cold-worker admission and retained turns.

Is this the best way to solve the issue?

Yes. The patch reuses the existing artifact and lifecycle owners, preserves public exports, and removes superseded loading shims rather than introducing another runtime manager.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 5e6982748add.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a bounded worker startup and memory optimization with demonstrated benefit and no urgent user-facing regression.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The captured Linux production comparison exercises the changed worker admission/runtime path and shows faster hello, lower retained memory, successful text replies, and exec/read continuity. The recorded patch-identical rebase preserves that evidence; artifact tests and exact-head CI supplement it. Persisted data contracts are unchanged.
  • proof: sufficient: Contributor real behavior proof is sufficient. The captured Linux production comparison exercises the changed worker admission/runtime path and shows faster hello, lower retained memory, successful text replies, and exec/read continuity. The recorded patch-identical rebase preserves that evidence; artifact tests and exact-head CI supplement it. Persisted data contracts are unchanged.

Evidence

What I checked:

  • Pinned change ownership: Reviewed the introduced delta from merge base 49135a7 to the original PR head d0ab325. Raw test-merge records separately confirm the ordered main and PR-head parents; unrelated base-only changes were not attributed to this PR. (d0ab325a9aa3)
  • Still necessary on main: Inspected fetched main's worker runtime and bundle staging: runtime preparation still begins through the admission-request callback, and staging still collects only the fixed artifact list. The proposed deferred loading and split-chunk packaging are therefore distinct remaining work. Related merged tool-policy work at fix(nodes): apply the same tool policy to node sessions as Gateway sessions #160444 does not replace this optimization. (src/worker/worker.runtime.ts, 5e6982748add)
  • Runtime preparation and cleanup: The changed runtime checks accepted admission and the required tool surface before starting turn preparation. Both module loading and workspace preparation settle before environment cleanup; explicit prewarming calls the same runtime loader. (src/worker/worker.runtime.ts:217, d0ab325a9aa3)
  • Artifact integrity and compatibility: Chunk names are restricted to a flat filename pattern, included in the canonical sorted manifest, and checked by the existing archive hash owner. SSH/npm installation selects and verifies those chunks. Added coverage exercises relocated execution, reuse, tamper repair, missing dependencies, and symlink rejection. The v1 manifest format, stored session shapes, configuration, and protocol contracts remain unchanged. (src/gateway/worker-environments/bundle-staging.ts:82, d0ab325a9aa3)
  • Captured production proof: The full PR body was retrieved and its SHA-256 matched the supplied snapshot identity b777530b5dd0a168d242428edd0e8e53684bb7925eca702098d920b698bc888f. It records the same AWS Linux setup comparing main a324281 with candidate a68e5db: accepted hello improved from 744 ms to 209 ms, and retained RSS after three text turns from 426.2 MiB to 243.6 MiB. Six expected text replies and successive exec/read turns completed with file continuity. The body explicitly identifies the current rebase as patch-identical and limits the measurements to single controlled observations. (a68e5db402bf)
  • Prior finding resolved: Raw-target tab closing now lives in a private lazily imported runtime. The registry retains its cleanup reservation and rechecks the selected registration after loading; the cold-maintenance test covers registration replacement during that load. This resolves the retained earlier finding without adding a public plugin API. (extensions/browser/src/browser/session-tab-registry.ts:104, d0ab325a9aa3)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (102 earlier review cycles; latest 8 shown)
  • reviewed 2026-10-02T16:20:17.821Z sha 1ac860e :: blocked before merge. :: [P2] [P2] Keep raw-tab closing behind a private lazy import
  • reviewed 2026-10-02T17:06:48.883Z sha 09b3ec6 :: needs changes before merge. :: none
  • reviewed 2026-10-02T17:35:47.887Z sha a68e5db :: needs changes before merge. :: none
  • reviewed 2026-10-02T17:43:06.892Z sha a68e5db :: needs maintainer review before merge. :: none
  • reviewed 2026-10-02T18:00:03.611Z sha a68e5db :: needs changes before merge. :: none
  • reviewed 2026-10-02T18:19:40.639Z sha a68e5db :: needs changes before merge. :: none
  • reviewed 2026-10-02T19:47:22.911Z sha d0ab325 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-02T20:18:16.420Z sha d0ab325 :: needs maintainer review before merge. :: none

@steipete
steipete force-pushed the codex/node-parity-l1-bundle branch from 992d7f3 to ff4b5e2 Compare September 28, 2026 12:59
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 28, 2026
@steipete
steipete force-pushed the codex/node-parity-l1-bundle branch from ff4b5e2 to cc358d2 Compare September 28, 2026 13:45
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Sep 28, 2026
@steipete

steipete commented Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Updated head f8c852f8aad05d3e5c247cf400d1390a44fa8f15 incorporates the four verified main repairs and resolves the worker-registry integration. The PR body records fresh complete type lanes, focused/worker suites, full runtime build, import-cycle/sidecar checks, clean final-branch P2 review, and successful retained-node text and tool turns. Current-head CI is running.

@clawsweeper

clawsweeper Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@steipete

steipete commented Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

Head 1fbd003b4dcb9b4f3eb24d8bb88d71ea9f59b1c6 incorporates the verified main watcher repair e20a820 and preserves the newer Doctor/profile contracts. Fresh type lanes, focused and worker suites, full runtime build, cycle/sidecar checks, full-candidate P2 review, and retained-node text/tool proof pass. The PR body retains the previous-head CI investigations and their uncertainty. Current-head CI is running.

@clawsweeper

clawsweeper Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

Preserve and hash every emitted worker chunk in the v1 bundle manifest, including SSH and node installs. Load the turn runtime after admission and retain explicit prewarming. Keep only import-boundary repairs required by splitting, the session type-cycle repair, and lazy MCP OAuth loading.
Move internal raw-target closing into a private lazy runtime so empty cleanup does not load the browser client. Revalidate the selected registration after loading, and preserve cleanup reservation coverage.
@steipete

steipete commented Oct 2, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

@vincentkoc

Copy link
Copy Markdown
Member

Follow-up from the native landing of #156307:

The complete remote build passed (408.2s), as did production, scripts and root-test type checks, but core lint failed on two current-main files:

  • src/gateway/worker-environments/bootstrap.ts: eslint(max-lines), 702 against 700.
  • src/gateway/worker-environments/bootstrap.test.ts: eslint(max-lines), 1023 against 1000.

Remote run: https://github.com/openclaw/openclaw/actions/runs/37074972322 . It ended exit 1; full tests were not reached, no native gate stamp was produced, and the owned remote lease is completed.

Both files and lint configuration are unchanged between the waveform candidate and its main base 456178d8da6439cc186b600eb4731fa4bff6ab08. Live main 9ed025c44ddef2eff8916ba8711ad125d894a900 still has the exact failing blobs (359657f11e8e8f0585c8b6933ee2350e4ef21363 and aab1a0fa05a436338ac9062d67d6a1ce4a984efb, respectively). Their latest path-changing commit is this PR's landed 4aa24e3a1340cf17e0d661e87d35d7789948d76f.

@steipete could the existing worker-bootstrap owner take the scoped line-cap repair? No limit/baseline relaxation is requested. The portfolio is retaining completed scoped proof and holding further full-gate attempts against these known failing inputs rather than opening a duplicate known-main test/CI PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling docs Improvements or additions to documentation extensions: browser gateway Gateway runtime P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. scripts Repository scripts security-sensitive-changed size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants