17 KiB
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