Skip to content

refactor(sessions): run fork transactions in the agent executor (compound 3a) - #164891

Merged
steipete merged 3 commits into
mainfrom
dbasync/compound3
Oct 4, 2026
Merged

steipete merged 3 commits into
mainfrom
dbasync/compound3

Conversation

@steipete

@steipete steipete commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Parent transcript/child-entry forks and message-cut forks still ran their compound SQLite work on the caller thread. Cold target discovery also retained host SQL, and repository-backed forks reloaded the source session inside worker admission grants.

Why This Change Was Made

Run fork preparation and commits in the canonical agent executor through its existing connection-bound database.domain.publish envelope. Capture both physical stores before discovery yields, retain their owners, and reuse the synchronous transaction kernels and acknowledged-publication owner. Same-store forks remain atomic; cross-store forks retain the existing source-snapshot/target-commit behavior.

Bundled fork/skip patches are typed data. Repository forks compare the captured source workspace against the transaction's fresh row, while host grants check published repository facts. Shared-store forks keep the logical agent separate from the physical owner. Cleanup failures cannot turn an acknowledged fork into an apparent failed write.

Builds on #163889, #163930, #164391, #164753, and #164197. Architectural overlap with @clawSean's #158030: reuse the executor direction while keeping the existing fork entry points; this PR does not add its fork command feature. Incidental overlap with #162433 remains limited to the touched owner paths.

User Impact

No user-visible contract change. Fork persistence moves off the Gateway caller thread while preserving source history and child-session behavior.

  • Production: +1,200 / -245 / net +955; 1,445 changed lines, 14 runtime production files; 23 files overall. Landing repairs add one tooling inventory entry and remove 12 net test lines.
  • Caller-thread SQL for cold same-store and cross-store parent forks: 37 -> 0. Repository-fork agent grants: 10 source-row SQL observations -> 0.
  • Static T1: 907 -> 907 against 06d4475d6079aaa875a9b477ac0935d1459b1023. Shared native kernels remain counted for their retained contracts; the new bound transaction adapter is worker-owned.
  • Released opaque callback transaction visibility and process-held incognito ownership remain intact. Source native context survives forks; rewind veto, conditional compensation, successor preservation, and unknown-outcome blocking remain with the existing owner.
  • No schema, persistence format, retention, durability, configuration, environment-name, or update migration. Lifecycle callbacks, exact-row rewrites, and deletion/reclamation are preserved for compound 3b.

Codex behavior was checked in sibling ../codex at ade0ccacf9182e665cf784de041c51a79e35bc31, codex-rs/app-server/src/request_processors/thread_processor.rs:1011: unsubscribe is connection-specific and distinguishes not-loaded/not-subscribed outcomes. Fork does not retire that source context.

Preexisting other-owner read debt is retained: src/gateway/server-methods/sessions-rewind.ts:547 reads the agent source during shared-state repository preparation; :610 reads the target during repository cleanup. The legacy/unprepared operator-role fallback at src/gateway/operator-role-policy.ts:48 reads the shared profile owner. Prepared repository/profile authority checks consume published facts. Boundary assertions cover the moved operations, not those other-owner reads.

Evidence

All local Vitest commands use --maxWorkers=1; this host is heavily loaded. CI seconds are not yet measured.

Proof Result Local wall time
Parent forks, typed patches, all fork storage classes, metadata race, real server CLOSE-PRELUDE 11 passed / 4 files 561.17 s
Existing domain owner plus all required runtime-process/import-closure checks 73 passed / 7 files 673.49 s
Final close order, native source preservation, veto/rollback, successor compensation, worker-loss blocking and delayed/lost receipts 17 passed / 3 files 414.61 s
Error-class identity at the bundled parent-fork entry point passed; focused lint and messaging types passed 40.99 s
node scripts/check-changed.mjs --base 06d4475d6079aaa875a9b477ac0935d1459b1023 passed 1,607.37 s
Madge 0 cycles —
Database worker ratchet against the pinned merge base passed; no T1 growth —
Full build (OUTPUT_SOURCE_MAPS=1 pnpm build) passed 2,326.85 s
Synthetic sqlmeasure Gateway workload, including a real sessions.fork with exact prefix/source checks all seven checks passed; 41 successful RPCs; clean shutdown 73.15 s
Fresh isolated Codex review through P2, private temporary directory, pinned merge base scoped-clean on final source 256.05 s

