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:
@@ -1,8 +0,0 @@
|
||||
<!-- GENERATED by tool/memory.mjs render — do not edit by hand. -->
|
||||
<!-- A view of db/memory.db, ring A, ordered by last touch: top = most recent. -->
|
||||
<!-- Policy lives in housekeeper.md; the models never write here. -->
|
||||
<!-- Records: available — the character keeps files; consult via ((q: terms)) in OOC. -->
|
||||
|
||||
# Ring A — what matters
|
||||
|
||||
(empty — nothing here yet)
|
||||
@@ -1,8 +0,0 @@
|
||||
<!-- GENERATED by tool/memory.mjs render — do not edit by hand. -->
|
||||
<!-- A view of db/memory.db, ring B, ordered by last touch: top = most recent. -->
|
||||
<!-- Policy lives in housekeeper.md; the models never write here. -->
|
||||
<!-- Records: available — the character keeps files; consult via ((q: terms)) in OOC. -->
|
||||
|
||||
# Ring B — what stuck anyway
|
||||
|
||||
(empty — nothing here yet)
|
||||
@@ -1,7 +0,0 @@
|
||||
<!-- GENERATED by tool/memory.mjs render — do not edit by hand. -->
|
||||
<!-- The player's own piece of paper: baselines are the defaults she plays to; -->
|
||||
<!-- excursions are declared and cleared. Stances are feelings; facts live in the rings. -->
|
||||
|
||||
# Status
|
||||
|
||||
(nothing set — fresh start)
|
||||
@@ -1,57 +0,0 @@
|
||||
-- canonical dump of db/memory.db — GENERATED by tool/memory.mjs; do not edit.
|
||||
-- one row per line; entries and events ordered by id; restore with: restore
|
||||
PRAGMA foreign_keys = ON;
|
||||
|
||||
-- ids are AUTOINCREMENT: rows can move between entries and records
|
||||
-- (archive / unarchive), and ids must never be reused — journal targets
|
||||
-- stay meaningful forever.
|
||||
CREATE TABLE IF NOT EXISTS entries (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
ring TEXT NOT NULL CHECK (ring IN ('a', 'b', 'cold')),
|
||||
type TEXT NOT NULL CHECK (type IN ('place', 'person', 'fact', 'thread')),
|
||||
label TEXT NOT NULL,
|
||||
detail TEXT NOT NULL DEFAULT '',
|
||||
created TEXT NOT NULL,
|
||||
last_touched TEXT NOT NULL
|
||||
);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS entries_ring_touch
|
||||
ON entries (ring, last_touched DESC, id DESC);
|
||||
|
||||
-- the character's files: cards, ledgers, manifests.
|
||||
-- detailed, queryable, never bulk-loaded into context.
|
||||
-- access is diegetic and per-run: runs/<story>/settings.json {"records": bool}
|
||||
CREATE TABLE IF NOT EXISTS records (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
kind TEXT NOT NULL,
|
||||
label TEXT NOT NULL,
|
||||
detail TEXT NOT NULL DEFAULT '',
|
||||
created TEXT NOT NULL
|
||||
);
|
||||
|
||||
-- the player's own piece of paper: baselines (the "what would make sense"
|
||||
-- default — a decision already made) plus excursions (declared only when a
|
||||
-- value leaves its baseline, cleared when it returns). exception reporting.
|
||||
CREATE TABLE IF NOT EXISTS status (
|
||||
key TEXT PRIMARY KEY,
|
||||
normal TEXT NOT NULL DEFAULT '',
|
||||
value TEXT NOT NULL DEFAULT '',
|
||||
updated TEXT NOT NULL
|
||||
);
|
||||
|
||||
-- append-only audit journal; nothing here is ever updated or deleted.
|
||||
-- target is 'e<id>' for entries, 'r<id>' for records, 's:<key>' for status.
|
||||
CREATE TABLE IF NOT EXISTS events (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
window TEXT NOT NULL,
|
||||
op TEXT NOT NULL CHECK (op IN ('insert', 'touch', 'promote', 'demote', 'reword', 'delete', 'evict', 'revive', 'record', 'archive', 'unarchive', 'amend', 'discard', 'status')),
|
||||
target TEXT NOT NULL,
|
||||
reason TEXT NOT NULL DEFAULT ''
|
||||
);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS events_window ON events (window);
|
||||
BEGIN TRANSACTION;
|
||||
INSERT INTO events VALUES (1,'pc','status','s:mood','mock turn');
|
||||
INSERT INTO events VALUES (2,'pc','status','s:mood','excursion declared');
|
||||
INSERT INTO events VALUES (3,'pc','status','s:mood','field dropped');
|
||||
COMMIT;
|
||||
Reference in New Issue
Block a user