Skip to content

perf(gateway): serve the listener before multi-gigabyte store validation and honor clean-close receipts at startup - #163690

Merged
steipete merged 3 commits into
mainfrom
steipete/perf-micro-startup-time-20260919
Oct 2, 2026
Merged

steipete merged 3 commits into
mainfrom
steipete/perf-micro-startup-time-20260919

Conversation

@steipete

@steipete steipete commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Gateway startup can spend minutes copying and validating a multi-gigabyte agent database before opening its listener, including after a clean shutdown.

User Impact

Normal Gateway starts can serve the Control UI and healthy agents while a slow agent finishes admission. Pending agents remain unavailable for writes and inference, and readiness exposes their pending admission details. Confirmed failures still fail readiness. Update canaries retain foreground validation and strict readiness. No schema or public configuration changes are required.

Why This Change Was Made

The foreground wait reused the full SQLite inspection deadline (about 48,940 seconds for 38 GiB), so ordinary slow scans never reached the existing background admission path. Agent inspections now share a five-second foreground budget, and the later schema preflight reuses the same owner's pending decisions instead of copying the pending store again. Unowned custom stores retain strict foreground inspection.

A clean closed WAL store normally has no WAL/SHM files. Its previous preflight path copied the entire database and could not reuse the source receipt. A matching clean-close receipt now permits SQLite's normal locked read-only source transaction, including creation of empty WAL sidecars. Inspection rechecks the receipt before skipping the scan; dirty, incomplete, revoked, changed-version, or nonmatching proof retains validation. Existing stale-lease and write-admission fences remain in force.

Default startup phase diagnostics identify CLI import/configuration preparation, database admission, listener binding, and readiness without requiring tracing to be enabled beforehand.

Evidence

Reported Team timeline: boot 1 started 07:59:27, first loading configuration at 08:01:58 (151 seconds silent), agent database open 148,434 ms, listener 08:04:43, ready 08:04:48 (321 seconds total). Boot 2 started 08:30:30, first configuration log 08:34:00 (210 seconds silent), stale lease owner-pid-dead, agent open 45,135 ms, ready 08:35:01 (271 seconds total). Agent store: 38 GB; shared state: 534 MB; Node 26.10.

Controlled dist-CLI comparison on base 14fd53f8f69b, with and without this patch: provider blacksmith-testbox, profile openclaw-check, lease tbx_01m3ynk19hgfeh9628d4k4h8j4 (runner). Node 26.10.0, four effective CPUs, 16 GiB RAM, one 30,131,793,920-byte (28.1 GiB) valid synthetic agent database. Clean runs verified a genuine clean_close=1 receipt; crash runs killed the fixture's admitted owner and verified dirty proof. The CLI was node dist/index.js gateway --port <isolated-port>, with no NODE_OPTIONS.

Scenario Baseline HTTP listener Baseline ready Candidate HTTP listener Candidate ready
Clean receipt 363.86 s 365.10 s 8.83 s 9.94 s
Killed prior owner 57.55 s 58.68 s 10.44 s 11.48 s

Times run from child exec to the first successful HTTP probe, sampled every 100 ms. Both scenarios served the Control UI with HTTP 200. Candidate WebSocket upgrades completed at 9.12 s (clean) and 10.61 s (crash). After the crash, readiness reported the agent as inspection-pending; background admission completed at 35.70 s. Both Gateway runs then exited cleanly. The baseline clean boot took 359.40 s before loading configuration; the earlier candidate repetition reached clean/crash readiness in 7.63/11.63 s, so the result is not dependent on one fast candidate sample.

The full baseline pnpm build passed (14m 28s). Runtime measurements used the repository's sourcePerformance build profile plus Control UI assets. All selected candidate files were verified byte-for-byte before the final comparison. The later rebase onto 4e3ab7babc2f was patch-identical; these timing numbers remain evidence for the controlled base above.

