Skip to content

fix(sessions): bound store lookup to stop gateway CPU wedge without dropping retired stores - #124516

Merged
steipete merged 2 commits into
openclaw:mainfrom
SunnyShu0925:fix/skip-full-store-discovery-123439
Aug 18, 2026
Merged

steipete merged 2 commits into
openclaw:mainfrom
SunnyShu0925:fix/skip-full-store-discovery-123439

Conversation

@SunnyShu0925

@SunnyShu0925 SunnyShu0925 commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

Closes #123439

What Problem This Solves

Fixes an issue where cron-bound session refreshes on gateways with many historical agents could peg the main thread and stop HTTP/WebSocket responses. Configured-agent lookups were already bounded, but retired/manual lookup still validated every agent directory and then compared the requested store against every registered database with synchronous filesystem identity calls.

Why This Change Was Made

Filter agent directory names before validation and resolve only the requested retired/manual agent across the configured template roots plus the default root. In physical collision dedupe, a single path-derived owner already has precedence, so registry identity matching is skipped only when it cannot change selection or diagnostics. The registry is still loaded, preserving unreadable-registry failure semantics; ambiguous/multi-owner groups still use full filesystem identity matching. No process-global cache, migration, schema change, or narrowed store-visibility contract.

The branch briefly absorbed a behavior-neutral Control UI formatting/max-lines repair because the corresponding current-main gates made this PR's CI red. During the required conflict rebase, current main's larger chat-pane refactor had already incorporated both formatter changes and removed the max-lines block, so the redundant UI-only commit was dropped. The final PR contains no Control UI diff.

User Impact

Gateways with large historical agent registries no longer perform registry-sized synchronous realpath/stat work for each retired/manual session lookup. Existing cross-root retired stores remain readable, configured-agent behavior is unchanged, and unreadable ownership state still fails indeterminately rather than silently proving absence.

Evidence

Session resolver and Gateway behavior

  • Populated-registry production resolver benchmark (unrelated-path lstat/stat/realpath): N=0 before/after 0/0/0; N=10 before 0/20/20, after 0/0/0; N=50 before 0/100/100, after 0/0/0; N=100 before 0/200/200, after 0/0/0.
  • Exact-head real Gateway cron burst at f2bed042d66d6ec20b77a36775c8c05addff2ec3: a real child-process loopback Gateway over HTTP/WebSocket, with an authenticated operator subscriber and production cron.add/cron.update RPCs.
  • Registry population: 392 unrelated agents plus one retired agent, 393 rows total.
  • Burst: 12 adds plus 48 updates, 60 events in 628.68 ms.
  • Delivery: 60/60 sessions.changed events had reason cron-binding and row-loaded sessionId, updatedAt, and model fields.
  • Responsiveness: 59 overlapping /healthz probes, zero failures, zero timeouts; p50 8.00 ms, p95 12.79 ms, max 143.15 ms, below the 250 ms threshold.
  • Cleanup: the owned Gateway stopped, isolated state and temporary roots were removed, and the repository remained clean.
  • Focused session tests: resolver existing-store 2/2, dedupe 2/2, read availability 4/4, placement session evidence 8/8, Gateway session utils 164/164.
  • Session check-changed, formatting/lint, and git diff --check passed. The session-only structured P1 autoreview was clean.
  • Final combined-branch structured P1 autoreview was clean with no accepted/actionable findings.

Control UI red-main gate resolution

  • node scripts/run-vitest.mjs ui/src/pages/chat/chat-task-suggestions.test.ts: 11/11 passed.
  • Before the conflict rebase, targeted UI check-changed, oxlint, oxfmt, and git diff --check origin/main...HEAD passed for the behavior-neutral repair.
  • Current main subsumed the formatter changes and removed the max-lines block in its chat-pane refactor; the redundant UI commit was dropped during rebase, and the final PR has no UI diff.
  • No screenshot: the temporary repair changed no rendered behavior, and no UI change remains in the final PR.

Scope

  • Production LOC: +39/-39 (net 0).
  • Tests: +110/-0.
  • Live-proof limitation: channels and model providers were disabled. Gateway HTTP, authenticated RPC/WebSocket, the cron service, session loader, SQLite registry, and health endpoint were real.

AI-assisted.

@clawsweeper

clawsweeper Bot commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@openclaw-barnacle openclaw-barnacle Bot added gateway Gateway runtime size: M labels Aug 16, 2026
@SunnyShu0925

