Skip to content

perf(channels): avoid rereading ingress queue mutations - #174393

Merged
steipete merged 4 commits into
mainfrom
dbasync/channelsql
Oct 16, 2026
Merged

steipete merged 4 commits into
mainfrom
dbasync/channelsql

Conversation

@steipete

@steipete steipete commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Every accepted durable inbound channel message rereads its freshly inserted row, then rereads its row twice while claiming it. These statements add work before dispatch without adding information to the serialized queue owner.

User Impact

Reduces database work for durable channel ingress while preserving duplicate suppression, lane ordering, coalescing windows, claim ownership, failure recovery, and retained payloads. No schema, SDK, configuration, or update behavior changes.

Why This Change Was Made

Use portable Kysely INSERT/UPDATE ... RETURNING within the existing shared-state writer transaction. Successful enqueues return their inserted row; duplicate enqueues still read the retained original. Claims update only pending rows and return the new claim. Resubmission retains the original failed record and returns the update's new row. The superseded reads are deleted; there is no cache, fallback, or second owner.

Removed-read ledger:

  • Accepted enqueue payload revalidation: the queue owns JSON serialization; fresh mutation results are trusted. Malformed private worker requests are programming errors, not a second runtime validation boundary.
  • Accepted enqueue post-insert SELECT: return the insertion postimage directly. Accepted edge: the response does not attempt to observe a later mutation of that row.
  • Claim pre-read and post-write SELECTs: the pending predicate and returned row own the transition. A corrupt pending row is briefly marked claimed inside the transaction before being tombstoned; no claimed result escapes that transaction.
  • Resubmit post-write SELECT: return the update postimage and its cleared retry fields. Accepted edge: the response does not attempt to observe a later mutation; the original failure read remains because it supplies the returned failure history.

Queue ordering snapshots and claim-token checks remain: they protect concurrent lane selection and settlement by the actual claimant.

Evidence

Two independent Codex review rounds: no actionable P0–P2 findings. All 83 focused queue, claim-ownership, drain, and Telegram coalescing tests pass. Final-head CI passes all 36 selected jobs, including production/test types, type-aware lint, source contracts, Madge, selected tests, and database worker/dialect ratchets. Changed-file formatting and git diff --check pass. The integrated-head Knip export scan has no ingress findings. Its two inherited unused exports, resolveTrustedEnterpriseGitHubAccountId and resolveTrustedEnterpriseGitHubMetadata in src/gateway/github-user-identity.ts, reproduce on baseline 0dc31f5f6430; that file, both Knip configurations, package manifest, and lockfile are byte-identical on integrated head 7790d4f98043 and main parent 07667dcc8f4d. This is the only static-gate exception and is routed for follow-up.

Initial CI found one unbound-method error in the changed test, corrected by binding the extracted helper. Two unrelated guard failures were repaired on main and incorporated through a merge; final CI is green.

Ingress-owner T1 call sites: 0 → 0; global ratchet 222 → 222 (compatibility 12 → 12). Changed-file dialect groups 0 → 0. The kernel is already in the worker-only inventory; no Gateway-thread SQL is introduced.

Change size: production +22/−21 (net +1), tests +47/−31 (net +16), docs +3. Tests extend existing cases to cover competing enqueues/claims and cleared resubmission state. No update cell is required for this queue-only change.

Completed measurement

Three alternating pairs completed in order M1, C1, M2, C2, M3, C3. Frozen base 0dc31f5f6430 and production candidate 1e25889547ff used Node 24.22.0 / SQLite 3.54.0 with compile caching disabled. The production and documentation blobs match the merged change; the integrated head only adds a test-helper binding correction. Counts include native transaction statements and actual worker wire requests; prepare calls are not counted as executed SQL. All accepted runs have zero native SQL errors. No latency claim is made on the busy shared host.

Durable ingress

Values are median [min–max] across three runs per side. These owner flows exclude separate assertion reads and include transaction overhead.

Flow Base SQL Candidate SQL Base requests Candidate requests
Single message 18 [18–18] 15 [15–15] 4 [4–4] 4 [4–4]
Burst of 10 180 [180–180] 150 [150–150] 40 [40–40] 40 [40–40]
Telegram album: 2 messages → 1 turn 36 [36–36] 30 [30–30] 8 [8–8] 8 [8–8]
Telegram forwarded burst: 2 messages → 1 turn 36 [36–36] 30 [30–30] 8 [8–8] 8 [8–8]

