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

 ✓ src/lib/fairshare.test.ts > computeFairshareAllocation (happy path - 4 resources, 10 agents) > allocates exactly the seeded supply across all 4 resources and stays envy-free 187ms
 ✓ src/lib/fairshare.test.ts > computeFairshareAllocation (happy path - 4 resources, 10 agents) > reflects 3 real allocation-history points in the trend for a resource 11ms
 ✓ src/lib/fairshare.test.ts > computeFairshareAllocation (failure path - zero-seeded resource) > returns a valid all-zero allocation for a resource seeded at zero, no crash 36ms
 ✓ src/lib/fairshare.test.ts > computeFairshareAllocation (failure path - zero-seeded resource) > reports 'no trend yet' for the zero-seeded resource's history 5ms
 ✓ src/lib/fairshare.test.ts > computeFairshareAllocation (failure path - zero-seeded resource) > returns insufficientData when no agent has reported any need at all 5ms
 ✓ src/lib/fairshare.test.ts > postFairshareFloor (survival floor ahead of the CEEI solve) > guarantees an agent at least its floor while conserving total supply 25ms
 ✓ src/lib/fairshare.test.ts > postFairshareFloor (survival floor ahead of the CEEI solve) > clamps a floor above supply/agents.length instead of exceeding supply 14ms
 ✓ src/lib/fairshare.test.ts > postFairshareFloor (survival floor ahead of the CEEI solve) > rejects a NaN/negative/Infinity floor before ever appending it 3ms
 ✓ src/lib/fairshare.test.ts > postFairshareFloor (survival floor ahead of the CEEI solve) > applies the floor correctly on a cold replay of the event log (not only a live session) 23ms
 ✓ src/lib/fairshare.test.ts > computeAllocationTrend > reports 'no trend yet' at exactly 1 history entry 5ms
 ✓ src/lib/fairshare.test.ts > computeAllocationTrend > computes a correct slope at 5 history entries 16ms

 Test Files  1 passed (1)
      Tests  11 passed (11)
   Start at  14:27:40
   Duration  484ms (tests 83%, transform 6%, setup 5%, import 5%, worker 1%)


STDERR:

EXIT CODE: 0
