From 65d9fef5b953d0024c96dfd857e04bdb55c6ccec Mon Sep 17 00:00:00 2001 From: Mute Date: Wed, 11 Nov 2026 22:04:46 +0000 Subject: [PATCH] docs: roadmap with SOTA review, steal list, and review decisions --- README.md | 1 + ROADMAP.md | 155 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 156 insertions(+) create mode 100644 ROADMAP.md diff --git a/README.md b/README.md index d67686e..23531c5 100644 --- a/README.md +++ b/README.md @@ -290,6 +290,7 @@ transcripts — same pattern as the housekeeper, smaller job. ``` system.md system prompt for the player-model (play-side only, shared) housekeeper.md system prompt for the post-session housekeeping model (shared) +ROADMAP.md SOTA review and steal list, worked point by point config.json the default run tool/ memory.mjs the clerk: runs, init, seed, render, apply, insert, delete, diff --git a/ROADMAP.md b/ROADMAP.md new file mode 100644 index 0000000..7cb3ebe --- /dev/null +++ b/ROADMAP.md @@ -0,0 +1,155 @@ +# Roadmap — SOTA review and steal list + +Reviewed 2026-11-11 via web survey: consumer companion apps, power +frontends, agent RP frameworks, memory research. Items below are meant to +be worked through one by one; statuses in caps, decisions dated. + +## The landscape (what exists, as of the review) + +| Family | Exemplars | Memory approach | +|---|---|---| +| Consumer companions | Character.AI, Nomi, Kindroid, Replika | Pinned facts + layered stores (Nomi short/med/long; Kindroid persistent + cascaded + retrieved, ~480K chars). Differentiator: visible, editable memory UIs (Nomi Mind Map, Kindroid Learned Context) | +| Power frontends | SillyTavern + extension ecosystem (CharMemory), RisuAI, Agnaistic | Four bolt-ons assembled by the user: lorebooks (keyword-triggered push), Summarize (rolling lossy flatten), Vector Storage / Data Bank (embedding-similarity pull RAG). ST's own docs hedge calling any of it "long-term memory" | +| Story platforms | AI Dungeon, DreamGen, NovelAI, LoreWeaver, aiga_ | Story Cards / Scenario Codex / lorebooks + auto-summaries; world state for multiplayer. Author-curated, static once written | +| Agent RP frameworks | Talemate, Letta | Multi-agent (narrator, summarizer, director, world-state, editor); Letta: agent-editable memory blocks, agent-immutable archival, and as of 2026 a git-backed markdown memory FS with a "dream" reorganization subagent | +| Memory research | Generative Agents (Stanford), Mem0, Zep/Graphiti, MemoryBank, AssoMem | Scored retrieval (recency × importance × relevance); ADD-only consolidation (Mem0 v3); bi-temporal fact invalidation (Zep); hybrid BM25+vector+graph retrieval | + +Context: a 2026 25-platform rubric scored only Kindroid and AI Dungeon +4/4 on long-term recall; most consumer apps scored 1/4. The industry's +long-memory problem is unsolved. Our test aims at that gap. + +## Validation receipts (we built it first or in parallel) + +- Letta 2026 converged on our substrate: git-versioned markdown memory + + separate housekeeping subagent ("dream") + defragmentation passes. +- Generative Agents' retrieval score = recency × importance × relevance; + our rings encode recency (MRU) and importance (A/B) structurally, + relevance at query time. Their importance is LLM-rated 1–10 at write; + ours is the housekeeper's classify/promote judgment — the harder version. +- Talemate mechanized our prompt-level guards: per-character knowledge + ("characters know only the passages they were present for") and + per-character perspectives (their version of rings-as-her-memory). +- Mem0 v3 went ADD-only because reconciliation "destroyed context" — the + same fear behind our verbatim-dump discipline. We keep reword (rings are + state) but with journal + git audit, so we get append-only history + without giving up state semantics. Their warning is our observable #3. +- Zep's fact invalidation ≈ our reword-with-audit; their token-efficient + "Context Block" ≈ our rendered views. +- Letta's tier guidance ("always visible → blocks; changing state → + blocks; query on demand → archival") = our status/rings/records split, + discovered from the other direction. + +## Architectural decisions from the review (2026-11-11) + +- **SPA: yes, eventually. The bridge is the MVP.** The SPA's defining + features per the review: fiction-first chat UI, GM console, context + inspector (steal #6), memory browser (steal #7), turn surgery buttons + (steal #2 with UI), housekeeping job runner. +- **Voice examples: accepted** — will be present (steal #1). +- **Single LLM player, for now at least.** Mechanical per-character data + separation (Talemate-style knowledge tracking, per-character + perspectives) is superfluous — the run boundary already separates + memory. Revisit only if multi-PC play ever happens. +- **System-1 classification: extension point.** The capability is + available, but large models tend not to use it unprompted. If a + concrete place appears (inline poignancy/importance ratings at write + time, instant gate calls), wire it then. Not designed for speculatively. +- **Visuals: paperdoll engine, not diffusion — much later**, when there + is a solid thing to visualize. Note the synergy: the status tier's + `outfit` key can drive paperdoll layers directly, same as it drives + prose. Procedural, state-driven, no model in the loop. +- **TTS: trivial add-on at any moment.** Park it. + +## The steal list (work point by point) + +### 1. Voice examples in the character sheet — ACCEPTED +`mes_example` from the character-card spec: 2–3 sample exchanges per +character. The strongest voice-calibration tool the RP community has. +Cost: zero (content). Add an example-dialogue block to the character.md +template and to both casts when drafting. +Status: ACCEPTED (2026-11-11). + +### 2. Turn surgery: /retry, /edit in the bridge — OPEN +Swipes/regeneration and message editing exist in every serious platform; +our bridge appends immutably. One bad model turn should be retryable, +one bad GM typo editable. Cost: small (truncate messages, re-call). +Status: OPEN. + +### 3. Transient status digest injected post-history — OPEN +The Author's Note / `@@depth` / `post_history_instructions` pattern: +instructions placed after history get better adherence. Bridge would +append a fresh, compact status digest as the last thing before +generation — transient (in the API view only, not the session log), +re-read from `canon/status.md` each call. Pilot and measure adherence. +Cost: small. +Status: OPEN. + +### 4. Generation params passthrough — OPEN +Every frontend exposes sampler settings; the bridge sends none. +`bridge.json` gains an optional `params` object spread into the request +body (temperature, top_p, etc.). Cost: trivial. +Status: OPEN. + +### 5. Hybrid retrieval for records_search — OPEN, DEFERRED +SOTA baseline is BM25 + vector + entity-boost (Mem0 v3, Zep). Our +LIKE-only search is fine at boutique scale. Upgrade path: SQLite FTS5 + +label-match boosting (cheap, no embeddings — our records are curated +one-liners, embeddings still solve a problem we don't have). +Cost: cheap. When: records > ~50 cards. +Status: OPEN (deferred until scale demands). + +### 6. Context inspector — OPEN (SPA) +CharMemory's Injection Viewer: per-category token breakdown of exactly +what the model sees (system, backdrop, card, status, rings, history, +tool results), stacked bar, actionable tips. Our audit is archaeology; +this is a glance. +Status: OPEN (SPA). + +### 7. Memory browser — OPEN (SPA) +Nomi Mind Map / Kindroid Learned Context: a browsable "what she +remembers" view over rings, records, status, journal. The observability +feature for reviewers and for you as GM. +Status: OPEN (SPA). + +### 8. Cheap-model housekeeping / decision oracle — OPEN +Talemate runs each agent on its own model, including a small "decision +model" for oracle calls. The housekeeper can already run on any model +(it's a separate invocation); `ds4-flash` housekeeping is one config +away when cost matters. Same for a fast oracle in the SPA. +Status: OPEN. + +### 9. Character-card V3 import/export — OPEN (OPTIONAL) +Portability to/from the ST ecosystem (PNG-embedded cards, CCv3 spec). +Only if sharing characters with the outside world ever matters. +Status: OPEN (low priority). + +### 10. Mid-session housekeeping trigger — DEFERRED +Talemate summarizes on token thresholds; Letta dreams on compaction. +Our housekeeping is per-window; a marathon session has no relief valve. +Current answer: close the window. Fine for the test; revisit if real +sessions regularly overflow. +Status: DEFERRED. + +## Rejected, with reasons + +- **Keyword-triggered lorebook injection** — push pollutes context and + breaks pull discipline; the "a miss is a miss" test depends on + deliberate lookup. +- **Vector embeddings over the rings** — rings are small, curated, + always-in-context. Embeddings solve problems we don't have. (Records + tier may eventually want FTS5 — see #5 — still no embeddings.) +- **ADD-only housekeeping** — we keep reword: rings are state, and + journal + git give the append-only audit Mem0 wanted without losing + state semantics. Their drift warning stays on the observables list. +- **Group chat / multi-character modes, "impersonation"** (model writes + the user's turn) — antithetical to GM authority and the single-PC + premise. +- **Diffusion image generation** — superseded by the paperdoll decision + above. + +## Notes + +- Web research goes stale; re-survey before acting on anything in the + landscape table. The steal list items stand on their own. +- The NSFW-preset body of prompt craft was deliberately not mined — our + own substrate has no censor to engineer around.