The fixed durable ingress path saves 3 SQL statements per message (16.7%), with requests unchanged. Accepted enqueue is 4→3 SQL / 1 request; claim-next including its snapshot is 11→9 / 2; completion stays 3 / 1. A direct claim is 5→3 / 1, and failed-event resubmission is 5→4 / 1. These values repeat in every pair. Caller-main SQL stays zero. The Telegram cases exercise production admission, drain, dedupe and coalescing with mocked remote API/model boundaries; they are not live Telegram tests.

Warmed turns and outbound control

These ranges pool all 30 warmed turns per side, rather than just three run medians. Causal values attribute work to the turn; raw values retain everything executed during its window.

Workload / metric Base Candidate
Shared v3, causal statements 70 [70–76] 70 [70–76]
Shared v3, causal requests 23 [23–25] 23 [23–25]
Shared v3, causal MAIN 0 [0–0] 0 [0–0]
Shared v3, raw statements 70 [70–110] 70.5 [70–94]
Shared v3, raw requests 23 [23–30] 23 [23–30]
Shared v3, raw MAIN 0 [0–13] 0 [0–9]
QA channel, causal statements 89 [89–99] 89 [89–90]
QA channel, causal requests 26 [26–28] 26 [26–27]
QA channel, causal MAIN 0 [0–0] 0 [0–0]
QA channel, raw statements 95 [95–105] 95 [95–98]
QA channel, raw requests 27 [27–30] 27 [27–30]
QA channel, raw MAIN 0 [0–0] 0 [0–0]

All 150 outbound replies use exactly 7 SQL statements / 2 requests / 0 MAIN each. QA traffic bypasses the durable ingress queue; its attachment and forward-like groups are controls, not Telegram coalescing proof.

Shared v3 raw phases

Each cell is median [min–max] across the three runs. These are complete phase windows, including unchanged startup, maintenance and other background owners.

Phase Base SQL Candidate SQL Base requests Candidate requests Base MAIN Candidate MAIN
01.boot 388 [386–404] 387 [387–421] 86 [86–91] 88 [86–105] 105 [104–105] 104 [104–105]
01.connect 250 [39–322] 70 [65–300] 24 [16–28] 15 [5–26] 0 [0–0] 0 [0–0]
02.first-turn 763 [707–938] 891 [737–933] 158 [156–159] 157 [151–168] 0 [0–9] 0 [0–12]
04.second-session 537 [529–540] 531 [530–532] 155 [153–156] 153 [152–153] 0 [0–0] 0 [0–0]
05.control-plane 9 [9–10] 9 [9–9] 1 [1–1] 1 [1–1] 0 [0–0] 0 [0–0]
06.cron 350 [349–352] 347 [345–354] 84 [84–87] 84 [83–87] 0 [0–0] 0 [0–0]
07.compaction 95 [95–95] 95 [95–96] 30 [30–30] 30 [30–31] 0 [0–0] 0 [0–0]
07.idle-connected 89 [76–89] 87 [75–89] 38 [34–38] 38 [34–38] 0 [0–0] 0 [0–0]
07.idle-settle 2 [1–14] 2 [0–14] 0 [0–4] 0 [0–4] 0 [0–0] 0 [0–0]
08.shutdown 35 [35–35] 35 [35–35] 6 [6–6] 6 [6–6] 9 [9–9] 9 [9–9]
09.restart-boot 442 [424–443] 435 [430–449] 106 [103–110] 108 [105–110] 93 [93–93] 93 [93–94]
09.restart-connect 50 [41–75] 72 [49–76] 32 [22–37] 30 [26–32] 0 [0–0] 0 [0–0]
10.restart-first-turn 292 [289–320] 307 [282–311] 90 [86–94] 90 [85–92] 0 [0–0] 0 [0–0]
11.restart-shutdown 28 [28–45] 28 [28–33] 6 [6–8] 6 [6–6] 9 [9–9] 9 [9–9]
Whole workload 4080 [4063–4104] 4080 [4067–4085] 1052 [1052–1055] 1052 [1044–1053] 229 [228–229] 228 [228–230]