The synthetic Gateway workload verified the exact 20-message fork prefix, unchanged source, successful subagent completion, mentions, cron, compaction, and exit code 0. Its broader fork phase (including source/child history validation) recorded 25 caller-thread statements and 600 worker-thread statements, with no fork SQL errors. Existing admission/lookup reads outside the moved transaction remain; the targeted boundary tests establish 37 -> 0 for the moved same-store and cross-store paths. This is correctness and SQL-location evidence, not a matched-baseline latency claim.

Harness caveat: two transient audit-prune lock attempts recovered during shutdown; the subsequent audit DELETE/COMMIT succeeded. The activity-summary notification abort is independently reproduced on unchanged main f8f1c8af73a7b874db7c2693345e41a8a6033713 and this PR head through the same real synthetic Gateway workload (41 successful RPCs, exact fork prefix, unchanged source, successful compaction, clean shutdown). Passive abort stacks identify direct-compaction.ts:76: compaction closes its ambient work scope while the asynchronous activity-summary publisher is still preparing rows. The warning precedes the compact response and Gateway shutdown, so this is not CLOSE-PRELUDE or an accepted fork write loss. All nine relevant compaction/publisher/scheduler/scope owners are byte-identical on the PR, merge base, and main. On main, no current recap push arrived during 111.5 seconds of observation; the normal scheduled refresh also aborted its push when the scheduler scope drained. A read-only query after shutdown confirmed a fresh persisted recap covering 22/22 messages at the current transcript generation and max sequence 36. This is an inherited notification-publication gap; redelivery is not claimed. Follow-up belongs to the activity-summary publication owner, which currently inherits the triggering task cancellation scope despite Gateway-owned Promise tracking.

The full check-changed run preceded the final test-only error-class assertion; that assertion passed its focused test, lint, and messaging typecheck. Production source remained unchanged.

The three shared-store/cleanup regressions failed for their intended reasons before repair and passed afterward. The repository grant regression caught ten same-owner row reads before repair; its workspace race confirms refusal and prepared-child cleanup.

Released SDK surface rechecked against latest local release v2026.9.8 (fc23bc864e4553c2d215e479eeec47b67a0bf943): the changed bundled forkSessionEntryFromParent callback shape is internal-only (no SDK/runtime export); the public accessor callback contract and result unions remain unchanged. No released signature removal or sync/async change requires a compatibility record. Local native SDK comparison: no entrypoint/exported-signature/add/remove changes. Complete public executable command maps, execution scope, message-cut inputs, registered commit signature, and existing result unions are byte-identical to the base. The 127 reachable-only changes are internal helpers/types; acknowledgement digest 45c0e757. Baseline render: 756.54 s; candidate render: 1,161.58 s. Subsequent edits only strengthen test observation; production declaration inputs are unchanged.

Focused test commands and wall times
# 561.17 s: parent fork, storage-class and close boundaries
pnpm test src/config/sessions/session-accessor.parent-fork.test.ts src/config/sessions/session-accessor.parent-fork-worker.test.ts src/gateway/server-methods/sessions-rewind.storage.test.ts src/gateway/server-close.session-rewind.test.ts --maxWorkers=1 -t 'forks the active branch without caller-thread SQL|commits bundled|fork preparation|persists an accepted fork'

# 673.49 s: publication owner and mandatory shared-registry/import closure checks
pnpm test src/state/openclaw-agent-worker-store.test.ts test/scripts/runtime-process-build-graph.test.ts test/scripts/eager-import-closure.test.ts src/auto-reply/reply/get-reply.imports.test.ts src/config/sessions/session-history-read.imports.test.ts src/config/sessions/session-transcript-reconcile.imports.test.ts src/state/openclaw-state.worker.imports.test.ts --maxWorkers=1

