Skip to content

refactor(sessions): compose board, ACP, outbox and lifecycle on the incognito actor (P7b, inactive) - #164883

Merged
steipete merged 17 commits into
mainfrom
dbasync/incogp7b
Oct 4, 2026
Merged

steipete merged 17 commits into
mainfrom
dbasync/incogp7b

Conversation

@steipete

@steipete steipete commented Oct 4, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Incognito Board, ACP, report/outbox, and lifecycle operations need a complete actor path before P7d can activate worker routing and remove the native branches.

User Impact

P7b remains inactive. Production does not supply captured actor bindings or tagged lifecycle targets. P7d owns activation and native-path removal. Worker failure never selects a native fallback. Schemas, stored formats, retention, durability, configuration, and existing durable routing are unchanged.

Released ACP readers and manager injection callbacks keep their one-argument signatures and Promise results. Empty ACP keys retain the existing null/no-op behavior without invoking a mutator; valid keys are trimmed, and a valid missing key still returns a result object with entry: undefined.

Why This Change Was Made

Board, internal ACP, transcript-report, outbox, and lifecycle facades accept explicit captured actor bindings and reuse existing worker commands and synchronous SQL kernels. They retain FIFO, live transaction/commit authorization, and acknowledged-fact publication. Board change collection spans its transaction. Lifecycle hooks prepare outside the transaction, settle companions from the receipt, and retain both actors during a fork. Existing host facades own deletion and artifact cleanup; their ordinary native/file inputs retain their safeguards.

Repository cleanup reads committed actor facts (src/config/sessions/session-accessor.sqlite-deletion.ts:482, :502), and the Board actor branch bypasses native session-existence reads (src/boards/sqlite-board-store.ts:185). The deletion-journal adjustment is worker-only (src/state/agent-deletion-journal.ts:337); it preserves live shared-state fencing without repeated inspection subprocesses. The callback audit found no new host SQL or same-owner refusible read in the changed actor paths, and no concrete retained other-owner host SQL debt introduced by this composition. Caller-provided authority callbacks remain their owners' responsibility.

