docs: reconcile DEMO.md/EDGE-CASES.md/SUBMISSION-ANSWERS.md stale claims found by F4

This commit is contained in:
OmO Orchestrator committed 2026-11-20 16:22:47 -05:00
1 parent 9d038463dc
commit 8b39ddd778
4 files changed
+239 -5

No files matched your search

@@ -0,0 +1,232 @@
TASK 14 EVIDENCE: reconcile F4-found doc contradictions
worktree: /home/athapa/patriothacks-wt/first-place-overhaul-todo14
branch: first-place-overhaul-todo14
F4 (Final Verification Wave, IS-3 "zero doc contradictions") found 4 items. All 4 fixed below.
================================================================
(a) DEMO.md live-demo-link wording contradicted README.md's permanent-URL claim
================================================================
BEFORE:
Check the README's "Live demo" section first for the current state of the
deployed preview URL: it's a temporary Vercel preview that expires roughly
an hour after its last deploy, so it may already be dead by the time you
read this (an accepted tradeoff, not an oversight). The reliable path is
local:
AFTER:
Check the README's "Live demo" section first:
[`https://first-place-overhaul-todo6.vercel.app`](https://first-place-overhaul-todo6.vercel.app)
is a permanent `vercel --prod` production deployment, not a temporary
preview, so it stays live and doesn't expire. It's a static frontend only
(no backend behind it), so it works for a live demo but won't exercise
cross-device sync. The reliable path, and the one that exercises everything
including the backend-dependent flows, is still local:
Cross-checked against README.md's actual "## Live demo" section (line 19-22):
## Live demo
**Try it:** [`https://first-place-overhaul-todo6.vercel.app`](https://first-place-overhaul-todo6.vercel.app)
- a permanent `vercel --prod` production deployment, not a temporary preview
DEMO.md now matches this wording/claim exactly (permanent, live, static-frontend-only).
================================================================
(b) DEMO.md instructed a manual /admin visit, contradicting todo 5's shell-boot auto-seed
================================================================
BEFORE:
**Important: load the demo seed before you look at anything, or the app
will look empty and broken.** A fresh install has zero residents, zero
resource pools, zero history, every balance reads "no balance yet" and
every Fair Share tile reads "No allocation yet." That's correct, honest
behavior for a cold install, not a bug, but it makes a terrible first
impression. Fix it in one click:
1. Open `http://localhost:5173/admin`.
2. Under the "Load Hollow demo" heading (marked with a gray **Demo data**
badge), click the **Load Hollow demo** button.
3. Wait for the status line under the button to read "Demo data loaded
into the Event Log." (clicking it again is safe; a second click
reports "Demo data already loaded - no new events appended." instead
of duplicating anything).
4. Navigate to `http://localhost:5173/` (the home grid). The wallet card
and the 13 mini-app tiles are now populated with real signed `seed.*`
events, not placeholders.
AFTER:
**A fresh install has no demo data.** The first time the Event Log is
genuinely empty, the shell auto-seeds the Hollow demo fixture the moment
you load *any* route, no manual step required: visit
`http://localhost:5173/` and the wallet card and the 13 mini-app tiles are
already populated with real signed `seed.*` events by the time the home
grid renders. You don't need to visit `/admin` first.
`/admin` still exists if you want to drive seeding manually, for example
to re-seed after clearing IndexedDB or to inspect what the fixture wrote:
1. Open `http://localhost:5173/admin`.
2. Under the "Load Hollow demo" heading (marked with a gray **Demo data**
badge), click the **Load Hollow demo** button.
3. Wait for the status line under the button to read "Demo data loaded
into the Event Log." (clicking it again is safe; a second click
reports "Demo data already loaded - no new events appended." instead
of duplicating anything).
4. Navigate to `http://localhost:5173/` (the home grid) to see it
reflected.
Verified cross-referenced source: src/shell/ShellLayout.tsx auto-seeds the
Hollow demo fixture on any route when the Event Log is genuinely empty
(todo 5), confirmed by reading the file (see Investigate phase above). The
/admin flow is kept in the doc as the optional manual re-seed/inspect path,
no longer presented as required.
================================================================
(c) EDGE-CASES.md had two occurrences of the QV credit-forgery claim, now in sync
================================================================
FIRST occurrence (line ~79, already correct from todo 4, unchanged by this task):
"**Follow-up (verified already fixed):** `putResidentCredit` still accepts
any credit *value* via the unsigned P2P CRDT, but that value is never the
vote-weight source — hand-traced `extractQvBallots`
(`src/lib/governanceEvents.ts:136-157`) into `computeQvTally`
(`src/lib/governance.ts:269-339`) confirms weight is derived solely from
the signed Event Log's clamped ballot credits, with the CRDT `.credits`
field read only as a membership marker. Residual (disclosed, not
duplicated here): Sybil/self-enrollment buying one extra vote at the
clamped honest weight — see ECONOMY.md's "Personhood / Sybil resistance"
bullet."
SECOND occurrence (line ~96, "Known limitations & follow-ups" section):
BEFORE:
- **Credit-value forgery (Assembly QV):** `putResidentCredit` trusts any
credit value from the unsigned P2P CRDT. Dedup (#10) closes the
duplicate-row multiplier; the single-row value forgery needs credit
grants moved onto the signed Event Log (like ballots already are).
Recommended next.
AFTER:
- **Credit-value forgery (Assembly QV): verified already fixed.**
`putResidentCredit` still accepts any credit *value* via the unsigned
P2P CRDT, but that value is never the vote-weight source:
`extractQvBallots` (`src/lib/governanceEvents.ts:136-157`) feeding
`computeQvTally` (`src/lib/governance.ts:269-339`) confirms weight is
derived solely from the signed Event Log's clamped ballot credits, with
the CRDT `.credits` field read only as a membership marker. Dedup (#10)
closes the duplicate-row multiplier on top of that. Residual
(disclosed, not a live gap): Sybil/self-enrollment buying one extra
vote at the clamped honest weight, see ECONOMY.md's "Personhood / Sybil
resistance" bullet.
Grep sweep confirming no stale occurrence remains anywhere in the file:
$ grep -n -i "credit.*forgery\|QV" EDGE-CASES.md
49: ... table row 10, Assembly (QV), duplicate P2P-synced credit rows ...
79: ...**Follow-up (verified already fixed):**...
96: - **Credit-value forgery (Assembly QV): verified already fixed.**...
(plus other unrelated "QV" mentions in body text describing QV credits/tally,
none of which assert a live unfixed gap)
No occurrence of "Recommended next" or an unfixed framing remains.
================================================================
(d) docs/SUBMISSION-ANSWERS.md Field 2 cited a stale test count
================================================================
Real test run, executed in THIS worktree after `npm install` (node_modules
was missing) and `npm run build` (one test required dist/ to exist):
$ npm install -> added 535 packages (clean install, this worktree had no
node_modules yet)
$ npm run build -> vite build, exit 0, dist/ generated (292 modules,
PWA precache 20 entries)
$ npm run test -> vitest run
Test Files 90 passed (90)
Tests 796 passed (796)
Duration 8.00s
(Before the build step, running `npm run test` alone gave "1 failed | 795
passed (796)" because one test, fixtureIsolation.test.ts's "production
vite build output (dist/) does not contain the fixture's content" check,
requires dist/ to exist first and throws an explicit, honest error asking
for `npm run build` to be run first — not a real regression, just a
missing build artifact in a fresh worktree checkout.)
Real, current, full-gate count: 796 of 796 tests pass (90/90 test files),
build exit 0.
BEFORE (Field 2, last sentence):
"...covered across 13 mini-apps. 794 of 796 tests pass; two disclosed
limitations (wallet.issue self-minting, unvalidated synced fairness-debt)
remain, documented honestly in ECONOMY.md instead of silently fixed."
AFTER:
"...covered across 13 mini-apps. 796 of 796 tests pass; two disclosed
limitations (wallet.issue self-minting, unvalidated synced fairness-debt)
remain, documented honestly in ECONOMY.md instead of silently fixed."
Word count recheck: Field 2 full text = 199 words (unchanged; "794" -> "796"
is a one-token swap, same word count). Confirmed by direct count of the
field's text after the edit. Still under the 200-word limit stated at the
top of the doc.
Scope note: this task only corrected the stale test-count figure itself, as
instructed. The two named "disclosed limitations" sentence was left as-is;
whether those two specific limitations are still live was not part of this
task's 4 named items and was not re-audited here.
================================================================
GREP SWEEP: broad check across all 3 edited files for remaining stale phrases
================================================================
$ grep -n -i 'temporary\|may already be dead\|empty and broken\|794 of 796\|Recommended next' DEMO.md EDGE-CASES.md docs/SUBMISSION-ANSWERS.md
DEMO.md:15:Check the README's "Live demo" section first: [...] is a
permanent `vercel --prod` production deployment, not a temporary preview,
so it stays live and doesn't expire. [...]
(exit code 0, i.e. matches found — but the only match is the corrected
sentence itself, which uses "temporary" only to negate it: "not a
temporary preview". No occurrence of "may already be dead", "empty and
broken", "794 of 796", or "Recommended next" remains anywhere across the
3 files.)
================================================================
POST-EDIT RE-READ
================================================================
All 3 files (DEMO.md, EDGE-CASES.md, docs/SUBMISSION-ANSWERS.md) were
re-read in full after editing. No new contradiction was introduced:
- DEMO.md's live-link wording now matches README.md's "Live demo" section
verbatim in substance (permanent, `vercel --prod`, not a temporary
preview).
- DEMO.md's seeding instructions now correctly describe auto-seed-on-any-
route as the primary path, with /admin kept as the optional manual
re-seed/inspect path.
- EDGE-CASES.md's two QV-forgery mentions (line ~79 and line ~96) now say
the same thing: verified already fixed, same citation
(governanceEvents.ts:136-157 / governance.ts:269-339), no more
self-contradiction.
- docs/SUBMISSION-ANSWERS.md Field 2 now cites the real, freshly-verified
796/796 count, still under the 200-word cap.
================================================================
GIT DIFF SCOPE CHECK
================================================================
$ git diff --stat
DEMO.md | 8 +++++---
EDGE-CASES.md | 2 +-
docs/SUBMISSION-ANSWERS.md | 2 +-
3 files changed, 7 insertions(+), 5 deletions(-)
Only the 3 intended files changed. No other file touched.
================================================================
DISCLOSED RISK
================================================================
- This worktree had no node_modules at task start; `npm install` was run to
make `npm run test`/`npm run build` runnable at all. This installed
535 packages per npm's own install log (clean dependency install matching
package-lock.json, no package.json changes).
- Real test count used (796/796) required a prior `npm run build` because
one regression test (from plan todo 17, fixtureIsolation.test.ts)
explicitly checks the production dist/ bundle for test-fixture leakage,
and throws an honest "run npm run build first" error without it. This is
expected, documented test behavior, not a defect introduced by this task.
- The two named "disclosed limitations" in SUBMISSION-ANSWERS.md Field 2
(wallet.issue self-minting, unvalidated synced fairness-debt) were not
re-verified against current code; only the test-count figure was in
scope for this task's item (d).
+5 -3
View File
@@ -12,19 +12,21 @@ Everything starts with one Ed25519 keypair generated on the device and never lea
## How to run it yourself ## How to run it yourself
Check the README's "Live demo" section first for the current state of the deployed preview URL: it's a temporary Vercel preview that expires roughly an hour after its last deploy, so it may already be dead by the time you read this (an accepted tradeoff, not an oversight). The reliable path is local: Check the README's "Live demo" section first: [`https://first-place-overhaul-todo6.vercel.app`](https://first-place-overhaul-todo6.vercel.app) is a permanent `vercel --prod` production deployment, not a temporary preview, so it stays live and doesn't expire. It's a static frontend only (no backend behind it), so it works for a live demo but won't exercise cross-device sync. The reliable path, and the one that exercises everything including the backend-dependent flows, is still local:
```bash ```bash
npm install npm install
npm run dev # Vite dev server at http://localhost:5173 npm run dev # Vite dev server at http://localhost:5173
``` ```
**Important: load the demo seed before you look at anything, or the app will look empty and broken.** A fresh install has zero residents, zero resource pools, zero history, every balance reads "no balance yet" and every Fair Share tile reads "No allocation yet." That's correct, honest behavior for a cold install, not a bug, but it makes a terrible first impression. Fix it in one click: **A fresh install has no demo data.** The first time the Event Log is genuinely empty, the shell auto-seeds the Hollow demo fixture the moment you load *any* route, no manual step required: visit `http://localhost:5173/` and the wallet card and the 13 mini-app tiles are already populated with real signed `seed.*` events by the time the home grid renders. You don't need to visit `/admin` first.
`/admin` still exists if you want to drive seeding manually, for example to re-seed after clearing IndexedDB or to inspect what the fixture wrote:
1. Open `http://localhost:5173/admin`. 1. Open `http://localhost:5173/admin`.
2. Under the "Load Hollow demo" heading (marked with a gray **Demo data** badge), click the **Load Hollow demo** button. 2. Under the "Load Hollow demo" heading (marked with a gray **Demo data** badge), click the **Load Hollow demo** button.
3. Wait for the status line under the button to read "Demo data loaded into the Event Log." (clicking it again is safe; a second click reports "Demo data already loaded - no new events appended." instead of duplicating anything). 3. Wait for the status line under the button to read "Demo data loaded into the Event Log." (clicking it again is safe; a second click reports "Demo data already loaded - no new events appended." instead of duplicating anything).
4. Navigate to `http://localhost:5173/` (the home grid). The wallet card and the 13 mini-app tiles are now populated with real signed `seed.*` events, not placeholders. 4. Navigate to `http://localhost:5173/` (the home grid) to see it reflected.
## How to demonstrate it ## How to demonstrate it
+1 -1
View File
@@ -93,7 +93,7 @@ BREAKS #23, #24 (manifest). HELD: missing/empty/wrong-type name/icon/entryPoint,
--- ---
## Known limitations & follow-ups (not regressions; root outside scope or by-design) ## Known limitations & follow-ups (not regressions; root outside scope or by-design)
- **Credit-value forgery (Assembly QV):** `putResidentCredit` trusts any credit value from the unsigned P2P CRDT. Dedup (#10) closes the duplicate-row multiplier; the single-row value forgery needs credit grants moved onto the signed Event Log (like ballots already are). Recommended next. - **Credit-value forgery (Assembly QV): verified already fixed.** `putResidentCredit` still accepts any credit *value* via the unsigned P2P CRDT, but that value is never the vote-weight source: `extractQvBallots` (`src/lib/governanceEvents.ts:136-157`) feeding `computeQvTally` (`src/lib/governance.ts:269-339`) confirms weight is derived solely from the signed Event Log's clamped ballot credits, with the CRDT `.credits` field read only as a membership marker. Dedup (#10) closes the duplicate-row multiplier on top of that. Residual (disclosed, not a live gap): Sybil/self-enrollment buying one extra vote at the clamped honest weight, see ECONOMY.md's "Personhood / Sybil resistance" bullet.
- **`ceeiSpike.ts` divide-by-supply** has no zero/non-finite guard; fixed at the caller (#4/#6), a solver-level guard would be defense-in-depth. - **`ceeiSpike.ts` divide-by-supply** has no zero/non-finite guard; fixed at the caller (#4/#6), a solver-level guard would be defense-in-depth.
- **Negative edge weights / fractional capacity / negative congestion cost:** by-contract engine-only overrides, not UI-reachable. - **Negative edge weights / fractional capacity / negative congestion cost:** by-contract engine-only overrides, not UI-reachable.
- **Test-isolation:** an intermittent `IdentityMissingError` in the full vitest run (a mounted mini-app's fire-and-forget `append` outliving a test teardown) — did not recur on the final green run; flagged as test-hygiene cleanup in `MountedMiniapp.test.tsx`. - **Test-isolation:** an intermittent `IdentityMissingError` in the full vitest run (a mounted mini-app's fire-and-forget `append` outliving a test teardown) — did not recur on the final green run; flagged as test-hygiene cleanup in `MountedMiniapp.test.tsx`.
+1 -1
View File
@@ -59,7 +59,7 @@ regression-tested now.
Key design choice: one event log feeding CEEI-style fair-division math (Fair Key design choice: one event log feeding CEEI-style fair-division math (Fair
Share), not mutable balances in a database. All 15 official problems are Share), not mutable balances in a database. All 15 official problems are
covered across 13 mini-apps. 794 of 796 tests pass; two disclosed covered across 13 mini-apps. 796 of 796 tests pass; two disclosed
limitations (wallet.issue self-minting, unvalidated synced fairness-debt) limitations (wallet.issue self-minting, unvalidated synced fairness-debt)
remain, documented honestly in ECONOMY.md instead of silently fixed. remain, documented honestly in ECONOMY.md instead of silently fixed.