import type { PlanEvidenceInput } from '../../services/api/HulaApiClient.js'; /** * Local-evidence helpers for `hula script fix-commit` (part 02 of the * evidence-ingest plan). * * Trust rule: an assessment must never rise purely on a run's self-report. A * local fix therefore records a `pass`/`fail` ONLY for a check it actually * executed; when nothing ran it records provenance only (`verdict: 'unknown'`, * `checks.check: null`), which the shared aggregate treats as non-raising * (`aggregateEvidence` merges a null check into nothing). */ /** Marker name of the ralph.md block that holds the project's check commands. */ export declare const CHECK_COMMANDS_BLOCK = "RALPH_CHECK_COMMANDS"; /** Summary recorded when no check command ran. */ export declare const COMMIT_ONLY_SUMMARY = "commit only \u2014 no local tests executed"; /** * Extract the commands of a `` block from a * ralph.md document, with the same filtering ralph-run.sh applies: blank lines, * `#` comments, the markers themselves and an `IVR_PATHS:` gate line are * dropped. Returns `[]` when the block is absent or empty. */ export declare function parseRalphCommandBlock(markdown: string, name: string): string[]; export interface LocalCheckOutcome { /** HEAD sha the evidence is recorded against. */ sha: string; /** The command that was run (joined form), or null when nothing ran. */ command: string | null; /** Exit code of the command; ignored when `command` is null. */ exitCode?: number; /** True when the command was killed by the timeout. */ timedOut?: boolean; } /** * Pure mapping from "what actually ran" to the evidence record to post. * - ran and exited 0 → `pass`, `checks.check = true` * - ran and failed / timed out → `fail`, `checks.check = false` * - nothing ran → `unknown`, `checks.check = null` (provenance only) * The summary names the command but never its environment or output. */ export declare function buildLocalEvidence(outcome: LocalCheckOutcome): PlanEvidenceInput; //# sourceMappingURL=local-evidence.d.ts.map