The Veracity Engine compares the live webpage against cited grounded segments using a structured JSON schema to categorize claims into survived, lost, and distorted arrays, producing an exact fidelity score.

sequenceDiagram
    autonumber
    actor User
    participant Veracity as Veracity Engine
    participant Gemini as Gemini Search
    participant TargetPage as Target URL
    participant Evaluator as Veracity Evaluator

    User->>Veracity: Submit query
    Veracity->>Gemini: Run grounded search
    Gemini-->>Veracity: Answer text + Grounding segments & URLs
    Veracity->>TargetPage: Fetch full page via url_context
    TargetPage-->>Veracity: Page content
    Veracity->>Evaluator: Prompt with query, segments, & page content
    Evaluator-->>Veracity: JSON (survived, lost, distortions)
    Veracity->>User: Aggregate fidelity score & audit report