Skip to content

fix: chat turns fail when session receipts exceed transport limits - #169843

Merged
RomneyDa merged 4 commits into
openclaw:mainfrom
TheAngryPit:fix/sqlite-session-actor-receipt-169780
Oct 12, 2026
Merged

RomneyDa merged 4 commits into
openclaw:mainfrom
TheAngryPit:fix/sqlite-session-actor-receipt-169780

Conversation

@TheAngryPit

@TheAngryPit TheAngryPit commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #169780

What Problem This Solves

Fixes chat turns failing before the agent starts when an existing conversation's accumulated session state exceeds the SQLite native commit receipt limit.

User Impact

Valid session mutations can commit without resetting the conversation or dropping retained transcript identities. There is no schema migration, authentication change, retention change, or increase to the global transport limit.

Why This Change Was Made

Even a tiny activity update builds a full actor postimage. Passing that entire result into the native commit receipt makes accumulated transcript state subject to a 32 MiB message limit.

The durable actor now uses Core's existing bounded transfer frames for oversized outcomes before final commit admission. A compact native commit witness confirms the complete candidate; the executor then reconstructs the original domain result. Existing reply framing stays in place. Small receipts and incognito acquisition retain their existing paths.

Final authority checks still decide whether the transaction may commit. An incomplete transfer or rejected final admission rolls back; a confirmed commit remains known if ordinary reply or final settlement delivery is lost. Losing native commit evidence still fences the actor until reconciliation.

Evidence

Maintainer validation of the integrated implementation

Original fix by @TheAngryPit; maintainer cleanup by @steipete. Head: edfd9059a27cb21fe63b6fff771007deca9f1426, integrated main: 019e5c4ab54b0ccbe08a8c2f1234cbdf8170e889. The integration preserves main's read-invalidation behavior and resolves the composer fixture to main, leaving four session-owner files in the PR.

Real Gateway proof passed at this head. A fresh secretless Untrusted AWS lease (cbx_c04722b472f4, r7a.xlarge, 30.6 GiB RAM; run run_7fdbf1bc8d8a0c2f3459bfaa5b564c25) ran the built Gateway with isolated state, an ephemeral port, and the mock OpenAI provider. The trusted bootstrap verified the full SHA and absence of an IAM role; hydration was disabled and only CI was forwarded.

The fixture creates a session through sessions.create, completes an initial chat.send, then uses sessions.patchMany to store 36,864 distinct 512-character policy names (18,874,368 string bytes; 18,985,150 RPC input bytes). Separately cloned entry/result and actor postimage copies exceed the unchanged native receipt limit. Existing sessions.describe and sessions.get RPCs verify the session, all policy values, and persisted message identities. State construction uses real RPCs, with no database injection, raised limit, or split commit.

Same continuation RPC Main production restored Fixed production
Status error ok
Error SQLite worker commit receipt exceeds the transport limit None
Provider requests 0 1
Persisted continuation replies 0 Exactly 1
Session identity and both earlier message IDs Retained exactly Retained exactly
All 36,864 policy names Retained exactly Retained exactly
Gateway cleanup Confirmed stopped, no errors Confirmed stopped, no errors
Live command wall time 58.29 s 66.93 s
Runtime build wall time 74.77 s 74.83 s

Redacted continuation events, omitting nonessential synthetic IDs:

{"mode":"baseline","status":"error","providerRequests":0,"transportFailure":true,"assistantMarkerCount":0,"sameSession":true,"policyNamesRetained":true,"retainedMessageIdentities":2,"retainedMessageIdsExact":true,"errors":["SQLite worker commit receipt exceeds the transport limit"]}
{"mode":"fixed","status":"ok","providerRequests":1,"transportFailure":false,"assistantMarkerCount":1,"sameSession":true,"policyNamesRetained":true,"retainedMessageIdentities":2,"retainedMessageIdsExact":true,"errors":[]}

The baseline replaces only session-actor-sqlite.ts and session-actor.worker.ts with integrated main; a source guard verifies all production under src matches main. The fixed run restores the verified head and checks for a clean source tree. Commands:

