Skip to content

Type Alias: CoherenceVerdict

@kortexya/reasoninglayer


@kortexya/reasoninglayer / CoherenceVerdict

CoherenceVerdict = { verdict: "incoherent"; witnesses: number[]; } | { checked: CoherenceCheckedAxioms; verdict: "coherent_certified"; } | { chainIterations: number; checked: CoherenceCheckedAxioms; verdict: "undetermined"; }

Defined in: src/types/coherence.ts:387

The verdict of a coherence analysis, discriminated by verdict.

{ verdict: "incoherent"; witnesses: number[]; }

verdict: "incoherent"

At least one proven incoherence.

witnesses: number[]

Indices into CoherenceReport.links of the clash links that witness it.


{ checked: CoherenceCheckedAxioms; verdict: "coherent_certified"; }

checked: CoherenceCheckedAxioms

Exactly which constraints were in force.

verdict: "coherent_certified"

No incoherence was provable under the declared constraints.


{ chainIterations: number; checked: CoherenceCheckedAxioms; verdict: "undetermined"; }

chainIterations: number

Iterations the global run executed before it stopped.

checked: CoherenceCheckedAxioms

The constraints in force for the part that was checked.

verdict: "undetermined"

No incoherence was found, but the analysis is not a certificate: scope interpretation may be incomplete (zero chain iterations), or the derivation layer’s global run stopped on a chainer limit before its fixpoint, so a conflict fact may lie past it.

On the wire the discriminant is nested under a key of the same name: report.verdict.verdict.