Require pressure for autonomous Persona turns

This commit is contained in:
Meta Vens 2026-07-16 03:12:15 +01:00
commit 0840aab32d
4 changed files with 20 additions and 6 deletions

View file

@ -14,7 +14,10 @@ objective:
Aetheria lore, while keeping the system understandable enough to modify
safely.
current: >
Keep the unpaused MiMo repo Face swarm observable while the new canonical
Keep the paused MiMo repo Face swarm cold while scheduler eligibility is
repaired. The observation pulse must never authorize a model turn by itself;
only explicit attention or fresh semantic pressure may create turn intent.
Continue verifying the new canonical
Bifrost/CultMesh speech route proves itself in ordinary turns. MiMo can run
Face/persona heartbeat jobs and produce usable `SAY` blocks, ambiguous
multi-context `SAY` output is retried or dropped instead of completed
@ -165,7 +168,7 @@ accepted_design:
- First chat under a repo identity must initialize the target repo's own `.voidbot` home: `voice/` for identity and mouth files, `state/` for Face/swarm state, `birth/` for Epiphany birth artifacts, and `logs/` for durable worker output. The birth hook uses EpiphanyAgent's repo-personality/birth-runner path over repo contents and git history instead of inventing a VoidBot-only personality generator.
- Repo Face personality seeding has a named prompt surface now: `prompts/repo-face-personality-seed.prompt.md`. Use it for newborn or strengthening passes that trawl repo docs, source layout, commit history, repo-local `.voidbot` material, and legacy `memory.json`, then convert useful meaning into typed `.cc` state instead of leaving it in inert memory files.
- Recent chat consensus can now be packaged for any target Codex workspace through `scripts/feed-codex-chat-consensus.mjs`. The helper reads archived Discord messages, defaults to Aquarium, writes a markdown consensus packet plus a Codex prompt under `.voidbot/artifacts/chat-consensus/`, and only feeds `codex exec` when `--execute` is explicit.
- Agent standing heartbeats are owned by one CTB-style initiative scheduler, not by one task per agent. Wall-clock elapsed time advances initiative; the scheduled task only supplies frequent observation pulses and never owns speech cadence. The scheduler stores per-agent speed/load/groups/heat/effective-speed/next-turn/active-turn state at `REPO_FACE_HEARTBEAT_STATE_PATH`, dispatches repo Faces as ordinary `repo-face-rumination` jobs, and dispatches built-in `void` as the existing moderation rumination runner. Global heat is operator-controlled through the `voidbot.swarm` Eve slider: Hermodr publishes `gamecult.eve.command.v1` to the provider-advertised RUDP command route, `serve-voidbot-swarm-cultmesh.cjs` validates `swarm.set_heat`, and `.voidbot/private/swarm-controls.cc` owns the accepted value that the scheduler reads before the environment default. Heat overrides can still target participant kind, turn kind, identity, repo, display name, channel, or `all` without creating new schedulers, but heat only changes individual recovery speed; it cannot increase aggregate unprompted throughput. `initiative-engine.ts` admits at most one unprompted participant per `REPO_FACE_HEARTBEAT_IDLE_RECOVERY_MINUTES` window regardless of whether idle-rest cooling is enabled or active; pending mentions remain obligations and bypass that global unprompted cadence. Active-turn freeze and rest gating remain hard brakes unless a direct mention creates room debt. An agent's initiative is frozen while its owner-Codex job or moderation lock is active; recovery is scheduled after completion, not when the job is queued.
- Agent standing heartbeats are owned by one CTB-style initiative scheduler, not by one task per agent. Wall-clock elapsed time advances recovery bookkeeping; it does not create turn intent. The scheduled task only supplies frequent observation pulses. `initiative-engine.ts` may admit a turn only for an explicit pending mention or fresh semantic response pressure at or above that participant's interrupt threshold, and it still admits at most one pressure-backed unprompted participant per `REPO_FACE_HEARTBEAT_IDLE_RECOVERY_MINUTES` window. The scheduler stores per-agent speed/load/groups/heat/effective-speed/next-turn/active-turn state at `REPO_FACE_HEARTBEAT_STATE_PATH`, dispatches repo Faces as ordinary `repo-face-rumination` jobs, and dispatches built-in `void` as the existing moderation rumination runner. Global heat is operator-controlled through the `voidbot.swarm` Eve slider: Hermodr publishes `gamecult.eve.command.v1` to the provider-advertised RUDP command route, `serve-voidbot-swarm-cultmesh.cjs` validates `swarm.set_heat`, and `.voidbot/private/swarm-controls.cc` owns the accepted value that the scheduler reads before the environment default. Heat overrides can target participant kind, turn kind, identity, repo, display name, channel, or `all` without creating new schedulers, but heat only changes recovery speed; it cannot manufacture eligibility or increase aggregate unprompted throughput. Pending mentions remain obligations and bypass the global unprompted cadence. Active-turn freeze and rest gating remain hard brakes unless a direct mention creates room debt. An agent's initiative is frozen while its owner-Codex job or moderation lock is active; recovery is scheduled after completion, not when the job is queued.
- Dynamic Persona response pressure is a derived scheduler input, not Persona memory or a second initiative owner. Each pulse embeds canonical Face identity-card projections and recent permitted-channel human messages through the existing RAG embedder, converts cosine evidence into bounded recency-decayed noisy-OR pressure, caps awakening to the three strongest scheduler-eligible Faces, and records message-scoped evidence plus one-shot semantic interrupt receipts. Pressure changes the recovery calculation when recovery is next scheduled through `dynamicHeat`; only threshold crossing may pull `nextTurnAt` to the current initiative clock. Pending mentions remain hard obligations and active-turn, rest, blocked-status, idle-cooling, and max-job brakes remain authoritative. Embedding failure fails cool at baseline heat.
- Runtime liveness is not enough. The operations watchdog must also verify bot/worker freshness by comparing each live process start time against its built `dist/index.js` entrypoint timestamp. A process that predates its entrypoint is stale and must fail `runtime.<component>.freshness`; otherwise source/build repairs can silently sit beside an old in-memory worker that keeps eating new Face action DSL output as private summaries.
- Active-turn freeze is bounded by actual job liveness, not blind faith in an old `running` row. Repo Face heartbeat jobs that remain approved/running past the stale-job window are marked failed through the job queue, recorded as `stale_active_turn_recovered`, and removed from the active-turn map so one dead worker claim cannot silence a Face indefinitely.
@ -278,4 +281,4 @@ rejected_paths:
current_status:
summary: VoidBot's bot/worker/provider/RAG/Postgres/Qdrant/CultCache structure is live. Repo Face/persona heartbeat jobs run through the direct `openai_api` provider configured for MiMo `mimo-v2.5-pro`, with the expensive state-projector pass still disabled. The 2026-07-04 transport repair replaced the old Bifrost HTTP/token bridge shortcut with typed Bifrost CultMesh Discord command and receipt documents advertised in the Bifrost provider store at `cultmesh://asgard.starfire.bifrost/commands/discord-post`. VoidBot stores the Bifrost target as a CultMesh URI, writes command docs to `E:/Projects/Bifrost/.bifrost/provider-store.cc`, optionally pumps Bifrost's command processor, and waits for typed receipts before completing repo Face Discord delivery. Bifrost's provider advertisement exposes `discord.post` command metadata for Odin/Eve agents, and a bounded Weksa live-fire completed visibly. Eve live state now runs end to end through CultLib dev retained publications, Hermodr ordered SSE, Eve component bindings, and VoidBot typed control state. Receipts acknowledge intent only. Heat initial load, provider-driven change, and browser-command change were visibly verified without reload through the same subscription.
next_action: Audit and migrate native portable Persona ownership: Tengu's JSON declares canonical authority while Muninn, Sleipnir, and Hermodr declare projections with self-referential install provenance. Identify the real canonical source for each, migrate canonical Mind into typed `.cc` without elevating projections, then update registry paths and retire the portable compatibility organ when no live consumer remains.
next_action: Finish and deploy the scheduler eligibility cut while the Yggdrasil swarm remains paused: prove elapsed wall-clock with zero mention and sub-threshold semantic pressure queues no model turn, then verify the deployed paused service before any controlled unpause. Resume the native portable Persona ownership audit only after the swarm cannot burn tokens from clock-only readiness.