Skip to main content

GuardExplanation

Defined in: types.ts:405

Explanation attached to every guard violation for transparency.

Properties

actual

readonly actual: string | number

Defined in: types.ts:411

The actual observed value.


evidence?

readonly optional evidence?: string

Defined in: types.ts:415

Optional historical evidence supporting the threshold.


rule

readonly rule: string

Defined in: types.ts:407

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


source

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

Defined in: types.ts:413

Where the threshold came from.


threshold

readonly threshold: string | number

Defined in: types.ts:409

The configured threshold that was exceeded.