Skip to content

refactor(sessions): move bundled session mutations to worker-owned SDK operations - #168453

Merged
steipete merged 18 commits into
mainfrom
dbasync/sw7a
Oct 10, 2026
Merged

steipete merged 18 commits into
mainfrom
dbasync/sw7a

Conversation

@steipete

@steipete steipete commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Session SDK methods that return promises can still run SQLite mutations on the Gateway thread, and queued metadata writes can outlive the plugin capability that authorized them.

User Impact

Plugins can prepare entry changes outside SQLite or submit conditional data patches to the owning worker. Bundled callers await these operations, and queued session names, upserts, routes, and Talk updates retain their live authority through commit. Released synchronous and opaque-callback contracts remain compatible and warn once per plugin and capability family on actual legacy use. Their replacements and removal in the next Plugin SDK major are documented.

Process-held incognito compatibility and cross-store entry adapters retain their existing atomic guards pending their separate cutovers. This PR does not claim those routes are worker-only. There is no schema, stored-byte, retention, or update migration. Published-driver × candidate update cell: passed on 808c7b409ec57e201f8cd01f744a3a8c3dbbfba6 (reused after subsequent conflict-only merges). The published 2026.9.9 driver completed the candidate update, verified readiness and the running version, and preserved durable and incognito content. The unchanged cell deadline was used with a prebuilt candidate package.

Why This Change Was Made

The existing SessionManager async methods and versioned extension/provider replay contracts already own durable writes. This change completes their bundled call graph and reuses the entry writer's exact-snapshot compare-and-swap for callback preparation. Preparation runs once outside the transaction; conflicts never replay it, and null suppresses the write. Data patches, public upserts, and ambient transcript watermarks use typed worker reducers. Correlated replies commit the replayable delivery before their optional audit event, so an audit failure cannot undo the reply.

The shared diagnostic owner deduplicates SessionManager and SDK warnings across source imports, bundles, and plugin reloads. Test-only full-transcript replacement and raw append wrappers leave the core exports, and the unused native conversation callback wrapper is removed.

Lander integration evidence

Final head: 2223b22b14ee08b0ee16135be7816f906c3469c2. Main was integrated with merge commits. Small integration fixes and the meeting fixture migration passed focused proof and independent P0/P1 review. The Telegram conflict resolution retained main's reviewed test deletions and passed all 20 login tests (310.92 s Vitest; 343.75 s command). The repaired meeting four-file group passed 49 tests in 32.81 s. The final merge integrated main's cleanup-handoff lint fix 493a499b86e3; its sole conflict was generated worker inventory, which passed regeneration/check and git diff --check. The published-driver update proof above remains valid after these conflict-only updates.

Final-head CI, attempt 1 completed with 114 successful jobs, 20 skipped jobs, six failed root jobs and the downstream gate failure. The requested inherited-failure admin route retains those failures: dreaming restart cleanup, worker placement evidence, Discord ambiguous settlement, Agents API steering variants, the memory cache-pruning test observer deadlock, and private-completion prompt projection. Each has independent main evidence, and the named failing sources are identical between the tested main baseline d1dc0c1c76dd4732bcaebccb3db80e3069917c44 and tested merge 8ddd1472ab83fd4f675ecc029807c209e54124b7. No failed check is claimed as passing. The former lint and chat failures passed on this final head.

The private-completion projection failure also occurs in scheduled main run 38076523822, job 114284759447, at b7940621a3fdd14e9944050d6b5a7189445e073f. The scenario and projection owners are unchanged. Separate Testbox baseline attempts stopped during setup/synchronization and are not used as qualification evidence; that lease was stopped.

The cache-pruning baseline reproduced its 240-second test timeout and 180-second hook timeout; its stuck teardown was then interrupted. The CI shard stopped at its standard 300-second silence watchdog with incomplete coverage. The observer watches worker.run, while main's pruning owner now uses worker.execute; the test holds the writer reservation while waiting for an observation that cannot arrive. No unrelated main repairs or CI reruns were added.

