pub enum PromotionMode {
Off,
Shadow,
PromoteExact,
}Expand description
How the PIR-A lexical reference promotion path is activated.
The live provider passes the mode from config. Modes:
-
Off— Do not evaluate; returnLegacyFallback { reason: FeatureDisabled }immediately without examining the receipt. -
Shadow— Evaluate the candidate and emit the comparison receipt but returnLegacyFallback(the “always-run-then-fallback” pattern, now named honestly). Used for scorecard aggregation without changing live provider results. -
PromoteExact— ReturnExactwhen all gates pass; refuse to fallback otherwise.
Flip criterion for PromoteExact: ops may set this only
after a human sign-off confirming that the PR2 shadow scorecard on issue #2635
shows extra_in_compiler == 0 across the full set1 fixture set for at least one
complete CI green run post-PR2 merge (the corpus-soak precondition from the PR3
plan-reviewed spec). No individual agent may flip this mode without that explicit
human sign-off.
Variants§
Off
Feature is off. Return LegacyFallback { reason: FeatureDisabled } immediately.
Shadow
Evaluate candidate + emit comparison receipt, but return LegacyFallback.
Used for scorecard aggregation without cutover.
PromoteExact
Return Exact when all gates pass; refuse and fallback otherwise.
Trait Implementations§
Source§impl Clone for PromotionMode
impl Clone for PromotionMode
Source§fn clone(&self) -> PromotionMode
fn clone(&self) -> PromotionMode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for PromotionMode
Source§impl Debug for PromotionMode
impl Debug for PromotionMode
impl Eq for PromotionMode
Source§impl PartialEq for PromotionMode
impl PartialEq for PromotionMode
Source§fn eq(&self, other: &PromotionMode) -> bool
fn eq(&self, other: &PromotionMode) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PromotionMode
Auto Trait Implementations§
impl Freeze for PromotionMode
impl RefUnwindSafe for PromotionMode
impl Send for PromotionMode
impl Sync for PromotionMode
impl Unpin for PromotionMode
impl UnsafeUnpin for PromotionMode
impl UnwindSafe for PromotionMode
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
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
key and return true if they are equal.