Telegram whole-test polling caveat

The existing fixtures poll every 10 ms. Setup, assertions, teardown and timer-driven list/staleClaims operations are retained below; these totals are not per-message costs. The explicit assertions separately account for 13 SQL / 5 requests per scenario (two duplicate replay enqueues and three list reads). The fixed message-operation subset above is the repeatable comparison.

Arm Album SQL / requests Forward SQL / requests
M1 1125 / 595 1004 / 478
C1 1031 / 507 1096 / 576
M2 1293 / 763 1366 / 840
C2 2374 / 1849 1164 / 644
M3 1369 / 839 1272 / 746
C3 1173 / 649 1116 / 596

Raw-count attribution and limits

The raw warm median rises by 0.5 SQL, while the total over all 30 warm samples falls 2,227→2,217 SQL. Turn-attributed totals are exactly 2,118 SQL / 696 requests / 0 MAIN on both sides. Native shape differences are +1 WAL checkpoint, +2 plugin-state SELECTs, −7 lease-currency SELECTs, and −6 config/transaction statements. Raw warm request totals are 711→714 (+2 state-read-pool tasks and +1 startup-handler-prewarm task); the request median stays 23. Every warm MAIN statement is existing post-ready plugin-lifecycle lease work through openclaw-state-lease-store.ts / state-lease.ts, rather than ingress. Those real background reads remain in the raw ranges above.

The raw first-turn SQL median rises 763→891, and its causal median is 217→226 SQL / 61→63 requests / 0 MAIN. Across the three first-turn windows the net +153 SQL comprises +124 background schema DDL, +8 background PRAGMAs, +3 FTS savepoints, +7 other background statements, and +11 foreground statements. Native stacks attribute these to unchanged agent-database admission, cold read-scope/model-catalog admission, session-entry/transcript reads and lifecycle work. The +11 foreground difference is retained rather than relabeled as background. Phase placement also varies at restart; the full phase table preserves it.

The shared v3 workload executes none of the changed enqueue/claim/resubmit operations in any arm. It has exactly four unchanged ingress-health reads/tasks per run and no ingress SQL/request stacks in warm windows. Together with unchanged causal warm counts and whole-workload medians (4,080 SQL / 1,052 requests on both sides), the exact-operation audit attributes these variations to unchanged owners. No fourth pair was needed, and none of these raw variations is claimed as an ingress saving.

Both independent native recounts pass: all six inbound-owner/Telegram arms and all six QA/v3 arms. All 11,828 QA/v3 wire requests have unique per-run IDs and wire markers. An initial Telegram observation that missed nested-worker SQL was rejected; an external preload adapter repaired observation after the test environment cleared NODE_OPTIONS. The accepted six arms use identical instrumentation, and the shared harness and production source were not modified for observation. A zero-event C1 idle-settle window was verified against its phase markers and raw events before aggregation filled its missing analyzer row with zero.

@clawsweeper

clawsweeper Bot commented Oct 16, 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.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown
Contributor

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-16T16:33:13.526772Z 7790d4f New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation size: S labels Oct 16, 2026
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Oct 16, 2026
@clawsweeper

clawsweeper Bot commented Oct 16, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR replaces redundant ingress-queue reads with rows returned directly by insert and update statements.

Example: Accept and claim event-1 containing {"text":"first"} in lane chat-1.

  • Before: Enqueue uses two statements and claim uses three, excluding transaction overhead.
  • After: Each operation uses one statement while returning the same payload, lane, and claim identity.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-supported optimization with useful contract tests and no identified defect; CI disposition remains unresolved.
Proof confidence 🌊 off-meta tidepool Not applicable: This maintainer-authored optimization is outside the ordinary contributor proof gate; its body records planned measurements rather than completed ingress-boundary output.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Performance · Worth it: Yes · Fix scope: Complete
User problem: Durable inbound messages incur unnecessary database statements before dispatch.
Reason: The maintainer-authored direction matches the repository's explicit guidance to remove rereads of fresh writes and preserves the existing queue contract.

Merge readiness

