Skip to content

perf(channels): batch durable ingress admission and health reads - #175183

Merged
steipete merged 6 commits into
mainfrom
dbasync/chanreq2
Oct 17, 2026
Merged

steipete merged 6 commits into
mainfrom
dbasync/chanreq2

Conversation

@steipete

@steipete steipete commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Channel ingress makes a separate durable-admission request for each event even when a transport already provides a batch. Cold health collection also requests two ingress aggregates independently.

User Impact

Telegram polling durably admits the complete response before advancing its offset. Duplicate IDs retain the first payload, queue ordering and album/forward coalescing remain intact, and committed messages remain recoverable after an acknowledgment failure. Health RPCs use the queue owner's cached facts.

Design

The existing enqueue command accepts a batch, inserts up to 100 unique IDs per statement with ON CONFLICT DO NOTHING RETURNING, and retrieves retained duplicates together inside the existing writer transaction. Single-event admission uses the same implementation. Telegram passes each complete getUpdates response through that path. Plugin-supplied queues may implement optional enqueueBatch; existing individual-only queues remain supported.

Ingress health fetches missing failed-count and pressure facts in one request, preserving each diagnostic's outcome and write-receipt/claim-expiry invalidation. This changes no schema, migration, coalescing window, or state owner. Immediate singleton enqueue/claim fusion is a separate follow-up; terminal settlement of a burst is not claimed to use a constant number of requests.

Removed checks and accepted edges:

  • Corrupt-duplicate tombstoning consumes UPDATE RETURNING instead of rereading its own write; the returned row inside the transaction is authoritative.
  • The health RPC drops its separate pressure snapshot override; an already-running diagnostic may return an older committed snapshot once, while receipt invalidation refreshes the next read.

Measurements

Completed three alternating pairs (M1, C1, M2, C2, M3, C3): base 1a2494eaff8650466a90d1e0a86abdf3f0bf9eba → candidate 701a6c37c55acd4ecac9f34b6d137091dfbb2453. All six arms completed with zero native SQL errors and independently reconciled wire-request counts. Warm ranges cover all 30 turns per side; whole-workload and phase ranges cover the three complete arms. Counts include transaction-envelope statements. No latency or PostgreSQL performance claim is made.

Measurement Base Candidate Median delta
Warmed causal SQL (30 pooled turns) 62 [62–63] 62 [62–63] 0
Warmed causal worker requests (30 pooled turns) 17 [17–18] 17 [17–18] 0
Warmed causal Gateway MAIN SQL (30 pooled turns) 0 [0–0] 0 [0–0] 0
Warmed raw SQL (30 pooled turns) 68 [68–102] 68 [68–89] 0
Warmed raw worker requests (30 pooled turns) 18 [18–23] 18 [18–24] 0
Warmed raw Gateway MAIN SQL (30 pooled turns) 0 [0–13] 0 [0–9] 0
Whole workload SQL (three arms) 3607 [3577–3615] 3596 [3595–3607] -11
Whole workload requests (three arms) 918 [918–920] 913 [912–918] -5
Whole workload Gateway MAIN SQL (three arms) 148 [148–148] 148 [148–148] 0
Fixed owner flow Base SQL / requests Candidate SQL / requests Delta SQL / requests
One monitor event 9 [9–9] / 3 [3–3] 9 [9–9] / 3 [3–3] 0 / 0
One same-lane batch of ten 90 [90–90] / 30 [30–30] 63 [63–63] / 21 [21–21] -27 / -9
One distinct-lane batch of ten 90 [90–90] / 30 [30–30] 63 [63–63] / 21 [21–21] -27 / -9
Queue control: one enqueue + claimNext + completion 15 [15–15] / 4 [4–4] 15 [15–15] / 4 [4–4] 0 / 0
Queue control: ten independent enqueue + claimNext + completion 150 [150–150] / 40 [40–40] 150 [150–150] / 40 [40–40] 0 / 0
Cold connect ingress health 2 [2–2] / 2 [2–2] 2 [2–2] / 1 [1–1] 0 / -1
Restart connect ingress health 2 [2–2] / 2 [2–2] 2 [2–2] / 1 [1–1] 0 / -1
Telegram album fixed enqueue/claim/complete 18 [18–18] / 6 [6–6] 18 [18–18] / 6 [6–6] 0 / 0
Telegram forward fixed enqueue/claim/complete 18 [18–18] / 6 [6–6] 18 [18–18] / 6 [6–6] 0 / 0
Telegram polling-batch fixed enqueue/claim/complete 22 [22–22] / 7 [7–7] 15 [15–15] / 5 [5–5] -7 / -2

