Skip to content

perf(gateway): move startup maintenance after readiness - #165218

Merged
steipete merged 1 commit into
mainfrom
steipete/perf-micro-startup-to-ready-20260919
Oct 5, 2026
Merged

steipete merged 1 commit into
mainfrom
steipete/perf-micro-startup-to-ready-20260919

Conversation

@steipete

@steipete steipete commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Large Gateways remain unavailable during updates while startup repeats state reads and waits for maintenance before readiness.

User Impact

Mandatory config, schema, permission, session, model, and channel admission remains before ready; nonessential maintenance runs afterward through the existing tracked lifetime. On the latest matched synthetic rig, startup improved from 64.113 s to 43.876 s with refreshed metadata and 49.597 s to 36.868 s warm. The candidate served its first sessions.list 589 ms / 634 ms after ready.

The ≤20-second startup target is not met. No production Gateway was changed. There is no new configuration option, schema, public protocol, installation migration, or durable cache.

Why This Change Was Made

The existing recorder now attributes CLI admission, metadata refresh and leases, session admission/materialization, and listener-to-ready work. Each read-only CLI admission pass shares one coherent state snapshot and releases it before live guards or writes. Checkpoints reuse admitted shared-state ownership; the separate legacy/native bootstrap contract remains. Prepared agent headers preserve verified ownership metadata.

Transcript repair, orphan settlement, channel maintenance, pairing diagnostics, and restored subagent activation use the tracked post-ready lifetime. The existing transcript-report worker atomically writes interrupted status and its idempotent receipt, retaining physical identity, live commit authority, cancellation, and shutdown settlement. Existing recovery owners return a typed no-write outcome; custody acquired during a write still rolls it back. Ordinary failure-receipt callers retain Promise<void>.

Retired plugin/native captures move to idle cleanup. Its plugin-owned asynchronous lease uses the existing worker lifecycle for acquisition, verification, renewal, and release. It shares waiter accounting with ordinary plugin lifecycle work so a reload draining root work can still escape a lease wait cycle. Main-session orphan marking overlaps plugin loading, with both joined before model/channel admission or failure propagation.