# 414.61 s: final close and native settlement
pnpm test src/gateway/server-close.session-rewind.test.ts src/config/sessions/session-native-binding.message-cut.test.ts src/config/sessions/session-accessor.sqlite-message-cut-native.test.ts --maxWorkers=1

# 40.99 s: real bundled entry point preserves the worker error constructor
pnpm test src/auto-reply/reply/session-fork.test.ts --maxWorkers=1 -t 'newer locked parent alias'

Landing investigation and correction

The first CI attempt (37199330010) failed the two fork authority cases in sessions-rewind.storage.test.ts. Five full-file merge-base runs passed all 29 original tests. Five local PR-head reproductions (one complete file run and four focused single-file runs, each --maxWorkers=1) confirmed the same obsolete fixture assumption: forks were still revoked through the native writer queue even though their transaction now runs in the worker. The correction uses the existing worker commit-admission interception for fork, rewind, and branch switch, preserving the exact denied error and unchanged persisted state assertions. node scripts/run-vitest.mjs src/gateway/server-methods/sessions-rewind.storage.test.ts --maxWorkers=1 now passes all 30 tests (144.52 seconds runner wall time). The initial CI shard spent 87.45 seconds across 23 files; the corrected head's CI timing will be recorded after completion. The scoped changed-check pipeline also passed, including Gateway test types, lint, formatting, and repository guards. Production source is unchanged by this correction. A fresh isolated P2 autoreview of the correction is scoped-clean; the original full production review remains valid.

The same attempt also failed run.plugin-runtime-refresh.integration.test.ts (workspace consumer assertion during warmup) and run.session-permissions.test.ts (Agent admission requires its host owner). Both failures independently reproduce on plain main ee535071298162d378fafa53f696ad1fb36b3263, in the original three-file shard order (110.83 seconds) and individually. Main's e95e11c679301368a2f30f09e13647597c65f730 moved run admission to readSessionEntryInWorker, while those fixtures remain in the thread pool rather than the existing host-owned database-worker fixture. The unchanged host-owner check fails before worker command dispatch or fork execution; the workspace assertion masks that earlier warmup exception. All 17 causal source inputs are identical between CI's main parent and tested merge. Both failing embedded files also pass five standalone runs each on the raw PR and five each on the merge base; their original selected shard passes 62/62 on both. These inherited failures use the explicitly authorized native admin evidence route if they remain on the corrected head.

The corrected head's CI attempt (37200787188) found the new session-fork-domain.worker.ts missing from the existing exact-module inventory for the loader-required bindSqliteWorkerBackend export. The follow-up registers this module under the unchanged protocol rule; unknown modules and other duplicate names remain rejected. The full scanner reproduced the one collision, and five focused canonical guard evaluations over every reported module found one collision on the PR versus none on its merge base. The corrected full scanner passes; its 54 existing tests pass in 10.04 seconds, with formatting, lint, line-growth guards, and a fresh P2 review also passing. Runtime code and public SDK declarations remain unchanged.

That attempt also exposed two sessions.dispatch.demand.test.ts failures (spreads later Auto work while a completed dispatch awaits physical slot publication and does not reserve capacity for a retained placement after admission is released). Both independently reproduce on plain main b2b434acbc624ed0c212fa2941dc9ac1fa5f1731: the fixture's getMany-only placement service lacks prepareRuntimeRefresh, required by main's placement-reader change. The first explicit send is refused before dispatch or fork execution. This second inherited fixture regression is also covered by the authorized admin route if still present.

The PR context check initially rejected the old Problem heading; changing it to the current template heading repaired the metadata check (workflow 37200915454 passed).

Final-head CI 37201627004, attempt 1, tested edbdc8b0fbc4806ee6bc874bdc5b37cf77ff4f87 in merge checkout e21d765f9552c71d302ee4658751cae6ffef39fd with main parent d9f36acbe3b6c8a29ddeffe1e89ebe2b6992d085: 93 jobs passed, 20 skipped, five root jobs failed, and the aggregate failed; no jobs were cancelled. The repaired fork authority fixture and worker-protocol inventory checks passed. This run is not represented as green.

