Skip to content

perf(hooks): reduce native relay startup memory and latency - #120340

Merged
steipete merged 17 commits into
openclaw:mainfrom
sightingsstellar-beep:fix/native-hook-relay-memory
Sep 7, 2026
Merged

steipete merged 17 commits into
openclaw:mainfrom
sightingsstellar-beep:fix/native-hook-relay-memory

Conversation

@sightingsstellar-beep

@sightingsstellar-beep sightingsstellar-beep commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

Related: #119565, #91009. These incidents remain open; this PR makes a measured startup improvement without claiming to resolve incident-scale exhaustion.

What Problem This Solves

Concurrent Codex native hooks pay for the general OpenClaw CLI startup graph in each short-lived relay process. This change reduces that repeated startup work while keeping ordinary hook delivery, output, deadlines and process cleanup intact.

Why This Change Was Made

Prefer a dedicated relay executable built inside the existing unified runtime graph. This shares lazy Gateway dependencies and canonical SQL-schema inlining instead of emitting a second runtime graph. Use the existing lightweight error and scope owners, share the unchanged bounded output drain, and keep the existing state-version reader independent of updater publication policy.

Explicit executable/CLI overrides and older-package entry selection remain supported. The 512 KiB cold static graph budget, server exclusions and external-package allowance stay enforced. No schema, stored representation, publication policy, configuration or dependency version is changed by this PR.

User Impact

Native hook subprocesses start with less memory and latency. No setup change is required. The existing general CLI path also benefits from the narrower imports.

Evidence

Secretless paired qualification: baseline 5f661669b2c2979f2a61e23d4addb3bdd4545469, candidate 4a87fd3ce171f824fc04fcdf5b91f0dfb150fe98, tooling 6a0013f2dc48b8bcc56c9651c444cc39e3bc41cc. Both used Node 24.20.0, integrity-verified pnpm 12.3.4 and the canonical qaRuntime build.

The table reports the median of three alternating 20-child cohort measurements per arm. Each latency measurement is that cohort's median child latency; these are not pooled 60-child medians:

Arm Sampled aggregate peak RSS Median child latency
Baseline general CLI 2,458,628 KiB 3,914.88 ms
Candidate general CLI 1,817,108 KiB 2,112.13 ms
Candidate dedicated relay 1,704,588 KiB 1,940.56 ms

The complete candidate reduced sampled aggregate RSS by 30.67% and latency by 50.43% against baseline. The dedicated entry improved another 6.19% RSS and 8.12% latency compared with the same candidate's general CLI. These are bounded same-host observations, not unique/private-memory measurements, statistical guarantees or incident-scale Gateway responsiveness proof.

All 203 real registered post_tool_use notifications produced exactly one matching callback, expected output and exit status, with no surviving owned children or TCP servers. The emitted cold closure is 64 files / 328,258 bytes, below the unchanged 524,288-byte limit. Its actual reachable lazy Gateway module loaded successfully; this is module-load proof, not a claim of a live legacy Gateway RPC or model session.

The complete dist contains 8,846 regular files / 153,634,294 bytes, versus 8,845 / 153,634,073 at baseline: one additional file and 221 net bytes. The dedicated entry itself is 624 bytes. Both build stamps and all recorded runtime/source hashes were verified again after the cohorts.

All 170 focused tests across eight files passed, including resolver, source-process/finalizer, relay CLI, build graph, state-publication and database-preflight coverage. Earlier actual qualification failures exposed missing SQL assets in the separate graph and an updater-only semver import in cold admission; both are repaired, and neither guard was weakened. The new natural-exit status case passes; its pre-fix failure was source-predicted rather than separately executed.

Direct dependency inspection used Codex rust-v0.153.4 (3d2ee51ca2d5db578f328aa75e20aa22c0197c9a), codex-rs/hooks/src/engine/command_runner.rs:205-329, matching the pinned dependency's piped output, completion and process cleanup contract. Source and proof reviews found no actionable P0–P2 findings. The test-only declaration-contract follow-up passed its exact CI test, and the earlier ACP cleanup assertion did not recur without any ACP source change; its original cause is not claimed fixed. Current main is integrated at 79dcb093e50d521e5cdd5d0cfe967a9ef2d66698, including the canonical Markdown test split from #141466 that repairs the observed max-lines CI failure. The candidate patch is unchanged. The size and timing figures above remain measurements of the explicitly pinned 5f/4a comparison, not of this main integration. Exact-head CI for 2bc6c2037f40096b5349225cd784463894f47489 passed, including the current emitted bootstrap guard. The build job exercised merge 1d77074fc665a8eadceedd9feba006dbbc0f7345 with main 5180c4569c5d7ada2864cafffe511b116935148a; no refreshed absolute size or timing measurement is claimed.

