
 RUN  v5.1.0 /home/athapa/patriothacks-wt/fix-miniapp-gaps-and-demo-video-wave1

 ✓ src/lib/theclimbCongestion.test.ts > simulateCongestion > replays a real computed schedule into a queue-buildup timeline with no fabricated numbers 4ms
 ✓ src/lib/theclimbCongestion.test.ts > simulateCongestion > fails closed instead of fabricating a congestion number when the schedule has a null flow value 1ms
 ✓ src/lib/theclimbCongestion.test.ts > simulateCongestion > throws when a shaft flow references a shaft absent from the schedule input 0ms
 ✓ src/lib/theclimb.test.ts > computeWaveSchedule - happy path against a reference calc > delivers exactly the real capacity-bound amount at the cost-optimal total (matches hand-computed reference) 8ms
 ✓ src/lib/theclimb.test.ts > computeWaveSchedule - happy path against a reference calc > is flow-conserving: shaft departures, surface arrivals, and demand deliveries all balance 1ms
 ✓ src/lib/theclimb.test.ts > computeWaveSchedule - happy path against a reference calc > awards the whole contested slot to exactly one wave, never an arbitrary/fabricated fractional split 1ms
 ✓ src/lib/theclimb.test.ts > computeWaveSchedule - contested wave-slot tie-break contract > calls Fair Draw's exposed tie-break function to resolve the contested slot, never an ad hoc ordering of its own 1ms
 ✓ src/lib/theclimb.test.ts > computeWaveSchedule - contested wave-slot tie-break contract > fails closed instead of silently picking an arbitrary wave when the Fair Draw integration errors 1ms
 ✓ src/lib/theclimb.test.ts > computeWaveSchedule - contested wave-slot tie-break contract > rejects when the injected tie-break resolver returns an out-of-range index instead of silently clamping it 0ms
 ✓ src/lib/theclimb.test.ts > computeWaveSchedule - failure/edge cases > never fabricates delivery beyond real capacity: insufficient total surface capacity leaves outstanding demand 1ms
 ✓ src/lib/theclimb.test.ts > computeWaveSchedule - failure/edge cases > rejects a non-positive shaft capacity instead of silently clamping it 0ms
 ✓ src/lib/theclimb.test.ts > computeWaveSchedule - failure/edge cases > rejects a demand ready period outside the modeled horizon 0ms
 ✓ src/lib/theclimb.test.ts > computeWaveSchedule - capacity invariant (regression for tie-break path reconstruction) > never reports a shaft-period edge's flow above its own declared capacity, across 50 repeated solves with varied tie-break outcomes 22ms

 Test Files  2 passed (2)
      Tests  13 passed (13)
   Start at  14:35:15
   Duration  195ms (transform 44%, tests 23%, setup 22%, import 8%, worker 4%)

