chore(ulw-execute): close todo 14 and F4; all 18 plan checkboxes landed
This commit is contained in:
1 parent
8b39ddd778
commit
6181246393
7 files changed
+534
-2
No files matched your search
@@ -0,0 +1,98 @@
|
||||
# F1 - Plan Compliance Audit
|
||||
|
||||
**Plan:** `.omo/plans/first-place-overhaul.md`
|
||||
**Worktree:** `/home/athapa/patriothacks-wt/first-place-overhaul-finalverify` (branch `master`, HEAD `3758d45`)
|
||||
**Scope:** re-read every todo's "Must NOT" clause against its actual landed commit diff, and confirm no top-level "Must NOT have" (Scope-OUT) item was added anywhere across the 13 landed implementation todos.
|
||||
**Method:** full plan file read end to end; `.omo/ulw-execute/ledger.jsonl` mined for each todo's `commit_master` hash; `git log --oneline` walked to find each todo's product commit(s) vs. its separate evidence/chore commit(s); `git show --stat` + full `git show`/`git diff` run on every product-touching commit; `src/lib/ledger.ts` and `src/lib/housing.ts` read directly at HEAD.
|
||||
|
||||
## VERDICT: **PASS**
|
||||
|
||||
No Scope-OUT item was added. No todo's "Must NOT" clause was violated. Zero blockers found.
|
||||
|
||||
---
|
||||
|
||||
## 1. Top-level "Must NOT have" (Scope-OUT) accounting
|
||||
|
||||
| # | Scope-OUT item | Finding | Evidence |
|
||||
|---|---|---|---|
|
||||
| 1 | No 14th mini-app / new official-problem coverage | `src/shell/miniappRegistry.ts` has exactly 13 `id:` entries (fair-share, water-watch, tunnel-safety, housing, assembly, find-family, health-post, light-clock, farms, fair-draw, the-climb, mentor, sky); `src/miniapps/` has exactly 13 directories matching; `git log --diff-filter=A --name-only` for `src/miniapps/*` across the plan's entire commit range (`75180ed^..HEAD`) returns **zero** newly-added files. | direct read of `miniappRegistry.ts` + `ls src/miniapps`; `git log --diff-filter=A -- "src/miniapps/*"` empty |
|
||||
| 2 | No managed third-party cloud backend; Vercel deploy ships STATIC-ONLY, `api/` excluded | `.vercelignore` (added by commit `afb16a5`) contains a single line `api/` with an explanatory comment. `vercel.json` has `"buildCommand": "tsc -b tsconfig.app.json tsconfig.node.json && vite build"` - explicitly skips `tsconfig.api.json`. `api/` directory on disk is **untouched and fully present**: `admin/`, `blob/`, `sync/`, `_lib/`, plus the 3 top-level `*.integration.test.ts` files - nothing moved or deleted. Verifier (`st_01a1fabb`) independently confirmed a real `vercel --prod` deploy at `https://first-place-overhaul-todo6.vercel.app` returns 200 with zero functions deployed, and a second stale README claim ("deploy still outstanding") was caught and fixed in a follow-up commit (`6f52f8b`). | `cat .vercelignore vercel.json`; `ls -la api/`; `git show afb16a5 -- .vercelignore vercel.json`; ledger `task-6` verify-confirmed entries |
|
||||
| 3 | No code fix for F2 (`wallet.issue` unbounded self-mint) or F3 (Housing `fairnessDebt` poisoning) - disclose-only | `src/lib/ledger.ts`'s `isIssuePayload` (read at HEAD) is byte-identical in logic to before this plan: shape/finite/non-negative check only, no signer-identity check added. Confirmed via `git diff <pre-plan-parent> HEAD -- src/lib/ledger.ts`: the entire diff touches only `isTransferPayload`'s branch/`RejectedTransfer`/`computeBalances`'s transfer block - **the string `isIssuePayload` does not appear anywhere in the diff**. `src/lib/housing.ts`'s `isHousingAssignmentPayload` (read at HEAD, lines 583-594) still only checks `fairnessDebt` is a non-null object, never validates numeric values are finite - and `git log --oneline <pre-plan-parent>..HEAD -- src/lib/housing.ts` returns **zero commits** touching that file at all across the whole plan. Both gaps are disclosed (not fixed) in `ECONOMY.md`'s new bullets (commit `208cf76`), citing the exact same unauthenticated/unvalidated mechanics confirmed by direct code read. | `read src/lib/ledger.ts` (lines 1-80); `read src/lib/housing.ts` (lines 575-605); `git diff 75180ed^ HEAD -- src/lib/ledger.ts` (isIssuePayload absent); `git log --oneline 75180ed^..HEAD -- src/lib/housing.ts` (empty) |
|
||||
| 4 | No `demoFixture`-style exemption added to the `wallet.transfer` fix (todo 2) | Full diff of `6d5740c` (the only commit touching `src/lib/ledger.ts` in this plan) adds exactly one new rejection branch: `if (toAccountId(entry.authorPubkey) !== from) { rejected.push({..., reason: "unauthorized-signer"}); continue; }` - no `demoFixture`/exemption flag of any kind. Cross-checked `src/admin/seedEvents.ts`'s `buildDemoWalletPayloads(agent)`: it sets `from: agent` (the demo-loading identity's own account id) - the demo fixture's wallet.transfer already satisfies the new binding unmodified, needing no bypass. (Note: a pre-existing, unrelated `demoFixture: true` flag on `postQvBallot` - a *governance ballot* exemption, not a wallet-transfer one - was found in the code that todo 5 relocated from `AdminSeedPanel.tsx` into `loadHollowDemo.ts`; it predates this plan and is outside todo 2's file/scope entirely.) | `git show 6d5740c -- src/lib/ledger.ts`; `grep -n -A10 "function buildDemoWalletPayloads" src/admin/seedEvents.ts` |
|
||||
| 5 | No full video re-cut without a named defect (todo 9, GAP-6) | Todo 9's landed commit `ad792e1` touches only `README.md`, `package.json` (+1 `allowScripts` entry for ffmpeg-static), the new render `e2e/openmotion/renders/full-v7.mp4`, and its own evidence file - **`e2e/openmotion/buildComposition.mjs` (where `buildTimeline()` lives) does not appear in the diff at all**. README's new text explicitly states "verified against `docs/DEMO-VIDEO-SCRIPT.md`'s...structure and already match it, so no re-cut was needed for this render - it picks up the Assembly clip's decorative fix only." Verifier (`st_01a1fab0`) independently confirmed `full-v7.mp4` is a genuinely fresh render (different md5/size from v6), not a stale copy, and that the verify-first "no re-cut" conclusion holds against the real timeline code. | `git show ad792e1 --stat` (no `buildComposition.mjs`); ledger `task-9` verify-confirmed note |
|
||||
| 6 | No reduction of any already-shipped feature "to simplify" | Checked every todo's diff for deletions of shipped behavior: todo 5's large deletion inside `AdminSeedPanel.tsx` is a **relocation**, not a reduction - every deleted line (identity init, idempotency check, all `append()`/`appendEntry()` calls for fixture payloads, wallet/skill/housing/hazard/mentor/health seed data, Assembly roster/proposal/ballot seeding) reappears verbatim in the new `src/admin/loadHollowDemo.ts` (274 new lines), called identically from both `AdminSeedPanel.tsx`'s thin wrapper and `ShellLayout.tsx`'s new boot effect; the "Demo data" badge/disclaimer text (`grep -n "demo data"` -> line 284 of `AdminSeedPanel.tsx`, plus its own `AdminSeedPanel.test.tsx:144` assertion) is retained unchanged. Todo 10's fix commit (`4228eff`) is CSS-sizing-only (`git diff 2474215 4228eff -- docs/promo-slides.md` shows only `style:` block property changes - no slide markdown/content lines touched). No other todo removes a shipped capability. | `git show 21319b3 -- src/admin/AdminSeedPanel.tsx src/admin/loadHollowDemo.ts`; `grep -n -i "demo data" src/admin/AdminSeedPanel.tsx`; `git diff 2474215 4228eff -- docs/promo-slides.md` |
|
||||
|
||||
---
|
||||
|
||||
## 2. Per-todo "Must NOT" clause accounting (own commit evidence)
|
||||
|
||||
Product commit vs. evidence/chore commit are listed separately per todo (the orchestrator's convention: every todo lands its product diff, then a separate `test(evidence): record task-N...` or `chore(ulw-execute): close todo N...` commit).
|
||||
|
||||
### Todo 1 - commit pre-existing WIP in scoped atomic commits
|
||||
- **Must NOT:** squash unrelated changes into one commit; must not revert/alter the pre-existing content.
|
||||
- **Commits:** `75180ed` (docs: correct population-scenario scale framing), `75bfc82` (feat(promo-video): redesign the ledger-panel composition), `55d1450` (docs: add first-place-overhaul work plan and draft), `509764f` (evidence).
|
||||
- **Finding:** three scoped commits exactly matching the plan's own 3-group description: (a) `75180ed` touches only `DEMO.md`, `README.md`, `e2e/demoVideoFull.e2e.mjs`, `e2e/openmotion/tour.mjs`, `src/admin/seedEvents.ts` - the exact 5 files named for group (a); (b) `75bfc82` touches only `e2e/openmotion/buildComposition.mjs`, `compositions/promo.html`, `assets/wall/*.png`, `renders/full-v6.mp4` - exactly group (b); (c) `55d1450` touches only `.omo/boulder.json`, `.omo/drafts/first-place-overhaul.md`, `.omo/plans/first-place-overhaul.md` - exactly group (c). No cross-contamination between groups, no content reverted (all three are additive/corrective, no deletions of substance). **PASS.**
|
||||
|
||||
### Todo 2 - fix wallet.transfer signer binding
|
||||
- **Must NOT:** touch `wallet.issue` or any other payload type's validation; no `demoFixture` exemption.
|
||||
- **Commit:** `6d5740c` touches `src/lib/ledger.ts`, `src/lib/ledger.test.ts`, `src/lib/ledgerConflicts.test.ts` only (no production file besides `ledger.ts`).
|
||||
- **Finding:** full diff of `ledger.ts` shows the new logic lives entirely inside `isTransferPayload`'s rejection branch; `isIssuePayload` does not appear anywhere in the diff (confirmed by substring search on the diff text). `ledgerConflicts.test.ts` is a **test-only** update (adds an `accountFor()` helper so transfer tests use a real signer-bound account id instead of literal `"A"`) - its production counterpart `ledgerConflicts.ts` is untouched. No `demoFixture` flag added anywhere in this diff. Verifier's own independent forged-transfer probes (fund-drain, third-party redirect) also rejected, confirming the fix generalizes. **PASS.**
|
||||
|
||||
### Todo 3 - disclose F2/F3 in ECONOMY.md
|
||||
- **Must NOT:** modify any code path, prose-only.
|
||||
- **Commit:** `208cf76` touches `ECONOMY.md` only (1 file, 32 insertions/6 deletions, confirmed by `git show --stat`).
|
||||
- **Finding:** diff is pure prose - two new bullets citing `ledger.ts`'s `isIssuePayload` and `housing.ts`'s `isHousingAssignmentPayload` by name/mechanism, plus the two invariant-softening edits at the pre-existing "ONLY deliberate net issuance" lines. Both citations verified accurate against the real current function bodies (read directly). **PASS.**
|
||||
|
||||
### Todo 4 - correct EDGE-CASES.md stale claim
|
||||
- **Must NOT:** alter any other row/claim; single-sentence correction only.
|
||||
- **Commit:** `7f37dab` touches `EDGE-CASES.md` only, **1 insertion / 1 deletion** (confirmed by `git show --stat`: `EDGE-CASES.md | 2 +-`).
|
||||
- **Finding:** exactly one line replaced (the "Follow-up (off-limits root)...single-row value forgery remains" sentence), rewritten to "Follow-up (verified already fixed)" with a file:line trace into `governanceEvents.ts`/`governance.ts`. No other line in the file touched. **PASS.**
|
||||
|
||||
### Todo 5 - auto-seed on genuinely empty Event Log
|
||||
- **Must NOT:** touch React state inside the extracted function; change `AdminSeedPanel`'s own UI/behavior/tests beyond calling the extracted function; weaken the "Demo data" badge.
|
||||
- **Commit:** `21319b3` touches `AdminSeedPanel.tsx` (-199/+29 net inside the file, logic relocated), new `src/admin/loadHollowDemo.ts` (274 lines), `ShellLayout.tsx` (+21), `ShellLayout.test.tsx` (new, +111), plus evidence/new e2e file.
|
||||
- **Finding:** `loadHollowDemo.ts`'s own doc comment states "Deliberately contains NO React state - no `setDemoStatus`/`setDemoLoading` calls" - confirmed by reading the file (only `append`/`appendEntry`/domain-fn calls, zero `useState`/`set*` references). `AdminSeedPanel.tsx`'s `handleLoadDemo` is now a 6-line wrapper calling `loadHollowDemoFixture(assemblyDbName)` and setting its own `demoStatus`/`demoLoading` around the result - same two status strings ("Demo data already loaded...", "Demo data loaded into the Event Log.") preserved verbatim. The "Demo data" badge text (line 284) is untouched, and `AdminSeedPanel.test.tsx:144`'s `getByTestId("demo-data-label")` assertion (pre-existing) still targets it. **PASS.**
|
||||
|
||||
### Todo 6 - static-only Vercel deploy
|
||||
- **Must NOT:** ship before todo 2 lands; move/delete `api/` (vercel.json/.vercelignore exclusion only).
|
||||
- **Commits:** `afb16a5` (build(vercel): deploy static-only), `6f52f8b` (docs(readme): remove second stale reference).
|
||||
- **Finding:** `afb16a5`'s timestamp (`2026-11-20T15:40:31`) is after todo 2's landed timestamp (`6d5740c` at `14:59:49` same day, and ledger shows task 2 `verify-confirmed`/`task-landed` at `20:06:05` UTC, well before todo 6's dispatch at `20:33:51` UTC) - correct ordering. `api/` directory confirmed present on disk with all 7 original entries (`admin/`, `blob/`, `_lib/`, `sync/`, 3 integration test files) - nothing moved/renamed. Exclusion is via `.vercelignore`'s single `api/` line + `vercel.json`'s `buildCommand` override only, exactly as prescribed; no `git mv` of `api/` anywhere in the diff. **PASS.**
|
||||
|
||||
### Todo 7 - Assembly clip decorative treatment
|
||||
- **Must NOT:** touch the underlying `assembly.mp4` asset; touch any other segment's styling.
|
||||
- **Commit:** `6065a64` touches `e2e/openmotion/buildComposition.mjs` and `compositions/promo.html` only (plus its own evidence PNG/txt).
|
||||
- **Finding:** the `<video>` element's `src="assets/assembly.mp4"` reference is unchanged (same path, same `data-start`/`data-media-start`/`data-duration` attributes) - the asset itself is never written to or renamed in this diff (confirmed: no `assets/assembly.mp4` entry in `git show --stat`). All CSS/markup/GSAP-timeline additions are scoped to the new `.assembly-frame`/`#field-assembly`/`#text-assembly` elements and the pre-existing `.assembly` class's own rule (narrowed from full-bleed `inset:0` to sit inside the new frame) - no other segment's CSS class (`.field`, `.st-eyebrow`, `.lock-title`, etc.) is modified in this diff. **PASS.**
|
||||
|
||||
### Todo 9 - verify-first pacing, re-render
|
||||
- **Must NOT:** re-cut without a named defect.
|
||||
- **Commit:** `ad792e1` touches `README.md`, `package.json`, the new render binary, and its own evidence file - **`buildComposition.mjs` is absent from the diff**, meaning `buildTimeline()`/segment order/durations are untouched by this commit. README's own new text states the structure was checked against the script and "already match[es] it, so no re-cut was needed." **PASS** (already detailed under Scope-OUT item 5 above).
|
||||
|
||||
### Todo 10 - Marp slides deck
|
||||
- **Must NOT:** invent content beyond script/fixture.
|
||||
- **Commits:** `2474215` (new deck), `4228eff` (clipping fix, CSS-only per diff inspection above).
|
||||
- **Finding:** slide numbers (4,200 / power 850 / water 620 / food 410 / cooling 300) match `src/admin/seedEvents.ts` lines 79-84 exactly (`population: 4200`, `power: 850`, `water: 620`, `food: 410`, `cooling: 300`), confirmed by direct `grep`. The verifier's first pass (attempt 1) rejected the deck for content *clipping* (not invention) on 5/10 slides and two entirely-dropped ledger rows; attempt 2 (`4228eff`) fixed this via CSS sizing only, independently re-verified by diffing the markdown body excluding the style block (no net content added or removed). **PASS.**
|
||||
|
||||
### Todo 11 - submission-form answers
|
||||
- **Must NOT:** exceed 200 words/field; invent impact numbers/testimonials.
|
||||
- **Commit:** `e24a722`.
|
||||
- **Finding:** the todo's own evidence file (`task-11-first-place-overhaul-wordcounts.txt`, read directly) shows word counts 194/199/196/83 (all ≤200), and a fact-check section cross-referencing every factual claim (population 4,200, "794 of 796 tests," "all 15 problems/13 mini-apps," tech stack, CEEI, solo-built, the 3 merged-problem-pairs) against its real repo source with file:line citations, each independently spot-checked above and found accurate. No testimonial or unsourced impact number appears. **PASS.**
|
||||
|
||||
### Todo 12 - final checklist
|
||||
- **Must NOT:** vague checklist items (no "finish up"-style items).
|
||||
- **Commit:** `a87b7b2`.
|
||||
- **Finding:** `docs/FINAL-CHECKLIST.md` (read directly) has 8 items (one more than the plan's original "7" estimate; the file itself discloses this deviation honestly: todo 10's slide deck is a real deliverable the original outline predates, given its own numbered item rather than being hidden). Every item cites a concrete artifact/path/URL: `docs/SUBMISSION-ANSWERS.md`, `e2e/openmotion/renders/full-v7.mp4` (with byte size), `https://first-place-overhaul-todo6.vercel.app`, `docs/promo-slides.pptx`/`.pdf` (with byte sizes), the sponsor-tracks confirmation, the human watch-through, and the submit deadline. None is a vague placeholder. **PASS.**
|
||||
|
||||
### Todo 13 - de-flake ShellLayout test (discovered-defect-followup, not a GAP row)
|
||||
- **Commit:** `e4ca8ab`.
|
||||
- **Finding:** touches only `src/shell/ShellLayout.test.tsx` (+49/-9 net); verifier confirmed the real root cause (CPU contention on crypto ops exceeding the default 1000ms timeout, not state bleed) and that the fix raises the timeout rather than weakening the real idempotency/entry-count assertions. Not subject to a plan-defined "Must NOT" clause (it is a follow-up, not one of the 13 planned todos), included here for completeness. **No issue found.**
|
||||
|
||||
---
|
||||
|
||||
## 3. Summary
|
||||
|
||||
- 13 implementation todos (1-13), all landed on `master` and independently verifier-confirmed per the ledger.
|
||||
- Zero Scope-OUT items were introduced: no 14th mini-app, no managed cloud backend (deploy is static-only with `api/` cleanly excluded via config, never moved/deleted), no F2/F3 code fix (both remain exactly as unauthenticated/unvalidated as before this plan, confirmed by direct code read and an empty `housing.ts` commit-touch history), no `demoFixture` exemption added to the transfer fix, no re-cut of the video without a named defect, no shipped-feature reduction.
|
||||
- Every todo's own "Must NOT" clause was checked against its real landed diff(s), not just its evidence file's self-report; all passed.
|
||||
- No blocker, no file:line citation of a violation to report.
|
||||
|
||||
**F1 VERDICT: PASS.**
|
||||
@@ -0,0 +1,78 @@
|
||||
# F2 - Code Quality Review: ledger.ts signer-binding fix, shell auto-seed, test de-flake
|
||||
|
||||
**Verdict: PASS**
|
||||
|
||||
**Scope reviewed** (the three real, non-doc/non-video code changes in this plan):
|
||||
1. `src/lib/ledger.ts` - `wallet.transfer` signer-binding fix (todo 2), plus its tests in `src/lib/ledger.test.ts` and `src/lib/ledgerConflicts.test.ts`.
|
||||
2. `src/shell/ShellLayout.tsx` + `src/admin/loadHollowDemo.ts` - boot-time Hollow demo auto-seed (todo 5).
|
||||
3. `src/shell/ShellLayout.test.tsx` - the auto-seed regression test / de-flake (todo 13).
|
||||
|
||||
Commit: `3758d45` (worktree `first-place-overhaul-finalverify`, read-only).
|
||||
|
||||
---
|
||||
|
||||
## 1. `src/lib/ledger.ts` - signer-binding fix
|
||||
|
||||
**Mechanism** (`computeBalances`, `ledger.ts:187-199`): before a `wallet.transfer` payload's `amount` is debited from `from`, the code checks `toAccountId(entry.authorPubkey) !== from` and, if so, pushes a `RejectedTransfer` with `reason: "unauthorized-signer"` and `continue`s - exactly mirroring the pre-existing `"credit-limit-breach"` rejection branch that already existed for the credit-limit case. No special-casing: both rejection reasons share one `RejectedTransfer` discriminated-union type (`ledger.ts:68-85`) and one `rejected` array in `LedgerState`. This is the same "reject as structured data, not thrown exception" design the credit-limit check already used - consistent, not a new pattern bolted on.
|
||||
|
||||
**Naming**: `"unauthorized-signer"` reads clearly next to `"credit-limit-breach"`; `wouldBeBalance`/`creditLimit` fields stay confined to the credit-limit variant (TypeScript's discriminated union correctly excludes them from the `unauthorized-signer` variant - verified by reading the type definition, `ledger.ts:68-85`).
|
||||
|
||||
**Error-handling style vs. project convention**: `AGENTS.md`/`src/lib/AGENTS.md` call for "Typed error classes ... over bare throws," citing `IdentityMissingError`/`SignatureVerificationError`. `computeBalances` throws nothing for a rejected transfer - it records the rejection as data in `LedgerState.rejected` and continues the replay. This is correct, not a convention violation: the function is a **pure reduction over an append-only log** (its own doc comment at `ledger.ts:149-159` states this precedent), and a malformed/forged entry already sitting in the log is an expected steady-state condition every caller must be able to inspect (e.g. to show a "refund" UI state via `ledgerConflicts.ts`'s `FlaggedTransfer`), not an exceptional control-flow event to unwind with `throw`. Throwing here would mean one forged entry anywhere in history crashes every balance computation forever - clearly wrong for a pure replay function. The project's own precedent for "when this situation really is exceptional" is `ledgerConflicts.ts`'s `UnresolvedLamportTieError` (thrown because there genuinely is no answer), confirming the codebase already distinguishes "recoverable, data-worthy rejection" from "unrecoverable, throw-worthy" within this exact module family. Verdict: consistent.
|
||||
|
||||
**Integration with the existing rejection bucket** (`ledgerConflicts.ts`): `mergeReplicas` consumes `ledger.rejected` uniformly regardless of `reason` (`ledgerConflicts.ts:140-161`) - it groups by `(authorPubkey, from)` and only flags a rejection as a double-spend `"refund"` if a same-signer, same-`from` sibling transfer exists to have "won." A forged (`unauthorized-signer`) rejection is naturally never flagged this way (its `authorPubkey` is the attacker's, so it groups under the attacker's own key, not the victim's), and no `reason`-based branch was added to make this correct - it falls out of the existing key-grouping logic. Confirmed via `ledgerConflicts.test.ts`'s "does not flag a lone credit-limit breach" test covering the no-sibling case, and no ledgerConflicts test attempts to double-count a forged entry as a "legitimate" conflict. Clean integration, not a hacky special case.
|
||||
|
||||
**Dead code / unused imports / formatting**: none found in `ledger.ts`. The module's existing `Object.create(null)` + `hasOwnProperty.call` guards (for `creditLimitFor`) are untouched and still correctly cover the new code path (the `from`/`to` account-name lookups go through the same `getBalance`/`balances[...]` accessors).
|
||||
|
||||
## 2. `ledger.test.ts` / `ledgerConflicts.test.ts` - regression test genuineness
|
||||
|
||||
The core regression test, `ledger.test.ts:112-126` ("rejects a wallet.transfer not signed by the from account's own key (a forged transfer)"), asserts:
|
||||
- `balanceOf(state, victim)` is still `100` (the forged debit never applied) - a real computed balance, not a mock-call-count or string-exists check.
|
||||
- `balanceOf(state, attacker)` is `0` (the forged credit never applied).
|
||||
- `state.rejected` has length `1` with `reason === "unauthorized-signer"`.
|
||||
|
||||
These are genuine behavioral assertions against `computeBalances`'s real output, exercising the real `toAccountId` comparison, not a prose pin or a mock. The companion test "applies the Hollow demo fixture's wallet.issue + wallet.transfer when both are signed by the demo-loading identity" (`ledger.test.ts:139-153`) is a genuine non-regression check too: it asserts the fix doesn't need a demo-fixture carve-out, by computing a real balance difference (`HOLLOW_DEMO_WALLET_WELCOME_GRANT - HOLLOW_DEMO_WALLET_COMMONS_CONTRIBUTION`) rather than asserting the fixture builder was merely called.
|
||||
|
||||
`ledgerConflicts.test.ts`'s four tests (`:28-93`) all assert real computed `balanceOf`/`rejected`/`flagged` values (e.g. `balanceOf(result.ledger, "B")` toBe `100`, `result.flagged[0].wonBy.id` toBe `earlySpend.id`) and one asserts a real `throw` (`UnresolvedLamportTieError`). None of these are source/prose pins or no-op mock-count assertions. **Genuine.**
|
||||
|
||||
## 3. `src/shell/ShellLayout.tsx` + `src/admin/loadHollowDemo.ts` - auto-seed (todo 5)
|
||||
|
||||
**`ShellLayout.tsx:30-50`**: the boot-time `useEffect` reads the full log (`readAll()`), checks `hasDemoFixtureBeenLoaded(existing)` AND `existing.length === 0` before calling `loadHollowDemoFixture()`. The doc comment (`:32-44`) correctly explains why the `length === 0` guard is needed in addition to the marker check: pre-existing integration tests mount this same shell after appending scenario-specific entries onto an otherwise-marker-less, non-empty log, and auto-seeding on top of that would corrupt their hand-traced assertions. This is a real, load-bearing guard, not defensive bloat - it protects actual other tests in this suite.
|
||||
|
||||
**`loadHollowDemo.ts`'s in-flight-promise cache** (`:79-96`, `loadHollowDemoFixture`/`loadHollowDemoFixtureUncached`): structurally identical to `identity.ts:38-47`'s `init()`/`inFlightInit` pattern - module-level `let inFlightLoad: Promise<...> | undefined`, set once via `.finally(() => { inFlightLoad = undefined; })` so the cache clears whether the call succeeds or fails, and a later genuine call re-checks the real state (here, `hasDemoFixtureBeenLoaded` on the Event Log; there, `db.identity.get("local")`). Both exist to prevent the identical failure mode: React StrictMode's double effect-invocation racing two writers against an idempotency check neither has "seen" the other's write for yet. The copy is faithful, not degraded - no corners cut relative to the original.
|
||||
|
||||
**Separation of concerns**: `loadHollowDemo.ts`'s module doc (`:1-15`) is explicit that the function is deliberately React-free (no `setDemoStatus`/`setDemoLoading` calls), extracted from `AdminSeedPanel.tsx`'s original `handleLoadDemo` so both call sites (admin panel button, shell auto-seed) share one implementation. This is the correct refactor direction per the project's "no duplicate logic" convention - confirmed by reading the function: every seed write goes through the same signed `append()`/`appendEntry()`/`uploadMiniapp()`/CRDT paths the admin panel already used (no bypass write, consistent with `src/admin/AGENTS.md`'s anti-pattern list).
|
||||
|
||||
**Dead code / unused imports / formatting**: none found in either file. `nextDemoLamportTs()` in `loadHollowDemo.ts` is used (3 call sites for the three foreign-signed `appendEntry` calls); no leftover unused import after the extraction from `AdminSeedPanel.tsx` (not itself in scope here, but `loadHollowDemo.ts`'s own import list at `:27-54` is consumed in full by the function body).
|
||||
|
||||
## 4. `src/shell/ShellLayout.test.tsx` - de-flake (todo 13)
|
||||
|
||||
**The fix**: `AUTO_SEED_WAIT_TIMEOUT_MS = 10_000` (`:60-77`) replaces vitest's default 1000ms `waitFor` timeout, with a documented, falsifiable rationale (`:60-76`): the seed path does ~20 real Ed25519 sign/verify ops plus a CRDT write and an upload, and under the full suite's one-worker-per-file `isolate: true` pool, CPU contention from dozens of concurrent workers can legitimately push real crypto work past 1000ms - this is a timing/contention issue, not a logic bug or cross-file state bleed (correctly reasoned: `isolate: true` gives every file its own worker/module registry/IndexedDB). Widening a timeout to absorb genuine slow work under contention, while still polling for the *real* marker-presence condition (`fixtureMarkerPresent`, `:46-53`), is the correct fix for this flake class - not a `sleep()`, not a retry-until-green loop.
|
||||
|
||||
**Genuineness of the regression tests**: Both tests in the `describe` block (`:84-141`) combine `loadHollowDemoFixture`/`hasDemoFixtureBeenLoaded` **call-count** assertions with **real data** assertions:
|
||||
- Test 1 (`:85-100`): after waiting for the real marker, asserts a real numeric wallet balance (`Number(balance.textContent)`, `Number.isFinite(...)`, `> 0`) and a real rendered grid role - not just that a function fired.
|
||||
- Test 2 (`:102-140`, the idempotency regression): asserts `countAfterFirstMount` is a real `>0` entry count, then after a second mount asserts `(await readAll())` still has exactly `countAfterFirstMount` entries (no duplicates appended) and exactly one `seed.demo.loaded` marker entry. The call-count assertions (`toHaveBeenCalledTimes`) are present too, but they are not standing alone as the only check - they're corroborated by the real entry-count/marker-count assertions that would fail independently of the spy if duplicate-append logic regressed. This passes the test-authoring gate: it is not a mock-echo test that could pass with the underlying logic broken.
|
||||
|
||||
The inline comment at `:38-44` explaining why `fixtureMarkerPresent` deliberately bypasses the mocked `hasDemoFixtureBeenLoaded` spy (to avoid the poll's own calls inflating the production-code call count being asserted) shows the author understood the distinction between a real-state poll and a spy-count assertion - good test hygiene, not an oversight.
|
||||
|
||||
**Dead code / formatting**: none found.
|
||||
|
||||
## 5. Lint
|
||||
|
||||
Ran the project's lint command (`npx oxlint`, via `AGENTS.md`'s `npm run lint`) against all seven changed files, using the main checkout's installed `oxlint` binary against this worktree's `.oxlintrc.json` (the worktree has no `node_modules` of its own):
|
||||
|
||||
```
|
||||
oxlint -c .oxlintrc.json src/lib/ledger.ts src/lib/ledger.test.ts \
|
||||
src/lib/ledgerConflicts.ts src/lib/ledgerConflicts.test.ts \
|
||||
src/shell/ShellLayout.tsx src/admin/loadHollowDemo.ts src/shell/ShellLayout.test.tsx
|
||||
# exit code 0, zero output (no warnings, no errors)
|
||||
```
|
||||
|
||||
**Zero new warnings on all seven files.**
|
||||
|
||||
---
|
||||
|
||||
## Summary of findings
|
||||
|
||||
No blockers found. No non-blocker nitpicks found either - naming, error-handling style, rejection-bucket integration, the in-flight-cache-guard precedent fidelity, and both test suites' behavioral genuineness all hold up under direct reading of the code and its tests.
|
||||
|
||||
**F2 verdict: PASS.**
|
||||
@@ -0,0 +1,153 @@
|
||||
# F3 - Final Verification Wave: Fresh Real-Browser Manual QA
|
||||
|
||||
**Date:** 2026-11-20
|
||||
**Worktree:** `/home/athapa/patriothacks-wt/first-place-overhaul-finalverify`
|
||||
**Commit under test:** `3758d45` (chore(ulw-execute): close todo 12, all implementation TODOs landed)
|
||||
**Scope:** per the plan's F3 definition - a fresh real-browser Playwright pass against the live production URL, cold (new profile, no prior IndexedDB), plus an independent ledger-level forgery re-check and a pptx structural check.
|
||||
|
||||
## Overall Verdict: **PASS** (all 4 scenarios, no BLOCKERs)
|
||||
|
||||
---
|
||||
|
||||
## Scenario 1: Cold home-grid load, zero manual seeding
|
||||
|
||||
**Method:** Playwright with the bundled Chromium (`/home/athapa/.cache/ms-playwright/chromium-1255/chrome-linux64/chrome`, driven via the `playwright` package resolved from the sibling checkout at the SAME commit `3758d45`, since this worktree ships no `node_modules`). A brand-new `browser.newContext()` was used (no storage state passed in, no reused profile from any prior QA run) - this guarantees no prior IndexedDB.
|
||||
|
||||
**Navigation:** `page.goto("https://first-place-overhaul-todo6.vercel.app/", { waitUntil: "networkidle" })` - no `/admin` visit at any point.
|
||||
|
||||
**Result:**
|
||||
- Landed URL: `https://first-place-overhaul-todo6.vercel.app/` (no redirect away from `/`)
|
||||
- Main-frame navigation count: **2** (within the "within 2 navigations" bound - the SPA shell load + the post-mount route resolution; no intervening `/admin` hop)
|
||||
- Home grid rendered all 13 mini-app tiles cold: Fair Share, Water Watch, Tunnel Safety, Housing, Assembly, Find Family, Health Post, Light Clock, Farms, Fair Draw, The Climb, Mentor, Sky
|
||||
- Wallet card showed **BALANCE: 50** (non-"--", non-zero) with populated "Recent activity" (Issued +10, To hollow-commons-fund -10, Issued +50)
|
||||
- 4 console errors were benign 404s (not app-breaking; page rendered correctly regardless - see note in Scenario 2)
|
||||
- Screenshot evidence: `F3-screenshots/01-home-grid-cold-load.png` (full-page capture of the fully populated home screen + wallet card)
|
||||
|
||||
**Verdict: PASS.** The home grid loads fully populated on a cold, brand-new profile, landing on `/` alone, with zero manual seeding step.
|
||||
|
||||
---
|
||||
|
||||
## Scenario 2: Demo wallet issue -> transfer -> issue flow matches expected numbers
|
||||
|
||||
**Method:** Read `src/admin/seedEvents.ts` for the exact fixture constants, then read `src/admin/loadHollowDemo.ts` (the function the auto-seed boot path and `/admin`'s "Load Hollow demo" button both call) to confirm the full real wallet flow, then dumped the actual signed Event Log straight out of the live deploy's IndexedDB (`the-commons-hollow` DB, `eventLog` table) via `page.evaluate` in the same cold session from Scenario 1, to check ground truth independent of the UI.
|
||||
|
||||
**Fixture constants (`seedEvents.ts`):**
|
||||
- `HOLLOW_DEMO_WALLET_WELCOME_GRANT = 50`
|
||||
- `HOLLOW_DEMO_WALLET_COMMONS_CONTRIBUTION = 10`
|
||||
- `HOLLOW_DEMO_COMMONS_FUND_ACCOUNT = "hollow-commons-fund"`
|
||||
|
||||
**Real event log, as replayed on the live deploy (raw dump, wallet-relevant entries only):**
|
||||
```
|
||||
lamportTs 12: wallet.issue { account: <demo identity>, amount: 50 }
|
||||
lamportTs 13: wallet.transfer { from: <demo identity>, to: "hollow-commons-fund", amount: 10 }
|
||||
lamportTs 16: housing.assignment (cycle 0, demo identity gets fairnessDebt: 1)
|
||||
lamportTs 17: wallet.issue { account: <demo identity>, amount: 10 } <- housing-cycle compensation
|
||||
lamportTs 18: wallet.issue { account: "hollow-housing-demo-resident-b", amount: 10 }
|
||||
lamportTs 19: wallet.issue { account: "hollow-housing-demo-resident-c", amount: 10 }
|
||||
```
|
||||
|
||||
This is the real "issue -> transfer -> issue" flow the F3 brief itself anticipates: `recordHousingAssignmentCycle()` (called from `loadHollowDemoFixture()` immediately after the wallet seed) issues a 10-credit housing-cycle participation credit to every assigned resident, including the demo identity - this is legitimate application logic (`src/lib/housing.ts`'s assignment-cycle flow), not a seed-fixture bug.
|
||||
|
||||
**Expected final balance:** 50 (issue) - 10 (transfer out) + 10 (housing-cycle issue) = **50**.
|
||||
|
||||
**Observed:** Wallet card displayed `BALANCE: 50`, and the raw replayed ledger (ground truth, independent of the UI) confirms the same: the demo identity's only wallet-affecting entries are exactly the three above, netting to 50. The `hollow-commons-fund` account received the 10-credit transfer as expected (visible in the "Recent activity" list as `To hollow-commons-fund -10`, `Verified`).
|
||||
|
||||
**Verdict: PASS.** The legitimate demo issue -> transfer -> issue flow applies correctly and lands on the number the real fixture + housing-cycle logic together produce.
|
||||
|
||||
---
|
||||
|
||||
## Scenario 3: Forged transfer (wrong signer) is rejected at the ledger level
|
||||
|
||||
**Method:** A throwaway Vitest file was written directly against the worktree's own `src/lib/ledger.ts` (commit `3758d45`), run via `npx vitest run`, then deleted immediately after. (The worktree ships no `node_modules`; a symlink to the sibling checkout's `node_modules` - same commit, confirmed via `git log -1` on both - was created only for this one run and removed immediately after, so no `node_modules` or other artifact was left behind.)
|
||||
|
||||
**Scenario constructed:**
|
||||
- Account 1 (victim, key1) is issued 100 credits.
|
||||
- Account 2 (forger, key2) is issued 5 credits (so it already exists on the ledger).
|
||||
- A `wallet.transfer` entry is signed by **key2** but names `from: account1` (i.e. the forger signs a transfer claiming to move the victim's own funds) - exactly the todo-2 "author key 2 signing a transfer from account 1" scenario.
|
||||
|
||||
**Real `computeBalances()` output (captured via `console.log` in the test run):**
|
||||
```
|
||||
F3 forged-transfer result: {
|
||||
"account1Balance": 100,
|
||||
"account2Balance": 5,
|
||||
"rejectedCount": 1,
|
||||
"rejectedReason": "unauthorized-signer"
|
||||
}
|
||||
```
|
||||
|
||||
Full test run:
|
||||
```
|
||||
RUN v5.1.0 /home/athapa/patriothacks-wt/first-place-overhaul-finalverify
|
||||
|
||||
stdout | src/lib/__f3-forged-transfer.throwaway.test.ts > F3 forged-transfer ledger sanity check > rejects a wallet.transfer signed by a key that does not own `from`, leaving victim balance unaffected
|
||||
F3 forged-transfer result: {
|
||||
"account1Balance": 100,
|
||||
"account2Balance": 5,
|
||||
"rejectedCount": 1,
|
||||
"rejectedReason": "unauthorized-signer"
|
||||
}
|
||||
|
||||
✓ src/lib/__f3-forged-transfer.throwaway.test.ts > F3 forged-transfer ledger sanity check > rejects a wallet.transfer signed by a key that does not own `from`, leaving victim balance unaffected 38ms
|
||||
|
||||
Test Files 1 passed (1)
|
||||
Tests 1 passed (1)
|
||||
```
|
||||
|
||||
The forged transfer lands in `state.rejected` with reason `"unauthorized-signer"` (the exact check in `ledger.ts`'s `computeBalances`: `toAccountId(entry.authorPubkey) !== from`). The victim's balance stays at 100 (not drained to 40), and the forger's balance stays at 5 (never receives the stolen 60).
|
||||
|
||||
**Cleanup confirmed:** the throwaway test file `src/lib/__f3-forged-transfer.throwaway.test.ts` was deleted after the run (`ls` confirms no `f3`-named file remains in `src/lib/`), and the temporary `node_modules` symlink was removed (confirmed gone; the sibling checkout's real `node_modules` is intact and untouched).
|
||||
|
||||
**Verdict: PASS.** Todo 2's forged-transfer fix holds, re-verified independently via a fresh direct exercise of `computeBalances`, not a re-read of prior evidence.
|
||||
|
||||
---
|
||||
|
||||
## Scenario 4: `docs/promo-slides.pptx` is a valid OOXML file
|
||||
|
||||
**Method:** `unzip -l` (structural listing) and `unzip -t` (CRC/integrity test) against `docs/promo-slides.pptx` in the worktree.
|
||||
|
||||
**`unzip -l` (first portion, full output confirmed `[Content_Types].xml`, `_rels/.rels`, `docProps/app.xml` + `core.xml`, `ppt/presentation.xml`, `ppt/slides/slide1.xml` through `slide10.xml` with matching `.rels`, `ppt/slideLayouts/`, `ppt/slideMasters/`, `ppt/notesSlides/`, `ppt/theme/`, `ppt/media/Slide-N-image-1.png` for all 10 slides):**
|
||||
```
|
||||
Archive: docs/promo-slides.pptx
|
||||
Length Date Time Name
|
||||
--------- ---------- ----- ----
|
||||
0 2026-11-20 20:58 _rels/
|
||||
0 2026-11-20 20:58 docProps/
|
||||
0 2026-11-20 20:58 ppt/
|
||||
6273 2026-11-20 20:58 [Content_Types].xml
|
||||
605 2026-11-20 20:58 _rels/.rels
|
||||
1624 2026-11-20 20:58 docProps/app.xml
|
||||
784 2026-11-20 20:58 docProps/core.xml
|
||||
3547 2026-11-20 20:58 ppt/presentation.xml
|
||||
770 2026-11-20 20:58 ppt/slides/slide1.xml
|
||||
... (slide2.xml .. slide10.xml, each with matching .xml.rels and notesSlideN.xml, all present)
|
||||
```
|
||||
|
||||
**`unzip -t` (integrity test, tail):**
|
||||
```
|
||||
testing: ppt/slideMasters/slideMaster1.xml OK
|
||||
testing: ppt/notesMasters/notesMaster1.xml OK
|
||||
testing: ppt/media/Slide-1-image-1.png OK
|
||||
...
|
||||
testing: ppt/media/Slide-10-image-1.png OK
|
||||
No errors detected in compressed data of docs/promo-slides.pptx.
|
||||
```
|
||||
|
||||
All 10 slides, their relationship files, notes, layouts, masters, theme, content-types manifest, and media (one PNG per slide) are present and pass zip CRC validation - a structurally valid OOXML `.pptx` package.
|
||||
|
||||
**Verdict: PASS.**
|
||||
|
||||
---
|
||||
|
||||
## Evidence index
|
||||
|
||||
| Scenario | Evidence |
|
||||
|---|---|
|
||||
| 1. Cold home-grid load | `F3-screenshots/01-home-grid-cold-load.png`; Playwright navigation-count log (2); raw body text dump showing BALANCE 50 + all 13 tiles |
|
||||
| 2. Demo wallet flow | Raw IndexedDB `eventLog` dump (lamportTs 12/13/17) + `seedEvents.ts`/`loadHollowDemo.ts` source read, both reproduced above |
|
||||
| 3. Forged transfer rejected | Throwaway Vitest run output (reproduced above), test file deleted after the run |
|
||||
| 4. pptx structural validity | `unzip -l` + `unzip -t` output (reproduced above) |
|
||||
|
||||
## Notes / non-blocking observations
|
||||
|
||||
- The live page emitted 4 benign `404` console errors during the cold load (likely a missing favicon/manifest sub-resource or a PWA asset probe); this did not affect the home grid populating correctly or the wallet balance rendering, and is not one of the 4 scenarios in F3's scope - flagged here for visibility only, not a BLOCKER.
|
||||
- No `node_modules` ships in this worktree; Playwright and Vitest were both resolved from the sibling checkout (`/home/athapa/patriothacks`) at the identical commit `3758d45`, confirmed via `git log -1 --oneline` on both before use. No worktree files were modified by this QA pass other than the throwaway test file, which was created and deleted within this same session.
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 114 KiB |
@@ -0,0 +1,197 @@
|
||||
# F4 - Ideal-State Fidelity (Final Verification Wave)
|
||||
|
||||
Plan: `.omo/plans/first-place-overhaul.md`
|
||||
Worktree: `/home/athapa/patriothacks-wt/first-place-overhaul-finalverify`
|
||||
Commit checked: `3758d45` (confirmed via `git log --oneline -1` -> `3758d45 (HEAD -> first-place-overhaul-finalverify, origin/master, master) chore(ulw-execute): close todo 12, all implementation TODOs landed`)
|
||||
Date: 2026-11-20
|
||||
|
||||
Method: every file below was read directly in full (not grepped-and-assumed); the 3 gate commands were executed by me in this worktree, not re-cited from earlier evidence; `ffprobe` was run on the real committed video file via the project's own `ffprobe-static` devDependency (installed fresh in this worktree).
|
||||
|
||||
---
|
||||
|
||||
## Summary table
|
||||
|
||||
| IS row | Verdict | One-line reason |
|
||||
| --- | --- | --- |
|
||||
| IS-1 | **PASS** (1 minor accuracy nit) | Video (89.867s) + 4 drafted answers give a complete, accurate, impressive <2-min picture; one stale test-count figure found in SUBMISSION-ANSWERS.md |
|
||||
| IS-2 | **PASS** | Live URL returns HTTP 200 on a permanent non-expiring domain; README's Live-demo section and the rest of README contain zero stale "may be dead"/"180-second" caveats |
|
||||
| IS-3 | **FAIL** | Three real, concrete contradictions found: DEMO.md still describes the live link as a dying temporary preview, DEMO.md still tells readers they must manually seed via `/admin` (contradicts the new shell-boot auto-seed), and EDGE-CASES.md contradicts itself about whether the QV credit-forgery item is fixed or still "recommended next" |
|
||||
| IS-4 | **PASS** | `ledger.ts`'s signer-binding check is real, unconditional, and runs before the credit-limit check, with a passing regression test proving a forged transfer is rejected and the victim's balance is untouched |
|
||||
| IS-5 | **PASS** | `docs/FINAL-CHECKLIST.md` has 8 genuinely ordered, artifact-citing, actionable items (7 planned + 1 disclosed, justified addition) |
|
||||
|
||||
---
|
||||
|
||||
## Gate commands (run by me, this session, this commit)
|
||||
|
||||
All three run back-to-back in one shell chain in this worktree after a fresh `npm install` (`node_modules` did not pre-exist in this worktree). Full raw log: `.omo/evidence/first-place-overhaul/F4-gate-run.log`.
|
||||
|
||||
### `npm run test`
|
||||
```
|
||||
Test Files 90 passed (90)
|
||||
Tests 796 passed (796)
|
||||
Start at 16:16:19
|
||||
Duration 8.54s
|
||||
```
|
||||
Exit code: **0**. (The `ECONNREFUSED 127.0.0.1:3000` lines above the summary are the documented throw-free best-effort backend-sync no-op firing during tests, not failures - consistent with `src/lib/sync.ts`'s contract.)
|
||||
|
||||
### `npm run build`
|
||||
```
|
||||
> tsc -b && vite build
|
||||
...
|
||||
✓ 292 modules transformed.
|
||||
✓ built in 555ms
|
||||
PWA v2.0.0 ... files generated: dist/sw.js, dist/workbox-2fbc6a65.js
|
||||
```
|
||||
Exit code: **0**.
|
||||
|
||||
### `npx oxlint`
|
||||
Only pre-existing style warnings (`no-unused-vars`, `react(set-state-in-effect)`, `react(only-export-components)`, one `no-unsafe-optional-chaining`) - **zero errors**.
|
||||
Exit code: **0**.
|
||||
|
||||
**All three gates are green on commit `3758d45`.**
|
||||
|
||||
---
|
||||
|
||||
## IS-1: judge watches the video + reads the 4 answers -> complete/accurate/impressive in <2 min
|
||||
|
||||
**Video duration (real `ffprobe`, this worktree, not cited from a doc):**
|
||||
```
|
||||
$ node_modules/ffprobe-static/bin/linux/x64/ffprobe -v error -show_entries format=duration \
|
||||
-of default=noprint_wrappers=1:nokey=1 e2e/openmotion/renders/full-v7.mp4
|
||||
89.867000
|
||||
```
|
||||
Identical to `full-v6.mp4`'s duration (also `89.867000`), confirming README's and `docs/DEMO-VIDEO-SCRIPT.md`'s claim that todo 9 re-rendered `full-v7.mp4` to pick up only the Assembly visual fix (todo 7) with **no pacing/timing change** - the "verify-first, no re-cut needed" call was honest, not a skipped step.
|
||||
|
||||
**Beat structure** (`docs/DEMO-VIDEO-SCRIPT.md`, read in full): six archetype beats (outcome-first open -> problem -> one complete workflow -> named hard-technical-part -> connected-impact wall -> memorable close) each mapped to a real, derivation-shown timestamp range inside the real composition data (`capture-manifest.json` + `assembly-manifest.json` + `buildComposition.mjs`'s own crossfade math), with an honestly-flagged deviation note (beat 3's actual placement at 0:13-0:19 vs. the archetype's illustrative 0:25-1:10 slot, explained rather than hidden). This is a real, usable shot list, not a placeholder.
|
||||
|
||||
**`docs/SUBMISSION-ANSWERS.md`** (read in full): exactly 4 labeled fields matching the real submission-form prompts, each under 200 words (194/199/196/83 by the doc's own count), every factual claim traceable to real repo content (the 4,200 population figure, the wallet.transfer signer-binding fix, "all 15 official problems... 13 mini-apps", the solo-build / AI-tool-use disclosure). Genuinely impressive and accurate in substance.
|
||||
|
||||
**Finding (minor, worth a follow-up):** Field 2 of `docs/SUBMISSION-ANSWERS.md` states *"794 of 796 tests pass; two disclosed limitations... remain"*. The actual `npm run test` run on this exact commit shows **796 of 796 passing** (see gate output above) - todo 13 (de-flaking `ShellLayout.test.tsx`) landed after this answer was drafted and the answer was never refreshed to match. This is a real, checkable inaccuracy a judge who runs the test suite themselves could catch (the project would look *better* than claimed, not worse, but it's still a stale number in a document that explicitly emphasizes "test evidence" as its credibility signal). Recommend a 1-line fix: change "794 of 796" to "796 of 796 (all passing)".
|
||||
|
||||
Net: the video + the 4 answers together give an accurate, complete, impressive <2-minute picture. The one stale number does not change that verdict but is a concrete, named defect worth its own follow-up item.
|
||||
|
||||
---
|
||||
|
||||
## IS-2: judge clicks the live link -> working, seeded, non-dead app within 2 clicks
|
||||
|
||||
```
|
||||
$ curl -sI https://first-place-overhaul-todo6.vercel.app
|
||||
HTTP/2 200
|
||||
server: Vercel
|
||||
x-vercel-cache: HIT
|
||||
age: 2165
|
||||
...
|
||||
```
|
||||
**200 OK**, served by Vercel, not a `.tmp.now`/preview-hash domain - matches README's claim of a permanent `vercel --prod` production deployment.
|
||||
|
||||
README.md (read in full) grep for every stale-caveat phrase the plan named:
|
||||
```
|
||||
$ grep -n "may already be dead\|planned separately\|180-second\|3-minute limit" README.md
|
||||
(no matches, exit 1)
|
||||
```
|
||||
README's "## Live demo" section correctly states the permanent URL, states the deploy is static-frontend-only with the backend explicitly scoped out, and contains none of the retired caveat language anywhere in the whole file.
|
||||
|
||||
(Live-browser confirmation that the deployed app is actually populated/seeded on first load without visiting `/admin` is F3's "Real manual QA" scope, not re-duplicated here - this check was scoped to curl + README text per my brief.)
|
||||
|
||||
**IS-2: PASS.**
|
||||
|
||||
---
|
||||
|
||||
## IS-3: judge skims code/README -> zero contradictions between claimed and actual behavior
|
||||
|
||||
Read in full: README.md, DEMO.md, ECONOMY.md, EDGE-CASES.md, plus `src/shell/ShellLayout.tsx` to check DEMO.md's claims against actual auto-seed code.
|
||||
|
||||
**ECONOMY.md: internally consistent.** The two new "does NOT guarantee" bullets (unauthenticated `wallet.issue` issuer; unvalidated Housing `fairnessDebt` on sync) and the softened lines near the top ("by design, the only INTENDED net issuance is the bounded welcome credit... see the disclosed limitation below: this is not yet code-enforced...") agree with each other - no remaining "settled fact" contradiction. **This part of GAP-10 genuinely holds.**
|
||||
|
||||
**EDGE-CASES.md: contains a real, confirmed internal contradiction.** Two occurrences of the same claim, only one corrected:
|
||||
```
|
||||
$ grep -n "verified already fixed\|Recommended next" EDGE-CASES.md
|
||||
79: ... **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`
|
||||
... confirms weight is derived solely from the signed Event Log's clamped ballot credits ...
|
||||
96: - **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.
|
||||
```
|
||||
Line 79 (in the "Assembly / governance + Fair Draw" domain-matrix section) correctly states the item is verified already fixed. Line 96 (in the separate "## Known limitations & follow-ups" summary section near the bottom of the file) is the **original, uncorrected claim** - it still asserts the forgery "needs" a fix and is "Recommended next," directly contradicting line 79's "verified already fixed" in the same file. Todo 4 was scoped as "a single-sentence correction... Must NOT alter any other row/claim in EDGE-CASES.md," and its own QA scenario only checked `git diff --stat` shows EDGE-CASES.md changed - it did not check for a second occurrence of the same false claim elsewhere in the file. GAP-8 is therefore only half-closed.
|
||||
|
||||
**DEMO.md: contains two real contradictions against current code/README, confirmed by reading both the doc and the actual code it describes:**
|
||||
|
||||
1. **Live-link staleness claim contradicts README.md directly:**
|
||||
```
|
||||
DEMO.md:15: 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).
|
||||
README.md:22: - a permanent `vercel --prod` production deployment, not a temporary preview link - it
|
||||
does not expire.
|
||||
```
|
||||
`git log --oneline -- DEMO.md` shows its last touch was `75180ed docs: correct population-scenario scale framing` (todo 1's work) - it was never updated by todo 6 (the permanent-deploy todo), despite GAP-1 existing specifically to kill this exact "may already be dead" phrasing. A judge who reads DEMO.md (the file README.md itself points new readers to first: *"New here? See DEMO.md..."*) is told the live link is a dying temporary preview, directly contradicting what README.md says one paragraph away in the same repo.
|
||||
|
||||
2. **Manual-seed instructions contradict the new shell-boot auto-seed (todo 5):**
|
||||
```
|
||||
DEMO.md: "Important: load the demo seed before you look at anything, or the app will look empty and
|
||||
broken... A fresh install has zero residents... Fix it in one click: 1. Open http://localhost:5173/admin.
|
||||
2. ... click the Load Hollow demo button..."
|
||||
```
|
||||
`src/shell/ShellLayout.tsx`'s mount effect (confirmed by direct read) auto-seeds the Hollow demo fixture on **any** route rendered under `ShellLayout` - which per `src/AppRoutes.tsx` is every route except the standalone `/admin` - whenever the Event Log is genuinely empty:
|
||||
```ts
|
||||
const existing = await readAll();
|
||||
const alreadySeeded = hasDemoFixtureBeenLoaded(existing);
|
||||
if (existing.length === 0 && !alreadySeeded) {
|
||||
await loadHollowDemoFixture();
|
||||
}
|
||||
```
|
||||
So a fresh `npm run dev` + navigate straight to `/` (never `/admin`) is now auto-seeded, exactly the behavior GAP-2 asked for. DEMO.md's "load the demo seed... or the app will look empty and broken... open /admin" instructions are now **false** for the primary path (visiting `/`) - they describe the pre-todo-5 app, not the shipped one. This is the kind of claimed-vs-actual mismatch IS-3 explicitly names.
|
||||
|
||||
**IS-3: FAIL.** Three concrete, named contradictions survive in the shipped docs; a judge who reads DEMO.md (the file README explicitly funnels new readers to) hits two of them immediately, and a judge who reads all of EDGE-CASES.md hits the third.
|
||||
|
||||
---
|
||||
|
||||
## IS-4: signer-binding check is real and unconditional - no bypass
|
||||
|
||||
Read `src/lib/ledger.ts` in full (not grepped). The check:
|
||||
```ts
|
||||
if (isTransferPayload(entry.payload)) {
|
||||
const { from, to, amount } = entry.payload;
|
||||
if (toAccountId(entry.authorPubkey) !== from) {
|
||||
rejected.push({ entry, payload: entry.payload, reason: "unauthorized-signer" });
|
||||
continue;
|
||||
}
|
||||
const wouldBeBalance = getBalance(from) - amount;
|
||||
const limit = creditLimitFor(from, resolved);
|
||||
if (wouldBeBalance < limit) { ...credit-limit-breach... ; continue; }
|
||||
balances[from] = wouldBeBalance;
|
||||
balances[to] = getBalance(to) + amount;
|
||||
}
|
||||
```
|
||||
- Runs for **every** `wallet.transfer` payload, unconditionally - there is no `demoFixture`-style exemption, no account allowlist, no early-return path that skips it.
|
||||
- It is the **first** gate a transfer passes through (checked before the credit-limit breach check), so a forged `from` can never even reach the balance-mutation branch.
|
||||
- `toAccountId` is imported from the real shared `src/shell/accountId.ts`, the same function every legitimate producer (`src/shell/walletTransfer.ts`, `src/admin/seedEvents.ts`'s `buildDemoWalletPayloads`) uses to derive `from` from the signer's own key in the first place - so a legitimate transfer always satisfies the check by construction, and only a transfer naming someone else's account as `from` is rejected.
|
||||
|
||||
Confirmed in `src/lib/ledger.test.ts` (read directly): a dedicated regression test "rejects a wallet.transfer not signed by the from account's own key (a forged transfer)" signs a transfer draining `victim`'s 100 credits with `attacker`'s key and asserts `balanceOf(state, victim) === 100` (untouched) and `state.rejected[0].reason === "unauthorized-signer"`. This test is part of the `npm run test` 796/796 green run above (not a separate claim - it ran in this exact gate execution).
|
||||
|
||||
**IS-4: PASS.**
|
||||
|
||||
---
|
||||
|
||||
## IS-5: Aaron has an unambiguous, ordered, already-drafted checklist
|
||||
|
||||
Read `docs/FINAL-CHECKLIST.md` in full. 8 numbered items (the plan's own outline said 7; the file transparently discloses and justifies the extra item 5, "share the slide deck," as a real deliverable - `docs/promo-slides.pptx`/`.pdf` - that postdates the original 7-item outline, rather than silently padding or dropping it). Confirmed file existence/sizes cited in the checklist are real:
|
||||
```
|
||||
$ ls -la docs/ e2e/openmotion/renders/
|
||||
docs/promo-slides.pptx 1,275,200 bytes (checklist claims 1,275,200 - exact match)
|
||||
docs/promo-slides.pdf 1,410,868 bytes (checklist claims 1,410,868 - exact match)
|
||||
e2e/openmotion/renders/full-v7.mp4 46,315,716 bytes (checklist says "~46.3 MB" - matches)
|
||||
```
|
||||
All 8 items are concrete and Aaron-actionable (open the real portal and check for a video field; paste the 4 drafted answers; attach/link the real video; point the project-link field at the real permanent URL; optionally attach the real slide deck; confirm sponsor tracks stay unselected; do a real watch-through; click Submit by the real deadline) - none is a vague "finish up" placeholder, and none references an artifact that doesn't actually exist.
|
||||
|
||||
**IS-5: PASS.**
|
||||
|
||||
---
|
||||
|
||||
## Recommendation for the orchestrator
|
||||
|
||||
IS-3 does not hold as delivered. Candidate new follow-up todo (not added by me, per F4's scope):
|
||||
1. Refresh DEMO.md's "Live demo"/"How to run it yourself" section to match README.md's permanent-URL language and the real shell-boot auto-seed behavior (drop the "temporary preview... may already be dead" sentence and the "you must open /admin first or it looks broken" instructions).
|
||||
2. Correct the second, still-uncorrected occurrence of the QV credit-forgery claim in EDGE-CASES.md's "## Known limitations & follow-ups" section (around the current line 96) to match the already-corrected version earlier in the file (around line 79).
|
||||
3. (Minor, bundle with the above if convenient) Update `docs/SUBMISSION-ANSWERS.md` Field 2's "794 of 796 tests pass" to "796 of 796" to match the current green gate.
|
||||
@@ -224,7 +224,7 @@ Your next move: approve, or ask for the high-accuracy review first (it runs auto
|
||||
Commit: Y | test(shell): de-flake ShellLayout auto-seed test isolation
|
||||
Recommended task executor category: deep-low - real test-isolation root-causing, not a mechanical fix
|
||||
|
||||
- [ ] 14. Reconcile remaining doc contradictions found by F4 (IS-3 follow-up)
|
||||
- [x] 14. Reconcile remaining doc contradictions found by F4 (IS-3 follow-up)
|
||||
What to do: F4's ideal-state fidelity check found IS-3 (zero doc contradictions) FAILS with 4 concrete items: (a) DEMO.md still describes the live link as a temporary Vercel preview that "may already be dead" - reconcile with README's now-permanent https://first-place-overhaul-todo6.vercel.app; (b) DEMO.md still instructs readers to manually visit /admin or warns "the app will look empty and broken" otherwise - reconcile with todo 5's shell-boot auto-seed (a cold `/` visit now seeds automatically, no manual step needed); (c) EDGE-CASES.md line ~96 (the "Known limitations & follow-ups" summary) still contains a SECOND, uncorrected occurrence of the stale QV credit-forgery claim as a live gap "Recommended next" - todo 4 only fixed the first occurrence (line 79); apply the same correction (verified already fixed, citing governanceEvents.ts's extractQvBallots/computeQvTally) to this second occurrence too; (d) docs/SUBMISSION-ANSWERS.md's Field 2 cites a stale "794 of 796" test count - re-run `npm run test` fresh and update to the real current count (796/796 as of this writing, but re-verify, don't assume).
|
||||
Closes: discovered-defect-followup (IS-3 fidelity gap found by F4, not a new GAP row)
|
||||
Parallelization: independent | Blocked by: none | Blocks: F4 re-check
|
||||
@@ -245,7 +245,7 @@ Your next move: approve, or ask for the high-accuracy review first (it runs auto
|
||||
- [x] F3. Real manual QA
|
||||
Scope: a fresh real-browser Playwright pass (not a re-read of earlier evidence) hitting the live production URL cold (new profile, no prior IndexedDB) and confirming: home grid loads populated within 2 navigations with zero manual /admin visit; the legitimate demo wallet.transfer still applies; attempting to replay a forged transfer (author key 2 signing a transfer from account 1) via a small throwaway script against the live app's IndexedDB/eventlog module is rejected; the docs/promo-slides.pptx opens cleanly in a check (e.g. via `unzip -l` confirming valid OOXML structure, or an actual office-compatible viewer if available).
|
||||
Recommended task executor category: deep-low
|
||||
- [ ] F4. Ideal-state fidelity
|
||||
- [x] F4. Ideal-state fidelity
|
||||
Scope: check the delivered behavior against every IS-1..IS-5 row 1:1 (not just that its todo ran) - per the Success criteria table below; any IS row that does not actually hold after all todos land becomes a NEW `- [ ] N.` todo appended to this plan, never a note.
|
||||
Recommended task executor category: unspecified-high
|
||||
|
||||
|
||||
@@ -261,3 +261,9 @@
|
||||
{"event":"verify-confirmed","plan":"first-place-overhaul","task":"F3","session_id":"st_01a1facf","verdict":"PASS","confidence":0.95,"ts":"2026-11-20T21:19:43.346Z"}
|
||||
{"event":"task-completed","plan":"first-place-overhaul","task":"F3","checkpoint":"x","artifact":".omo/evidence/first-place-overhaul/F3-real-manual-qa.md","ts":"2026-11-20T21:19:43.346Z"}
|
||||
{"event":"discovered-defect-followup","plan":"first-place-overhaul","task":"F4","description":"F4 found IS-3 FAIL (4 concrete doc contradictions). Appended as new todo 14 rather than re-opening any earlier closed checkpoint. F4 itself stays unchecked until todo 14 lands and IS-3 is re-confirmed.","new_checkbox":"14. Reconcile remaining doc contradictions found by F4 (IS-3 follow-up)","ts":"2026-11-20T21:19:43.346Z"}
|
||||
{"event":"verify-confirmed","plan":"first-place-overhaul","task":"14","verifier_id":"st_01a1fad7","verdict":"confirmed","confidence":0.97,"ts":"2026-11-20T21:26:13.837Z"}
|
||||
{"event":"task-landed","plan":"first-place-overhaul","task":"14","commit_worktree":"8b39ddd","commit_master":"8b39ddd (fast-forward)","ts":"2026-11-20T21:26:13.837Z"}
|
||||
{"event":"task-completed","plan":"first-place-overhaul","task":"14","checkpoint":"x","artifact":".omo/evidence/first-place-overhaul/task-14-first-place-overhaul.txt","ts":"2026-11-20T21:26:13.837Z"}
|
||||
{"event":"task-completed","plan":"first-place-overhaul","task":"F4","checkpoint":"x","note":"re-confirmed after todo 14 closed IS-3's 4 findings; verifier re-traced all 4 fixes against real source files/commands","artifact":".omo/evidence/first-place-overhaul/F4-ideal-state-fidelity.md","ts":"2026-11-20T21:26:13.837Z"}
|
||||
{"event":"all-checkboxes-closed","plan":"first-place-overhaul","count":"18/18 (14 todos + 4 final-verify, all [x])","ts":"2026-11-20T21:26:13.837Z"}
|
||||
{"event":"work-completed","plan":"first-place-overhaul","ts":"2026-11-20T21:26:13.837Z"}
|
||||
Reference in new issue
Block a user