Skip to content

perf: reuse background projection and usage reads - #170399

Merged
steipete merged 4 commits into
mainfrom
dbasync/bgwork2
Oct 13, 2026
Merged

steipete merged 4 commits into
mainfrom
dbasync/bgwork2

Conversation

@steipete

@steipete steipete commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Turn-triggered background work rereads transcript tails and usage checkpoints, and discards reusable plugin namespace lists during unrelated writes. This change keeps each existing owner and removes redundant work.

User Impact

There is no intended user-visible behavior change; session previews, fallback model facts, plugin state and usage totals remain current after committed writes, with less background database work.

Why This Change Was Made

Reuse facts already read or published by the existing owner:

  • Retain completed preview watermarks across generic transcript notifications. Canonical write receipts still advance or invalidate the watermark and refresh previews.
  • Reuse a bounded preview's newest contiguous event for terminal fallback facts. Oversized newest messages retain the separate 256 KiB terminal probe; the preview remains bounded at 64 KiB.
  • Reuse committed plugin namespace lists while another namespace has a pending write. Same-namespace reads still await that namespace's writes; committed receipts and unknown settlement invalidate the cache.
  • Read the exact usage checkpoint body and its monthly partitions in one worker SELECT instead of two. Keep the metadata match because combining mismatched cost data could report incorrect totals.

No schema, durability, retention, public SDK, update, or memory-indexing scheduling/publication change. Memory indexing is measured separately and owned by the dedicated lane.

Removed checks and accepted edges

  • Generic transcript notification no longer unconditionally invalidates completed preview work. Accepted edge: a bare notification without a canonical mutation publication does not force a reread.
  • Namespace list reads no longer veto their cache because of any pending database write. Accepted edge: unrelated namespaces may return their existing committed list while another namespace is being written.
  • The terminal-model read no longer recaptures the newest message when the bounded preview already read it. The preview and terminal facts use that one snapshot; a later append appears on the next receipt-driven refresh.

T1 and operation cost

Touched production area T1: 0 → 0. Preview/status synchronous extraction is called only by the history worker or incognito side-data worker; host status callers use the asynchronous reader or prepared facts. Existing mixed native session/usage kernels are unchanged. In particular, the shared usage-cache kernel retains its six native sites for incognito/maintenance; cutting those over needs its writer owner redesigned and is stopped under the escape hatch. This PR does not reclassify that debt. The retained native sites are readSessionCostUsageRollupValuesInDatabase (1), writeSessionCostUsageRollupInDatabase (1), readSessionCostUsageRollupBodyInDatabase (1), and pruneSessionCostUsageRollupsInDatabase (3).

Operation Statement delta Request delta
Incremental durable usage checkpoint + partitions −1 0
Eligible small completed fallback preview −4 with retained actor receipt; −5 otherwise 0
Duplicate transcript preview notification avoids redundant bounded read avoids redundant preview request
Cached plugin namespace list during unrelated write avoids list SELECT avoids list request

Live measurement

Three alternating pairs (M,C,M,C,M,C), ten warmed turns per run, using the frozen shared harness v2.0.0 against isolated synthetic state. Base 5cf2615e65ec2e8344c836a5572c523783981e60; measured source 9b434ae598b6019c9a3f3138ef62496baa9a015d. The PR implementation is unchanged at final merge head; the merge incorporates main’s unrelated commits, with documentation as the only conflict resolution. Measurements apply to this pinned base/candidate pair, not to a remeasurement of incoming main commits.

All runs passed the complete foreground/child/cron/compaction workload. The first aborted baseline setup is excluded. Both sides use the same harness copy; its only adaptation sets the synthetic Gateway handshake timeout to 90 seconds after the original 15-second setup timed out under load. The shared harness was not edited. Every run used the local CPU semaphore.

Values are median [min–max]. “Turn” counts preserve the harness causal scope; raw window counts also include detached work.