Fixed monitor/Telegram flows count enqueue, direct claim, and completion. Independent queue controls use claimNext (including claimSnapshot), which explains their higher unchanged cost. One monitor batch of ten reduces admission alone from 30 SQL / 10 requests to 3 / 1. Claim and completion still happen per event, so its fixed enqueue/claim/complete cost is 63 / 21; this is constant-request batch admission, not constant-request end-to-end settlement. Ten independent enqueue calls remain unchanged, as does individual monitor admission. The polling response [42, 42, 44] retains the first duplicate payload, invokes each unique handler once, and advances offset to 45 after durable intake. Album/forward coalescing probes enter through separate individual admissions; their fixed 18 / 6 cost is unchanged.

The shared Gateway workload does not send inbound channel messages. Its changed ingress runtime work is the health cache miss at connect and restart-connect: the same two aggregate SQL statements use one worker request instead of two. The ingress area has zero T1 calls on both exact revisions; the complete T1 inventory remains 182 → 182.

Phase and shared-owner attribution

Raw phase Base SQL / requests Candidate SQL / requests Delta SQL / requests
01.boot 329 [327–330] / 88 [87–90] 330 [329–330] / 89 [88–90] 1 / 1
01.connect 255 [255–261] / 28 [25–30] 266 [235–272] / 27 [23–28] 11 / -1
02.first-turn 325 [324–365] / 100 [97–104] 325 [307–336] / 100 [95–101] 0 / 0
04.second-session 518 [517–519] / 133 [133–133] 514 [513–515] / 132 [132–132] -4 / -1
05.control-plane 7 [7–8] / 1 [1–1] 7 [7–7] / 1 [1–1] 0 / 0
06.cron 256 [256–257] / 70 [70–70] 257 [256–257] / 70 [70–70] 1 / 0
07.compaction 249 [249–250] / 38 [38–38] 249 [249–249] / 38 [38–38] 0 / 0
07.idle-settle 130 [129–130] / 20 [20–20] 130 [130–131] / 20 [20–20] 0 / 0
07.idle-connected 139 [139–139] / 49 [49–49] 138 [137–139] / 49 [49–49] -1 / 0
08.shutdown 24 [24–24] / 6 [6–6] 24 [24–24] / 6 [6–6] 0 / 0
09.restart-boot 334 [333–337] / 103 [102–103] 334 [327–334] / 103 [96–103] 0 / 0
09.restart-connect 51 [48–52] / 22 [21–23] 53 [51–54] / 22 [20–26] 2 / 0
10.restart-first-turn 245 [212–245] / 68 [66–69] 245 [243–250] / 68 [68–69] 0 / 0
11.restart-shutdown 24 [24–24] / 6 [6–6] 24 [24–24] / 6 [6–6] 0 / 0
Causal first turn Base SQL / requests / MAIN Candidate SQL / requests / MAIN
02.first-turn 179 [179–180] / 53 [53–54] / 0 [0–0] 180 [179–180] / 54 [53–54] / 0 [0–0]
10.restart-first-turn 142 [142–142] / 43 [43–43] / 0 [0–0] 142 [142–142] / 43 [43–43] / 0 [0–0]

