286 Commits
Author SHA1 Message Date
OmO Orchestrator c74b0d1076 chore(ulw-execute): close todo 13, record gate-review evidence and ledger 2026-11-20 15:54:32 -05:00
OmO Orchestrator e4ca8abf51 test(shell): de-flake ShellLayout auto-seed test isolation 2026-11-20 15:54:15 -05:00
OmO Orchestrator 8a8ead4574 chore(ulw-execute): close todo 6, record gate-review evidence and ledger 2026-11-20 15:53:04 -05:00
OmO Orchestrator 6f52f8b4ae docs(readme): remove the second stale 'deploy still outstanding' reference 2026-11-20 15:52:46 -05:00
OmO Orchestrator a5f14643ef test(evidence): record plan todo 6 deploy verification (curl, build log, browser screenshots) 2026-11-20 15:52:46 -05:00
OmO Orchestrator afb16a5357 build(vercel): deploy the static frontend only, exclude api/; docs(readme): point Live-demo at the permanent production URL
- Add .vercelignore excluding api/ from this Vercel deployment (api/'s
  sqlite-backed stores write to a read-only serverless filesystem, and its
  top-level *.integration.test.ts files import vitest and would break the
  zero-config function convention) - the committed api/ directory itself is
  untouched, only excluded from this specific static deploy.
- Override vercel.json's buildCommand to type-check only the app/node
  tsconfig projects (tsc -b tsconfig.app.json tsconfig.node.json), since
  tsconfig.api.json's "include": ["api"] has no inputs once api/ is
  excluded from the uploaded deployment files - package.json's own "build"
  script is untouched for local full-repo builds.
- Deploy to a new Vercel project (first-place-overhaul-todo6, account
  yoyoyonono / team aaron-thapas-projects) via npx vercel --prod --yes.
  Stable canonical production URL:
  https://first-place-overhaul-todo6.vercel.app
- Update README's "## Live demo" section to point at the permanent URL,
  remove the stale "may already be dead"/"planned separately" temp-preview
  language, and note the live deploy is the static frontend only - the
  self-hosted sync/blob/admin backend (api/) remains a separate,
  self-hosted-only component, not part of this public URL.