Main was merged without rebasing, most recently at bb5656bf89e230bb3d6c9040b1e9b86df0306439. This includes P7a (#164869), P7c (#164819), and the current chat-admission repair (#164682). Both competing Gateway shutdown tests and compatibility records were preserved. The umbrella #162433 overlaps this work; P7d remains the activation owner. There are zero new environment names and no T1 call-count growth. This inactive stage claims no production main-thread SQL reduction.

Released SDK audit

Changed signatures were checked against latest release v2026.9.8, SDK exports, api.runtime, and documented subpaths. The ACP reader uses a typed identity export, preserving runtime identity and its released one-argument type. Both manager injection callbacks explicitly retain one argument. Public deletion/cleanup SDK wrappers construct existing native inputs and do not expose internal actor targets. The active acp-session-metadata-released-signatures compatibility record and type assertions preserve those supported contracts without a migration or warning.

The final full SDK comparison of 55ce0bbb against integrated main bb5656bf passed locally in 1121.24 s: zero added/removed entrypoints, zero direct export declaration changes, and 161 conservative reachable declaration-closure changes. Acknowledgement digest: 5796b172. Reachable closure records are not changed public signatures.

Evidence

Candidate: 55ce0bbbcccc4065b98ce4d614cbc1f41312c4c1. Fresh full P2 review against integrated main is scoped-clean, with no accepted/actionable findings. The review's empty-key finding was fixed with failing controls and regressions; its earlier suggestion to return null for valid missing entries was rejected against the existing contract.

Proof Result
Integrated actor, ACP, lifecycle, reports/outbox, Board, SDK/compatibility and import/build graphs 138 tests across 16 files passed; --maxWorkers=1, 757.34 s wall time
Real Gateway accepted-outbox close order and mention/involvement settlement Both selected cases passed; four unrelated cases filtered; 381.15 s wall time
Exact Linux prebuilt UI shard, original order and four CI reporters 30/30 tests across 14 files passed; 220.591 s wall time, 217.19 s Vitest
Demand attribution on candidate and pinned main Same two failures in all five candidate and five main runs
ACP empty-key and normalized-key failing controls Reproduced before the fix; actor/native reader and writer regressions pass
Final changed checks Passed: production types, all 27 core test type graphs, formatting, Knip, lint and selected guards; 1920.42 s on the loaded shared host
Final SDK comparison Passed; zero direct declaration changes, 161 reachable-closure records; digest 5796b172; 1121.24 s

The Linux replay used standalone clean checkouts pinned by tree and parents, Node 24.21.0, pnpm 12.5.1, SQLite 3.53.4, four CPUs, two UI workers, literal CI=true and GITHUB_ACTIONS=true, and the same-revision harness. Both source trees remained clean. The Testbox lease is stopped. This is focused proof, not a replacement for the enforced PR CI/security gates.

Import proof explicitly includes test/scripts/runtime-process-build-graph.test.ts, src/auto-reply/reply/get-reply.imports.test.ts, src/state/openclaw-state.worker.imports.test.ts, src/config/sessions/session-history-read.imports.test.ts, and src/worker/worker.runtime-imports.test.ts. Earlier unchanged proof also covers the wrapper inventory, Knip, broker capacity and cron retirement owners. These integration tests protect actual worker/SQLite authorization, FIFO, commit publication, revocation, cross-agent lifetimes and shutdown settlement that helper mocks cannot establish.

CI failure disposition

Fresh candidate CI run 37213373361 passed: 96 successful jobs, 21 skipped, including both real-Gateway UI shards and openclaw/ci-gate. No inherited-failure CI bypass is needed for this head. Historical run 37203352452, attempt 3, had 90 successful jobs, 21 skipped jobs, two root failures and its downstream gate. Its failures are not reported as passing coverage.

  • Inherited demand fixture: sessions.dispatch.demand.test.ts supplies getMany but omits prepareRuntimeRefresh. Real sessions.send reaches withRestartSafeChatPlacement and fails before dispatch with Worker placement admission reader is unavailable; retry. Both cases fail identically in five candidate and five integrated-main runs. All 14 traced fixture/owner/config/workflow/package inputs are byte-identical. Scheduled main independently fails the same cases: run 37208805289, job 111455705607. Any native inherited-failure exception must still bind the fresh exact-head CI attempt and tested merge.
  • Historical UI initial-setup and catalog-hovercard failures: repeated isolated head/base and original-shard pressure replays passed, but two investigated GitHub reruns did not establish a root cause. No further unchanged-input rerun was performed. The candidate integrates main's material chat-admission repair and passes the exact 14-file Linux shard, including both cases. This pass does not establish the historical races' root causes or independently qualify them as inherited. Fresh candidate CI, including both real-Gateway UI shards, now passes; the historical failures are still not claimed root-cause-fixed.
  • Earlier PR-caused unused lifecycle module and capacity fixture: repaired through existing host-facade routing and the fixture's established broker topology; no ignore or baseline waiver. Knip, actor replay and CPU-eight proof passed.
  • Cron fixture retirement: now awaits the canonical database-close owner before reopening. Existing deterministic owner tests prove settlement; the original intermittent failure was not claimed fixed merely because five head/base replays passed.
  • PR context: required headings were corrected and the context/evidence check passed.

ClawSweeper completed its exact-candidate review at 2026-10-04 15:36:59 UTC with no concrete correctness/security finding. Its request to record the SDK comparison is satisfied above. Its generic migration warning is rejected against the unchanged schema/kernels and its own detailed source review, which confirms no stored-data contract change or migration prerequisite.

Preserve shared ACP metadata persistence and sequencing while preparing actor entry commands, transaction-local controller guards, board snapshots, and shared idle-pin lifetime. Keep production host-owned until P7 and document the remaining synchronous SDK and caller cutover requirements.

Validation: 44 tests passed with one platform skip on isolated Linux; four pre-fix negative controls reproduced missing pins, grant reentrancy, and revoked-policy persistence. Changed-file checks, database-worker ratchet, zero-cycle checks, and Codex review through P2 passed. T1 remains 915; no new environment names.
Merge current main to consume the Doctor-owned ACP migration contract. Keep P6 inactive, remove retired runtime legacy-key and cleanup calls, consolidate ACP composition in its existing mutation owner, and complete the compiled wrapper dependency inventory. Preserve entry-before-metadata ordering and update the focused sequence proof.
Merge main to include its suppression-inventory fix. Expose ACP operations through the inactive actor borrow, retaining the full lazy-load and operation promise before any await. Extend the nested-grant regression to both ACP methods; the unguarded binding fails this control. Document intentional model-mock isolation without expanding its baseline. Production incognito routing remains native until P7.
Merge main CI ratchet fixes and move shared ACP input/result shapes into a leaf contract. Remove static implementation-type cycles while preserving lazy runtime loading inside actor custody. Production incognito routing remains inactive and released Plugin SDK call signatures remain compatible.
Prepare captured actor bindings for Board, ACP, reports, outbox and lifecycle while production routing remains host-owned until atomic activation. Preserve current grants, receipt settlement, FIFO and existing durable contracts.

Keep host lifecycle composition outside standalone worker import graphs. Reuse the existing current read-only path for runtime journal checks on workers and the main CI baseline reader repair from 06131c4.
Keep default production routing host-owned while the explicit actor binding reuses the existing reader. Retain lifecycle callback receivers and distinguish deletion plans during reclamation.
@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 agents Agent runtime and tooling 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. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. 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: blocked before merge. Reviewed October 4, 2026, 11:56 AM ET / 15:56 UTC (Revision 10).

ClawSweeper review

What this changes

The branch connects private-session Boards, external-agent metadata, transcript reports, queued turn records, and lifecycle operations to the existing database worker while leaving production activation separate.

Warning

SQLite table change

This PR modifies persisted SQLite tables in src/boards/sqlite-board-store.ts. Prefer a design that avoids changing persisted SQLite tables. If the change is necessary, verify migration and upgrade compatibility against an existing database before merge.

Merge readiness

⛔ Blocked before merge - 1 item remains

The PR remains useful and has no concrete blocking finding. The completed SDK comparison satisfies the previous review’s remaining request; the broader ownership draft does not supersede this focused stage.

Priority: P2
Reviewed head: 55ce0bbbcccc4065b98ce4d614cbc1f41312c4c1

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Focused production-boundary evidence, preserved SDK contracts, and a clean functional/security review support normal mergeable quality.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (terminal): Captured after-fix evidence exercises the real actor/broker/SQLite paths and Gateway scheduler-close boundary, showing accepted outbox persistence before retirement and refusal after revocation without storage changes. Production activation remains outside this stage; no stored-data contract change requires migration proof.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (terminal): Captured after-fix evidence exercises the real actor/broker/SQLite paths and Gateway scheduler-close boundary, showing accepted outbox persistence before retirement and refusal after revocation without storage changes. Production activation remains outside this stage; no stored-data contract change requires migration proof.
Evidence reviewed 9 items Pinned introduction and continuing necessity: Reviewed the supplied merge-base-to-head delta, bb5656b to 55ce0bb. Current main lacks the added report binding, Board command composition, and lifecycle operation owner. The stale test merge was not used to infer removals or regressions.
Board authority and publication: The explicit actor branch validates the captured physical target, carries caller authority into transaction and commit grants, and checks the session generation after interactive preparation. Its integration cases exercise actual workers and SQLite, including revoked policy, asynchronous-grant refusal, FIFO continuation, and unchanged rows after denial.
Lifecycle and storage compatibility: Deletion and reclamation reuse existing lifecycle preparation and SQL operations, settle companions from confirmed receipts, and use committed actor facts for repository cleanup. The introduced changes add no schema, serialized-format, retention, durability, or configuration contract; ordinary native inputs retain their existing routing.
Findings None None.
Security None None.

How this fits together

Incognito sessions hold private conversation data in a process-lifetime SQLite database. These adapters carry session operations and current authority into its worker, then publish committed results to existing product owners.

flowchart TD
  A[Session operations] --> B[Captured actor and session]
  B --> C[Current authority checks]
  C --> D[Database worker queue]
  D --> E[Existing SQLite operations]
  E --> F[Commit receipt]
  F --> G[Session facts and notifications]
Loading

Before merge

  • Add data-model compatibility proof - Confirm migration or upgrade compatibility proof before merge.
Agent review details

Security

None.

PR surface

Source +790, Tests +619, Docs +45. Total +1454 across 28 files.

View PR surface stats
Area Files Added Removed Net
Source 17 933 143 +790
Tests 9 715 96 +619
Docs 2 46 1 +45
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 28 1694 240 +1454

Review metrics

Metric Value Why it matters
Production and test growth production +933/-143; tests and support +715/-96 Production growth supplies explicit actor adapters and lifecycle composition; the PR explains their staged purpose.
Final SDK comparison 0 entrypoint changes; 0 direct declaration changes; 161 reachable-closure records The completed comparison resolves the prior review’s remaining compatibility-evidence request.

Stored data model

Persistent data-model change detected: migration/backfill/repair: src/plugins/compat/session-persistence-records.ts, unknown-data-model-change: src/boards/sqlite-board-store.ts. Confirm migration or upgrade compatibility proof before merge.

Technical review

Best possible solution:

Keep this preparation inactive, preserving existing storage and SDK contracts until the separate activation stage completes the caller cutover.

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

Not applicable to this internal refactor; the captured failing controls and worker/Gateway boundary results support its preserved contracts, without reviewer-side execution.

Is this the best way to solve the issue?

Yes. The branch extends existing facades and SQL owners, retains released callable contracts, and leaves activation to the planned atomic cutover.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This is a bounded internal worker-composition stage with production activation deferred and no demonstrated urgent user regression.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (terminal): Captured after-fix evidence exercises the real actor/broker/SQLite paths and Gateway scheduler-close boundary, showing accepted outbox persistence before retirement and refusal after revocation without storage changes. Production activation remains outside this stage; no stored-data contract change requires migration proof.
  • proof: sufficient: Contributor real behavior proof is sufficient. Captured after-fix evidence exercises the real actor/broker/SQLite paths and Gateway scheduler-close boundary, showing accepted outbox persistence before retirement and refusal after revocation without storage changes. Production activation remains outside this stage; no stored-data contract change requires migration proof.

Evidence

What I checked:

  • Pinned introduction and continuing necessity: Reviewed the supplied merge-base-to-head delta, bb5656b to 55ce0bb. Current main lacks the added report binding, Board command composition, and lifecycle operation owner. The stale test merge was not used to infer removals or regressions. (src/config/sessions/session-incognito-lifecycle-operations.ts:49, 68ebe61752ed)
  • Board authority and publication: The explicit actor branch validates the captured physical target, carries caller authority into transaction and commit grants, and checks the session generation after interactive preparation. Its integration cases exercise actual workers and SQLite, including revoked policy, asynchronous-grant refusal, FIFO continuation, and unchanged rows after denial. (src/boards/sqlite-board-store.ts:185, 55ce0bbbcccc)
  • Lifecycle and storage compatibility: Deletion and reclamation reuse existing lifecycle preparation and SQL operations, settle companions from confirmed receipts, and use committed actor facts for repository cleanup. The introduced changes add no schema, serialized-format, retention, durability, or configuration contract; ordinary native inputs retain their existing routing. (src/config/sessions/session-incognito-lifecycle-operations.ts:64, 55ce0bbbcccc)
  • Released SDK contracts preserved: Inspected the v2026.9.8 SDK reader and released ACP manager dependency declarations, using GitHub contents reads where historical local blobs were unavailable. The branch retains the reader’s runtime identity and one-argument public type, and both manager injection callbacks retain one argument and Promise results. (src/plugin-sdk/acp-runtime.ts:34, 55ce0bbbcccc)
  • Previous rank-up request satisfied: The captured PR body records the final SDK comparison of the exact candidate against bb5656b: 1121.24 seconds, zero entrypoint or direct export declaration changes, 161 reachable declaration-closure records, acknowledgement digest 5796b172. This resolves the previous completed review’s sole rank-up request. (55ce0bbbcccc)
  • Production-boundary evidence: The captured evidence reports 138 integrated cases passing and two selected real-Gateway close cases passing. The inspected close regression queues an accepted outbox write through the real scheduler and actor, observes persistence before retirement, and rejects later scheduling. Actor suites additionally observe unchanged storage after queued or pre-commit revocation and reject foreign session anchors. (src/gateway/server-close.agent-databases.test.ts:71, 55ce0bbbcccc)

Likely related people:

  • steipete: 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 (9 earlier review cycles; latest 8 shown)
  • reviewed 2026-10-04T12:06:24.393Z sha 8ac04a5 :: blocked before merge. :: none
  • reviewed 2026-10-04T12:24:36.565Z sha f13a269 :: blocked before merge. :: none
  • reviewed 2026-10-04T12:53:23.998Z sha 454a76b :: blocked before merge. :: none
  • reviewed 2026-10-04T13:21:03.335Z sha 454a76b :: blocked before merge. :: none
  • reviewed 2026-10-04T13:34:45.252Z sha 454a76b :: blocked before merge. :: none
  • reviewed 2026-10-04T13:52:16.961Z sha 454a76b :: blocked before merge. :: none
  • reviewed 2026-10-04T14:23:16.658Z sha 454a76b :: blocked before merge. :: none
  • reviewed 2026-10-04T15:36:59.245Z sha 55ce0bb :: blocked before merge. :: none

Resolve the Gateway close-test conflict by retaining both the incognito outbox regression and main mention/involvement settlement proof. Keep the released ACP read and metadata-write signatures unchanged; internal actor helpers retain the inactive P7b composition. Add a type contract check for both released signatures.
Keep actor bindings on the existing internal ACP owners. Preserve the released SDK reader as a typed identity export and retain one-argument manager injection callbacks. Record the active compatibility contract and cover the callable shapes with type assertions.
@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 proof: sufficient ClawSweeper judged the real behavior proof convincing. and removed merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. labels Oct 4, 2026
Merge current main, including P7a, without rebasing. Preserve both the agent-end and ACP compatibility records. The combined actor, ACP, Board, outbox, lifecycle, SDK, and import-boundary replays pass. The missing-session autoreview finding was rejected against the existing reader and its passing regression: valid missing keys retain a result object with an undefined entry.
@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:

…ades

Route explicit actor targets through the existing host deletion and cleanup owners so the composition is production-reachable without importing host hooks into standalone worker graphs. Preserve ordinary lifecycle arguments and inactive routing. Give the multi-owner lifecycle fixture its documented three broker slots, and await cron fixture database retirement before reopening.
@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:

Integrate main bb5656b, including the
chat-admission and current-authority repairs from #164682. The merge is
conflict-free and keeps P7b production actor routing inactive.

Preserve the ACP facades' existing empty-key null/no-op results when an
actor binding is supplied, and retain trimmed reader keys without turning
valid missing entries into null. Empty mutations never invoke their mutator.
The released one-argument SDK contracts remain unchanged.

The read, write, and normalization controls failed before repair. Actor
and native reader suites passed 16 tests, and actor/native writer suites
passed 20 tests. Fresh P2 review against the integrated main base is clean.
@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:

@steipete
steipete merged commit 7d88b6f into main Oct 4, 2026
199 of 200 checks passed
@steipete
steipete deleted the dbasync/incogp7b branch October 4, 2026 16:23
@steipete

steipete commented Oct 4, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Oct 5, 2026
…ncognito actor (P7b, inactive) (openclaw#164883)

* feat(state): prepare incognito ACP ownership (P6, inactive)

Preserve shared ACP metadata persistence and sequencing while preparing actor entry commands, transaction-local controller guards, board snapshots, and shared idle-pin lifetime. Keep production host-owned until P7 and document the remaining synchronous SDK and caller cutover requirements.

Validation: 44 tests passed with one platform skip on isolated Linux; four pre-fix negative controls reproduced missing pins, grant reentrancy, and revoked-policy persistence. Changed-file checks, database-worker ratchet, zero-cycle checks, and Codex review through P2 passed. T1 remains 915; no new environment names.

* refactor(sessions): compose inactive incognito actor operations

Prepare captured actor bindings for Board, ACP, reports, outbox and lifecycle while production routing remains host-owned until atomic activation. Preserve current grants, receipt settlement, FIFO and existing durable contracts.

Keep host lifecycle composition outside standalone worker import graphs. Reuse the existing current read-only path for runtime journal checks on workers and the main CI baseline reader repair from 56e946d.

* refactor(acp): route incognito reads through the async facade

Keep default production routing host-owned while the explicit actor binding reuses the existing reader. Retain lifecycle callback receivers and distinguish deletion plans during reclamation.

* fix(sessions): capture actor inputs and preserve Board grants

* fix(acp): retain released metadata callable boundaries

Keep actor bindings on the existing internal ACP owners. Preserve the released SDK reader as a typed identity export and retain one-argument manager injection callbacks. Record the active compatibility contract and cover the callable shapes with type assertions.

* fix(sessions): expose inactive lifecycle composition through host facades

Route explicit actor targets through the existing host deletion and cleanup owners so the composition is production-reachable without importing host hooks into standalone worker graphs. Preserve ordinary lifecycle arguments and inactive routing. Give the multi-owner lifecycle fixture its documented three broker slots, and await cron fixture database retirement before reopening.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agents Agent runtime and tooling 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. 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