/** * Did anything actually confirm the work? * * This is the part that separates a flight recorder from a transcript viewer. The * agent saying "all tests pass" is text. A `pytest` invocation exiting non-zero is * evidence. Where the two disagree, only one of them is in this module. */ import { type Command, type Finding, type Run } from "../model.js"; export type VerificationStatus = "passed" | "failed" | "mixed" | "not_run" | "unknown"; export interface CategoryTally { run: number; passed: number; failed: number; unknown: number; } export interface Verification { status: VerificationStatus; checksRun: number; passed: number; failed: number; unknown: number; lastCheck: Command | null; byCategory: Record; /** Individual assertions, summed from recognised runner output. */ assertionsPassed: number | null; assertionsFailed: number | null; /** Which runners were recognised, e.g. ["node:test", "tsc"]. */ frameworks: string[]; summary: string; } export declare function analyzeVerification(run: Run): Verification; /** The agent claimed success; check whether anything backs that up. */ export declare function unverifiedClaimFindings(run: Run, v: Verification): Finding[]; export declare function noVerificationFindings(run: Run, v: Verification): Finding[]; export declare function allVerificationFindings(run: Run, v: Verification): Finding[];