pub struct PlanReplayPolicy {
pub min_runs: u32,
pub require_no_worse: bool,
pub max_out_of_support: f64,
}Expand description
The pre-apply gate on a plan_revision: when the substrate can rehearse
the candidate against the journaled runs of the live plan
(SubstrateRead::plan_replay — areev run shadow --plan-file), refuse
to stamp the revision applicable when the rehearsal says it is worse
than the incumbent on the same runs, or when too many runs fall outside
the journal’s support. Dream-RSI’s monotone selection (arXiv 2609.14858
§3) as a gate rather than an auto-deploy: applying stays human, with a
BECAUSE. Default none — a revision is rehearsed when it can be and the
report rides on the card, but nothing is refused.
Fields§
§min_runs: u32Fewer rehearsed runs than this and the gate abstains: two runs are an anecdote (default 3).
require_no_worse: boolRefuse a candidate that completes fewer of the same runs than the incumbent did (default true).
max_out_of_support: f64Refuse when more than this fraction of the runs could not be scored because the candidate asked for effects the journal never recorded (default 0.5).