Files
tiny-worlds/HANDOFF.md
T

120 lines
6.5 KiB
Markdown

# Handoff -- working state
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; the agent's own working notes live in `AGENTS.md`. This
file is the "where did we leave off" map.
## Where we are
- **The server core is JSDoc-typed, strict, green (2026-11-15,
evening) -- committed.** tsc runs as a
no-emit checker (`npm run typecheck`) over plain `.mjs` with JSDoc
annotations; the shared shapes live in `server/shapes.mjs` (log
events as a tagged union, wire messages, manifests, job state,
the Ctx). Dev tooling only: `typescript` + `@types/node` in
devDependencies, `node_modules/` gitignored -- the runtime stays
zero-dependency (QUESTIONS #4 amended to say so). Verified: the
full diff audited change-by-change (every non-annotation delta is
an impossible-path guard or a behavior-identical wrap), smoke
105/105, restart-check, check-repo, all green. Phases to come are
steps 5 and 6 below.
- **Everything is built, proven, and committed (through `d737e47`,
2026-11-15).** The full scope, each round mock-proven end to end
and live-proven where live could reach: the MVP substrate (clerk,
server, housekeeping job, SPA), multiuser (token identity, invites,
fork, user packages, spectator), the agenda, the per-turn reminder,
the variant round (variant literature, the crypto pick), the entity
round (/story, /table, the slidwin carry), the dormant-session
rework (the universal session lifecycle, move-at-stop, the start
lint, rebaseable housekeeping, carryover.jsonl + memory.json
packages), the format house rules (nine-rule check-repo), and the
naming round. The design record lives in README / DICTIONARY /
ROADMAP; the build history in the git log.
- **The project is named: Tiny Worlds.** The invariant it names is
stated in README's premise -- each package is a tiny world on
purpose. The repo lives at `C:\data\opencode\tiny-worlds`; the
rename from `rp-test` is complete end to end (robocopy + session
repoint + a one-time sqlite edit of opencode's own db to repoint
the project record -- the desktop UI cannot delete or repoint
projects, anomalyco/opencode#28030). Launch sessions from the new
path.
- **The first real story is live: "La Caramba / Irene"** (run
4f261452, gitignored state). Session one open, 53 GM + 53 player
story turns, ~23K prompt tokens -- single-digit percent of the
contwin. She is migrated to the new session layout (2026-11-15,
hand-migration per the ruling: fork proven end to end first, then
real her, zero writes to her log); her historical turn-0 event
stays GM-attributed, and her dead authored files (turn-0.md,
seed.json) sit in `sessions/1/` as inert archival -- whether they
stay is the GM's call. She is ownerless until the op's hand-stamp
(step 1). Her open session still carries her old handbook copy --
craft edits land at session-open, so the clean reminder/agenda
experiment starts at her next session.
- **The housekeeping dry-run ran on her once:** works mechanically,
output not yet as expected -- the housekeeper.md review is pending
(step 3), and the GM has not read the prompt yet.
- **The server is stopped; state/ is fresh** (no users -- the next
start mints the real bootstrap invite to state/bootstrap-invite.txt
and the console).
## Immediate next steps, in order
1. **First start under multiuser (op, one-time).** Start the server,
claim the bootstrap invite (`state/bootstrap-invite.txt` and the
console both carry it), then hand-stamp Irene's `run.json` with
`"owner": "<your user id>"` -- the SPA header tooltip shows the id.
No migration code exists, by ruling; this is the op's one manual
act.
2. **The first real housekeeping pass -- the memory test begins.**
Close-and-housekeep the Irene session when the GM is ready; review
the manifest and the session log against the dump diff (the audit
surface). Everything from the story so far (the shipwreck, Molly,
the island) lives only in context and in her status until this
lands. The pass ends in DORMANCY -- the review window is the point
(edit rings/prompts, then start).
3. **Housekeeper prompt review (GM-led).** Iterate on
housekeeper.md: read it, tweak, replay -- the dry-run button
re-runs housekeeping over the session log with nothing applied.
4. **Keep playing -- and watch the experiments.** Observables #12
(the status stays small and matches the transcripts) and #14 (turn
lengthening -- the reminder is the countermeasure under test), plus
the fresh watchables: does thread-tracking move to the agenda; drop
off-by-ones; cross-channel drift; whether description-only "empty
turns" stay on her side of the purview line. Variantary: the
metric's curve (`/story` variance -- how often, how many
candidates), coin-flip personality (choices offloaded to chance
that should be character), and whether her variants stay same-turn
alternatives rather than sequences.
5. **Typing phase 3: the clerk** (`tool/memory.mjs`, the big one).
The db row shapes (entries, records, status, agenda, the events
journal), the CLI dispatch, the manifest validator -- typed at the
db boundary per the same doctrine, then widen tsconfig's include
to `tool/`.
6. **Typing phase 4: web/** -- DOM types for the SPA modules
(`"lib": ["DOM"]` or a second tsconfig), the same shared shapes
imported from server/shapes.mjs where the wire surfaces appear.
## Not yet exercised (expect first-use friction)
- **First start under multiuser** (step 1) -- nothing live has
touched the auth spine, invites, fork, or spectator mode yet; all
are mock-proven only.
- ask_gm in live flow (pause/resume is mock-proven; the live model
simply made its own choices so far -- by design), the self-heal
conflict path in live flow (mock-proven; capped at 3 heals a turn),
the agenda and the reminder against a live model, records tools
through the server (needs a records-enabled run).
- The slidwin carry against a real session boundary in earnest
(Irene's first stop), the story read as the review surface, the
OOC-hole showing in practice, and everything variantary live: the
pick against a real model, the metric's curve, coin-flip
personality.
- A live housekeeping rejection, and the recovery-apply path on a
real manifest.
- The in-flow missed-update prediction (ROADMAP, system-1 entry) --
measurable from the second real session on.