Skip to main content

Crate ethos_verify

Crate ethos_verify 

Source
Expand description

§ethos-verify (Milestone A skeleton → B alpha → D v1)

Parser-agnostic citation evidence verification. Consumes any parser’s output through ethos_core::grounding::GroundingSource — Ethos itself is just another grounding source behind an adapter (PRD §1.5, §5.4).

Scope discipline: verification is evidence grounding — the cited region exists, its text matches by a declared literal method, the fingerprint is fresh. It is never pixel-level, semantic, or arithmetic proof (PRD §14).

The WS-VERIFY check engine intentionally supports only literal quote/value, presence, and table-cell lookup claims. Unsupported claim kinds remain explicit; no fuzzy, semantic, arithmetic, crop, OCR, layout, or parser-internal behavior belongs here.

Structs§

CitationEnvelope
Envelope form of citation input.
EvidenceAnchorError
Validation or source-shape error for evidence anchoring.

Enums§

CitationInput
Citation input accepted by the alpha verifier.

Functions§

anchor_evidence
Validate and resolve evidence refs over one grounding source.
capability_limits
Compute structured capability gaps for the run. These explain the stable capability_limited warning without minting parser-warning codes for every verification capability.
capability_warnings
Compute the capability-downgrade warnings for a source under a config (PRD §5.5): every missing capability the run would rely on surfaces as capability_limited — explicitly, never as silent approximation.
normalize_quote
Normalize a quote for literal matching: normalize line endings, collapse ASCII whitespace runs to one ASCII space, then trim.
verify_claims
Verify citation claims over a parser-agnostic GroundingSource.