Connect's raw median rises by 11 SQL while its requests fall by one. The extra phase-local SQL is unchanged startup work (standing-intent expiry/listing, session-key/window projections, cache/config reads, quarantine admission, and envelopes), with corresponding reductions in the first-turn window. Boot+connect SQL by arm is M=[588,585,584], C=[564,596,602]: median 585 → 596 (+1.88%); combined request medians are 116 → 116. Boot+connect+first SQL is M=[912,910,949], C=[900,903,927]: median 912 → 903; requests are M=[214,215,220], C=[212,211,218]: median 215 → 212. The cron median's extra SQL is one PASSIVE WAL checkpoint. Restart-connect's +2 SQL stays within the non-turn absolute allowance. The causal first-turn +1 SQL/+1 request is one ACP metadata cache miss through unchanged chat admission, seen on both revisions; raw first-turn medians stay 325 SQL / 100 requests.

Shared read family Warm SQL / requests, both sides Whole SQL / requests, base → candidate
exact-entry facts 0 [0–0] / 0 [0–0] 23 [23–23] / 23 [23–23] → 23 [23–23] / 23 [23–23]
actor hydration 0 [0–0] / 0 [0–0] 10 [10–10] / 5 [5–5] → 10 [10–10] / 5 [5–5]
entry-cache snapshots 0 [0–0] / 0 [0–0] 20 [20–21] / 12 [12–12] → 20 [20–20] / 12 [12–12]
row facts 1 [1–1] / 1 [1–1] 33 [33–34] / 31 [31–32] → 33 [33–33] / 31 [31–31]
watermark reads 0 [0–0] / 0 [0–0] 4 [4–4] / 3 [3–3] → 4 [4–4] / 3 [3–3]

All five shared-read family medians remain unchanged, with no higher ranges; overlapping family requests are not additive. The first-turn one-read variation comes from the unchanged ACP metadata path (chat-send-admission.ts → readAcpSessionMetaForEntries): it uses published facts when present and otherwise performs one worker read. Raw first/warm MAIN placement includes 13 unchanged background plugin-startup lease reads (plugin-lifecycle-lease.ts via registry startup). Causal warmed MAIN remains zero; the raw range must not be read as every warmed window being MAIN-free. No touched-owner statement/request increase or shared-family increase is observed.

Telegram whole-test totals include setup, verification, teardown, and 10 ms polling of list/stale-claim state. Those timer-sensitive totals are retained separately from fixed per-message costs. Direct SQL used only to verify the polling fixture is process-main work, not Gateway MAIN. These measurements cover this batch-admission/health change only; they do not measure the separate singleton enqueue/claim follow-up.

Proof status

The final candidate's qaRuntime build and scoped SDK compatibility proof passed. Final CI run 39019147689 passed all nine changed test files, production/test type checks, lint stripes, source contracts, and architecture checks. Its terminal result is 58 successful jobs, 25 skipped, and two failures (the Telegram job below and its aggregate gate). Madge found zero cycles. Its global live T1 ratchet is 182 → 182, and all three changed-file dialect groups are 0 → 0; the exact-revision ingress-area inventory is 0 → 0.

The same run has a failure in checks-node-changed: the full Telegram ingress-coalescing file passed 21 tests and failed “preserves retry policy and ordering for a young session-start conflict.” The observed queue contained the first retried message but lacked the expected second pending message. The exact failure reproduces on pinned main revision 7de7f398b4e98a00cd6bd87772c391450617fc53, an ancestor of this comparison base, with matching affected test/owner/fixture source. Its failure block is identical after clock and log-format normalization. This qualifies as inherited; it does not establish the follower message’s final state or the precise cause. No redundant baseline/candidate replay is scheduled. This is not reported as a green CI run. SDK exports, surface checks, and the runtime API guardrail test passed. Canonical Knip exits 1 with 17 findings, all attributed to exact observed-main scan/file/symbol matches: 14 in main run 39017848352, and the remaining three test-support exports in the completed canonical scan at main 59b215bc5279. Relevant source, consumers, scanner config and dependencies match. This is an inherited-static exception; Knip is not reported green. PostgreSQL conformance was path-skipped, not passed.

