Skip to main content

Module surface

Module surface 

Source
Expand description

Surface-relevance gate for evidence modifiers.

Detects when a SameStatus Contradictory is mis-surfaced — i.e., the technique declares Status as its primary surface, the SameStatus arm fired (statuses are equal), but the body or headers show a significant differential. The actual oracle signal is on a non-status surface, so the status-equality Contradictory conclusion is wrong and the outcome should downgrade to Inapplicable.

Enums§

SurfaceDecision
Decision returned by surface_relevance.

Functions§

body_diff_ratio
Body content divergence ratio in [0.0, 1.0].
header_diff_ratio
Header divergence ratio in [0.0, 1.0].
surface_relevance
Computes the surface relevance for a technique against a probe pair.