Project Status
This page is generated from the project corpus and rewritten on every docs build. Edit the source in corpus/, not here.
What is true now. This page was 119 KB (~30k tokens) until 2026-09-19, three times the next largest page, because it had accumulated four things with four different lifetimes: current state, a newest-first banner changelog, hand-maintained per-brief tables, and finished-programme records. Only the first belongs here. The rest was not deleted — it moved to, or was already duplicated in, the places that own it:
| what | where it lives now |
|---|---|
| the dated banners (a changelog) | log.md — the chronological record, which already held a same-day entry for 55 of the 58 banners |
| per-brief one-liner tables | the directory itself: todos/ → todos/closed/, which since 2026-09-19 is the single archive (the old briefs/ tree was folded in) |
| the WebGL2 migration record | decisions.md → Renderer for the decision, todos/closed/2026-08-18-webgl2-00-BUILD-ORDER.md + -BUILD-STATE.md for the build, log.md for the bugs it found and the A/B probe technique |
So: do not add a banner here. Add a log.md entry and, if it changed what is currently true,
edit the matching line below.
Where each game stands
- Farm Valley — shipped, in maintenance. 21 farmers over 100 in-game days, sim in a Node WebSocket server. overview.md · player-and-interaction.md
- Citadel — shipped. Settlement sim; the 2026-06-28 cozy pivot is the design of record, and multiplayer is deprecated (decision #21). Challenge mode is built. citadel-overview.md · citadel-decisions.md · citadel-mp-deprecated.md
- Hollow — M1–M5 shipped (headless sim, 3D layer, research surfaces, governance/antagonism, Daily
Life), plus hollow-13's LLM rationalizer seam (off by default, byte-identical when off). The 3D
image is no longer Chrome-gated — it is WebGL2 and renders in-sandbox. The seam is low-rate
and genuinely live: ~12% adoption under the contrarian diagnostic, and when an answer is adopted
the world provably diverges (hollow-16, 2026-09-19 — every run now prints its own rate). hollow-17
(2026-10-06) added a second site, the leader's
shareRatevote; it adopts 16.5% rather than the hoped-for much more, because leaders turn over at the pass timescale (finding). No Hollow spec is queued. Hollow also builds as an ImbatranimOS marketplace module (npm run build:os -w @hollow/client→dist/os/hollow.mjs, 2026-10-06), and ImbatranimOS installs and runs it from its catalog at0d83f70(walked 2026-10-07, spec). The built copy once committed atgames/hollow/os-app/for ImbatranimOS's sandboxed install-from-URL is gone (2026-11-09): the OS retired that path, and the catalog is the one way in. hollow-overview.md - MateQuest — built and playable, M0–M5 complete. Romanian-curriculum math roguelike; UI defaults
to Romanian. Grades I–IV — settled 2026-09-19
(audit-54): the repo used to
advertise I–VIII, which was the curriculum the design was drawn from, not the build. Within I–IV it
covers arithmetic and comparison; division, fractions, units and geometry are not implemented.
Not deployed yet: vps-deploy gained its
mathqueststack on 2026-11-03. mathquest-overview.md - The games portal (built 2026-11-03, not deployed) —
/games, a card per game played in a same-origin frame, with a warning page under 1280×640 (all four games are computer-only). portal.md
Current sim behaviour & determinism
- Tests/typecheck: green; latest counts in the newest log.md entry (not tracked here). farm-valley runs node-by-default with jsdom scoped to the ~9 DOM test files (vitest
projects);CHECK_DETERMINISMruns its passes in parallelworker_threads. - Determinism is load-bearing, verified
MATCH ×3(seeds0xc0ffee/1/42). The contract is same seed reproduces itself byte-for-byte — not equality to pre-change numbers. The 2026-06-09 radial reorg, briefs 41–46/48 (new systems), and 70/73/74/75 (balance/region/economy) each re-baselined outcomes by design; reproducibility was re-verified each time. Brief 48 verified MATCH ×3 at bothticksPerDay=20and1200(rawMath.randomin ACT paths is a nondeterminism bomb — fishing/mining use forked rng channels; grep confirms zeroMath.randomin sim-core source). - Headless-probe pitfall: a headless
bootstrapSimcheck must passpathfinder: new JsPathfinder(), orTravelSystemis omitted and every travel-gated action silently no-ops (false "dormant"). See open-questions.md for the JS-vs-WASM route caveat. - Leader-runaway / peer-interaction: the old "one farmer runs away, field flat, peer layer inert" premise is stale (21-farmer radial field self-distributes; brief 59 fixed the peer-trade price bug + added
OFFER_CROP). Full detail + the residual drama gaps in open-questions.md.
Gates that run
- There is no hosted CI.
.github/and its Actions workflow were removed 2026-09-19 at the user's request. The workflow is gone; the checks are not — the sequence it ran is nowscripts/gates.mjs, run withnpm run gates: typecheck → test → build → four startup smokes (sim,sim:citadel,sim:hollow,preview) →pack-smoke. It keeps going after a failure and exits non-zero with the list.- The smokes are the part that matters.
typecheckandtestboth stayed green through a.glsldynamic-import break that made every Node consumer of the renderer throw at import (decisions.md → Renderer). Only starting the real entry points caught it. - Be honest about what was lost: nothing schedules this any more. It runs when a human remembers, which is the state audit-06 existed to fix. The gate is reproducible; the enforcement is not.
sim:hollowtakesMAX_YEARS, notMAX_DAYS/TICKS_PER_DAYlike the other two sims —tools/hollow-simreads a different env var for run length (tools/hollow-sim/src/env.ts), and passingMAX_DAYSsilently no-ops into a full-length run.
- The smokes are the part that matters.
- Node
>=24is pinned in the rootpackage.jsonenginesfield. It matchesinfrastructure/Dockerfile'snode:24-alpine— the one pin backed by a real deploy constraint — and clears both vite's and vitest's ownenginesranges. (README's old "Node 20+" was the drift.) npm run pack-smokeproves the publish contract, not just thatnpm packexits 0: it packs@engine/core+@engine/ui+@engine/wasm-modules, installs the tarballs intoexamples/library-consumeroutside the workspaces, and runs its Node smoke. It is the last step ofnpm run gates.- Slow tests declare their budget. No workspace sets a global
testTimeout, so everything runs on vitest's 5s default — and four sim/fuzz/property tests sat just over it, so a fullnpm run testfailed 2–4 random tests per run depending on machine load (playtest-06, 2026-09-20). The pathological one was made cheap (walkable-grid's adjacency scan, 5207ms → ~1100ms, via an exact bounds pre-filter); the three that are legitimately slow now pass an explicit20_000with a comment naming what makes them slow. Do not fix a new instance by raising a global default — that would also hide a test that got slow because something regressed. - In-canvas UI must fit
MIN_VIEWPORT(1280×640).assertFitsViewport(fits-viewport.ts) walks a laid-out tree and fails naming every interactive node outside the box; each game calls it in its own HUD/screen tests. PassincludeContent: truewhere clipped text also matters (Citadel's goods chips, Farm's home screen) — the default watches interactive nodes only, and that alone would have missed half of what the playtest found. - Path-scoped guard tests that fail on drift rather than on opinion: determinism across all four
sim-corepackages plusengine/core/src/{sim,ecs,runtime}, the.js-suffix ban and the version-pinning rule (conventions.test.ts, sweep-01 — all three were previously enforced by comments and reviewer memory); the clientbuild.target(build-target.test.ts); the singledevicePixelRatioreader (dpr-guard.test.ts); the panel-prefs storage keys (panel-storage-keys.test.ts); the per-game palette scan (palette.test.ts, which reads HTML and CSS too, not just TS), the layering rule (layering.test.ts, which classifies every workspace on disk), the per-directory GLSL lint, and the wasm drift check.
Architecture milestones (no brief / cross-brief)
- Seed-generated world (briefs 92 + 93, 2026-06-14): the world is now fully generated per seed — rectangular islands (farms fixed-area/varied-aspect) placed by BSP, straight axis-aligned bridges with loops, ~60% land, runtime-varying via
WORLD_SEED. Retired the radial-ring model + the brief-91 organic CA mask. Single funnelgenerateWorld(seed)+ mutablesetActiveWorldsingleton; open-ocean boats (pass under bridges). Determinism: sameWORLD_SEED→ byte-identical (fast diff). Full detail in world-generation.md. - Client/server split (briefs 55–58): the sim moved out of the browser into a Node server; the Vite app is a pure WebSocket client. Sim logic in
@farm/sim-core;@farm/serverhosts it;npm run devruns both (Vite proxies/sim). Determinism held (WASM baseline). (This bullet used to end with "Deploy gained a pm2 + Caddy-WS phase (dry-run-verified only)" — a mechanism that was never in the repo. Settled 2026-09-19, audit-59: this repo builds the sim server as a container (infrastructure/); the deployment configuration is maintained outside it and deliberately not duplicated here. Seeinfrastructure/README.md.) Since 2026-11-04 the image runs built JavaScript withnodedirectly (a Vite bundle of@farm/server, no npm, tsx ornode_modulesat runtime; idle memory 188 → 27 MiB measured locally); dev still runs it under tsx. Found along the way: JS≠WASM pathfinder routes (server uses WASM), and a fixed module-globallastFacingbug (now per-runSnapshotSpriteState). See architecture.md, decisions.md. - Post-corpus (no brief): Canvas2D renderer (replaced WebGPU), in-house ECS (replaced miniplex), WASM pathfinding infra, the sim↔render snapshot/interpolate boundary, home screen, headless run-sim, offline world-preview, README, Pip + interaction systems, and the 160×160 radial archipelago (2026-06-09, since grown to 240×240 and superseded 2026-06-14 by the seed-generated rect-island world — briefs 92/93 above). A 2026-06-06 refactor split every >300-line file into module directories fronted by barrels — see architecture.md → Module-directory convention.
Render backend
WebGL2 is the only backend, 2D and 3D, since 2026-08-18. Canvas2dRenderer and both WebGPU
backends are deleted; createRenderer takes no backend option. All four games were verified
rendering in a real browser at the time, and Hollow's 3D was re-verified in-sandbox 2026-09-19.
Decision and its rationale: decisions.md → Renderer. Build record, the six bugs the
migration exposed, and the reusable A/B probe technique: the 2026-08-18 entries in
log.md and todos/closed/2026-08-18-webgl2-BUILD-STATE.md.
Since 2026-11-03:
- Patches: a static layer past 4096 px or the device limit is drawn as 2048 px patches. Citadel's terrain always is, and it boots on 4096 px devices.
- The right way up: every texture upload has
UNPACK_FLIP_Y_WEBGLoff. Until then every baked static layer was drawn upside down under the sprites. - Where it's recorded: both calls are in decisions.md → Renderer, and the record is asset-pipeline.md → Patches as built.
Open gaps
See open-questions.md for the live list.
Where spec and brief state lives
The directory is the answer, not a table on this page. A closed spec's own status: line is
frozen at authoring time, so it lies; a hand-maintained index here would be a third copy to keep in
step, and it was not kept in step.
- Ready or in progress — todos/. Finished — todos/closed/.
- Older briefs — also todos/closed/. The separate
briefs/archive was folded in on 2026-09-19; numbered names (117-…) sit beside dated ones. - Why a thing was done that way — log.md, newest first.
- What must not be relitigated — decisions.md and citadel-decisions.md.
Recent changes
Newest first, one line each. Detail is in the log.md entry for the same date.
-
2026-11-03 — the four follow-up specs were grilled and built:
- the engine's patched static layer, which surfaced the old upside-down static layer;
- Citadel's terrain on patches, with the re-baking window deleted;
@engine/ui's optional immediate-mode layer, with MateQuest's?imguigone;- the games portal, with card art and vps-deploy stacks for it and MateQuest.
Nothing is pushed or deployed. The owner's steps:
- push this repo and vps-deploy;
- deploy
mathquestandgames-portal, then the three live games; - measure Hollow framed on a real GPU;
- check the portal on an Android phone. The README's Farm and Citadel images were retaken on 2026-11-07 (brief 01).
-
2026-09-20 — a visual pass over the six fixes produced two more closed specs and one correction. The font silently substituted
?for glyphs it had not baked: MateQuest's map-pan edge arrows used‹/›, which the vendored UNSCII does not contain, so an affordance that has always existed had never once rendered — and playtest-05's claim that "nothing indicates the map pans" was wrong about the cause. Citadel's road-drag readout had two more (—,·).glyphRowsnow reports an uncovered code point once per glyph instead of substituting silently (playtest-08). Also: MateQuest's language toggle discards the run by design (now recorded in decisions.md) but never said so — it does now (playtest-07). The lesson of the pass: the geometry guard added that morning has teeth, and is blind to paint order and glyph coverage — a draw-order regression that blanked the locale indicator passed all 14 map-screen tests and was caught only by a screenshot. -
2026-09-20 — first browser playtest of all four games, and all six specs it produced (playtest-01..06) built, verified in a browser, and closed. Two of them turned out to be one bug: an in-canvas root laid out with no viewport bound stranded MateQuest's submit + lifelines below the canvas and Citadel's
Pause/speed past the right edge. Both HUDs' tests were green because they assert the retained tree and never asked where it landed — so the fix is a sharedassertFitsViewportplus a written floor,MIN_VIEWPORT = 1280×640(decisions.md → Minimum supported viewport), which did not exist before. Also: MateQuest's comparison teach step now reasons about single-digit pairs (~72% of grade 1) instead of quoting a place-value rule at them; Farm's home screen reads its rival count off the roster; Citadel gainedSpace/1/2/4; the bitmap font gained→(it had baked←only); andnpm run testis no longer flaky — four tests were timing out against vitest's 5s default, not failing.npm run gatespasses 8/8 and the suite passed three consecutive uncached full runs. Hollow produced no defects. Two premises corrected: Farm's client does start in this sandbox (the blocker was synthetic pointer events on in-canvas widgets, not the WebSocket proxy — route table in architecture.md → Driving the clients headlessly), and thewalkable-gridadjacency test's tile×tile scan could never have failed, because every region pair is already ≥2 apart at the bounds level. -
2026-09-19 — the reader-facing docs refreshed against this corpus. The root README was still a single-game Farm Valley README (Node 20, "fails CI", one palette, 4 farmers,
worker/sim-client/); the Starlight site had never been told about MateQuest and still carried WebGPU claims, including Hollow's M2–M4 listed as unbuilt on a deleted backend. Both rewritten, agames/mathquestpage added, andhollow-overview.md's "branchhollow, local, unpushed / M1 complete" opener corrected. Site builds clean (27 pages). -
2026-09-19 — the
sweep-01..sweep-09queue built out, all nine. Three repo-wide guards that can fail (determinism across everysim-core,.jssuffixes, version pinning); the client bundler target pinned toes2022; oneeffectiveDpr()with Hollow's 3D finally applying the cap; Apollo-46 collapsed from five copies to one;panel-prefspromoted to@engine/ui; Farm's boot no longer dies over plain HTTP; the UI moved off the CPU rasterizer onto the sprite batch. The measurement that matters: draw-group fragmentation is real (49 groups, 12.3× the floor) but lives in one layer — seven of eight coalesce perfectly. -
2026-09-19 — audit sweep build-out: 23 of the 26
audit-38..63specs shipped. Four guards that could not fail now can (palette reads HTML/CSS, layering reads the filesystem, theRnghas golden vectors, the scheduler has a branch-agreement test); a Vickrey auction stopped charging the winner their own duplicate bid;.dockerignorestopped stripping the wasm the sim server reads. audit-53 corrected three pages that described deleted code. -
2026-09-18 — a second six-lens audit sweep filed
audit-38..63(46 raw findings → 26 filed). -
2026-09-15 — hollow-13: the LLM seam exists and is anchored per-choice by identity. Its adoption rate was settled by hollow-16 on 2026-09-19. Also: the 2026-09-13 audit backlog (30 specs) and audit-32..37 all landed.
-
2026-09-14 — a CI gate was added (
audit-06); removed again 2026-09-19 by user request, with its checks preserved asnpm run gates(see Gates that run). -
2026-08-18 — WebGL2 became the single render backend; a corpus audit found the work queue was fiction and 452 links were dead.