Warm metric Base Candidate
Turn-caused statements / turn 180.3 [180.2–183.8] 180.1 [180.1–180.4]
Turn-caused requests / turn 43.3 [43.2–43.8] 43.1 [43.1–43.2]
Gateway MAIN statements / turn 0.0 [0.0–0.0] 0.0 [0.0–0.0]
Raw all-thread statements / turn 212.9 [211.9–240.1] 207.6 [205.3–216.9]
Raw all-thread requests / turn 55.4 [54.2–68.1] 56.7 [52.4–58.9]
Background statements / minute 644.5 [476.1–715.7] 641.0 [623.3–699.4]
Background requests / minute 239.2 [205.5–248.4] 237.1 [230.0–401.9]
Window duration (seconds) 30.4 [26.6–70.9] 24.3 [23.6–34.2]
Entire workload Base Candidate
statements 6777.0 [6769.0–7098.0] 6754.0 [6736.0–6903.0]
requests 1264.0 [1251.0–1449.0] 1291.0 [1247.0–1315.0]
main 838.0 [832.0–840.0] 840.0 [837.0–841.0]

Start load averages (32 CPUs): base 135.3, 98.5, 61.1; candidate 97.8, 94.7, 64.2.

Attributed saving: usage background work is exactly 100→90 statements and 20→20 requests in each ten-turn run. Completed bounded previews and cached namespace reads add no requests. Raw warmed requests rise 55.4→56.7 and whole-workload requests 1264→1291; the third candidate overlaps 64 maintenance requests versus 4 in the third baseline, while the changed usage work stays at 20 and projection preparation stays at 20 (first pair 20→21). The shared read families below do not rise. Under the campaign attribution rule, the raw increase is reported as scheduling noise, not hidden or attributed to a saving.

Background activity below uses pooled exposure time across the three runs so category rates add to the pooled total. These are stack-supported activities, not invented originating turn IDs. Memory includes indexing, preparation, publication and retrieval; all memory work remains outside this PR.

Background activity Base SQL/min Candidate SQL/min Base requests/min Candidate requests/min
Memory (all indexing/preparation/publication/retrieval) 358.0 392.1 111.7 125.1
usage 140.8 197.5 28.2 43.9
idle-maintenance 31.4 35.1 32.8 50.5
unclassified 30.0 24.1 21.1 18.3
preview/history 5.6 3.7 28.6 44.6
Pooled total 565.9 652.6 222.4 282.4
Background owner and SQL family census

Statement owners are SQL executors. Request owners are scheduling producers; generic queue-only memory requests are joined to successful execution by request ID and explicitly labeled executor. An owner appearing in one table does not imply one request per statement.