Evidence

The original lane measurements and proof below belong to the coordinator-approved head 8d82a12b28aa02f57a257f12310bc5241e879107. Lander integration proof is recorded separately.

  • Focused runtime proof: 36 Node suites / 608 unique passing tests across Linux Node 24.21.0 and macOS Node 26.11.1; six Bun 1.4.2 suites / 47 passing tests. The two changed worker/compatibility suites were reverified on the final source under Bun (seven tests, 36.69 s).
  • Approved lane changed-check: CI=1 pnpm check:changed --base 7008414e344e77f066f1366e9454a6c090cc64b0 passed in 1,812.81 s on macOS, Node 26.11.1, pnpm 12.7.0. This includes all typechecks, lint, SDK/export and structural guards. Madge passed; all three dead-export scans returned zero entries. Worker inventory passed.
  • SDK compatibility: seven additive exports, no removed exports/entrypoints or direct signature changes against pinned main. Main and candidate have identical inherited removal sets against released v2026.9.9 (1,025 exports / eight entrypoints); there is no candidate-only removal. Released-contract fixtures pass.
  • Migration census: 616 files / 2,414 call expressions inspected, including runtime aliases, provider replay, Promise wrappers, and mutating list defaults. No bundled production patchSessionEntry or updateSessionStoreEntry call remains; retained boundaries are listed below.
  • Known inherited check: Knip's sole unused file, src/infra/sqlite-source-fence-admission.ts, also fails on pinned main and is untouched here.

Statement gate: passed. Three alternating baseline/candidate pairs ran on the same Linux host (8 vCPU, 32 GB), Node 24.21.0 and pnpm 12.7.0. Both exact source trees passed source-mapped qaRuntime builds (baseline build 68.05 s, candidate 64.47 s). All behavior assertions, observer calibrations, SQL conservation checks, and duration comparisons passed. Counts include all threads and unassigned work.

Shared workload phase ALL statements, base → candidate MAIN statements, base → candidate Requests, base → candidate Duration ratio
Boot 2321 → 2321 1933 → 1933 59 → 59 1.012
Connect 1172 → 1284 126 → 126 49 → 50 1.008
First turn 2528 → 2409 100 → 94 360 → 360 0.975
Warmed turn (mean of ten) 1007.8 → 1007.2 6.9 → 6.9 195.8 → 195.5 1.008
Second session 3842 → 3846 104 → 107 658 → 658 0.988
Control plane 431 → 422 33 → 33 75 → 73 0.992
Cron 1149 → 1149 30 → 30 170 → 171 1.006
Compaction 403 → 402 25 → 25 83 → 83 1.003
Shutdown 195 → 195 124 → 129 15 → 14 1.004

Whole-workload medians: 22,120 → 22,092 all-thread statements, 2,545 → 2,552 main-thread statements, and 3,421 → 3,420 requests. First-turn and warmed-turn raw medians both decreased, so the extra-pair RAW TURN INCREASE rule was not triggered. No duration ratio exceeded 1.5.

Positive delta Attribution and gate treatment
Connect: +112 statements Unchanged Memory Host schema/FTS admission and memory publication moved between connect and first turn. All 95 changed normalized SQL/stack groups have unchanged source frames. Boot+connect+first-turn totals are [6016, 6155, 6011] → [6013, 5896, 6109], median 6016 → 6013. The deferred-startup combined-window rule passes. Memory-owner whole-workload median remains 1702 → 1702.
Second session: +4 statements Existing admission/schema/version probes and session readers vary with scheduling; no new query or request loop. Admission/probe median is 1031 → 1034, other work 2815 → 2816. The four groups reaching a changed file use the unchanged appendTranscriptMessageSnapshotSync body. The +4 total is within the non-turn tolerance.
Shutdown: +5 MAIN, flat ALL Existing integrity clean-close work moves from worker to main: the same five statements disappear from the worker count. This is not a claim of universal main-thread elimination.

