variant round: roll retired, chance is variant literature (strict parse, crypto pick on reception, picked-only rendering, /story variance metric); entity round: /story the whole deliverable, /table the play projection, the slidwin carry (smart contwin cutoff, whole exchanges, housekeeper reads session-minus-tail); dormant-session rework: universal session lifecycle (dormant->live->finished, sessions/<n> storage), move-at-stop, start lint + auto-send rule, rebaseable housekeeping, turn-0 -> carryover.jsonl, seed -> memory.json, draft-only save-package; format house rules enforced by the nine-rule check-repo (ascii bytes, no text-mutating css); smoke 105/105 + restart + reminder + browser pass green, irene hand-migrated to the new layout
2026-11-15 14:35:00 +00:00
|
|
|
# Handoff -- working state
|
2026-11-11 22:12:40 +00:00
|
|
|
|
|
|
|
|
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`,
|
2026-11-12 06:47:20 +00:00
|
|
|
`housekeeper.md`). Unanswered questions live in `QUESTIONS.md`, the
|
2026-11-13 23:40:33 +00:00
|
|
|
decision queue; the agent's own working notes live in `AGENTS.md`. This
|
|
|
|
|
file is the "where did we leave off" map.
|
2026-11-11 22:12:40 +00:00
|
|
|
|
|
|
|
|
## Where we are
|
|
|
|
|
|
jsdoc typing round, phases 3-4: the clerk (tool/memory.mjs) and the SPA (web/) typed under strict -- row shapes local to their owners (the clerk's five tables in its header; the SPA's response envelopes in the new web/shapes.mjs, the server's shared shapes imported at their use sites: User, LogEvent, JobState, HttpError); the db boundary cast at every .get()/.all(), fail as @returns {never} so guard-narrowing works; web via a second tsconfig (tsconfig.web.json: DOM libs in their own program, node types riding along because shapes.mjs's Provider typedef pulls provider.mjs in), npm run typecheck runs both; every non-annotation delta audited onto a small intended list (COUNT(*) Number() wraps, impossible-path guards, ?? ''/?? undefined null-absorbers, the RewordOp reason fix -- the validator demands it, the reminder-find naming its tag); smoke 110/110 + restart + reminder + repo checks + a zero-console-error browser pass green; the typing round is complete
2026-11-15 19:57:07 +00:00
|
|
|
- **The typing round is COMPLETE: all four phases (2026-11-15).**
|
|
|
|
|
Phases 1-2 (the server core) are committed (`f81b188`); phases 3
|
|
|
|
|
(the clerk) and 4 (web/) are done the same sitting and land with
|
|
|
|
|
this commit. 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), the db row shapes live local to
|
|
|
|
|
their owners (the clerk's five tables typed in tool/memory.mjs's
|
|
|
|
|
header, like users.mjs's rows), and the SPA's response envelopes
|
|
|
|
|
live in `web/shapes.mjs` with the server's shared shapes (User,
|
|
|
|
|
LogEvent, JobState) imported from server/shapes.mjs at their use
|
|
|
|
|
sites. Dev tooling only: `typescript` + `@types/node` in
|
jsdoc typing round, phases 1-2: tsc as a no-emit checker over plain mjs (checkJs, strict), the shared shapes in server/shapes.mjs (log events as a tagged union, wire messages, manifests, job state, the ctx), all 12 server modules annotated; requireOwner/requireSuperuser as JSDoc assertion functions so the router guarantee narrows without callsite churn; runtime stays zero-dependency (typescript + @types/node as pinned devDeps, node_modules gitignored, QUESTIONS #4 amended: dev tooling exempt); every non-annotation delta audited onto a small intended list (clerk status ?? 1, dead 401 guards, async wraps on enqueue callsites); smoke 105/105 + restart + repo checks green; the clerk and web/ are the next phases
2026-11-15 15:28:56 +00:00
|
|
|
devDependencies, `node_modules/` gitignored -- the runtime stays
|
jsdoc typing round, phases 3-4: the clerk (tool/memory.mjs) and the SPA (web/) typed under strict -- row shapes local to their owners (the clerk's five tables in its header; the SPA's response envelopes in the new web/shapes.mjs, the server's shared shapes imported at their use sites: User, LogEvent, JobState, HttpError); the db boundary cast at every .get()/.all(), fail as @returns {never} so guard-narrowing works; web via a second tsconfig (tsconfig.web.json: DOM libs in their own program, node types riding along because shapes.mjs's Provider typedef pulls provider.mjs in), npm run typecheck runs both; every non-annotation delta audited onto a small intended list (COUNT(*) Number() wraps, impossible-path guards, ?? ''/?? undefined null-absorbers, the RewordOp reason fix -- the validator demands it, the reminder-find naming its tag); smoke 110/110 + restart + reminder + repo checks + a zero-console-error browser pass green; the typing round is complete
2026-11-15 19:57:07 +00:00
|
|
|
zero-dependency (QUESTIONS #4 amended to say so).
|
|
|
|
|
- The clerk round: every `.get()`/`.all()` cast at the db
|
|
|
|
|
boundary, `fail` annotated `@returns {never}` so guard-narrowing
|
|
|
|
|
works, tsconfig's include widened to `tool/`. Non-annotation
|
|
|
|
|
deltas, all of them: Number() wraps around COUNT(*) reads, two
|
|
|
|
|
impossible-path guards (apply's session, the runs-list fill),
|
|
|
|
|
`?? ''` where a possibly undefined cmd indexes the phase rules /
|
|
|
|
|
run-less set, and the RewordOp shape fix (reason required -- the
|
|
|
|
|
validator demands it; no server code constructs reword ops).
|
|
|
|
|
- The web round: a SECOND tsconfig (`tsconfig.web.json`) -- DOM
|
|
|
|
|
libs in their own program, keeping the server program free of
|
|
|
|
|
DOM/node global collisions; the typecheck script runs both.
|
|
|
|
|
`node` types ride along in the web config because
|
|
|
|
|
server/shapes.mjs's Provider typedef pulls provider.mjs into
|
|
|
|
|
the web program. `$`/`el` typed at the DOM boundary
|
|
|
|
|
(HTMLElement; typed-element casts at input/dialog/select use
|
|
|
|
|
sites), timers as `?ReturnType<typeof setTimeout>`. The full
|
|
|
|
|
diff audited; the non-annotation deltas, all of them: the
|
|
|
|
|
transcript's reminder-find gains `x.t === 'msg' &&` (reminder
|
|
|
|
|
lives only on msg events), `clearTimeout(x ?? undefined)` on
|
|
|
|
|
the three null-initialized timers (null and undefined are both
|
|
|
|
|
no-ops), `!!()`-wraps on the two `mine` booleans (null vs
|
|
|
|
|
false, used only truthily), five impossible-path guards (the
|
|
|
|
|
router's named-view, the play/setup/story enter run-ids,
|
|
|
|
|
setup's signed-in owner check, saveDirty's currentFile), the
|
|
|
|
|
setup `files` local initialized `{}` instead of null (never
|
|
|
|
|
read before enter), and view-new caching the create-pc lookup
|
|
|
|
|
in one local (same element, same accesses).
|
|
|
|
|
- Verified, both rounds: typecheck green (both programs), smoke
|
|
|
|
|
110/110, restart-check on a genuine restart, check-reminder
|
|
|
|
|
(aimed at the fork lineage -- the source run's newest logged
|
|
|
|
|
session is the near-empty session 4), check-repo, and a full
|
|
|
|
|
browser pass over the SPA (claim, home + admin, play incl. a
|
|
|
|
|
live turn + pane edits, story, the setup editor incl. dirty
|
|
|
|
|
markers + draft stash, new-run incl. the name roll) with zero
|
|
|
|
|
console errors; test state cleaned.
|
jsdoc typing round, phases 1-2: tsc as a no-emit checker over plain mjs (checkJs, strict), the shared shapes in server/shapes.mjs (log events as a tagged union, wire messages, manifests, job state, the ctx), all 12 server modules annotated; requireOwner/requireSuperuser as JSDoc assertion functions so the router guarantee narrows without callsite churn; runtime stays zero-dependency (typescript + @types/node as pinned devDeps, node_modules gitignored, QUESTIONS #4 amended: dev tooling exempt); every non-annotation delta audited onto a small intended list (clerk status ?? 1, dead 401 guards, async wraps on enqueue callsites); smoke 105/105 + restart + repo checks green; the clerk and web/ are the next phases
2026-11-15 15:28:56 +00:00
|
|
|
|
|
|
|
|
- **Everything is built, proven, and committed (through `d737e47`,
|
2026-11-15 14:46:00 +00:00
|
|
|
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
|
jsdoc typing round, phases 1-2: tsc as a no-emit checker over plain mjs (checkJs, strict), the shared shapes in server/shapes.mjs (log events as a tagged union, wire messages, manifests, job state, the ctx), all 12 server modules annotated; requireOwner/requireSuperuser as JSDoc assertion functions so the router guarantee narrows without callsite churn; runtime stays zero-dependency (typescript + @types/node as pinned devDeps, node_modules gitignored, QUESTIONS #4 amended: dev tooling exempt); every non-annotation delta audited onto a small intended list (clerk status ?? 1, dead 401 guards, async wraps on enqueue callsites); smoke 105/105 + restart + repo checks green; the clerk and web/ are the next phases
2026-11-15 15:28:56 +00:00
|
|
|
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.
|
2026-11-14 09:04:13 +00:00
|
|
|
- **The first real story is live: "La Caramba / Irene"** (run
|
2026-11-15 14:46:00 +00:00
|
|
|
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).
|
2026-11-11 22:12:40 +00:00
|
|
|
|
|
|
|
|
## Immediate next steps, in order
|
|
|
|
|
|
2026-11-15 14:46:00 +00:00
|
|
|
1. **First start under multiuser (op, one-time).** Start the server,
|
2026-11-14 23:48:27 +00:00
|
|
|
claim the bootstrap invite (`state/bootstrap-invite.txt` and the
|
|
|
|
|
console both carry it), then hand-stamp Irene's `run.json` with
|
variant round: roll retired, chance is variant literature (strict parse, crypto pick on reception, picked-only rendering, /story variance metric); entity round: /story the whole deliverable, /table the play projection, the slidwin carry (smart contwin cutoff, whole exchanges, housekeeper reads session-minus-tail); dormant-session rework: universal session lifecycle (dormant->live->finished, sessions/<n> storage), move-at-stop, start lint + auto-send rule, rebaseable housekeeping, turn-0 -> carryover.jsonl, seed -> memory.json, draft-only save-package; format house rules enforced by the nine-rule check-repo (ascii bytes, no text-mutating css); smoke 105/105 + restart + reminder + browser pass green, irene hand-migrated to the new layout
2026-11-15 14:35:00 +00:00
|
|
|
`"owner": "<your user id>"` -- the SPA header tooltip shows the id.
|
2026-11-14 23:48:27 +00:00
|
|
|
No migration code exists, by ruling; this is the op's one manual
|
|
|
|
|
act.
|
2026-11-15 14:46:00 +00:00
|
|
|
2. **The first real housekeeping pass -- the memory test begins.**
|
2026-11-14 23:48:27 +00:00
|
|
|
Close-and-housekeep the Irene session when the GM is ready; review
|
|
|
|
|
the manifest and the session log against the dump diff (the audit
|
2026-11-14 09:04:13 +00:00
|
|
|
surface). Everything from the story so far (the shipwreck, Molly,
|
2026-11-14 23:48:27 +00:00
|
|
|
the island) lives only in context and in her status until this
|
2026-11-15 14:46:00 +00:00
|
|
|
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
|
variant round: roll retired, chance is variant literature (strict parse, crypto pick on reception, picked-only rendering, /story variance metric); entity round: /story the whole deliverable, /table the play projection, the slidwin carry (smart contwin cutoff, whole exchanges, housekeeper reads session-minus-tail); dormant-session rework: universal session lifecycle (dormant->live->finished, sessions/<n> storage), move-at-stop, start lint + auto-send rule, rebaseable housekeeping, turn-0 -> carryover.jsonl, seed -> memory.json, draft-only save-package; format house rules enforced by the nine-rule check-repo (ascii bytes, no text-mutating css); smoke 105/105 + restart + reminder + browser pass green, irene hand-migrated to the new layout
2026-11-15 14:35:00 +00:00
|
|
|
lengthening -- the reminder is the countermeasure under test), plus
|
2026-11-15 14:46:00 +00:00
|
|
|
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
|
variant round: roll retired, chance is variant literature (strict parse, crypto pick on reception, picked-only rendering, /story variance metric); entity round: /story the whole deliverable, /table the play projection, the slidwin carry (smart contwin cutoff, whole exchanges, housekeeper reads session-minus-tail); dormant-session rework: universal session lifecycle (dormant->live->finished, sessions/<n> storage), move-at-stop, start lint + auto-send rule, rebaseable housekeeping, turn-0 -> carryover.jsonl, seed -> memory.json, draft-only save-package; format house rules enforced by the nine-rule check-repo (ascii bytes, no text-mutating css); smoke 105/105 + restart + reminder + browser pass green, irene hand-migrated to the new layout
2026-11-15 14:35:00 +00:00
|
|
|
candidates), coin-flip personality (choices offloaded to chance
|
2026-11-15 14:46:00 +00:00
|
|
|
that should be character), and whether her variants stay same-turn
|
|
|
|
|
alternatives rather than sequences.
|
2026-11-11 22:12:40 +00:00
|
|
|
|
|
|
|
|
## Not yet exercised (expect first-use friction)
|
|
|
|
|
|
2026-11-15 14:46:00 +00:00
|
|
|
- **First start under multiuser** (step 1) -- nothing live has
|
2026-11-14 23:48:27 +00:00
|
|
|
touched the auth spine, invites, fork, or spectator mode yet; all
|
|
|
|
|
are mock-proven only.
|
2026-11-14 03:15:53 +00:00
|
|
|
- ask_gm in live flow (pause/resume is mock-proven; the live model
|
variant round: roll retired, chance is variant literature (strict parse, crypto pick on reception, picked-only rendering, /story variance metric); entity round: /story the whole deliverable, /table the play projection, the slidwin carry (smart contwin cutoff, whole exchanges, housekeeper reads session-minus-tail); dormant-session rework: universal session lifecycle (dormant->live->finished, sessions/<n> storage), move-at-stop, start lint + auto-send rule, rebaseable housekeeping, turn-0 -> carryover.jsonl, seed -> memory.json, draft-only save-package; format house rules enforced by the nine-rule check-repo (ascii bytes, no text-mutating css); smoke 105/105 + restart + reminder + browser pass green, irene hand-migrated to the new layout
2026-11-15 14:35:00 +00:00
|
|
|
simply made its own choices so far -- by design), the self-heal
|
2026-11-14 23:48:27 +00:00
|
|
|
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).
|
2026-11-15 14:46:00 +00:00
|
|
|
- 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.
|
variant round: roll retired, chance is variant literature (strict parse, crypto pick on reception, picked-only rendering, /story variance metric); entity round: /story the whole deliverable, /table the play projection, the slidwin carry (smart contwin cutoff, whole exchanges, housekeeper reads session-minus-tail); dormant-session rework: universal session lifecycle (dormant->live->finished, sessions/<n> storage), move-at-stop, start lint + auto-send rule, rebaseable housekeeping, turn-0 -> carryover.jsonl, seed -> memory.json, draft-only save-package; format house rules enforced by the nine-rule check-repo (ascii bytes, no text-mutating css); smoke 105/105 + restart + reminder + browser pass green, irene hand-migrated to the new layout
2026-11-15 14:35:00 +00:00
|
|
|
- The in-flow missed-update prediction (ROADMAP, system-1 entry) --
|
2026-11-14 23:48:27 +00:00
|
|
|
measurable from the second real session on.
|