ClawSweeper follow-through: maintainers accepted the isolated startup-improvement scope; incident-scale MCP/Gateway proof is deferred and no linked incident is closed. The generic data-model checkbox does not apply to this reader relocation: SQL, value validation, query-cache lifetime and publication behavior are unchanged, and existing state suites pass. The latest exact-head technical review also explicitly found no introduced defect and confirmed the migration blocker is inapplicable. The refreshed head carries this revised scope and evidence.

Runtime production +113/-80; build tooling +81/-2; tests +261/-60. Runtime growth supplies the dedicated executable and shared drain; the schema-reader work relocates existing behavior. Original contributor ancestry is preserved. Thanks @sightingsstellar-beep and @Takhoffman.

@openclaw-barnacle openclaw-barnacle Bot added cli CLI command changes scripts Repository scripts agents Agent runtime and tooling size: M and removed size: XS labels Aug 7, 2026
@sightingsstellar-beep
sightingsstellar-beep marked this pull request as ready for review August 7, 2026 20:29
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P1 High-priority user-facing bug, regression, or broken workflow. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. labels Aug 7, 2026
@clawsweeper

clawsweeper Bot commented Aug 7, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed September 7, 2026, 5:06 PM ET / 21:06 UTC.

ClawSweeper review

What this changes

The PR gives native hook subprocesses a lightweight executable, narrows startup imports, and shares existing output-draining and database-version logic.

Warning

SQLite table change

This PR modifies persisted SQLite tables in src/state/openclaw-state-db-schema-version.ts. Prefer a design that avoids changing persisted SQLite tables. If the change is necessary, verify migration and upgrade compatibility against an existing database before merge.

Merge readiness

⛔ Blocked before merge - 1 item remains

Keep open as useful, well-supported performance work with no introduced blocking defect found. The previous migration blocker does not apply: the storage change preserves the existing reader’s behavior.

Priority: P2
Reviewed head: 2bc6c2037f40096b5349225cd784463894f47489

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Strong bounded runtime evidence supports a focused implementation with preserved contracts and no actionable blocking findings.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The captured paired qualification exercises emitted relay subprocesses through real SQLite registration and the owner bridge, with lower sampled RSS/latency, matching callbacks, expected exits, and no survivors. Core relay blobs match the reviewed head; measurements remain explicitly historical and do not prove incident-scale recovery.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The captured paired qualification exercises emitted relay subprocesses through real SQLite registration and the owner bridge, with lower sampled RSS/latency, matching callbacks, expected exits, and no survivors. Core relay blobs match the reviewed head; measurements remain explicitly historical and do not prove incident-scale recovery.
Evidence reviewed 9 items Pinned introduction and current-main necessity: Reviewed the merge-base-to-head changes. Current main still selects the general CLI executable; neither current main nor v2026.9.2 contains the dedicated relay entry. The provided related merged PRs address separate plugin-activation and session-deletion work.
Storage blocker resolved by source inspection: The state diff moves the content-version reader, constant, and per-database prepared-query WeakMap into schema admission. SQL, fresh value reads, validation, publication writes, transaction boundaries, and stored representation remain unchanged; internal callers move together.
Applicable storage policy: The material-change checkpoint expressly excludes read-only queries preserving existing semantics. This relocation does not warrant migration or upgrade approval merely because it touches state files.
Findings None None.
Security None None.

How this fits together

Native provider hooks launch short-lived processes that send events to OpenClaw’s owning runtime. The relay reads its SQLite locator, invokes the existing bridge or Gateway fallback, and returns the policy result through process output and exit status.

flowchart LR
  A[Native provider hook] --> B[Executable selection]
  B --> C[Dedicated relay]
  B --> D[Explicit override or older CLI]
  C --> E[Existing relay client]
  D --> E
  E --> F[SQLite locator and owner bridge]
  E --> G[Gateway fallback]
  F --> H[Policy output and bounded exit]
  G --> H
Loading

Before merge

  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Source +33, Tests +201, Other +79. Total +313 across 22 files.