Three alternating affected-operation pairs passed (ten operations per phase per run). Every measured operation has equal or fewer all-thread statements, and the candidate performs no main-thread SQLite in these measured phases. Transcript preparation/duplicate/suppression add one worker request per operation; this is an explicit transport cost of the prepared worker contract. The largest median duration ratio is 1.223, below the 1.5 comparison limit.

Operation ALL statements/op, base → candidate MAIN statements/op, base → candidate Requests/op, base → candidate Duration ratio
Entry upsert 15.7 → 13.7 0 → 0 2.6 → 1.6 0.813
Ambient watermark 13.9 → 11.9 0 → 0 2 → 1 0.579
Entry preparation 13 → 13 0 → 0 2 → 2 0.966
Transcript preparation 41.3 → 37.3 29.3 → 0 2 → 3 1.223
Transcript duplicate 19.4 → 14.4 11 → 0 2 → 3 1.167
Transcript suppression 17 → 13 9 → 0 2 → 3 0.973

Pinned main: 7008414e344e77f066f1366e9454a6c090cc64b0. Candidate: 8d82a12b28aa02f57a257f12310bc5241e879107. Both trees were verified before and after measurement; the candidate tree is d703ccbc89186d6aef84b58d92296218be5f4928.

Independent review is clean after the cutover, integration, lifecycle correction, and validation repairs. The shared warning helper was reviewed and pushed separately as the first commit, e2af0450fc64e573ab9b74789711e4882c3eb63e. Main was integrated once to resolve the session-ownership extraction conflict.

Diff against pinned main: production/tooling +906/−625 (1,531 changed lines), tests/support +1,406/−864, docs/generated +179/−46. The broad test file count comes from moving fixture-only transcript helpers out of production exports. Command wall times below are measured locally/remotely, not CI estimates.

Publication status: final integration is published at 2223b22b14ee08b0ee16135be7816f906c3469c2. Original SQL measurements remain bound to the approved lane head; final integration and CI disposition are recorded above.

Transport costs and native diagnostics

The component transcript preparation/duplicate/suppression paths each add one request, seven admission messages, and five authority envelopes per operation. Upsert and watermark each remove one request, one admission message, and two authority envelopes. Entry preparation is unchanged. Startup traffic in the standalone source fixture includes unclassified transport messages; its raw whole-fixture census is not presented as database-only traffic. The shared built-runtime census remains unfiltered.

Shared-workload envelope medians:

Phase send send-frame reply-frame complete worker-request admission-request authority-envelope
01.boot 59 → 59 0 → 0 0 → 0 56 → 56 0 → 0 14 → 14 27 → 27
01.connect 49 → 50 6 → 6 6 → 6 48 → 49 0 → 0 39 → 40 30 → 32
02.first-turn 360 → 360 23 → 23 21 → 21 364 → 364 2 → 2 324 → 323 347 → 347
04.second-session 658 → 658 28 → 28 27 → 27 658 → 658 1 → 1 610 → 610 563 → 561
05.control-plane 75 → 73 0 → 0 0 → 0 75 → 73 0 → 0 86 → 86 116 → 114
06.cron 170 → 171 9 → 9 9 → 9 170 → 171 0 → 0 174 → 174 165 → 167
07.compaction 83 → 83 11 → 11 9 → 9 83 → 83 2 → 2 30 → 30 39 → 39
08.shutdown 15 → 14 0 → 0 0 → 0 15 → 14 0 → 0 2 → 2 6 → 6
03.warmed-mean 195.8 → 195.5 9 → 9 9 → 9 195.8 → 195.5 0 → 0 172.1 → 172.1 155.3 → 155.3
startup-to-shutdown 3421 → 3420 167 → 167 162 → 162 3421 → 3420 5 → 5 3000 → 3000 2847 → 2846