pnpm test src/config/sessions/session-actor.test.ts --maxWorkers=1 -t 'oversized=true'
node --import ./scripts/tsx.mjs scripts/build-all.mts qaRuntime
node --import ./scripts/tsx.mjs /tmp/oc-r8-169843-integrated/live-proof.mts baseline
# Restore the two production files from the verified PR head and rebuild.
node --import ./scripts/tsx.mjs scripts/build-all.mts qaRuntime
node --import ./scripts/tsx.mjs /tmp/oc-r8-169843-integrated/live-proof.mts fixed

The production-only negative control retained the new tests and failed with the exact native receipt error: 1 expected failure / 16 skipped, wall 46.28 s. Prior focused proof on the same receipt implementation passed all 46 actor, worker, and replica tests in 71.54 s with --maxWorkers=1, on cbx_df5941ade787 / run_9603a13f4ef80f4b243650919de47d11. Those worker regressions also cover oversized retained transcript identities, final-admission refusal, interrupted transfer, and lost reply/settlement delivery. The live fixture above uses oversized policy state; it is Gateway RPC proof, not a browser rendering run.

Independent Codex autoreview of the integrated tree is scoped-clean through P2, with no actionable findings. ClawSweeper revision 12, reviewing this exact head, reports proof sufficient, complete issue scope, no findings, and no before-merge requirements. The integrated Gateway baseline/fixed evidence and retained negative control resolve its earlier proof requests. Human comments contain no unresolved code finding.

Formatting and git diff --check passed. Final-head pnpm tsgo:core passed in 83.27 s; pnpm tsgo:core:test --ci-graphs-json '["core-test-agents-sessions"]' passed in 79.24 s; targeted four-file oxlint passed with zero warnings/errors in 9.81 s. Exact-head CI passed, including openclaw/ci-gate. The three changed-test jobs took 237 s, 272 s, and 322 s; the changed-boundary job took 140 s (the additional compact changed-check job took 71 s).

The final complete session-directory run finished in 3,178.75 s:

OPENCLAW_NODE_TEST_PLAN_CONTINUE_ON_FAILURE=1 pnpm test src/config/sessions --maxWorkers=2

It covered all 358 tracked test files: 340 passed / 17 failed / 1 existing benchmark skipped; 3,168 tests passed / 65 failed / 1 skipped. All 17 actor regression cases passed, as did all 17 infrastructure files. There were no unhandled-error sections. The broad command retains its failing exit status; this is not a claim that the entire suite is green.

All 65 failing cases match main, case by case, in unchanged files. The failures comprise 63 fixtures reading unprepared runtime config after main #169714, one default-store fixture mismatch, and one existing SQLite relocation lock failure. Direct main-production replays reproduced the default-store case (session-accessor.test.ts, 1 failed / 63 skipped, 40.88 s on cbx_c6d14b746c37 / run_6086efb3caa02f31361b4723ff8db945), plus the pending-input and reconciliation-lifecycle files (13 failed / 28 passed, 76.90 s on cbx_83a8109fe1bd / run_082e1d0240e93759d643096b2e3da19a). Production-source guards passed on both leases.

The other 51 cases match complete logs from scheduled main CI run 38292584060, at c66da3d764b0ba7996aa77c98a885298bb0dc2c4; the relevant session and runtime-config source is byte-identical to integrated main 019e5c4. The matching logs are job 114956274875, job 114956274760, and job 114956274893. No assertions, retries, timeouts, or skips were changed to hide these failures. All proof leases have been released.

Production is +82/−11, net +71, reduced from the submitted net +221. This uses the LOC escape: the remaining growth connects the existing transfer, final-admission, and native settlement owners; unrelated deletions would not improve this repair. Tests/support are +236/−62, net +174. Docs are +0/−0.

File Added Removed
src/config/sessions/session-actor-sqlite.ts 30 6
src/config/sessions/session-actor.worker.ts 52 5
src/config/sessions/session-actor.test.ts 212 61
src/config/sessions/session-actor-worker.test-support.ts 24 1

Earlier live fixture attempts exposed a loader mismatch and a chat.history response that repeated the large policy twice, exceeding its separate client frame limit. Neither is counted as receipt proof; the successful flow uses existing bounded readback RPCs and preserves all values.

Earlier integration at cd6ee9e

Peter Steinberger integrated and simplified the repair at 44422ac1365e41face74e6de334fa6d7a08c0fe3. It now uses Core's transfer collector and simplified executor, without restoring retired generation or snapshot bookkeeping.