View PR surface stats
Area Files Added Removed Net
Source 15 113 80 +33
Tests 5 261 60 +201
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 2 81 2 +79
Total 22 455 142 +313

Review metrics

Metric Value Why it matters
Storage contract 0 schema or persistence-semantic changes The reader relocation does not trigger the prior migration-approval blocker.

Stored data model

Persistent data-model change detected: database schema: src/infra/update-candidate-state.ts, database schema: src/state/openclaw-database-preflight.ts, database schema: src/state/openclaw-state-db-fast-path.ts, database schema: src/state/openclaw-state-db-maintenance.ts, database schema: src/state/openclaw-state-db-open.ts, database schema: src/state/openclaw-state-db-schema-repair.ts, and 6 more. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Keep the dedicated executable within the shared runtime build while preserving the canonical relay policy, fallback, and state-admission owners.

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

Not applicable as a newly claimed incident fix: this PR is scoped to performance improvement, supported by a pinned before/after relay comparison rather than a current-main reproduction of host exhaustion.

Is this the best way to solve the issue?

Yes. Reusing the existing relay implementation and unified build removes startup overhead without introducing competing policy or persistence logic.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 0bec2710f683.

Labels

Label justifications:

  • P2: This is a measured, bounded startup improvement; resolving the broader host-exhaustion incidents remains separate work.
  • 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 paired qualification exercises emitted relay subprocesses through real SQLite registration and the owner bridge, with lower sampled RSS/latency, matching callbacks, expected exits, and no survivors. Core relay blobs match the reviewed head; measurements remain explicitly historical and do not prove incident-scale recovery.
  • proof: sufficient: Contributor real behavior proof is sufficient. The captured paired qualification exercises emitted relay subprocesses through real SQLite registration and the owner bridge, with lower sampled RSS/latency, matching callbacks, expected exits, and no survivors. Core relay blobs match the reviewed head; measurements remain explicitly historical and do not prove incident-scale recovery.

Evidence

What I checked:

  • Pinned introduction and current-main necessity: Reviewed the merge-base-to-head changes. Current main still selects the general CLI executable; neither current main nor v2026.9.2 contains the dedicated relay entry. The provided related merged PRs address separate plugin-activation and session-deletion work. (src/agents/harness/native-hook-relay-command.ts:65, 0bec2710f683)
  • Storage blocker resolved by source inspection: The state diff moves the content-version reader, constant, and per-database prepared-query WeakMap into schema admission. SQL, fresh value reads, validation, publication writes, transaction boundaries, and stored representation remain unchanged; internal callers move together. (src/state/openclaw-state-db-schema-version.ts:12, 2bc6c2037f40)
  • Applicable storage policy: The material-change checkpoint expressly excludes read-only queries preserving existing semantics. This relocation does not warrant migration or upgrade approval merely because it touches state files. Public docs: docs/reference/database-schemas.md. (docs/reference/database-schemas.md:536, 2bc6c2037f40)
  • Relay compatibility and security: Explicit executable and CLI-path overrides retain precedence, older packages retain general-CLI fallback, and the new entry calls the existing relay implementation. The error and admin-scope imports resolve directly to the same previously re-exported values; no authorization, generation, transport-fallback, or dependency-version change was introduced. (src/agents/harness/native-hook-relay-command.ts:95, 2bc6c2037f40)
  • Shared build and output lifecycle: The executable is added to the existing unified runtime graph with canonical schema inlining and shared lazy dependencies. It records its exit status before invoking the unchanged bounded output drain. Focused tests cover resolver compatibility, malformed input, missing drain callbacks, and lingering handles. (src/cli/native-hook-relay-entry.ts:16, 2bc6c2037f40)
  • Captured production-path proof: The supplied body, captured under sourceRevision b9978103a3be46fa72ac1e274be64f692d60f6574b6d82d855365cc7e3cdff27, records three alternating 20-child cohorts per arm on Node 24.20.0. Baseline/candidate sampled aggregate RSS was 2,458,628/1,704,588 KiB and median cohort child latency was 3,914.88/1,940.56 ms. It reports 203 real registered notifications with exactly one matching callback each and no surviving owned children or servers. Earlier discussion independently supplies bridge-policy output and stale-generation rejection observations. These establish bounded startup and relay behavior, not incident-scale mitigation. The linked Actions page could not be fetched during this review; the supplied runtime observations remain usable evidence. (4a87fd3ce171)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Josh Lehman: 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 (18 earlier review cycles; latest 8 shown)
  • reviewed 2026-09-04T13:51:55.142Z sha 99d38d3 :: needs real behavior proof before merge. :: none
  • reviewed 2026-09-04T14:01:17.121Z sha 99d38d3 :: blocked before merge. :: none
  • reviewed 2026-09-04T14:57:48.266Z sha dcb1212 :: blocked before merge. :: none
  • reviewed 2026-09-04T15:58:39.487Z sha e3e8490 :: needs real behavior proof before merge. :: [P1] Prove the relay path mitigates concurrent memory amplification
  • reviewed 2026-09-04T16:55:43.405Z sha e3e8490 :: blocked before merge. :: [P1] Prove mitigation under concurrent native-hook load
  • reviewed 2026-09-07T18:43:28.867Z sha 4a87fd3 :: blocked before merge. :: none
  • reviewed 2026-09-07T19:10:01.272Z sha b4a7b22 :: blocked before merge. :: none
  • reviewed 2026-09-07T20:31:21.913Z sha 2bc6c20 :: blocked before merge. :: none

