gm surface: home flow, run identity, full-assembly editor, notepad, wrap replay; sigils and dateless rings

This commit is contained in:
2026-11-14 09:04:13 +00:00
parent ba72d2ed1f
commit 9f85adc3c6
20 changed files with 2014 additions and 433 deletions
+22 -4
View File
@@ -147,6 +147,13 @@ example, gitignored real file, env-var option).
substrate reach existing runs; craft edits are per-run. The GM's cut
also resolved the OOC syntax conflict (system.md no longer teaches
`((double parens))`).
Amendment (GM, 2026-11-14): `housekeeper.md` is repo-fed at wrap,
never copied into a run, never user-exposed. The seam is not
machinery vs taste but the exposure rule: everything that enters
the bundle is inspectable read-only (`system.md`, `invariants.md`
included — the user should understand how the model is prompted);
`housekeeper.md` never enters the bundle — it prompts the separate
internal housekeeper agent.
- **The audit moved into the run.** Runs are gitignored, so the
commit-per-wrap ritual is retired. At apply time the clerk snapshots
`dumps/w<N>.sql`; post-wrap review is async — the window log against
@@ -300,16 +307,27 @@ context inspector (steal #6), book export, the service step.
API sketch (the operable spine, amended per-run):
GET /api/models ask the upstream what it carries
GET /api/packages list presets (records gate, turn-0, seed)
GET /api/runs list runs (package, fill, window state)
POST /api/runs create {package, name, model?}
GET /api/runs/<id> status tier, fill, context meter, pending ask_gm
GET /api/packages list presets (display name, pc default, records gate, turn-0, seed)
GET /api/prompts the repo-fed prompts (system, invariants) — read-only
GET /api/names roll an unused dictionary name for a new main character
GET /api/runs list runs (display "La Caramba / Rell", fill, open window, draft/housekept state)
POST /api/runs create {package, pc, name?, model?} — anonymous id, pc unique per package
GET /api/runs/<id> status tier, fill, context meter, pending ask_gm, draft, display
GET /api/runs/<id>/files run file contents — craft rw, config ro, whitelisted
PUT /api/runs/<id>/files/<file> edit a run file (whitelist, JSON validated)
POST /api/runs/<id>/vars fill the $TOKENs the prompts declare (saved to settings vars)
POST /api/runs/<id>/windows open a window (lazy seed, render, assemble)
POST /api/runs/<id>/turn0 send turn-0 as the first GM turn (fresh window)
GET /api/runs/<id>/notes the GM's notepad (gm.md) — never sent to any model
PUT /api/runs/<id>/notes update the notepad
GET /api/runs/<id>/session transcript + pending ask_gm + usage
POST /api/runs/<id>/turn GM line -> runs the loop
POST /api/runs/<id>/ask answer a pending ask_gm
GET /api/runs/<id>/status the status tier, structured
POST /api/runs/<id>/paper GM override: replace the whole paper (empty = clear)
DELETE /api/runs/<id> delete a draft (no sessions); played runs refuse — by hand
POST /api/runs/<id>/housekeeping run the chain (ends the window), async
POST /api/runs/<id>/housekeeping/replay dry-run the housekeeper over a session log — nothing applied
GET /api/runs/<id>/housekeeping job state: idle | running | applied | rejected
GET /api/runs/<id>/housekeeping/log latest window log
POST /api/runs/<id>/housekeeping/apply apply a manifest directly