the state-scan round: the log is the one truth for status and agenda, the db tiers retired -- scanState (server/session.mjs) derives each kind newest-wins across her emissions (the picked variant's text), the GM's override records, and the boundary state notes; the panes, the run detail, and the stamp all read it, GET /status and detail.status are derived reads, no clerk call, no db copy; the agenda cap is a derivation rule (GM, 2026-11-16: we log all seven items on reception, but the only way to see all seven is the raw event -- at no point an over-cap list can be derived), the reception note still shows the GM what sank; the stamp renders the canonical grammar -- status comma-separated, agenda markdown bullets, matching the line the GM added to invariants; the GM's block edits are overrides (GM, 2026-11-16: mutate during the contwin composition, the logs record the overrides arriving with the GM's turn as they should, the model sees the blocks overwritten with GM's edits attached to her turn, append if empty): the pane editors STAGE (paneEditor reworked -- no save callback, staged state, pending marker, discard), the send attaches them to POST /turn, node logs the override field on the GM turn, the composition renders it as hers -- the log never mutates, her words stay verbatim, the raw surfaces show the record; OOC turns refuse edits client and server both, the out-of-band POST /status and /agenda routes retired; stop writes the boundary state note at the carry head always (the crash-reconcile filters it before comparing), the start gate's n=1 seeding is dead (her authored opening turn IS the seed, the lint keeps requiring it), continuation carryovers are writable in the file editor during dormancy -- the review window's one editing surface, blocks included, no new pane; the clerk lost the tiers wholesale (schema tables, four verbs, canon status/agenda views, dump sections, report fields; the events CHECK keeps the historical op names; old dbs keep dead tables, never read, never dropped -- Irene is hands-off, and by the same day's ruling she is broken and never runs again: logs and db kept as they are, no replay, no continuation, no compatibility designed for her); Chloe hand-migrated to the new protocol -- her most recent turn carries the whole-list blocks applied from her db's exact values, her next context stamps them, her older lost/gained tags stay as history; the mock's agenda blocks went bullet, a new script position for the override turn's reply restates the mind so the boundary assert holds; smoke reworked to the scan battery (+ the 10f override block: the record rides its turn, the composition stamps at her canon point, the log keeps her emission verbatim, the OOC refusal, the boundary note at the carry head, the retired routes 404) -- ALL PASS; restart + reminder + repo checks green; the browser pass caught and fixed two real bugs (the pending marker's display:flex beat the hidden attribute -- any display rule needs a [hidden] override; setEditable(true) never ran the widget sync so the edit button stayed hidden) and proved the whole UX end to end with zero console errors -- staging, send-with-turn, the machinery lines on the table and raw, the OOC gate banner, discard, dormant read-only panes, the boundary note in the dormant preview; typecheck green on both programs; README/DICTIONARY carry the single-truth design, HANDOFF the round record and the Irene rewording, AGENTS the state pointer and the browser lessons

