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
+4 -2
View File
@@ -23,8 +23,10 @@
// context window), turn-0, seed (memory.json is the name).
// Historical records keep the vocabulary of
// their day; gm.md is GM-private, flagged never fixed.
// 5. Zero-dependency stack (GM, 2026-11-13): every import is
// node: builtin or relative. No package manager, ever.
// 5. Zero-dependency runtime (GM, 2026-11-13, amended 2026-11-15):
// every import is node: builtin or relative -- no runtime deps,
// no package-manager requirement to run. Dev tooling is exempt
// (typescript rides devDependencies; nothing imports it).
// 6. UTC discipline (GM, 2026-11-14): no locale- or timezone-
// dependent date formatting in code. No time zones, ever.
// 7. web/ static files never start with "api" -- the server's route