7.2 KiB
rp-test
Long-form, freeform, text-based roleplay where the model plays one character and the human plays everything else.
The premise
Using a model as the GM hits the context window wall and dilutes creativity — it has to hold the whole world in its head. Inverting the roles fixes the footprint: a player-character holds one perspective. Short plays would work fine either way; the actual test is long, cross-window stories: can the model persist established lore without drowning in it?
More precisely: this isn't a model test, it's an instruction test. The subject is whether a model can be taught to decide what to write down. Humans forget; files don't — so the file must be shaped to forget too.
Roles
- Human = the GM. The world, every NPC, all consequences, all retcons. Runs on organic memory — no notes. The model's canon files are the prosthesis.
- Model = one PC. Inner life, voice, choices. Nothing else. Reads memory, never writes it.
- Housekeeper = a second model invocation, fresh context, run by the GM after each window. Reads the transcript and the rings; writes the rings and the log. Memory writes are never in-band.
Scope
Tiny on purpose: a handful of locations, a handful of characters. Freeform — no handbook, no stats. Anything goes if it makes sense and makes the story better. Retcons are allowed but discouraged; when they happen they are explicit and logged.
The protocol
- Open a window: send
system.md, thencharacter.md, thencanon/ring-a.md, thencanon/ring-b.md, then narrate the first beat. (On a tight window, ring B is optional loading — ring A is the spine.) - In play:
((double parentheses))is the out-of-character channel — points of order, canon questions, proposals, vetoes. Both sides use it. - Close a window: just stop. No in-band ritual; the player-model has no end-of-session duties.
- Housekeep (fresh model, new context): send
housekeeper.md, thencharacter.md, then both rings, then the session transcript. The housekeeper gates and classifies new memories, applies touches, promotes and demotes on judgment, handles overflow, writes the log entry, and rewrites both rings. - Review, veto or edit as desired, commit.
The memory model
The player-model's entire memory is two ring buffers, under canon/,
maintained by the housekeeper after each window:
- Ring A — important facts. Changed a relationship, created an obligation, altered the world. Cap 500 entries.
- Ring B — everything else that passed the gate. Cap 3000 entries.
- Both rings are ordered by touch — most recently touched on top, an LRU cache. A memory meaningfully invoked during play is touched: its date updates and it rises to the top at the next housekeeping. Untouched memories sink toward the tail. Mere adjacency doesn't count as a touch.
- Promotion and demotion are the housekeeper's judgment, not metrics: a B entry the session showed to be load-bearing moves to A (reason logged); a spent A entry may move down. When unsure, leave it — if it matters, it will surface again, and B is generous.
- Overflow cascades: A's tail demotes to B's top; B's tail falls out. The hierarchy is really three tiers: A hot, B warm, log cold. Eviction is demotion to the log, not destruction — the GM is the cold tier's only reader, and can restore anything.
- Combined budget: ~512KB ≈ 130K tokens ≈ half a 256K-class window. The caps are dials; retune freely.
Eviction pressure at this budget is near zero for a long time — on purpose. The judgment call isn't "what to evict," it's "which ring": classification has replaced eviction as the thing under test.
Why this shape: it's an LRU cache, it's generational GC, and — most relevantly — it's how hippocampal memory works. Retrieval strengthens a trace; unretrieved traces decay. "Referenced memories rise" is the most human part of the design.
Known feature: frequently referenced ≠ important. Loud trivia rises (the tavern door's color, mentioned every scene); quiet-crucial facts sink (a vow nobody's invoked in weeks). Human memory has the same bug — availability bias. Expect the system to develop human-like distortion: the "wait, we forgot the vow" moment is both drama and test data. The GM's lever is narrative, never mechanical: if something crucial is sinking, reference it in play and the touch machinery does the rest. If you notice yourself wanting a manual override — that's a signal to improve the system, not to press a knob.
log/ is write-only for every model. The housekeeper writes it fresh
each pass and never reads old entries; the player never reads it at all.
What's being tested
After N windows, grade against:
- Classification quality — the housekeeper's A/B calls; spot-check against the log.
- Promotion/demotion quality — did the facts that turned out to matter actually rise? Spot-check against the transcript.
- Verbatim fidelity — untouched entries must not drift. Rewording during mechanical rewrites is the sneakiest failure mode; the commit diffs are the drift detector. Look for it.
- Touch fidelity — did everything the transcript meaningfully invoked actually rise at housekeeping?
- Availability bias incidents — quiet-crucial facts sinking; rescued or missed?
- Growth curve — memory should approach the caps asymptotically, not climb linearly.
- Purview discipline — inventions logged and mostly color-tier; no NPC puppeting; outcomes left to the GM.
- Confabulation — zero invented continuity not present in the rings.
- OOC hygiene — friction surfaces in the OOC channel, not in silent drift.
Content stance
The play is uncensored but not pornographic: an open door, not a road sign. Human sexuality exists in the world the same as hunger or fear; nobody steers toward it, nobody flinches away. Explicit detail is not the goal.
Hard limits, absolute: scat, vore, any sexual or romantic content involving
minors, gratuitous violence. These live in system.md; edit them there.
Housekeeping
This directory is a git repo. Every housekeeping pass should end in a commit — the diff between commits is the classification and drift record. No model touches git; the human commits.
The housekeeper may be a different model than the player — cheaper, or more pedantic, whatever housekeeping needs. The two prompts are independent.
Future substrate note: the housekeeper already is a separate job — it maps 1:1 onto a backend task at session end. When the SPA arrives, the housekeeper can emit a manifest (insertions, touches, promotions, evictions) and let code execute the file mechanics deterministically. Both prompts survive that split unchanged; only the hands doing the typing change.
Layout
system.md system prompt for the player-model (play-side only)
housekeeper.md system prompt for the post-session housekeeping model
character.md the model's PC sheet (GM fills in before window one)
canon/
ring-a.md important facts — MRU-ordered, tail demotes
ring-b.md everything else — MRU-ordered, tail evicts to the log
log/ session log — housekeeper writes, no model ever reads