diff --git a/.omo/plans/the-commons-hollow.md b/.omo/plans/the-commons-hollow.md index 4d807c7..58badfb 100644 --- a/.omo/plans/the-commons-hollow.md +++ b/.omo/plans/the-commons-hollow.md @@ -176,7 +176,7 @@ Shell (home grid, identity, themed Alipay/WeChat/Tuya UI, installable PWA, walle 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 +- [x] 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) @@ -186,7 +186,7 @@ Shell (home grid, identity, themed Alipay/WeChat/Tuya UI, installable PWA, walle 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 +- [x] 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 @@ -196,7 +196,7 @@ Shell (home grid, identity, themed Alipay/WeChat/Tuya UI, installable PWA, walle 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 +- [x] 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 @@ -216,7 +216,7 @@ Shell (home grid, identity, themed Alipay/WeChat/Tuya UI, installable PWA, walle 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 +- [x] 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 @@ -226,7 +226,7 @@ Shell (home grid, identity, themed Alipay/WeChat/Tuya UI, installable PWA, walle 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 +- [x] 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 @@ -236,7 +236,7 @@ Shell (home grid, identity, themed Alipay/WeChat/Tuya UI, installable PWA, walle 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 +- [x] 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 @@ -246,7 +246,7 @@ Shell (home grid, identity, themed Alipay/WeChat/Tuya UI, installable PWA, walle 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 +- [x] 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