Add typed self-state operation service

This commit is contained in:
Meta Vens 2026-05-16 12:06:28 +01:00
commit 064ca95f3e
7 changed files with 547 additions and 4 deletions

View file

@ -149,4 +149,4 @@ rejected_paths:
current_status:
summary: VoidBot's ordinary bot/worker/provider/RAG/Postgres/Qdrant structure is still conceptually sound, but the moderation/mood/private-self-state foundation has become architectural Jenga. It currently depends on canonical MessagePack plus an editable JSON projection, broad passthrough schemas, legacy mirror fields, a giant memory-organ cleanup pass, and a prompt-owned scheduled runner. Much of the cleanup pass is recent compensator cruft from attempts to manually clean exploded state; it should not be dignified into permanent architecture.
next_action: The typed CultCache self-state document vocabulary and read-only projection layer now exist in core, and direct reply nap/reply-mode projection is derived from typed scheduled-runtime/thought-memory views. Next add a typed mutation service/CLI for cursor, open cases, delivery receipts, repo cursor, candidates, sleep/speaking pressure, and distilled memory, then move repo cursor/open-case/receipt/candidate/memory updates behind it. Delete JSON projection authority and legacy mirrors early instead of adding adapters around them. Redesign sleep/distillation around a meaning-preservation contract before trusting it to compress memory.
next_action: The typed CultCache self-state document vocabulary, read-only projection layer, and operation mutation CLI/service now exist. Next move concrete writers behind those operations, starting with repo activity cursor and delivery receipts, then replace whole-state agent JSON edits with operation output. Delete JSON projection authority and legacy mirrors early instead of adding adapters around them. Redesign sleep/distillation around a meaning-preservation contract before trusting it to compress memory.