Skip to content

feat(state): incognito actor side-data adapters (P3, inactive) - #163403

Merged
steipete merged 8 commits into
mainfrom
dbasync/incognito-p3
Oct 2, 2026
Merged

steipete merged 8 commits into
mainfrom
dbasync/incognito-p3

Conversation

@steipete

@steipete steipete commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

Related: #163225 (merged).

What Problem This Solves

Prepares the incognito actor to serve session side data through the existing domain commands and its retained in-memory connection.

User Impact

No user-visible change: production incognito remains host-owned until the final activation stage. This adds no writer-selection flag, schema migration, retention change, or synchronous bridge.

Why This Change Was Made

Sharing, membership, participant, category/catalog, reaction, heartbeat, and progress-card reads now have inactive actor adapters. Mutations use P2's FIFO, revision, committed receipts, and facts publication. Category preparation/application stays in one domain binding; every affected session is fenced during grants, and facts publish before FIFO custody ends. Host grants stay synchronous and cannot call their actor.

The adapters reuse existing sharing/heartbeat backends and the registered reaction command. Shared group catalog ownership stays unchanged. Leaf sharing contracts avoid import cycles, and progress-card reads consume admitted schema facts. Domain cleanup also settles rejected preparation, and memory-domain validation preserves lexical sentinels under symlinked state roots.

Evidence

  • Focused real-worker P2/P3 tests: 19 passed on Node 24.21.0 with one worker. Main-based combined command wall time: 249.90 s; Vitest: 45.20 s (58% transforms). P2's nine test bodies totaled 7.41 s. Cold worker preparation took 173.17 s. After the test-only lint cleanup, P3's ten tests passed again: single-file command wall 64.09 s, Vitest 21.03 s. Each suite shares its actor fixture.
  • Coverage includes membership and participant publication, catalog/category ordering, heartbeat claims, reaction generation/message guards, missing-card reads, queue and pre-commit revocation, all-target batch fencing, lost replies/receipts, revoked disclosure, symlink roots, and rejected-command recovery.
  • check-changed passed on main, including production/test types, full core/script lint, ratchets, exports, and boundary guards. Madge: 0 cycles. SQLite worker ratchet: no T1 growth against main merge base 3224ed9341cfe206e303ebf5fb948347de8e2d99.
  • Codex autoreview: scoped-clean through P2 severity.
  • The gateway qaRuntime build passed for the unchanged P3 production patch before main integration. P3 changes 770 production lines across 12 production files; two test files and their existing-lane registration supply the proof.
  • The additional Testbox sibling run was not executed: local source-snapshot preparation was stopped before any cloud lease was allocated.

The initial new-file test run used the thread pool and was refused by the main-thread broker. The file is now in the existing database-worker fork lane. A subsequent Node 26 harness run stalled before actor execution in filesystem-cache handling; the supported Node 24 run above completed.

P4 follow-up: prove positive message append → reaction composition when its transcript append route exists. Current FIFO proof uses real session/header creation and reaction settlement. P4 must continue the same receipt/facts owner for transcript and lifecycle work; selected receipt/cache readers remain P5, and production activation remains P7.

Add inactive actor session reads, creation, committed sharing facts, current-entry claims, topology, and fixed expiry. Bind private row and lifetime adapters to captured sources while production incognito remains host-owned until P7.
Reuse the retained actor connection and existing domain commands under the P2 FIFO and committed-facts owner. Keep production incognito host-owned until P7; no schema or retention change and no synchronous bridge.
@clawsweeper

clawsweeper Bot commented Oct 2, 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.

@steipete

steipete commented Oct 2, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper

clawsweeper Bot commented Oct 2, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed October 2, 2026, 5:00 AM ET / 09:00 UTC (Revision 2).

ClawSweeper review

What this changes

Adds inactive worker adapters for incognito session membership, participants, categories, reactions, heartbeat outcomes, and progress-card reads.

Merge readiness

✅ Ready for maintainer review

This PR remains useful: current main lacks the planned P3 adapters, and the merged P2 handoff explicitly anticipates them. No blocking introduced defect was found.

Priority: P3
Reviewed head: ceb5d746ce8fb35e85d351f83723ef88a74ef890

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A coherent staged migration with meaningful real-worker boundary evidence and no identified blocking correctness defect.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): The reported Node 24 run exercises the actual actor capture, worker client, domain adapters, and memory database. Inspected scenarios verify allowed publication, queued revocation, rollback before commit, and recovery after lost replies or receipts; positive transcript-append/reaction composition is explicitly reserved for P4. No stored-data contract changes occur here, and this reviewer did not execute the tests.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The reported Node 24 run exercises the actual actor capture, worker client, domain adapters, and memory database. Inspected scenarios verify allowed publication, queued revocation, rollback before commit, and recovery after lost replies or receipts; positive transcript-append/reaction composition is explicitly reserved for P4. No stored-data contract changes occur here, and this reviewer did not execute the tests.
Evidence reviewed 9 items Pinned introduced change: Reviewed the merge-base-to-head changes rather than endpoint drift. The adapters reuse existing domain backends and the registered reaction operation.
Authority and settlement: The actor checks live caller and actor authority at admission and before disclosure, fences all selected targets before policy callbacks, and publishes confirmed commit receipts while retaining FIFO custody.
Real worker fault coverage: The captured PR body reports 19 passing P2/P3 tests on Node 24.21.0 and a subsequent 10-test P3 pass. The inspected suite uses the actual execution capture, worker client, and retained memory database; it checks queued revocation, pre-commit batch rollback, lost replies and receipts, and revoked disclosure. These executions were reported by the author, not run by this reviewer.
Findings None None.
Security None None.

How this fits together

Incognito sessions keep temporary conversation data in memory. These adapters pass session-related commands through the existing database worker and publish committed facts back to the host; production routing remains host-owned.

flowchart TD
  A[Session commands] --> B[Existing actor queue]
  B --> C[Side-data adapters]
  C --> D[Existing domain backends]
  D --> E[Live authority checks]
  E --> F[In-memory database]
  F --> G[Commit receipts]
  G --> H[Host facts and results]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Source +380, Tests +510. Total +890 across 15 files.

View PR surface stats
Area Files Added Removed Net
Source 12 575 195 +380
Tests 3 511 1 +510
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 15 1086 196 +890

Review metrics

None.

Technical review

Best possible solution:

Keep the adapters on the existing execution owner and complete transcript routing and production activation through the documented later stages.

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

Not applicable: this is a planned internal storage migration rather than a reported current-user failure.

Is this the best way to solve the issue?

Yes: extending the existing actor and reusing domain backends follows the established migration plan without introducing a competing production writer.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: This inactive migration stage preserves production routing and introduces no immediate user-visible behavior change.
  • add proof: sufficient: Contributor real behavior proof is sufficient. The reported Node 24 run exercises the actual actor capture, worker client, domain adapters, and memory database. Inspected scenarios verify allowed publication, queued revocation, rollback before commit, and recovery after lost replies or receipts; positive transcript-append/reaction composition is explicitly reserved for P4. No stored-data contract changes occur here, and this reviewer did not execute the tests.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (live_output): The reported Node 24 run exercises the actual actor capture, worker client, domain adapters, and memory database. Inspected scenarios verify allowed publication, queued revocation, rollback before commit, and recovery after lost replies or receipts; positive transcript-append/reaction composition is explicitly reserved for P4. No stored-data contract changes occur here, and this reviewer did not execute the tests.

Label justifications:

  • P3: This inactive migration stage preserves production routing and introduces no immediate user-visible behavior change.
  • 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 (live_output): The reported Node 24 run exercises the actual actor capture, worker client, domain adapters, and memory database. Inspected scenarios verify allowed publication, queued revocation, rollback before commit, and recovery after lost replies or receipts; positive transcript-append/reaction composition is explicitly reserved for P4. No stored-data contract changes occur here, and this reviewer did not execute the tests.
  • proof: sufficient: Contributor real behavior proof is sufficient. The reported Node 24 run exercises the actual actor capture, worker client, domain adapters, and memory database. Inspected scenarios verify allowed publication, queued revocation, rollback before commit, and recovery after lost replies or receipts; positive transcript-append/reaction composition is explicitly reserved for P4. No stored-data contract changes occur here, and this reviewer did not execute the tests.

Evidence

What I checked:

Likely related people:

  • steipete: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • joshavant: 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 (1 earlier review cycle)
  • reviewed 2026-10-02T08:55:41.410Z sha ceb5d74 :: needs maintainer review before merge. :: none

@clawsweeper clawsweeper Bot added P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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 2, 2026
@steipete
steipete merged commit a6dce59 into main Oct 2, 2026
140 checks passed
@steipete
steipete deleted the dbasync/incognito-p3 branch October 2, 2026 09:06
@steipete

steipete commented Oct 2, 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 3, 2026
…law#163403)

* feat(state): add inactive incognito worker actor

* fix(state): settle incognito capture publication

* docs(state): record revised incognito SDK migration

* feat(state): incognito actor session facts and authority

Add inactive actor session reads, creation, committed sharing facts, current-entry claims, topology, and fixed expiry. Bind private row and lifetime adapters to captured sources while production incognito remains host-owned until P7.

* feat(state): incognito actor side-data adapters (P3, inactive)

Reuse the retained actor connection and existing domain commands under the P2 FIFO and committed-facts owner. Keep production incognito host-owned until P7; no schema or retention change and no synchronous bridge.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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