spaxel/mothership/internal/loadshed
jedarden 89898731c5 feat: extract evaluate() from EndIteration for testable load shedding state machine
The load shedding system was already fully implemented with 4 levels,
rolling average timing, and all integration points wired. This change
extracts the state machine evaluation into a separate evaluate() method
so tests can inject controlled timing values without depending on wall
clock time, and fixes the recovery counter reset test accordingly.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-04-09 05:59:54 -04:00
..
loadshed.go feat: extract evaluate() from EndIteration for testable load shedding state machine 2026-04-09 05:59:54 -04:00
loadshed_test.go feat: extract evaluate() from EndIteration for testable load shedding state machine 2026-04-09 05:59:54 -04:00