This commit is contained in:
2026-11-16 22:49:50 +00:00
parent 894737fcf3
commit 5ffecee935
17 changed files with 581 additions and 465 deletions
+36 -25
View File
@@ -152,8 +152,9 @@ consumes into the log, in one action.
one JSON event per line, the same format every session's carryover
uses. `{"t":"msg","m":{"role":"assistant","content":"..."}}` is one
of her turns, `{"t":"msg","m":{"role":"user","content":"..."}}` is
one of yours, `{"t":"opening","status":["..."]}` is her opening
status (at most one). End it however you want the game to open: on
one of yours, and her opening status rides her own last turn as a
`<status>` block (the opening event is retired; old carryovers keep
theirs as inert history). End it however you want the game to open: on
her turn the table waits for your input, on your turn start sends
it automatically as her cue. Start lints it -- only clean openings
go live.
@@ -215,9 +216,10 @@ consumes into the log, in one action.
material: raw log events, expanded at start when authored
(session one's), never expanded when carried (live prose) -- and
a carryover ending on a GM turn is sent automatically as her cue.
In play the current status rides every in-character GM turn
the same way (the per-turn ride lands with the server; an OOC GM
turn carries none). (On a tight
In play the turn reminder rides every GM turn the same way (its
own system chunk, one live copy in the view; her status and
agenda never ride GM turns -- they stamp at her own tail). (On a
tight
session, ring B is optional loading -- ring A is the spine.)
Substitution has two classes: `@PC` (her name) and `@Package` (the
display name) are identity sigils resolved from the run's
@@ -244,18 +246,25 @@ consumes into the log, in one action.
protocol, 2026-11-16): the player emits whole `<status>` and
`<agenda>` blocks in its own turns -- a present block is a
whole-list SET (a present-but-empty one is a deliberate clear),
an absent block means unchanged, never blank. The view strips
every copy and stamps the newest value of each kind at the tail
of her most recent turn, exactly where she left it: the status
is the game world as of her turn -- the canon point -- and the
context reads as the same sequence of events the game had. An
over-cap agenda evicts from the bottom silently (ruled a
feature: immersive, human-like, fun chaos -- silent to her, the
note shows the GM what sank). GM prose goes pure: no blocks ride
any turn, old logs' composited rides strip (they were never GM
words), and the GM's pane/CLI sets are model-invisible -- the
compositing that once showed them was a side-effect, not a
purpose; the GM's lever is narrative. The mind verb rides the
an absent block means unchanged, never blank. The log is the one
truth: the state scan derives each kind newest-wins across her
emissions, the GM's override records, and the boundary state
note -- the panes, the run detail, and the stamp all read it,
no db holds a copy. The view strips every copy and stamps the
derived value of each kind at the tail of her most recent turn,
exactly where she left it: the status is the game world as of
her turn -- the canon point -- and the context reads as the same
sequence of events the game had. An over-cap agenda is never
derivable (the scan caps every derivation at the top five; the
log keeps her full list, and the note shows the GM what sank --
ruled a feature: immersive, human-like, fun chaos). GM prose
goes pure: no blocks ride any turn, old logs' composited rides
strip (they were never GM words). The GM's block edits are
overrides: the pane editors stage them, they ride the next
non-OOC GM turn as a record on it, and the composition renders
them as if she had stated them -- mutated in place at her
newest blocks, invisible to the model as an act, visible only
as state. The mind verb rides the
same channel:
`<mind>{"temperature": 1.4}</mind>` in a player turn sets its
sampling knobs for its NEXT turn -- one-shot, JSON inside the
@@ -327,8 +336,8 @@ Memory is **seven tiers**:
|---|---|---|---|
| **backdrop** | the world as everyone knows it -- public knowledge, the general setting; never memory, never forgotten | always | GM, rarely (retcons) |
| **identity** | the character sheet -- concept, drives, skills, voice; changes rarely | always | GM, rarely; housekeeper may propose via open questions; blanks are the player's to invent |
| **status** | descriptions of her immediate situation, admitted by a three-part gate: non-normal, acute, turn-affecting | stamped at her most recent turn's tail, the newest of her whole-list `<status>` blocks | **the player** (whole-list `<status>` block in its turns; absent = unchanged); GM override out-of-band, model-invisible |
| **agenda** | her hot queue of intentions -- what she's working towards right now; a fixed-cap recency buffer (new on top, overflow evicts the bottom), disposable by design | stamped at her most recent turn's tail, the newest of her whole-list `<agenda>` blocks | **the player** (whole-list `<agenda>` block in its turns; over-cap evicts silently); GM override out-of-band, model-invisible |
| **status** | descriptions of her immediate situation, admitted by a three-part gate: non-normal, acute, turn-affecting | stamped at her most recent turn's tail, the scan's derived value | **the player** (whole-list `<status>` block in its turns; absent = unchanged); GM override riding a turn, composing as hers |
| **agenda** | her hot queue of intentions -- what she's working towards right now; a fixed-cap recency buffer (new on top, overflow evicts the bottom), disposable by design | stamped at her most recent turn's tail, the scan's derived value (capped at five -- her full list lives only in the log) | **the player** (whole-list `<agenda>` block in its turns; over-cap never derivable); GM override riding a turn, composing as hers |
| **rings A/B** | salient memory -- facts, on her mind, MRU-evicted | always | housekeeper manifest |
| **records** | her files -- the card index, the ledger. Narrow query only, hard cap 10 (in the tool, not the prompt), never bulk-loaded | never -- on demand | **the player** (`file`/`amend`/`discard` at her desk); GM files ahead of play; housekeeper only `archive`s |
| **cold** | forgotten or vetoed | never -- not even queryable | GM only (`revive`) |
@@ -499,8 +508,8 @@ JSON. Boot-rebuilds open sessions from the session logs on start; the
append-only jsonl is the truth, the live context is a view under
policy (thinking never goes back, old tool results elide to stubs --
ask_gm answers never do, a ruling must not vanish -- old GM-side
status blocks elide, the current status rides every in-character
GM turn).
status blocks elide, her own blocks strip, and the derived state
stamps at her most recent turn's tail).
Tool-call pairing is validated before every call. The tool list is
the capability surface: ask_gm always; records only when the run's
gate allows. Chance in play is not a tool: she answers with **variant
@@ -632,9 +641,9 @@ names-female.txt the name dictionary -- one name per line; the new-run
tool/
memory.mjs the clerk: packages, runs, create, save-package, init,
render, apply, insert, delete, revive, file,
amend, discard, search, unarchive, status,
status-set, agenda,
agenda-set, pick, dump, restore, report
amend, discard, search, unarchive, pick, dump,
restore, report (her status and agenda never lived
here in the end -- the log is their one truth)
(--run <id>; --session <n> addresses one session,
defaulting to the active -- the live one, else the
latest; --owner stamps a run's owner; --gm for
@@ -758,7 +767,9 @@ test/ the mock smoke, kept next to the code
server.example.json copy to server.json (gitignored) -- bind, endpoint +
key env, models, contwin, params passthrough
db/
schema.sql entries, records, status, agenda, events journal (shared)
schema.sql entries, records, events journal (shared; the status
and agenda tables are retired -- the log is their
one truth, old runs keep dead tables, never read)
state/ per-deployment people + shared packages (gitignored):
deployment.db (users, invites), bootstrap-invite.txt,
models.json (the discovered registry -- the truth of