ov.analysis.reliability#
Reliability passes over findings (§5.2, D4) – deterministic gates, model-free.
These enforce the grounding discipline on findings (whether deterministic, or authored by the host LLM over an evidence bundle):
cite-or-abstain – every non-
undeterminedclaim must cite at least one resolvable evidence ref; otherwise it is downgraded toundetermined(a first-class outcome, not an error).set-of-mark membership – any mark id a finding references must exist in the bundle.
just-in-time retrieval –
lookup_evidence()resolves an evidence id back to its artifact/finding/step so provenance is verifiable.factored Chain-of-Verification scaffolding –
verification_questions()generates the questions the host answers (independently, via evidence lookup) for high-severity findings;apply_verification()downgrades a finding whose verification fails. The judgment is the host’s; the gating here is deterministic.
Functions
|
Downgrade a finding to |
|
Resolve an evidence id back to its underlying data (just-in-time retrieval). |
|
True if an evidence ref resolves to something concrete (artifact/finding/step/bundle). |
|
Generate factored Chain-of-Verification questions for a high-severity finding. |
|
Apply cite-or-abstain + mark-membership; downgrade unsupported findings. |
Classes
|
Outcome of |
- class ov.analysis.reliability.ReliabilityReport(kept=list(), downgraded=list(), notes=list())[source]#
Bases:
objectOutcome of
verify_findings().
- ov.analysis.reliability.apply_verification(finding, verdicts)[source]#
Downgrade a finding to
undeterminedif a majority of verifications fail.verdictsare the host’s independent answers (True = supported). This is the deterministic application of the host’s factored CoVe / NLI judgments.- Return type:
- ov.analysis.reliability.lookup_evidence(evidence_id, run, store)[source]#
Resolve an evidence id back to its underlying data (just-in-time retrieval).
Returns a dict describing what the id points at, so a verification pass (or a downstream agent) can confirm a finding against the original artifact/record.
- ov.analysis.reliability.resolvable(ref, run, bundle=None)[source]#
True if an evidence ref resolves to something concrete (artifact/finding/step/bundle).
- Return type:
- ov.analysis.reliability.verification_questions(finding)[source]#
Generate factored Chain-of-Verification questions for a high-severity finding.
The host answers each independently (via
lookup_evidence()), not conditioned on the original claim – that’s what makes CoVe factored.>>> from ov.base import Finding >>> qs = verification_questions(Finding(type="ux_issue", signal="contrast.text", ... category="a11y", observed="contrast 2.1:1", evidence_refs=["art_1"])) >>> len(qs) >= 2 True
- ov.analysis.reliability.verify_findings(findings, run, *, bundle=None)[source]#
Apply cite-or-abstain + mark-membership; downgrade unsupported findings.
Deterministic findings (
source_layer == "deterministic") are facts and are kept; LLM findings must cite resolvable evidence and reference only existing marks. A finding that fails is downgraded toundetermined(kept, flagged), never silently dropped.Note
downgrading mutates the offending
Findingin place (the caller hands its findings in to be gated), so the objects inreport.downgradedare the same instances, now markedundetermined+needs_human_review.- Return type: