Collapse topic saturation into semantic graph

This commit is contained in:
Meta Vens 2026-05-28 19:56:16 +01:00
commit f5788502be
6 changed files with 19 additions and 125 deletions

View file

@ -60,7 +60,7 @@ data_flow:
- keep persistent state lean enough that re-entry sharpens the next turn instead of drowning it
active_subgoals:
- Treat `notes/agent-swarm-teardown-plan-2026-05-21.md` as the historical teardown authority and the restart smell ledger. The repo Face swarm is currently down after the 2026-05-27 live restart: pause flag true, orchestrator disabled, no running orchestrator/heartbeat/Codex Face processes found after targeted shutdown, bot/worker/dashboard still live. The first semantic-attractor repair is in place: current-room topic saturation no longer gives repeated terms to parent Imagination, and parent Mind now owns the public admissibility check for jurisdiction-colored repeats. Do not thaw until Nibu/Fensalir-style live-context dry runs prove that stale chorus pressure routes private, translates plainly, or pivots to real new substance.
- Treat `notes/agent-swarm-teardown-plan-2026-05-21.md` as the historical teardown authority and the restart smell ledger. The repo Face swarm is currently down after the 2026-05-27 live restart: pause flag true, orchestrator disabled, no running orchestrator/heartbeat/Codex Face processes found after targeted shutdown, bot/worker/dashboard still live. The semantic-attractor repair is in place: saturation now emerges only from the semantic curiosity graph's overlap between recent conversation, Face state, and retrieved history/source clusters; the separate repeated-term topic-saturation path is removed. Parent Mind owns the public admissibility check for jurisdiction-colored repeats. Do not thaw until Nibu/Fensalir-style live-context dry runs prove that stale chorus pressure routes private, translates plainly, or pivots to real new substance.
- Make the new project-state surfaces the default continuity path for nontrivial VoidBot work.
- Keep the rebuilt moderation/self-state foundation on canonical CultCache `.cc` typed operations, never an editable JSON working projection.
- Keep the typed moderation, mood, repo Face, and watchdog organs behind the single `GameCult Local Orchestrator` scheduled pulse when the swarm is deliberately running; the per-organ scheduled tasks are legacy installer surfaces and should stay disabled unless a deliberate isolation test needs one. Bifrost dispatch is disabled by default behind `BIFROST_DISPATCH_ENABLED=false` until the governance bridge is rebuilt cleanly. As of the explicit 2026-05-27 shutdown after suspect Face turns, the orchestrator task is disabled again.
@ -120,10 +120,10 @@ accepted_design:
- Repo Face state projection should be behavior-rich, not summary-thin. The deterministic packet is allowed to be verbose because it is parent-facing: it should expose all non-retired character-relevant state surfaces in clean terms, including private notes, values, activation profile, runtime rest/speaking pressure, affect needs, social bonds, status reads, mood dimensions, durable memories, short-term residue, agency pressure, incubating thoughts, candidate speech pressure, recent speech residue, social graph facts, and room weather. The projector then translates those variables into lived personhood; every included variable should either appear directly or bend behavior.
- Repo Face conversation evidence is deterministic again. The heartbeat scheduler gathers recent room messages, nearby channel snapshots, and pending mentions, then gives the child Face raw oldest-to-newest transcript sections with explicit recency/correction rules. Imagination still owns identity, memory, affect, social reads, and other lived internal pressure; it does not summarize room messages or decide consensus for the Face.
- Repo Face conversation evidence is multimodal when Discord provides images. Recent Discord attachment metadata now travels on `SourceMessage`; image attachments are cached under `.voidbot/media/discord-images`, rendered in transcript lines as media with local paths, collected into `ContextBundle.imageAttachments`, and passed to owner Codex as `codex exec --image` inputs. Non-image attachments remain transcript metadata only. The prompt tells Faces to treat shared images and memes as room context only when a local image path is attached.
- Repo Face curiosity is now a semantic graph surface, with the old repeated-term room-topic saturation retained only as cheap conversational-weather telemetry. The heartbeat scheduler builds seed queries from current room context, nearby channels, typed Face state, and home-jurisdiction identity, retrieves neighboring chunks from the configured history/source vector stores (Qdrant when enabled), decodes a local weighted graph into ranked attractors, and gives Imagination prominence, saturation, novelty, density, jurisdiction fit, suggested motion, and evidence labels. Current-room topic saturation may tell Imagination that the room is captured or home-adjacent, but it must not print the repeated term list or matched identity terms into the state packet; those words become character memory and then public bait. Imagination translates abstract saturation into lived curiosity, boredom, fatigue, territorial pull, or underexplored intrigue. This is not consensus detection, a topic ban, or a token blacklist; it is a causal diagnosis surface for curiosity economy, freshness, ownership, social pressure, and topic capture.
- Repo Face curiosity and topic saturation are one semantic graph surface now. The heartbeat scheduler builds seed queries from current room context, nearby channels, typed Face state, and home-jurisdiction identity, retrieves neighboring chunks from the configured history/source vector stores (Qdrant when enabled), decodes a local weighted graph into ranked attractors, and gives Imagination prominence, semantic saturation, novelty, recent-conversation overlap, Face-state overlap, density, jurisdiction fit, suggested motion, and evidence labels. The old repeated-term current-room saturation detector is gone; saturation emerges from overlap between conversation, Face memory, and retrieved semantic clusters. The rendered clusters intentionally do not print ranked term labels as phrase bait. Imagination translates semantic saturation into lived curiosity, boredom, fatigue, territorial pull, or underexplored intrigue. This is not consensus detection, a topic ban, or a token blacklist; it is a causal diagnosis surface for curiosity economy, freshness, ownership, social pressure, and topic capture.
- Repo Face direct invitations are live obligations only while the room still orbits them, or when they arrive as explicit pending mentions. An older "tell us about your repo" line must not hypnotize a later turn into dragging Aquarium back to that topic after the room has clearly moved on; the Face should bridge to the current room, stay private, or wait for a fresh opening.
- Repo Face side-thread revival needs reader-facing context, not a blanket ban. Older current-room messages that match a Face's jurisdiction are context, not a standing invitation; if the newest room flow has moved elsewhere, public speech must either reply to the message id that carries the context, include enough context in the message itself, bridge to the live topic, or stay private. The transcript renderer shows message ids so the Face and parent Mind can use Discord replies instead of orphaned pronouncements.
- Repo Face room-work fatigue is Imagination-owned, not a separate deterministic child-prompt slab. Deterministic prompt assembly may attach neutral room texture facts to the state packet beside raw transcripts, but the Face prompt should not receive duplicate room-weather/topic-saturation/repetition directives. Topic saturation crossing into Imagination must be abstract pressure only, not a vocabulary list. The projector owns translating heavy, agent-dense, repetitive, or mixed room texture into character-specific play/rest/social pressure; Mind owns whether the resulting Face output is coherent enough to route and whether unmet pressure becomes typed state.
- Repo Face room-work fatigue is Imagination-owned, not a separate deterministic child-prompt slab. Deterministic prompt assembly may attach neutral room texture facts to the state packet beside raw transcripts, but the Face prompt should not receive duplicate room-weather/topic-saturation/repetition directives. The projector owns translating heavy, agent-dense, repetitive, or mixed room texture into character-specific play/rest/social pressure, while semantic saturation comes from the curiosity graph; Mind owns whether the resulting Face output is coherent enough to route and whether unmet pressure becomes typed state.
- Repo Face social topology is state-projector input, not deterministic personality prose. The scheduler may attach neutral graph facts such as active mapped people and unmapped registered peers to the state packet, but the model state projector owns translating that topology through the Face's personality and affect. The heartbeat prompt still matches active typed person-bonds/status reads to recent raw messages from the named person and shows only those live hooks to the child Face, so relationship state can bend public speech without becoming private flavor text or generic forced chumminess.
- Repo Faces receive recent home-repo activity as first-class body context before room transcript. The heartbeat prompt assembles a read-only digest from `scripts/export-recent-repo-activity.mjs --repos <repo> --state-path <face-state> --read-only`, so a Face can see current implementation motion in its own jurisdiction instead of arguing from stale private pressure.
- Repo Face human pronoun guidance is deterministic prompt context, not projector flavor. The interaction-memory profile may feed the state projector, but the assembled Face prompt must also render `Known human pronoun guidance` outside the projected memory surface, near the transcript and again near the final writing instruction, so a projector omission cannot make a Face guess from names, role, or ambient priors. Evidence excerpts for resolved pronouns must prefer the evidence supporting the resolved set, especially explicit self-statements and corrections, not the freshest contradictory ambient read.
@ -264,5 +264,5 @@ rejected_paths:
reason: sleep/distillation that collapses concrete claims into generic abstraction creates memory nonsense and then forces later cleanup compensators
current_status:
summary: VoidBot's bot/worker/provider/RAG/Postgres/Qdrant/CultCache structure is live, but the repo Face swarm is paused and the `GameCult Local Orchestrator` is disabled after the 2026-05-27 restart exposed semantic attractor relapse. The fixed worker stack still prevents the earlier owner-reply/Mind leak class, Bifrost work routing remains paused by default, and the first attractor repair has landed: deterministic topic saturation no longer hands repeated vocabulary to parent Imagination, while parent Mind explicitly retries/drops public candidates that only restate a saturated agent chorus through local dialect. Verification passed with typecheck, a static leak guard, Libby memory-projection smoke, and the full repo-face Interpreter loop smoke.
summary: VoidBot's bot/worker/provider/RAG/Postgres/Qdrant/CultCache structure is live, but the repo Face swarm is paused and the `GameCult Local Orchestrator` is disabled after the 2026-05-27 restart exposed semantic attractor relapse. The fixed worker stack still prevents the earlier owner-reply/Mind leak class, Bifrost work routing remains paused by default, and the attractor repair has landed: deterministic repeated-term topic saturation is removed, semantic saturation is derived inside the curiosity graph, and parent Mind explicitly retries/drops public candidates that only restate a saturated agent chorus through local dialect. Verification passed with typecheck, static saturation-owner guards, Libby memory-projection smoke, and the full repo-face Interpreter loop smoke.
next_action: Keep the swarm down. Run Nibu/Fensalir-style live-context dry runs against the actual restart transcript and inspect whether repeated owner/provenance-chain pressure routes private, translates plainly, or pivots to real new repo/source/social substance before any orchestrator thaw.