Skip to main content

GuardExplanation

Defined in: types.ts:487

Explanation attached to every guard violation for transparency.

Properties

actual

readonly actual: string | number

Defined in: types.ts:493

The actual observed value.


evidence?

readonly optional evidence?: string

Defined in: types.ts:497

Optional historical evidence supporting the threshold.


rule

readonly rule: string

Defined in: types.ts:489

The guard rule name (e.g., 'max-depth', 'timeout').


source

readonly source: "static" | "soma-policy" | "adaptive" | "assertion"

Defined in: types.ts:495

Where the threshold came from.


threshold

readonly threshold: string | number

Defined in: types.ts:491

The configured threshold that was exceeded.