@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Aug 7, 2026
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Aug 8, 2026
@TurboTheTurtle

Copy link
Copy Markdown
Contributor

I independently validated this architecture on a 16 GiB Apple Silicon Mac and inspected the exact Codex hook-execution contract used by the affected deployment (rust-v0.144.1). A few findings may help close the current proof gap.

Codex process contract

  • Codex launches command hooks through $SHELL -lc on POSIX: command_runner.rs.
  • The immediate child has kill_on_drop(true), and wait_with_output() is wrapped by the configured timeout: command_runner.rs, command_runner.rs.
  • Matched hook handlers execute concurrently and are sorted back into configured order afterward: dispatcher.rs.

The practical lifecycle consequence is that the generated POSIX command should use exec. Otherwise Codex owns and kills the shell while the Node grandchild can outlive timeout/drop. The relay deadline also needs to begin at process startup, before any CLI/bootstrap work.

Compatible runtime result

I adapted the dedicated-entry architecture to an older stable branch's generation-authenticated registry and exercised the emitted relay binary directly. This is supporting evidence rather than an exact-head artifact for this PR.

An isolated 18-concurrent-cold-relay run reached 60.66 MiB maximum individual RSS and 1,086.73 MiB maximum aggregate RSS, with zero failures and zero survivors. Separate success, malformed-input, timeout, stale-registration, replacement, owner-shutdown, and cancellation cases also left zero survivors. A 15-minute production observation after deployment found no idle relays and no memory-pressure regression.

These results support the dedicated executable as the right ownership boundary. They also reproduce the relevant Codex concurrency, timeout, stdio, and process-tree assumptions from source rather than inferring them from OpenClaw alone. I can provide a redacted test procedure or rerun the bounded test against a rebased exact head if that would help the contributor satisfy the remaining acceptance gate.

@clawsweeper clawsweeper Bot added clawsweeper-recovery-stuck and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. clawsweeper-recovery-stuck labels Aug 15, 2026
@clawsweeper clawsweeper Bot added the status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. label Sep 4, 2026
@steipete steipete self-assigned this Sep 7, 2026
steipete and others added 5 commits September 7, 2026 00:21
Use a dedicated cold-process entry and exact lightweight imports for native
hook relays. Preserve executable overrides and older package resolution, and
check the emitted static import boundary during normal runtime builds.

Share the existing bounded output drain with the general CLI so both paths
retain callback ordering and the five-second missing-callback backstop.
Keep current main's SQLite owners unchanged; the prior classifier extraction
and unrelated cleanup diagnostics are no longer needed for this path.

Preserve contributor ancestry. This source snapshot is for isolated runtime
qualification; it does not claim that the reported memory incident is fixed.

Co-authored-by: Mr. Stellar <[email protected]>
Co-authored-by: Tak Hoffman <[email protected]>
Inline the canonical state and agent schemas in the standalone relay graph.
Its emitted lazy modules referenced missing SQL assets and failed to load in
qualification run 34104346187; the comparison correctly did not proceed.

Record the command exit code before the unref'd output drain so natural exit
retains failures. Extend the existing build-owner and child-process fixtures
without adding another schema-copy or fallback path.