The canonical actor suite passed 17/17 tests at that head, including the oversized durable outcome, final-admission refusal, interrupted-transfer rollback, reply/settlement loss and reconciliation controls (job log). The changed-boundary suite passed 133/133. Production types and all five Core lint jobs also passed. That run failed only on a Chat UI fixture type error introduced in its newer main integration, outside the receipt repair.

Follow-up cd6ee9ef0ab764186c5ba18ec5e93fe79f407ec2 preserves the maintainer's actor/worker/collector source and integrates main b8d31e961294ff7eaf4e1e4b399a3c2ff3eea3f1. Its sole additional fix explicitly retains the existing Unarchive action label in the refreshed test banner. The exact UI-chat type lane reproduced TS2322 before the line and passed afterward; all 3/3 banner tests, targeted type-aware lint, formatting and independent Codex/OpenAI source review passed. No production UI behavior, assertions, timeout or guard changed. Canonical CI for this exact follow-up completed successfully, including the formerly failing test-type lane and final CI gate. The branch is conflict-free; skipped native jobs are not counted as new native runtime proof.

The runtime and original-installation evidence below is retained at fb26a485c555334f29a2f5ee3ea3a1f13e054aba. No personal installation was changed to qualify the integration.

The synthetic fixture accumulates 34,000 retained transcript identities with bounded 512-character key payloads. Its serialized state exceeds the native receipt limit without one artificially oversized message.

Built Gateway runtime proof at fb26a48

The built production Gateway was exercised on macOS arm64 with Node 24.19.0 in an isolated OCM environment, outside Vitest. sessions.create created the conversation through the real RPC. With that Gateway stopped, Core's transcript writer prepared the accumulated synthetic history; the Gateway was then restarted and received one chat.send. Only inference was synthetic, using the repository's loopback mock OpenAI server. The Gateway, chat RPC, durable SQLite worker, commit admission and persistence paths were real and uninstrumented.

Observed complete actor hot-state measurements, serialized with node:v8 through Core's state reader:

Observation Before the turn After the turn
Serialized hot state 55,244,180 bytes 53,665,035 bytes
Retained synthetic transcript identities 34,000 34,000
Transcript anchors 34,000 34,002
Original session identity Present Unchanged

Both state measurements exceed the unchanged 33,554,432-byte native limit. The retained identity set has the same SHA-256 before and after: 6d3900564eb2adb292240c44671ade5c4b726809e2c5ee569ac7ac0199265dc0.

Redacted live CLI output:

{"method":"chat.send","status":"started","messageSeq":34001}
{"method":"agent.wait","status":"ok","terminalDisposition":"visible","rerouted":false,"successfulToolNames":[],"terminalReply":"OPENCLAW_SQLITE_RECEIPT_PROOF_OK"}
{"method":"chat.history","assistantMarkerPresent":true}

The first bounded agent.wait returned timeout while transcript hydration was still running. Waiting again on the same run returned the terminal receipt above; no second chat.send, timeout increase or guard change was used. The local provider recorded 43 inference requests, including normal pre-turn compaction. The original 34,000 identities survived that processing. The task Gateway then drained and shut down cleanly; both synthetic listeners were verified stopped, and the separate personal Gateway remained healthy.

Earlier automated checks and review at fb26a48

  • 51 tests passed across four files on both Windows and native macOS arm64 on the integrated candidate, including the real durable executor/worker, replica controls, bounded frames, final-admission refusal, interrupted transfer, and recovery after reply/settlement loss without replay. The macOS run used Node 24.19.0 and completed in 71.74 seconds (75.19 seconds through the native test wrapper). Small-state entry patches preserve hot publication; oversized optional postimages invalidate and reconstruct through a real actor read, retaining the current Core capacity policy.
  • Production TypeScript and targeted type-aware lint passed. Independent Codex review completed with no actionable P0–P2 findings on the final diff.
  • Canonical CI passed at this head, including the CI gate. All 28 dependency-selected consumer type graphs also passed locally. The relevant staged guards and 18 additional official guard commands passed. A Windows-only local wrapper failure classified unchanged frozen changelog mirrors incorrectly (path.relative supplies backslashes, while the mirror exemption requires CHANGELOG/); no source or guard was changed to hide it. The canonical guard job passed.
  • Origin evidence: the earlier worker reproduced expected committed versus actual rolled-back behavior on the pre-fix actor. The maintainer's runs independently qualify the repaired path; that earlier RED run is contributor-reported, not a retained maintainer execution receipt.
  • The official CLI/Control UI build and self-contained package integrity check passed on macOS at this exact commit. The three official unused-export scans also passed with zero entries when run serially after the parallel wrapper encountered a pnpm cache EBUSY on Windows. No source changes or guard relaxation were used to obtain those results.