The composite foreground maintenance path, fallback store discovery, native orphan-settlement callback, native cleanup lease adapter, and obsolete test routing are removed. Production LOC is positive: requested attribution and the deferred worker handoff require explicit identity, current authority, atomic publication, retained outcomes, and lifecycle settlement. Under the requested exclusions (:!*.test.ts, :!*test-support*, :!docs/*), production/tooling is +1,666 / −924 = +742 lines. The existing recorder, scheduler, state-worker, lease, and cleanup owners are reused; no competing manager or cache is introduced.

Evidence

Ubuntu Linux rig, 8 cores, Node 26.8.1, real dist Gateway bound to loopback. Synthetic fixture: 38 public plugins, two agents, a 4,833,120,256-byte primary agent database with 8,065 nodes and 4,071,821 transcript events; secondary database 1,282,048 bytes with one session and 505 events; shared state approximately 537 MB. External channel accounts and private plugins were absent.

The initial unarchived fixture reproduced 54.166 s startup, including 16.644 s foreground maintenance. Normal maintenance subsequently archived 3,064 rows. Matched runs retain that same state and use fixture-only session.maintenance.maxEntries=10000 to prevent further capacity archiving. All runs load 38 plugins, return 5,002 visible sessions, serve history, and settle deferred maintenance.

The latest pair uses source base a75455653ba88b468cf2c8dfcb32357293f5a463; the baseline adds timing instrumentation only. “Refresh” is the first startup following the runtime rebuild; “warm” reuses its metadata. The OS page cache was not cleared. These are single observations on a shared host, not statistical estimates.

Run Started → ready Ready → first sessions.list
Baseline, metadata refresh 64.113 s 1,626 ms
Candidate, metadata refresh 43.876 s 589 ms
Baseline, warm 49.597 s 2,155 ms
Candidate, warm 36.868 s 634 ms

Parent and child spans overlap; durations must not be added:

Phase Refresh before Refresh after Warm before Warm after
Process bootstrap 37.440 s 27.519 s 27.456 s 19.000 s
CLI bootstrap, nested 32.844 s 25.060 s 16.575 s 9.775 s
Database readiness, all passes, nested 7.734 s 7.188 s 4.625 s 3.616 s
Initial plugin config reads, nested 6.859 s 5.689 s 5.395 s 4.120 s
Foreground startup maintenance 11.599 s moved after ready 2.918 s moved after ready
Required session admission included above 1.024 s included above 1.048 s
Agent schema preflight 1.965 s 1.695 s 1.763 s 1.663 s
Secrets activation/policy publication 0.171 s 0.221 s 2.640 s 2.626 s
Request runtime 5.497 s 5.664 s 6.612 s 5.224 s
Listener bound → ready 5.651 s 5.116 s 6.184 s 4.665 s
Deferred startup maintenance — 9.981 s — 3.567 s

Database-readiness records represent separate fleet passes, not one record per agent; inspection already uses concurrency two. Plugin registration is synchronous by contract and occurs after CLI bootstrap. The new refresh span attributes 6.505 s to plugin-index refresh.

Load variability is material. An earlier matched pair on base 5f497e71d52c043277574351714ab3bde246f843 measured 41.575→29.286 s refresh and 31.086→24.986 s warm, with candidate first lists in 349/324 ms. An initial smoke on the newer source measured 48.487/35.647 s and 1,226/438 ms to the first list; the refreshed smoke missed the handoff target. These results are retained, not replaced by the later pair.

Validation

The latest measured runtime source (c8b847edc7e4e5089cec4b01ca056727f24e279a integration) reached ready in 38.818 s metadata refresh / 31.805 s warm, with first session lists in 514 / 456 ms. It loaded all 38 plugins, returned 5,002 visible sessions, served history, and completed deferred maintenance. These timings predate the CI correctness repairs below; the ≤20-second goal remains unmet.

A fresh smoke of the 417d5c306fff46aa5d710b28dd81873630d5435c integration measured 58.621 s refresh / 42.700 s warm, with first session lists in 925 / 1,435 ms. Both runs loaded 38 plugins, returned 5,002 sessions, served history, and settled deferred maintenance. The warm run misses the one-second first-list target. The 8-core rig reported load averages of 12.86 and 16.22 at launch; without a simultaneous baseline this is current-source functional/timing evidence, not a new before/after performance comparison. Its runtime build passed in 184 s.

Current-source phase attribution (refresh / warm, overlapping parent spans):

Phase Refresh Warm
Process bootstrap 37.376 s 21.839 s
CLI bootstrap, nested 33.594 s 11.255 s
Initial admission snapshot, all passes, nested 21.115 s 10.512 s
Plugin-index refresh, nested 7.630 s —
Agent schema preflight 2.445 s 1.867 s
Required session admission 1.286 s 1.066 s
Request runtime 7.139 s 6.087 s
Plugin runtime after bind 3.060 s 2.796 s
Main-session recovery scan, overlaps plugin loading 3.754 s 3.601 s
Plugin services 0.957 s 1.207 s
Post-ready maintenance 19.228 s 8.239 s
Bound → ready 5.902 s 5.990 s

Published-head CI run 37248312056 exposed deferred recovery inheriting a closed startup snapshot. Recovery now starts under the existing detached context while keeping explicit environment, cancellation, file witnesses, and current Gateway authority. A real snapshot regression fails on the old owner and passes on the correction. The built-CLI SQLite lifecycle proof now passes through the previously failing readiness path.

CI also exposed an inherited concurrent-first-write race: a second transcript lookup lost its registry witness when the first writer registered their selected absent store. The existing registry owner now recognizes that first registration and pins one physical generation across all aliases. It does not retry reads or replay callbacks. Real alias replacement, different-owner, and retirement cases still refuse. A negative control reproduces the alias replacement defect on the intermediate owner; the corrected source passes.

Main now owns the host-broker fork routing and shared Doctor maintenance-lock fixture; this branch removes its duplicated corrections after rebasing. Remaining fixtures follow the production owners: the declaration fixture copies its new static dependency; X uses its existing local barrel and generated sidecar inventory. The maintenance mock stays inside the scheduler suite. Three kernel suites share their identical environment fixture, removing 27 duplicated lines without removing assertions.

Provider blacksmith-testbox, profile openclaw-check, lease tbx_01m44xj7ewnfqs6005jyjp9csr verified exact source hashes before each command. Pre-rebase correction proof passes 26 files / 499 tests, plus the built-CLI lifecycle test. Commands used node scripts/run-vitest.mjs <files> --maxWorkers=1; the built-CLI proof used the repository's E2E config and prebuilt dist.

Focused group Result Vitest wall time
Host-broker suites, including real Doctor batch owner 7 files / 72 tests passed 59.56 s
CI/project routing 2 / 205 passed 80.51 s
Unified declaration fixture, named failing case 1 / 1 passed 11.13 s
Plugin metadata + channel entry shape 2 / 56 passed 18.51 / 5.91 s
Runtime build boundary 1 / 33 passed 16.53 s
Kernel, startup/shutdown siblings, scheduler 4 / 18 passed 39.25 s
SDK + entry-reader siblings 2 / 30 passed 24.12 s
Alias/physical identity + target siblings 2 / 26 passed 14.88 s
Agent admission 1 / 13 passed 29.54 s
Gateway agent startup 1 / 12 passed 84.08 s
Config snapshot + preflight/recovery 3 / 33 passed 53.26 s
Built-CLI SQLite lifecycle 1 / 1 passed 109.37 s

The slower Gateway and lifecycle files exercise real server, worker, migration, and shutdown boundaries. The added admission regression itself takes 518 ms and adds no Gateway boot. Its old-owner negative control failed with the intended closed-snapshot reason in 17.293 s including startup; the alias control failed with an incorrectly accepted replacement in 23.235 s.

The runtime build (node --import ./scripts/tsx.mjs scripts/build-all.mts qaRuntime) passed in 36.7 s. On lease tbx_01m44v5asxr06yxbk872jj95ge, the SDK repair's unchanged ordinary path passed 20 contention repetitions and three original 33-file shard replays (222.40 / 224.05 / 223.97 s; total command 18m 25.939s). Its old-owner replay reproduced the original failure in 244.697 s. The subsequent alias correction was verified by the current focused groups above.

Earlier perf-owner proof remains valid for unchanged inputs: 14 files / 225 tests; 20 lease-demand repetitions and three full lease-file replays; ordinary transcript reports, orphan custody/rollback, faithful restart, capture cleanup, and whole-operation zero-host-SQL checks. Four baseline controls failed for incoherent snapshot reads, redundant checkpoint scans, lost prepared ownership metadata, and serialized orphan marking. No assertions, timeouts, expected failures, or baseline exceptions were weakened.

The pre-rebase correction passed the complete staged gate in 38m 32.940s command time and fresh independent review with no actionable P0–P2 findings. Rebase onto 417d5c306fff46aa5d710b28dd81873630d5435c then integrated main's backlog scheduler and archived-session settlement. The single scheduler retains its shorter-backlog and equal-backlog ordering, and caller cancellation releases its reservations. Archived stale-running sessions settle through the existing worker without reading or appending transcripts; their identity and live execution ownership are revalidated, while recovery/delivery metadata and known run timing remain intact. The existing archive policy now lives with session terminal-state handling and is shared by archive and startup callers.

Current integration on blacksmith-testbox / openclaw-check / tbx_01m453safekgjx9rs51arq8fpz passed 13 focused files / 269 tests: reconciliation 5/38 in 56.25 s, Gateway recovery 5/37 in 96.42 s, main-session recovery 1/151 in 156.27 s, transcript reports 1/14 in 15.39 s, and faithful subagent restart 1/29 in 52.54 s. The runtime build passed in 39.3 s and built-CLI lifecycle passed in 107.00 s. Combined command time was 9m 47.156s. All 99 staged source hashes were verified before execution.

Fresh independent review of the complete integrated candidate finished scoped-clean, with no actionable P0–P2 findings. The exact integrated candidate passed node scripts/check-changed.mjs --staged on the same lease in 32m 53.456s (32m 54.102s including orchestration): all selected guards, types, dead-export scans, and lint passed. Existing unrelated line-count warnings remained; no baseline or threshold was changed. The lease was stopped before finalizing the commit, and the resulting commit tree was verified equal to the reviewed/tested tree. Head fb114dbe92044e347dc6fda26b8bb7a8c2647646 passed CI run 37265424560 in 713 s elapsed (30,115 summed job wall seconds across 163 jobs, including parallel jobs) and build-artifact validation in 343 s elapsed. The aggregate CI gate passed. The lead’s watcher merged the PR at 2026-10-05 05:06:35 UTC as ddf95b6c52db452426f56a62d46962284b2d5f31; no manual merge or auto-merge command was used. The inherited declaration-fixture failure has focused Linux proof; Windows jobs were not selected on the final head, so this is not a fresh Windows execution claim.

Remaining gaps

Startup still repeats shared-state lock/checkpoint and canonical admission on the warm path; safely eliminating that duplication requires an ownership handoff. Session projection/materialization remains significant. Prepared-header reuse misses in the WAL-backed fixture, and no identity witness was relaxed. Secrets activation includes required durable policy publication.

The fixture approximates database size and cardinality, not production payload distribution, private plugins, live external accounts, or secret-provider latency. A production deployment and the ≤20-second target remain unverified.

@clawsweeper

clawsweeper Bot commented Oct 5, 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 size: XL labels Oct 5, 2026
@steipete
steipete marked this pull request as ready for review October 5, 2026 00:38
@steipete
steipete enabled auto-merge (squash) October 5, 2026 00:41
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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 Oct 5, 2026
@clawsweeper

clawsweeper Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge. Reviewed October 5, 2026, 1:01 AM ET / 05:01 UTC (Revision 4).

ClawSweeper review

What this changes

The PR moves optional Gateway maintenance after readiness, shares startup admission reads, transfers orphan settlement to database workers, and adds startup timing details.

Merge readiness

⛔ Blocked before merge - 5 items remain

Five prior findings are addressed, but idle cleanup still drops scheduler cancellation. The useful startup improvement remains distinct from main; published-updater upgrade proof is also outstanding.

Priority: P2
Reviewed head: fb114dbe92044e347dc6fda26b8bb7a8c2647646

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) Strong runtime evidence and substantial corrections support the work, but cancellation and upgrade validation still block readiness.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): Real Linux dist-Gateway runs exercise readiness, session lists, history, and deferred maintenance; recorded production-worker fault cases cover custody changes and rollback. These support the changed behavior despite disclosed timing variability. Published-updater upgrade validation remains a separate gap; no stored-format change was identified.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): Real Linux dist-Gateway runs exercise readiness, session lists, history, and deferred maintenance; recorded production-worker fault cases cover custody changes and rollback. These support the changed behavior despite disclosed timing variability. Published-updater upgrade validation remains a separate gap; no stored-format change was identified.
Evidence reviewed 8 items Pinned introduction and merge ownership: Reviewed the introduced delta from 417d5c3 to fb114db. Raw test-merge parent records match the pinned base followed by the exact head; the cleanup signal defect survives that merge.
Cancellation remains disconnected: The idle scheduler supplies a signal combining scope cancellation and restart drain. Its cleanup caller ignores that argument and supplies only connectionWork.signal. The introduced artifact lease can wait ten minutes while retaining an active root; restart drain precedes connection closure.
Prior findings checked: Deferred preparation now uses runInDetachedAsyncContext with explicit owner guards and a closed-snapshot regression. The maintenance mock is scoped to its scheduler suite, the lifecycle import guard reads both owning modules, recovery fixtures follow shared snapshot admission, and kernel timing expectations include the new spans. The prior cancellation finding remains unresolved.
Findings 1 actionable finding [P2] Forward the idle-task cancellation signal into artifact cleanup
Security None None.

How this fits together

The Gateway admits configuration, plugins, and session databases before serving clients. Its background maintenance repairs session projections and reclaims retired plugin artifacts under tracked lifetimes.

flowchart TD
  A[Configuration and stored state] --> B[Required startup admission]
  B --> C[Gateway readiness]
  C --> D[Client requests]
  C --> E[Tracked background maintenance]
  E --> F[Session repair workers]
  E --> G[Plugin artifact cleanup]
  H[Restart and cancellation] --> E
Loading

Before merge

  • Forward the idle-task cancellation signal into artifact cleanup (P2) - This previously raised finding remains unresolved. scheduleGatewayIdleTask passes a signal combining its scheduler scope and restart drain, but this callback ignores it and forwards only connectionWork.signal. The new cleanup lease can wait ten minutes while holding an active Gateway root. Restart drains active work before connection close, so this wait does not cancel when draining begins; scope stop can also remain blocked. Accept and forward the idle signal, retaining connection cancellation and current-owner checks.
  • Resolve merge risk (P1) - The changed startup admission and plugin cleanup paths lack published-updater-to-candidate upgrade evidence preserving existing configuration, sessions, and plugin artifacts.
  • Complete next step (P2) - Forward idle-task cancellation into artifact cleanup and record fresh-install plus published-updater-to-candidate upgrade results preserving existing state.
  • Review config compatibility - Confirm compatibility and upgrade impact for the changed config or default surface before merge.
  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.

Findings

  • [P2] Forward the idle-task cancellation signal into artifact cleanup — src/gateway/server-startup-finish.ts:679-682
Agent review details

Security

None.

PR surface

PR surface statistics unavailable: the file list is incomplete.

Review metrics

Metric Value Why it matters
Production versus test growth production/tooling +730 net; tests/support +768 net The PR explains production growth through timing attribution, worker handoff, authority checks, and lifecycle settlement; counts separate test harnesses from production.

Stored data model

Persistent data-model change detected: database schema: scripts/database-worker-inventory.mjs, migration/backfill/repair: scripts/database-worker-inventory.mjs, migration/backfill/repair: src/commands/startup-config-preflight.ts, migration/backfill/repair: src/gateway/server-startup-plugins.ts, serialized state: src/commands/config-preflight-snapshot.ts, serialized state: src/commands/startup-config-preflight.ts, and 4 more. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Connect cancellation and verify upgrades (recommended)
    Forward the idle-task signal through cleanup, prove lease-wait cancellation, and record the existing published-driver upgrade cell before landing.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Forward the idle scheduler callback signal into retired-plugin cleanup, combining it with connection cancellation as needed; add focused lease-wait cancellation coverage without weakening ownership checks. Preserve the separate published-driver upgrade evidence gate.

Technical review

Best possible solution:

Retain the deferred startup design with cancellable cleanup and published-updater upgrade proof preserving existing state.

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

Yes, source establishes the remaining defect: start idle cleanup behind a held plugin lease, then begin restart drain; the scheduler signal aborts while cleanup waits on the unrelated connection signal. No target code was executed during this review.

Is this the best way to solve the issue?

Yes, the existing admission, worker, and maintenance owners are the appropriate boundaries; forwarding their cancellation signal is a narrow correction.

Full review comments:

  • [P2] Forward the idle-task cancellation signal into artifact cleanup — src/gateway/server-startup-finish.ts:679-682
    This previously raised finding remains unresolved. scheduleGatewayIdleTask passes a signal combining its scheduler scope and restart drain, but this callback ignores it and forwards only connectionWork.signal. The new cleanup lease can wait ten minutes while holding an active Gateway root. Restart drains active work before connection close, so this wait does not cancel when draining begins; scope stop can also remain blocked. Accept and forward the idle signal, retaining connection cancellation and current-owner checks.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.94

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a useful startup improvement with a bounded cleanup cancellation defect.
  • merge-risk: 🚨 availability: Ignoring idle-task cancellation can keep cleanup lease waits active during restart drain.
  • merge-risk: 🚨 compatibility: Candidate restart proof does not establish the required installed-updater transition with existing state.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Sufficient (live_output): Real Linux dist-Gateway runs exercise readiness, session lists, history, and deferred maintenance; recorded production-worker fault cases cover custody changes and rollback. These support the changed behavior despite disclosed timing variability. Published-updater upgrade validation remains a separate gap; no stored-format change was identified.
  • proof: sufficient: Contributor real behavior proof is sufficient. Real Linux dist-Gateway runs exercise readiness, session lists, history, and deferred maintenance; recorded production-worker fault cases cover custody changes and rollback. These support the changed behavior despite disclosed timing variability. Published-updater upgrade validation remains a separate gap; no stored-format change was identified.

Evidence

Acceptance criteria:

  • [P1] pnpm test src/gateway/server-idle-task.test.ts src/gateway/server-retained-plugin-cleanup.test.ts src/plugins/plugin-lifecycle-lease.test.ts --maxWorkers=1.
  • [P1] node scripts/check-changed.mjs --staged.
  • [P1] git diff --check.

What I checked:

  • Pinned introduction and merge ownership: Reviewed the introduced delta from 417d5c3 to fb114db. Raw test-merge parent records match the pinned base followed by the exact head; the cleanup signal defect survives that merge. (src/gateway/server-startup-finish.ts:682, f48483db67d6)
  • Cancellation remains disconnected: The idle scheduler supplies a signal combining scope cancellation and restart drain. Its cleanup caller ignores that argument and supplies only connectionWork.signal. The introduced artifact lease can wait ten minutes while retaining an active root; restart drain precedes connection closure. (src/gateway/server-startup-finish.ts:682, fb114dbe9204)
  • Prior findings checked: Deferred preparation now uses runInDetachedAsyncContext with explicit owner guards and a closed-snapshot regression. The maintenance mock is scoped to its scheduler suite, the lifecycle import guard reads both owning modules, recovery fixtures follow shared snapshot admission, and kernel timing expectations include the new spans. The prior cancellation finding remains unresolved. (src/state/agent-database-startup.ts:354, fb114dbe9204)
  • Complete captured runtime evidence inspected: Fetched and read the complete 14,403-unit PR body, verifying its SHA-256 matches the supplied snapshot: 7a92d202e9876f73184eff87226231b95f8982a737f57cabfd94f2013fd01371. It records real built-Gateway Linux runs serving 5,002 sessions and history, settling deferred maintenance, and matched startup improvements of 64.113→43.876 seconds and 49.597→36.868 seconds. It also records integrated production-boundary tests, a built-CLI lifecycle pass, and tested-tree equality. Performance targets remain unmet and host variability is disclosed. (fb114dbe9204)
  • Final-effect authority coverage: Startup settlement rechecks Gateway ownership and retained session custody around commit admission. The recorded integration results cover real worker transactions with local/durable ownership appearing at commit, lease replacement or release, rollback, and unchanged rows and receipts after refusal. Artifact cleanup tests likewise preserve files after caller or lease revocation. No new schema or serialized format is introduced. (src/gateway/session-startup-orphan-races.test.ts:229, fb114dbe9204)
  • Upgrade proof remains separate: Root AGENTS.md requires a published-driver × candidate cell for startup/plugin lifecycle changes. The complete PR body provides candidate startup and lifecycle evidence but no such upgrade result. The existing published-driver selection explicitly skips pull_request events, so ordinary PR CI cannot be assumed to supply it. (scripts/lib/ci-published-driver-update-plan.mts:16, fb114dbe9204)

Likely related people:

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

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Forward idle-task cancellation and prove a held cleanup lease wait exits on restart drain.
  • Record fresh-install and published-updater-to-candidate upgrade results preserving existing state.

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-05T00:45:28.535Z sha 84180b3 :: blocked before merge. :: none
  • reviewed 2026-10-05T00:53:02.147Z sha 84180b3 :: blocked before merge. :: [P2] Forward the idle-task cancellation signal into artifact cleanup | [P2] Keep the startup-plugin mock out of kernel harness consumers | [P3] Update the stable lifecycle import guard for its new owner | [P3] Align the recovery fixtures with shared snapshot admission
  • reviewed 2026-10-05T01:31:44.800Z sha 84180b3 :: blocked before merge. :: [P1] Detach deferred admission from the temporary startup snapshot | [P2] Forward the idle-task cancellation signal into artifact cleanup | [P2] Keep the startup-plugin mock out of kernel harness consumers | [P3] Update the stable lifecycle import guard for its new owner | [P3] Align the recovery fixtures with shared snapshot admission | [P3] Refresh the kernel timing assertion for the changed trace

@clawsweeper clawsweeper Bot added 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. and removed status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 5, 2026
Attribute CLI bootstrap and listener-to-ready work with the existing
recorder, share admitted state reads, and carry prepared stores into
tracked post-ready maintenance. Reuse admitted checkpoint ownership and
preserve ownership metadata in prepared agent schema headers.

Settle orphan status and its failure receipt atomically on the existing
database worker. Preserve retained recovery ownership and revalidate
current authority around commit grants. Move capture reclamation to idle
cleanup under worker-backed lease authority, retain reload waiter
accounting, and overlap main-session marking with plugin loading.

A matched synthetic Linux run on base a754556 reduced metadata-refresh
startup from 64.113s to 43.876s and warm startup from 49.597s to 36.868s.
First sessions.list completed in 589ms and 634ms. The 20-second startup
target remains unmet; no production Gateway was changed.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 6, 2026
)

Attribute CLI bootstrap and listener-to-ready work with the existing
recorder, share admitted state reads, and carry prepared stores into
tracked post-ready maintenance. Reuse admitted checkpoint ownership and
preserve ownership metadata in prepared agent schema headers.

Settle orphan status and its failure receipt atomically on the existing
database worker. Preserve retained recovery ownership and revalidate
current authority around commit grants. Move capture reclamation to idle
cleanup under worker-backed lease authority, retain reload waiter
accounting, and overlap main-session marking with plugin loading.

A matched synthetic Linux run on base 9e4bb34 reduced metadata-refresh
startup from 64.113s to 43.876s and warm startup from 49.597s to 36.868s.
First sessions.list completed in 589ms and 634ms. The 20-second startup
target remains unmet; no production Gateway was changed.
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 commands Command implementations docs Improvements or additions to documentation gateway Gateway runtime 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. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant