Repository navigation
feat(state): incognito actor side-data adapters (P3, inactive) - #163403
Conversation
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.
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed October 2, 2026, 5:00 AM ET / 09:00 UTC (Revision 2). ClawSweeper reviewWhat this changesAdds 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 Review scores
Verification
How this fits togetherIncognito 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]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceSource +380, Tests +510. Total +890 across 15 files. View PR surface stats
Review metricsNone. Technical reviewBest 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. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
|
Merged via squash.
|
…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.
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
check-changedpassed 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 base3224ed9341cfe206e303ebf5fb948347de8e2d99.qaRuntimebuild 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 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.