Original installation confirmation

On October 12, the original Mac mini installation adopted this exact candidate through the Core updater: Gateway 2026.10.2 at fb26a485c555334f29a2f5ee3ea3a1f13e054aba, retaining Node 24.19.0. Independent checks confirmed the matching service/listener PID, HTTP 200 health and readiness, channels ready, and no plugin errors.

The user then retried the affected conversation and confirmed that it replied. The authorized screenshot shows the earlier SQLite receipt error at the top and the successful post-update reply below, displaying “Done in 28 seconds”. The earlier failure remains in conversation history; it is not a new failure after adoption. The separate historical provider timeout visible between them is outside this PR's scope. No conversation reset or transport-limit increase was used.

Earlier SQLite receipt error above; successful post-update reply below

Original-installation confirmation and screenshot. This supplements the reproducible synthetic production-path proof above with user-confirmed recovery of the reported conversation.

Original proof base: 490deff4b336d647350f444f45b1b1767761a759; runtime-proof candidate: fb26a485c555334f29a2f5ee3ea3a1f13e054aba. The integration retains Core's immutable snapshot publication and resident entry-patch updates.

Reproduce the original revision's focused checks:

node scripts/run-vitest.mjs src/config/sessions/session-actor-outcome-transfer.test.ts src/config/sessions/session-actor-worker.test.ts src/config/sessions/session-actor.test.ts src/config/sessions/session-actor-replica.test.ts --maxWorkers=1
node scripts/check-changed.mjs --staged --base 490deff4b336d647350f444f45b1b1767761a759 --timed

@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.

@clawsweeper clawsweeper Bot added P1 High-priority user-facing bug, regression, or broken workflow. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 12, 2026
@clawsweeper

clawsweeper Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

Transfers oversized session outcomes through existing bounded frames and confirms their commit with a compact native receipt.

Example: Continue a conversation containing 36,864 stored policy names of 512 characters each.

  • Before: The continuation fails with a SQLite receipt transport-limit error before any provider request.
  • After: The continuation produces exactly one reply while preserving the session, earlier message IDs, and all policy names.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) A focused owner-level repair with production Gateway evidence, meaningful negative controls, successful exact-head checks, and no actionable findings.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): Supplied output at the reviewed head exercises built-Gateway chat continuation with oversized persisted policy state through real session RPCs and SQLite workers, showing baseline failure and fixed success with exact retained values; the earlier screenshot additionally confirms recovery of the reported installation.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: An existing conversation stops before the agent starts once accumulated session state exceeds the native receipt transport limit.
Reason: The repair restores conversation continuity through existing owners and preserves their documented state and authority contracts.

Merge readiness

✅ Ready for maintainer review

This PR fixes a concrete chat-continuation failure still present on current main; the reviewed patch has no actionable findings.

Priority: P1
Reviewed head: edfd9059a27cb21fe63b6fff771007deca9f1426

Before merge

None.

Findings

None.

Agent review details

How this fits together

Gateway chat preparation invokes the session actor, whose SQLite worker commits session mutations and returns complete outcomes to the executor and replica.

flowchart LR
  A[Gateway chat request] --> B[Session actor executor]
  B --> C[SQLite actor worker]
  C --> D[Bounded outcome frames]
  D --> B
  C --> E[Final authority admission]
  E --> F[SQLite commit]
  F --> G[Compact native receipt]
  G --> B
Loading

Technical review

Best possible solution:

Land the existing bounded-transfer repair while preserving complete session state, final authority admission, and native settlement semantics.

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

Current-main source establishes the complete-outcome-to-32-MiB-guard failure, and supplied built-Gateway baseline/fixed output exercises it; this read-only review ran no reproduction.

Is this the best way to solve the issue?