Copy link
Copy Markdown
Contributor Author

This replaces #123988, which was closed after a force-push made it un-reopenable (GitHub blocks reopen when the branch is force-pushed after close).

The closing was not a review rejection — it was a self-inflicted packaging error: a bad git commit --amend on a detached-HEAD worktree swept 32k unrelated files into head ccf08afe, tripping the security-sensitive (.gitignore) and dependency-graph (two package-lock.json) guards. No code or review feedback changed.

This head (52d36e45) is a clean single commit with only the 4 intended files (133 insertions / 11 deletions). The fix content is byte-identical to the proofed head — resolver regression (targets-existing-store.test.ts) passes 5/5.

@clawsweeper re-review — exact-head proof for the multi-placeholder P1 is in the PR body (pre-fix head a2437bd5 fails / post-fix head 52d36e45 passes at both resolver and gateway boundaries).

@clawsweeper

clawsweeper Bot commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P1 High-priority user-facing bug, regression, or broken workflow. 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 Aug 16, 2026
@clawsweeper

clawsweeper Bot commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 17, 2026, 11:35 PM ET / August 18, 2026, 03:35 UTC.

ClawSweeper review

What this changes

The PR filters retired-agent directory discovery before validation and skips unnecessary registry path-identity scans when a unique on-disk owner already determines the session-store selection.

Regression provenance

Possible regression — probable (reproduction; failure trace). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

No blocking correctness findings. This is a focused, net-neutral repair for the linked Gateway availability bug; keep it open while the clean current-base refresh and exact-head required checks complete.

Priority: P1
Reviewed head: f2bed042d66d6ec20b77a36775c8c05addff2ec3

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) Strong real Gateway proof and focused owner-boundary regressions support a clean, net-neutral repair.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The PR body records an exact-head real child-process Gateway HTTP/WebSocket cron burst with authenticated delivery, 60/60 change events, and concurrent health probes.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The PR body records an exact-head real child-process Gateway HTTP/WebSocket cron burst with authenticated delivery, 60/60 change events, and concurrent health probes.
Evidence reviewed 9 items Gateway entry point: Cron changes load each bound session row before broadcasting a sessions.changed event, so the synchronous store lookup is on the Gateway event-loop path.
Resolver repair: Retired/manual lookups now validate agent-scoped candidates and retain deduplication so unreadable registry state remains observable rather than becoming an absent-store result.
Bounded discovery: The directory filter is applied before discovered directories are converted and validated, avoiding per-unrelated-agent filesystem work while retaining matching normalized names.
Findings None None.
Security None None.

How this fits together

Gateway cron changes refresh bound session rows and broadcast them to connected clients. Resolving each row enters the session-store resolver, which locates persistent agent session databases and selects their durable owner.

flowchart LR
  Cron["Cron job update"] --> Refresh["Gateway session refresh"]
  Refresh --> Lookup["Session-store lookup"]
  Lookup --> Discovery["Requested agent discovery"]
  Discovery --> Ownership["Store ownership selection"]
  Ownership --> Database["Session database"]
  Database --> Event["Session change event"]
Loading

Before merge

  • Resolve merge risk (P1) - Retired/manual session visibility and ownership selection are compatibility-sensitive; a clean current-base refresh must retain the cross-root and unreadable-registry invariants.
  • Resolve merge risk (P1) - The PR is behind its base and required checks are still incomplete, so merge readiness must be re-evaluated on the exact resulting head.
  • Complete next step (P2) - No repair lane is needed because no actionable patch defect remains; refresh the merge result and let exact-head checks determine merge readiness.
Agent review details

Security

None.

PR surface

Source 0, Tests +110. Total +110 across 5 files.

View PR surface stats
Area Files Added Removed Net
Source 3 39 39 0
Tests 2 110 0 +110
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 5 149 39 +110

Review metrics

Metric Value Why it matters
Production versus tests production +39/-39 (net 0); tests +110/-0 The availability repair absorbs its behavior change without production growth and adds focused resolver plus Gateway coverage.

Stored data model

Persistent data-model change detected: serialized state: src/agents/session-dirs.ts, serialized state: src/config/sessions/targets-existing-store.test.ts, serialized state: src/config/sessions/targets.ts, serialized state: src/gateway/session-utils.test.ts, unknown-data-model-change: src/config/sessions/targets-existing-store.test.ts, unknown-data-model-change: src/config/sessions/targets.ts. Confirm migration or upgrade compatibility proof before merge.