All six shared runs recorded the same existing startup plugin lease-release BEGIN IMMEDIATE busy refusal. Baseline run one additionally recorded two admission busy refusals and one shutdown audit-pruning busy refusal. All runs completed their behavior assertions; no new failure signature appeared. The component fixtures recorded no native failures.

Native BEGIN elapsed upper-bound medians were 61.14 → 37.01 ms (1,746 → 1,743 calls); COMMIT 114.33 → 121.63 ms (1,716 calls each). These values include execution and scheduling, so they are not isolated lock-wait times; implicit/batch transaction timing and native open/close timing are outside this diagnostic.

Runtime proof, regression controls, and command costs

The initial Linux proof passed 30 suites / 556 unique tests after the worker fixture was routed through the existing forked-process worker suite. Grouped command wall times were 209.47 s (stopped at the subsequently repaired fixture) and 145.70 s. Bun passed 47 tests in 64.04 s. Final fixture repairs also passed the three Memory Host suites (16 tests, 112.95 s), worker/compatibility suites (seven tests, 90.31 s), and plugin-ownership suite (nine tests, 27.47 s) on macOS. Repeated tests are counted once in the aggregate.

The rename and plugin-retirement regressions fail against their original owners. The first candidate run exposed a same-ID reset during reply capture's initial worker read; binding that read to the existing identity publisher fixed the failure without adding SQLite statements or a state owner. All 23 capture tests pass. Explicit barriers prove the worker patch's concurrent-write and revocation cases. The final full changed-check also caught stale generated allowances, test imports/types, and mechanical lint errors; the repaired final head passes.

Each single-file command below used pnpm test <file> --maxWorkers=1. Command wall time includes transformation and worker preparation.

File Passing tests Command wall time
src/plugin-sdk/session-store-runtime.worker-patch.test.ts 4 37.86 s
src/agents/embedded-agent-runner/run.overflow-context-recovery.test.ts 18 133.56 s (82.87 s cold worker preparation)
src/agents/embedded-agent-runner/run.timeout-context-recovery.test.ts 8 26.59 s
src/agents/embedded-agent-runner/run.overflow-compaction.test.ts 10 25.43 s

Completed proof is reused where inputs are unchanged. Later production differences are required braces, a type-only import reorder, and removal of an unreferenced internal type alias; the final build and SQL proof use the exact candidate.

Migration coverage and retained boundaries
Surface Result
SessionManager and extension actions Bundled actions use async persistence and bindCoreAsync; synchronous methods remain released compatibility adapters. Queued rename retains the original authority for persistent and detached sessions.
Provider replay Bundled replay uses async hooks and the versioned state contract; the released sync hook adapter retains exact return timing.
Session store and runtime aliases Active Memory, Codex, Slack, Telegram, Voice Call, and Talk use preparation or data-only operations. Agent/channel runtime adapters retain plugin lifetime and ownership.
Mutating list admission Bundled runtime lists use readOnly: true or the awaited reader. Remaining bundled writable-default calls are Doctor contracts; the released external default remains explicit compatibility. Gateway/TUI BTW callers supply complete targets and bypass the dormant core marker fallback.
Transcript runtime Existing awaited append/preparation/lock replacements are reused. Reply audit append uses the worker with session-generation fencing and the actual inserted result.
Removed core-only surfaces replaceTranscriptEvents, replaceTranscriptEventsSync, and appendTranscriptEventSync move to test support; runConversationDatabaseWrite is deleted. No released SDK export is removed.
Native entry/lifecycle kernels Retained behind worker transactions, offline Doctor/import/migration, or named released/incognito adapters. Incognito actor targets reject unsupported cross-actor source predicates. Entry, membership, identity, and transcript publication owners remain unchanged.
Native transcript kernels Snapshot append, suffix/rewrite, branch, correction, and transaction primitives remain only where worker kernels or explicit compatibility/process-held adapters need them.