Four root jobs are independently inherited. In addition to the two warmup suites and two placement-demand cases above, run.prepared-harness-credentials.test.ts (three cases), run.recovery-deadline.test.ts (warmup), run.terminal-timeout-delivery.integration.test.ts (warmup), and run.inherited-auth-owner.test.ts (one case) hit the same main-only host-admission routing defect. Every additional failure reproduces on the exact CI main parent in the observed shard order. Each of those four files also passed five standalone runs on the raw PR and five on its merge base (40 invocations, 100 test executions total, all --maxWorkers=1). Scheduled main CI 37200643847 independently records the same six embedded-file failures in jobs 111431627089, 111431627124, and 111431627123. The 30 combined causal source paths for all four root jobs are byte-identical between the tested merge and its main parent. The native exception retains those failed results and their independently inspected evidence.

The UI root (worker-initial-setup.real-gateway.e2e.test.ts, job 111434536638) remains unattributed after the required investigation. CI expected two launches but observed one after the tool run reported Session setup-proof-session placement authority changed. Five standalone raw-PR runs and five merge-base runs all passed with --maxWorkers=1; five additional Linux replays of the exact main source tree also passed. The latter used a repository-owned Blacksmith Testbox (run 37204694865), verified source tree ecac9702d1a8327422392250bef6e2d0e96dd87b from main d9f36ac, built normally, completed the command with exit 0 in 394.29 seconds, and stopped its lease. Exact-parent main also passed the target standalone and in the original 14-file shard on macOS; that shard had a separate chat-stop failure, recorded independently.

The unchanged placement observer can be invalidated by an overlapping turn's ACK/result publication. Main #164744 introduced asynchronous placement preparation before turn execution; CI logged the tool's rejection about 84 ms after one fixture launch reached its transcript append. However, the log lacks the throwing preparation callsite, publication kind, and launched run ID, so that interleaving is a hypothesis. The shared agent-publication helper remains reachable but submits the same command synchronously without adding an asynchronous boundary, and the scenario does not request a fork. No applicable main fix was found through 82adb7a. Neither inheritance nor a PR-caused defect is claimed for this root. Under the operator's explicit unresolved-failure policy, exactly one rerun of this UI job was submitted on unchanged source after the bounded comparisons. It passed as job 111445612309 in attempt 2 (604 seconds job wall time). This is not a code fix; the original failure and uncertainty remain recorded. Final attempt 2 has 94 successful jobs, 20 skips, four inherited Node roots, and the failed aggregate, with no cancellations. GitHub carried forward the four Node results into new job IDs; their names, conclusions, original start/completion times, and complete steps exactly match attempt 1. Native admin admission binds those copied results to the original inspected logs and independent main reproductions. The exact-head ClawSweeper review completed with no findings or security concerns.

@clawsweeper

clawsweeper Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

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

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation gateway Gateway runtime size: XL labels Oct 4, 2026
@steipete

steipete commented Oct 4, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Oct 4, 2026
@clawsweeper

clawsweeper Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 4, 2026, 9:43 AM ET / 13:43 UTC (Revision 7).

ClawSweeper review

What this changes

Moves session-history forks and child-session updates into the existing agent database worker while preserving storage, callback, and source-session behavior.

Merge readiness

✅ Ready for maintainer review

This refactor remains useful: pinned main still executes parent-fork transactions on the caller thread. No introduced correctness or security defect was found; the recorded CI failures remain subject to native landing gates.