Root-cause cluster

Relationship: fixed_by_candidate
Canonical: #123439
Summary: This PR is a candidate fix for the linked Gateway cron session-lookup CPU wedge.

Members:

Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

Merge-risk options

Maintainer options:

  1. Refresh the exact merge result (recommended)
    Rebase or otherwise verify the clean merge result against current main, rerun the focused resolver and Gateway proof if these paths change, then wait for exact-head required checks.

Technical review

Best possible solution:

Retain the agent-scoped discovery and unique path-owner fast path, then merge only after a clean current-base refresh preserves the focused regressions and exact-head checks pass.

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

Yes, source establishes the path: current main scans all discovered agent stores before filtering the requested retired agent, and the PR body supplies exact-head Gateway burst evidence with a populated registry.

Is this the best way to solve the issue?

Yes. Filtering before target validation and avoiding identity comparison only after a unique path owner is known removes the blocking work while preserving the established ownership and cross-root visibility contracts.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against de41c7de8c6c.

Labels

Label changes:

  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.

Label justifications:

  • P1: The patch addresses a cron-triggered Gateway control-plane wedge that can stop HTTP and WebSocket responses.
  • merge-risk: 🚨 compatibility: The resolver changes which retired/manual store paths remain visible across configured roots.
  • merge-risk: 🚨 session-state: The changed lookup selects persistent session databases and their owning agent for row reads.
  • merge-risk: 🚨 availability: The patch changes synchronous filesystem work on the Gateway cron refresh path.
  • 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 PR body records an exact-head real child-process Gateway HTTP/WebSocket cron burst with authenticated delivery, 60/60 change events, and concurrent health probes.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body records an exact-head real child-process Gateway HTTP/WebSocket cron burst with authenticated delivery, 60/60 change events, and concurrent health probes.

Evidence

What I checked:

Likely related people:

  • steipete: Authored the exact reviewed head and is blamed for the resolver and collision changes completing the bounded design. (role: current-head finisher and recent session-path contributor; confidence: high; commits: f2bed042d66d; files: src/config/sessions/targets.ts, src/config/sessions/targets-collision.ts, src/agents/session-dirs.ts)

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 (20 earlier review cycles; latest 8 shown)
  • reviewed 2026-08-17T15:17:54.940Z sha 28c1458c95e98567e108cc258119f585e06d41b1 :: needs real behavior proof before merge. :: [P1] Filter matching directories before sorting
  • reviewed 2026-08-17T15:59:58.368Z sha 28c1458c95e98567e108cc258119f585e06d41b1 :: needs real behavior proof before merge. :: [P1] Filter matching directories before sorting
  • reviewed 2026-08-17T22:31:24.630Z sha 970b5d576d2b5c7a1c92a2a88fb6af0598f04e3b :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-17T23:33:45.646Z sha 970b5d576d2b5c7a1c92a2a88fb6af0598f04e3b :: needs maintainer review before merge. :: none
  • reviewed 2026-08-17T23:42:23.365Z sha 970b5d576d2b5c7a1c92a2a88fb6af0598f04e3b :: needs real behavior proof before merge. :: [P1] Avoid registry-wide identity scans for retired lookups
  • reviewed 2026-08-18T00:51:18.604Z sha 970b5d576d2b5c7a1c92a2a88fb6af0598f04e3b :: needs real behavior proof before merge. :: [P1] Avoid registry-wide identity scans for retired lookups
  • reviewed 2026-08-18T02:40:10.602Z sha 661854313b87edad756f34fd6f86479301ef8960 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-18T03:21:25.985Z sha 3884c9bc0b7a1e405751387c6230a11f6f0fd634 :: needs maintainer review before merge. :: none

@SunnyShu0925
SunnyShu0925 force-pushed the fix/skip-full-store-discovery-123439 branch 2 times, most recently from 430795c to 2e0b96f Compare August 16, 2026 10:37
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. and removed 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 Aug 16, 2026
@clawsweeper

clawsweeper Bot commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper

clawsweeper Bot commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@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 16, 2026
@clawsweeper