Keep released callback and synchronous contracts with explicit deprecations. Move bundled entry callers, upserts, watermarks, and reply audit writes to prepared worker operations; retain plugin and session authority through commit. Preserve native cross-store and incognito guards pending their separate cutovers.
Move test-only transcript replacement and append fixtures out of core exports, remove the unused native conversation callback wrapper, and migrate Talk session creation to guarded worker preparation. Keep released SDK contracts and named native worker, offline, cross-store, and incognito adapters.
Resolve the registry conflict in the extracted ownership module while preserving prepared patch, upsert, and route lifetime guards. Pin proof baseline to 7008414.
Observe the existing session identity publisher during initial metadata preparation so a same-ID reset cannot authorize capture against a successor lifecycle. Preserve worker transaction fencing and released SDK shapes.

Move scoped channel wrappers, patch authority, and test fixtures into their existing responsibility boundaries to satisfy import-cycle and line-cap gates. The unchanged reply capture regression fails before this repair; all 23 cases pass afterward.
@clawsweeper

clawsweeper Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation channel: slack Channel integration: slack channel: telegram Channel integration: telegram channel: voice-call Channel integration: voice-call gateway Gateway runtime scripts Repository scripts commands Command implementations agents Agent runtime and tooling extensions: codex plugin: file-transfer extensions: active-memory size: XL labels Oct 10, 2026
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. 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 10, 2026
@clawsweeper

clawsweeper Bot commented Oct 10, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge.

What this changes

This PR moves bundled session mutations through worker-backed SDK operations while preserving released compatibility adapters.

Example: A plugin renames session agent:main:managed to Research.

  • Before: A promise-returning mutation can still perform SQLite work on the Gateway thread.
  • After: Preparation runs outside SQLite, and the owning worker conditionally commits Research with the applicable authority checks.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The implementation follows existing owners and preserves compatibility, but final-effect authority validation limits readiness.
Proof confidence 🦐 gold shrimp (3/6) Real behavior proof is necessary before merge. See Before merge.
Patch quality 🦐 gold shrimp (3/6) Security review found an item that needs attention.

Product

Kind: Refactor · Worth it: Yes · Fix scope: Complete
User problem: Session persistence can occupy the Gateway thread, and queued mutations can outlive the plugin capability that authorized them.
Reason: Maintainer direction and merged feature history support consolidating persistence through existing worker owners while retaining shipped contracts.

Merge readiness

⛔ Blocked before merge - 4 items remain

Keep this useful maintainer-directed PR open; no discrete introduced bug was established, and the earlier conflict blocker is resolved.

Priority: P2
Reviewed head: 2223b22b14ee08b0ee16135be7816f906c3469c2

Before merge

  • Add real behavior proof - Authority-chain proof required: supplied built-runtime measurements support the worker migration, but add redacted logs or terminal output showing allowed patches, upserts, and routes committing through the actual scoped runtime and SQLite writer while foreign or retired plugins leave storage unchanged, including retirement after preparation before commit; redact credentials, IPs, phone numbers, and non-public endpoints. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • Resolve security concern: Verify managed authority through the final storage effect - The retirement cases replace persistence methods, while real-worker cases supply host authority directly; their production composition has not demonstrated rejection before SQLite commit.
  • Resolve merge risk - Queued mutations carry managed-plugin authority across preparation and worker admission; rejection of foreign or retired plugins at the final storage effect remains unproven.
  • Complete next step - Have the landing owner classify failures in the exact-head CI run against its tested base before applying an inherited-failure exception.

Findings

  • [medium] Verify managed authority through the final storage effect — src/plugins/registry.runtime-session-ownership.test.ts:49

Tests

  • Missing end-to-end proof: Show allowed, foreign-owner, and post-preparation retirement cases through the real scoped plugin runtime and SQLite writer, with final persisted-state observations.
Agent review details

How this fits together

Plugin and channel callers submit session changes through the SDK; database workers commit SQLite state and publish committed facts to runtime consumers.

flowchart LR
A[Bundled callers] --> B[Scoped plugin runtime]
B --> C[Session SDK]
C --> D[Preparation and authority]
D --> E[Database worker]
E --> F[SQLite session state]
E --> G[Committed facts]
Loading