Co-authored-by: Mr. Stellar <[email protected]>
Co-authored-by: Tak Hoffman <[email protected]>
Build the existing dedicated relay entry inside the canonical runtime graph
so lazy Gateway dependencies and schema inlining have one build owner.
Remove the separate graph that emitted 3,336 additional runtime files.

Retain the cold static graph budget, server exclusions and external package
allowlist while permitting shared chunks inside dist. Keep declaration
partitions and the executable path unchanged; validate the resulting cold
closure and runtime benefit before updating the contributor PR.

Co-authored-by: Mr. Stellar <[email protected]>
Co-authored-by: Tak Hoffman <[email protected]>
Integrate pinned main 5f66166 for the current fs-safe dependency and shared
state admission owner before comparing the native relay entry. Preserve the
reviewed relay patch, canonical CLI watchdog, shared output drain, and
512 KiB cold static graph budget. Runtime comparison remains pending.

Co-authored-by: Mr. Stellar <[email protected]>
Co-authored-by: Tak Hoffman <[email protected]>
Move the existing content-version reader and its per-database query cache
into the schema admission owner. Publication imports the shared key and
internal readers use the admission module, keeping updater-only semver out
of the native relay cold graph without changing stored data or policy.

The actual qualification build rejected the semver import before this
repair. Keep the external import guard and 512 KiB budget unchanged; rerun
the built-artifact, schema, and ordinary relay proofs on the exact head.

Co-authored-by: Mr. Stellar <[email protected]>
Co-authored-by: Tak Hoffman <[email protected]>
@steipete steipete changed the title fix(codex): reduce memory use for concurrent native hooks perf(hooks): reduce native relay startup memory and latency Sep 7, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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. and removed P1 High-priority user-facing bug, regression, or broken workflow. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. merge-risk: 🚨 availability 🚨 May cause crashes, hangs, restart loops, stalls, or process outages. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Sep 7, 2026
Assert the executable exists in the unified runtime graph while retaining
exact declaration-entry equality for every other entry. Preserve the
existing declaration-only and package output contracts.

The previous exact-head CI failed this stale equality assertion. Runtime
source and the qualified native-relay build remain unchanged.

Co-authored-by: Mr. Stellar <[email protected]>
Co-authored-by: Tak Hoffman <[email protected]>
@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Sep 7, 2026
Merge pinned main 79dcb09, including the canonical Markdown test split
that repairs the observed max-lines CI failure. Preserve the reviewed
native-relay patch and contributor history.

Retain the existing bounded live proof as historical 5f/4a evidence.
Current emitted-graph guards and exact-head CI remain required.

Co-authored-by: Mr. Stellar <[email protected]>
Co-authored-by: Tak Hoffman <[email protected]>
@steipete
steipete merged commit 9c962da into openclaw:main Sep 7, 2026
218 of 219 checks passed
@steipete

steipete commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 8, 2026
…#120340)

Reduce repeated native-hook subprocess startup work with a dedicated entry in the existing unified runtime graph. Reuse the relay handler and bounded output drain, narrow cold imports, and keep schema-version admission independent of updater publication policy. Preserve executable overrides, deadlines, output/status and contributor history; no storage semantics or configuration changes.

Pinned same-host 2e5016f/4a87fd3c qualification completed 203 matching ordinary relay callbacks, clean child/listener teardown and 170 focused tests. Across three 20-child cohorts per arm, median sampled aggregate RSS fell 30.67% and median child latency fell 50.43%; these historical measurements are not refreshed-main timings or unique-memory measurements. The shared qaRuntime build added one regular file and 221 net bytes rather than a duplicate runtime graph.

Exact final-head CI34159221537 passed, including the current 512 KiB bootstrap guard. Earlier packaging/import and declaration-test failures were repaired without relaxing the guard. The prior ACP cleanup assertion passed on the subsequent normal CI run without ACP changes; no cause or fix is claimed for that observation.

Related: openclaw#119565, openclaw#91009. Incident-scale exhaustion remains outside this scoped startup improvement; neither issue is closed.
Co-authored-by: Mr. Stellar <[email protected]>
Co-authored-by: Tak Hoffman <[email protected]>
Co-authored-by: Peter Steinberger <[email protected]>
Co-authored-by: sightingsstellar-beep <[email protected]>
Co-authored-by: Takhoffman <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling cli CLI command changes 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 size: L 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.

5 participants