Reusing the existing framed transport fixes the owning boundary without raising global limits, truncating state, or restoring retired duplicate bookkeeping.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Complete actor outcomes and native commit recovery keeps the original intent (feat(sessions): add inactive session actor and scoped receipts #168602: Capture complete postimages before fallible publication and keep known commits known independently of ordinary replies.)
  • Simplified durable executor bookkeeping keeps the original intent (90c03ae: Use the paired worker's native settlement without duplicate generation and deep snapshot validation.)
  • Resident entry-patch publication keeps the original intent (80d82ca: Preserve warm actor state while retaining invalidation and hydration for oversized optional postimages.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

  • Current main still contains the failure path: The actor still passes the complete accepted outcome to deferSqliteWorkerCommitReceipt; native settlement rejects serialized facts above 32 MiB. (src/config/sessions/session-actor.worker.ts:341, a7b8ae7417e2)
  • Introduced repair: The pinned introduction diff reuses the existing transfer owner and collector, retains final authority admission, and reconstructs outcomes only from complete transfer plus matching native commit evidence. (src/config/sessions/session-actor-sqlite.ts:233, edfd9059a27c)
  • Existing transport pattern: Session-entry candidates already use bounded frames before COMMIT, a compact native witness, and final frames accompanying final authority admission. (src/config/sessions/session-entry-patch.worker.ts:254, edfd9059a27c)
  • Supplied production Gateway proof: The complete PR body records baseline and fixed built-Gateway continuation results at the reviewed head, using real session RPCs and SQLite workers with mock inference: baseline fails before inference; fixed succeeds with exactly one persisted reply and exact retained state. (edfd9059a27c)
  • Original-installation confirmation: TheAngryPit's fix: chat turns fail when session receipts exceed transport limits #169843 (comment) reports recovery after updating the original installation; the downloaded screenshot visibly shows the earlier receipt error and a subsequent successful reply at the earlier revision. (fb26a485c555)
  • Exact-head checks: Paginated check inspection found successful or skipped checks and neutral CodeQL; the aggregate CI, dependency-review, and security-sensitive-review statuses are successful. (edfd9059a27c)

Likely related people:

  • Peter Steinberger: Raw commit d5173cc adds src/config/sessions/session-actor.worker.ts:297 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: d5173ccc77b9; files: src/config/sessions/session-actor.worker.ts)

PR surface

Source +71, Tests +174. Total +245 across 4 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 82 11 +71
Tests 2 236 62 +174
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 318 73 +245

Review metrics

Metric Value Why it matters
Production versus test growth Production +82/-11; tests and support +236/-62 Production growth connects existing transport and settlement owners; test growth covers oversized outcomes, refused admission, interrupted transfer, and lost replies.

Root-cause cluster

Relationship: same_root_cause
Canonical: #169780
Summary: This PR is the open repair for the canonical oversized session-receipt failure.

Members:

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

Labels

Label changes:

No label changes.

Label justifications:

  • P1: Accumulated session state can prevent an existing conversation from starting another agent turn.
  • 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.
  • 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 (12 earlier review cycles; latest 8 shown)
  • reviewed 2026-10-12T12:24:47.698Z sha fb26a48 :: needs changes before merge. :: none
  • reviewed 2026-10-12T16:06:41.142Z sha fb26a48 :: needs changes before merge. :: none
  • reviewed 2026-10-12T17:17:12.062Z sha 44422ac :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-12T17:39:45.335Z sha cd6ee9e :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-12T18:01:30.307Z sha cd6ee9e :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-12T18:59:00.077Z sha edfd905 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-12T19:12:36.221Z sha edfd905 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-12T19:26:37.618Z sha edfd905 :: needs maintainer review before merge. :: none

Reviewed October 12, 2026, 4:15 PM ET / 20:15 UTC (Revision 13).

@TheAngryPit
TheAngryPit marked this pull request as ready for review October 12, 2026 11:30
@TheAngryPit

Copy link
Copy Markdown
Contributor Author

The requested built Gateway/chat proof is now complete and included in the PR body at unchanged head fb26a485c555334f29a2f5ee3ea3a1f13e054aba.

On macOS arm64 / Node 24.19.0, the production Gateway completed a real chat.send turn outside Vitest with accumulated synthetic state above the unchanged 32 MiB native receipt limit:

  • Serialized actor hot state: 55,244,180 bytes before / 53,665,035 bytes after, against the 33,554,432-byte limit.
  • All 34,000 retained transcript identities survived, with the same before/after SHA-256 and unchanged session identity.
  • The terminal result was ok / visible, with OPENCLAW_SQLITE_RECEIPT_PROOF_OK independently present in chat.history; no rerouting or tool execution.
  • The Gateway, RPC, durable worker, commit admission and persistence were real and uninstrumented. Only inference used the repository's local mock OpenAI server. Core's transcript writer prepared the synthetic history.
  • The first bounded wait timed out during hydration; a second wait observed the same run completing. No second chat submission, raised timeout, reset, or transport-limit change was used. The task Gateway then shut down cleanly and both test listeners were verified stopped.

51 focused tests passed on each of Windows and native macOS, including refusal, interrupted transfer and known-commit recovery controls. Independent Codex autoreview found no actionable P0-P2 findings. Canonical CI, including the gate, passed at this exact head.

This proves the oversized-state synthetic Gateway repair. Adoption into the original personal installation and re-testing its private conversation remain separate; no private data or credentials were used or published.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Oct 12, 2026
@TheAngryPit

Copy link
Copy Markdown
Contributor Author

The affected conversation now replies on my original Mac mini installation after installing this PR's exact head, fb26a485c555334f29a2f5ee3ea3a1f13e054aba, through the Core updater.

The screenshot below shows the earlier SQLite receipt failure at the top and the successful post-update turn below, in the affected conversation. The later turn displays an assistant response and “Done in 28 seconds”. The earlier error remains in the conversation history; it is not a new failure after the update. An earlier provider timeout is also visible and is separate from the receipt-limit bug this PR fixes.

Independent installation checks confirmed Gateway 2026.10.2 at this exact commit, Node 24.19.0, a matching service/listener PID, HTTP 200 health and readiness, channels ready, and no plugin errors. No conversation reset or transport-limit increase was used.

Earlier SQLite receipt error above; successful post-update reply below

This adds original-installation and user-visible confirmation to the synthetic production-path proof already in the PR. The reported merge conflict remains a separate integration task.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

Carry complete actor outcomes through the existing bounded transfer owner,
and retain compact native commit evidence without changing transaction
semantics or the global transport limit. Integrate current main's simplified
executor and remove the redundant transfer flag and receiver bookkeeping.

Fixes openclaw#169780

Co-authored-by: TheAngryPit <[email protected]>
@clawsweeper clawsweeper Bot added 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 proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Oct 12, 2026
@openclaw-barnacle openclaw-barnacle Bot added the app: web-ui App: web-ui label Oct 12, 2026
@TheAngryPit

Copy link
Copy Markdown
Contributor Author

Peter's integration resolves the conflict and simplifies the receipt repair onto Core's existing transfer collector. Follow-up cd6ee9ef0ab764186c5ba18ec5e93fe79f407ec2 preserves that actor/worker source and fixes the demonstrated UI-chat type failure with one explicit Unarchive label in the test fixture.

At Peter's 44422ac136 head, canonical actor tests passed 17/17 and changed-boundary tests passed 133/133. For this follow-up, the failing UI-chat type lane was reproduced RED then passed GREEN; all 3 banner tests, targeted lint/format and independent Codex/OpenAI source review passed. Assertions and production behavior are unchanged. The PR description separates this integration proof from the earlier runtime receipts.

Canonical CI is now successful on exact head cd6ee9ef0ab764186c5ba18ec5e93fe79f407ec2, including the formerly failing test-type lane and final CI gate. GitHub reports MERGEABLE/CLEAN, with no failing or pending checks.

The PR description retains the earlier production Gateway trace and original-installation screenshot as revision-pinned runtime evidence. The integrated-head checks are recorded separately; no personal installation was changed to test this merge. Skipped native jobs are not counted as additional runtime proof.

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

Merge current main, preserving its read-invalidation error and complete
composer fixture alongside the oversized native receipt transfer repair.

Co-authored-by: TheAngryPit <[email protected]>
@openclaw-barnacle openclaw-barnacle Bot removed the app: web-ui App: web-ui label Oct 12, 2026
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. 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 Oct 12, 2026
@RomneyDa
RomneyDa merged commit ca0a172 into openclaw:main Oct 12, 2026
163 checks passed
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 13, 2026
scribe-dandelion-cult added a commit to karmaterminal/openclaw that referenced this pull request Oct 18, 2026
…D1)

Intermediate outcome frames add no state to authorize. The host now accepts
them without re-running the caller's authority or cloning a snapshot; the
liveness checks and grant still run per frame, and the final commit
admission still authorizes the complete postimage before the witness can
commit. Frames carry only their target instead of the full oversized hot
state, removing several full-snapshot clones per command on long sessions.

This deviates from upstream openclaw#169843, which re-authorizes every frame with an
authority projection; the stale-preimage refusal applies there too.

Refs #1475

Co-Authored-By: Claude Opus 5.5 <[email protected]>
scribe-dandelion-cult added a commit to karmaterminal/openclaw that referenced this pull request Oct 19, 2026
A durable session actor whose hot state serializes past the 32 MiB
inline receipt budget must still commit an ordinary patch, and the next
command on the same actor must commit too. On 855242b the patch rolls
back with "SQLite worker commit receipt exceeds the transport limit", the
exact error long room sessions hit on cael after the cut.

Also ports upstream's host-side transfer cases from openclaw#169843
(lost ordinary reply recovers from the transfer witness; an incomplete
transfer never publishes).

Refs #1475

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 7cdd8f2)
scribe-dandelion-cult added a commit to karmaterminal/openclaw that referenced this pull request Oct 19, 2026
…turn (#1475 D1)

Carry openclaw#169843 (ca0a172, "fix: chat turns fail when
session receipts exceed transport limits") onto the composite's actor
shape, plus the transfer collector it depends on from
openclaw#169744 (31a4b92, sqlite-worker-transfer.ts only).

When the committed outcome serializes past SQLITE_WORKER_MAX_MESSAGE_BYTES,
the worker frames it through live transaction admissions and commits only
a small transfer witness. The host accepts the frames, and certifies the
outcome only when the witness names the completed transfer. The receipt cap
is unchanged.

Adaptation to 855242b: admissions carry the full projected hot snapshot
(this base has no projectSessionActorAuthority), and the commit admission
has no inner kernel publication, so authorities receive undefined there as
before. Accepted cost: on oversized sessions every frame repeats the hot
snapshot; upstream later bounded the hot state itself (openclaw#172702, openclaw#174274),
which stays a separate carry.

Refs #1475

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 454e86e)
scribe-dandelion-cult added a commit to karmaterminal/openclaw that referenced this pull request Oct 19, 2026
…omes (#1475 D1)

Carry adaptation for 454e86e on the 19fe879 absorb. The framed
commit admission now carries `publication: turn ?? commitPublication`
inside its outcome envelope, as the inline admission does since upstream
openclaw#168607 and as upstream's own openclaw#169843 (ca0a172) shapes it. The host
already hands `outcome.publication` to the caller's authority, so an
oversized session's turn keeps its commit-stage custody recheck.

No D2 code is involved; upstream openclaw#169064 is untouched.

Refs #1475

Co-Authored-By: Claude Opus 5.5 <[email protected]>
scribe-dandelion-cult added a commit to karmaterminal/openclaw that referenced this pull request Oct 19, 2026
…D1)

Intermediate outcome frames add no state to authorize. The host now accepts
them without re-running the caller's authority or cloning a snapshot; the
liveness checks and grant still run per frame, and the final commit
admission still authorizes the complete postimage before the witness can
commit. Frames carry only their target instead of the full oversized hot
state, removing several full-snapshot clones per command on long sessions.

This deviates from upstream openclaw#169843, which re-authorizes every frame with an
authority projection; the stale-preimage refusal applies there too.

Refs #1475

Co-Authored-By: Claude Opus 5.5 <[email protected]>
(cherry picked from commit 6839f6f)
scribe-dandelion-cult added a commit to karmaterminal/openclaw that referenced this pull request Oct 19, 2026
…d commit (#1475 D1)

Carry adaptation for 6d79105 on the 19fe879 absorb. That commit
restored upstream openclaw#169843's commit-stage revocation case but expected
"SQLite transaction admission was refused", the generic error 855242b
surfaced. Upstream openclaw#168607 (929bfc0, in the absorb) now settles a refused
admission as rolled-back with the admission's recorded failure, which is the
authority's own error. Restore upstream's exact expectation,
"synthetic live authority revocation" (ca0a172's session-actor.test.ts).

The invariant is unchanged and still asserted: the refused commit grant
rolls the transfer back and leaves the entry untouched, framed or inline.
At 06386fa the inline variant already reports this message; at
7bd11d9 both variants failed only on the stale message text.

Refs #1475

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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: 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.

[Bug]: Existing chat turns fail with SQLite worker commit receipt transport limit

4 participants