Skip to main content

Module policy

Module policy 

Source
Expand description

The Supervisor’s rules, with no I/O: which turns are judged, the limits, and what each verdict leads to. Spec §3.2 and §3.4.

Structs§

TurnFacts
What the watcher knows about a turn that just ended.

Enums§

Action
What the Supervisor does with the judge’s answer.
PreJudge
What happens before any model is asked.

Functions§

apply
Record action in state (status, counters, history).
apply_pause
Record a stop that needed no judge (PreJudge::Pause).
apply_wait
Record that background work is running.
decide
The action for a verdict, after the limits (spec §3.4). None is no verdict.
limit_reached
Why another continuation would pass a limit, or None.
limit_reached_in
limit_reached under explicit limits (the settings, read once).
on_turn_end
Take a turn that ended into state, and say whether it is judged. Updates the run counters: a turn the user started resets the run (spec §3.4); a turn the Supervisor started counts toward no-progress.