SQL owner (file:function), top 15 Base SQL/min Candidate SQL/min
src/infra/sqlite-busy-timeout.ts:setSqliteBusyTimeout 38.5 41.0
extensions/memory-core/src/memory/manager-chunk-writer.ts:writeMemoryChunks 28.2 30.7
src/state/openclaw-agent-execution-operations.ts:usageCache.writeRollup 28.2 43.9
extensions/memory-core/src/memory/manager-source-index-kernel.ts:MemorySourceIndexKernel.deleteVectors 23.9 28.5
extensions/memory-core/src/memory/manager-retrieval-read.ts:readMemoryDatabaseFacts 20.2 22.7
extensions/memory-core/src/memory/manager-embedding-cache.ts:upsertMemoryEmbeddingCache 19.7 22.7
extensions/memory-core/src/memory/manager-vector-write.ts:writeMemoryVectors 19.7 22.7
extensions/memory-core/src/memory/manager-publication.worker.ts:transact 19.2 20.5
extensions/memory-core/src/memory/manager-publication.worker.ts:Object.withCommit 19.2 20.5
extensions/memory-core/src/memory/manager-embedding-cache.ts:countMemoryEmbeddingCache 18.8 20.5
src/infra/sqlite-wal-checkpoint.ts:checkpoint 18.3 16.8
src/config/sessions/session-accessor.sqlite-read.ts:readTranscriptExportSnapshotReadOnlySync 17.8 20.5
src/infra/session-cost-usage-cache.kernel.ts:writeSessionCostUsageRollupInDatabase 14.1 21.9
src/config/sessions/session-accessor.sqlite-transcript-watermark-read.ts:readSessionTranscriptHotWatermark 14.1 21.9
src/config/sessions/session-accessor.sqlite-transcript-stats.ts:readTranscriptStatsBatchFromDatabase 14.1 21.9
Request owner (file:function), top 12 Role Base requests/min Candidate requests/min
src/gateway/session-row-projection-shared-facts.ts:prepareSessionRowSharedFacts request-producer 28.2 44.6
src/trajectory/runtime-retention.ts:<anonymous> request-producer 21.6 33.7
src/config/sessions/session-transcript-worker-runtime.ts:runRequest request-producer 21.1 27.1
<multiple memory-core executors> request-executor 19.2 20.5
src/infra/session-cost-usage-cache.sqlite.ts:<anonymous> request-producer 14.1 21.9
src/infra/session-cost-usage-worker-scope.ts:Object.run request-producer 14.1 21.9
extensions/memory-core/src/memory/manager-retrieval-read.ts:readMemoryDatabaseFacts request-executor 9.9 12.4
extensions/memory-core/src/memory/manager-embedding-cache.ts:loadMemoryEmbeddingCache request-executor 9.4 10.2
extensions/memory-core/src/memory/manager-source-index-kernel.ts:readMemorySourceChunks request-executor 9.4 10.2
extensions/memory-core/src/memory/manager-embedding-cache.ts:countMemoryEmbeddingCache request-executor 9.4 10.2
extensions/memory-core/src/memory/manager-source-state.ts:loadMemorySourceFileState request-executor 9.4 10.2
src/config/sessions/session-transcript-read-worker-runtime.ts:readSessionEntryInWorker request-producer 8.9 10.2
SQL family Base SQL/min Candidate SQL/min
SELECT 258.1 298.5
INSERT 86.3 107.5
PRAGMA 67.6 68.8
COMMIT 45.0 54.1
DELETE 35.7 41.7
BEGIN IMMEDIATE 34.7 43.2
BEGIN 10.3 11.0
RELEASE SAVEPOINT openclaw_tx_nested 8.0 9.5
SAVEPOINT openclaw_tx_nested 8.0 9.5
CREATE 6.1 4.4
DROP 6.1 4.4
Recorded scheduling root Base SQL/min Candidate SQL/min Base requests/min Candidate requests/min
no-turn-context 547.6 635.8 222.4 282.4
wal-maintenance 18.3 16.8 0.0 0.0

Named background targets, raw statements over all thirty warmed turns:

Owner operation Base Candidate
readParticipantRows 22 15
readSelectedSessionEntryRows 1 0
readSessionTranscriptWatermarkInDatabase 1 0
readSessionTranscriptHotWatermark 30 30
readTranscriptStatsBatchFromDatabase 30 30
readSessionCostUsageRollupBodyInDatabase 30 0
readSessionCostUsagePartitionsInDatabase 30 0
readSessionCostUsageRollupWithPartitionsInDatabase 0 30

readProjectionSnapshot, iterateVisibleMessageMetadata, readSnapshotEventRows and listPluginStateEntries are absent as background SQL owners in this current-base trace; they were targets in the earlier census. The owner census above identifies the current execution names instead.

Envelope attribution below counts BEGIN/BEGIN IMMEDIATE/COMMIT statements, including both ends, over all thirty warmed turns. The sampled envelopes contain multi-statement writes or consistent read snapshots; none is removed as a single-statement transaction.

Envelope owner Base Candidate
src/state/openclaw-agent-execution-operations.ts:usageCache.writeRollup 60 60
extensions/memory-core/src/memory/manager-publication.worker.ts:transact 41 28
extensions/memory-core/src/memory/manager-publication.worker.ts:Object.withCommit 41 28
src/config/sessions/session-accessor.sqlite-read.ts:readTranscriptExportSnapshotReadOnlySync 38 28
src/gateway/worker-environments/placement-read-projection.ts:readWorkerPlacementRecoveryCandidatesInDatabase 4 2
src/state/openclaw-agent-execution-operations.ts:trajectory.retention.delete 4 2
src/config/sessions/session-entry-read.worker.ts:readSessionRowDatabaseFacts 2 0
src/state/openclaw-state-db-transaction.ts:transaction 2 0

