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:
+93
-41
@@ -4,7 +4,8 @@ A living document: trim items as they complete. Durable decisions live in
|
||||
`README.md` (architecture, protocol, observables), `ROADMAP.md` (SOTA
|
||||
review, steals, extension points), and the prompts (`system.md`,
|
||||
`housekeeper.md`). Unanswered questions live in `QUESTIONS.md`, the
|
||||
decision queue. This file is the "where did we leave off" map.
|
||||
decision queue; the agent's own working notes live in `AGENTS.md`. This
|
||||
file is the "where did we leave off" map.
|
||||
|
||||
## Where we are
|
||||
|
||||
@@ -15,49 +16,95 @@ decision queue. This file is the "where did we leave off" map.
|
||||
tool round-trip; no assistant-prefill semantics; `reasoning_content`
|
||||
round-trips safely in input. The bridge loop itself is still mock-only.
|
||||
- The run is renamed `prisoners` → `la-caramba` (config default included);
|
||||
the branch is renamed `master` → `mistress`.
|
||||
the branch is renamed `master` → `mistress`; the runs directory is
|
||||
renamed to `packages/`.
|
||||
- `system.md` opens with an input-validation section (IC/OOC buckets,
|
||||
injection guards). The bridge tags every tool with its output channel
|
||||
([IC]/[OOC]), sends the opening bundle as per-role messages — `system.md`
|
||||
the sole system message; backdrop, character, ring-b, ring-a, status,
|
||||
then `prelude.md` on a new game, all as GM messages — and logs the whole
|
||||
bundle into the session transcript.
|
||||
injection guards). The loop (today in the bridge) tags every tool with
|
||||
its output channel ([IC]/[OOC]), sends the opening bundle as per-role
|
||||
messages — `system.md` the sole system message; backdrop, character,
|
||||
ring-b, ring-a, then `turn-0.md` on a new game, all as GM messages —
|
||||
and logs the whole bundle into the session transcript. (Status left
|
||||
the bundle: the paper rides every GM turn as a `<status>` block once
|
||||
the server lands.) **The bridge is retired by decision
|
||||
(2026-11-13) before ever going live**: REST + SPA is the MVP; the
|
||||
loop is extracted into the server, the file is deleted at server
|
||||
mock-parity, the `--mock` discipline survives as a server mode.
|
||||
- Prompt-side settled (2026-11-13): the content stance is the GM's
|
||||
final form — erotica is not a special bucket (makes sense, isn't the
|
||||
point, no pressure, never play anticipated leads to please the GM);
|
||||
the adjudication philosophy is that the test is a review, not a
|
||||
number (README). ROADMAP gained steal #11 (prompt re-injection) and
|
||||
the projection principle (context is a projection, not a ledger).
|
||||
- Red pen largely done (2026-11-13): new PC (shop girl, conviction by
|
||||
association with a burnt decker), ten-state voice corpus (steal #1
|
||||
done), gm notes recast (the ship-AI La Caramba, Missy, Pinky).
|
||||
Remaining: the name call (`vars.PC` still "Rell"), optional seed
|
||||
register touch-up (QUESTIONS #19). The seed is authored but NOT
|
||||
applied — and blocked on phase 0: the seed's status key is gone and
|
||||
`system.md` describes the paper/tag model the clerk and bridge don't
|
||||
implement yet.
|
||||
- Boutique: scaffold only. Concept brief now in `packages/boutique/gm.md`.
|
||||
- Both run databases are empty (post-smoke resets); views render clean.
|
||||
done), gm notes recast (the ship-AI La Caramba, Missy, Pinky; pink
|
||||
ice as licensed corpo firewall; mechanical feeders). Name call
|
||||
resolved: keep "Rell". Optional seed voice touch-up may be revisited
|
||||
(QUESTIONS #19c, non-blocking). The seed is authored but NOT
|
||||
applied — it rides the run copy at creation and applies lazily at
|
||||
the first window-open.
|
||||
- **Phase 0 (clerk side) DONE (2026-11-13):** the paper model is live in
|
||||
`memory.mjs` — description-set schema (`paper` table), `paper` /
|
||||
`paper-set` / `paper-apply` / `paper-ingest` verbs (exact-match
|
||||
`<lost>`/`<gained>` deltas, non-blocking, `<conflict>` reporting,
|
||||
prelude ingestion), amend/discard journal prior content (the saga
|
||||
rule), seed rejects a status key loudly. Smoke-tested end to end
|
||||
(delta misses, no-op re-adds, prelude ingest, dump/restore
|
||||
round-trip, seed apply); both dbs reset clean. Loop-side items
|
||||
(status tools gone from the tool list, per-turn `<status>` ride,
|
||||
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
|
||||
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`
|
||||
(bind, endpoint, models, contextWindow, params; example committed,
|
||||
key carried over, gitignored); `config.json` now names the default
|
||||
package. Smoke-tested: create → seed → turn-0 ingest → delta apply →
|
||||
status, re-seed refuses, smoke run deleted. `prelude.md` renamed
|
||||
`turn-0.md` by the GM (comment dropped); clerk and docs follow.
|
||||
- Boutique: dormant — a stub that never reached its design step
|
||||
(concept brief in `packages/boutique/gm.md`).
|
||||
- No runs exist in this deployment yet; both packages render clean as
|
||||
presets (`packages` lists them).
|
||||
- **Substrate design round complete (2026-11-13)** — rulings recorded in
|
||||
ROADMAP ("The harness"): the stated goal (a usable RP harness;
|
||||
clone-and-run or invited instance, key on the backend, no secrets in
|
||||
the repo), repo ships code + authored content only (state is
|
||||
per-deployment), packages are presets copied wholesale into `runs/<id>/`
|
||||
at creation (editable everything, discipline on the GM), lazy seed at
|
||||
first window-open, 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 (QUESTIONS #4, #7 resolved).
|
||||
|
||||
## Immediate next steps, in order
|
||||
|
||||
1. Name call: keep "Rell" or rename — one line in `settings.json`
|
||||
`vars.PC`. Optional: seed register touch-up (QUESTIONS #19). Decide
|
||||
whether Pinky is the PC's decker (QUESTIONS #19e).
|
||||
2. **Phase 0 (ROADMAP) — gates window one:** clerk/bridge migration to
|
||||
the paper model — GM turns carry the status block, `<lost>`/
|
||||
`<gained>` delta apply with conflict reporting, prelude ingestion at
|
||||
new-game, status tools removed, thinking stripped from the live
|
||||
context, amend/discard journal prior content, usage tracking.
|
||||
`system.md` already teaches the new model; the substrate must catch
|
||||
up before the first real session.
|
||||
3. Apply the seed: `node tool/memory.mjs --run la-caramba seed`
|
||||
4. Play window one, via bridge or manual relay:
|
||||
- `node tool/bridge.mjs --run la-caramba` (`bridge.json` is configured
|
||||
for llm.exan.tech / glm-5.3, key included, gitignored)
|
||||
- **Caution: the bridge has only ever run in `--mock`.** The first
|
||||
real session is also the first live-API integration test — expect
|
||||
quirks (GLM tool-call edge cases; no `strict` mode, so clerk-side
|
||||
validation is the safety net).
|
||||
5. After the window: housekeeping is a manual fresh-model paste
|
||||
(`housekeeper.md` + backdrop + character + ring views + transcript),
|
||||
save the manifest to `packages/la-caramba/manifests/`, then
|
||||
`node tool/memory.mjs --run la-caramba apply <manifest>`, review the
|
||||
log, commit.
|
||||
1. system.md split extraction (ruled 2026-11-13, ROADMAP "The
|
||||
harness"): substrate facts into `invariants.md`, security guards
|
||||
into `guards.md` (both repo-fed at assembly), the per-run craft
|
||||
copy keeps everything else, hard limits included. Drafts get the
|
||||
GM's red pen; must land before the first run is created so no run
|
||||
copies what the substrate feeds. (Prose deferred by the GM — not
|
||||
blocking the server build.)
|
||||
2. **Server (phase 2):** loop core from the bridge, `node:http` REST
|
||||
spine per the ROADMAP sketch, per-run session machine with ask_gm
|
||||
pause/resume, view renderer, boot-rebuild, lazy seed + turn-0
|
||||
ingestion orchestrated at window-open (with the #21 guard),
|
||||
thinking-strip, usage tracking, mock, tool-pairing validation. The
|
||||
API is the operable surface — testable standalone, on request,
|
||||
while the SPA waits.
|
||||
3. **Housekeeping job (phase 3):** manual trigger, transcript with
|
||||
labeled thinking, auto-apply, autorestart on success, per-wrap dump
|
||||
snapshots.
|
||||
4. **SPA (phase 4):** downstream, per the resolved v1 scope.
|
||||
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.
|
||||
|
||||
## Working agreements with the GM
|
||||
|
||||
@@ -87,7 +134,7 @@ are open questions for the drafting session with the GM).
|
||||
tests, pipe an array of strings into node.
|
||||
- `node:sqlite` prints an ExperimentalWarning on every invocation —
|
||||
harmless; the clerk filters it in bridge context.
|
||||
- `bridge.json` (gitignored) holds the real key; it mirrors opencode's
|
||||
- `server.json` (gitignored) holds the real key; it mirrors opencode's
|
||||
`dv` provider (config at `~/.config/opencode/opencode.jsonc`, auth at
|
||||
`~/.local/share/opencode/auth.json`).
|
||||
- Resetting a run: `Remove-Item packages/<story>/db/memory.db` then `init`.
|
||||
@@ -99,10 +146,15 @@ are open questions for the drafting session with the GM).
|
||||
|
||||
## Not yet exercised (expect first-use friction)
|
||||
|
||||
- The loop-side phase-0 surface: `<status>` blocks riding GM turns,
|
||||
thinking-strip, usage tracking. (The clerk side — delta apply,
|
||||
`<conflict>` reporting, prelude ingestion, prior-content journaling —
|
||||
is CLI-smoke-tested but never yet exercised in flow.)
|
||||
- The bridge loop against the live API (mock only so far; the endpoint
|
||||
itself is probed — see "Where we are").
|
||||
- A real housekeeping invocation with a real model's manifest.
|
||||
- `seed` on a real (reviewed) seed file.
|
||||
- Real-data `dump`/`restore` and commit-per-wrap audit flow.
|
||||
- `seed` on a real (reviewed) seed file, applied lazily at a run's
|
||||
first window-open.
|
||||
- Real-data `dump`/`restore` and the snapshot-diff review flow.
|
||||
- The in-flow missed-update prediction (ROADMAP, system-1 entry) —
|
||||
becomes measurable with the first real session.
|
||||
|
||||
Reference in New Issue
Block a user