Clarify typed self-state projection boundary
This commit is contained in:
parent
cb63ef45e9
commit
2f3aaa8f17
6 changed files with 216 additions and 193 deletions
|
|
@ -26,7 +26,7 @@ Git history and smoke artifacts carry routine proof. `state/evidence.jsonl` shou
|
|||
- CultCache-backed self-state uses the `.cc` extension. The active store path is `.voidbot/private/void-self-state.cc`.
|
||||
- The smallest coherent target is one polymorphic CultCache-backed state authority with typed document kinds plus typed mutation tools: agents propose small operations, and the state service validates/applies them. Whole-state JSON editing is rejected as a durable mutation path.
|
||||
- Commit-one boundary naming is now in code at `packages/core/src/void-self-state-domain.ts`: it declares the global typed document kinds and strict operation payload schemas. Runtime behavior has not moved yet.
|
||||
- Read-only projection is now in `packages/core/src/void-self-state-projection.ts`. `loadVoidSelfState` uses that typed projection for nap/reply-mode context while leaving the old richer prompt summary intact until typed documents explicitly own those details.
|
||||
- Read-only projection is now owned by `packages/core/src/void-self-state-projection.ts`. `loadVoidSelfState` is a thin loader that reads typed `.cc` documents and delegates the agent-facing summary plus nap/reply-mode projection to that module.
|
||||
- Typed operations are applied through `packages/core/src/void-self-state-service.ts` and `scripts/void-self-state.mjs apply-operation`. The service now writes typed documents only; it no longer registers, reads, updates, or mirrors the old moderation monolith during routine operations.
|
||||
- `scripts/export-recent-repo-activity.mjs` reads repo cursors from the typed `.cc` store. Legacy `.json` cursor arguments are only mapped to a sibling `.cc` path when needed by old invocation surfaces.
|
||||
- `scripts/run-void-moderator-rumination.ps1` has been rebuilt as a typed rumination runner. It builds a typed context packet, loads `prompts/void-moderator-rumination.md`, runs Codex rumination, and applies only the JSON operation payloads that come back through `scripts/void-self-state.mjs`. Cursor and receipt bookkeeping remain parent-owned.
|
||||
|
|
|
|||
|
|
@ -42,6 +42,10 @@ This note is the source-grounded description of how the live VoidBot stack is sh
|
|||
- Profile synthesis, disposition, psychological read, inferred traits, interaction dimensions, and response-guidance construction.
|
||||
- `packages/core/src/context-builder.ts`
|
||||
- request context assembly, including interaction-memory/profile attachment, shared Void self-state projection, and any precomputed situational social read.
|
||||
- `packages/core/src/void-self-state-loader.ts`
|
||||
- thin typed `.cc` self-state loader that delegates read-side rendering to the projection module.
|
||||
- `packages/core/src/void-self-state-projection.ts`
|
||||
- read-side projection authority for typed self-state: renders the agent-facing summary and compact nap/reply-mode projection from typed documents without touching legacy state.
|
||||
- `packages/core/src/situational-social-read.ts`
|
||||
- quick Ollama sidecar inferer for ephemeral room-reading scaffolding built from the current prompt, recent room transcript, and longer-horizon interaction memory.
|
||||
- `packages/providers/src/owner-codex-provider.ts`
|
||||
|
|
|
|||
|
|
@ -176,9 +176,10 @@ Verdict: stop feature work and rebuild this foundation. The rest of the machine
|
|||
|
||||
### Commit 2: Add Read-Only Typed Projections
|
||||
|
||||
- Build a self-state service that reads current canonical state and renders the same summaries used by direct replies.
|
||||
- Keep JSON projection for the old runner.
|
||||
- Verification: compare rendered summary against current loader output on a fixture.
|
||||
- Landed path: `packages/core/src/void-self-state-projection.ts` owns typed `.cc` document to agent-facing summary/projection rendering.
|
||||
- `packages/core/src/void-self-state-loader.ts` only loads typed documents and delegates read-side projection.
|
||||
- No JSON projection is needed for the live typed runner.
|
||||
- Verification: projection smoke loads a temp `.cc` store and confirms mode plus transient room context render.
|
||||
|
||||
### Commit 3: Add Typed Mutation CLI
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue