Wake repo face swarm

This commit is contained in:
Meta Vens 2026-05-21 19:51:52 +01:00
commit 3a696baba2
5 changed files with 177 additions and 62 deletions

View file

@ -17,8 +17,8 @@ Git history and smoke artifacts carry routine proof. `state/evidence.jsonl` shou
## Current Shape
- Discord bot and worker are live.
- The unattended repo Face / CTB swarm is intentionally offline as of 2026-05-21. `GameCult Local Orchestrator` is disabled after the Aquarium failure where Faces leaked heartbeat labels, repeated saturated work seams, failed to banter, and kept turning Aquarium into work pressure. Read `notes/agent-swarm-shutdown-audit-2026-05-21.md` before any restart.
- The active teardown authority is now `notes/agent-swarm-teardown-plan-2026-05-21.md`. Treat it as the current map for repo Faces, CTB turns, Bifrost transport, public speech, and identity ownership. The conclusion is not "tune the heartbeat"; it is "rebuild the Face/Bifrost turn foundation before restart."
- The unattended repo Face / CTB swarm is live again as of 2026-05-21 after the teardown/restart pass. `GameCult Local Orchestrator` is enabled and owns the single hidden pulse for Bifrost dispatch, repo Face CTB turns, Void mood drift, Void moderation rumination, and the watchdog.
- The teardown authority remains `notes/agent-swarm-teardown-plan-2026-05-21.md`, but it is now a restart checklist and smell ledger rather than a stop sign. Keep using it when a Face/Bifrost/CTB boundary smells like prompt/parser/transport Jenga.
- The repo-controlled pause flag is `state/agent-swarm-paused.json`. While it is missing or has `"paused": false`, swarm runners may operate. While it has `"paused": true` or is malformed, the Face heartbeat runner skips and the orchestrator skips agent-swarm organs. This is the brake. Do not route around it.
- Postgres owns jobs, audit events, interaction memory, and rate-limit state.
- Qdrant owns history and source vectors.
@ -143,7 +143,8 @@ Git history and smoke artifacts carry routine proof. `state/evidence.jsonl` shou
## Likely Next Bounded Move
- Do not restart the swarm by momentum. The first teardown cuts have landed: `state/agent-swarm-paused.json` gates swarm organs, active child-facing prompt/provider framing says character turn instead of heartbeat, `sanitizeRepoIdentityPostContent` is gone, and public/work/state output now passes through a Spark/Codex parent Interpreter with one retry before routing or dropping. The child prompt is now roleplay-friendly: characters receive projected memory/mood/obligation context, write natural turns, and describe desired speech/work/reflection; the parent Interpreter translates into `STATE NOTE`, `SAY`, and `BIFROST TOPIC` blocks for the worker.
- Keep the swarm awake, but watch the logs with suspicion. The restart pass thawed `state/agent-swarm-paused.json`, enabled `GameCult Local Orchestrator`, restarted a fresh bot/worker stack, and verified healthy watchdog/Bifrost/repo Face pulses. The worker now parses full raw Interpreter output before Discord-length fitting, drops malformed action blocks instead of crashing, routes `SAY channel: owner` to owner DM, and opens a new Bifrost topic when a Face gives a symbolic `topic_id` that does not exist yet.
- Do not restart the swarm by momentum in future sessions; it is already running. If it must be stopped again, use `state/agent-swarm-paused.json` and the orchestrator task deliberately, then update this handoff.
- Direct Face `UPDATE REQUEST` dispatch no longer enqueues Bifrost agent transport. Legacy `UPDATE REQUEST` blocks are reconciled into Bifrost topics so governance remains inspectable.
- Live model-facing prompt prose has started moving out of executable code. The shared loader is `packages/shared/src/prompt-template.ts`; extracted prompt surfaces live under `prompts/`, including repo Face turn/reviewer prompts, provider wrapper prompts, situational social read prompts, source-grounding reminders, consensus-feed prompts, and repo Face model-smoke scenarios. Code should project data and select prompt names; prompt files should own behavioral prose.
- Identity collapse has started. Active bot, worker, MCP repo-identity tools, and Face CTB scheduler paths now load through the canonical Face registry and treat repo Discord identities as compatibility projections. Next bounded move is to finish removing remaining direct conceptual dependence on repo identities, then split the Face turn loop into scheduler, context assembler, prompt renderer, candidate parser, policy gate, and transport adapter.