Technical review

Best possible solution:

Complete the existing worker-owner cutover while preserving released adapters and demonstrating final-effect plugin authority.

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

Current-main source retains native callback compatibility paths that can perform caller-thread SQLite work; this read-only review ran no reproduction.

Is this the best way to solve the issue?

Reusing the existing worker, exact-snapshot commit, and publication owners is appropriate, with explicitly retained compatibility boundaries.

AGENTS.md: found and applied where relevant.

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

Merge-risk options

Maintainer options:

  1. Hold for final-effect authority evidence (recommended)
    Demonstrate allowed commits and forbidden-plugin rejection through the scoped runtime and actual SQLite writer, including retirement after preparation.

Provenance checked

  • Plugin runtime ownership keeps the original intent (7008414: Consolidate ownership and runtime facades while preserving lazy loading, supplied-runtime forwarding, and revocation.)
  • Worker entry mutations keeps the original intent (ad3c930: Move entry operations into the existing worker while retaining current authority, FIFO ordering, and released callback visibility.)
  • Persistence diagnostics changes intended behavior with a stated reason (82a4cfb: Add awaited persistence with synchronous compatibility and per-method warnings; this PR explicitly replaces those warning budgets with shared per-plugin capability-family budgets.)
  • Ambient transcript watermarks keeps the original intent (3ad465d: Track durable ambient transcript progress; the moved reducer retains monotonic advancement and session-identity checks.)

Testing

Proof path: in-process harness.

Security

Needs attention: Live-authority guards are present, but their complete managed-plugin composition lacks final-effect proof.

Evidence

Security concerns:

  • [medium] Verify managed authority through the final storage effect — src/plugins/registry.runtime-session-ownership.test.ts:49
    The retirement cases replace persistence methods, while real-worker cases supply host authority directly; their production composition has not demonstrated rejection before SQLite commit.
    Confidence: 0.98

What I checked:

Likely related people:

  • Ayaan Zaidi: Raw commit 3ad465d adds src/config/sessions/ambient-transcript-watermark.ts:11 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: 3ad465d32b3b; files: src/config/sessions/ambient-transcript-watermark.ts)

PR surface

PR surface statistics unavailable: the file list is incomplete.

Review metrics

Metric Value Why it matters
Public SDK additions 3 operations and 4 types Prepared patches, conditional patches, and authority-bound routes extend the existing session-store SDK without adding configuration.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This improves persistence placement and lifecycle correctness without evidence of an urgent user-facing outage.
  • merge-risk: 🚨 compatibility: Public SDK operations and deprecation diagnostics change, while released adapters and their documented compatibility window remain.
  • merge-risk: 🚨 security-boundary: Managed-plugin ownership and lifetime must remain authoritative through the final SQLite commit.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦐 gold shrimp.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Demonstrate allowed commits and rejection of foreign or retired plugins through the complete scoped runtime and SQLite writer.

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 need explicit maintainer commands such as @clawsweeper autofix or @clawsweeper automerge.

History

Review history (9 earlier review cycles; latest 8 shown)
  • reviewed 2026-10-10T14:24:54.752Z sha 1e043d4 :: needs real behavior proof before merge. :: none
  • reviewed 2026-10-10T14:55:12.925Z sha 46bb148 :: needs real behavior proof before merge. :: [P1] Remove the unused copy of session creation | [P2] Update the deprecated-export assertion for the new public types | [P2] Keep the ownership adapter within the enforced lint limit
  • reviewed 2026-10-10T15:28:49.352Z sha f2394b5 :: needs real behavior proof before merge. :: [P2] Keep the ownership adapter within the enforced lint limit
  • reviewed 2026-10-10T15:55:38.452Z sha ef86312 :: needs real behavior proof before merge. :: [P2] Keep the ownership adapter within the enforced lint limit
  • reviewed 2026-10-10T16:16:31.427Z sha a6f2a77 :: needs real behavior proof before merge. :: [P2] Keep the ownership adapter within the enforced lint limit
  • reviewed 2026-10-10T17:12:07.911Z sha 808c7b4 :: needs real behavior proof before merge. :: [P2] Keep the ownership adapter within the enforced lint limit
  • reviewed 2026-10-10T17:28:44.255Z sha d6e1351 :: needs real behavior proof before merge. :: [P2] Keep the ownership adapter within the enforced lint limit
  • reviewed 2026-10-10T17:57:08.841Z sha d6e1351 :: needs real behavior proof before merge. :: none

