Skip to main content

GuardExplanation

Defined in: types.ts:489

Explanation attached to every guard violation for transparency.

Properties​

actual​

readonly actual: string | number

Defined in: types.ts:495

The actual observed value.


evidence?​

readonly optional evidence?: string

Defined in: types.ts:499

Optional historical evidence supporting the threshold.


rule​

readonly rule: string

Defined in: types.ts:491

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


source​

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

Defined in: types.ts:497

Where the threshold came from.


threshold​

readonly threshold: string | number

Defined in: types.ts:493

The configured threshold that was exceeded.