The trace records producer stacks and scheduling roots but does not retain SQL bindings/session IDs or the original transcript-append/entry-write notification across every detached queue. Exact per-session duplicate counts and those missing trigger identities are therefore not claimed. The official plugin catalog was one request in the first baseline, not a repeated hotspot. Memory runRetrieval requests and readMemoryDatabaseFacts executions are included in the separate memory activity total; that total is not mislabeled as indexing-only.

prepareSessionRowSharedFacts remains a repeated request owner: 20 requests in each ten-turn baseline and 21/20/20 in the candidates. The two requests per ordinary window are a follow-up; this trace cannot prove that their SQL inputs identify the same session. Usage stats, hot watermark and each rollup stage run once per warmed turn in all runs.

Shared family Base causal SQL/turn Candidate causal SQL/turn Base raw SQL/turn Candidate raw SQL/turn
exact-entry 4.1 [4.0–4.2] 4.0 [4.0–4.0] 4.7 [4.5–5.1] 4.4 [4.4–4.6]
actor-hydration 1.1 [1.1–1.1] 1.1 [1.0–1.1] 1.1 [1.1–1.1] 1.1 [1.0–1.1]
entry-cache-snapshot 0.0 [0.0–0.0] 0.0 [0.0–0.0] 1.0 [1.0–1.8] 0.8 [0.8–1.2]
row-facts-primary 0.0 [0.0–0.0] 0.0 [0.0–0.0] 0.0 [0.0–0.1] 0.0 [0.0–0.0]
row-facts-envelope 0.0 [0.0–0.0] 0.0 [0.0–0.0] 0.0 [0.0–0.2] 0.0 [0.0–0.0]
watermark 1.0 [1.0–1.0] 1.0 [1.0–1.0] 1.0 [1.0–1.1] 1.0 [1.0–1.0]

The harness has no isolated idle phase and its SQL events have no timestamps, so this run cannot establish an idle-only SQL/min comparison. No idle timer or maintenance schedule changed; measured maintenance activity is disclosed above. Memory accounts for about 63% of pooled baseline background SQL and idle maintenance another 6%; those owners are outside this patch. The 40% background reduction target is not claimed.

Evidence

  • Codex review: both rounds scoped-clean with no actionable P0–P2 findings. No further round planned.
  • Plugin publication: 15 tests passed (157.08 s Vitest; 497.06 s wall including wrapper/build).
  • Preview foreground: 6 test cases passed, but later source edits invalidated the wrapper's source-integrity check; not claimed as final clean proof.
  • Usage cache: new checkpoint-replacement regression passed. Full file had two timed-wait failures under heavy host load; investigation found one fails before the changed query is reachable. No timeout or assertion was weakened. Final-head CI passed, including the changed-test lanes.
  • Local bounded preview/terminal regression invocation passed: 14 projection tests and 9 transcript tests; 498.06 s and 357.14 s Vitest, 1274.32 s total wall including build and source-integrity verification. Changed-file format/basic lint passed except existing CI-advisory file-size limits in the usage worker/test file.
  • Prior-head CI: production and all test-type lanes passed, source contracts passed, and all changed-test jobs passed. The two PR-caused static findings (a type-only import cycle and test promise narrowing) are corrected in the follow-up commit.
  • Earlier-head failure (final CI is green): server-restart-sentinel.test.ts / “appends and broadcasts the durable internal update outcome only once” returns { delivered: false, owned: false } on both PR CI and main run 38322669274, main 96db2f6dfa4f47fd579a6d8408011950b8af53e1, at line 1038. The PR does not touch that owner.
  • Final-head CI run 38327460739 passed: changed tests, production/test types, type-aware lint, source/export contracts, Madge and T1/dialect ratchets. Changed-test CI cost: 19 successful jobs, 3,669 aggregate job-seconds including setup, 103–390 seconds per job. Knip production and scripts export scans passed with zero findings. The full-tree scan completed through the local CPU gate; its sole finding was the inherited unused extensions/qa-lab/src/mantis/run.test-support.ts:timedOutCommandResult export, independently reproduced on clean main baseline be49163a5b5fbdf984e0c209f790d5823131f221. Main already removed it in 582b6dd0041c, and a clean merge-tree check confirms it is absent from this PR’s merge result. Two wrapper attempts hit the host-load timeout; the same published Knip version/config completed directly without changing repository gates. No PR-caused static findings remain. SDK diff and published-driver update cell are not applicable.

