commit 6044c8dcc7992859dd362db19421941dd3b039d7 Author: OmO Orchestrator Date: Tue Nov 17 16:20:05 2026 -0500 chore: planning artifacts, fixtures, and plan before execution diff --git a/.omo/drafts/the-commons-hollow.md b/.omo/drafts/the-commons-hollow.md new file mode 100644 index 0000000..dcc7660 --- /dev/null +++ b/.omo/drafts/the-commons-hollow.md @@ -0,0 +1,113 @@ +--- +slug: the-commons-hollow +status: complete +intent: clear +review_required: true +plan_path: .omo/plans/the-commons-hollow.md +plan_sha256: 290b1a5305a3c099ad69380c63b253baaf7bfc2c45d585587d4424c4509a49ba +review_round_id: round-c47ed947-2221-4881-a257-267bbd9f3606 +review_round_limit: 5 +round_status: active +pending-action: review .omo/plans/the-commons-hollow.md +review: + round_1: + status: approved + plan_sha256: 476ec7658e6da11fb27c4cfe8abeb587dc0156a78ef1c538757a73e77804db69 + round_id: round-7410dc88-c948-435c-af90-6347dd320258 + session: st_01a1eb3b + result: "[OKAY] - approved with 2 non-blocking reference notes, fixed post-approval, triggering round_2" + round_2: + status: approved + plan_sha256: ab79352144859ce3d09bee5aa189460cf3f0feeb2177cb318e32aac8dc1b54c7 + round_id: round-75d0a04a-e4d6-423e-8817-53fd995e37b5 + session: st_01a1eb3d + result: "[OKAY] - approved, 1 non-blocking note. 34-todo plan fully approved at this hash - then the user (ultrawork mode) asked for the plan to be fleshed out into finer-grained todos, expanding 34->60 and invalidating this round's digest per the hash-drift rule, triggering round_3 below" + round_3: + status: approved + plan_sha256: 60be35c6ea3f5c98f9e4b19506b33b895d2cdf2b86c645069230f5fae4d9003b + round_id: round-52a24007-9d5d-4488-8002-d5664c80f517 + session: st_01a1eb53 + result: "[OKAY] - clean approval, zero notes, on the expanded 34->60 todo plan. Then 3 real pre-flight spikes were run (CEEI LP-price-search confirmed converging on the real textbook instance; all ~17 npm deps confirmed to bundle cleanly in one Vite build after fixing one real @noble/curves import-path issue; real GECCO water-quality sample + real Hannay19 equations pulled into fixtures/) and baked into the plan, plus an explicit test-vs-prod isolation requirement for the GECCO fixture per user instruction - invalidating this round's digest, triggering round_4" + plan_reviewer: + status: approved + workspace_root: /home/athapa/patriothacks + runtime_home: null + target: .omo/plans/the-commons-hollow.md + round_id: round-c47ed947-2221-4881-a257-267bbd9f3606 + plan_sha256: 290b1a5305a3c099ad69380c63b253baaf7bfc2c45d585587d4424c4509a49ba + launch_id: launch-b31bf3e8-644f-47a0-b624-1f282d20989c + session: st_01a1eb5e + result: "[OKAY] - clean terminal approval after pre-flight spikes + prod/test isolation fix. Live hash re-verified identical to approved digest immediately before handoff - no drift." +approach: Build "THE COMMONS" as a WeChat/Alipay-style mini-app super-app for the Hollow: one shared shell (home-screen app grid, one identity, one mutual-credit wallet/ledger, one signed event log) hosting 13 self-contained mini-apps, each hard-coding its own already-verified real mechanism from this session's proposal catalog. No generic backend "Allocator Kernel" is built (reviewer's cut stands); unification happens at the shell/navigation/wallet layer only. Deployed live (Vercel/Netlify/Fly free tier) + a recorded demo video, submitted as a public repo. +--- + +# Draft: the-commons-hollow + +## Affected user and ideal state +Affected: (1) the user (solo hacker/submitter) - needs a working, judged-ready, broad-but-coherent product by the Nov 20 11PM hard deadline; (2) the judges - score Creativity/Technical/Impact/Presentation, 25% each, in a 2-4 min demo, and the official packet explicitly rewards "one well-connected solution" over disconnected point tools; (3) a hypothetical Hollow resident (the fictional persona the UI is written for) - needs one app, one login, one wallet, for every civic function. + +- IS-1 | one coherent super-app, not 13 unrelated demos | judging rewards connection; Presentation needs one story | GAP-1 | nothing built yet | closed by shell+miniapp todos +- IS-2 | every mechanism is 100% real (no fabricated/simulated data, no hardware) | the user's own hard constraint from this session | GAP-2 | n/a (constraint, not a gap) | enforced per-miniapp in QA +- IS-3 | aesthetic reads as a native Alipay/WeChat/Tuya mini-app launcher | explicit user direction | GAP-3 | no UI exists | closed by shell/theme todos +- IS-4 | live, clickable deployment + recorded demo | explicit user direction | GAP-4 | nothing deployed | closed by deploy todos +- IS-5 | solo-buildable in ~3.5 days even at full scope | timeline is real and hard | GAP-5 | 13 miniapps is large for solo/3.5d | closed by priority-ordered todos + an explicit "ship whatever is green" stop rule each miniapp inherits from the reviewed core-loop discipline + +## Components (topology ledger) +id | outcome (one line) | status | evidence path +shell | app-grid home screen, shared identity/session, theme (Alipay/WeChat/Tuya), installable PWA | active | this plan +admin | lightweight seed/config panel for in-world setup data (population counts, initial resource pools, baseline readings) - keeps resident-facing UX frictionless | active | this plan +ledger | double-entry mutual-credit DIGITAL WALLET (nets to zero, live-provable), single-device-per-identity (see D12 correction); first-class shell UI: Alipay-style balance card atop the home grid + transaction history view (QR send/receive for peer transfers STRUCK per plan-consultant finding C1 - no transport exists for it, and it was the real adversarial double-spend surface anyway). Touched by: ma-fairshare (resource credits), ma-housing (fairness-debt entries), ma-fairdraw (optional stake/payout), ma-mentor (teaching rewards), ma-farms/ma-healthpost (contribution credits), ma-upload (optional creator tip) | active | .omo/ulw-research/20261117-proposals/THE-COMMONS-final-proposal.md +eventlog | signed append-only event log (single-replica core; CRDT multi-device sync is ma-assembly's capability, not shell-required elsewhere) | active | same +ma-fairshare | Equinox/CEEI allocator across power+water+food+cooling (merges problems 1+2+3); real allocation-history trend = honest early-warning | active | report.html md-p2 +ma-waterwatch | TraceWater corroboration-gated water readings, feeds ma-fairshare | active | report.html md-p4 +ma-tunnelsafety | Faultline crowd-sourced hazard reports + A* routing around closed segments; phone-tilt sensing optional corroboration only | active | report.html md-p5 +ma-housing | Roomlet CP-SAT housing allocator | active | report.html md-p6 +ma-assembly | Quorum-CRDT offline partition-heal for proposals/rosters/votes + liquid-democracy/QV tally (absorbs former governance miniapp) + signed public testimony/consensus board (merges problems 7+13). 3-layer resilience: (1) local-first IndexedDB/Yjs, every op works with zero network; (2) partition-and-heal over WebRTC/WebSocket when any link exists - CRDT merge is commutative/associative/idempotent, demoed by live-disconnecting two devices, acting on both, reconnecting, and showing the merge; (3) fully air-gapped fallback via QR-code sneakernet (Yjs delta chunked into an animated QR sequence, scanned by jsQR) - zero infrastructure required | active (highest risk/wow, time-boxed) | report.html md-p7, md-w2 +ma-findfamily | Blindlink PSI reunification miniapp | active | report.html md-p8 +ma-healthpost | Relay-Clinic WHO-IMCI triage + real crowd symptom self-reports feeding dispatch (merges problems 9+10) | active | report.html md-p10 +ma-lightclock | Daykeeper circadian tracker, standalone (no allocation claim) | active | report.html md-p11 +ma-farms | Rootstock GDD/LP food-planning, feeds ma-fairshare's food number | active | report.html md-p12 +ma-fairdraw | Crucible Part-B commit-reveal lottery; shared tie-break utility other miniapps call | active | report.html md-p14 +ma-theclimb | Ascent OR-Tools/SimPy return-logistics, calls ma-fairdraw for contested wave slots | active | report.html md-p15 +ma-mentor | Relay-Education skill-graph/FSRS miniapp | active | report.html md-w3 +ma-sky | Dayspring culture/morale miniapp | active | report.html md-w4 +ma-upload | user-uploadable miniapp (HTML+manifest) + shareable install QR, reuses qrcode/jsQR libs; no sandboxing in MVP (direct load, shared SDK access) | active | this plan +deploy | live hosting + recorded demo video | active | this plan + + +## Findings (cited - path:lines) +All scenario/competitor/library-feasibility research already done this session; see .omo/ulw-research/20261117-proposals/ (brief.md, debate-log.md Rounds 1-2, THE-COMMONS-final-proposal.md, report.html with all 26 proposals + the final integrated proposal). Official packet confirmed verbatim: notes/facts/patriothacks-2026-packet.md (memory repo). No new exploration needed - this plan sequences already-verified work. + +## Decisions (with rationale) +D1 full-broad scope over reviewed-safe-core | user explicit choice, accepting the timeline risk the reviewer flagged | owner-decision, asked +D2 solo build | user explicit | owner-decision, asked +D3 OmO/senpi is build-tool only, zero runtime LLM dependency in the shipped app | user explicit | owner-decision, asked +D4 generic submission (public repo + README + recorded demo) PLUS live deploy | user explicit (two answers combined) | owner-decision, asked +D5 Alipay/WeChat/Tuya mini-app aesthetic + mini-app-shell architecture | user explicit; also resolves D1 vs the reviewer's anti-generic-kernel finding (shell unifies navigation/identity only, each miniapp hard-codes its own logic) | owner-decision, asked +D6 tech stack: reuse this session's already-verified picks, JS-ONLY end to end (React/Vite/TS shell; every solver reimplemented in JS - javascript-lp-solver for CEEI/assignment/LP, hand-rolled min-cost-flow, native Web Crypto for hashing, Yjs for ma-assembly - no Python runtime anywhere) over adopting a cross-platform miniapp-runtime framework (Taro/uni-app). Supersedes an earlier draft of this decision that still named Python cvxpy/OR-Tools/SimPy services, which plan-consultant correctly flagged as contradicting D9's PWA-only backend scope | user delegated research to me; a real WeChat-miniapp compiler targets the wrong runtime for a web-judged demo; a Python backend contradicts D9's minimal-backend scope | defaulted-with-rationale, reversible +D7 priority order: ledger+eventlog+shell -> ma-fairshare+ma-waterwatch (reviewed core loop) -> ma-fairdraw -> ma-assembly (highest risk/wow, time-boxed, never blocks floor) -> ma-housing, ma-findfamily, ma-healthpost, ma-tunnelsafety, ma-farms, ma-theclimb, ma-lightclock, ma-mentor, ma-sky -> miniapp-upload+QR (meta-capability, built last, highest novel-engineering risk) | reviewer's "ship whatever is green" discipline carried forward | reversible at todo level +D8 revised 13-miniapp mapping merges problems 1+2+3 into ma-fairshare (real allocation-history trend = honest early-warning, no fake sensor), 7+13 into ma-assembly (signed public testimony board reuses the same event-log infra as group voting), 9+10 into ma-healthpost (real symptom self-reports feed real triage/dispatch) | user asked explicitly for merges where problems connect; this closes problems 1,3,9,13 which previously had NO real/non-fabricated miniapp at all | owner-decision, asked+designed +D9 PWA, mobile-first: manifest.json + Workbox service worker at shell level, React/Vite/TS, Dexie/IndexedDB for Ledger+EventLog, minimal backend (blob/KV) only for cross-device QR miniapp sharing | user explicit | owner-decision, asked +D10 user-uploadable miniapps + shareable QR: HTML+manifest package, loaded directly with shared SDK access (ledger/eventlog/identity) - no sandboxing/postMessage isolation in MVP per explicit user instruction (speed over isolation, not a production multi-tenant platform); QR encodes install URL, reuses already-verified qrcode/jsQR libs | user explicit | owner-decision, asked+designed +D11 admin/seed panel: in-world setup data that would otherwise force tedious resident-facing data entry (population counts, initial resource pools, baseline historical readings) is entered once via a separate lightweight admin screen, not through the demoed resident flows | user explicit; this is real configuration, not fabricated outcomes, so the no-fabrication constraint still holds | owner-decision, asked +D12 wallet transactions are Ed25519-signed messages appended to a signed Event Log, giving offline-capable, forgery-mathematically-impossible, non-blockchain signing (balances = local deterministic replay of the signed log). Explicit honest limit stated in the plan (not papered over): signatures make forgery impossible and double-spend cryptographically PROVABLE on re-merge, but do not make simultaneous-partition double-spend real-time PREVENTABLE without consensus/hardware - mitigated with a per-account credit limit + deterministic Lamport-timestamp tie-break. CORRECTION (plan-consultant finding A1): the wallet's Event Log is deliberately single-replica per draft's own `eventlog` component row - only ma-assembly's separate Yjs doc gets real cross-device transport. The merge/conflict-resolution logic IS real code, real-tested (constructed two-replica fixtures in unit tests), but is not exercised by any live cross-device demo for the wallet itself; the wallet is honestly single-device-per-identity in the shipped app. The former "QR send/receive for peer transfers" wallet feature is struck (see `ledger` component row) since it depends on transport that doesn't exist for this substrate | user explicit; most wallet traffic is system-issued (Fair Share, Housing) not adversarial P2P, so real exposure is small | owner-decision, asked+designed, corrected post plan-consultant + +D13 plan-consultant gap-analysis fixes, consolidated (all resolved, none left as open owner-questions - resolved from evidence already in hand this session): (a) ma-sky's presence counter (finding A2) routes through ma-assembly's already-synced Yjs roster, not the single-replica Event Log; its clock-driven sky view needed no fix - wall-clock synchronization requires no network at all; (b) ma-assembly's WebRTC (finding C2) names y-webrtc's public signaling server as the default, QR-sneakernet (already built) as fallback; (c) a cold judge visiting the live URL (finding B2) gets a bundled, one-click-loadable demo seed snapshot, not an empty app; (d) video length pinned to <=3 min / 180s, repo license defaulted to MIT (finding D1's reversible defaults); (e) the "no pre-coding" rule (finding D1's owner-question) is resolved, not asked: the official packet bans writing the SUBMITTED APPLICATION CODE before the build window, not prior research/planning/library-selection - standard hackathon practice, already satisfied since this plan is prose with zero application code, cited in notes/facts/patriothacks-2026-packet.md; (f) dark-mode support and a hard Lighthouse>=90 gate (findings D4, E1) are dropped as unapproved scope-creep - a single light theme matching D5's aesthetic, with Lighthouse scored but non-blocking behind the real installable-behavior gate; (g) one-line "informational, not medical advice" and local-only-data disclaimers added to ma-healthpost/ma-findfamily/ma-lightclock (finding D5); (h) the CEEI-via-LP convergence risk (finding F1, the highest-priority finding) gets an explicit early validation spike against a textbook instance with a named fallback (direct convex solver or water-filling) before Wave 2 is declared green; (i) "matches published reference" assertions for shakier citations (Hannay19, GECCO figures) may fall back to an internal property/consistency test, labeled as such, if no exact reproducible reference value exists; (j) a manual-camera QA leg added for the QR-sneakernet path, which no automated test touches | plan-consultant findings A1,A2,B1,B2,C1,C2,D1,D4,D5,E1,F1,F3,F4,G1,G2 | fixes applied directly to the plan file's affected todos + +## Scope IN +Shell (home grid, identity, themed Alipay/WeChat/Tuya UI, installable PWA) + Ledger + Event Log + 13 miniapps per the D8-revised mapping (ma-fairshare, ma-waterwatch, ma-tunnelsafety, ma-housing, ma-assembly, ma-findfamily, ma-healthpost, ma-lightclock, ma-farms, ma-fairdraw, ma-theclimb, ma-mentor, ma-sky) + user-upload/QR-share miniapp capability (D10) + live deployment + recorded demo video, built in D7 order. Covers all 15 official problems. + +## Scope OUT (Must NOT have) +- No hardware of any kind (already-established hard constraint). +- No fabricated/simulated data standing in for reality in any miniapp (already-established hard constraint) - ma-lightclock ships as a personal tracker only, never wired to ration a real resource (the one piece the reviewer caught as fabrication-by-model). +- No generic backend "Allocator Kernel" plugin interface (reviewer's premature-abstraction cut stands) - each miniapp's solver is hard-coded to that miniapp. +- No runtime OmO/senpi/LLM dependency in the shipped app (D3). +- No claiming an unbuilt miniapp as "live" in the demo or README - unbuilt = clearly labeled roadmap. + +## Open questions +None blocking. Minor cosmetic defaults (exact color palette, app icon art, miniapp display names) are left to the plan/build phase and are trivially reversible. + +## Approval gate +status: awaiting-approval + + diff --git a/.omo/plans/the-commons-hollow.md b/.omo/plans/the-commons-hollow.md new file mode 100644 index 0000000..04fc395 --- /dev/null +++ b/.omo/plans/the-commons-hollow.md @@ -0,0 +1,765 @@ +# the-commons-hollow - Work Plan + +## TL;DR (For humans) + + + +**Who this is for and what changes for them:** You, submitting solo to Patriot HackFest's "Life Underground" track; the judges, who score one well-connected solution higher than scattered point-tools; and the fictional Hollow resident the whole UI is written for, who goes from having no tool at all to one app covering every civic function in their life. + +**What you'll get:** THE COMMONS - an installable, mobile-first mini-app super-app styled like Alipay/WeChat/Tuya. One shared identity, wallet, and event log sits under 13 real mini-apps that together cover all 15 official problems, plus the ability for anyone to upload their own mini-app and share it by QR code. + +**Why this approach:** The official rules explicitly reward one connected solution over many disconnected ones. A mini-app shell gets you that connectedness cheaply - one wallet and one identity thread through most of the 13 mini-apps - without building a risky, over-engineered generic backend to "unify" them; each mini-app still just hard-codes its own real, already-verified mechanism. + +**What it will NOT do:** No hardware, and nothing fabricated or simulated stands in for real data or sensors anywhere. No blockchain or mining - the wallet uses signatures that make forgery impossible but, honestly, cannot by themselves stop a double-spend made while fully cut off from everyone at once. No security sandboxing around uploaded mini-apps in this MVP. + +**Effort:** XL +**Risk:** High - solo builder, ~3.5 days, and you explicitly chose the full 13-mini-app scope over the reviewed safe core. The single highest technical risk, found by the mandatory gap-analysis pass: the core allocator's math (CEEI) is a convex program, not a plain LP, so its JS implementation needs an early validated spike with a named fallback before the rest of the demo can build on it - this now gates Wave 2 explicitly. Otherwise mitigated by strict priority ordering: the core allocation loop ships first and is fully de-risked, the riskiest piece (offline multi-device sync) is time-boxed and never blocks anything else, and every remaining mini-app is independently shippable or skippable. +**Decisions to sanity-check:** Accepting full-broad scope at solo/3.5-day risk (D1); no sandboxing for uploaded mini-apps (D10); the wallet's signatures prevent forgery but not a fully-offline double-spend, and the wallet itself is honestly single-device (D12, corrected post gap-analysis); the CEEI solver's convergence must be spike-validated before Wave 2 is trusted (gap-analysis finding F1). + +Your next move: approve this plan file (separate from the earlier approach approval you already gave), or ask for changes before the mandatory plan-reviewer round runs. Full execution detail follows below. + +--- + +> TL;DR (machine): Effort=XL, Risk=High, 60 todos/7 waves, deliverables=PWA super-app (shell+wallet+eventlog+13 miniapps+upload/QR+live deploy). + +## Scope +### Affected user and ideal state +**Affected user:** you (solo builder/submitter), the judges (score Creativity/Technical/Impact/Presentation, 25% each, in a timed demo), and the fictional Hollow resident the UI is written for (needs one app/login/wallet for every civic function). Today: nothing exists. After: a working, deployed, judged-ready super-app. + +| Row | Statement | Reason | +| --- | --- | --- | +| IS-1 | One coherent super-app, not 13 unrelated demos | Judging explicitly rewards "one well-connected solution"; Presentation needs one story | +| GAP-1 | Nothing built yet | Closed by todos 1-12 (shared shell/ledger/eventlog) + every miniapp wiring into them (60 todos total post-expansion) | +| IS-2 | Every mechanism is 100% real - no fabricated/simulated data, no hardware | User's explicit hard constraint | +| GAP-2 | N/A - a constraint, not a gap; enforced per-todo QA (see each todo's failure-case QA scenario) | Violating this invalidates the whole submission | +| IS-3 | UI reads as a native Alipay/WeChat/Tuya mini-app launcher | Explicit user direction, central to Presentation score | +| GAP-3 | No UI exists | Closed by every UI-specific todo (2, 10, 11, 12, and each miniapp's dedicated UI todo: 15, 16, 18, 21, 27, 29, 31, 34, 37, 40, 43, 46, 49, 52) + todo 58's visual QA pass | +| IS-4 | Live, clickable deployment + recorded demo | Explicit user direction, required for submission | +| GAP-4 | Nothing deployed | Closed by todos 56, 57, 59, 60 | +| IS-5 | Solo-buildable in ~3.5 days even at full 13-miniapp scope | Timeline is real and hard | +| GAP-5 | 13 miniapps + shell + crypto + PWA (now 60 granular todos post-expansion) is large for solo/3.5d | Closed by the wave-ordered todo structure itself (each miniapp independently shippable/skippable, every engine/UI split independently gradeable) + F1/F4's "ship whatever is green, never claim unbuilt as live" check | + +### Must have +Shell (home grid, identity, themed Alipay/WeChat/Tuya UI, installable PWA, wallet balance card) + Admin/seed panel + signed Event Log (Ed25519) + Ledger/wallet (deterministic replay, credit limits, Lamport tie-break) + all 13 miniapps (ma-fairshare, ma-waterwatch, ma-tunnelsafety, ma-housing, ma-assembly, ma-findfamily, ma-healthpost, ma-lightclock, ma-farms, ma-fairdraw, ma-theclimb, ma-mentor, ma-sky) to their "Live" tier + ma-upload (upload + shareable QR) + live deployment + recorded demo. Covers all 15 official problems via the merges in draft D8. Budget: $0/free-tier hosting only (plan-consultant finding D2). Scale target: demo-scale only - a single concurrent judge/visitor per browser session, no multi-tenant load target (finding D3). + +### Must NOT have (guardrails, anti-slop, scope boundaries) +- No dark-mode theme and no hard Lighthouse-score gate - neither was approved scope (plan-consultant findings D4, E1); Lighthouse is recorded for information only, never blocking. +- No test-only sensor-data fixture (the GECCO water-quality sample at `fixtures/gecco2018-water-quality-sample.csv`) may be imported, read, or exposed by any production code path, ever - it exists solely for the Vitest suite in todo 17 to validate the CUSUM/EWMA detector's correctness against real, independently-labeled data. Production's only legitimate source of water-quality readings is real resident-submitted reports through the UI (todo 18). This is distinct from `fixtures/hannay19-model-spec.md` (todo 44), which is a reference equation set meant to be ported directly INTO production code, not sensor data standing in for a live feed. +- No hardware of any kind. +- No fabricated/simulated data standing in for reality anywhere - ma-lightclock (todos 44-46) stays a personal tracker, never rations a resource. +- No generic backend "Allocator Kernel" plugin interface - each miniapp's solver is hard-coded to that miniapp (draft D5). +- No runtime OmO/senpi/LLM dependency in the shipped app (draft D3). +- No sandboxing/isolation for ma-upload's uploaded mini-apps (draft D10, explicit user cut) - do not add iframe `sandbox` attributes or a postMessage isolation boundary; direct DOM mount with shared SDK access is correct, not a shortcut. +- No blockchain, mining, or global consensus for the wallet (draft D12) - Ed25519 signing + local deterministic replay only. +- No claiming an unbuilt miniapp as "live" in the demo or README - unbuilt is clearly labeled roadmap. + +## Verification strategy +> Zero human intervention - all verification is agent-executed. +- Test decision: **TDD-lite** (write the correctness assertion before/alongside the implementation) for every solver/crypto/algorithm todo (4,5,6,7,13,14,17,20,22,23,24,25,28,30,32,33,36,38,39,41,42,44,45,47,48,50,51) since correctness there IS the Technical score; **tests-after** for pure-UI/wiring/simple-CRUD todos (1,2,3,8,9,10,11,12,15,16,18,19,21,26,27,29,31,34,35,37,40,43,46,49,52,53,54,55,56,57,58,59,60). Framework: **Vitest** for unit/logic tests, **Playwright** for E2E/visual QA and for mechanically recording the demo video (todo 60) and simulating network partition (todo 23, via `context.setOffline()`/route interception rather than a human unplugging a cable). +- Evidence: `.omo/evidence/the-commons-hollow/task--the-commons-hollow.` for every todo (this plan runs outside ulw-loop's attemptDir convention). + +## Execution strategy +### Parallel execution waves +> Size each wave to the todos that are independent of each other. Priority order follows draft D7: the reviewed core loop ships first and de-risked; ma-assembly (22-27) is explicitly time-boxed and never blocks the floor; ma-upload (53-56) is built last as the highest novel-engineering-risk meta-capability. Every miniapp wave after Wave 2 is independently shippable/skippable if time runs out (GAP-5). +- **Wave 1 (Foundation)**: 1-12 - blocks everything else. +- **Wave 2 (Core loop - the honesty anchor)**: 13-19. +- **Wave 3 (Fair Draw)**: 20-21. +- **Wave 4 (Assembly - time-boxed stretch)**: 22-27. +- **Wave 5 (Remaining miniapps, each independent, each now split into engine/data-model/UI sub-todos)**: 28-52. +- **Wave 6 (Upload + QR meta-capability)**: 53-56. +- **Wave 7 (Deploy & submission polish)**: 57-60. + +### Dependency matrix +| Todo | Depends on | Blocks | Can parallelize with | +| --- | --- | --- | --- | +| 1 | none | 2, 3, 10, 53, 54, 56 | 4, 5, 6, 7, 8, 9, 11, 12 | +| 2 | 1 | none | 3, 4, 5, 6, 7, 8, 9, 10, 11, 12 | +| 3 | 1 | none | 2, 4, 5, 6, 7, 8, 9, 10, 11, 12 | +| 4 | none | 5 | 1, 2, 3, 6, 7, 8, 9, 10, 11, 12 | +| 5 | 4 | 6, 8, 14, 17, 20, 22, 26, 28, 30, 32, 33, 35, 38, 41, 44, 47, 50, 51, 54 | 1, 2, 3, 7, 9, 10, 11, 12 | +| 6 | 5 | 7, 11, 14, 28, 54 | 1, 2, 3, 4, 8, 9, 10, 12 | +| 7 | 6 | none | 1, 2, 3, 4, 5, 8, 9, 10, 11, 12 | +| 8 | 5 | 9, 14 | 1, 2, 3, 4, 6, 7, 10, 11, 12 | +| 9 | 8 | 57 | 1, 2, 3, 4, 5, 6, 7, 10, 11, 12 | +| 10 | 1 | 12 | 2, 3, 4, 5, 6, 7, 8, 9, 11 | +| 11 | 6 | 12 | 1, 2, 3, 4, 5, 7, 8, 9, 10 | +| 12 | 10, 11 | 15, 16, 18, 21, 27, 29, 31, 34, 37, 40, 43, 46, 49, 52 | 1, 2, 3, 4, 5, 6, 7, 8, 9 | +| 13 | none | 14 | 15, 16, 17, 18, 19 | +| 14 | 5, 6, 8, 13 | 15, 16, 17, 19, 38 | 18 | +| 15 | 12, 14 | 19, 58 | 13, 16, 17, 18 | +| 16 | 12, 14 | 19, 58 | 13, 15, 17, 18 | +| 17 | 5, 14 | 18, 19 | 13, 15, 16 | +| 18 | 12, 17 | 19, 58 | 13, 14, 15, 16 | +| 19 | 14, 15, 16, 17, 18 | 60 | 13 | +| 20 | 5 | 21, 28, 41 | none | +| 21 | 12, 20 | 58 | none | +| 22 | 5 | 23, 24, 25, 26, 27, 51 | none | +| 23 | 22 | 60 | 24, 25, 26, 27 | +| 24 | 22 | none | 23, 25, 26, 27 | +| 25 | 22 | 27 | 23, 24, 26 | +| 26 | 5, 22 | 27 | 23, 24, 25 | +| 27 | 12, 22, 25, 26 | 58 | 23, 24 | +| 28 | 5, 6, 20 | 29 | 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52 | +| 29 | 12, 28 | 58 | 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52 | +| 30 | 5 | 31 | 28, 29, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52 | +| 31 | 12, 30 | 58 | 28, 29, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52 | +| 32 | 5 | 34 | 28, 29, 30, 31, 33, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52 | +| 33 | 5 | 34 | 28, 29, 30, 31, 32, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52 | +| 34 | 12, 32, 33 | 58 | 28, 29, 30, 31, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52 | +| 35 | 5 | 36, 37 | 28, 29, 30, 31, 32, 33, 34, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52 | +| 36 | 35 | 37 | 28, 29, 30, 31, 32, 33, 34, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52 | +| 37 | 12, 35, 36 | 58 | 28, 29, 30, 31, 32, 33, 34, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52 | +| 38 | 5, 14 | 39 | 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52 | +| 39 | 38 | 40 | 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52 | +| 40 | 12, 39 | 58 | 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52 | +| 41 | 5, 20 | 42, 43 | 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 44, 45, 46, 47, 48, 49, 50, 51, 52 | +| 42 | 41 | 43 | 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 44, 45, 46, 47, 48, 49, 50, 51, 52 | +| 43 | 12, 41, 42 | 58 | 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 44, 45, 46, 47, 48, 49, 50, 51, 52 | +| 44 | 5 | 45 | 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 46, 47, 48, 49, 50, 51, 52 | +| 45 | 44 | 46 | 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 47, 48, 49, 50, 51, 52 | +| 46 | 12, 45 | 58 | 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 47, 48, 49, 50, 51, 52 | +| 47 | 5 | 48 | 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 49, 50, 51, 52 | +| 48 | 47 | 49 | 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 50, 51, 52 | +| 49 | 12, 48 | 58 | 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 50, 51, 52 | +| 50 | 5 | 52 | 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 51 | +| 51 | 5, 22 | 52 | 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50 | +| 52 | 12, 50, 51 | 58 | 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49 | +| 53 | 1 | 54 | 55, 56 | +| 54 | 1, 5, 6, 53 | 55 | 56 | +| 55 | 54, 56 | 58 | 53 | +| 56 | 1 | 55, 57 | 53, 54 | +| 57 | 9, 56 | 59, 60 | 58 | +| 58 | 15, 16, 18, 21, 27, 29, 31, 34, 37, 40, 43, 46, 49, 52, 55 | 60 | 57, 59 | +| 59 | 57 | none | 58, 60 | +| 60 | 19, 23, 57, 58 | none | 59 | + +## Todos +> Implementation + Test = ONE todo. Never separate. + +- [ ] 1. Project scaffold (Vite+React+TS) + What to do / Must NOT do: Scaffold a Vite+React+TS project via `npm create vite@latest the-commons-hollow -- --template react-ts`. Initialize package.json, tsconfig.json (strict mode), ESLint+Prettier config, base folder structure (src/shell, src/miniapps, src/lib). Confirm `npm run dev` and `npm run build` work on the bare scaffold. Must NOT pull in a cross-platform mini-app runtime framework (Taro/uni-app) per draft D6 - this is a plain React SPA styled like a mini-app launcher. Must NOT add any backend/server scaffolding (local-first, client-only app). + Closes: GAP-1 + Parallelization: Wave 1 | Blocked by: none | Blocks: 2,3,10,53,54,56 + References: draft decisions D5, D6, D9 at .omo/drafts/the-commons-hollow.md; Vite docs (react-ts template); the 13-miniapp feel/function table (folder structure must anticipate miniapp mounting). + Acceptance criteria: `npm install && npm run build` exits 0 with no TypeScript errors; `npm run dev` starts a server reachable on localhost; repo contains tsconfig.json with `"strict": true`. Pre-flight note (2026-11-17, before execution): all planned dependencies (react, react-dom, dexie, @noble/ed25519, @noble/curves, javascript-lp-solver, yjs, y-webrtc, y-indexeddb, ts-fsrs, qrcode, jsqr, ngraph.path, vite-plugin-pwa) were installed together and built cleanly in one Vite bundle (134 modules, 268KB gzipped, exit 0) - the only fix needed was the `@noble/curves/ed25519.js` import path noted on the Find Family todo. + QA scenarios: happy - Vitest/shell: run `npm run build`, assert exit code 0 and `dist/index.html` exists, Evidence `.omo/evidence/the-commons-hollow/task-1-the-commons-hollow.json`; failure - introduce a deliberate TS type error in a scratch file and run `npm run build`, assert non-zero exit code and a TS2322-class error string in stdout, Evidence `.omo/evidence/the-commons-hollow/task-1-the-commons-hollow-typecheck-failure.json`. + Commit: Y | feat(scaffold): bootstrap Vite+React+TS project structure + Recommended task executor category: quick | mechanical scaffolding via a standard CLI template, no design decisions. + +- [ ] 2. PWA manifest + icons + What to do / Must NOT do: Add manifest.json with `display: "standalone"`, Alipay/WeChat/Tuya-inspired theme-color tokens, and a full icon set (192x192, 512x512, maskable variant); link the manifest in index.html. Must NOT pull in a cross-platform mini-app runtime framework (Taro/uni-app) per draft D6. Must NOT set display to fullscreen/browser (breaks the mini-app-launcher feel). + Closes: GAP-1 + Parallelization: Wave 1 | Blocked by: 1 | Blocks: none + References: draft decisions D5, D6, D9 at .omo/drafts/the-commons-hollow.md; web.dev PWA installability checklist (manifest requirements: name, short_name, start_url, display, icons incl. maskable); todo 1 scaffold output. + Acceptance criteria: manifest.json validates against the Web App Manifest schema (name, short_name, start_url, `display:"standalone"`, theme_color, icons array with 192/512 sizes present) with zero manifest errors reported. + QA scenarios: happy - Playwright: load the built app, read `document.querySelector('link[rel=manifest]')`, fetch the manifest URL, parse JSON, assert `display==="standalone"` and `icons.length>=2`, Evidence `.omo/evidence/the-commons-hollow/task-2-the-commons-hollow.json`; failure - strip the icons array from manifest.json and re-run the installability check, assert it now reports a missing-icons installability error, Evidence `.omo/evidence/the-commons-hollow/task-2-the-commons-hollow-missing-icons.json`. + Commit: Y | feat(pwa): add manifest.json with icons and theme tokens + Recommended task executor category: visual-engineering | theme-color/icon choices are a visual/branding decision tied to the Alipay/WeChat/Tuya look. + +- [ ] 3. Service worker + offline caching + What to do / Must NOT do: Add a Workbox-based service worker registered at the shell root, precaching the app shell (HTML/JS/CSS bundle) for offline load (via vite-plugin-pwa or manual Workbox `injectManifest`). Must NOT pull in a cross-platform mini-app runtime framework (Taro/uni-app) per draft D6. Must NOT gate acceptance on a Lighthouse score floor - Lighthouse is informational only per finding E1; the real gate is service-worker activation state. + Closes: GAP-1 + Parallelization: Wave 1 | Blocked by: 1 | Blocks: none + References: draft decisions D5, D6, D9 at .omo/drafts/the-commons-hollow.md; Workbox docs (precaching, service worker lifecycle); web.dev PWA installability checklist; finding E1 (Lighthouse score is informational, not a gate); todo 1 scaffold output. + Acceptance criteria: after `npm run build` and serving dist/, the service worker reaches `activated` state (`navigator.serviceWorker.ready` resolves, `registration.active.state === "activated"`); reloading with the network disabled still renders the shell. + QA scenarios: happy - Playwright: serve the production build, navigate, await `navigator.serviceWorker.ready`, assert `registration.active.state === "activated"`, set `page.context().setOffline(true)`, reload, assert the shell HTML still renders, Evidence `.omo/evidence/the-commons-hollow/task-3-the-commons-hollow.json`; failure - unregister the service worker, set offline, reload, assert the page now fails to load, proving caching drives the happy path, Evidence `.omo/evidence/the-commons-hollow/task-3-the-commons-hollow-no-sw-offline-failure.json`. + Commit: Y | feat(pwa): register Workbox service worker with offline precaching + Recommended task executor category: deep-low | service-worker lifecycle/caching correctness needs careful activation/offline testing, but is a contained, well-documented Workbox pattern. + +- [ ] 4. Local identity (Ed25519 keypair) + What to do / Must NOT do: On first launch, generate an Ed25519 keypair client-side via @noble/ed25519 (or tweetnacl), persist the private key in IndexedDB (Dexie), expose the public key for use by the Event Log's signing path. Must NOT use a server-issued identity. Must NOT use any custodial key storage. Must NOT transmit the private key anywhere, ever. + Closes: GAP-1 + Parallelization: Wave 1 | Blocked by: none | Blocks: 5 + References: draft decision D12 at .omo/drafts/the-commons-hollow.md; @noble/ed25519 (or tweetnacl) API docs; Dexie.js docs (IndexedDB wrapper). + Acceptance criteria: on a fresh IndexedDB (no prior identity record), exactly one Ed25519 keypair is generated and persisted; on a subsequent launch the persisted keypair is reused (no regeneration); a message signed with the private key verifies successfully against the public key. + QA scenarios: happy - Vitest: clear IndexedDB, call the identity module's `init()`, assert a 32-byte public key and private key are generated and persisted, re-call `init()`, assert the same public key is returned, Evidence `.omo/evidence/the-commons-hollow/task-4-the-commons-hollow.json`; failure - corrupt/delete the Dexie identity record mid-session then call a signing operation, assert it throws a typed "no identity" error rather than silently generating a new throwaway key, Evidence `.omo/evidence/the-commons-hollow/task-4-the-commons-hollow-missing-identity-failure.json`. + Commit: Y | feat(identity): generate and persist Ed25519 keypair client-side + Recommended task executor category: deep-low | non-custodial key generation/persistence is security-sensitive and needs careful persistence-semantics test coverage, but is a contained single module on named libraries. + +- [ ] 5. Signed Event Log core + What to do / Must NOT do: Build an append-only, local-first event log (Dexie-backed): every entry is `{payload, author_pubkey, signature, lamport_ts}`, signed with the author's Ed25519 private key (todo 4) at creation and signature-verified on read. Expose a deterministic `replay(entries)` reducer that any consumer (ledger, admin panel, miniapps) folds over to derive state. Must NOT require network connectivity to append or read. + Closes: GAP-1 + Parallelization: Wave 1 | Blocked by: 4 | Blocks: 6,8,14,17,20,22,26,28,30,32,33,35,38,41,44,47,50,51,54 and many more downstream (see full dependency matrix) + References: draft decision D12 at .omo/drafts/the-commons-hollow.md; todo 4 identity module (@noble/ed25519 signing/verification, Dexie-persisted keypair); Dexie.js docs (schema/versioning, transactions). + Acceptance criteria: appended entries carry a valid signature verifiable against `author_pubkey`; entries replay deterministically sorted by `lamport_ts` regardless of insertion order; no network call occurs in the append/read/replay path. + QA scenarios: happy - Vitest: append 5 signed events out of lamport_ts order, call `replay(entries)`, assert the reducer sorts by `lamport_ts` before folding and produces an identical result across two separate calls, Evidence `.omo/evidence/the-commons-hollow/task-5-the-commons-hollow.json`; failure - tamper with one stored entry's payload in place after signing and read it back, assert it throws a signature-verification error rather than returning the tampered payload, Evidence `.omo/evidence/the-commons-hollow/task-5-the-commons-hollow-tampered-signature-failure.json`. + Commit: Y | feat(event-log): add signed append-only Dexie event log with deterministic replay + Recommended task executor category: deep-low | sign-on-write/verify-on-read plus a deterministic reducer is correctness-critical and foundational for nearly every downstream feature, but the full contract is specified and testable in isolation. + +- [ ] 6. Ledger: balance computation + credit limits + What to do / Must NOT do: Implement the ledger as a deterministic replay of signed `wallet.transfer`/`wallet.issue` events (via todo 5's `replay()`), computing a double-entry balance per identity. Enforce a configurable per-account credit limit (reject/flag transfers that would push a balance below the configured floor). Must NOT implement any blockchain/mining/consensus mechanism. + Closes: GAP-1 + Parallelization: Wave 1 | Blocked by: 5 | Blocks: 7,11,14,28,54 + References: todo 5 Signed Event Log core (`replay(entries)` reducer, event shape); draft decision D12 at .omo/drafts/the-commons-hollow.md (wallet is single-device-per-identity; see todo 7 for the conflict-detection boundary). + Acceptance criteria: replaying a hand-constructed sequence of `wallet.issue`/`wallet.transfer` events through the ledger reducer produces balances matching hand-computed double-entry totals; a transfer that would breach the configured credit limit is rejected/flagged-invalid rather than silently applied. + QA scenarios: happy - Vitest: issue 100 units to account A, transfer 40 from A to B, replay, assert `balance(A)===60` and `balance(B)===40`, Evidence `.omo/evidence/the-commons-hollow/task-6-the-commons-hollow.json`; failure - set account A's credit limit floor to -20, attempt a transfer that would push A to -30, replay, assert the reducer rejects/flags that event and A's balance stays at the floor, Evidence `.omo/evidence/the-commons-hollow/task-6-the-commons-hollow-credit-limit-breach-failure.json`. + Commit: Y | feat(ledger): compute double-entry balances with per-account credit limits + Recommended task executor category: deep-low | deterministic financial-state computation over an event log is logic-heavy and needs precise test coverage, but is a self-contained reducer built directly on todo 5's documented contract. + +- [ ] 7. Ledger: double-spend conflict detection + Lamport tie-break + What to do / Must NOT do: On merge, detect two conflicting signed spend events from the same signer (draft D12) and resolve via earlier-Lamport-timestamp-wins, with the loser flagged for refund/notification. Must NOT implement any blockchain/mining/consensus mechanism. Must explicitly preserve the correction from this session's gap analysis: the wallet's Event Log is honestly single-device-per-identity - this conflict-resolution logic is real and tested via hand-constructed two-replica fixtures in Vitest, NOT exercised via any live cross-device demo for the wallet (only Assembly, a different cluster, gets live cross-device transport). + Closes: GAP-1 + Parallelization: Wave 1 | Blocked by: 6 | Blocks: none + References: todo 6 ledger balance engine; draft decision D12 at .omo/drafts/the-commons-hollow.md (conflict detection + single-device-per-identity honesty constraint); todo 5 Signed Event Log core (`lamport_ts` field). + Acceptance criteria: merging two hand-constructed replicas of the same signer's event history containing two conflicting spend events at different `lamport_ts` applies the earlier one and flags the later one with a refund/notification marker; no test or code path claims live cross-device sync for the wallet. + QA scenarios: happy - Vitest (hand-constructed two-replica fixture, NOT a live cross-device demo): construct replica-A and replica-B event lists sharing one signer with two conflicting `wallet.transfer` events at `lamport_ts=5` and `lamport_ts=7` spending the same funds, merge, assert the `lamport_ts=5` event wins and the `lamport_ts=7` event carries a `flagged: "refund"` marker, Evidence `.omo/evidence/the-commons-hollow/task-7-the-commons-hollow.json`; failure - merge two replicas where the conflicting events share an identical `lamport_ts` (true tie), assert the reducer throws/flags an unresolved-tie error instead of silently picking one, Evidence `.omo/evidence/the-commons-hollow/task-7-the-commons-hollow-lamport-tie-failure.json`. + Commit: Y | feat(ledger): add double-spend conflict detection with Lamport tie-break + Recommended task executor category: deep-low | distributed-conflict-resolution logic is intricate but the resolution rule and the fixtures-only test boundary are fully specified. + +- [ ] 8. Admin/seed panel: manual seed entry + What to do / Must NOT do: Build a minimal, separate (non-resident-facing) screen to enter in-world setup data once per demo: population counts, initial resource pools (power/water/food/cooling), baseline historical readings. Writes real `seed.*` events into the Event Log (todo 5) using the exact same signing path as any other event - no special unsigned/bypass write path. Must NOT let this panel fabricate outcome data - it seeds starting configuration only, per draft D11. + Closes: GAP-1 + Parallelization: Wave 1 | Blocked by: 5 | Blocks: 9,14 + References: draft decision D11 at .omo/drafts/the-commons-hollow.md (seed data is starting configuration only, never outcome data); todo 5 Signed Event Log core (append path, signature requirement applies identically here); todo 4 identity module (signing key used for `seed.*` events). + Acceptance criteria: submitting the manual seed form appends `seed.*` events through the exact same `append()` path used elsewhere (entries carry a valid signature and `author_pubkey`, no separate unsigned write exists); the form's fields are limited to population/resource-pool/baseline-reading categories with no field for entering a final/outcome metric. + QA scenarios: happy - fill the seed form with population=500, power_pool=1000, submit, assert a `seed.population` and `seed.resource.power` event appear in the Event Log with valid signatures, Evidence `.omo/evidence/the-commons-hollow/task-8-the-commons-hollow.json`; failure - submit the form with a malformed/missing required field (e.g. negative population), assert the submit is rejected client-side and no event is appended, Evidence `.omo/evidence/the-commons-hollow/task-8-the-commons-hollow-invalid-seed-input-failure.json`. + Commit: Y | feat(admin): add manual seed-entry panel writing signed seed.* events + Recommended task executor category: unspecified-low | a contained CRUD-style form wired to an already-built event-append API, moderate effort, no novel algorithmic decisions. + +- [ ] 9. Admin/seed panel: bundled demo-seed fixture + one-click load + What to do / Must NOT do: Bundle one seed set (population counts, resource pools, baseline readings) as a default fixture file, plus a one-click "Load Hollow demo" button on the admin panel that writes this fixture through the exact same `seed.*` event-append path as todo 8's manual entry (no shortcut/bypass write), so a cold visitor (a judge opening the live URL fresh) never lands on an empty app (finding B2). This is still real, honestly-labeled demo configuration, not fabricated outcome data. Must NOT let this fixture or button fabricate outcome data. Must NOT auto-load the fixture silently on every launch - it is a one-click, user-initiated action, not a hidden default that misleads a judge into thinking the data is live/organic. + Closes: GAP-1 + Parallelization: Wave 1 | Blocked by: 8 | Blocks: 57 + References: draft decision D11 at .omo/drafts/the-commons-hollow.md; finding B2 (cold-visitor-empty-app risk); todo 8 manual seed-entry panel (shared append path); todo 5 Signed Event Log core. + Acceptance criteria: clicking "Load Hollow demo" on a fresh (empty) Event Log appends the full bundled fixture as signed `seed.*` events via the same path as todo 8; the fixture is clearly labeled as demo data in the UI (visible "Demo data" badge/caption), never presented as live resident activity. + QA scenarios: happy - load the app with a clean IndexedDB, click "Load Hollow demo", assert the home grid/wallet now shows non-zero population/resource data and a visible demo-data label, Evidence `.omo/evidence/the-commons-hollow/task-9-the-commons-hollow.json`; failure - click "Load Hollow demo" twice in a row, assert the second click does not silently duplicate the fixture's events, Evidence `.omo/evidence/the-commons-hollow/task-9-the-commons-hollow-duplicate-load-failure.json`. + Commit: Y | feat(admin): add bundled demo-seed fixture with one-click load + Recommended task executor category: unspecified-low | wiring a static fixture through an existing append path plus a UI button and idempotency guard; contained scope. + +- [ ] 10. Shell: home grid component + What to do / Must NOT do: Build the Alipay/WeChat-style home grid (app-icon tiles, one per miniapp) as a standalone shell component, each tile a static nav target (icon + label) for one of the 13 miniapps, sourced from a single miniapp-registry data structure. Must NOT hard-code miniapp-specific business logic in the shell - the grid only renders navigation tiles; actual miniapp behavior lives in each miniapp's own module (draft D5). + Closes: GAP-1, GAP-3 + Parallelization: Wave 1 | Blocked by: 1 | Blocks: 12 + References: draft decision D5 at .omo/drafts/the-commons-hollow.md (shell does navigation/identity/wallet only); the 13-miniapp feel/function table for tile icon/label content; todo 1 project scaffold. + Acceptance criteria: the home grid renders exactly 13 tiles with icon/label sourced from a single registry (not per-miniapp hard-coded JSX); clicking a tile emits a navigation intent without the grid component importing any miniapp's internal logic module. + QA scenarios: happy - render the home grid with a 13-entry miniapp registry fixture, assert 13 tiles render with correct icon/label text, click one tile, assert the expected navigation callback fires with that miniapp's id, Evidence `.omo/evidence/the-commons-hollow/task-10-the-commons-hollow.json`; failure - static import-graph check: assert the home grid module's imports contain zero references to any `src/miniapps/*` internal-logic file, failing the test if a miniapp-specific import is detected, Evidence `.omo/evidence/the-commons-hollow/task-10-the-commons-hollow-miniapp-logic-leak-failure.json`. + Commit: Y | feat(shell): add home grid with 13 miniapp navigation tiles + Recommended task executor category: visual-engineering | an Alipay/WeChat-styled tile grid is primarily a visual-layout component. + +- [ ] 11. Shell: wallet balance card + transaction history + What to do / Must NOT do: Build an Alipay-style wallet balance card pinned atop the home grid, reading the current balance from todo 6's ledger, plus a transaction-history view listing replayed `wallet.transfer`/`wallet.issue` events for the active identity. Must NOT hard-code miniapp-specific logic here - this card only reads and renders ledger state (draft D5). + Closes: GAP-1, GAP-3 + Parallelization: Wave 1 | Blocked by: 6 | Blocks: 12 + References: draft decision D5 at .omo/drafts/the-commons-hollow.md; todo 6 ledger balance computation; todo 5 Signed Event Log core; the 13-miniapp feel/function table (Alipay bill-pay pattern). + Acceptance criteria: the balance card displays exactly the value returned by the ledger's balance-for-identity function; the transaction-history list renders entries in reverse-chronological `lamport_ts` order and updates reactively when a new event is appended. + QA scenarios: happy - seed the ledger fixture with issue(100) then transfer(40), render the wallet card, assert displayed balance text reads "60" and the history list shows 2 entries in reverse-chronological order, Evidence `.omo/evidence/the-commons-hollow/task-11-the-commons-hollow.json`; failure - append a new `wallet.transfer` event after initial render (no remount), assert the card's displayed balance updates reactively rather than showing stale state, Evidence `.omo/evidence/the-commons-hollow/task-11-the-commons-hollow-stale-balance-failure.json`. + Commit: Y | feat(shell): add wallet balance card and transaction history view + Recommended task executor category: visual-engineering | Alipay-style card UI rendering already-computed ledger state. + +- [ ] 12. Shell: routing/navigation wiring + What to do / Must NOT do: Build the shell router that mounts the selected miniapp when a home-grid tile (todo 10) is clicked, keeping the wallet card/history (todo 11) persistently visible across navigation. Must NOT hard-code miniapp-specific logic in the router - it only maps a miniapp id to its registered component (draft D5). + Closes: GAP-1, GAP-3 + Parallelization: Wave 1 | Blocked by: 10,11 | Blocks: 15,16,18,21,27,29,31,34,37,40,43,46,49,52 + References: draft decision D5 at .omo/drafts/the-commons-hollow.md; todo 10 home grid; todo 11 wallet balance card; the 13-miniapp feel/function table. + Acceptance criteria: clicking each of the 13 home-grid tiles navigates to that miniapp's route and mounts its registered component in the shell outlet while the wallet card stays mounted across navigation; navigating back to home unmounts the active miniapp and re-shows the grid. + QA scenarios: happy - click each of the 13 tiles in turn, assert the corresponding miniapp route/component renders and the wallet balance card's DOM node persists across each navigation, Evidence `.omo/evidence/the-commons-hollow/task-12-the-commons-hollow.json`; failure - navigate directly to an unregistered/invalid miniapp route, assert the router renders a defined not-found/fallback state rather than a blank page or thrown error, Evidence `.omo/evidence/the-commons-hollow/task-12-the-commons-hollow-invalid-route-failure.json`. + Commit: Y | feat(shell): wire router mounting miniapps under persistent shell + Recommended task executor category: deep-low | router/outlet composition with persistence-across-navigation needs careful mount/unmount testing across all 13 registered miniapps. + +- [ ] 13. Fair Share: CEEI validation spike + What to do / Must NOT do: Implement, as a standalone math/algorithm module with zero app/UI dependencies, an iterative price-search over `javascript-lp-solver` linear programs: bisection on a vector of resource clearing prices, with each agent's linear demand recomputed as an LP at each price step, checking market-clearing (supply == demand) convergence. Validate against a textbook 2-agent/2-good Eisenberg-Gale CEEI instance with a known closed-form solution, asserting the price-search result matches within a documented float tolerance (e.g. 1e-6). Cap the bisection at a fixed, documented iteration bound (e.g. 200 iterations); if convergence fails within that bound, implement the named fallback - a direct combinatorial water-filling/proportional-response algorithm for the linear-utility special case - and validate IT against the same closed-form answer instead. Must NOT wire this module to todo 14's 4-resource/N-agent code, the Event Log, or any UI - this is a pure math spike. Must NOT let todo 14 begin implementation until one of the two approaches passes its convergence/correctness assertion against the closed-form instance. PRE-VALIDATED (2026-11-17 pre-flight spike, before execution): the primary LP-price-search approach, run against this exact textbook instance using the real `javascript-lp-solver` package, converged to prices (1.0000004, 1) against the expected closed-form (1, 1), with allocations and utilities matching to 5+ decimal places - the water-filling fallback was not needed. Port that spike script's logic directly; do not re-derive from scratch. + Closes: GAP-1 + Parallelization: Wave 2 | Blocked by: none | Blocks: 14 + References: report.html#md-p2 (Equinox/CEEI mechanism spec - Eisenberg-Gale convex program); javascript-lp-solver README (LP model format, Solver.Solve()); draft decision D13(h) at .omo/drafts/the-commons-hollow.md (mandated early validation spike with named fallback, the plan's highest-priority gap-analysis finding). + Acceptance criteria: A Vitest suite constructs the textbook 2-agent/2-good Eisenberg-Gale instance, runs the price-search bisection to convergence or to the iteration cap, and asserts the result matches the closed-form allocation/prices within float tolerance; if the price-search fails to converge, the suite asserts the water-filling fallback instead matches the closed-form allocation within tolerance. The suite fails (not skips) if NEITHER approach matches - this is the explicit stop-the-line gate for todo 14. + QA scenarios: happy - Vitest runs the price-search bisection on the textbook instance, asserts convergence within the iteration cap and allocation/price match within 1e-6 of the closed-form answer, Evidence `.omo/evidence/the-commons-hollow/task-13-the-commons-hollow.json`; failure - force a pathological instance past the iteration cap without convergence, assert the suite automatically engages the water-filling fallback and the fallback still matches the closed-form answer within tolerance, Evidence `.omo/evidence/the-commons-hollow/task-13-the-commons-hollow-fallback.json`. + Commit: Y | feat(fairshare): add and validate CEEI price-search spike with water-filling fallback + Recommended task executor category: deep-high | the central decision (trust the LP price-search vs fall back to water-filling) has no in-repo pattern to copy and must be argued from convex-program/convergence invariants, not read off a test + +- [ ] 14. Fair Share: full CEEI engine + allocation-history trend + What to do / Must NOT do: Implement the approach VALIDATED by todo 13 (LP price-search or the water-filling fallback, whichever passed) as the production ma-fairshare engine, generalized across the 4 resource types (power, water, food, cooling) and N agents, per draft D8's merge of problems 1+2+3. The engine reads seeded resource pools and agent reported-need data from the signed Event Log (via replay) and produces a Pareto-efficient, envy-free allocation per resource per agent. Additionally compute an allocation-history trend (simple moving-average/slope) over the signed allocation-event history in the Event Log, as the honest early-warning signal required for problems 1 and 3. Must NOT use any fabricated/synthetic sensor reading or invented default for the trend - only the app's own real, already-logged allocation history counts; with fewer than 2 history points the trend must report "no trend yet," not a guessed line. Must NOT begin this implementation before todo 13's validation gate has passed. + Closes: GAP-1 + Parallelization: Wave 2 | Blocked by: 5, 6, 8, 13 | Blocks: 15, 16, 17, 19, 38 + References: report.html#md-p2 (Equinox/CEEI mechanism spec); javascript-lp-solver README; draft decision D8 at .omo/drafts/the-commons-hollow.md (the 1+2+3 merge rationale); todo 13's validated price-search/water-filling module. + Acceptance criteria: Vitest asserts the engine returns an allocation that sums exactly to seeded supply across all 4 resources for a multi-agent instance, and that the allocation is envy-free within the CEEI guarantee; a separate assertion feeds 1, then 3, then 5 test-seeded allocation-history entries and asserts the trend output is "no trend yet" at 1 entry and a correctly-computed slope at 3 and 5 entries. + QA scenarios: happy - solve a 4-resource, 10-agent instance seeded via the Event Log, assert allocations sum to seeded supply exactly and the trend reflects 3 real history points, Evidence `.omo/evidence/the-commons-hollow/task-14-the-commons-hollow.json`; failure - seed one resource pool at zero, assert the engine returns a valid all-zero allocation rather than dividing by zero or crashing, and the trend for that resource reports "no trend yet", Evidence `.omo/evidence/the-commons-hollow/task-14-the-commons-hollow-zero.json`. + Commit: Y | feat(fairshare): implement validated CEEI engine across 4 resources with allocation-history trend + Recommended task executor category: deep-low | applying an already-validated algorithm across resource types/agents is settleable from todo 13's evidence and the cited mechanism spec + +- [ ] 15. Fair Share: resource tiles UI + What to do / Must NOT do: Build the Alipay bill-pay-style resource tiles screen - one live tile per resource (power/water/food/cooling) with a live bar showing the agent's current CEEI allocation from todo 14's engine, plus the resource-credit balance pulled from the shared wallet/ledger component (referenced by behavior/interface, not reimplemented). Must NOT compute or display any allocation or balance number locally that didn't come from todo 14's engine output or the ledger's own balance read. + Closes: GAP-1, GAP-3 + Parallelization: Wave 2 | Blocked by: 12, 14 | Blocks: 19, 58 + References: the 13-miniapp feel/function table ("Fair Share" row, Alipay bill-pay tile pattern); report.html#md-p2; todo 14's engine output contract; the ledger balance todo's read interface. + Acceptance criteria: Playwright asserts all 4 resource tiles render with a live bar whose fill percentage matches todo 14's engine output exactly for a seeded instance, and that each tile's credit-balance figure matches a live read from the ledger rather than a locally-cached or guessed value. + QA scenarios: happy - seed a 4-resource allocation cycle, assert each tile's bar fill and balance figure match engine/ledger output exactly, Evidence `.omo/evidence/the-commons-hollow/task-15-the-commons-hollow.json`; failure - the ledger read fails/returns no balance yet for a brand-new identity, assert the tile shows an honest "no balance yet" state rather than a fabricated zero-with-confidence or a crash, Evidence `.omo/evidence/the-commons-hollow/task-15-the-commons-hollow-noledger.json`. + Commit: Y | feat(fairshare): add Alipay-style resource tiles UI wired to CEEI engine and ledger + Recommended task executor category: visual-engineering | resource-tile UI/wiring work, no algorithmic risk of its own + +- [ ] 16. Fair Share: trend chart UI + What to do / Must NOT do: Build the allocation-history trend chart component, rendering todo 14's computed moving-average/slope trend per resource as a line/sparkline, with a visible "early warning" indicator only when the underlying trend computation has produced one. Must NOT show any trend line, slope arrow, or warning badge when todo 14 reports "no trend yet" - render an honest empty/placeholder state instead. + Closes: GAP-1, GAP-3 + Parallelization: Wave 2 | Blocked by: 12, 14 | Blocks: 19, 58 + References: the 13-miniapp feel/function table ("Fair Share" row); report.html#md-p2; todo 14's allocation-history trend output contract. + Acceptance criteria: Playwright asserts the trend chart renders exactly as many data points as todo 14's engine has real history entries for, with no extra interpolated or synthetic points, and that the "no trend yet" state renders when fewer than 2 history points exist. + QA scenarios: happy - seed 3 real allocation cycles, assert the trend chart shows exactly 3 points matching todo 14's engine output values exactly, Evidence `.omo/evidence/the-commons-hollow/task-16-the-commons-hollow.json`; failure - zero or one allocation cycle seeded, assert the chart renders the honest "no trend yet" empty state rather than a fabricated placeholder trend line, Evidence `.omo/evidence/the-commons-hollow/task-16-the-commons-hollow-empty.json`. + Commit: Y | feat(fairshare): add allocation-history trend chart UI + Recommended task executor category: visual-engineering | chart/empty-state UI work, no algorithmic risk of its own + +- [ ] 17. Water Watch: CUSUM/EWMA gate engine + What to do / Must NOT do: Implement a two-sided CUSUM on a robust EWMA (median/MAD) baseline per water-quality channel in plain JS, plus the multi-sensor corroboration gate: a reading only triggers an alert, or is allowed to affect ma-fairshare's water resource (todo 14), once corroborated by a second independent report within a defined time window. Validate detection thresholds against a bundled sample of the REAL public GECCO 2018 water-quality dataset (cited at .omo/ulw-research/20261117-proposals/cluster-b-problems-4-5-6.md); bundle the sample as a fixture file, never synthesize validation data. If the exact true-positive/false-positive figures implied by that citation are not reproducible from the bundled fixture, fall back to an internal consistency assertion, explicitly labeled as a property check, not a reference-match. Must NOT let an uncorroborated single reading reach or affect todo 14's engine under any code path. + Closes: GAP-1 + Parallelization: Wave 2 | Blocked by: 5, 14 | Blocks: 18, 19 + References: report.html#md-p4 (TraceWater CUSUM/EWMA + multi-sensor corroboration-gate mechanism); the real GECCO 2018 water-quality sample already downloaded and bundled at `fixtures/gecco2018-water-quality-sample.csv` (2000 real rows incl. the real `EVENT` anomaly-label column, pulled 2026-11-17 directly from Zenodo record 3884398, cc-by-4.0) - use this file directly, no further fetch needed; todo 14's engine input contract for the water resource. + Acceptance criteria: Vitest replays the bundled GECCO fixture through the CUSUM/EWMA gate end to end; it asserts either (a) the gate's true-positive/false-positive rate matches the cited figures within a documented tolerance, or (b), if (a) isn't reproducible, that the gate fires on 100% of the fixture's labeled anomaly windows and 0% of its labeled-clean windows, with the test explicitly logging which mode it ran in. Additionally, a static-analysis/grep-based check (same pattern as todo 44's isolation test) asserts no file under `src/` outside `*.test.*`/`*.spec.*` imports or references `fixtures/gecco2018-water-quality-sample.csv`, and a build-artifact check asserts the production `vite build` output (`dist/`) does not contain that fixture's content - the GECCO data must never reach the shipped app. + QA scenarios: happy - two independent reports of the same anomaly arrive within the corroboration window, assert the gate fires and the corroborated reading is the only one passed to todo 14's engine, Evidence `.omo/evidence/the-commons-hollow/task-17-the-commons-hollow.json`; failure - a single uncorroborated anomalous reading arrives alone, assert the gate does NOT fire and no reading reaches todo 14's engine, Evidence `.omo/evidence/the-commons-hollow/task-17-the-commons-hollow-uncorroborated.json`; test-vs-prod isolation - deliberately add a throwaway import of the GECCO fixture into a production module, confirm the static-analysis check fails the build, then revert, Evidence `.omo/evidence/the-commons-hollow/task-17-the-commons-hollow-prod-isolation.json`. + Commit: Y | feat(waterwatch): add CUSUM/EWMA corroboration gate validated on real GECCO data + Recommended task executor category: deep-low | statistical gate correctness validated against a cited real dataset, settleable from the cited references + +- [ ] 18. Water Watch: device-monitor UI + What to do / Must NOT do: Build the Tuya-style device-monitor card: a live reading feed per water-quality channel plus a status light (clean/corroborating/alert) driven directly by todo 17's gate engine state machine. Must NOT show an "alert" status light for a reading that hasn't passed todo 17's corroboration gate - the light's state must map 1:1 to the gate's real internal state, never a locally-invented status. + Closes: GAP-1, GAP-3 + Parallelization: Wave 2 | Blocked by: 12, 17 | Blocks: 19, 58 + References: the 13-miniapp feel/function table ("Water Watch" row, Tuya device-monitor pattern); report.html#md-p4; todo 17's gate engine state-machine output contract. + Acceptance criteria: Playwright asserts the status light transitions exactly in step with todo 17's gate state (clean -> corroborating -> alert) for a scripted sequence of real test readings fed through the actual gate, with no intermediate state skipped or invented. + QA scenarios: happy - feed two corroborating readings through the real gate, assert the status light transitions clean -> corroborating -> alert in the UI matching the gate's own state, Evidence `.omo/evidence/the-commons-hollow/task-18-the-commons-hollow.json`; failure - feed a single uncorroborated reading, assert the status light stays at "corroborating" (or clean) and never jumps to "alert", Evidence `.omo/evidence/the-commons-hollow/task-18-the-commons-hollow-noalert.json`. + Commit: Y | feat(waterwatch): add Tuya-style device-monitor card UI wired to corroboration gate + Recommended task executor category: visual-engineering | status-light/feed UI work, no algorithmic risk of its own + +- [ ] 19. Core-loop honesty-anchor integration test + What to do / Must NOT do: Wire and prove, end to end with ZERO mocked, stubbed, or pre-scripted steps, the full honesty-anchor chain: a resident types a water reading into todo 18's UI -> a signed Event Log entry is appended -> todo 17's corroboration gate evaluates it -> on corroboration, a ledger credit event is appended -> todo 14's CEEI engine re-solves the water allocation -> todo 15's and todo 16's Fair Share UI bars/trend move to reflect the new solve. This is THE single required live civic-action demo per this session's adversarial review. Must NOT mock, stub, fake, or pre-script any single link in this chain for the test or the live demo. + Closes: GAP-1 + Parallelization: Wave 2 | Blocked by: 14, 15, 16, 17, 18 | Blocks: 60 + References: debate-log.md Round 2 at .omo/ulw-research/20261117-proposals/debate-log.md ("Mandated >=1 genuinely live civic action on stage as the honesty anchor"); todos 14, 15, 16, 17, 18's individual contracts. + Acceptance criteria: Playwright drives the full chain starting from typing a reading in the real UI through observing the Fair Share bar and trend chart change, and asserts each intermediate artifact exists and is real - any step found to be mocked, stubbed, or hardcoded fails the test. + QA scenarios: happy - two corroborating water readings are typed through the real UI in sequence, assert the full chain fires and the Fair Share water bar and trend chart both update to the real re-solved values within one UI update cycle, Evidence `.omo/evidence/the-commons-hollow/task-19-the-commons-hollow.json`; failure - a single uncorroborated reading is typed, assert the chain halts exactly at todo 17's gate (no ledger event, no re-solve, no UI change), Evidence `.omo/evidence/the-commons-hollow/task-19-the-commons-hollow-halt.json`. + Commit: Y | test(core-loop): prove end-to-end honesty-anchor chain with zero mocked steps + Recommended task executor category: deep-low | cross-module wiring correctness, settleable by composing already-cited, already-built component contracts + +- [ ] 20. Fair Draw: commit-reveal engine + What to do / Must NOT do: Implement commit-reveal verifiable randomness using the native Web Crypto `crypto.subtle.digest("SHA-256", ...)`: publish a commit hash of (seed + salt) before any draw-affecting information is known, later reveal seed+salt, and let anyone recompute the hash and the draw outcome to verify it wasn't rigged. Expose this as a shared, callable tie-break utility - a plain function/module with a stable commit()/reveal()/verify() API - that other miniapps import directly. Must NOT build this as, or expose it through, a generic backend "kernel" or plugin-registration system. + Closes: GAP-1 + Parallelization: Wave 3 | Blocked by: 5 | Blocks: 21, 28, 41 + References: report.html#md-p14 (Crucible Part-B commit-reveal mechanism); MDN SubtleCrypto.digest() / Web Crypto API docs. + Acceptance criteria: Vitest asserts, for 100 random (seed, salt) pairs, that reveal() followed by verify() against the earlier-published commit() hash succeeds every time; asserts a tampered reveal (wrong seed or wrong salt) fails verify() visibly. + QA scenarios: happy - full commit/reveal/verify cycle for a 5-way draw run through the real utility, assert the recomputed hash matches the published commit and the draw outcome is reproducible, Evidence `.omo/evidence/the-commons-hollow/task-20-the-commons-hollow.json`; failure - reveal a seed that doesn't match the earlier commit, assert verify() returns false rather than accepting it, Evidence `.omo/evidence/the-commons-hollow/task-20-the-commons-hollow-mismatch.json`. + Commit: Y | feat(fairdraw): implement SHA-256 commit-reveal utility as a shared tie-break module + Recommended task executor category: unspecified-low | small, well-specified crypto utility with a trivial hashing primitive and a clear contained API surface + +- [ ] 21. Fair Draw: reveal UI + What to do / Must NOT do: Build the Alipay "red envelope"-style reveal UI: shows the published commit hash before a draw, animates the reveal (seed+salt disclosed), and visibly runs todo 20's verify() against the earlier commit, showing a clear pass/fail badge. Must NOT show a "verified" badge unless todo 20's real verify() call returned true for that exact draw. + Closes: GAP-1, GAP-3 + Parallelization: Wave 3 | Blocked by: 12, 20 | Blocks: 58 + References: the 13-miniapp feel/function table ("Fair Draw" row, Alipay red-envelope reveal pattern); report.html#md-p14; todo 20's commit/reveal/verify utility API. + Acceptance criteria: Playwright asserts the UI displays the commit hash before reveal, then on reveal calls todo 20's real verify() and renders a "verified" badge only when that call returns true, and a visible "invalid" state when it returns false. + QA scenarios: happy - run a real draw through commit -> reveal -> verify in the UI, assert the "verified" badge renders and matches a real verify()===true call, Evidence `.omo/evidence/the-commons-hollow/task-21-the-commons-hollow.json`; failure - inject a tampered reveal (mismatched seed) through the same UI flow, assert the UI shows the "invalid" state rather than a false "verified" badge, Evidence `.omo/evidence/the-commons-hollow/task-21-the-commons-hollow-invalid.json`. + Commit: Y | feat(fairdraw): add Alipay red-envelope-style commit-reveal UI + Recommended task executor category: visual-engineering | reveal-animation UI work wired to an already-built verify() call + +- [ ] 22. ma-assembly core (Yjs CRDT, problems 7+13 foundation) + What to do / Must NOT do: Set up a Yjs document (IndexedDB-persisted via `y-indexeddb`) modeling proposals, a resident roster, and votes as CRDT shared types. Must NOT add any server-side source of truth for this state - it is genuinely local-first and only syncs peer-to-peer. + Closes: GAP-1 + Parallelization: Wave 4 | Blocked by: 5 | Blocks: 23, 24, 25, 26, 27, 51 + References: `report.html#md-p7` (Quorum-CRDT mechanism); Yjs README (`y-indexeddb`, shared types); draft decision D8 at `.omo/drafts/the-commons-hollow.md` (the 7+13 merge rationale). + Acceptance criteria: Vitest creates two independent Yjs doc replicas, applies divergent updates to each, merges them, and asserts the merged state is identical regardless of merge order (commutativity/associativity proof, not just a single example). + QA scenarios: happy - merge two replicas with non-conflicting edits, assert union of both, Evidence `.omo/evidence/the-commons-hollow/task-22-the-commons-hollow.json`; failure - merge two replicas with conflicting edits to the same field, assert the CRDT's defined conflict resolution applies deterministically (not a crash or data loss), Evidence `.omo/evidence/the-commons-hollow/task-22-the-commons-hollow-conflict.json`. + Commit: Y | feat(assembly): add Yjs CRDT core for proposals/roster/votes + Recommended task executor category: deep-low | CRDT correctness settleable from Yjs's documented guarantees + +- [ ] 23. ma-assembly partition-heal demo (problem 7, layer 2) + What to do / Must NOT do: Wire WebRTC-based sync via `y-webrtc`'s bundled public signaling server (the default, zero-infrastructure signaling approach) between two devices/browser contexts, plus a demo harness that can programmatically simulate "disconnect, act independently on both sides, reconnect" and visibly show the merge converge. If the public signaling server proves unreliable for the live demo, fall back to the QR-sneakernet transport (todo 24) as the resilience layer instead. Must NOT fake the disconnect visually while secretly still syncing - the acceptance test must prove the two sides were genuinely unable to communicate during the partition window. + Closes: GAP-1, GAP-5 + Parallelization: Wave 4 | Blocked by: 22 | Blocks: 60 + References: `report.html#md-p7`; Playwright `browserContext.setOffline()` / route interception docs (for the automated partition simulation); Yjs README (`y-webrtc`). + Acceptance criteria: Playwright opens two browser contexts, calls `setOffline(true)` on both (or blocks the WebRTC signaling route), performs a vote on each side, sets `setOffline(false)`, and asserts both contexts converge to the identical final vote tally. + QA scenarios: happy - two non-conflicting votes from each side merge to show both, Evidence `.omo/evidence/the-commons-hollow/task-23-the-commons-hollow.json`; failure - both sides vote on the exact same proposal differently while partitioned, assert the reconnect produces one deterministic resolved tally (via the CRDT's defined last-writer or multi-value resolution), not a crash or silent data loss, Evidence `.omo/evidence/the-commons-hollow/task-23-the-commons-hollow-conflict.json`. + Commit: Y | feat(assembly): add WebRTC partition-and-heal sync with live demo harness + Recommended task executor category: deep-high | no in-repo pattern for a live-disconnect demo harness; correctness argued from CRDT invariants under a real network fault + +- [ ] 24. ma-assembly QR-sneakernet transport (problem 7, layer 3) + What to do / Must NOT do: Serialize a Yjs state-vector delta, chunk it, and render it as an animated sequence of QR codes (`qrcode`); on the receiving device, scan the sequence with `jsQR` via the camera and reassemble/apply the delta to that device's local Yjs doc. Must NOT require any network, LAN, or Bluetooth - this layer is the fully-air-gapped fallback and must work with cameras alone. + Closes: GAP-1, GAP-5 + Parallelization: Wave 4 | Blocked by: 22 | Blocks: none + References: `report.html#md-p7`; `qrcode` and `jsQR` npm package READMEs. + Acceptance criteria: Vitest serializes a >2KB Yjs delta, chunks it into N QR-sized frames, reassembles from the frames (simulating scan order and one dropped-then-retried frame), and asserts the reassembled delta byte-for-byte matches the original before being applied to the target doc. + QA scenarios: happy - full encode/decode/apply round-trip for a multi-frame delta, Evidence `.omo/evidence/the-commons-hollow/task-24-the-commons-hollow.json`; failure - simulate a corrupted/missing frame, assert the reassembly detects it and requests a re-scan rather than applying a corrupted delta, Evidence `.omo/evidence/the-commons-hollow/task-24-the-commons-hollow-corrupt.json`. + Commit: Y | feat(assembly): add QR-code sneakernet transport for fully air-gapped sync + Recommended task executor category: deep-high | novel chunked-QR transport engineering with no pattern to copy + +- [ ] 25. ma-assembly governance tally (absorbs former governance miniapp) + What to do / Must NOT do: Implement liquid-democracy delegation (a resident can delegate their vote to another) and quadratic-voting tally on top of the CRDT proposal set from todo 22. Must NOT let a delegation cycle (A delegates to B delegates to A) cause infinite loops or double counting - detect and break cycles deterministically. + Closes: GAP-1 + Parallelization: Wave 4 | Blocked by: 22 | Blocks: 27 + References: `report.html#md-w2` (Governance liquid-democracy + QV mechanism). + Acceptance criteria: Vitest asserts a QV tally over a known vote-credit distribution matches the hand-computed expected result; asserts a 3-node delegation cycle is detected and each node's vote falls back to their own direct vote rather than looping. + QA scenarios: happy - 10 residents, mixed direct votes and delegations, tally matches expected, Evidence `.omo/evidence/the-commons-hollow/task-25-the-commons-hollow.json`; failure - inject a delegation cycle, assert no infinite loop and a deterministic fallback, Evidence `.omo/evidence/the-commons-hollow/task-25-the-commons-hollow-cycle.json`. + Commit: Y | feat(assembly): add liquid-democracy delegation and QV tally + Recommended task executor category: unspecified-high | standard multi-file feature with a well-defined algorithm + +- [ ] 26. ma-assembly testimony board (problem 13) + What to do / Must NOT do: Build a signed public-statement board reusing the Event Log's Ed25519 signing - residents post signed statements/observations, the UI shows a simple consensus/median view. Must NOT claim this "proves" surface safety scientifically - it is explicitly scoped as honest, tamper-evident crowd testimony, and the UI copy must say so. This replaces problem 13's originally-proposed mechanism (Bedrock), which this session rejected for fabricating a synthetic Sybil-attack dataset - this testimony-board version is the honest, real replacement. + Closes: GAP-1 + Parallelization: Wave 4 | Blocked by: 5, 22 | Blocks: 27 + References: `report.html#md-p13` (the original problem-13 framing, now intentionally rescoped per draft decision D8 at `.omo/drafts/the-commons-hollow.md`); this session's catalog note on why P13 (Bedrock) was rejected for fabricated data (`.omo/ulw-research/20261117-proposals/report.html` correction notes). + Acceptance criteria: Playwright posts 5 signed statements from different identities, asserts each renders with a verifiable signature badge and the consensus view aggregates them without altering their content. + QA scenarios: happy - 5 statements with majority agreement render a clear consensus summary, Evidence `.omo/evidence/the-commons-hollow/task-26-the-commons-hollow.json`; failure - a statement with a tampered signature is rejected at post-time, not merely flagged after the fact, Evidence `.omo/evidence/the-commons-hollow/task-26-the-commons-hollow-badsig.json`. + Commit: Y | feat(assembly): add signed public testimony/consensus board + Recommended task executor category: unspecified-high | standard feature reusing already-built signing + +- [ ] 27. ma-assembly unified UI (normal-operation screens) + What to do / Must NOT do: Build one unified Assembly miniapp UI covering the "normal operation" screens - proposal list, vote-casting UI, roster view, the liquid-democracy/QV tally display (todo 25), and the testimony/consensus feed (todo 26) - styled as a WeChat group-chat + voting-card hybrid per this session's established mini-app aesthetic direction. It does NOT need to cover todo 23's partition-heal demo trigger UI or todo 24's QR display/scan UI - those own their own minimal demo-specific UI elements already as part of their scope. Must NOT let this UI claim the CRDT merge converged without actually reading real merged state - any "synced"/"converged" indicator must be derived from a real read of the Yjs doc's current state (e.g. its shared-type contents/awareness), never a hard-coded or assumed value. + Closes: GAP-1, GAP-3 + Parallelization: Wave 4 | Blocked by: 12, 22, 25, 26 | Blocks: 58 + References: the 13-miniapp feel/function table from this session ("Assembly" row - WeChat group-chat + voting-card hybrid feel); `report.html#md-p7`; `report.html#md-w2`; draft decision D5 at `.omo/drafts/the-commons-hollow.md` (Alipay/WeChat/Tuya mini-app aesthetic). + Acceptance criteria: Playwright asserts the proposal list, vote-casting control, roster view, QV/liquid-democracy tally display, and testimony/consensus feed all render from todo 22/25/26's real engine state (no mocked data); asserts any "synced"/"converged" indicator reflects an actual read of the Yjs doc's current merged state at render time, not a static or assumed value. + QA scenarios: happy - seed a proposal, cast a vote (direct and delegated), post a testimony statement, assert the UI's tally and feed update to match the engine's exact output, Evidence `.omo/evidence/the-commons-hollow/task-27-the-commons-hollow.json`; failure - render the UI against a Yjs doc that has not yet merged any peer state, assert the UI shows an honest "not yet synced" state rather than fabricating a converged result, Evidence `.omo/evidence/the-commons-hollow/task-27-the-commons-hollow-unsynced.json`. + Commit: Y | feat(assembly): add unified proposal/vote/roster/tally/testimony UI + Recommended task executor category: visual-engineering | UI/layout work compositing already-built engine state (todos 22, 25, 26), no new algorithmic decisions + +- [ ] 28. Housing: assignment engine + What to do / Must NOT do: Implement constrained assignment (residents to room slots, with side constraints) via javascript-lp-solver integer/binary variables; maintain a fairness-debt counter per resident in the ledger so whoever got a worse slot this cycle is weighted toward a better one next cycle. Validate the 5x5 instance early, before wiring the full fairness-debt logic (finding F2). Must NOT silently ignore a hard constraint (e.g. capacity) to force a feasible solution - an infeasible instance must surface as infeasible. + Closes: GAP-1 + Parallelization: Wave 5 | Blocked by: 5,6,20 | Blocks: 29 + References: report.html#md-p6 (Roomlet CP-SAT mechanism); javascript-lp-solver README (integer/binary constraints); plan-consultant finding F2 (5x5 validation-spike requirement). + Acceptance criteria: Vitest asserts a known small assignment instance (5 residents, 5 slots with capacity/preference constraints) solves to the provably optimal fairness-weighted assignment, and that the fairness-debt counter updates in the ledger after the solve. + QA scenarios: happy - feasible 5x5 instance solves and ledger fairness-debt updates correctly, Evidence `.omo/evidence/the-commons-hollow/task-28-the-commons-hollow.json`; failure - an over-capacity instance is detected as infeasible and reported, not silently truncated or force-fit, Evidence `.omo/evidence/the-commons-hollow/task-28-the-commons-hollow-infeasible.json`. + Commit: Y | feat(housing): implement constrained assignment engine with fairness-debt ledger + Recommended task executor category: deep-low | MILP assignment correctness settleable from the cited mechanism spec; no cross-package contract decision involved + +- [ ] 29. Housing: floor-plan UI + What to do / Must NOT do: Build the Alipay "services" floor-plan widget showing the resident's current assignment and the fairness-debt reasoning behind it, wired to todo 28's engine output. Must NOT hide WHY a resident got their slot - the reviewer-mandated transparency requirement; every rendered assignment must show its reasoning, never a bare slot number. + Closes: GAP-1, GAP-3 + Parallelization: Wave 5 | Blocked by: 12,28 | Blocks: 58 + References: report.html#md-p6 (Roomlet CP-SAT mechanism); the 13-miniapp feel/function table from the planning session ("Housing" row). + Acceptance criteria: Playwright asserts the assigned-slot view always renders a visible "why you got this" explanation sourced directly from the engine's (todo 28) output, never a placeholder string. + QA scenarios: happy - render assignment + explanation for a seeded resident, Evidence `.omo/evidence/the-commons-hollow/task-29-the-commons-hollow.json`; failure - a resident with no assignment yet sees an honest "not yet assigned" state, not a blank or fabricated slot, Evidence `.omo/evidence/the-commons-hollow/task-29-the-commons-hollow-empty.json`. + Commit: Y | feat(housing): add floor-plan assignment UI with fairness-debt explanation + Recommended task executor category: visual-engineering | floor-plan/transparency UI work, no algorithmic risk + +- [ ] 30. Find Family: PSI engine + What to do / Must NOT do: Implement ECDH-based private-set-intersection via @noble/curves so a search for a name never leaves the device in plaintext - only blinded/encrypted values cross the wire. Must NOT log or transmit the plaintext query anywhere, including analytics/telemetry - this applies to every code path, not just the primary request. + Closes: GAP-1 + Parallelization: Wave 5 | Blocked by: 5 | Blocks: 31 + References: report.html#md-p8 (Blindlink PSI mechanism); @noble/curves README (ECDH primitives) - NOTE (confirmed 2026-11-17 pre-flight bundle check against the actually-installed version): import the ed25519 curve as `@noble/curves/ed25519.js` (the `.js` extension is required by this package's export map; the extensionless `@noble/curves/ed25519` path fails to resolve under Vite/Rolldown). + Acceptance criteria: Vitest asserts the PSI protocol correctly identifies a true match and correctly reports no-match for a non-existent name, while asserting (via a network-call spy intercepting every outbound request during the test) that no plaintext name ever appears in a transmitted payload. + QA scenarios: happy - a matching record is found via PSI with zero plaintext leakage across all outbound calls, Evidence `.omo/evidence/the-commons-hollow/task-30-the-commons-hollow.json`; failure - a search for a non-existent name returns a clean no-match rather than a false positive, and the network spy still shows zero plaintext, Evidence `.omo/evidence/the-commons-hollow/task-30-the-commons-hollow-nomatch.json`. + Commit: Y | feat(findfamily): implement ECDH private-set-intersection search engine + Recommended task executor category: deep-low | PSI crypto correctness settleable from the cited primitives; no cross-boundary design decision + +- [ ] 31. Find Family: search UI + What to do / Must NOT do: Build the Alipay "transfer to contact"-style minimal search UI on top of todo 30's engine, with a one-line disclaimer that search queries never leave the device in plaintext (finding D5). Must NOT omit that disclaimer from the search screen under any state, and must NOT surface the plaintext query anywhere in the UI's own network/debug surface. + Closes: GAP-1, GAP-3 + Parallelization: Wave 5 | Blocked by: 12,30 | Blocks: 58 + References: report.html#md-p8 (Blindlink PSI mechanism); @noble/curves README; plan-consultant finding D5 (plaintext-never-leaves-device disclaimer requirement); the 13-miniapp feel/function table ("Find Family" row). + Acceptance criteria: Playwright asserts the search screen always renders the one-line plaintext-never-leaves-device disclaimer, and that submitting a search invokes todo 30's engine rather than a direct plaintext-bearing request. + QA scenarios: happy - search executes, disclaimer renders, and a matching result displays, Evidence `.omo/evidence/the-commons-hollow/task-31-the-commons-hollow.json`; failure - a search for a non-existent name shows an honest "no match found" state rather than a fabricated or guessed result, Evidence `.omo/evidence/the-commons-hollow/task-31-the-commons-hollow-nomatch.json`. + Commit: Y | feat(findfamily): add plaintext-never-leaves-device contact search UI + Recommended task executor category: visual-engineering | minimal search UI plus a disclaimer-presence check, no crypto work + +- [ ] 32. Health Post: WHO-IMCI engine + What to do / Must NOT do: Encode the real deterministic WHO-IMCI triage decision tree as plain JS rule logic. Must NOT guess or default a classification when a required exam field is missing - an incomplete exam must be rejected back to the user with a clear prompt for the missing field, never silently classified. + Closes: GAP-1 + Parallelization: Wave 5 | Blocked by: 5 | Blocks: 34 + References: report.html#md-p10 (Relay-Clinic WHO-IMCI mechanism); the published WHO-IMCI protocol. + Acceptance criteria: Vitest runs the published WHO-IMCI decision tree against its own documented test vectors (classic danger-sign/pneumonia/diarrhea cases) and asserts the triage classification matches exactly for each vector. + QA scenarios: happy - a documented "urgent" test vector classifies as urgent, Evidence `.omo/evidence/the-commons-hollow/task-32-the-commons-hollow.json`; failure - an incomplete exam (missing a required field) is rejected with a clear prompt rather than guessing a classification, Evidence `.omo/evidence/the-commons-hollow/task-32-the-commons-hollow-incomplete.json`. + Commit: Y | feat(healthpost): implement WHO-IMCI triage decision engine + Recommended task executor category: unspecified-high | standard feature implementing a fully-specified external protocol, contained to one module + +- [ ] 33. Health Post: symptom-tally aggregation + What to do / Must NOT do: Implement a crowd symptom self-report aggregation counter (real tallies only, with an explicit reporting-delay caveat surfaced for the UI to render) feeding a dispatch-priority recommendation computed purely from current counts/thresholds. Must NOT nowcast, model, or forecast an epidemic curve from the counts under any circumstance - only an honest, transparent real tally is permitted; this is a direct rejection of Truecurve's fabricated epidemic simulation (draft D8) and the constraint is non-negotiable even as a "nice to have" extension. + Closes: GAP-1 + Parallelization: Wave 5 | Blocked by: 5 | Blocks: 34 + References: report.html#md-p10 (Relay-Clinic WHO-IMCI mechanism); draft decision D8 (Truecurve fabricated-epidemic-simulation rejection note). + Acceptance criteria: Vitest asserts the tally module aggregates a set of real self-reports into counts-per-symptom and a dispatch-priority recommendation matching hand-computed threshold logic; a static-analysis/grep-based check over the module's source and its import graph asserts no forecasting/regression/curve-fit library or time-series-extrapolation function is referenced anywhere in the computation path. + QA scenarios: happy - seed N self-reports across symptom categories, assert the tally and dispatch-priority recommendation match hand-computed thresholds exactly, Evidence `.omo/evidence/the-commons-hollow/task-33-the-commons-hollow.json`; failure - call the module with a request for a forward-projected/future count, assert it throws or returns a refusal rather than fabricating a projected number, Evidence `.omo/evidence/the-commons-hollow/task-33-the-commons-hollow-noforecast.json`. + Commit: Y | feat(healthpost): implement honest symptom-tally aggregation with reporting-delay caveat + Recommended task executor category: unspecified-low | small, contained counter plus a scope-discipline constraint rather than algorithmic complexity + +- [ ] 34. Health Post: triage chat + dashboard UI + What to do / Must NOT do: Build the Tuya health-monitor dashboard + WeChat-style triage chat, surfacing todo 32's dispatch-priority recommendation, todo 33's symptom-tally caveat text, and a one-line informational-not-medical-advice disclaimer (finding D5). Must NOT present the tally without its reporting-delay caveat visible, and must NOT present a triage result without the informational-not-medical-advice disclaimer, in any UI state. + Closes: GAP-1, GAP-3 + Parallelization: Wave 5 | Blocked by: 12,32,33 | Blocks: 58 + References: report.html#md-p10 (Relay-Clinic WHO-IMCI mechanism); the 13-miniapp feel/function table ("Health Post" row); plan-consultant finding D5 (informational-not-medical-advice disclaimer requirement). + Acceptance criteria: Playwright asserts the tally view always renders its reporting-delay caveat text alongside the number, and the triage chat result always renders with the one-line "informational, not medical advice" disclaimer. + QA scenarios: happy - run a full exam through the chat UI, assert the triage result, the dispatch-priority recommendation, and both required disclaimers all render, Evidence `.omo/evidence/the-commons-hollow/task-34-the-commons-hollow.json`; failure - zero symptom reports seeded, assert the dashboard shows an honest "no reports yet" state rather than a fabricated placeholder tally, Evidence `.omo/evidence/the-commons-hollow/task-34-the-commons-hollow-empty.json`. + Commit: Y | feat(healthpost): add triage chat and symptom-tally dashboard UI + Recommended task executor category: visual-engineering | dashboard/chat UI work with disclaimer-presence checks + +- [ ] 35. Tunnel Safety: hazard-report data model + What to do / Must NOT do: Build the crowd-sourced hazard reporting data model (flooded/blocked sections): segment id, hazard status, timestamp, reporter identity, signed and appended to the Event Log. Must NOT mutate or overwrite a prior report to "resolve" it - resolution is a new append-only resolving event, never an in-place edit, and the model must NOT accept a report missing a valid segment id. + Closes: GAP-1 + Parallelization: Wave 5 | Blocked by: 5 | Blocks: 36,37 + References: report.html#md-p5 (Faultline, reframed per draft D8's note on problem 5's actual sewage/flood wording). + Acceptance criteria: Vitest asserts submitting a hazard report persists a correctly-signed event with segment id, status (flooded/blocked), timestamp, and reporter identity, retrievable via replay; asserts resolving a hazard appends a new resolving event rather than mutating the original report's history. + QA scenarios: happy - submit a hazard report for a known segment, assert it is stored and retrievable with all fields intact, Evidence `.omo/evidence/the-commons-hollow/task-35-the-commons-hollow.json`; failure - submit a report missing a segment id, assert it is rejected client-side before signing rather than persisted malformed, Evidence `.omo/evidence/the-commons-hollow/task-35-the-commons-hollow-invalid.json`. + Commit: Y | feat(tunnelsafety): add crowd-sourced hazard-report data model + Recommended task executor category: quick | simple event-log-backed data model, no algorithmic risk + +- [ ] 36. Tunnel Safety: A* routing engine + What to do / Must NOT do: Implement A* routing (hand-rolled or ngraph.path) around closed segments reported in todo 35's data model; add DeviceOrientation/accelerometer sensing as an OPTIONAL corroborating signal only, folded into this same engine rather than a separate todo (matches the actual problem-5 wording: sewage/flood backup, not structural collapse). Must NOT make the accelerometer signal the headline mechanism or require it to function - routing must work correctly with the signal entirely absent or disabled. + Closes: GAP-1 + Parallelization: Wave 5 | Blocked by: 35 | Blocks: 37 + References: report.html#md-p5 (Faultline mechanism, reframed per draft D8's note on problem 5's actual sewage/flood wording); ngraph.path README. + Acceptance criteria: Vitest asserts A* reroutes around a reported-closed segment to the correct shortest alternate path on a known test graph; asserts routing still computes a correct route with the accelerometer signal entirely absent or disabled, proving it is optional rather than required. + QA scenarios: happy - report a segment closed, assert routing avoids it and returns the correct shortest alternate, Evidence `.omo/evidence/the-commons-hollow/task-36-the-commons-hollow.json`; failure - all paths to a destination are closed, assert the engine reports "no route" honestly rather than returning a closed path, Evidence `.omo/evidence/the-commons-hollow/task-36-the-commons-hollow-noroute.json`. + Commit: Y | feat(tunnelsafety): implement A* rerouting with optional accelerometer corroboration + Recommended task executor category: unspecified-high | standard feature, A* is well-understood, no novel design decision + +- [ ] 37. Tunnel Safety: map/feed UI + What to do / Must NOT do: Build the map/feed UI showing reported hazards (todo 35) and live rerouting (todo 36). Must NOT display a fabricated or placeholder hazard when none has been reported, and must NOT make the accelerometer corroboration signal visually appear as the primary hazard-detection mechanism in the UI. + Closes: GAP-1, GAP-3 + Parallelization: Wave 5 | Blocked by: 12,35,36 | Blocks: 58 + References: report.html#md-p5 (Faultline mechanism, reframed per draft D8's note on problem 5's actual sewage/flood wording); the 13-miniapp feel/function table ("Tunnel Safety" row). + Acceptance criteria: Playwright asserts the map/feed renders a reported hazard and the rerouted path updates visibly within one UI update cycle after a segment is marked closed. + QA scenarios: happy - report a hazard via the UI, assert the feed shows it and the route updates to the correct alternate, Evidence `.omo/evidence/the-commons-hollow/task-37-the-commons-hollow.json`; failure - no hazards reported, assert the map shows an honest clear/no-hazard state rather than a placeholder hazard, Evidence `.omo/evidence/the-commons-hollow/task-37-the-commons-hollow-empty.json`. + Commit: Y | feat(tunnelsafety): add hazard map and rerouting feed UI + Recommended task executor category: visual-engineering | map/feed UI work, no algorithmic risk + +- [ ] 38. Farms: GDD model engine + What to do / Must NOT do: Implement real growing-degree-day (GDD) arithmetic in JS from entered daily temperature data ({date, tmin, tmax} entries), using the standard GDD formula ((tmax+tmin)/2 - base_temp, floored at 0), per the Rootstock mechanism. Must NOT fabricate a yield/GDD number absent real entered temperature data - if no temperature entries exist, return an explicit insufficient-data sentinel, never a placeholder/default number. + Closes: GAP-1 + Parallelization: Wave 5 | Blocked by: 5,14 | Blocks: 39 + References: report.html#md-p12 (Rootstock GDD/LP mechanism); Fair Share's engine (todo 14, a different cluster) for the downstream food-resource number contract this feeds. + Acceptance criteria: Engine computes cumulative GDD from an array of real {date, tmin, tmax} entries matching hand-calculated reference values in a unit test; returns the insufficient-data sentinel (not 0 or null-as-success) when the input array is empty. + QA scenarios: happy - run engine against a sample real temperature-entry fixture, assert cumulative GDD equals the hand-calculated expected value, Evidence `.omo/evidence/the-commons-hollow/task-38-the-commons-hollow.json`; failure - run engine with an empty temperature-entry array, assert it returns the insufficient-data sentinel rather than a fabricated number, Evidence `.omo/evidence/the-commons-hollow/task-38-the-commons-hollow-no-data.json`. + Commit: Y | feat(farms): add GDD model engine + Recommended task executor category: deep-low | self-contained numeric engine with decisions fully settled by the cited GDD formula and reference doc. + +- [ ] 39. Farms: LP planting optimizer + What to do / Must NOT do: Implement an LP-based planting-schedule optimizer using javascript-lp-solver that consumes todo 38's GDD output plus real entered planting-window/plot data to produce an optimized planting schedule and harvest forecast; feed that forecast into Fair Share's food resource number (todo 14, a different cluster) via its defined resource-input contract. Must NOT fabricate a yield number absent real entered planting/temperature data. + Closes: GAP-1 + Parallelization: Wave 5 | Blocked by: 38 | Blocks: 40 + References: report.html#md-p12 (Rootstock GDD/LP mechanism); javascript-lp-solver package docs; Fair Share's engine (todo 14, a different cluster) resource-input contract. + Acceptance criteria: LP model built from real plot-area and GDD-derived maturity-window constraints returns a feasible schedule; output forecast object matches Fair Share's expected food-resource schema; optimizer short-circuits to insufficient-data with no emitted forecast when upstream GDD data is missing. + QA scenarios: happy - feed a real sample planting + GDD fixture, run the optimizer, assert the LP solve is feasible and the forecast value is traceable to the input data rather than hardcoded, Evidence `.omo/evidence/the-commons-hollow/task-39-the-commons-hollow.json`; failure - run optimizer with missing GDD input, assert it returns insufficient-data and emits no forecast value downstream, Evidence `.omo/evidence/the-commons-hollow/task-39-the-commons-hollow-missing-gdd.json`. + Commit: Y | feat(farms): add LP planting optimizer + Recommended task executor category: deep-low | self-contained optimization logic over a defined LP library with decisions settled by the solver's documented API. + +- [ ] 40. Farms: planner UI + What to do / Must NOT do: Build the planter UI (temperature-entry form, planting-window entry, LP schedule/grid view, harvest-forecast panel) atop the shared UI shell (todo 12, a different cluster), consuming todo 39's optimizer output. Must NOT fabricate a yield number absent real entered planting/temperature data - the UI must render explicit "enter temperature data" / "enter planting data" empty states instead of showing a zero or placeholder forecast. + Closes: GAP-1, GAP-3 + Parallelization: Wave 5 | Blocked by: 12,39 | Blocks: 58 + References: report.html#md-p12 (Rootstock GDD/LP mechanism); shared UI shell (todo 12, a different cluster). + Acceptance criteria: UI renders the temp-entry form, LP schedule grid, and forecast panel wired live to todo 39's output; distinct empty/insufficient-data messaging renders when no data is entered (no numeric 0 forecast ever shown). + QA scenarios: happy - enter sample real temperature and planting data via the UI, screenshot the forecast panel showing the computed (non-fabricated) number, Evidence `.omo/evidence/the-commons-hollow/task-40-the-commons-hollow.png`; failure - open the UI with no data entered, assert the insufficient-data empty-state message renders instead of a numeric placeholder, Evidence `.omo/evidence/the-commons-hollow/task-40-the-commons-hollow-empty-state.json`. + Commit: Y | feat(farms): add planner UI + Recommended task executor category: visual-engineering | UI/UX build consuming an existing engine contract, styling and empty-state design is the core work. + +- [ ] 41. The Climb: min-cost-flow scheduling engine + What to do / Must NOT do: Implement a hand-rolled time-expanded min-cost-flow using an SPFA-based shortest-augmenting-path solve for return-wave scheduling, in JS (per draft D9's JS-first stack decision). Call Fair Draw's engine (todo 20, a different cluster) to break any contested wave-slot tie; do NOT resolve ties with ad hoc/arbitrary ordering of its own. Must NOT fabricate a schedule - every flow value must come from the actual time-expanded graph solve over real wave-demand/capacity input. + Closes: GAP-1 + Parallelization: Wave 5 | Blocked by: 5,20 | Blocks: 42,43 + References: report.html#md-p15 (Ascent OR-Tools/SimPy mechanism, JS-ported); Fair Draw's engine (todo 20, a different cluster) tie-break contract. + Acceptance criteria: SPFA-based min-cost-flow returns a feasible, flow-conserving, cost-optimal time-expanded schedule for a given wave-demand/capacity fixture; a contrived tie scenario unit test confirms the engine calls Fair Draw's exposed tie-break function rather than implementing its own ordering. + QA scenarios: happy - run engine against a real sample wave-capacity fixture, assert the schedule is cost-optimal (matches a reference calc) and flow-conserved at every node, Evidence `.omo/evidence/the-commons-hollow/task-41-the-commons-hollow.json`; failure - run against a contested-tie fixture with the Fair Draw integration stubbed to error, assert the engine fails closed instead of silently picking an arbitrary wave, Evidence `.omo/evidence/the-commons-hollow/task-41-the-commons-hollow-tie-break-missing.json`. + Commit: Y | feat(theclimb): add min-cost-flow scheduling engine + Recommended task executor category: deep-low | graph/algorithm engine whose decisions are settled by the cited SPFA/min-cost-flow mechanism, no open design question. + +- [ ] 42. The Climb: congestion simulation + What to do / Must NOT do: Implement a hand-rolled discrete-event congestion simulation in JS, driven directly by todo 41's real scheduled-flow output (replacing Python SimPy per draft D9's JS-first decision). Must NOT use a fabricated congestion number - every congestion/wait-time value must trace back to the actual min-cost-flow schedule's wave assignments and timings, never a hardcoded or randomly-generated figure. + Closes: GAP-1 + Parallelization: Wave 5 | Blocked by: 41 | Blocks: 43 + References: report.html#md-p15 (Ascent OR-Tools/SimPy mechanism, JS-ported); todo 41's schedule-output contract. + Acceptance criteria: Discrete-event sim consumes todo 41's schedule object directly with no re-fabrication of flow numbers; event queue processes wave arrival/departure events in timestamp order; every congestion metric derives purely from processed events. + QA scenarios: happy - feed todo 41's real computed schedule into the sim, assert the resulting congestion timeline matches the expected event ordering/queue buildup computed from that schedule, Evidence `.omo/evidence/the-commons-hollow/task-42-the-commons-hollow.json`; failure - feed the sim a schedule object with missing/null flow values, assert it refuses to fabricate a congestion number and surfaces an explicit insufficient-schedule error, Evidence `.omo/evidence/the-commons-hollow/task-42-the-commons-hollow-null-schedule.json`. + Commit: Y | feat(theclimb): add congestion simulation + Recommended task executor category: deep-low | self-contained discrete-event simulation whose inputs/outputs are already fixed by todo 41's schedule contract. + +- [ ] 43. The Climb: logistics dashboard UI + What to do / Must NOT do: Build the logistics dashboard UI (wave-schedule timeline, congestion timeline/heatmap) atop the shared UI shell (todo 12, a different cluster), consuming todo 41 (schedule) and todo 42 (congestion sim) outputs directly. Must NOT display a fabricated congestion number - every rendered metric must be traceable to the underlying scheduled-flow/simulation data, with an explicit "no schedule yet" state when inputs are absent. + Closes: GAP-1, GAP-3 + Parallelization: Wave 5 | Blocked by: 12,41,42 | Blocks: 58 + References: report.html#md-p15 (Ascent OR-Tools/SimPy mechanism, JS-ported); shared UI shell (todo 12, a different cluster). + Acceptance criteria: Dashboard renders the schedule timeline and congestion heatmap sourced directly from todo 41/42 outputs with no client-side mock-data path; empty state renders when schedule/sim data is absent. + QA scenarios: happy - load the dashboard with real computed schedule+sim fixtures, screenshot the timeline/heatmap and verify values match source data, Evidence `.omo/evidence/the-commons-hollow/task-43-the-commons-hollow.png`; failure - load the dashboard with no schedule data, assert the empty-state renders instead of a zero/placeholder congestion chart, Evidence `.omo/evidence/the-commons-hollow/task-43-the-commons-hollow-empty-state.json`. + Commit: Y | feat(theclimb): add logistics dashboard UI + Recommended task executor category: visual-engineering | UI/UX build wiring two existing engine outputs into a dashboard, styling and empty-state behavior dominate. + +- [ ] 44. Light Clock: circadian model engine + What to do / Must NOT do: Implement the published Hannay19 circadian phase-response model equations in JS as a pure function taking a light/activity exposure time series and producing a phase estimate. Must NOT wire this engine's output to ration any resource in Fair Share or any other allocator - it is explicitly standalone per the adversarial review's fabrication-risk cut. Add a static-analysis/grep-based (e.g. ast-grep) import-graph test asserting no import path connects this engine's module to any allocator module. + Closes: GAP-1 + Parallelization: Wave 5 | Blocked by: 5 | Blocks: 45 + References: report.html#md-p11 (Daykeeper mechanism); the complete, pre-extracted Hannay19 equations, parameters, and initial conditions at `fixtures/hannay19-model-spec.md` (pulled 2026-11-17 directly from the real, Hannay-coauthored `circadian` package source - port verbatim, no further derivation or external fetch needed). + Acceptance criteria: Engine module implements the Hannay19 equations with unit tests matching known reference phase-response values from the cited source; a grep/ast-grep-based standalone-isolation test runs and fails if any allocator module imports this engine's module. + QA scenarios: happy - run the engine against a sample light-exposure time series, assert the computed phase shift matches the hand/reference-calculated Hannay19 value, Evidence `.omo/evidence/the-commons-hollow/task-44-the-commons-hollow.json`; failure - add a disallowed allocator import to a throwaway fixture/branch and run the isolation test, assert it fails the build, then remove the fixture, Evidence `.omo/evidence/the-commons-hollow/task-44-the-commons-hollow-isolation-violation.json`. + Commit: Y | feat(lightclock): add circadian model engine + Recommended task executor category: deep-low | published-equation implementation with decisions fully settled by the cited model spec, plus a mechanical static-analysis test. + +- [ ] 45. Light Clock: sensor/manual-entry integration + What to do / Must NOT do: Wire real DeviceMotion/Accelerometer Web API data (where permission is granted) into todo 44's engine as its exposure time series input, and implement a manual sleep/wake log-entry fallback data path for when sensor access isn't granted - both paths supplying real entered/measured data, never fabricated/simulated readings. Display a one-line disclaimer that this personal data stays local-only on-device (finding D5). Must NOT wire this data or its downstream engine output to any allocator. + Closes: GAP-1 + Parallelization: Wave 5 | Blocked by: 44 | Blocks: 46 + References: report.html#md-p11 (Daykeeper mechanism); DeviceMotion/Accelerometer Web API spec; finding D5 (local-only data disclaimer). + Acceptance criteria: Integration requests DeviceMotion/Accelerometer permission and feeds real sensor samples to the engine when granted; falls back to manual log-entry data when denied/unavailable with no synthetic/randomized substitute ever used; local-only disclaimer string is present and no network call carries this personal data. + QA scenarios: happy - grant sensor permission in a test harness/browser, feed a real accelerometer stream, assert the engine receives actual sensor samples (not mocked zeros) and the disclaimer renders, Evidence `.omo/evidence/the-commons-hollow/task-45-the-commons-hollow.json`; failure - deny sensor permission, assert the manual-entry fallback activates with no fabricated sensor substitute and the local-only disclaimer still shows, Evidence `.omo/evidence/the-commons-hollow/task-45-the-commons-hollow-permission-denied.json`. + Commit: Y | feat(lightclock): add sensor/manual-entry integration + Recommended task executor category: deep-low | browser-API integration with a defined fallback contract, settled from the Web API spec and D5 finding. + +- [ ] 46. Light Clock: wellness UI + What to do / Must NOT do: Build the wellness UI (circadian/phase status view, sensor-permission prompt, manual log-entry form, local-only disclaimer banner) atop the shared UI shell (todo 12, a different cluster), consuming todo 45's integration output. Must NOT wire this UI's displayed output to ration any resource; extend the todo 44 static-analysis/grep-based isolation test to also cover this UI module's import graph. + Closes: GAP-1, GAP-3 + Parallelization: Wave 5 | Blocked by: 12,45 | Blocks: 58 + References: report.html#md-p11 (Daykeeper mechanism); shared UI shell (todo 12, a different cluster); finding D5. + Acceptance criteria: UI renders circadian status, permission prompt/manual-entry form, and disclaimer banner; the extended isolation test includes this UI module and passes with zero allocator-import matches. + QA scenarios: happy - walk through the UI with real sensor or manual data entered, screenshot the status view plus disclaimer banner, Evidence `.omo/evidence/the-commons-hollow/task-46-the-commons-hollow.png`; failure - add a deliberate allocator import to a throwaway fixture and run the extended isolation test, assert it fails the build, Evidence `.omo/evidence/the-commons-hollow/task-46-the-commons-hollow-isolation-violation.json`. + Commit: Y | feat(lightclock): add wellness UI + Recommended task executor category: visual-engineering | UI/UX build plus a disclaimer/empty-state requirement, styling is the core deliverable. + +- [ ] 47. Mentor: skill-criticality engine + What to do / Must NOT do: Implement a skill-criticality graph engine: build a skills dependency graph and compute a simple centrality/dependents-count metric per skill to flag at-risk (high-criticality, low-holder-count) skills. Must NOT invent fabricated skill-holder population data - skill-holder counts must be seeded from the real admin/seed panel data (a different cluster/todo, consumed by its behavior/API, not reimplemented here). + Closes: GAP-1 + Parallelization: Wave 5 | Blocked by: 5 | Blocks: 48 + References: report.html#md-w3 (Relay-Education mechanism); the admin/seed panel data source (a different cluster, consumed by behavior/API). + Acceptance criteria: Engine computes dependents-count centrality per skill node from a real graph structure; skill-holder counts are read live from the seed-panel data source interface, never hardcoded; the at-risk list only includes skills whose holder-count data is actually present. + QA scenarios: happy - run the engine against a real seed-panel data fixture plus skills graph, assert the at-risk ranking matches hand-computed centrality/holder-count values, Evidence `.omo/evidence/the-commons-hollow/task-47-the-commons-hollow.json`; failure - run the engine with the seed-panel data source unavailable/empty, assert it returns an insufficient-data state rather than inventing holder counts, Evidence `.omo/evidence/the-commons-hollow/task-47-the-commons-hollow-no-seed-data.json`. + Commit: Y | feat(mentor): add skill-criticality engine + Recommended task executor category: deep-low | graph-centrality computation over a fixed data contract, decisions settled from the cited mechanism. + +- [ ] 48. Mentor: FSRS scheduling integration + What to do / Must NOT do: Integrate ts-fsrs for spaced-repetition scheduling of the at-risk skills identified by todo 47, producing review-due scheduling data per skill/learner. Must NOT invent fabricated skill-holder population data - scheduling inputs must flow from todo 47's real seed-sourced data, never synthesized defaults. + Closes: GAP-1 + Parallelization: Wave 5 | Blocked by: 47 | Blocks: 49 + References: ts-fsrs README; report.html#md-w3 (Relay-Education mechanism). + Acceptance criteria: FSRS scheduler initialized per the ts-fsrs API with real review-history/at-risk-skill input from todo 47; next-review-date output is computed by ts-fsrs's actual algorithm; a unit test confirms the schedule changes correctly when real input review history changes. + QA scenarios: happy - feed a real at-risk-skill plus review-history fixture into the integration, assert computed next-review dates match ts-fsrs's documented algorithm output, Evidence `.omo/evidence/the-commons-hollow/task-48-the-commons-hollow.json`; failure - feed the integration empty/missing review history, assert it surfaces insufficient-data rather than fabricating a default schedule, Evidence `.omo/evidence/the-commons-hollow/task-48-the-commons-hollow-no-history.json`. + Commit: Y | feat(mentor): add FSRS scheduling integration + Recommended task executor category: deep-low | integration against a documented third-party library API, no open design decision. + +- [ ] 49. Mentor: knowledge-feed UI + What to do / Must NOT do: Build the WeChat moments-style feed UI atop the shared UI shell (todo 12, a different cluster), displaying at-risk skills (todo 47) and FSRS-scheduled review items (todo 48) as feed cards. Must NOT invent fabricated skill-holder population data in the UI - any holder-count/population figure shown must come from the real seed-panel-sourced data path, with an explicit empty/insufficient-data state when it is absent. + Closes: GAP-1, GAP-3 + Parallelization: Wave 5 | Blocked by: 12,48 | Blocks: 58 + References: report.html#md-w3 (Relay-Education mechanism); shared UI shell (todo 12, a different cluster); ts-fsrs README. + Acceptance criteria: Feed UI renders moments-style cards for at-risk skills with due-review scheduling, sourced live from todo 47/48 outputs; an empty state renders when seed data or review history is absent, with no placeholder population numbers shown. + QA scenarios: happy - load the feed UI with real seed+FSRS fixture data, screenshot feed cards showing correct skill/holder/due-date values, Evidence `.omo/evidence/the-commons-hollow/task-49-the-commons-hollow.png`; failure - load the feed UI with the seed-panel data source empty, assert an empty-state card renders instead of a fabricated population number, Evidence `.omo/evidence/the-commons-hollow/task-49-the-commons-hollow-empty-state.json`. + Commit: Y | feat(mentor): add knowledge-feed UI + Recommended task executor category: visual-engineering | feed/card UI build with empty-state and layout as the core work. + +- [ ] 50. Sky: clock-schedule engine + What to do / Must NOT do: Implement a scheduled, clock-driven ambient sky-view engine that computes sky state purely from wall-clock time via a deterministic schedule function, identical across devices. Needs NO network sync at all, since every device independently computing from the same wall-clock schedule is already genuinely synchronized. Must NOT introduce any network/sync call into this schedule computation. + Closes: GAP-1 + Parallelization: Wave 5 | Blocked by: 5 | Blocks: 52 + References: report.html#md-w4 (Dayspring mechanism). + Acceptance criteria: Engine is a pure function of current wall-clock time plus static schedule config, with zero network I/O in its call path; two independent invocations with injected clocks at the same timestamp produce identical sky-state output, demonstrating sync-free determinism. + QA scenarios: happy - call the engine with two separately injected clock instances at the same timestamp, assert identical sky-state output and zero network calls observed via a network-call spy, Evidence `.omo/evidence/the-commons-hollow/task-50-the-commons-hollow.json`; failure - call the engine with an invalid/out-of-range timestamp, assert it returns a defined fallback/error state rather than crashing or fabricating an arbitrary sky state, Evidence `.omo/evidence/the-commons-hollow/task-50-the-commons-hollow-invalid-timestamp.json`. + Commit: Y | feat(sky): add clock-schedule engine + Recommended task executor category: deep-low | pure deterministic function over wall-clock input, decisions fully settled by the Dayspring mechanism spec. + +- [ ] 51. Sky: memory wall + presence counter + What to do / Must NOT do: Build the memory wall feature (stores/displays real user-entered entries) plus a live presence counter that reads Assembly's already-synced Yjs CRDT roster (todo 22, a different cluster - presence MUST read from there, not the single-replica Event Log), since presence requires real knowledge of other devices and only Assembly's CRDT has that transport. Must NOT fabricate a presence count - it must reflect real peers visible via the synced roster, honestly showing 1 (self) when no roster peers are connected. + Closes: GAP-1 + Parallelization: Wave 5 | Blocked by: 5,22 | Blocks: 52 + References: report.html#md-w4 (Dayspring mechanism); Assembly's synced Yjs CRDT roster (todo 22, a different cluster) presence-read contract. + Acceptance criteria: Presence counter subscribes to Assembly's Yjs roster's presence/awareness API (never the Event Log) and derives its count directly from connected-peer entries; it renders 1 when the roster has zero other peers, with no hardcoded minimum above that; the memory wall stores/displays only real user-entered data. + QA scenarios: happy - connect two simulated Yjs roster peers, assert the presence counter reads 2 directly from roster awareness state, Evidence `.omo/evidence/the-commons-hollow/task-51-the-commons-hollow.json`; failure - disconnect all other roster peers (solo session), assert the presence counter honestly shows 1 rather than a fabricated/cached higher number, Evidence `.omo/evidence/the-commons-hollow/task-51-the-commons-hollow-solo-session.json`. + Commit: Y | feat(sky): add memory wall and presence counter + Recommended task executor category: deep-low | CRDT roster integration against Assembly's exposed awareness contract, decisions settled from that interface. + +- [ ] 52. Sky: ambient UI + What to do / Must NOT do: Build the full-bleed, minimal-chrome ambient UI atop the shared UI shell (todo 12, a different cluster), rendering todo 50's sky state, todo 51's memory wall entries, and the live presence counter. Must NOT fabricate a presence count in the UI - the displayed counter must equal todo 51's live roster-backed value at all times, including the honest "1" solo state. + Closes: GAP-1, GAP-3 + Parallelization: Wave 5 | Blocked by: 12,50,51 | Blocks: 58 + References: report.html#md-w4 (Dayspring mechanism); shared UI shell (todo 12, a different cluster). + Acceptance criteria: UI is full-bleed with minimal chrome (no extraneous nav/toolbar over the ambient view); the displayed presence count matches todo 51's live output at render time, verified via snapshot comparison, including the solo "1" case. + QA scenarios: happy - connect additional simulated roster peers, screenshot the ambient UI showing a matching presence count and correct sky state for the current clock time, Evidence `.omo/evidence/the-commons-hollow/task-52-the-commons-hollow.png`; failure - run the UI in a solo session with zero other peers, assert it honestly displays a presence count of 1, not a fabricated higher placeholder, Evidence `.omo/evidence/the-commons-hollow/task-52-the-commons-hollow-solo-session.json`. + Commit: Y | feat(sky): add ambient UI + Recommended task executor category: visual-engineering | full-bleed ambient UI wiring three existing outputs, visual polish and honest-state rendering are the core work. + +- [ ] 53. Upload: manifest schema + validation + What to do / Must NOT do: Define the mini-app manifest JSON schema (name, icon, entry-point marker, declared permissions: ledger.read/write, eventlog.read/write, identity.read) and a validator that checks an uploaded manifest against it before storage. Must NOT accept a manifest missing a required field, and must NOT add any permission-enforcement layer beyond validation (draft D10 explicitly cuts enforcement for the MVP - validation checks shape/completeness only, never blocks a declared permission from being honored). + Closes: GAP-1 + Parallelization: Wave 6 | Blocked by: 1 | Blocks: 54 + References: draft decision D10 at `.omo/drafts/the-commons-hollow.md`. + Acceptance criteria: Vitest asserts a well-formed manifest validates and a manifest missing a required field is rejected with a specific, actionable error message naming the missing field. + QA scenarios: happy - validate 5 well-formed manifest variants (one per declared-permission combination), Evidence `.omo/evidence/the-commons-hollow/task-53-the-commons-hollow.json`; failure - submit a manifest with an unknown permission string, assert it's rejected rather than silently ignored, Evidence `.omo/evidence/the-commons-hollow/task-53-the-commons-hollow-unknown-perm.json`. + Commit: Y | feat(upload): define mini-app manifest schema and validator + Recommended task executor category: unspecified-high | standard schema+validator work, no open design decisions + +- [ ] 54. Upload: direct-mount execution + SDK surface + What to do / Must NOT do: Accept an uploaded HTML file paired with a manifest (todo 53) that passed validation, store it (Dexie blob), and mount it directly in the shell (plain DOM injection, or an unsandboxed `