Commit Graph
9 Commits
Author SHA1 Message Date
OmO Orchestrator 804bf4e4a2 fix(admin): stop seeding fake sensor readings into Water Watch
The prior commit seeded two hardcoded sensorId strings ("kiosk-1",
"kiosk-2") reporting through the real corroboration gate - technically
real engine logic, but the sensorId label implies a hardware sensor
network that doesn't exist anywhere in this project. Water Watch has no
actual device integration; its real design is a resident typing a reading
into ReportReadingForm, and corroboration specifically requires a second,
genuinely independent report - something an admin seed step cannot
honestly produce without inventing a second reporter.

Removes the seeded readings entirely. Water Watch now starts at its
honest "No sensor readings yet" empty state, same as it would with zero
fabricated starting data. The real corroboration mechanism is meant to be
demonstrated by actually using the form, not by injected fixture data
standing in for equipment that was never built.

Tunnel Safety's hazard report, Farms' planting forecast, Assembly's votes,
and Mentor's skill review are unaffected - each represents an action a
real person could take through the app's own real form, with no claim
about external hardware, consistent with this fix's standard.
2026-11-20 00:25:43 -05:00
OmO Orchestrator 1ec340da7f feat(admin): drive real outcomes for the still-empty mini-apps in the demo seed
"Load Hollow demo" already populated Fair Share, Housing, Mentor's at-risk
list, the wallet, and Assembly's roster - but Water Watch, Tunnel Safety,
Farms, Assembly's votes, and Mentor's review history stayed completely
empty, so a cold visitor saw several apps with nothing to look at.

Extends the same one-click load to drive real outcomes through each app's
actual engine - never a fabricated or hand-set state:

- Water Watch: two independent sensors (kiosk-1/kiosk-2) each report a
  baseline reading, then both report the same contaminated value - run
  through the real createCorroborationGate()/reportWaterReading() the live
  resident form uses. The exact sequence was verified by executing the
  real gate directly before writing this: readings 1-2 establish each
  sensor's baseline, reading 3 flags "corroborating", reading 4 (the
  second independent sensor agreeing) genuinely reaches "alert" - the
  gate's own state machine decides this, not a hardcoded status.
- Tunnel Safety: one real hazard report (reportHazard()) closes a segment
  so the map shows a genuine closure and rerouted path.
- Farms: a real, provably-feasible temperature/plot/crop input reaches an
  "optimal" solve via solveFarmsPlantingOptimizer() + settleFarmsForecast(),
  which also feeds Fair Share's food resource through the same real edge a
  live grower's forecast would use.
- Assembly: the two founding residents cast real votes (castVote()) on the
  seeded proposal, so the tally is non-zero instead of "No vote cast yet".
- Mentor: one real skill review (postSkillReview()) on well-repair (already
  seeded as at-risk) gives it a genuine next-due-date instead of no history.

AdminSeedPanel.test.tsx's hardcoded expected Event Log count is updated to
account for the 10 new real entries (4 water readings + 2 water settlement
+ 1 hazard report + 2 farms settlement + 1 mentor review), with the same
itemized-comment style the existing formula already used.

Verified: the exact corroboration sequence was run against the real gate
in isolation to confirm it reaches "alert" before relying on it here;
npm run build passes; all 668 tests pass (including the exact
AdminSeedPanel integration test that clicks the button and inspects the
resulting Event Log); lint is clean with zero new warnings.
2026-11-20 00:02:06 -05:00
OmO Orchestrator ba3443ec4d feat(housing,mentor): add assignment-cycle trigger + wallet wiring, fix dependents double-count, seed both 2026-11-18 03:17:37 -05:00
OmO Orchestrator c7a7332d15 feat(wallet): wire Fair Draw resolution to real wallet credit; seed a starting balance 2026-11-18 02:58:05 -05:00
OmO Orchestrator c458487b11 feat(assembly): add create-proposal/add-resident UI and seed a starting roster+proposal 2026-11-18 02:37:29 -05:00
OmO Orchestrator b5db186f09 feat(upload): add a real upload-a-mini-app UI and bundle a sample package in the demo fixture 2026-11-18 02:19:16 -05:00
OmO Orchestrator 63b4456080 chore(deploy): deploy PWA shell and backend to production 2026-11-17 22:34:58 -05:00
OmO Orchestrator 9dcd3a6072 feat(admin): add bundled demo-seed fixture with one-click load 2026-11-17 17:10:01 -05:00
OmO Orchestrator c4aaf55baf feat(admin): add manual-entry seed panel 2026-11-17 17:02:33 -05:00