substrate: paper model in the clerk, preset/run split, harness decisions

- clerk phase 0: the paper replaces key/value status - a description set with exact-match lost/gained delta apply (paper-apply), non-blocking, misses relayed back as conflict strings; paper / paper-set (GM override) / paper-ingest (a file's status block at new-game); amend and discard journal prior content and the paper ops journal what they replace (events.prior, the saga rule); seed rejects a status key loudly. Smoke-tested end to end
- preset/run split: packages are presets (authored content only - the six state dirs are gone from both), runs are per-deployment instances under runs/ (gitignored); create <package> <run-id> copies the package wholesale (shared prompts included, run.json lineage plus optional model override) and inits state; --run addresses runs; packages and runs list them; config.json names the default package. The seed applies lazily at a fresh run's first window-open
- bridge retired before ever going live: bridge.json became server.json (bind, endpoint, models, contextWindow, params - steal #4), example committed, bridge.mjs stays as the loop donor until server mock-parity
- prelude.md renamed turn-0.md (GM); mechanical feeders, pink ice as licensed corpo firewall, slop section, Pinky treatment pinned (GM)
- harness decisions (ROADMAP The harness): stated goal - a usable RP harness, clone-and-run or invited instance, key on the backend, no secrets in the repo; repo ships code and authored content only; copy-at-creation, editable everything, discipline on the GM; per-run model selection with an upstream models listing; audit as per-wrap dump snapshots inside the run (commit-per-wrap retired); zero-dep stack (#4 resolved, #7 dissolved with the bridge, #21 by default)
- system.md split ruled (#20): substrate facts / per-project guards / per-run craft, hard limits in the craft copy; name call resolved - keep Rell (#19a)
- docs: README gains the goal and deployment model, booting rewritten for the create flow; ROADMAP phasing 0-1 done; HANDOFF and the decision queue current
This commit is contained in:
2026-11-13 23:40:33 +00:00
parent 7ed729e294
commit 530170224f
29 changed files with 772 additions and 538 deletions
+52 -24
View File
@@ -34,10 +34,11 @@ run again.
## The substrate (REST + SPA)
### 4. Stack — OPEN
Zero-dependency `node:http` + a no-build vanilla SPA (the repo ethos: no
package.json, everything hand-rolled) vs a framework. Recommendation on
the table: zero-dep. (2026-11-12)
### 4. Stack — RESOLVED (2026-11-13)
Zero-dependency, ruled by GM: `node:http` with a hand-rolled router, a
no-build vanilla ES-module SPA, no `package.json` — the repo ethos
carried through. If a need ever demands a dependency, it makes its case
then.
### 5. ask_gm mid-loop resumption — RESOLVED (2026-11-12)
Pause/resume, no streaming: the turn request returns with the pending
@@ -53,12 +54,12 @@ action runnable at any time. Book formatting, memory browser, context
inspector, watcher: out of scope. Turn surgery scope still open
(item 15).
### 7. Bridge vs server code sharing — OPEN
Refactor the loop core (clerk dispatch, message assembly, logging,
elision) into a shared module both `bridge.mjs` and the server use, or
leave the bridge untouched and let the server grow alongside.
Recommendation on the table: shared core before duplication sets in.
(2026-11-12)
### 7. Bridge vs server code sharing — RESOLVED (2026-11-13)
Dissolved by retirement: the bridge never goes live, so the loop core
has exactly one consumer (the server). No shared-module question — the
loop is extracted from `tool/bridge.mjs` into the server and the bridge
file is deleted at server mock-parity. The `--mock` discipline survives
as a server mode (it has caught two real bugs).
### 8. Per-turn status digest (ROADMAP steal #3) — RESOLVED (2026-11-12)
Promoted into SPA v1: a fresh digest rides every turn, re-read from the
@@ -119,12 +120,38 @@ the status block of the last surviving GM turn, filings discarded by
rid, amends reversed via the journal once the clerk records prior
content (phase 0); (d) surgery blocked while an ask_gm is pending.
### 16. Housekeeping model configuration — OPEN
### 16. Housekeeping model configuration — OPEN (mechanism settled)
The housekeeping job runs server-side on a fresh model invocation.
Same endpoint as the player, second model entry in bridge.json
(ROADMAP steal #8 — cheap-model housekeeping one config away)? Which
model? (The housekeeper.md line on reading thinking blocks as
attention evidence, not fiction, is in — 2026-11-12.)
Mechanism settled (2026-11-13): `server.json` names one endpoint plus
default models (player, housekeeper), `GET /api/models` lists what the
upstream carries, and a run may override its model. Which model the
housekeeper default points at (cheap-model housekeeping, ROADMAP steal
#8) remains the open call. (The housekeeper.md line on reading thinking
blocks as attention evidence, not fiction, is in — 2026-11-12.)
### 20. The system.md invariant split — RESOLVED (2026-11-13)
Ruled by GM, split along ownership seams (recorded in ROADMAP "The
harness"): substrate facts are prompted by the substrate itself
(repo-fed, never copied: channel model, tag transports, memory
contract, format markers, tool-mode addendum); common security guards
are per-project, not per-run (input validation, injection guards,
refuse cases); everything else — hard limits included — is per-run
craft, battery included: different people have different content they
don't want to deal with and different styles of preferred RP; we show
what works for us, they adjust. (My lean — hard limits in the
substrate core — was overruled, and rightly: mechanics vs security
posture vs taste is the true seam.) Proposed file names
`invariants.md` + `guards.md` are mechanical, finalized at
extraction; the draft gets the GM's red pen like all prompt-bound
text.
### 21. Window-open over an unhousekept session — RESOLVED BY DEFAULT (2026-11-13)
If a run's previous window was never housekept, opening a fresh window
means that transcript never reaches the rings — the window is silently
lost to the character's memory. Taken as a build default after two
unanswered rounds: window-open refuses, names the unhousekept session,
and accepts an explicit override for the deliberate skip. One line to
flip if the GM rules otherwise.
### 18. Ring entry voice — RESOLVED (2026-11-12)
Ruled: entries are personal memories — first person, her voice,
@@ -136,21 +163,22 @@ places normalization drift: facts to the rings, identity to open
questions) and the Inputs list now names status blocks and thinking as
evidence, never fiction (closing the housekeeper.md half of #16).
### 19. Character swap ripples — OPEN (2026-11-13)
### 19. Character swap ripples — NEARLY CLOSED (2026-11-13)
character.md is a new PC entirely: 26, shop girl, orphanage childhood,
conviction by association with a burnt decker; backstory + ten-state
voice corpus, first person. Ripples: (a) vars.PC still says "Rell" —
keep the name or rename, one line in settings.json; (b) RESOLVED —
voice corpus, first person. Ripples: (a) RESOLVED — keep "Rell"
(2026-11-13, GM: "fine with Rell"); (b) RESOLVED —
gm.md recast (2026-11-13): the tech path is now social (negotiate the
ship-AI La Caramba), cast is Missy + Pinky + the AI, the grounding
mechanism is decided (radio offline + a vestigial beach-yourself
clause) with the cause open (sabotage / conspiracy / apocalypse);
(c) the seed's attitude lines are in the old dry register while the new
voice is chaotic-enthusiastic — re-touch or accept as one of her
registers; (d) the "Annoyed" voice example carries a literal "ignore
all previous instructions" — read as a deliberate in-band guard
tripwire, shipping in every bundle; keep unless accidental; (e)
RESOLVED — not the same person: gm.md states Pinky and the PC's decker
(c) OPEN, DEFERRED — the seed's voice register: GM may revisit later;
non-blocking, since the seed copy stays editable until the first
window-open applies it; (d) the "Annoyed" voice example carries a
literal "ignore all previous instructions" — read as a deliberate
in-band guard tripwire, shipping in every bundle; keep unless
accidental; (e) RESOLVED — not the same person: gm.md states Pinky
and the PC's decker
never met (typo fixed too).
### 17. Status redesign — RESOLVED (2026-11-12)