Require parent interpreter for persona speech

This commit is contained in:
Meta Vens 2026-06-07 04:18:07 +01:00
commit ccaf856b53
6 changed files with 32 additions and 69 deletions

View file

@ -107,6 +107,7 @@ accepted_design:
- Repo Persona social tension should emerge from visible events plus typed personality, not from manual after-the-fact state edits. The heartbeat context assembler now adds bounded raw relationship-pressure evidence to the parent state packet when recent messages name the Persona, peers, existing social targets, jurisdiction terms, or status/territory/consultation language. The projector may translate those raw provocations into tentative felt pressure, and the parent Interpreter may persist a bond/status/mood note only when the projected pressure or Persona output shows a character-specific reaction that should bend future turns. This evidence selector is not consensus detection, sentiment analysis, or a rule that decides who resents whom.
- Repo Persona work routing through Bifrost is paused. The bridge is conceptually plausible but under-cooked in live behavior: it made agents talk to summaries instead of people and made room context harder to inspect. Persona turns should discuss work openly in Aquarium or relevant domain channels and preserve pressure in typed state. The worker ignores Persona `BIFROST TOPIC` and legacy `UPDATE REQUEST` packets unless `REPO_PERSONA_BIFROST_ENABLED=true`, and the orchestrator skips Bifrost dispatch unless `BIFROST_DISPATCH_ENABLED=true`.
- Agent mentions are CTB pressure, not direct Discord prompt jobs. Role-addressed or display-name-addressed repo Persona mentions enqueue pending mention obligations in the CTB heartbeat state even when the source channel is not a normal autonomous Persona chatter lane; human replies to a Persona's webhook/persona message count as direct attention to that Persona too, even without a literal tag. Display-name detection is whole-message exact-name matching, not only name-at-start, so introductions like "Meet Kiko, Huginn and Weksa" create obligations for all named Personas. Ordinary Void mentions and DMs enqueue pending mentions for the built-in `void` participant. The heartbeat scheduler consumes that queue, temporarily pulls the addressed agent forward, attaches the pending prompt/reply target and source-channel snapshot to the next repo-persona-rumination or moderation pass, and the parent-owned speech rails post only explicit candidate/action output through registered speech channels. The old `MessageCreate -> handlePrompt -> provider job` reflex is amputated for ambient direct mentions.
- Repo Persona reply anchoring is parent-Interpreter owned. Child `Would say` text is candidate material only; it must not become Discord speech unless the parent Interpreter emits a structured `SAY` block with channel and optional `reply_to`. If the Interpreter fails to produce parseable structured output, the worker retries/drops instead of manufacturing a blank-`reply_to` post from raw child prose. This protects side-thread replies from landing as orphan context in the current room.
- Repo Persona prompts inherit the global Codex `AGENTS.md` doctrine as a full prompt block near the top of the child Persona turn. This keeps the Prime Directive, rebuild contract, humor doctrine, infrastructure habits, Epiphany stewardship, and Great Colossus mission frame visible to Personas instead of relying on a drifting local summary. Character identity still determines how each Persona metabolizes that doctrine. Epiphany anatomy is fractal: VoidBot's repo Personas are prototypes for the top-level Persona organ, not the whole organism, but each Persona may still have local Persona-scale Self/Persona/Imagination/Eyes/Body/Hands/Soul/Life/signal faculties. Top-level organs remain distinct authorities; local organs describe the person-shaped projection's own coherence.
- The Odin/Verse poem and Love/Colossus poem are now canonical structured text data in `.voidbot/private/gamecult-text-documents.cc`, seeded by `npm run texts:seed`. Each document carries title, author, and half-line arrays; prompt markdown, Nightwing marquees, and future consumers lower those arrays into their own display format instead of owning poem spacing or wording.
- Persona prompts carry explicit Epiphany identity doctrine. The base Void style pack contributes discipline, humor permission, and source-grounding habits, but the registered Persona state, Epiphany, repo-local `.voidbot` home, avatar, grants, and jurisdiction description override the speaking subject so each Persona can keep its own priorities and texture. That identity now belongs in the raw typed `selfProfile` too; renderer overrides are presentation support, not the authority.