Owner regressions cover first-payload deduplication during competing admission, recovery of a committed batch after acknowledgment failure, a real polling Worker over loopback before offset advancement, malformed-response rejection, and health cache reuse/invalidation/partial failure. The live Telegram album attempt failed before Gateway readiness and before any scenario message or model request: its task-local fixture supplied the obsolete streaming: "off" shape instead of streaming: { mode: "off" }. Full channel validation rejects that fixture on unchanged base/head schema code. Native cleanup completed and no owned listener or credential scratch remains. The corrected live Telegram Test Server run passed on the exact final candidate: two photos arrived in one polling response, the batch was spooled before offset advancement, the model prompt included both images, and the bot returned the exact requested marker. Five provider requests were observed in total, including the main response request; the rest were ancillary recap/embedding work. Native lease cleanup completed, credential/Gateway scratch was removed, and both owned listeners were absent. This proves the live polling album path; the initial failed fixture attempt remains recorded.

Two scoped Codex review rounds found no actionable P0–P2 defects on their supplied revisions; they did not execute tests. The subsequent main integration and type-only correction have their own build/compiler/CI evidence and are not relabeled as another formal review. A later P2 review finding is accepted as a follow-up: a throwing post-commit callback prevents later callbacks in that batch from running during the same attempt, although all rows remain durable and recoverable. The ACK-failure regression covers recovery, not completion of every callback. See the follow-up acknowledgment.

SDK evidence: the exact integrated comparison (1a2494eaff865 → 701a6c37c55a) completed using the repository's native declaration emitter. Both arms cover all 155 public roots and 13,452 emitted modules; ten declarations changed, none were added/removed, and public-root export modules are unchanged. The complete delta was manually reviewed: optional enqueueBatch is additive; the named admission-result alias preserves readonly fields and optional undefined queueResult; remaining changes are internal worker/health contracts. The exact-head public-factory consumer also compiles successfully. Compatibility is accepted. The stock semantic renderer did not finish or produce an artifact after 36 minutes; it remains explicitly incomplete. The complete native declaration comparison is the documented fallback, not a claim that the stock renderer passed.

Current integrated diff: production +418/−221, tests +304/−113, docs +23/−4. No update/Doctor/schema/plugin-loading/service-lifecycle change is included, so the published-driver update cell is not applicable.

@clawsweeper

clawsweeper Bot commented Oct 17, 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 17, 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-17T08:58:38.034753Z 701a6c3 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 channel: telegram Channel integration: telegram gateway Gateway runtime size: XL labels Oct 17, 2026

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f68cf25a50

ℹ️ 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".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

);
admitOptions.onDurablyAdmitted();
results[resultIndex] = { kind: "durable", queueResult };
await options.onDurableAdmission?.(raw, {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Run every callback after committing a batch

When enqueueBatch is used and an earlier onDurableAdmission callback rejects, this await exits the loop even though every item was already committed, so later durable items never receive their callback. A permanently failing first item can therefore starve per-event acknowledgments or hooks on every replay; invoke all post-commit callbacks while retaining the first failure so every committed admission is observed.

AGENTS.md reference: src/plugin-sdk/AGENTS.md:L1-L3

Useful? React with 👍 / 👎.

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Oct 17, 2026
@clawsweeper

clawsweeper Bot commented Oct 17, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

Batches durable channel admission and ingress-health reads, with Telegram polling acknowledging each response after its batch commits.

Example: Telegram returns updates 42 and 44 in one getUpdates response.

  • Before: Each update requires a separate durable-admission request.
  • After: Both updates commit in one admission request before polling advances to offset 45.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) Useful owner-based optimization with one actionable callback defect and no supplied execution evidence satisfying the scoped Telegram requirement; stored row formats and schema remain unchanged.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Product

Kind: Performance · Worth it: Yes
User problem: Bursty channel traffic performs avoidable durable-admission requests, and cold health collection separately requests two ingress aggregates.
Reason: The maintainer-authored direction reduces work through existing owners without adding configuration, a buffering delay, or another persistence owner.

Merge readiness

⛔ Needs changes before merge - 1 item remains

This PR provides a useful, maintainer-directed optimization, but a callback failure can leave later committed events without their admission hooks.

Priority: P2
Reviewed head: 4b0519fcea914bd88a40b5dc9ce834959772c68d

Before merge

  • Finish every committed admission callback before propagating failure (P2) - When enqueueBatch commits events A and B, a rejection from A's onDurableAdmission exits this loop before B's hook runs. scheduleAdmission then releases the claim lock and requests the drain, so B can dispatch without the post-commit acknowledgment hook promised by the public monitor contract. Previously B was not inserted after A's callback failed. For an already committed batch, invoke each event's hook despite earlier callback failures, retain the failure, and reject after processing them all; extend the acknowledgment-failure regression to assert B's hook runs before dispatch.

Findings

  • [P2] Finish every committed admission callback before propagating failure — src/channels/message/ingress-monitor.ts:615-619

Tests

  • Missing end-to-end proof: Supply the scoped real-Telegram batch acknowledgment and replay evidence; the added loopback Worker tests have no recorded execution or base-versus-head result in the supplied discussion.
Agent review details

How this fits together

Channel transports submit events to the shared ingress monitor, which persists them through the state writer before acknowledgment and agent dispatch; read-only workers supply queue diagnostics to Gateway health.

flowchart TD
 A[Telegram response] --> B[Polling worker]
 B --> C[Shared ingress monitor]
 C --> D[SQLite writer]
 D --> E[Shared drain]
 E --> F[Agent delivery]
 D --> G[Read-only health worker]
 G --> H[Gateway health]
Loading

Technical review

Best possible solution:

Keep batching in the existing queue owner and finish every committed event's admission callback before releasing the claim lock.

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

A two-event batch with an onDurableAdmission callback that rejects for the first event deterministically commits both rows but skips the second callback; this review executed no target code.

Is this the best way to solve the issue?

The existing writer transaction and receipt-invalidated health cache are appropriate owners, but post-commit callback processing must continue across individual failures.

Full review comments:

  • [P2] Finish every committed admission callback before propagating failure — src/channels/message/ingress-monitor.ts:615-619
    When enqueueBatch commits events A and B, a rejection from A's onDurableAdmission exits this loop before B's hook runs. scheduleAdmission then releases the claim lock and requests the drain, so B can dispatch without the post-commit acknowledgment hook promised by the public monitor contract. Previously B was not inserted after A's callback failed. For an already committed batch, invoke each event's hook despite earlier callback failures, retain the failure, and reject after processing them all; extend the acknowledgment-failure regression to assert B's hook runs before dispatch.
    Confidence: 0.99
    Late finding: first raised on code an earlier review cycle already covered.

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

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

Provenance checked

Testing

Proof path: in-process harness.

Security

None.

Evidence

Acceptance criteria:

  • pnpm test src/channels/message/ingress-monitor.test.ts src/channels/message/ingress-monitor.admission.test.ts --maxWorkers=1
  • pnpm check:changed
  • git diff --check

What I checked:

  • Pinned introduction and current-main comparison: Reviewed the introduced merge-base-to-head diff. Fetched main still uses individual enqueue operations, so the batch optimization remains distinct work. (src/channels/message/ingress-queue.kernel.ts:146, 4b0519fcea91)
  • Post-commit callback defect: The complete batch commits before callbacks begin, but the first callback rejection exits the loop. Independently verified the concern already recorded at perf(channels): batch durable ingress admission and health reads #175183 (comment); the existing recovery test checks delivery without checking that every admission hook runs. (src/channels/message/ingress-monitor.ts:615, 4b0519fcea91)
  • Existing SDK contract: The public monitor contract says onDurableAdmission runs after every durable enqueue; the new optional enqueueBatch method retains support for individual-only external queues. (src/channels/message/ingress-monitor-types.ts:91, 4b0519fcea91)
  • Proof supplied and scoped requirement: The full live PR body and comments contain test descriptions and pending measurements, without an executed Telegram capture. extensions/telegram/AGENTS.md requires real Telegram proof for transport changes and restart/replay coverage for acknowledgment paths. (extensions/telegram/AGENTS.md, 4b0519fcea91)
  • Accepted health tradeoff: The maintainer-authored body explicitly accepts one older in-flight diagnostic snapshot while receipt invalidation refreshes the next read; replacing the separate RPC pressure override follows that recorded decision. (src/gateway/server-methods/health.ts:87, 4b0519fcea91)
  • CI attribution limitation: Exact-head checks report type and extension-package-boundary failures. Annotations expose exit codes only, and downloading job logs was blocked at GitHub's external blob host; their cause remains unclassified and is not assigned to this patch. (4b0519fcea91)

Likely related people:

  • Arseniy Palagin: Raw commit bdfe2a4 adds extensions/telegram/src/telegram-ingress-worker.runtime.ts:35 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: bdfe2a4e60d3; files: extensions/telegram/src/telegram-ingress-worker.runtime.ts)
  • Vincent Koc: Raw commit 0211407 adds src/gateway/health/collector.ts:322 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 0211407d8a2c; files: src/gateway/health/collector.ts)