✅ Ready for maintainer review

Keep open: this is a focused, maintainer-directed optimization that current main does not contain; source review found no actionable correctness or security defect, but required CI remains red.

Priority: P2
Reviewed head: 1e25889547ff3b388b62deb451f9bb5df54deebc

Before merge

None.

Findings

None.

Tests

  • Missing end-to-end proof: The current body schedules ingress measurements and channel-boundary checks but supplies no completed run; the extended tests protect preserved behavior rather than demonstrate a base-failing defect.
Agent review details

How this fits together

Channel adapters submit serialized inbound events to the shared-state writer; the durable ingress queue returns admission and claim records for ordered dispatch, settlement, and replay.

flowchart LR
  A[Channel adapter] --> B[Ingress queue API]
  B --> C[Shared state writer]
  C --> D[Ingress mutation kernel]
  D --> E[Durable event table]
  E --> D
  D --> F[Admission or claim record]
  F --> G[Channel dispatch]
Loading

Technical review

Best possible solution:

Retain the existing writer owner and use mutation-returned rows while preserving duplicate reads, claim predicates, and corrupt-row recovery.

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

Current-main source shows the redundant enqueue, claim, and resubmission reads; no runtime reproduction or performance measurement was executed during this read-only review.

Is this the best way to solve the issue?

Using RETURNING is a small, coherent optimization supported by the existing synchronous query executor, with no cache or competing state owner.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Ingress writer and mutation results keeps the original intent (f0b78f5: Move operational ingress work into one FIFO broker while preserving committed admission, ordering, dedupe, and settlement.)
  • Corrupt pending-row recovery keeps the original intent (fix(channels): tombstone corrupt ingress rows #105259: Prevent corrupt durable payloads from starving valid messages by retaining failed tombstones and advancing the queue.)
  • Existing queue tests keeps the original intent (34caa05: Consolidate retained behavior coverage and remove redundant variants.)

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

Likely related people:

  • Peter Steinberger: Raw commit f0b78f5 adds src/channels/message/ingress-queue.kernel.ts:165 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: f0b78f55d6d5; files: src/channels/message/ingress-queue.kernel.ts)

PR surface

Source +1, Tests +16, Docs +3. Total +20 across 3 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 22 21 +1
Tests 1 47 31 +16
Docs 1 3 0 +3
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 72 52 +20

Review metrics

Metric Value Why it matters
Production versus test changes Production +22/−21; tests +47/−31 Minimal production growth replaces reads with mutation results; tests extend existing cases to protect durable values, competing claims, and cleared retry state.

Labels

Label changes:

  • add P2: This reduces repeated database work in durable channel ingress without establishing an urgent user-facing failure.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: This reduces repeated database work in durable channel ingress without establishing an urgent user-facing failure.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

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.

Reviewed October 16, 2026, 12:26 PM ET / 16:26 UTC.

@steipete
steipete merged commit ca53a15 into main Oct 16, 2026
138 checks passed
@steipete
steipete deleted the dbasync/channelsql branch October 16, 2026 17:02
vincentkoc added a commit that referenced this pull request Oct 16, 2026
…158510

