Skip to main content

Technique

Struct Technique 

Source
pub struct Technique {
    pub id: &'static str,
    pub name: &'static str,
    pub oracle_class: OracleClass,
    pub vector: Vector,
    pub strength: NormativeStrength,
    pub normalization_weight: Option<f32>,
    pub inverted_signal_weight: Option<f32>,
    pub method_relevant: bool,
    pub parser_relevant: bool,
    pub applicability: fn(&ResponseSurface, &ResponseSurface) -> Applicability,
    pub contradiction_surface: SignalSurface,
}
Expand description

Why these probes were generated and what normative basis justifies the expected differential.

Set by a strategy at probe generation time, carried through execution unchanged, and consumed by the analyzer for confidence calibration and evidence labeling.

Signal extraction is unconditional — the analyzer runs all extractors on every DifferentialSet. Technique metadata is for attribution and confidence calibration, not for gating which signals are extracted.

Fields§

§id: &'static str

Machine-readable identifier, e.g. "if-none-match" or "get-200-404".

§name: &'static str

Human-readable name, e.g. "If-None-Match conditional request".

§oracle_class: OracleClass

Oracle class this technique probes.

§vector: Vector

Elicitation method that produced this differential.

§strength: NormativeStrength

RFC mandate level for the expected behavior.

§normalization_weight: Option<f32>

Weight applied when baseline and probe return the same status code (SameStatus path).

Encodes how strongly the absence of a status differential implies response normalization. Some(w) produces StrategyOutcome::Contradictory(result, w). None produces StrategyOutcome::NoSignal. Vectors where same-status carries no evidential meaning (CacheProbing, ErrorMessageGranularity, RedirectDiff) use None.

§inverted_signal_weight: Option<f32>

Weight applied when a differential is observed in the opposite direction to the oracle hypothesis (e.g. probe rate-limited when baseline was not, or probe-only rate-limit headers).

None means the strategy has no inverted-signal semantics.

§method_relevant: bool

True when method-level rejection (405) is oracle-relevant for this technique.

Generally false — only techniques specifically probing method handling set this.

§parser_relevant: bool

True when parser/validator errors (400/422) are oracle-relevant.

Set by techniques like uniqueness, state_transition, content_type where the parser response IS the oracle. False for techniques whose layer is downstream of parsing (cache validators, content negotiation, etc.) — for those, same 400/422 means the request was rejected before the oracle-bearing code path.

§applicability: fn(&ResponseSurface, &ResponseSurface) -> Applicability

Returns confidence that the technique’s applicability marker is observed in the response pair.

Default for techniques with no specific marker is always_applicable. Techniques whose signal depends on a specific response feature (e.g. If-None-Match requires ETag) implement this to return Missing when the marker is absent — blocking phantom Contradictory outcomes from techniques whose mutation never reached the oracle layer.

§contradiction_surface: SignalSurface

Primary surface this technique’s contradiction is evaluated on.

The surface_relevance modifier consults this to detect mis-surfaced contradictions — when SameStatus fires on a Status-surface technique but the body or headers show a significant differential, the contradiction is mis-surfaced and downgrades to Inapplicable.

Trait Implementations§

Source§

impl Clone for Technique

Source§

fn clone(&self) -> Technique

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Technique

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Copy for Technique

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.