Remaining owner work

Sampled read/write transaction envelopes contain multiple related statements, so they remain intact. Fusing usage rollup/partition writes requires completing the shared incognito writer cutover. Removing the later generation/watermark read requires the stats owner to extend its existing batch result; replacing it with point reads would regress large inventories. Participant reads need the membership owner's complete receipt contract. The remaining two shared-facts requests per ordinary warmed window need attribution through that owner before a cutover. These are follow-ups, not new competing owners in this patch.

LOC: production +86/−18, tests +324/−2, docs +8/−1. Regression coverage accounts for most of the growth; the old duplicate paths are removed.

@clawsweeper

clawsweeper Bot commented Oct 12, 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 size: M labels Oct 12, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. 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. labels Oct 13, 2026
@clawsweeper

clawsweeper Bot commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR reuses committed previews, terminal-model facts, plugin namespace lists, and usage snapshots to reduce background database reads.

Example: A session showing “Original preview” receives two duplicate transcript notifications.

  • Before: Completed preview work is invalidated and another bounded transcript read is scheduled.
  • After: The preview remains available until a canonical transcript publication changes its inputs.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, correct optimization with green exact-head CI and supplied Gateway measurements; operational evidence supports specific read savings rather than a broad performance improvement.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): Published measurements exercise the changed usage worker through an isolated Gateway foreground/child/cron/compaction workload in three alternating pairs, showing the separate checkpoint and partition reads replaced by one SELECT and usage statements falling from 100 to 90 per ten turns. The measured production source matches the reviewed implementation; owner-boundary regressions support preview, terminal, and namespace behavior. The prior measurement rank-up request is satisfied, while aggregate speedup and idle-only savings remain unclaimed.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: Ordinary turns trigger background database work for facts already available to their existing owners.
Reason: The maintainer-directed change offers a verified operation-level saving, records its accepted edges, and preserves existing output contracts.

Merge readiness

✅ Ready for maintainer review

Keep open: this owner-directed optimization removes redundant reads still present on main, preserves the existing ownership contracts, and has passing exact-head CI with no actionable findings.

Priority: P2
Reviewed head: f1c1b1f1fa6fd7a112b57c5af37637609178f4b3

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: Supplied results do not establish base-failing controls for every added regression.
Agent review details

How this fits together

Gateway projections and plugin-state caches consume committed receipts, while database workers prepare session previews, fallback-model facts, and usage totals for session and usage responses.

flowchart TD
A[Committed writes] --> B[Receipt publishers]
B --> C[Projection and namespace caches]
C --> D[Background workers]
D --> E[SQLite snapshots]
E --> D
C --> F[Session and usage responses]
D --> F
Loading

Technical review

Best possible solution:

Land the bounded read-reuse optimization with the existing receipt publishers, database workers, and cache lifecycle owners.

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

Current-main source establishes the redundant invalidation, database-wide namespace-cache veto, and separate usage reads; supplied paired Gateway measurements corroborate the usage-read cost, and this review executed no target code.

Is this the best way to solve the issue?

