4b8fbd7471
The rulings (developer, 2026-11-19, in conversation): a deployment basically always needs a fronting proxy, so the listen address is code -- loopback, no override (an op who wants otherwise owns their own socat); the port rides the RP_PORT env var (the RP_BASE twin the test scripts use, default 7350, garbage refused loud); server.json is deleted entirely, file and reader both, because it held no meaningful configuration once the bind died -- only the dead bind and the declared contwin; and contwin is provider/model dependent, never a deployment global, so the meter must DISCOVER it, not read a declaration.
The meter: the run detail's context block now derives its window from the registry -- modelState's resolved player spec, findModel, the model's input ceiling -- null when the provider states none or no pick stands, pct computed against that. A dividend named in review: pct is uncapped, so a mid-run re-pick onto a smaller model shows the meter over 100% BEFORE the first send refuses (the endpoint's own context-length 400 is the designed refusal -- no pre-request check, nothing truncates, the failed call lands its req event, the composer keeps the line per the standing rule).
Debug mode reworked around its real purpose (skip the invite dance on a fresh server, mocks in particular): the old shape -- every request the superuser, no auth at all -- left any debug server that somehow reached a network fully open. Now one fixed superuser behind a real bearer token: minted into state/debug-token.txt (the bootstrap-invite precedent -- a raw secret on disk so a restart never invalidates what the tester already pasted; the developer ruled persist), printed at every boot, and the claim screen gains the paste path ("or paste a token": store it, verify through the public /session, land or banner). The paste path is generic surface, not debug-only: tokens are returned once and never listed, so a pasted saved token is the only browser-migration path that existed to build. The public /session carries a debug flag so the claim hint says "paste the token the server printed at boot" instead of pointing at the bootstrap file debug never mints. Debug browser passes now exercise the real auth path (the 401, the u: attribution line) instead of bypassing it.
En-route mock fidelity fix the smoke earned: the mock path never set s.usage (no provider call happens), so every usage and context surface was null under the smoke -- the first cut of the new gauge assertion failed on exactly that. The mock now carries a synthetic usage (the assembled view's chars over 4), riding the msg events like the real path's, so the detail's usage and the context gauge are smoke-assertable: contwin 524288 straight from the mock's registry input ceiling, pct computed.
Verified: typecheck green both programs; smoke ALL PASS (+1, the discovered-gauge assertion); restart + reminder checks green (5 runs again); a browser pass on --mock --debug end to end -- the wrong token banners "token rejected" and stays on claim, the printed token lands as Debug the op, the stored token survives a server restart (the persistence proof), zero console errors; check-repo clean (it caught the round's own "window" in the new README passage -- contwin is the word); the dev machine's server.json deleted and the debug server restarted on the real state (Chloe and Irene rebuilt, the token minted into the real state/). Docs: README's deployment and debug passages, the config passage, and the layout tree (the server.example.json lines gone with the file); DICTIONARY's meter and contwin entries (the config key died with the file -- the dated rename record keeps its day's words); AGENTS's server entry and the two server.json gotchas; HANDOFF's round record and the push-queue count (now eight). The developer's operator-queue line ("revisit the debug mode, hardcode loopback") is struck by them in the same commit. packages/detention stays untracked WIP, untouched.
633 lines
36 KiB
Markdown
633 lines
36 KiB
Markdown
# 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.
|
|
|
|
## Developer's queue (don't edit, don't work on)
|
|
|
|
- "create new package" in SPA
|
|
- calibration package: classic dungeon (pve, minimal npcs)
|
|
- external sec review
|
|
- refactor to add first-class GM agent
|
|
- entirely safe-for-work package. space? vault?
|
|
- revisit what fetch does and SPA reactivity
|
|
- user manual
|
|
|
|
## 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 x importance x 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 x importance x 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)
|
|
|
|
- **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.** Prediction (2026-11-11):
|
|
models deep in roleplay flow won't spontaneously self-interrupt with
|
|
structure (JSON, classifications, status declarations) -- register
|
|
momentum eats it, and instruction weight decays with context distance.
|
|
Native tools remove the *format* barrier but not the *attention*
|
|
barrier; expect missed updates even in tool mode. Design principle:
|
|
**the flow is sacred** -- anything mechanical rides a structural channel
|
|
(tools) or lives outside the flow (housekeeper, GM, watcher);
|
|
prompt-nagging mid-flow is the last resort. System-1's natural homes:
|
|
(a) GM-side aids -- salience pre-pass before housekeeping, quick oracle,
|
|
transcript review helpers; (b) an auxiliary watcher agent -- a cheap
|
|
model reading the live session JSONL, flagging touches, stance drift,
|
|
and status lag; it proposes, never writes, and its flags become hints
|
|
the housekeeper verifies at housekeeping. Two-speed memory: watcher = salience
|
|
capture (recall), housekeeper = consolidation (precision), GM =
|
|
authority. The seam exists: sessions/*.jsonl is the watcher's food.
|
|
Player-side missed-update rate becomes a testable observable.
|
|
- **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 harness -- product and deployment decisions (2026-11-13, GM)
|
|
|
|
The project's goal, stated for the first time (now also in README): the
|
|
memory test exists to arrive at a **usable roleplaying harness** people
|
|
can enjoy making stories on. End shape: clone and run it yourself, or an
|
|
invite to a running instance -- the LLM key lives on the backend, so
|
|
invited players need neither the host's secrets nor their own key. No
|
|
secret ever lives in the repo in cleartext (config pattern: committed
|
|
example, gitignored real file, env-var option).
|
|
|
|
- **The repo ships code and authored content, never run state.** Saved
|
|
state is per-deployment. Three layers: repo (code, prompts, packages)
|
|
-> deployment (a clone + server.json + runs/) -> run (a story). A fresh
|
|
clone boots with zero runs; the first act is creating one from a
|
|
package.
|
|
- **Packages are presets; runs are instances.** Creating a run copies
|
|
the package into `runs/<id>/` -- every file, `gm.md` and the shared
|
|
prompts included -- then inits the db. After creation the run directory
|
|
is the only truth: everything is editable at any time, and the
|
|
discipline not to break a running narrative sits with the user/GM.
|
|
`packages/` is read exactly once per run, ever. Edits to a copied
|
|
file land at the next session-open (no hot reload into an open
|
|
session). Packages carry authored content only -- `canon/`, `db/`,
|
|
`dumps/`, `log/`, `manifests/`, `sessions/` are all state and are
|
|
born in the run at creation. (Amended 2026-11-16: the turn-0.md
|
|
opener is retired -- the opening is her authored turn in
|
|
carryover.jsonl, GM-written, whose authored blocks are the state
|
|
seed; the start gate lints it and the old opening event is inert
|
|
history.)
|
|
- **The seed is initial state of the run.** (Superseded 2026-11-15,
|
|
the dormant-session rework: seed.json is gone. Its successors are
|
|
carryover.jsonl -- the authored opening turn, whose authored blocks
|
|
are the state seed -- and memory.json, authored draft material
|
|
applied by the start gate's reapply over a fresh db.)
|
|
- **Per-run model selection.** `server.json` names one endpoint
|
|
(baseUrl, key) plus default models (player, housekeeper). A run
|
|
carries per-run overrides for both roles (`run.json` `models:
|
|
{player, housekeeper}`, wired in the SPA 2026-11-14 -- setup for
|
|
drafts, the play aside for started runs; each call resolves fresh,
|
|
so a mid-session switch takes the next turn) -- the comparison rig:
|
|
same package, different models, identical prompts. (Amended
|
|
2026-11-16, model discovery: the upstream listing is never queried
|
|
in play -- state/models.json is the registry of selectable models,
|
|
written by the op's two-step discover/refine act and gating all
|
|
model use; server.json's explicit pick beats the registry's
|
|
(Amended 2026-11-18, the provider round: the picks are full specs
|
|
{provider, model, effort} -- no unset effort, the per-run sampling
|
|
knob layer retired (params are per-turn, the <mind> verb's alone);
|
|
the deployment-default layer became the op's per-provider
|
|
selection, which also names the refine curator. #16 closed with
|
|
it: the housekeeper inherits the player spec's provider default.
|
|
Picks are invalidatable -- a removed provider, a drifted or
|
|
disqualified model blocks the run until the GM re-picks, the note
|
|
naming what died.)
|
|
- **The player prompt is battery included, split along ownership seams
|
|
(ruled 2026-11-13; cut executed by the GM 2026-11-14).** Three tiers,
|
|
three files:
|
|
1. **Substrate facts** -- `invariants.md`, repo-fed at assembly, never
|
|
copied, travels with the code: the syntax markers the renderer
|
|
parses registers by (plain = speech, *italic* = narration,
|
|
single-paren OOC), the tool-channel contract, the memory contract,
|
|
records availability via the tool list, the block transport
|
|
**and the status's three-part admission gate** (moved into the
|
|
substrate tier in the GM's cut). (Amended 2026-11-16, the
|
|
full-block protocol: the delta verbs retired -- the player emits
|
|
whole `<status>`/`<agenda>` lists, absent means unchanged, and
|
|
the `<sheet>` channel joined 2026-11-17.)
|
|
Implementation-agnostic by design: storage details
|
|
unimportant, the tool manifest is self-describing.
|
|
2. **Opening + guards** -- `system.md`, per-project, repo-fed, never
|
|
copied: the glossary, the purpose statement, the input-validation
|
|
bucket model, the four communication layers, the addresses-the-
|
|
model rule, the Refuse cases. The deployment owner tunes the house
|
|
security posture; individual runs never carry it. (`guards.md` as
|
|
a separate file is dead -- the guards live in system.md.)
|
|
3. **Craft** -- `handbook.md`, copied per run at creation, freely
|
|
editable: the shape of play, thoughts, purview, time skips,
|
|
continuity, content stance -- **hard limits included**. Different
|
|
people have different content they don't want to deal with and
|
|
different styles of preferred RP; we ship what works for us,
|
|
users adjust to taste.
|
|
Assembly (confirmed 2026-11-14): one system-role message, assembled
|
|
in order -- `system.md`, `invariants.md` (both repo-fed), then the
|
|
run's `handbook.md` copy -- then the rest of the bundle as GM
|
|
messages. The payoff: repo-level tweaks to the opening, guards, and
|
|
substrate reach existing runs; craft edits are per-run. The GM's cut
|
|
also resolved the OOC syntax conflict (system.md no longer teaches
|
|
`((double parens))`).
|
|
Amendment (GM, 2026-11-14): `housekeeper.md` is repo-fed at housekeeping,
|
|
never copied into a run, never user-exposed. The seam is not
|
|
machinery vs taste but the exposure rule: everything that enters
|
|
the bundle is inspectable read-only (`system.md`, `invariants.md`
|
|
included -- the user should understand how the model is prompted);
|
|
`housekeeper.md` never enters the bundle -- it prompts the separate
|
|
internal housekeeper agent.
|
|
- **The audit moved into the run.** Runs are gitignored, so the
|
|
commit-per-pass ritual is retired. At apply time the clerk snapshots
|
|
`dumps/w<N>.sql`; post-apply review is async -- the session log against
|
|
the snapshot diff. Provenance of what the model was sent is the
|
|
session jsonl (it logs the as-sent bundle); the canon views are
|
|
regenerated state, not provenance. A run may later self-version
|
|
(git init inside a run) as the service step's backup/export story --
|
|
designed for, not built.
|
|
- **The service step is later, with its own design round.** (Amended
|
|
2026-11-14: the auth/invites/multiuser half is BUILT -- see DECISIONS
|
|
#22-31; the service step that remains is the hosting story alone --
|
|
clone-and-run already works, a running instance is one deployment
|
|
away.) (Amended 2026-11-18: the first public deployment's shape is
|
|
ruled -- a burble-hosted VM, Debian 13, small single-core (the
|
|
specifics live in the gitignored .ssh/, AGENTS stays generic).
|
|
TLS terminates in caddy, never in node (GM: the server stays
|
|
loopback http, caddy reverse-proxies; the certificate rides
|
|
caddy's automatic TLS-ALPN-01, the challenge type that needs only
|
|
443 -- the HTTPS-only forward). The deploy pipeline is under
|
|
discussion, a gitea runner the leading idea; node on the box
|
|
comes via nvm at the current stable branch, no version pin
|
|
(GM, 2026-11-18 -- apt's node is too old for node:sqlite, and
|
|
The provider config is a first-class ENTITY now (GM, 2026-11-18,
|
|
superseding the same day's vector): a user-named slug, config in
|
|
state/config.json (server-written, SPA-managed, zero hand edits),
|
|
the free keyless default as the opencode/free singleton --
|
|
authless, auto-added and discovered on the empty provider list
|
|
(the self-heal rule), removable only while another provider
|
|
stands. A fresh deployment ships playable with zero secrets and
|
|
zero manual files; the first human beat is the model selection
|
|
after the auto-discovery greets the op.
|
|
rulings beside it: release dirs with a moving symlink, the
|
|
graceful stop as an in-process state machine
|
|
(starting -> alive -> waiting -> exited, USR1 = drain, uncancellable,
|
|
TERM/HUP/QUIT immediate, systemd KillSignal does the glue), and
|
|
the state home moving out of the repo (default ~/.tiny-worlds,
|
|
env override, first-start scaffold -- the release tree carries
|
|
nothing gitignored).
|
|
- **Boutique is dormant** -- a stub that never reached its design step;
|
|
untouched until its drafting session.
|
|
- **Stack: zero-dependency runtime** (DECISIONS #4, amended
|
|
2026-11-15). `node:http` with a hand-rolled router, no-build
|
|
vanilla ES-module SPA; clone-and-run with node alone. Dev tooling
|
|
is exempt: `typescript` + `@types/node` type-check the JSDoc
|
|
annotations (`tsc` no-emit -- everything stays `.mjs`). The hard
|
|
parts of this project are prompt-side and clerk-side; the web side
|
|
at loopback single-user scale is the easy part.
|
|
|
|
## The multiuser server (2026-11-14, GM)
|
|
|
|
BUILT (2026-11-14, mock-proven end to end) and retired from the
|
|
roadmap in the 2026-11-17 audit. The durable record: the rulings in
|
|
DECISIONS #22-31, the surface rules in README (ownership, the
|
|
story's public read, invites, forks, ownerless runs), the design
|
|
history in the git log. The one open tail from that round -- proper
|
|
user lifecycle and auth story (sign-out, token expiry, multiple
|
|
devices) -- remains a distant extension point: signing in is
|
|
permanent and per-browser, and revisit waits for a real need.
|
|
|
|
## SPA v1 -- substrate decisions (2026-11-12, GM)
|
|
|
|
BUILT, and retired from the roadmap in the 2026-11-17 audit: the
|
|
phasing completed 2026-11-14 (all four phases), the API sketch was
|
|
superseded by README's living API documentation, and the substrate
|
|
doctrine it fixed -- the log is truth and the context a projection,
|
|
thinking never returns, OOC is the paren channel, the context meter,
|
|
the reminder's single-copy policy -- lives in README. What the audit
|
|
kept from this section is the one design not yet built:
|
|
|
|
- **Turn surgery -- BUILT as the rewind (2026-11-17).** The GM took
|
|
"session rewind" off the operator queue and ruled the simpler
|
|
design: rewrite-here stands (an unfortunate GM turn is re-sent,
|
|
everything after it leaves the live context), but the mechanism is
|
|
physical truncation at the send, not typed cut events -- fork is
|
|
the preservation story (fork before rewinding keeps the branch; no
|
|
fork, no archaeology). Window-scoped stands by construction: the
|
|
rings never move mid-session, so a live-session cut needs zero
|
|
compensation, and post-housekeeping corrections remain proper
|
|
retcons. The floor is the start marker (the frozen opening);
|
|
every send guards staleness via `expect` (the log line count it
|
|
was composed against). The full rulings live in the amendment
|
|
under DECISIONS #15. The records verbs are off until they are
|
|
rewind-compatible (same ruling) -- the journaled-mutator
|
|
compensation the original saga rule sketched is what their return
|
|
build owes.
|
|
|
|
## The steal list (work point by point)
|
|
|
|
### 2. Turn surgery: /retry, /edit in the bridge -- BUILT AS THE REWIND (2026-11-17)
|
|
Rewrite-here, not fork-here, exactly as decided (DECISIONS #15); the
|
|
build's amendment lives there too. What the build changed from the
|
|
original sketch: the jsonl keeps no surgery entries -- the send that
|
|
carries `rewind` truncates the log to its target and lands the new
|
|
turn in one commit (fork is the preservation story), and /retry never
|
|
existed -- resending the same words after a rewind is the retry
|
|
(the GM had no recollection of where /retry even came from; dropped).
|
|
The bridge itself was retired before this ever built; the feature
|
|
lives in the server's turn loop. The records half of the saga rule
|
|
(journaled-mutator compensation) is owed when the records tools
|
|
return.
|
|
|
|
### 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).
|
|
|
|
### 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-session; a marathon session has no relief valve.
|
|
Current answer: close the session. Fine for the test; revisit if real
|
|
sessions regularly overflow.
|
|
Status: DEFERRED.
|
|
|
|
## Parked for later (2026-11-18, the provider round)
|
|
|
|
- **The pre-refine deterministic short-list.** The battery bills
|
|
every model on a provider; a deterministic rule over the scrape's
|
|
own metadata (ceilings, id heuristics) can short-list what gets
|
|
probed when the list is big. The op's refine stays the surface;
|
|
the rule is a cost valve, not a gate.
|
|
- **The GM's model-selection UX polish.** The spec model landed in
|
|
the data and the surfaces; the remaining roughness (the selection
|
|
prompt's presentation, the create flow landing the pick at
|
|
create-time vs setup-time) is interface craft for a later pass.
|
|
## Deferred tasks (ruled out of the dormant-session rework, 2026-11-15)
|
|
|
|
- **The records mid-run unlock (found in the 2026-11-19 duties
|
|
audit).** README's memory tiers table promises records access
|
|
"none -- until the GM unlocks it in the story", but no such
|
|
channel exists: `records` is a settings bool fixed at creation,
|
|
`settings.json` is read-only in the file API, and a mid-run flip
|
|
is an op filesystem edit during dormancy. Either build the unlock
|
|
channel (a dormancy-editable setting at minimum, an in-story
|
|
trigger at most) or fix the table's promise.
|
|
- **Save-as-package beyond drafts.** Today it fires only from
|
|
never-started runs. Opening it to any dormancy raises unanswered
|
|
questions: which carryover rides (the dormant session's story tail
|
|
vs session-1's spent authored opening), which memory (the authored
|
|
memory.json vs evolved rings -- needs a rings-to-manifest export),
|
|
whether spent carryovers survive start. All questions open. The
|
|
principle proposed, not ruled: a package is a starting point, never
|
|
a snapshot -- fork is the continue-this-story verb.
|
|
- **The carryover editor.** (Amended 2026-11-17: the raw surface
|
|
exists -- the file editor edits a continuation carryover during
|
|
dormancy, save-linted, blocks included.) What remains deferred is
|
|
the purpose-built editing surface over the dormant view's
|
|
read-only render.
|
|
- **gm.md desync on rewind (GM, 2026-11-17).** Notes taken at turn
|
|
30 survive a rewind to turn 20, orphaned from the narrative --
|
|
references to events that never happened. Parked: nothing
|
|
mechanical is safe there (the substrate cannot know which note
|
|
lines anchor to which turns); the honest tools are GM discipline
|
|
and fork-covers-it (the fork copies the notepad with the branch).
|
|
|
|
## Design research -- teaching style and the happy camper (2026-11-19)
|
|
|
|
Two open design questions worked in conversation, nothing built or
|
|
scheduled. This is the record so the future rounds start from the
|
|
findings instead of re-deriving them. Findings only: the worked
|
|
examples stay out of the file, the ideas are stated generic.
|
|
|
|
### Teaching the model style; distilling prior art as the shortcut
|
|
|
|
The goal: player prose in a chosen literary register (symbolic,
|
|
colourful, witty, immediately legible) without shipping a corpus of
|
|
examples in the prompts.
|
|
|
|
- **Adjectives do not work.** Asking for "witty, colourful" summons
|
|
the model's caricature of those words, and the caricature IS the
|
|
failure mode (ornament, uncashed metaphor, workshop mush). The
|
|
priming lesson applies twice over: counterexamples prime what they
|
|
prohibit, so the defense must be stated as positive tests.
|
|
- **Register is a consequence, not a setting.** Wit and colour
|
|
emerge from a mind holding a specific vocabulary that the
|
|
situation keeps breaking; the vocabulary is material, and
|
|
material can be authored. Generic minds produce generic prose;
|
|
the fix is input, not instruction. Register is also where
|
|
analysis and generation split: models read a register fine,
|
|
they cannot reliably HOLD it while writing -- subtext promotes
|
|
to text, or the scene tips crude. The register being
|
|
load-bearing (about something) is what separates craft from
|
|
decoration.
|
|
- **The runtime mechanism already exists: entrainment.** The
|
|
bundle's own prose (backdrop, character, her authored opening
|
|
turn) is the in-context style corpus, and the GM's narration
|
|
re-teaches every turn ("match its register the way you match its
|
|
format" is already the content-stance ruling). Nothing new rides
|
|
the contwin; what is missing is authored material in the
|
|
register.
|
|
- Corpus-free levers, cheapest first:
|
|
1. **The GM's own narration** -- the biggest live lever, testable
|
|
today with zero changes. Costs the GM every turn; risks making
|
|
the story's voice the GM's rather than hers.
|
|
2. **The package lens** -- character.md's voice field as a
|
|
perceptual vocabulary ("she was a court reporter; she thinks
|
|
in testimony"), backdrop written in-register, the opening
|
|
turn in-voice. The mind-verb philosophy applies: the substrate
|
|
teaches the channel, the package teaches the vocabulary.
|
|
3. **Moves as tests, with inline micro-examples** -- the metaphor
|
|
states its meaning in the same breath (the prompt-prose house
|
|
rule applied to her output); an image lands once, never
|
|
restated three ways; the concrete detail undercuts the high
|
|
line on purpose. Inline authored examples are house style
|
|
("tense is the camera" passed the red pen with examples riding
|
|
along), not a corpus -- where the micro-example/corpus line
|
|
sits is the GM's to rule.
|
|
4. **Fix the two lines that teach the disease** -- the reminder's
|
|
"Decorate the turn with additional flavour" (decoration is the
|
|
failure mode as a verb) and the handbook's uncashed
|
|
"Flavourful language" pointer.
|
|
5. **The sampling layer** -- effort and temperature move prose
|
|
style more than prompts do; effort-max lengthens thinking, and
|
|
thinking depth is where self-critique lives.
|
|
- **The packager** (working name; the housekeeper pattern -- fresh
|
|
invocation, structured output, validated apply, human curates,
|
|
never model-facing): reads prior art, drafts package material,
|
|
the GM cuts. Rulings so far (GM): **no direct quotes** -- style,
|
|
not prose; derive new example lines, never lift text. This is
|
|
mechanically enforceable in the project's own idiom: a no-clone
|
|
gate, verbatim n-gram overlap against the source rejects loudly
|
|
(the clerk-validates-manifests pattern). **No plot** -- import
|
|
the story up to a cut point, leave it open from there.
|
|
- The cut maps onto the existing package slots: the story-so-far
|
|
lands as her memories (a manifest in housekeeper vocabulary
|
|
through memory.json's standard apply path -- implanted or
|
|
inherited memory is exactly what the testimony rule already
|
|
handles: record what she believes, attributed), the world at the
|
|
cut as backdrop in-register, the cut moment as the carryover
|
|
opening, the situation and the GM's register crib as gm.md (the
|
|
crib is half the value: the human GM's narration training wheels,
|
|
the countermeasure to a mechanical-and-boring GM sinking the
|
|
prose). The cut itself is a design choice -- the packager
|
|
proposes candidates with what each buys, the GM picks. Books
|
|
exceed the contwin: the packager reads chunked (distill,
|
|
accumulate, assemble).
|
|
- **Source selection is a scope question.** Liftable art has a
|
|
contained vantage: the story's events reachable from one spot,
|
|
the wide world arriving only as backdrop (public knowledge that
|
|
fits a bundle chunk) or rings (her slice, capped at 500/3000).
|
|
The cut is spatial as much as temporal -- choose the vantage,
|
|
do not shrink the book. "Keep scope small" is enforced by the
|
|
memory budget, not just taste: a sprawling import thrashes the
|
|
rings in act one.
|
|
- **Niche beats famous.** A model-unknown source is the clean
|
|
experiment (zero parametric contamination -- any register carry
|
|
is attributable to the package alone) and forces the real
|
|
reading pipeline, which is the general case anyway: the art worth
|
|
stealing for a specific package is rarely canonical. Famous
|
|
sources carry the hazard both ways -- her weights hold the
|
|
post-cut future (mitigate: state the divergence in the package,
|
|
cut early, lean on the purview/veto machinery), and distillation
|
|
rounds famous style to caricature.
|
|
- **Rights posture:** style-only derivation is clean; world-import
|
|
packages (premise, cast, situation) are more derivative. The
|
|
publication ruling for derived packages on a shared deployment
|
|
is pending -- style packs may publish freely while world imports
|
|
stay private by default.
|
|
- **Order of operations:** zero-build pilot first -- hand-place a
|
|
style chapter in a dormant run's handbook copy (the file editor
|
|
already allows it), a style-by-name line in character.md, the
|
|
opening in-voice. An evening's work testing whether register
|
|
carries through entrainment at all; the packager only earns its
|
|
build if the mechanism proves.
|
|
|
|
### The happy camper: small scope without the erotic copout
|
|
|
|
The problem: small scope is needed for the model's focus and
|
|
coherence, but confinement reads as torture. Every package drafted
|
|
so far rationalizes the tiny world erotically -- restraints as the
|
|
scope instrument, arousal as the comfort-converter that keeps
|
|
confinement from reading as torture (one draft states the
|
|
dependency outright). The queue item: a package that never dips
|
|
into the copout. Constraints (GM): minimal suffering, no horror,
|
|
plot conflicts permitted, the GM must not bore either -- cozy is
|
|
fine to consume, much harder to keep generating.
|
|
|
|
- **The question is who endorses the boundary.** Torture is a
|
|
boundary the character rejects; the kink frame is a boundary
|
|
converted into desire (that conversion is the actual work
|
|
erotication does here); the third option is a boundary endorsed
|
|
through meaning -- ownership, people, identity, open threads.
|
|
A proven genre lives in that third option already: slice-of-life,
|
|
iyashikei, cozy fantasy, the workplace story, the chamber play
|
|
without horror.
|
|
- **Emergence turns justification into maintenance** (GM ruling
|
|
out the decree). Authored cozy can decree stasis ("she never
|
|
moves out"); emergent play cannot -- a realistic character
|
|
generates leave-pressure (boredom, wanderlust) and the
|
|
player-model plays it honestly, so the decree schedules the
|
|
failure. Therefore **gravity, not walls**: countervailing wants
|
|
that keep winning most days, maintained in-fiction. Mechanisms:
|
|
live open loops she owns (leaving abandons threads), identity
|
|
(she IS the role), and the rings compound it -- played coziness
|
|
accumulates weight the way authored coziness cannot; three
|
|
hundred ring-B entries of life in a place are roots made of her
|
|
own past. Restlessness is a beat, not a failure: answered
|
|
in-fiction, possibly as a bounded excursion; the camera comes
|
|
home. Scope small is where the story's weight rests, not where
|
|
her feet may step.
|
|
- **Membrane, not seal.** A sealed tiny world exhausts (novelty
|
|
must come from inside; a realistic character eventually claws at
|
|
the walls). A membrane -- road, mail, door, tide -- passes
|
|
events: travelers carry the world in episodically, the world
|
|
stays small, the content does not. One mechanism serves both
|
|
the character's novelty and the GM's fuel line: each arrival is
|
|
a GM prompt, and gm.md becomes a situation generator (serial
|
|
novelty, a seasonal loop, slow mysteries, progressive
|
|
deepening).
|
|
- **Chekhov debt is paid in two currencies** (GM ruling on the
|
|
membrane's accumulated lore). Threads: few, deliberate, paying
|
|
off in drama. Texture: plentiful, owing recurrence rather than
|
|
payoff -- the reader needs the world to demonstrate memory, and
|
|
recurrence is the cozy story's version of narrative promise.
|
|
The housekeeper's gate is the existing debt filter (most
|
|
arrivals die unrecorded, the cheap honest dismissal), and events
|
|
staged off-stage accumulate no lore at all -- the existing
|
|
drafts' technique for consequences they do not want on the map.
|
|
If everything is a thread the play drowns in debt; if nothing
|
|
is, the reader learns to stop expecting anything.
|
|
- **An in-setting game cannot be the endorsement** (GM ruling).
|
|
Terminal states summon the optimizer: the player-model will
|
|
minmax the exit condition and abandon the story for the optimal
|
|
endgame. A telic sheet makes a leaving-story -- sometimes
|
|
exactly the right story (a sentence to serve is a legitimate
|
|
arc), with a no-time-skip rule as its pacing guard; telic is
|
|
not evil, it makes leaving-stories, and runs are allowed to
|
|
end. A staying-story's design rule: no exit condition, no
|
|
exchange rate -- several incommensurable
|
|
values on the sheet, no single gradient to descend (any single
|
|
measured metric becomes the target). The sheet is an inventory
|
|
of a life, not a scoreboard. The game survives as the rhythm
|
|
section: calendar, chores, situation generator -- the spine the
|
|
story grows on, never the reason she stays. Story grows on a
|
|
game exactly at the friction points where strategy fails.
|
|
- **Demand and forgiveness are separate axes.** The genre's most
|
|
famous cozy game is in truth a brutal schedule organiser: cozy
|
|
is not undemanding. The design target is high demand, high
|
|
forgiveness -- busy hands, soft landings; flow inside
|
|
obligation is the comfortable state, and the empty-room case
|
|
states the same law from the other side (with nothing to do,
|
|
boredom itself becomes the plot). The schedule is a plate
|
|
rack, demanding on purpose and forgiving on principle: a
|
|
homeostatic process with no global gradient, only Tuesday's
|
|
local choice -- which also makes it min-max-proof. Dropping a
|
|
plate is a story beat. The stakes currency is vexation, not
|
|
torment: renewable, comic, keeps the three-part gate fed without
|
|
asking the GM to author suffering.
|
|
- Engines without suffering: **the project** (tending is
|
|
renewable -- the shop opens again tomorrow; homeostasis resets
|
|
each session, which suits multi-session runs: suffering arcs
|
|
burn a character out, tended things reset), **curiosity**
|
|
(interiors as discoveries, not menaces; the whole world can
|
|
simply be the room, with the wide world riding as non-load-
|
|
bearing memory -- scope is what the play touches, not what the
|
|
memory holds), **the cast** (a small social world where
|
|
relationships are the content, conflicts interpersonal and
|
|
resolvable).
|
|
- Substrate readiness is real: records (the card index, the
|
|
ledger -- born for ownership stories; the housekeeper's
|
|
customer-card example is already this package's prose), the
|
|
sheet as inventory and accounts, the parked bookkeeper as the
|
|
arithmetic servant, the status gate admitting comfort states
|
|
fine (flowing, deadline-tomorrow, smitten). The drafted
|
|
packages each hold half the answer: a shelved shop draft had
|
|
warmth and no machine; a single-room points-economy draft has
|
|
a machine (a cozy-game progression loop in fetish skin) and no
|
|
world; a third names the gravity problem in its own notes (no
|
|
hook, no reason to come back). The no-copout package is their
|
|
product: the cozy membrane, the gravity, the homeostatic
|
|
economy -- the loop wearing an apron instead of a collar.
|
|
- **The honest difficulty is the model's drama gravity**: trained
|
|
on fiction, it escalates (robbers, fires, betrayal within
|
|
twenty turns of a cozy shop). Defenses: a positively-phrased
|
|
suffering-stance in the package (conflicts are situational,
|
|
interpersonal, or creative; stakes are things she cares about,
|
|
not things that hurt her -- no counterexamples, they prime),
|
|
plus the GM's narration holding the line, the same lever the
|
|
content stance already trusts. Ownership, in the broad sense,
|
|
is the non-erotic engine: the place is hers, and specificity
|
|
is what makes small stakes matter.
|
|
|
|
## Distant extension points (someday, not scheduled)
|
|
|
|
- **the bookkeeper: a sheet-keeping agent.** The GM is the sheet's
|
|
author and its error model (GM, 2026-11-17: the counts are the
|
|
GM's job). When keeping the papers correct becomes unproductive
|
|
bother, an internal agent -- the housekeeper's arithmetic sibling,
|
|
never model-facing -- reads the setting's rules prose and the
|
|
latest turns, computes the ledger delta (a purchase in her prose
|
|
applied against the catalog), and lands it as a STAGED sheet edit
|
|
with a pending marker: applied when the GM's next turn rides, or
|
|
discarded. Sheet-only authority, strictly-validated output, a bad
|
|
day falls back to no-change (the curator pattern); per-package
|
|
opt-in, because an agent cannot bookkeep what is not arithmetic.
|
|
The tabletop metaphor bends here on purpose (players hold their
|
|
own pencils in the real thing): the deviation is substrate
|
|
pragmatism, drift-proofing, not realism.
|
|
- **n-choice inference composed by a turn-editor agent.** The
|
|
provider's `n` parameter asks for several statistically independent
|
|
completions of the same prompt -- the same moment re-rolled by the
|
|
dice, where variant literature is her deliberate alternatives. The
|
|
composition: request n choices, hand them to a turn-editor agent
|
|
that splices/edits them into the one turn that lands. Open
|
|
questions if it ever earns a keep: who edits (the agent's brief,
|
|
the GM's veto), what the log keeps (every choice belongs on the
|
|
raw surface, and the variance metric wants them -- today the loop
|
|
reads choices[0] only), cost (every choice bills its completion
|
|
tokens), provider support (patchy outside the first-party APIs --
|
|
the discovery battery would need to probe it), and the knob
|
|
surface (`n` is not a named knob; whose is it to set?). Until
|
|
then, variant literature plus the crypto pick is the ruled
|
|
mechanism for chance in play.
|
|
|
|
## 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.
|