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

This commit is contained in:
2026-11-15 15:28:56 +00:00
parent d737e47f82
commit f81b188ce1
22 changed files with 594 additions and 90 deletions
+10 -8
View File
@@ -7,14 +7,11 @@ a tier.
## Operator's queue (don't edit, don't work on)
- name the project. Tiny Worlds?
- jsdoc
- debug mode skipping the invite
- explain "one thing of thinking" in reminder
- calibration package: escape room
- user manual
- remove spectator mode, make all story views public and forkable
- fork should copy the entire run
- add raw sessions view to the table
- git remote; no PII anywhere in repo or git history
@@ -45,11 +42,16 @@ run again.
## The substrate (REST + SPA)
### 4. Stack -- RESOLVED (2026-11-13)
Zero-dependency, ruled by GM: `node:http` with a hand-rolled router, a
no-build vanilla ES-module SPA, no `package.json` -- the repo ethos
carried through. If a need ever demands a dependency, it makes its case
then.
### 4. Stack -- RESOLVED (2026-11-13), AMENDED (2026-11-15)
Zero-dependency runtime, ruled by GM: `node:http` with a hand-rolled
router, a no-build vanilla ES-module SPA. If a need ever demands a
runtime dependency, it makes its case then. Amendment (2026-11-15):
no *runtime* dependencies or package-manager requirements -- the
running system stays clone-and-run with node alone. Development
tooling is exempt and may use whatever is necessary; the first
dev deps are `typescript` + `@types/node` (JSDoc type checking,
`tsc` as a no-emit checker -- no transpile step, everything stays
`.mjs`).
### 5. ask_gm mid-loop resumption -- RESOLVED (2026-11-12)
Pause/resume, no streaming: the turn request returns with the pending