A febrile child with no other sign was shown a green Home care badge (the engine omitted fever), a false reassurance contradicting the fever symptom tally. Added the WHO-IMCI fever assessment and a neutral Not fully assessed state so a febrile child is never home_care. Added a signed healthpost.referral.resolve event + Mark handled so the clinician queue can close cases.
respondToSearch returned every entry's cleartext id (name-bearing) to any query, breaking the PSI privacy premise. Each id is now sealed with AES-256-GCM under HKDF(H(name)); only a genuine matcher can derive the key and decrypt the single matching id; the response is shuffled + padded to hide roster size. Seed ids are opaque handles.
The Sensor-corroborated badge fed a binary 0/250 lux proxy in as accelerometer data and RMS-thresholded it, so any movement corroborated and a handheld phone can't sense a flooded corridor anyway. Removed it; a hazard segment is now Confirmed by N residents only when >=2 distinct signer pubkeys report the same unresolved segment, replay-derived from the signed log.
Farms->Fair Share credited food via seed.resource.food (latest-wins), so the demo's 20kg forecast OVERWROTE the 410 baseline (food 410->20, the farm starved the settlement). Farms now appends a signed fairshare.contribution that Fair Share SUMS onto the baseline per-contributor-latest, so growing food only raises the pool and multiple growers sum. Also wires the advertised-but-inert grow-light power budget into FarmsScreen + shows energy vs budget in ForecastPanel.
trySyncWithBackend's pulled-entry dedup is a non-atomic read-modify-write (read
the existing (authorPubkey,signature) set, then appendEntry in a loop). Several
mini-app mounts plus the shell poll can fire it at once; two overlapping runs
both saw a remote entry as absent and ingested it twice, duplicating it locally
and corrupting the replayed ledger (a real-browser pull of 26 relay events
produced 156 = 6x local rows). Chain all calls on one promise so only one runs
at a time, making the dedup atomic. Adds a 4-concurrent-sync regression test.
An exhaustive adversarial stress-test pass (6 parallel domain adversaries +
in-kernel engine probing + a real-browser adversary) tried to BREAK every
feature. 24 genuine breaks were found and fixed at root cause, each with a
regression test; the dominant class (15/24) was a NaN/Infinity slipping past
a typeof/isNaN-only guard at a trust boundary and poisoning a derived value.
- Water Watch: blank value stored as fabricated 0; a single NaN reading
permanently killed a channel baseline (and survived replay). Reject
non-finite at the form, the gate, and the replay matcher.
- Fair Share: a floor consuming the pool emitted an Infinity clearing price;
Infinity need/supply/trend -> NaN. Finiteness guards + residual-only CEEI
sub-market.
- Housing: NaN/Infinity score/capacity signed a NaN fairness-debt that
poisoned all future cycles. Validate finiteness at the input boundary.
- Tunnel Safety: A* returned suboptimal routes when coord scale != weight
scale (inadmissible heuristic). Scale the heuristic to be provably
consistent; verified vs brute-force Dijkstra.
- Assembly QV: duplicate P2P-synced credit rows double-counted a resident.
Collapse per (proposal,resident) before tallying.
- Fair Draw: empty participants committed a draw it could never resolve
(stuck). Refuse empty draws.
- Light Clock: negative/huge/NaN lux -> NaN circadian output; non-finite
hours -> unbounded RK4 loop (hang/OOM). Finite light-drive + step bound.
- Farms: NaN baseTemp/crop fields -> NaN GDD/yield (NaN-leak into Fair
Share's signed ledger); overflow temps -> Infinity GDD. Finiteness +
overflow-safe mean.
- The Climb: Infinity capacities -> self-contradictory schedule; non-integer
readyPeriod -> silent 0-delivered. Finiteness + integer guards.
- Upload/manifest: an extra unknown field leaked into the stored manifest and
onto the share wire; duplicate permissions and 200k names accepted. Reject
unknown keys and return a reconstructed manifest; dedupe + length caps.
Combined gate green: 689 tests pass (+21 regression over 668 baseline),
tsc build exit 0, oxlint exit 0. No test skipped or weakened.
Adds optional energyBudgetKwh to SolveFarmsPlantingInput and required kWhPerM2 to CropMaturityWindow. The solve loop adds a single energy<=budget constraint and an energy coefficient per variable when a budget is set, guarded by the existing assertFiniteNumber. totalEnergyKwh is summed in the existing schedule-building varMeta loop. PlantingInputForm.tsx and its two test files are updated only as a direct consequence of kWhPerM2 becoming a required field (new form input + existing crop literals/test flows updated); objective function, GDD eligibility filter, and downstream consumers are untouched.