Reviewed October 10, 2026, 2:17 PM ET / 18:17 UTC (Revision 10).

Merge current main into the worker-owned session SDK cutover, preserving incognito read authority, runtime facades, and transcript coverage.
@clawsweeper clawsweeper Bot added rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Oct 10, 2026
Keep the extracted session-create owner, preserve released SDK callback forwarding in the boundary guard, and make the export-budget fixture independent of the current deprecated count. Fix the worker-access heading hierarchy.
@clawsweeper clawsweeper Bot added rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. and removed rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. labels Oct 10, 2026
…ync/sw7a

# Conflicts:
#	docs/plugins/sdk-entrypoints.md
#	scripts/plugin-sdk-surface-report.mts
…sw7a

# Conflicts:
#	src/auto-reply/reply/agent-runner-memory.test.ts
Resolve Telegram test conflicts by retaining main’s reviewed test removals while preserving the prepared session-patch migration.
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. labels Oct 10, 2026
# Conflicts:
#	docs/reference/database-schemas/worker-access-inventory.md
@steipete
steipete merged commit 7924f12 into main Oct 10, 2026
197 of 205 checks passed
@steipete
steipete deleted the dbasync/sw7a branch October 10, 2026 18:53
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via explicitly authorized admin squash with attributed pre-existing CI failures.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 11, 2026
…K operations (openclaw#168453)

* refactor(plugin-sdk): share legacy persistence warning budgets

* refactor(plugin-sdk): prepare session mutations in owning workers

Keep released callback and synchronous contracts with explicit deprecations. Move bundled entry callers, upserts, watermarks, and reply audit writes to prepared worker operations; retain plugin and session authority through commit. Preserve native cross-store and incognito guards pending their separate cutovers.

* refactor(sessions): remove retired native transcript exports

Move test-only transcript replacement and append fixtures out of core exports, remove the unused native conversation callback wrapper, and migrate Talk session creation to guarded worker preparation. Keep released SDK contracts and named native worker, offline, cross-store, and incognito adapters.

* fix(sessions): retain reply identity through worker reads

Observe the existing session identity publisher during initial metadata preparation so a same-ID reset cannot authorize capture against a successor lifecycle. Preserve worker transaction fencing and released SDK shapes.

Move scoped channel wrappers, patch authority, and test fixtures into their existing responsibility boundaries to satisfy import-cycle and line-cap gates. The unchanged reply capture regression fails before this repair; all 23 cases pass afterward.

* test(sessions): exercise SDK patches through worker boundary

* chore(sessions): prune retired SDK assertion allowance

* test(sessions): align prepared source fixtures and SDK budgets

* chore(tests): prune retired session cleanup mock allowance

* test(sessions): complete migrated fixture and lint validation

* fix(sessions): reconcile SDK runtime integration gates

Keep the extracted session-create owner, preserve released SDK callback forwarding in the boundary guard, and make the export-budget fixture independent of the current deprecated count. Fix the worker-access heading hierarchy.

* test(meeting): migrate shutdown fixture to prepared session patches
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling channel: slack Channel integration: slack channel: telegram Channel integration: telegram channel: voice-call Channel integration: voice-call commands Command implementations docs Improvements or additions to documentation extensions: active-memory extensions: codex gateway Gateway runtime merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. plugin: file-transfer rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. scripts Repository scripts size: XL status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant