/** * Resolve the outcome of a test / build / lint command from what it printed. * * Why this exists: the design of this tool rests on "exit codes are evidence, * prose is not". Claude Code transcripts do not record exit codes — measured * across a real corpus, 0 of 108 Bash results carried `exitCode`, and none set * `is_error` — so 84% of commands resolved to `unknown`, which made * verification status unknowable and the `productive` verdict unreachable. * OpenCode has the same hole for a different reason. * * The honest fix is not to guess harder. It is to read the *other* machine * evidence that is actually present: test runners and compilers print * structured summaries in well-known formats. Parsing `ℹ fail 0` or * `test result: ok. 12 passed; 0 failed` is reading a result, not inferring * one — and it yields counts a bare exit code never could. * * The invariant is preserved at the edges: a matcher that does not recognise * the output returns null, and null still means unknown. Nothing here upgrades * an ambiguous run to "passed". */ export interface CheckOutcome { /** Which format matched — recorded so a wrong parse is traceable. */ framework: string; ok: boolean; passed: number | null; failed: number | null; } /** * Parse a check command's combined output. Returns null when no known format * is recognised — which is the common case for arbitrary shell, and must stay * `unknown` rather than becoming a guess. */ export declare function parseCheckOutput(output: string): CheckOutcome | null; /** Human-readable evidence line for the postmortem. */ export declare function describeCheck(c: CheckOutcome): string;