clawsweeper Bot commented Aug 16, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🦪 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. labels Aug 16, 2026
@SunnyShu0925
SunnyShu0925 force-pushed the fix/skip-full-store-discovery-123439 branch from 2e0b96f to 3f6deb0 Compare August 16, 2026 11:33
@clawsweeper clawsweeper Bot removed the status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. label Aug 17, 2026
@jalehman jalehman self-assigned this Aug 17, 2026
@jalehman
jalehman force-pushed the fix/skip-full-store-discovery-123439 branch from 28c1458 to 970b5d5 Compare August 17, 2026 22:01
@openclaw-barnacle openclaw-barnacle Bot added agents Agent runtime and tooling size: M and removed size: L labels Aug 17, 2026
@clawsweeper

clawsweeper Bot commented Aug 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added 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. 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. and removed 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. proof: sufficient ClawSweeper judged the real behavior proof convincing. labels Aug 17, 2026
@steipete

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@steipete

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

SunnyShu0925 and others added 2 commits August 17, 2026 20:16
Path-derived ownership now avoids irrelevant registry filesystem identity matching while preserving unreadable and ambiguous registry semantics and cross-root retired-store visibility.

Co-authored-by: SunnyShu0925 <[email protected]>
@steipete

Copy link
Copy Markdown
Contributor

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 18, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

@steipete

Copy link
Copy Markdown
Contributor

Land-ready at exact head f2bed042d66d6ec20b77a36775c8c05addff2ec3.

This is the only land-ready comment for this PR.

Session proof:

  • node scripts/run-vitest.mjs src/config/sessions/targets-existing-store.test.ts — 2/2 passed
  • node scripts/run-vitest.mjs src/config/sessions/targets-dedupe.test.ts — 2/2 passed
  • node scripts/run-vitest.mjs src/config/sessions/targets-read-availability.test.ts — 4/4 passed
  • node scripts/run-vitest.mjs src/gateway/server-worker-placement-session-evidence.test.ts — 8/8 passed
  • node scripts/run-vitest.mjs src/gateway/session-utils.test.ts — 164/164 passed
  • node scripts/check-changed.mjs and git diff --check origin/main...HEAD — passed
  • Final structured P1 branch autoreview — clean, no accepted/actionable findings

Populated-registry production resolver benchmark, reported as unrelated-path lstat/stat/realpath: N=0 before/after 0/0/0; N=10 before 0/20/20 and after 0/0/0; N=50 before 0/100/100 and after 0/0/0; N=100 before 0/200/200 and after 0/0/0.

Exact-head real Gateway proof: a real child-process loopback Gateway over HTTP/WebSocket with an authenticated operator subscriber and production cron RPCs. The registry held 392 unrelated agents plus one retired agent (393 total). Twelve adds plus 48 updates produced 60/60 row-loaded sessions.changed events in 628.68 ms. Fifty-nine overlapping /healthz probes had zero failures and zero timeouts; p50 8.00 ms, p95 12.79 ms, max 143.15 ms, below the 250 ms threshold. The owned Gateway stopped, isolated state and temporary roots were removed, and the repository remained clean.

The current-main UI gates were also proven locally: node scripts/run-vitest.mjs ui/src/pages/chat/chat-task-suggestions.test.ts passed 11/11, and targeted UI changed-check/oxlint/oxfmt passed. During the required conflict rebase, current main's larger chat-pane refactor had already incorporated both formatter changes and removed the max-lines block, so the redundant UI-only commit was dropped. The final PR has no UI diff and needs no screenshot because no rendered behavior changed.

Exact-head CI: https://github.com/openclaw/openclaw/actions/runs/32095422495 — completed successfully; openclaw/ci-gate is green. GitHub reports the PR mergeable.

Whole-PR LOC: production +39/-39 (net 0); tests +110/-0.

Latest durable ClawSweeper review: #124516 (comment) — exact reviewed head, no actionable findings, proof sufficient, 5/6 readiness. Its requested Gateway proof/rank-up move is applied; the actual conflict was cleanly rebased and exact-head checks are now complete and green.

Proof limitation: channels and model providers were disabled. Gateway HTTP, authenticated RPC/WebSocket, the cron service, session loader, SQLite registry, and health endpoint were real.

@steipete

Copy link
Copy Markdown
Contributor

Merged via squash.

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

Labels

agents Agent runtime and tooling 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. merge-risk: 🚨 session-state 🚨 May lose, corrupt, stale, or mis-associate session, agent, or context state. P1 High-priority user-facing bug, regression, or broken workflow. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. size: S 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.

Gateway event loop pegged at 100% CPU: broadcastCronBoundSessionChanges does O(events × agent_databases) synchronous statSync on the main thread

3 participants