Skip to content

defaultReadVerdict

defaultReadVerdict(worktreePath): VerdictRead<RawVerdict>

Defined in: src/critic-core.ts:288

Read the critic verdict file as a 3-way result (see VerdictRead). absent (not yet written) is distinct from unparseable (present but unrecoverable even after repair) so the review tick() can fail fast on the latter. A repaired parse carries repaired: true so it is trusted only once the critic spawn has finished — a repaired-truncated verdict must never silently drop findings or flip the decision in the merge gate. Exported for the read-path content-fidelity test.

string

VerdictRead<RawVerdict>