diff --git a/AGENTS.md b/AGENTS.md index 09932c1..d348ab1 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -1,84 +1,30 @@ -Use the `voidbot` MCP server whenever the task touches Discord history, archived GameCult discussion, indexed GameCult repositories, Aetheria lore, or owner notifications. +# RETIRED & FROZEN + +**VoidBot was retired on `2026-10-22` and is FROZEN pending full retirement** (`eureka-body:follow_up:voidbot-retirement`, `void-body:ruling:stewardship-and-voidbot-teardown-2026-12-03`). + +- **HARD RULE — ZERO DISCORD TAINT (`gamecult-chat:ruling:discord-taints-training`):** **Never read archived Discord through VoidBot.** Do not invoke `search_history` or `get_message_context`, and do not inspect `.voidbot/rag/messages.json`, `.voidbot/history-vector-store.json`, or any archived Discord DBs or exports. +- **FROZEN SUBSTRATE:** Do not run the retired Discord bot, worker job loop, Persona/repo-Face swarm, or `npm run state:status`. Do not add new features or state mutations here. +- **FAIL-CLOSED MCP SURFACE:** When `VOIDBOT_MCP_TOOL_ALLOWLIST` is unset or empty, `apps/worker/src/mcp-server-tools.ts` defaults exclusively to the non-Discord read-only source-retrieval tools (`list_indexed_repos`, `search_sources`, `get_source_context`, `get_exact_source_document`). Commit completed work at the end of each pass unless the user explicitly asks to leave changes uncommitted or the work is clearly mid-surgery. Prefer small, intentional commits over letting a pile of unrelated edits rot in the worktree. -## Canonical Project State +## Canonical Project State (Frozen) -- Treat `state/map.yaml` as the canonical slow-changing project map. -- Treat `state/scratch.md` as disposable working memory for one bounded subgoal. -- Treat `state/evidence.jsonl` as the distilled durable ledger of what changed future belief. -- Treat `notes/fresh-workspace-handoff.md` as the compact re-entry packet. -- Treat `notes/voidbot-current-system-map.md` as the source-grounded explanation of the live control flow. -- Treat `notes/voidbot-implementation-plan.md` as the current larger-organ sequence. -- Update `state/map.yaml` when project understanding changes. -- Add evidence after meaningful research, implementation, verification, or rejected paths, but keep it distilled. Routine “I just did this” proof belongs in git history, commits, smoke artifacts, or targeted logs unless it changes what the next session should believe. +- `state/map.yaml` records the historical project map with `status: frozen`. +- `state/scratch.md`, `state/evidence.jsonl`, `notes/fresh-workspace-handoff.md`, `notes/voidbot-current-system-map.md`, and `notes/voidbot-implementation-plan.md` are retained as frozen historical artifacts pending full retirement. ## Important Paths -- Project root: `E:\Projects\VoidBot` -- Canonical map: `E:\Projects\VoidBot\state\map.yaml` -- Scratch surface: `E:\Projects\VoidBot\state\scratch.md` -- Distilled evidence ledger: `E:\Projects\VoidBot\state\evidence.jsonl` -- Branch ledger: `E:\Projects\VoidBot\state\branches.json` -- Handoff summary: `E:\Projects\VoidBot\notes\fresh-workspace-handoff.md` -- System map: `E:\Projects\VoidBot\notes\voidbot-current-system-map.md` -- Implementation plan: `E:\Projects\VoidBot\notes\voidbot-implementation-plan.md` -- State CLI: `E:\Projects\VoidBot\tools\voidbot_state.ts` -- Pre-compaction helper: `E:\Projects\VoidBot\tools\voidbot_prepare_compaction.ts` - -## Useful Commands - -```powershell -npm run state:status -npx tsx .\tools\voidbot_state.ts add-evidence --type research --status ok --note "..." -npx tsx .\tools\voidbot_state.ts add-branch --id branch-id --hypothesis "..." -npm run state:prepare-compaction -``` - -## Session Bootstrap And Re-entry Protocol - -On fresh session load, do this before wandering into implementation: - -1. read: - - `state/map.yaml` - - `notes/fresh-workspace-handoff.md` - - `notes/voidbot-current-system-map.md` - - `notes/voidbot-implementation-plan.md` -2. run: - - `npm run state:status` -3. restate the current next action from the persisted state before starting edits - -After compaction, resume, or suspicious continuity loss: - -1. rerun `npm run state:status` -2. reread `state/map.yaml` and `notes/fresh-workspace-handoff.md` -3. treat the persisted next action as authoritative unless fresh repo evidence contradicts it - -When context pressure is clearly rising: - -1. stop broad exploration -2. narrow the active move to one bounded organ -3. persist map or handoff updates, plus distilled evidence only when the lesson changes future belief, before the blackout lands - -When the user says to prepare for imminent compaction: - -1. run `npm run state:prepare-compaction` before editing persistence surfaces -2. use its warnings as the checklist for map, handoff, scratch, evidence, and git hygiene -3. update only the state that actually needs to change -4. rerun `npm run state:prepare-compaction` after edits -5. fix errors, address warnings, and commit the completed persistence pass unless the work is deliberately mid-surgery - -Prefer these tools over raw file inspection when they can answer the question: -- `list_indexed_repos` to discover valid indexed repository names before narrowing a source search -- `search_history` for semantic retrieval across archived Discord messages -- `get_message_context` for the surrounding conversation window around a message -- `search_sources` for semantic retrieval across indexed source trees and lore repositories -- `get_source_context` for the surrounding chunk window inside an indexed source document -- `notify_owner` for explicit Discord pings or long-running completion notices - -When searching GameCult repos or lore, start with `voidbot` retrieval instead of `rg --files` plus file-by-file reads unless you need exact edit targets or the indexed results are clearly insufficient. - -Do not inspect `.voidbot/rag/messages.json`, `.voidbot/rag/source-documents.json`, `.voidbot/history-vector-store.json`, or `.voidbot/source-vectors/` directly unless the MCP tools are unavailable or clearly insufficient. +- Project root: `F:\Projects\VoidBot` +- Canonical map: `F:\Projects\VoidBot\state\map.yaml` +- Scratch surface: `F:\Projects\VoidBot\state\scratch.md` +- Distilled evidence ledger: `F:\Projects\VoidBot\state\evidence.jsonl` +- Branch ledger: `F:\Projects\VoidBot\state\branches.json` +- Handoff summary: `F:\Projects\VoidBot\notes\fresh-workspace-handoff.md` +- System map: `F:\Projects\VoidBot\notes\voidbot-current-system-map.md` +- Implementation plan: `F:\Projects\VoidBot\notes\voidbot-implementation-plan.md` +- State CLI (frozen): `F:\Projects\VoidBot\tools\voidbot_state.ts` +- Pre-compaction helper (frozen): `F:\Projects\VoidBot\tools\voidbot_prepare_compaction.ts` ## Operating Discipline @@ -88,4 +34,3 @@ Do not inspect `.voidbot/rag/messages.json`, `.voidbot/rag/source-documents.json - Revert or discard changes that do not clearly improve the target. - If the diff grows while understanding shrinks, stop implementation and switch to diagnosis. - Keep maps and prose together; do not replace useful maps with prose-only explanations. -- Before handoff, compaction, or phase boundaries, sync `state/map.yaml`, add distilled evidence when the lesson changes future belief, refresh `notes/fresh-workspace-handoff.md`, and make the next action explicit. diff --git a/CLAUDE.md b/CLAUDE.md index 640c1a1..da8003e 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -1,3 +1,8 @@ +# RETIRED & FROZEN + +**VoidBot was retired on `2026-10-22` and is frozen pending full retirement** (`eureka-body:follow_up:voidbot-retirement`, `void-body:ruling:stewardship-and-voidbot-teardown-2026-12-03`). +**Never read archived Discord through VoidBot (`gamecult-chat:ruling:discord-taints-training`).** + Repository doctrine for this project lives in AGENTS.md, shared with Codex. @AGENTS.md diff --git a/state/map.yaml b/state/map.yaml index 9016164..44cd796 100644 --- a/state/map.yaml +++ b/state/map.yaml @@ -1,26 +1,22 @@ experiment: name: VoidBot - status: active - phase: hardening + status: frozen + phase: frozen premise: > - Keep VoidBot operable as a Discord-native assistant with real retrieval, - durable ops, and explicit project memory surfaces instead of letting - continuity dissolve into transcript fog. + Retired on 2026-10-22 and frozen pending full retirement + (eureka-body:follow_up:voidbot-retirement, + void-body:ruling:stewardship-and-voidbot-teardown-2026-12-03). + Never read archived Discord through VoidBot + (gamecult-chat:ruling:discord-taints-training). objective: primary: > - Maintain and extend VoidBot as a Discord-native assistant for GameCult with - grounded answers from archived Discord history, indexed source trees, and - Aetheria lore, while keeping the system understandable enough to modify - safely. + Frozen historical VoidBot repository pending full retirement. Never read + archived Discord through VoidBot (gamecult-chat:ruling:discord-taints-training). current: > - Keep the recovered read-only archive/source retrieval organ healthy on - surviving old Yggdrasil while the newly admitted source-refresh writer - completes its first recovery pass. The query path remains live and - read-only; `voidbot-source-refresh.service` owns public-repository mirroring - and coordinated archive/Qdrant writes outside the retrieval MCP boundary. - Keep Discord, worker jobs, Personas, moderation, and delivery stopped until - their missing authority and credentials are deliberately rebuilt. + Deactivated and frozen pending full retirement. Default MCP tool exposure + fails closed to non-Discord read-only source-retrieval tools only; Discord, + worker jobs, Personas, moderation, and delivery remain stopped. constraints: - Disaster recovery currently targets trusted old Yggdrasil at 94.130.75.184; retired Big Yggdrasil at 94.130.223.131 is not a GameCult host and must not be trusted or targeted. @@ -39,8 +35,7 @@ invariants: - Scratch is temporary and disposable. - Evidence is durable and distilled; routine activity proof belongs in git history, commits, smoke artifacts, or targeted logs. - Jobs, audit events, interaction memory, and rate-limit state live in Postgres; vectors live in Qdrant; archives, artifacts, logs, and backups remain under `.voidbot/`. - - Source, repo, and lore answers should use source-side retrieval when the reply depends on indexed facts; the hinting is advisory, not a lexical veto. - - When GameCult history, repo, or lore retrieval can answer the question, use the VoidBot MCP surfaces before raw repo spelunking. + - Source, repo, and lore answers should use source-side retrieval only when needed; archived Discord history must never be read through VoidBot (`gamecult-chat:ruling:discord-taints-training`). data_flow: observe: @@ -63,7 +58,7 @@ data_flow: active_subgoals: - Keep the deployed read-only `get_exact_source_document` contract inside the recovery allow-list. The source archive remains the sole owner; consumers hash and receipt returned content. Yggdrasil release `20260816T193315Z-c88c71909dbc` and the Starfire full-document witness prove the live path. - - Treat `notes/agent-swarm-teardown-plan-2026-05-21.md` as the historical teardown authority and the restart checklist. The repo Face swarm is live again, but only because the scheduler, prompt, model-output logs, parent Interpreter, Bifrost routing, and worker side-effect rails now have explicit observable boundaries. Keep watching for prompt/parser/transport Jenga before adding new swarm features. + - Historical note: `notes/agent-swarm-teardown-plan-2026-05-21.md` was the May 2026 teardown checklist. The repo Face swarm is retired and frozen (not live); VoidBot retired on `2026-10-22` and is frozen pending full retirement (`eureka-body:follow_up:voidbot-retirement`, `void-body:ruling:stewardship-and-voidbot-teardown-2026-12-03`). - 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. - The source-level `apps/persona-scheduler` design assigns repo Face and native Persona turn pulses to one scheduler process. Its `initiative-engine.ts` owns participant reconciliation, operator heat/speed projection, semantic-pressure commits, wall-clock advancement, active-turn freeze/completion recovery, queue-result commits, stale rescheduling, mention priority, rest/idle eligibility, and ready-order selection as a pure state machine. `state-store.ts` is the sole persistence/migration port: canonical state is one typed `voidbot.persona_scheduler_state` record in `repo-face-heartbeats.cc`; the old JSON shape is accepted only as a one-time migration source and emitted afterward only as a debug/dashboard projection. Missing state is explicit, malformed CultCache fails closed, and the backing store promotes atomic MessagePack writes. Discord attention crosses through immutable per-mention `voidbot.persona_attention_command` CultCache inbox documents resolved from that same canonical path; the bot creates commands, while the scheduler alone ingests, deduplicates, commits, and acknowledges them after durable state. `active-turn-source.ts` reports only Persona job liveness and may fail stale queue claims; it has no Void lock or moderation authority. Persona initiative never registers or dispatches a built-in Void system participant. No current Yggdrasil process runs this scheduler or the independent moderation, rumination, physiology, memory, and candidate-delivery organs. @@ -105,7 +100,7 @@ accepted_design: - Deterministic cleanup code should not become a permanent organ just because recent manual cleanup requests accidentally produced compensators. The desired architecture prevents bad state from entering, then uses narrow migrations for historical debris. - `owner_codex` and `local_llm` remain distinct lanes with different tool-execution and safety posture. - Ephemeral room-reading should come from an explicit local-LLM sidecar inference pass plus raw recent-message evidence, not from a rules bucket pretending to understand natural language. - - The VoidBot MCP server is the preferred search plane for archived Discord, indexed GameCult repos, Aetheria lore, and owner notifications. + - Historical note: the VoidBot MCP server previously served archived Discord, indexed GameCult repos, Aetheria lore, and owner notifications; under `gamecult-chat:ruling:discord-taints-training` and `void-body:ruling:stewardship-and-voidbot-teardown-2026-12-03`, archived Discord must never be read and the default fail-closed MCP allowlist exposes only non-Discord read-only source retrieval. - Bot-directed prompts should remain in the raw Discord archive for forensics, but default history indexing and retrieval should treat them as toxic self-reference rather than ordinary community memory. - Moderation review should run as a separate local Codex scheduled loop with tracked rules prompt surfaces plus one ignored structured state file, escalating via `notify_owner` instead of pretending the live Discord bot is a silent auto-punishment machine. - The moderation agent should think of itself as a constructive participant as well as a reviewer, and its ignored structured state should follow a Ghostlight-shaped identity/canonical-state/goals/memories/overlays/runtime split rather than a flat notes bucket. @@ -293,5 +288,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: Yggdrasil VoidBot revision `3fa4a8742060ac54b9f0e27b8d8751db76fd3a8c` retains the typed swarm publisher and read-only `voidbot-retrieval.service`. Source-writer restoration and continuity are achieved under gamecult-ops revision `a1c5fc8bec7f7aaf565d8cddcf486605021c7416`: systemd oneshot `voidbot-source-refresh.service` has a 24-hour timeout, its hourly timer is active, and `/usr/local/sbin/refresh-voidbot-sources` processes one repository per stable `voidbot-source-indexer` container while removing a repo from pending only after success and logging `embedded_chunks=N/total`. The redesigned live pass is PID 2279696, `phase=index`, `detail=repo_1_of_56:AetheriaEve`, with 56 repos pending and witness `Repo AetheriaEve: embedded_chunks=64/3739`; Qdrant is green at approximately 93,701 points. Aetheria is already committed and excluded from reconstructed pending. Before that commit, the measured outstanding delta was 69,060 chunks across 51 repos. Full catch-up and final collection agreement remain pending. Discord, worker, Persona scheduler, Postgres, and resident cognition organs remain absent. - next_action: Keep observing PID 2279696 through `/srv/voidbot/retrieval/status/source-refresh.status`, `/srv/voidbot/retrieval/log/source-refresh.log`, and `/srv/voidbot/retrieval/status/pending-repos.txt`. Writer service restoration is complete; corpus recovery is not. Verify per-repo progress continues, each success durably leaves pending, the full pass settles with no pending work, archive and Qdrant agree, the read-only MCP lists/searches exact current sources, the hourly timer remains active, and no stale indexer container survives. + summary: VoidBot retired on 2026-10-22 and is frozen pending full retirement (`eureka-body:follow_up:voidbot-retirement`, `void-body:ruling:stewardship-and-voidbot-teardown-2026-12-03`). Discord, worker, Persona/repo-Face swarm, Postgres, and resident cognition organs are stopped. `VOIDBOT_MCP_TOOL_ALLOWLIST` fails closed to non-Discord read-only source retrieval (`list_indexed_repos`, `search_sources`, `get_source_context`, `get_exact_source_document`). Never read archived Discord through VoidBot (`gamecult-chat:ruling:discord-taints-training`). + next_action: Keep VoidBot frozen pending full retirement teardown; do not reactivate Discord history retrieval or the retired Face swarm.