* commit '236ceb85e92ac8cb5bdc58a4a70bd79cbebd1094': (24 commits)
  feat(decisions): run typed tasks with prepared model credentials (#157225)
  fix(gateway): retain observer slots until model work settles (#174262)
  refactor(ui): own assistant content subscriptions in Solid (#174035)
  refactor(logging): remove package and snapshot debug instrumentation (#174431)
  fix: show native Talk speech separately from completed answers (#172598)
  test(ui): forbid new controller host consumers (#174446)
  chore(deps): refresh dependencies with a seven-day cutoff (#174410)
  perf(ui): reduce idle native session catalog polling (#174404)
  refactor(test): remove unused Signal fixture overrides (#174445)
  fix: surface DNS zone and Linux camera read failures (#174424)
  fix(doctor): keep at most three standalone Doctor captures (#174415)
  perf(cron): reuse session writer for completed run alias cleanup (#174413)
  feat(database): legacy SQLite migrations complete before PostgreSQL port (#174399)
  perf(channels): avoid rereading ingress queue mutations (#174393)
  feat(control-ui): keep link readers scoped to their pane session (#173652)
  test(ui): wait for desktop widget placement before pinning (#174439)
  refactor(ui): compose remaining plugin classes (#174441)
  perf(control-ui): shrink transcript overscan and settle skipped row sizes synchronously (#173690)
  fix(sessions): quietly settle archived delivery endpoints (#174442)
  perf(sessions): keep config loading out of transcript workers (#174414)
  ...
vincentkoc added a commit that referenced this pull request Oct 16, 2026
…esafe-decision-native

* commit '236ceb85e92ac8cb5bdc58a4a70bd79cbebd1094': (24 commits)
  feat(decisions): run typed tasks with prepared model credentials (#157225)
  fix(gateway): retain observer slots until model work settles (#174262)
  refactor(ui): own assistant content subscriptions in Solid (#174035)
  refactor(logging): remove package and snapshot debug instrumentation (#174431)
  fix: show native Talk speech separately from completed answers (#172598)
  test(ui): forbid new controller host consumers (#174446)
  chore(deps): refresh dependencies with a seven-day cutoff (#174410)
  perf(ui): reduce idle native session catalog polling (#174404)
  refactor(test): remove unused Signal fixture overrides (#174445)
  fix: surface DNS zone and Linux camera read failures (#174424)
  fix(doctor): keep at most three standalone Doctor captures (#174415)
  perf(cron): reuse session writer for completed run alias cleanup (#174413)
  feat(database): legacy SQLite migrations complete before PostgreSQL port (#174399)
  perf(channels): avoid rereading ingress queue mutations (#174393)
  feat(control-ui): keep link readers scoped to their pane session (#173652)
  test(ui): wait for desktop widget placement before pinning (#174439)
  refactor(ui): compose remaining plugin classes (#174441)
  perf(control-ui): shrink transcript overscan and settle skipped row sizes synchronously (#173690)
  fix(sessions): quietly settle archived delivery endpoints (#174442)
  perf(sessions): keep config loading out of transcript workers (#174414)
  ...
vincentkoc added a commit that referenced this pull request Oct 16, 2026
…/decision-tool-v2-proof-20261016

* commit '236ceb85e92ac8cb5bdc58a4a70bd79cbebd1094': (24 commits)
  feat(decisions): run typed tasks with prepared model credentials (#157225)
  fix(gateway): retain observer slots until model work settles (#174262)
  refactor(ui): own assistant content subscriptions in Solid (#174035)
  refactor(logging): remove package and snapshot debug instrumentation (#174431)
  fix: show native Talk speech separately from completed answers (#172598)
  test(ui): forbid new controller host consumers (#174446)
  chore(deps): refresh dependencies with a seven-day cutoff (#174410)
  perf(ui): reduce idle native session catalog polling (#174404)
  refactor(test): remove unused Signal fixture overrides (#174445)
  fix: surface DNS zone and Linux camera read failures (#174424)
  fix(doctor): keep at most three standalone Doctor captures (#174415)
  perf(cron): reuse session writer for completed run alias cleanup (#174413)
  feat(database): legacy SQLite migrations complete before PostgreSQL port (#174399)
  perf(channels): avoid rereading ingress queue mutations (#174393)
  feat(control-ui): keep link readers scoped to their pane session (#173652)
  test(ui): wait for desktop widget placement before pinning (#174439)
  refactor(ui): compose remaining plugin classes (#174441)
  perf(control-ui): shrink transcript overscan and settle skipped row sizes synchronously (#173690)
  fix(sessions): quietly settle archived delivery endpoints (#174442)
  perf(sessions): keep config loading out of transcript workers (#174414)
  ...
vincentkoc added a commit that referenced this pull request Oct 16, 2026
…157433

* commit '3dd7f576829fd8ec1fd395acb59f3d4f9e999166': (24 commits)
  feat(decisions): run typed tasks with prepared model credentials (#157225)
  fix(gateway): retain observer slots until model work settles (#174262)
  refactor(ui): own assistant content subscriptions in Solid (#174035)
  refactor(logging): remove package and snapshot debug instrumentation (#174431)
  fix: show native Talk speech separately from completed answers (#172598)
  test(ui): forbid new controller host consumers (#174446)
  chore(deps): refresh dependencies with a seven-day cutoff (#174410)
  perf(ui): reduce idle native session catalog polling (#174404)
  refactor(test): remove unused Signal fixture overrides (#174445)
  fix: surface DNS zone and Linux camera read failures (#174424)
  fix(doctor): keep at most three standalone Doctor captures (#174415)
  perf(cron): reuse session writer for completed run alias cleanup (#174413)
  feat(database): legacy SQLite migrations complete before PostgreSQL port (#174399)
  perf(channels): avoid rereading ingress queue mutations (#174393)
  feat(control-ui): keep link readers scoped to their pane session (#173652)
  test(ui): wait for desktop widget placement before pinning (#174439)
  refactor(ui): compose remaining plugin classes (#174441)
  perf(control-ui): shrink transcript overscan and settle skipped row sizes synchronously (#173690)
  fix(sessions): quietly settle archived delivery endpoints (#174442)
  perf(sessions): keep config loading out of transcript workers (#174414)
  ...
vincentkoc added a commit that referenced this pull request Oct 16, 2026
…/decision-onnx-v2-proof-20261016

* commit '3dd7f576829fd8ec1fd395acb59f3d4f9e999166': (24 commits)
  feat(decisions): run typed tasks with prepared model credentials (#157225)
  fix(gateway): retain observer slots until model work settles (#174262)
  refactor(ui): own assistant content subscriptions in Solid (#174035)
  refactor(logging): remove package and snapshot debug instrumentation (#174431)
  fix: show native Talk speech separately from completed answers (#172598)
  test(ui): forbid new controller host consumers (#174446)
  chore(deps): refresh dependencies with a seven-day cutoff (#174410)
  perf(ui): reduce idle native session catalog polling (#174404)
  refactor(test): remove unused Signal fixture overrides (#174445)
  fix: surface DNS zone and Linux camera read failures (#174424)
  fix(doctor): keep at most three standalone Doctor captures (#174415)
  perf(cron): reuse session writer for completed run alias cleanup (#174413)
  feat(database): legacy SQLite migrations complete before PostgreSQL port (#174399)
  perf(channels): avoid rereading ingress queue mutations (#174393)
  feat(control-ui): keep link readers scoped to their pane session (#173652)
  test(ui): wait for desktop widget placement before pinning (#174439)
  refactor(ui): compose remaining plugin classes (#174441)
  perf(control-ui): shrink transcript overscan and settle skipped row sizes synchronously (#173690)
  fix(sessions): quietly settle archived delivery endpoints (#174442)
  perf(sessions): keep config loading out of transcript workers (#174414)
  ...
gloss-dandelion-cult added a commit to karmaterminal/openclaw that referenced this pull request Oct 16, 2026
…wner cases

Upstream's openclaw#174393 added a competing enqueue/claim case on a frozen clock
and a resubmission case on the wall clock. Every kernel transition here
writes a strictly-forward updated_at (nextUpdatedAt), so the claim lands
on 101 past the frozen 100, and the resubmission case takes the seed clock
below its explicit transition times, as in 41277c5.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UJeJ4awZGktQ8rkwNhdueo
gloss-dandelion-cult added a commit to karmaterminal/openclaw that referenced this pull request Oct 16, 2026
…wner cases

Upstream's openclaw#174393 added a competing enqueue/claim case on a frozen clock
and a resubmission case on the wall clock. Every kernel transition here
writes a strictly-forward updated_at (nextUpdatedAt), so the claim lands
on 101 past the frozen 100, and the resubmission case takes the seed clock
below its explicit transition times, as in 41277c5.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01PiKbtQbHKKfq82arnmwBYp
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 17, 2026
)

Return accepted enqueues, claims, and resubmissions directly from their existing writer mutations. Remove redundant reads while preserving duplicate payloads, lane ordering, claim ownership, failure history, and coalescing behavior.

Use portable INSERT/UPDATE RETURNING; no schema or SDK change. Extend owner regressions for competing enqueue/claim requests and cleared resubmission state.

Validation: 83 focused tests, final-head CI, and two clean Codex review rounds. See the PR for measured statement/request counts and static-gate evidence.
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 P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary 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.

1 participant