pub enum RolloutPolicy {
Off,
Shadow,
Enabled,
}Expand description
Rollout policy for the Asupersync migration (bd-2crbt).
Controls how the runtime lane transition is managed:
Off— use only the configured lane, no shadow comparison.Shadow— run both baseline and candidate lanes, compare outputs, but use only the baseline lane for actual rendering. Evidence is emitted to the configured JSONL sink for operator review.Enabled— use the candidate lane for rendering (requires prior shadow evidence showing deterministic match).
The policy is logged at startup and can be overridden via the
FTUI_ROLLOUT_POLICY environment variable (off, shadow, enabled).
Variants§
Off
No rollout activity — use the configured lane directly.
Shadow
Shadow-run comparison mode: run both lanes, emit evidence, use baseline.
Enabled
Candidate lane is live — requires prior shadow evidence.
Implementations§
Source§impl RolloutPolicy
impl RolloutPolicy
Sourcepub fn from_env() -> Option<Self>
pub fn from_env() -> Option<Self>
Read the policy from the FTUI_ROLLOUT_POLICY environment variable.
Accepted values (case-insensitive): off, shadow, enabled.
Returns None if unset or unrecognized.
Trait Implementations§
Source§impl Clone for RolloutPolicy
impl Clone for RolloutPolicy
Source§fn clone(&self) -> RolloutPolicy
fn clone(&self) -> RolloutPolicy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RolloutPolicy
impl Debug for RolloutPolicy
Source§impl Default for RolloutPolicy
impl Default for RolloutPolicy
Source§fn default() -> RolloutPolicy
fn default() -> RolloutPolicy
Returns the “default value” for a type. Read more
Source§impl Display for RolloutPolicy
impl Display for RolloutPolicy
Source§impl Hash for RolloutPolicy
impl Hash for RolloutPolicy
Source§impl PartialEq for RolloutPolicy
impl PartialEq for RolloutPolicy
impl Copy for RolloutPolicy
impl Eq for RolloutPolicy
impl StructuralPartialEq for RolloutPolicy
Auto Trait Implementations§
impl Freeze for RolloutPolicy
impl RefUnwindSafe for RolloutPolicy
impl Send for RolloutPolicy
impl Sync for RolloutPolicy
impl Unpin for RolloutPolicy
impl UnsafeUnpin for RolloutPolicy
impl UnwindSafe for RolloutPolicy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.