PR surface

Source +188, Tests +187, Docs +19. Total +394 across 26 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 14 409 221 +188
Tests 9 300 113 +187
Docs 3 23 4 +19
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 26 732 338 +394

Review metrics

Metric Value Why it matters
Public SDK addition 1 optional method: enqueueBatch(events) Extends the exported queue contract while retaining individual-only plugin implementations.

Labels

Label changes:

  • add P2: Useful ingress performance work with a bounded, source-verifiable callback failure case.
  • add merge-risk: 🚨 compatibility: Changes the public queue API and batch admission behavior; the maintainer-directed design preserves individual-only queues.
  • add rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

Label justifications:

  • P2: Useful ingress performance work with a bounded, source-verifiable callback failure case.
  • merge-risk: 🚨 compatibility: Changes the public queue API and batch admission behavior; the maintainer-directed design preserves individual-only queues.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

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 17, 2026, 2:04 AM ET / 06:04 UTC.

Give the prepared array its existing element contract so declaration and type checks pass. The emitted JavaScript is unchanged.
Use void Promise executors and explicit empty Node Worker transfer lists.
@steipete

Copy link
Copy Markdown
Contributor Author

The batch callback finding is valid and remains a follow-up: if A and B are durably enqueued together and A's onDurableAdmission throws, B's callback is not invoked by this admission attempt. Both queue rows remain committed and recoverable; this does not roll back or discard B. A later change should run every committed event's callback and report the first failure, with a regression covering that contract.

This P2 limitation is accepted for this PR under the requested two-round review limit and relaxed landing policy. It is not reported as fixed. The existing ACK-failure regression proves durable queue recovery, not callback completion for every item.

@steipete
steipete merged commit 4aa0f5a into main Oct 17, 2026
178 of 187 checks passed
@steipete
steipete deleted the dbasync/chanreq2 branch October 17, 2026 10:07
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 18, 2026
…nclaw#175183)

* perf(channels): batch durable ingress admission and health reads

* test(channels): group batch admission with claim ownership proof

* fix(channels): type prepared ingress batch entries

Give the prepared array its existing element contract so declaration and type checks pass. The emitted JavaScript is unchanged.

* test(telegram): fix polling batch fixture lint

Use void Promise executors and explicit empty Node Worker transfer lists.

* fix(channels): preserve ingress result type compatibility
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: telegram Channel integration: telegram docs Improvements or additions to documentation gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. 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