gm surface: home flow, run identity, full-assembly editor, notepad, wrap replay; sigils and dateless rings
This commit is contained in:
+60
-74
@@ -9,6 +9,43 @@ file is the "where did we leave off" map.
|
||||
|
||||
## Where we are
|
||||
|
||||
- **The GM surface rework is complete and live-proven (2026-11-14).**
|
||||
Home lists runs by display name with live state; new run walks a
|
||||
package picker into a naming form (package display name + a
|
||||
dictionary-rolled, per-package-unique pc name, names-female.txt);
|
||||
setup is a full-assembly editor (system.md/invariants.md read-only
|
||||
first, then the editable craft in bundle order — handbook, backdrop,
|
||||
character, seed, turn-0 — then read-only config; sigil/var
|
||||
highlighting; $TOKENs declared by the prompts surface as inputs and
|
||||
gate start; drafts two-click deletable); start opens the window and
|
||||
sends turn-0 as the first GM turn. Play carries: the GM notepad
|
||||
(gm.md — auto-saved, never model-facing), the paper as a compact
|
||||
comma block with a GM edit button (paper-set, journaled),
|
||||
housekeeping with a dry-run replay button, diagnostics on both
|
||||
sides of the wire (server request log + a sessionStorage event log
|
||||
behind the header's "log" button), busy indicators, and hardened
|
||||
failure modes (no throw-to-home — only a real 404 leaves, loudly;
|
||||
failed sends restore the line). Identity: @PC/@Package are identity
|
||||
sigils (settings pc/name — a distinct class from $TOKENs, which the
|
||||
prompts declare and setup collects); run ids are anonymous hex;
|
||||
display is "La Caramba / Rell". Postulates: female PCs only;
|
||||
boutique dormant AND defunct. Exposure rule: bundle parts are
|
||||
inspectable read-only; agent prompts (housekeeper.md, repo-fed at
|
||||
wrap, never copied) are never exposed.
|
||||
- **Dates left the rings (GM, 2026-11-14).** No model-facing surface
|
||||
renders a date — the old rendered date was the touch stamp
|
||||
(referencing a memory rewrote its "when"), and records search
|
||||
leaked real dates too. Manifest and seed carry no date keys; stamps
|
||||
are internal and mechanical (LRU, overflow, "what's sinking" —
|
||||
GM-facing only). Story time lives in prose. Live-proven: the real
|
||||
housekeeper produced a clean dateless manifest first try.
|
||||
- **The first real story is live: "La Caramba / Irene"** (run
|
||||
4f261452, gitignored state). Window one open, 44+ exchanges at ~23K
|
||||
prompt tokens — 9% of the window; the economy holds because
|
||||
thinking never goes back, old status rides strip, and the bundle
|
||||
floor is ~4.2K tokens. The GM ran the wrap dry-run on it: works
|
||||
mechanically, output not yet as expected — housekeeper.md review
|
||||
pending (the GM has not read the prompt yet).
|
||||
- **The MVP substrate is complete (2026-11-14): all four phases built,
|
||||
mock-proven, and live-proven.** Clerk (paper model, presets/runs),
|
||||
server (REST spine, session machine, view renderer), housekeeping
|
||||
@@ -16,17 +53,13 @@ file is the "where did we leave off" map.
|
||||
bridge is deleted. Two real housekeeping wraps ran clean (both
|
||||
manifests sound: correct ring-B classification, first-person voice,
|
||||
precise touches); a full session was driven through the UI end to
|
||||
end. All test runs are deleted; **no runs exist; the server is
|
||||
stopped**. Start it: `node server/main.mjs [--mock]`, SPA at
|
||||
end. **The server is stopped** (state as of this commit). Start it:
|
||||
`node server/main.mjs [--mock]`, SPA at
|
||||
http://127.0.0.1:7350/ (see AGENTS gotchas: check port 7350 first;
|
||||
POST from PowerShell via Invoke-RestMethod).
|
||||
- Nothing has been *played* yet — every session so far was a test.
|
||||
The story starts with the next session: `create la-caramba <id>`,
|
||||
window one, for real.
|
||||
- Live endpoint proven in-flow (glm-5.3 via llm.exan.tech, 13 models
|
||||
carried on /models): right-format turns in her voice first try,
|
||||
paper transport both directions, usage/context meter live,
|
||||
story-dated wraps.
|
||||
paper transport both directions, usage/context meter live.
|
||||
- **Prompt split in force (GM's cut, 2026-11-14):** `system.md` =
|
||||
opening + guards (glossary, purpose, input validation — repo-fed,
|
||||
per-project); `invariants.md` = substrate (syntax markers, tools,
|
||||
@@ -70,7 +103,7 @@ file is the "where did we leave off" map.
|
||||
thinking-strip, usage tracking) land with the server.
|
||||
- **Phase 1 (preset/run split) DONE (2026-11-13):** packages are
|
||||
authored-only (backdrop, turn-0, character, seed, settings, gm — all
|
||||
six state dirs removed); `create <package> <run-id>` copies the
|
||||
six state dirs removed); `create <package> <pc-name>` copies the
|
||||
package wholesale into `runs/<id>/` (shared prompts included, run.json
|
||||
lineage + optional model override) and inits state; `--run` addresses
|
||||
runs; `packages`/`runs` list; `bridge.json` → `server.json`
|
||||
@@ -95,72 +128,25 @@ file is the "where did we leave off" map.
|
||||
|
||||
## Immediate next steps, in order
|
||||
|
||||
1. **Prompt split DONE (2026-11-14, GM's cut).** system.md = opening +
|
||||
guards (glossary, purpose, input validation — repo-fed, per-project);
|
||||
invariants.md = substrate (syntax, tools, memory, records, the
|
||||
paper + its gate — repo-fed, travels with the code); handbook.md =
|
||||
craft copy (shape of play, purview, time skips, stance, hard limits
|
||||
— copied per run). The clerk's create copies handbook.md +
|
||||
housekeeper.md only. Assembly confirmed: one system message,
|
||||
system.md → invariants.md → the run's handbook.md, then the bundle
|
||||
as GM messages. Housekeeper aligned to the invariants paper
|
||||
boundary (acute states on the paper; relational shifts recorded as
|
||||
the facts behind them). Watch item: "never open a scene with world
|
||||
narration" was cut as superfluous (GM, 2026-11-14) — reinstate if
|
||||
narrative-discipline drift shows in testing.
|
||||
2. **Server (phase 2) DONE (2026-11-14, mock-proven).** `server/` —
|
||||
zero-dep node:http REST spine per the ROADMAP sketch; per-run
|
||||
session machine with ask_gm pause/resume (whole batch waits, so
|
||||
pairing stays sound); view renderer (thinking-strip, tool-result
|
||||
elision with ask answers exempt, old status/conflict blocks
|
||||
stripped); boot-rebuild from the typed jsonl; lazy seed + turn-0
|
||||
ingestion at window-open (with the #21 refuse-with-override guard);
|
||||
usage tracking + context meter; tool-pairing validation; `--mock`
|
||||
scripted model. Smoke: create → open → roll → ask pause → answer →
|
||||
paper deltas → restart → rebuild → live turn. The clerk gained
|
||||
`--json` (packages/runs/status). **tool/bridge.mjs deleted at
|
||||
mock-parity.** **Live API proven same day (run `live-smoke`):** the
|
||||
upstream /models listing works (13 models carried), the assembled
|
||||
prompt produces right-format turns in her voice, paper deltas
|
||||
applied both turns, usage/context meter live (~4.6K prompt tokens,
|
||||
2% of window). Not yet exercised live: ask_gm in flow (the model
|
||||
just made its choices — by design), the conflict-carry path,
|
||||
records tools (la-caramba has none), housekeeping (phase 3).
|
||||
3. **Housekeeping job (phase 3) DONE (2026-11-14, mock + live).**
|
||||
`server/housekeeping.mjs`: trigger ends the window and runs the
|
||||
chain async (transcript with labeled thinking -> housekeeper on a
|
||||
fresh context with run state injected -> manifest saved (raw output
|
||||
too, if unparseable) -> clerk apply (validates, writes the window
|
||||
log, snapshots `dumps/<window>.sql`) -> `state.json`
|
||||
`lastHousekeptSession` -> autorestart). Rejection holds the restart
|
||||
and surfaces why; `POST .../housekeeping/apply` is the recovery
|
||||
path (hand-edited manifests, also the manual-relay close). The
|
||||
first real wrap ran on `live-smoke`: window
|
||||
`2026-11-18-beach-arrival`, two ring-B inserts, two correct
|
||||
touches, clean voice — the manifest and log are in the run dir for
|
||||
review.
|
||||
4. **SPA (phase 4) DONE (2026-11-14).** `web/` — index.html, style.css,
|
||||
app.mjs; no build step, vanilla ES modules, served by the server
|
||||
from `/`. Transcript renders the three registers by the ruled
|
||||
markers (plain speech, *italics* narration incl. multi-line blocks,
|
||||
single-paren OOC with lone-paren skip), the bundle as a collapsed
|
||||
card with turn-0 as the opening GM turn, paper tags as chips,
|
||||
status/conflict extracted to the pane, machinery muted. Run
|
||||
selector + new-run form, window-open (with the #21 override
|
||||
confirm), GM line input (Enter sends), ask modal (re-presents on
|
||||
refresh via detail.pendingAsk), status pane, context meter (hot
|
||||
past 85%), housekeeping button with confirm → 3s poll → log
|
||||
display → autorestart. Found and fixed in testing: `.mjs` MIME
|
||||
(module scripts enforce it), multi-line narration parsing. One
|
||||
prompt fix: housekeeper.md now teaches story dates (the second
|
||||
real wrap dated itself with the wall clock otherwise).
|
||||
5. First la-caramba run: `create la-caramba <id>` (seed rides along,
|
||||
editable until the first window-open), then window one — through the
|
||||
API or the SPA, whichever is ready when the GM is. The live-endpoint
|
||||
caution transfers intact: the first real session is the loop's first
|
||||
live integration test (GLM tool-call edge cases; no `strict` mode,
|
||||
so clerk-side validation is the safety net). Housekeeping after the
|
||||
window runs through the job (phase 3), not the manual paste.
|
||||
1. **The first real wrap — the memory test begins.** Close-and-
|
||||
housekeep the Irene window when the GM is ready; review the
|
||||
manifest and the window log against the dump diff (the audit
|
||||
surface). Everything from the story so far (the shipwreck, Molly,
|
||||
the island) lives only in context and on the paper until this
|
||||
lands.
|
||||
2. **Housekeeper prompt review (GM-led).** The GM's dry-run verdict:
|
||||
works mechanically, output not as expected, and the prompt itself
|
||||
is unseen so far. Iterate: read housekeeper.md, tweak, replay —
|
||||
the dry-run button re-runs the wrap over the session log with
|
||||
nothing applied.
|
||||
3. **Status discipline (GM wants the section tightened).** The paper
|
||||
has taken up thread-tracking ("planning to talk to Pinky" is a
|
||||
thread, not an acute state); the admission-gate copy in
|
||||
invariants.md's paper section wants tightening.
|
||||
4. **Keep playing.** Observables #12 (does the paper stay small and
|
||||
match the transcripts) and #14 (one thing per turn vs lengthening
|
||||
turns — completions grew 103 to 668 chars across window one) are
|
||||
live now.
|
||||
|
||||
## Working agreements with the GM
|
||||
|
||||
|
||||
Reference in New Issue
Block a user