2026-11-20 15:52:45 -05:00
OmO Orchestrator b3d458033e chore(ulw-execute): close todo 11, append todo 13 follow-up, record ledger 2026-11-20 15:43:52 -05:00
OmO Orchestrator e24a722de2 docs: draft the 4 submission-form answers (docs/SUBMISSION-ANSWERS.md) 2026-11-20 15:43:28 -05:00
OmO Orchestrator ad792e1fde feat(promo-video): re-render to pick up the Assembly decoration fix, verified pacing already matches script 2026-11-20 15:38:38 -05:00
OmO Orchestrator 6e54fcffcc chore(ulw-execute): close todo 5, record gate-review evidence and ledger 2026-11-20 15:31:54 -05:00
OmO Orchestrator 21319b38a4 feat(shell): auto-seed the Hollow demo fixture on a genuinely empty Event Log 2026-11-20 15:31:35 -05:00
OmO Orchestrator d34a56d3f2 chore(ulw-execute): close todo 7, record gate-review evidence and ledger 2026-11-20 15:18:14 -05:00
OmO Orchestrator 6065a640c5 feat(promo-video): give the Assembly two-device clip the same decorative treatment as every other beat 2026-11-20 15:14:31 -05:00
OmO Orchestrator ae2f920e0b chore(ulw-execute): close todos 2-4, record gate-review evidence and ledger 2026-11-20 15:06:09 -05:00
OmO Orchestrator 32f27b14d9 test(evidence): record plan todo 2 verification for the ledger signer-binding fix 2026-11-20 15:05:45 -05:00
OmO Orchestrator 6d5740c56d fix(ledger): reject wallet.transfer not signed by the from-account's own key 2026-11-20 15:05:45 -05:00
OmO Orchestrator a3db0d9c85 docs(evidence): record task-4 EDGE-CASES.md QV follow-up correction evidence 2026-11-20 15:01:20 -05:00
OmO Orchestrator 7f37dab82c docs(edge-cases): correct the stale QV credit-forgery claim - verified already fixed 2026-11-20 15:01:20 -05:00
OmO Orchestrator 7db42fed84 docs(evidence): record task-3 ECONOMY.md disclosure evidence 2026-11-20 14:54:20 -05:00
OmO Orchestrator 208cf76c95 docs(economy): disclose wallet.issue and Housing fairnessDebt as known limitations; reconcile the contradicted issuance-invariant claim 2026-11-20 14:53:42 -05:00
OmO Orchestrator 5c2c97dcb0 chore(ulw-execute): close todo 1+8, record gate-review evidence and ledger 2026-11-20 14:52:00 -05:00
OmO Orchestrator 57371a5a92 docs(evidence): record todo-8 demo-video-script evidence 2026-11-20 14:51:39 -05:00
OmO Orchestrator e4d722fdf8 docs: add the demo-video script (docs/DEMO-VIDEO-SCRIPT.md) 2026-11-20 14:51:39 -05:00
OmO Orchestratorandsisyphus-dev-ai 509764f31b docs: add task-1 evidence log for first-place-overhaul plan
Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>
2026-11-20 14:46:44 -05:00
OmO Orchestratorandsisyphus-dev-ai 55d14508d9 docs: add first-place-overhaul work plan and draft
Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>
2026-11-20 14:45:42 -05:00
OmO Orchestratorandsisyphus-dev-ai 75bfc82d19 feat(promo-video): redesign the ledger-panel composition
Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>
2026-11-20 14:45:33 -05:00
OmO Orchestratorandsisyphus-dev-ai 75180ed320 docs: correct population-scenario scale framing (one shelter, not the whole Hollow)
Co-authored-by: sisyphus-dev-ai <sisyphus-dev-ai@users.noreply.github.com>
2026-11-20 14:43:34 -05:00
OmO Orchestrator a943e87de8 docs: correct stale 'by entry id' resolve comments to the stable id
The referral and hazard resolve reconstructions now join on the intrinsic referralId/reportId, not the local Event Log id; the doc comments said otherwise.
2026-11-20 05:54:33 -05:00
OmO Orchestrator 1045b2b3f3 fix(tunnelsafety): resolve hazards by a stable cross-device id, not the local Dexie id
Identical bug to the healthpost referral one: tunnelsafety.hazard.resolve joined on StoredEventLogEntry.id (a per-device Dexie autoincrement), and hazards sync cross-device - so a hazard resolved on one device showed 'active' forever on every other device and stayed falsely corroborated, and routing kept avoiding a cleared segment. Each hazard report now carries an intrinsic reportId (UUID) in its signed payload; resolveHazard + computeHazardReports join on it. Verified by a cross-device test (resolve matches despite differing entry ids). The convergence review confirmed this was the last such join bug - theclimb/fairdraw/governance/fairshare/assembly all already use intrinsic ids.
2026-11-20 05:52:51 -05:00
OmO Orchestrator d630a0c9a7 docs(economy): disclose the unsigned-subject + synced-referral residual risks
Honest-limits section now also discloses: (1) a signed mentor.skillReview / Assembly delegation binds its author but not its subject (learner/delegate id is asserted, not co-signed) - a forgeable class like Sybil, but it cannot forge authorship or inflate QV weight; (2) a healthpost.referral syncs the triage RESULT to the shared relay as the resident's consent-bearing handoff, while all passive/personal health inputs stay strictly local.
2026-11-20 05:44:39 -05:00
OmO Orchestrator d126caf0fc test: stop the best-effort relay sync from flaking the suite exit code
trySyncWithBackend fires a best-effort fetch('/api/sync') on many component mounts; in happy-dom it resolves to the dead localhost:3000 origin and the undici socket error could race teardown and flip the run's exit code to 1 even though all 791 tests passed. The global test setup now intercepts only that relay endpoint and rejects instantly with no socket, so best-effort sync still exercises its caught-error path. Verified: WalletCard's sync mount shows 0 ECONNREFUSED and 9/9 full-suite runs exit 0.
2026-11-20 05:42:33 -05:00
OmO Orchestrator 1cbc223ef9 fix(assembly): gate enactment on a real pass at replay + honest live-tally label
decisionFor derived `enacted` from mere membership in the enacted set, so a forged or peer-synced governance.proposal.enacted for a proposal that did NOT pass would render as Enacted. Now enacted requires the proposal to actually pass (isProposalPassed over the signed ballots, the ground truth), so a forged enactment of a failing proposal is ignored. Also relabeled the badge's tally 'Current tally' (it is the live replay-derived tally, not a frozen snapshot) to stop implying the numbers are recorded. New test: a forged enactment of a failing proposal shows no Enacted badge.
2026-11-20 05:42:33 -05:00
OmO Orchestrator 127f646412 fix(healthpost): resolve referrals by a stable cross-device id, not the local Dexie id
healthpost.referral.resolve joined on StoredEventLogEntry.id (a device-local Dexie autoincrement). Once referrals sync cross-device, the same referral has a different local id on each device, so a resolution never matched - a handled case stayed 'open' on every other device, breaking the cross-device clinician loop the referral sync was meant to enable. Each referral now carries an intrinsic UUID (ReferralPayload.referralId) in its signed payload, and the resolve + extractReferrals join on that stable id. Verified by a test asserting a resolve matches its referral despite differing entry ids.
2026-11-20 05:42:33 -05:00
OmO Orchestrator b9deb73592 feat(seed): demo a brewing waterborne outbreak so the Health->Fair Share interop shows cold
The Health Post -> Fair Share water-floor interop needs >=3 DISTINCT diarrhea reporters (anti-inflation), so it was not demonstrable on a single fresh device. The hollow-demo-v3 seed now appends 5 foreign-signed diarrhea symptom reports from 3 distinct resident identities, so loading the demo shows an elevated dispatch priority + the one-click Raise Fair Share water floor action with no manual multi-device setup. Verified cold on the real surface (banner present, diarrhea count 5, dispatch elevated). Fixture bumped v2->v3.
2026-11-20 05:17:15 -05:00
OmO Orchestrator 2f6a6ba907 feat(assembly): enact a passed proposal into a signed, binding community decision
Governance had no teeth: a passed QV tally produced no recorded consequence. A proposal with Yes weight strictly greater than No can now be Enacted by any enrolled resident, appending a signed governance.proposal.enacted event; the proposal then shows an Enacted badge with the frozen tally and honest copy (the Assembly records a binding decision, it cannot force anyone - there is no server underground). Derived purely by replay (extractEnactedProposalIds), idempotent, and allowlisted so the decision syncs cross-device like ballots. Verified on the real surface (self-enroll -> Enact -> badge replaces button). 47 governance/assembly tests + the sync allowlist test; full gate 790 tests + build green.
2026-11-20 05:06:45 -05:00
OmO Orchestrator fbb0882ac4 docs: refresh DEMO guide (new video + flows) + correct the double-spend disclosure
DEMO.md now points at the regenerated full-feature-demo video (was the stale task-60 clip), lists the new flows (wallet send, Fair Share need, Health->Fair Share interop, Assembly live QV tally, Fair Draw integrity badge, Housing debt), and documents the Bun runner. ECONOMY.md's offline-double-spend disclosure now credits the always-on computeBalances credit-limit rejection at replay (the real protection) instead of mergeReplicas, which is not wired into the live sync pull.
2026-11-20 04:51:57 -05:00
OmO Orchestrator d62d346151 fix(healthpost): water-floor interop needs distinct reporters + honest device-local tally label
The waterborne->water-floor interop fired on a single resident tapping Report diarrhea 5x (count>=5), letting one person raise everyone's water ration - contradicting Tunnel Safety's distinct-reporter corroboration standard. Added countDistinctSymptomReporters (distinct authorPubkeys) and gated the action on >=3 DISTINCT residents. Relabeled the tally 'Symptom tally (this device)' since symptom reports stay local (not synced). Follow-up: seed a demo outbreak (foreign-signed diarrhea reports) so it is cold-demoable single-device.
2026-11-20 04:51:57 -05:00
OmO Orchestrator b57a041922 fix(privacy): sync the deliberate healthpost.referral handoff + mentor/climb-tiebreak/fairdraw
The default-deny push allowlist was too coarse: it excluded entire families whose own code comments promise cross-device delivery, silently breaking real features. Most critically healthpost.referral(.resolve) - a resident's consent-bearing handoff of their own case to a clinician - never reached a second device, so the 'reaches real care' half of Health Post was dead cross-device (the passive healthpost.symptomReport stays local). Also allowlisted mentor.skillReview/mentor.match (community apprentice-mentor matching), theclimb.tiebreak (the audit trail must travel with its plan), and fairdraw (public-by-design verifiable lottery).
2026-11-20 04:51:57 -05:00
OmO Orchestrator ac7df631cf chore(video): regenerate promo video reflecting the hardened app + repair the demo script
Repaired the drifted demo-video beats (Assembly: the removed direct-vote control -> real QV ballot after self-enrolling, both scenes; Health Post: answer the new WHO-IMCI fever question so Classify enables; Fair Draw: read the new draw-integrity badge) and regenerated the full-feature demo. The video now shows the real fixed behavior: Assembly live QV tally (seeded Yes 6.00 + a live self-enrolled Yes 3.00), the single collapsed vote widget + global delegation, Health 'Needs treatment' -> real referral, Fair Draw 'Draw integrity: valid', honest actigraphy, and the Farms->Fair Share + Water->Fair Share interop edges. RUNNER NOTE: run with 'bun e2e/demoVideoFull.e2e.mjs' - Node 24's native TS loader cannot resolve the codebase's extensionless relative imports; Bun does.
2026-11-20 04:28:35 -05:00
OmO Orchestrator 38e4f0972d docs: ultrawork QA2 evidence (seed v2, all new features real-browser verified)
Assembly live tally 6.00, Tunnel Confirmed by 2, wallet Send form, Health->Fair Share water-floor interop end-to-end, food 430, need form.
2026-11-20 04:17:06 -05:00
OmO Orchestrator 6240ca40ce docs(features): add ultrawork hardening pass + fix the no-hardware honesty line
Documents the economy spend path, the root-cause fakeness fixes, Assembly QV integrity, the new features (Fair Share need form, Farms power budget, Mentor transitive, Fair Draw badge, Housing debt), the Health->Fair Share water-floor interop, and the privacy allowlist, each with QA evidence paths. Corrects the 'no hardware / never a simulated sensor' line to account for Light Clock's honest device actigraphy.
2026-11-20 04:12:45 -05:00
OmO Orchestrator b7a2c5bb6e fix(seed): demo the fixed Assembly/Housing/Tunnel/Mentor behavior via the real signed-log path
The demo seed predated the recent fixes: Assembly tally showed 0.00 (dead castVote path removed), Housing never rotated fairness-debt (identity-matrix prefs), Tunnel never corroborated (one signer), Mentor had no reachable match. Now: founding residents are enrolled with putResidentCredit + cast real signed QV ballots (yes 6.00); the demo identity and a neighbour contest one single-capacity slot so debt accrues then flips; a genuinely foreign-signed corroborating hazard (appendEntry, re-verified) makes seg-market-bypass Confirmed by 2; the local identity is a still-learning apprentice and a foreign-signed mentor Good review yields one real match. Fixture bumped to hollow-demo-v2.
2026-11-20 04:06:07 -05:00
OmO Orchestrator dba9afea8d fix(build): remove dead code failing tsc -b noUnusedLocals
npm run build (tsc -b) enforces noUnusedLocals, which tsc --noEmit did not surface, so two leftovers from the wave-1 lanes were silently failing the production build: findfamily.ts hashNameToPoint (orphaned by the AEAD-seal rewrite) and an unused test import. Removed both; npm run build is green again.
2026-11-20 04:00:18 -05:00
OmO Orchestrator e496fc27ac feat(interop): Health Post diarrhea cluster -> raise Fair Share water floor
First cross-mini-app interop for breadth: when the community symptom tally shows a diarrhea cluster (dispatch priority elevated/urgent, a waterborne-outbreak signal), the clinician gets a one-click action to raise the Fair Share water floor (postFairshareFloor water) so every resident is guaranteed enough water for oral rehydration. Real clinician decision, shared key = the water resource, no fabricated data; links Health Post + Fair Share + the water theme.
2026-11-20 03:56:37 -05:00
OmO Orchestrator 27e29caed6 fix(privacy): default-deny relay push allowlist + self-hostable WebRTC default
runSync pushed every local event type to the pubkey-stamped relay, letting a puller correlate healthpost/sky.morale/wallet under one identity. Push is now a default-deny allowlist (health/mood/lightclock/mentor/fairdraw/testimony stay strictly local; only merge-needing types sync). Default WebRTC signaling is now self-hostable (VITE_SIGNALING_URL -> ws://localhost:4444), public host opt-in only; DEPLOY.md documents self-hosting.
2026-11-20 03:49:44 -05:00
OmO Orchestrator 7551764d3d fix(mentor): rank skill criticality on transitive dependents
Criticality used raw direct in-degree, so a deep/leaf prerequisite the whole settlement transitively rests on could slip under the at-risk threshold. Added computeTransitiveDependentsCounts (DAG closure, GAP-15 edge normalization + cycle guard); kept the direct count for mentorMatching. A deep leaf prerequisite now flags at-risk.
2026-11-20 03:49:44 -05:00
OmO Orchestrator 480232838f feat(fairdraw): surface the validateReveal integrity verdict in the UI
RevealDraw claimed a re-roll after a published commit is auditable+rejected, but validateReveal had zero production callers. The reveal flow now replays the signed log and renders a Draw integrity: valid/rejected badge; a duplicate or pre-commit reveal flips it to rejected.
2026-11-20 03:49:44 -05:00
OmO Orchestrator d35d4a3772 docs: ultrawork batch-1 real-browser QA evidence
Screenshots confirming Fair Share food 430 (additive fix), Health Post fever UI, Farms power budget, Tunnel corroboration badge, Light Clock actigraphy.
2026-11-20 03:41:53 -05:00
OmO Orchestrator 8f1d54ac27 fix(assembly): weight QV from the signed ballot's credits + collapse the two vote widgets
computeQvTally weighed votes by the unsigned WebRTC-synced CRDT residentCredits, so a peer could set credits to 1e6 and dominate any tally. extractQvBallots now carries the signed tamper-evident credits and the tally weighs sqrt(min(ballot.credits, DEFAULT_QV_CREDITS)); residentCredits is used only as the enrolled-membership set. Also collapsed the inert direct-vote widget into the one signed QV ballot and moved delegation to a single global card with a Revoke button.
2026-11-20 03:41:52 -05:00
OmO Orchestrator 190f2d96f1 fix(theclimb): persist the return plan to the signed log + anchor the tie-break
The Climb held its plan in useState (wiped on reload, never collective) and its Fair Draw tie-break used Math.random with commit+reveal+verify in one call (self-theater, non-reproducible). The plan is now theclimb.plan.propose/commit signed events replayed on mount (survives reload, identical on a second identity); the tie-break seed is derived deterministically from signed log content, the commit is appended before the reveal, and verifyClimbTieBreakAudit re-checks it from the log. Plus inline input validation.
2026-11-20 03:41:30 -05:00