Priority: P2
Reviewed head: edbdc8b0fbc4806ee6bc874bdc5b37cf77ff4f87

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A coherent internal cutover with meaningful runtime and boundary proof; no actionable patch defect was identified.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (live_output): The recorded isolated Gateway sessions.fork run exercises the changed worker-backed persistence path and observes an exact child-history prefix with the source unchanged. Production-boundary regressions supplement it with commit revocation, repository reassignment, cleanup failures, and shutdown settlement. No stored-data format or schema contract changes were found.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The recorded isolated Gateway sessions.fork run exercises the changed worker-backed persistence path and observes an exact child-history prefix with the source unchanged. Production-boundary regressions supplement it with commit revocation, repository reassignment, cleanup failures, and shutdown settlement. No stored-data format or schema contract changes were found.
Evidence reviewed 8 items Pinned introduction reviewed: Reviewed the complete merge-base-to-head introduced diff, including runtime modules, tests, documentation, and protocol inventory. The recorded original head has parent f0101b9; the stale test merge was not used to infer removal of current-main behavior.
Current main still needs the cutover: Pinned main runs same-store parent forks through runExclusiveSqliteSessionWrite and runOpenClawAgentWriteTransaction on the caller path. The merged rewind/reset predecessors do not implement this parent-fork migration.
Existing transaction and publication owners retained: The worker invokes the existing fork kernels, preserves logical versus physical agent identity, and transfers the candidate through the existing commit-receipt publication owner. Same-store operations remain transactional; cross-store operations retain source-snapshot/target-commit semantics.
Findings None None.
Security None None.

How this fits together

Session forks copy existing conversation history into a child session. Gateway, reply, and voice callers feed the session storage owner, which commits the copied history and publishes the child’s identity.

flowchart TD
  A[Gateway and agent callers] --> B[Capture source and target stores]
  B --> C[Prepare fork history]
  C --> D[Agent database worker]
  D --> E[Check current authority and rows]
  E --> F[Commit child history]
  F --> G[Publish acknowledged session identity]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +955, Tests +275, Docs +10, Other +1. Total +1241 across 23 files.

View PR surface stats
Area Files Added Removed Net
Source 14 1200 245 +955
Tests 7 471 196 +275
Docs 1 12 2 +10
Config 0 0 0 0
Generated 0 0 0 0
Other 1 1 0 +1
Total 23 1684 443 +1241

Review metrics

Metric Value Why it matters
Production and test growth production +1200/-245; tests +471/-196 Production growth implements captured-store preparation and worker transaction adapters while reusing existing kernels and publication.

Technical review

Best possible solution:

Keep fork persistence under the canonical agent executor, with live commit guards, acknowledged publication, and the existing native compatibility paths.

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

Not applicable as a behavioral bug report; source inspection establishes the existing caller-thread fork transactions, and supplied runtime observations exercise their worker replacement.

Is this the best way to solve the issue?

Yes. Reusing the canonical executor, synchronous kernels, and receipt owner preserves one storage responsibility without introducing another writer or changing the released callback contract.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This bounded internal storage refactor removes caller-thread SQL without adding a user-facing capability or establishing an urgent regression.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The recorded isolated Gateway sessions.fork run exercises the changed worker-backed persistence path and observes an exact child-history prefix with the source unchanged. Production-boundary regressions supplement it with commit revocation, repository reassignment, cleanup failures, and shutdown settlement. No stored-data format or schema contract changes were found.
  • proof: sufficient: Contributor real behavior proof is sufficient. The recorded isolated Gateway sessions.fork run exercises the changed worker-backed persistence path and observes an exact child-history prefix with the source unchanged. Production-boundary regressions supplement it with commit revocation, repository reassignment, cleanup failures, and shutdown settlement. No stored-data format or schema contract changes were found.

Evidence