Regression negative controls restored the original scheduler and read-only inspection implementation: the five-second queue-budget test failed because foreground work remained pending, and the clean-WAL test failed because it still needed a full-file copy. Restoring the candidate passed the focused tests. The new test bodies took 8 ms and 689 ms in that negative-control run; compiler preparation dominated its 25.62 s wall time. CLI proof (node scripts/run-vitest.mjs --config test/vitest/vitest.cli.config.ts src/cli/startup-trace.test.ts src/cli/run-main.gateway-startup.test.ts --maxWorkers=1) passed all 35 tests in 23.96 s. The final unit/Gateway command passed both shards in 87.99 s, including all 12 Gateway recovery/canary cases. Earlier receipt-policy, prepared-bootstrap, and readiness coverage also passed. These are single-worker wall/CI seconds, not CPU-time measurements.

Independent Codex review returned scoped-clean at P0–P2. The first focused run found one stale queued-agent readiness expectation; it was updated to the new 200-with-pending-details behavior, and the rerun passed. The staged gate caught a redundant extra log line exceeding the CLI file's growth cap; that line was removed while retaining the owning phase diagnostics.

Final checks on rebased head 2e073945f8f1 passed on lease tbx_01m3yt3xp0jw6hhzshy7amxqga (runner): node scripts/check-changed.mjs --staged --base HEAD^, including core typechecking, all 27 test typecheck graphs, lint, dead exports, and required guards; the CLI suite (35 tests, 27.36 s); the focused unit/Gateway command (both shards passed in 110.47 s, including 49 Gateway tests); and pnpm docs:list. Its source commit and all 21 changed files were verified before execution. The earlier lease ended after its measurements and focused tests; the initial lease tbx_01m3ymtsfszsntmm2qpm4tg51z was stopped while still queued.

Gap: this is a synthetic Linux store with small shared state, not live verification of Team's 38 GB btrfs store and 534 MB shared-state database. Deployment remains with the owning Team workflow.

Final CI repair and simplification

Current head: d69022f4feb4. The final diff contains only this lane's startup changes and retained fixture repairs. Main's fixes for registry fixture drainage (49135a709150), Codex error-copy/lifecycle diagnostics (eb978fd65e31), and bundled-plugin warnings (fb419a46b1a2) were incorporated by rebase; their files are unchanged from main. No upstream fixes were cherry-picked or copied into lane commits.

The scheduler owns one foreground timer for the fleet. Per-store timers, size reads, active-set bookkeeping, and the redundant path callback are deleted. Full inspection deadlines remain with the inspection owner; canaries and unowned stores stay strict. The retained CI repairs join asynchronous fixture owners before damaging startup-index files, establish the placement fixture's intended warm reader, and explicitly request snapshots in the snapshot-cleanup test. A later inherited maintenance fixture timeout is fixed by joining native age publication and using a real managed backdate instead of advancing only the host clock. All preservation, deletion, lineage, archive, identity, and timeout assertions remain.

Production LOC: +153/-72, net +81, reduced from +94. The scheduler itself is net -5. The growth exception is specific: +49 lines supply default startup phase diagnostics, including otherwise-silent entry imports; +12 preserve strict canary/unowned-store admission; +12 report pending stores without hiding confirmed readiness failures; +11 admit clean closed WAL files through receipt checks and ordinary SQLite locks; +2 reuse the startup owner's pending refusals during bootstrap. No new cache, configuration, schema, or competing owner is introduced. Measurement command: git diff --stat origin/main...HEAD -- ':!*.test.ts' ':!*test-support*' ':!docs/*'.

The original six failed jobs in run 37044412764 were fetched once. Pinned-main proof reproduced the Codex, plugin-warning, placement, registry, and startup-index failures. The snapshot-cleanup failure was a fixture that no longer selected its intended private-snapshot operation after clean-close optimization. A subsequent run, 37053386762 at 1f52096f8687, had one root failure: the host-clock maintenance fixture. Its published-driver update job passed. The final repair has a deterministic negative control and passing proof below; final-head CI is tracked separately.

Provider / lease Command and result
blacksmith-testbox, tbx_01m3ywzd28ym8r5amfn7vq7wnh node scripts/run-vitest.mjs --config test/vitest/vitest.runtime-config.config.ts src/config/sessions/startup-migration.registry-recovery.test.ts --maxWorkers=1: main 4 failed / 10 passed (29.62 s); candidate 14 passed (36.42 s).
Same Testbox lease node scripts/run-vitest.mjs --config test/vitest/vitest.infra.config.ts src/state/openclaw-database-preflight.startup-index.test.ts --maxWorkers=1: candidate 8 passed (19.98 s). Main reproduced two byte failures before a worker SIGKILL (54.56 s); remaining baseline cases did not finish.
Same Testbox lease Focused schema-only, scheduler, prepared-bootstrap, and integrity suites: 24 passed (33.50 s). Gateway readiness, native admission/recovery, canary, trace, placement, plugin, and Codex suites: 80/83 passed (177.95 s); three newly reached stale public-copy assertions were corrected, then all 7 Codex cases passed in 89.87 s. All commands used the repo wrapper and --maxWorkers=1.
Same Testbox lease CLI config with startup-trace and run-main gateway-startup files: 35 passed (8.02 s). node scripts/check-changed.mjs --staged passed core types, all 27 test typecheck graphs, formatting, lint, exports, and required guards; pnpm docs:list passed. Final focused-test/gate/docs payload exited 0 in 29m57s.
blacksmith-testbox, tbx_01m3z038raz5bxtesmy1nw4h7k After the first conflict rebase, reran Codex recovery and installed-package reload: 15 passed (107.45 s; 155.75 s including preparation). Their targeted changed-file gate passed, including the Gateway-server type graph (37.7 s), lint and exports. Full payload exited 0 in 7m22s.
aws, cbx_6427129dab83 node scripts/run-vitest.mjs --config test/vitest/vitest.gateway-database-workers.config.ts src/gateway/server-worker-placement-startup-maintenance.test.ts --maxWorkers=1: the ordering-controlled old-clock negative control hit the unchanged 120-second timeout after its worker-age and archive-wait markers (155.85 s wall). Final file: all 7 passed in 28.80 s wall / 4.25 s test time; dashboard case 997 ms. node scripts/check-changed.mjs --staged passed, including Gateway-server types (13.8 s), lint, exports, and guards. Full negative-control/test/check/cleanup payload exited 0 in 8m07s command time, 16m44s end-to-end.

All 171 selected tests have passing proof across the unchanged implementation and scoped follow-ups. The complete staged gate is explicitly prior-head evidence: the 24 retained files before the final fixture correction are byte-identical to reviewed, fully checked 12ab04a68d2e; the final correction has its own staged gate and review. The rebases only retire duplicate fixes now on main. Both original candidate reviews and the final fixture review returned scoped-clean at P0–P2.

Testbox used profile openclaw-check, Node 24.19.0, and pnpm 12.5.1. Exact candidate bytes were SHA-256 verified in pinned detached checkouts. The generic test selector omitted the two storage suites, which were run with their owning configs. Runtime preparation passed on baseline, candidate, and rebased candidate (37.3 s, 34.4 s, 41.2 s). Native suites retain their real Gateway/process boundary because mock-only proof cannot establish physical exit and thread custody; exact foreground timing uses fake clocks.

The initial lease tbx_01m3ywv9c9vg36bq796nxdk06r was stopped for the first rebase. The final fixture's Testbox lease tbx_01m3z1rnw399qx1phcgnr1gqbt queued for 16 minutes and ended in hydration failure, so the updated provider fallback rule was used. AWS run: run_d17a37073114877d496a4e604f1efe5f. All owned leases are stopped/released and temporary remote proof worktrees removed. Initial tooling-only setup failures were corrected by pinning the proof checkout and installing its complete workspace dependencies; no checks or source guards were bypassed.

Gap: the large-store timings above retain their original controlled Node 26 identity. This continuation does not claim a new 28 GiB benchmark or live Team verification.

Final-head GitHub CI: passed on d69022f4feb4, run 37059478912. All 96 jobs completed with no failures, including the previously failing maintenance shard and the published-driver update check.

@clawsweeper

clawsweeper Bot commented Oct 2, 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 size: M labels Oct 2, 2026
@steipete
steipete marked this pull request as ready for review October 2, 2026 17:59
@steipete
steipete enabled auto-merge (squash) October 2, 2026 18:02
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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 Oct 2, 2026
@clawsweeper

clawsweeper Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

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

ClawSweeper review

What this changes

The PR lets the Gateway serve while slow agent databases finish validation, reuses clean-close receipts without copying entire stores, adds startup diagnostics, and repairs affected test fixtures.

Merge readiness

✅ Ready for maintainer review

The PR remains useful: current main still blocks startup on the long inspection budget and copies clean closed-WAL stores. No actionable introduced defect was found, and the supplied runtime comparison provides strong evidence for the improvement.

Priority: P2
Reviewed head: d69022f4feb4622731e54d0e2b6fc0e1e9cd2001

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Strong production-path measurements, negative controls, and preserved admission safeguards support an above-average patch with no actionable findings.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The built Gateway CLI comparison exercises the changed scheduling and closed-WAL inspection owners on an existing 28.1 GiB Linux store, showing earlier HTTP/WebSocket availability and successful background crash recovery. Later evidence separately covers the final fixture correction. Live Team verification is outside this proof, and no stored-data format changes require migration.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The built Gateway CLI comparison exercises the changed scheduling and closed-WAL inspection owners on an existing 28.1 GiB Linux store, showing earlier HTTP/WebSocket availability and successful background crash recovery. Later evidence separately covers the final fixture correction. Live Team verification is outside this proof, and no stored-data format changes require migration.
Evidence reviewed 8 items Pinned introduction and review continuity: Reviewed the merge-base-to-head introduction. Comparing the previous reviewed head with the current head shows only the placement-maintenance fixture correction; production behavior is unchanged since that completed review. The supplied test merge is stale and was not used to infer removal of main-only work.
Current main still needs the optimization: Fetched main still uses size-derived per-store foreground timers. Its read-only inspection helper still requires a private snapshot for WAL stores without both sidecars. These central paths are unchanged between the pinned merge base and fetched main; no merged replacement was established.
Bounded wait preserves admission ownership: One five-second timer selects unfinished owned stores for deferral. Unowned stores and update canaries remain foreground. Background recovery retains the original refusal, file identity, Gateway lifetime, deletion checks, and preparation guard; ordinary callers remain refused until preparation completes.
Findings None None.
Security None None.

How this fits together

Gateway startup validates stored agent data before permitting writes and inference. This change lets the HTTP listener and healthy agents become available while the existing admission owner finishes slower stores.

flowchart TD
  A[Gateway startup] --> B[Database admission owner]
  B --> C[Receipt and integrity checks]
  C --> D{Foreground work finished?}
  D -->|Yes| E[Admitted agents]
  D -->|No| F[Background validation with agent fenced]
  F --> E
  D --> G[Listener and readiness details]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +81, Tests +245, Docs +24. Total +350 across 25 files.

View PR surface stats
Area Files Added Removed Net
Source 12 153 72 +81
Tests 10 305 60 +245
Docs 3 31 7 +24
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 25 489 139 +350

Review metrics

Metric Value Why it matters
Production versus test growth production +153/-72, tests +305/-60 Production growth has a specific justification covering startup diagnostics, strict admission exceptions, pending readiness details, and receipt reuse.

Technical review

Best possible solution:

Keep database validation with the existing admission owner while allowing the listener to serve, with explicit pending-agent diagnostics and strict update-canary checks.

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

Yes: current-main source establishes the long foreground wait and closed-WAL copy path, and the supplied controlled built-CLI comparison demonstrates their impact. This read-only review did not execute current main.

Is this the best way to solve the issue?

Yes: the patch repairs scheduling and receipt reuse in their existing owners, preserves full validation and agent fences, and avoids new configuration or persistence.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This addresses substantial large-store startup delays with a bounded performance and reliability improvement.
  • 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 built Gateway CLI comparison exercises the changed scheduling and closed-WAL inspection owners on an existing 28.1 GiB Linux store, showing earlier HTTP/WebSocket availability and successful background crash recovery. Later evidence separately covers the final fixture correction. Live Team verification is outside this proof, and no stored-data format changes require migration.
  • proof: sufficient: Contributor real behavior proof is sufficient. The built Gateway CLI comparison exercises the changed scheduling and closed-WAL inspection owners on an existing 28.1 GiB Linux store, showing earlier HTTP/WebSocket availability and successful background crash recovery. Later evidence separately covers the final fixture correction. Live Team verification is outside this proof, and no stored-data format changes require migration.

Evidence

What I checked:

  • Pinned introduction and review continuity: Reviewed the merge-base-to-head introduction. Comparing the previous reviewed head with the current head shows only the placement-maintenance fixture correction; production behavior is unchanged since that completed review. The supplied test merge is stale and was not used to infer removal of main-only work. (src/gateway/server-worker-placement-startup-maintenance.test.ts:267, d69022f4feb4)
  • Current main still needs the optimization: Fetched main still uses size-derived per-store foreground timers. Its read-only inspection helper still requires a private snapshot for WAL stores without both sidecars. These central paths are unchanged between the pinned merge base and fetched main; no merged replacement was established. (src/state/openclaw-database-preflight-agent-scheduler.ts:132, b4d1a0efc8a9)
  • Bounded wait preserves admission ownership: One five-second timer selects unfinished owned stores for deferral. Unowned stores and update canaries remain foreground. Background recovery retains the original refusal, file identity, Gateway lifetime, deletion checks, and preparation guard; ordinary callers remain refused until preparation completes. (src/state/openclaw-database-preflight-agent-scheduler.ts:161, d69022f4feb4)
  • Receipt reuse remains conservative: The worker checks receipt eligibility before allowing a closed-WAL source read, then rereads the receipt when inspecting the pinned SQLite transaction. Existing eligibility checks require clean close, matching application version, canonical path, and file identity; migration checks can still require full validation. No schema or serialized-state format changes are introduced. (src/state/openclaw-agent-schema-inspection.worker.ts:43, d69022f4feb4)
  • Real built-CLI comparison: The captured PR body reports a controlled Linux dist-CLI comparison using a 28.1 GiB existing synthetic store: clean readiness improved from 365.10 to 9.94 seconds; killed-owner readiness improved from 58.68 to 11.48 seconds. HTTP returned 200, WebSocket upgrades completed, and crash-recovery admission completed at 35.70 seconds. This exercises startup, inspection, listener binding, and background recovery. It does not claim live Team btrfs verification.
  • Complete captured proof body: Read the omitted body tail through the GitHub API and verified that the complete body SHA-256 matches the supplied snapshot identity, 9f34f8864cd942ed7e580b21e069be999b06d55c2ec0e97854f0a5eb820dabe1. The tail explicitly retains the original benchmark identity and distinguishes prior-head gates from the final fixture's own negative-control and passing validation. (d69022f4feb4)

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 (3 earlier review cycles)
  • reviewed 2026-10-02T18:08:32.732Z sha 2e07394 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-02T19:08:03.784Z sha 12ab04a68d2e1faed5d6ab918f6d3e33dabbf718 :: needs changes before merge. :: none
  • reviewed 2026-10-02T19:26:47.772Z sha 1f52096 :: needs maintainer review before merge. :: none

@steipete
steipete force-pushed the steipete/perf-micro-startup-time-20260919 branch from 2e07394 to 12ab04a Compare October 2, 2026 19:02
@steipete
steipete force-pushed the steipete/perf-micro-startup-time-20260919 branch from 12ab04a to 9fe7e61 Compare October 2, 2026 19:15
Bound foreground agent inspection without shortening validation or weakening write admission. Reuse clean closed-WAL receipts without full-file copies, preserve pending admission across bootstrap, and expose startup phase timings. Normal readiness can serve while agents warm; update canaries retain strict validation.

Testbox proof on a 28.1 GiB synthetic store with Node 26.10: clean readiness 365.10s to 9.94s; crash readiness 58.68s to 11.48s, with agent admission completing at 35.70s. Focused tests and regression negative controls passed. Independent review found no actionable P0-P2 issues. Final staged validation continues after the line-cap correction.
@steipete
steipete force-pushed the steipete/perf-micro-startup-time-20260919 branch from 9fe7e61 to 1f52096 Compare October 2, 2026 19:19
@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 Oct 2, 2026
Join the first native age publication before releasing placement protection. Replace the host-only clock mock with a managed backdate through the existing entry writer, keeping all preservation and archive assertions intact.
@steipete
steipete merged commit ec62b50 into main Oct 2, 2026
154 checks passed
@steipete
steipete deleted the steipete/perf-micro-startup-time-20260919 branch October 2, 2026 20:36
vincentkoc added a commit that referenced this pull request Oct 2, 2026
* commit '79be075e5aa46be9e42dbd53ed6e30e81469210a': (33 commits)
  fix(ui): keep selected-text comment input readable while scrolling (#163772)
  test(memory): open corpus database explicitly
  fix: bound Doctor migration capture to plugin data (#163780)
  fix(ui): gate system information at the shared reader (#160982)
  chore(db): reclassify worker inventory sites with caller evidence (#163754)
  refactor(channels): deslop Slack and Matrix (#163740)
  fix(agents): reject empty sessions_search queries in the tool schema (#129120)
  perf(nodes): load only what a worker turn needs (#160442)
  test(cli): assert concise Gateway failure copy in CLI process tests (#163649)
  refactor(discord): deslop discord (#163728)
  fix(workboard): make Sessions boards work on multi-agent Gateways (#163761)
  test(gateway): add sustained heap retention diagnostics (#163764)
  test(ui): disambiguate session filter controls
  refactor(plugins): deslop imessage, mattermost, and voice-call (#163767)
  fix(qa): run Telegram plugin source in --source-gateway userbot runs (#163718)
  feat(macos): add a --no-activate launch flag for background automation (#163758)
  fix(agents): preserve host authority across module reloads (#163725)
  perf(gateway): serve the listener before multi-gigabyte store validation and honor clean-close receipts at startup (#163690)
  fix: keep video widgets scrollable and preload initial frames (#163762)
  feat(memory): add a provider-neutral memory provider runtime (#162175)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 3, 2026
…ion and honor clean-close receipts at startup (openclaw#163690)

* perf(gateway): defer slow agent admission past listener startup

Bound foreground agent inspection without shortening validation or weakening write admission. Reuse clean closed-WAL receipts without full-file copies, preserve pending admission across bootstrap, and expose startup phase timings. Normal readiness can serve while agents warm; update canaries retain strict validation.

Testbox proof on a 28.1 GiB synthetic store with Node 26.10: clean readiness 365.10s to 9.94s; crash readiness 58.68s to 11.48s, with agent admission completing at 35.70s. Focused tests and regression negative controls passed. Independent review found no actionable P0-P2 issues. Final staged validation continues after the line-cap correction.

* perf(gateway): simplify startup admission and repair CI fixtures

* test(gateway): invalidate worker age facts in placement maintenance

Join the first native age publication before releasing placement protection. Replace the host-only clock mock with a managed backdate through the existing entry writer, keeping all preservation and archive assertions intact.
wheakerd pushed a commit to wheakerd/clawdbot that referenced this pull request Oct 3, 2026
* commit '1fda703fb4d3630e4633461967b2a2186e8f15fd': (33 commits)
  fix(ui): keep selected-text comment input readable while scrolling (openclaw#163772)
  test(memory): open corpus database explicitly
  fix: bound Doctor migration capture to plugin data (openclaw#163780)
  fix(ui): gate system information at the shared reader (openclaw#160982)
  chore(db): reclassify worker inventory sites with caller evidence (openclaw#163754)
  refactor(channels): deslop Slack and Matrix (openclaw#163740)
  fix(agents): reject empty sessions_search queries in the tool schema (openclaw#129120)
  perf(nodes): load only what a worker turn needs (openclaw#160442)
  test(cli): assert concise Gateway failure copy in CLI process tests (openclaw#163649)
  refactor(discord): deslop discord (openclaw#163728)
  fix(workboard): make Sessions boards work on multi-agent Gateways (openclaw#163761)
  test(gateway): add sustained heap retention diagnostics (openclaw#163764)
  test(ui): disambiguate session filter controls
  refactor(plugins): deslop imessage, mattermost, and voice-call (openclaw#163767)
  fix(qa): run Telegram plugin source in --source-gateway userbot runs (openclaw#163718)
  feat(macos): add a --no-activate launch flag for background automation (openclaw#163758)
  fix(agents): preserve host authority across module reloads (openclaw#163725)
  perf(gateway): serve the listener before multi-gigabyte store validation and honor clean-close receipts at startup (openclaw#163690)
  fix: keep video widgets scrollable and preload initial frames (openclaw#163762)
  feat(memory): add a provider-neutral memory provider runtime (openclaw#162175)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cli CLI command changes docs Improvements or additions to documentation 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. 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.

1 participant