The approach is proportionate: it retains canonical invalidation, same-namespace ordering, exact checkpoint matching, and the larger terminal probe when the newest message exceeds the preview budget.

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Pinned introduced changes: Reviewed the merge-base-to-head hunks: existing owners remain authoritative, preview and terminal bounds remain intact, and the combined usage SELECT retains exact checkpoint metadata matching. (src/infra/session-cost-usage-partitions.worker.ts:105, f1c1b1f1fa6f)
  • Current-main behavior: Fetched main still invalidates completed backfills on generic notifications, rejects namespace-list reuse during unrelated pending writes, and reads usage checkpoint bodies and partitions separately. (src/infra/session-cost-usage-worker.ts:623, 1a4e4e56caeb)
  • Canonical freshness and ordering: Transcript-scope and explicitly invalidated publications still retire backfill revisions. Namespace reads await earlier same-namespace mutations before consuming cached lists; committed and unknown settlement still invalidate them. (src/plugin-state/plugin-state-worker-client.ts:151, f1c1b1f1fa6f)
  • Owner-approved accepted edges: The maintainer-authored body explicitly accepts notification-only preview reuse, committed lists during unrelated writes, and one-snapshot terminal extraction. These match the receipt-owned cache contract documented at https://docs.openclaw.ai/reference/database-schemas/worker-access. (docs/reference/database-schemas/worker-access.md:123, f1c1b1f1fa6f)
  • Published paired Gateway measurements: The complete body, including the previously omitted range, publishes three alternating base/candidate pairs through an isolated Gateway workload. Usage work falls from 100 to 90 statements per ten turns with 20 requests on both sides; aggregate request increases and attribution limits are disclosed. Production files are unchanged between measured source 9b434ae and the reviewed head. Captured body identity: SHA-256 3cd9b8d7dcba71ff2cb5c7cee421785b186fc04f6d7cdcb22336c6a6c8609688. (f1c1b1f1fa6f)
  • Exact-head checks and mergeability: Paginated REST reads show completed checks without failures, successful CI/dependency/security statuses, and a clean mergeable reviewed head. (f1c1b1f1fa6f)

Likely related people:

  • Peter Steinberger: Raw commit 2a3b917 adds src/gateway/session-row-projection-transcript.ts:40 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 2a3b91735d2b; files: src/gateway/session-row-projection-transcript.ts)
  • Vincent Koc: Raw commit e77d4ad adds src/gateway/session-row-projection-transcript.ts:56 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: e77d4ad0fc57; files: src/gateway/session-row-projection-transcript.ts)

PR surface

Source +68, Tests +322, Docs +7. Total +397 across 12 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 7 86 18 +68
Tests 4 324 2 +322
Docs 1 8 1 +7
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 12 418 21 +397

Review metrics

Metric Value Why it matters
Production versus test LOC Production +86/−18; tests +324/−2 Production growth primarily combines usage snapshot reads; added coverage checks checkpoint replacement, namespace ordering, preview freshness, and terminal byte bounds.
Attributed usage refresh saving 100 → 90 statements per ten warmed turns; requests 20 → 20 The published paired Gateway runs support one fewer statement per incremental refresh, without establishing an aggregate latency or request-count improvement.

Labels

Label changes:

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

Label justifications:

  • P2: A scoped performance improvement reduces background database work without an established urgent user-facing regression.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

History

Review history (3 earlier review cycles)
  • reviewed 2026-10-13T00:05:19.591Z sha 3bb9b4d :: needs changes before merge. :: none
  • reviewed 2026-10-13T00:23:08.818Z sha 9b434ae :: needs changes before merge. :: none
  • reviewed 2026-10-13T00:43:42.056Z sha f1c1b1f :: needs maintainer review before merge. :: none

Reviewed October 12, 2026, 9:06 PM ET / October 13, 2026, 01:06 UTC (Revision 4).

@clawsweeper clawsweeper Bot added status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. labels Oct 13, 2026
@steipete
steipete merged commit cd1daee into main Oct 13, 2026
150 checks passed
@steipete
steipete deleted the dbasync/bgwork2 branch October 13, 2026 02:32
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 13, 2026
Reuse receipt-backed preview and plugin namespace state, and combine the usage checkpoint body and partition read. Preserve bounded transcript reads and committed-write freshness.

Three alternating measurement pairs keep warmed Gateway MAIN SQL at zero. Usage refresh saves one statement per turn without adding a request. Background throughput is essentially flat under the loaded host; full attribution and accepted edges are recorded in the PR.

Validated with focused regressions and final-head CI. Required static checks have no PR-caused findings; the sole full-tree Knip finding was an inherited helper already removed on main.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: M 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