What I checked:

  • Pinned introduction reviewed: Reviewed the complete merge-base-to-head introduced diff, including runtime modules, tests, documentation, and protocol inventory. The recorded original head has parent f0101b9; the stale test merge was not used to infer removal of current-main behavior. (edbdc8b0fbc4)
  • Current main still needs the cutover: Pinned main runs same-store parent forks through runExclusiveSqliteSessionWrite and runOpenClawAgentWriteTransaction on the caller path. The merged rewind/reset predecessors do not implement this parent-fork migration. (src/config/sessions/session-accessor.sqlite-parent-session.ts:131, 086ad165b674)
  • Existing transaction and publication owners retained: The worker invokes the existing fork kernels, preserves logical versus physical agent identity, and transfers the candidate through the existing commit-receipt publication owner. Same-store operations remain transactional; cross-store operations retain source-snapshot/target-commit semantics. (src/config/sessions/session-parent-fork.worker.ts:62, edbdc8b0fbc4)
  • Authority and repository race coverage: Repository forks compare the prepared workspace against the fresh transaction row. Changed tests revoke both caller-authority forms at actual worker commit admission and assert unchanged persisted storage; the repository race also verifies prepared-child cleanup. (src/config/sessions/session-accessor.sqlite-message-cut.ts:315, edbdc8b0fbc4)
  • Complete captured proof body inspected: Fetched the full body and verified SHA-256 7be70b11ea2520d64bcdb3294db8685359132a414c71501c2b920d74193305e2 matches the supplied snapshot. Its isolated real-Gateway sessions.fork workload records the exact 20-message child prefix, unchanged source, 41 successful RPCs, and clean shutdown. Boundary evidence separately reports moved parent-fork caller SQL falling from 37 statements to zero. (edbdc8b0fbc4)
  • Native subscription contract checked: The PR explicitly claims preservation of Codex source context, establishing the dependency signal. Repository ownership was verified through the cache’s upstream remote. Personally inspected the sibling implementation and fetched the exact cited revision through GitHub: unsubscribe takes a connection ID and distinguishes NotLoaded, Unsubscribed, and NotSubscribed. (codex-rs/app-server/src/request_processors/thread_processor.rs:1011, ade0ccacf918)

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Marvinthebored: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

History

Review history (6 earlier review cycles)
  • reviewed 2026-10-04T11:41:25.266Z sha d002f27 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-04T11:47:52.703Z sha d002f27 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-04T12:10:22.182Z sha f0101b9 :: needs maintainer review before merge. :: none
  • reviewed 2026-10-04T12:23:09.737Z sha edbdc8b :: needs maintainer review before merge. :: none
  • reviewed 2026-10-04T13:12:16.518Z sha edbdc8b :: needs changes before merge. :: none
  • reviewed 2026-10-04T13:30:47.783Z sha edbdc8b :: needs maintainer review before merge. :: none

Fork transactions now run through the agent executor, so exercise their
existing live-authority check at worker commit admission alongside rewind
and branch switching. Preserve the unchanged-storage and denied-response
assertions and remove the obsolete native writer-queue fixture branch.

Five reproductions confirmed the old fork assertions fail; the full
corrected storage suite passes all 30 tests. Production code is unchanged.
@steipete

steipete commented Oct 4, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

Add the fork domain to the existing exact-module inventory for the loader's
required bindSqliteWorkerBackend entry point. Keep the protocol rule,
unknown-module rejection, and runtime implementation unchanged.

The complete collision scan and its 54 existing tests pass. Focused scans
of the reported modules reproduced the omitted registration five times on
the PR and no collision five times on its merge base.
@steipete

steipete commented Oct 4, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Oct 4, 2026
@steipete
steipete merged commit 2851e89 into main Oct 4, 2026
313 of 327 checks passed
@steipete
steipete deleted the dbasync/compound3 branch October 4, 2026 14:12
@steipete

steipete commented Oct 4, 2026

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 5, 2026
…ound 3a) (openclaw#164891)

* refactor(sessions): run fork transactions in the agent executor

* test(gateway): revoke fork authority at worker commit admission

Fork transactions now run through the agent executor, so exercise their
existing live-authority check at worker commit admission alongside rewind
and branch switching. Preserve the unchanged-storage and denied-response
assertions and remove the obsolete native writer-queue fixture branch.

Five reproductions confirmed the old fork assertions fail; the full
corrected storage suite passes all 30 tests. Production code is unchanged.

* fix(ci): register the session fork worker protocol export

Add the fork domain to the existing exact-module inventory for the loader's
required bindSqliteWorkerBackend entry point. Keep the protocol rule,
unknown-module rejection, and runtime implementation unchanged.

The complete collision scan and its 54 existing tests pass. Focused scans
of the reported modules reproduced the omitted registration five times on
the PR and no collision five times on its merge base.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs Improvements or additions to documentation gateway Gateway runtime P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. scripts Repository scripts size: XL status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant