Skip to main content

GuardConfig

Defined in: guards.ts:39

Configuration for runtime guard detection.

Properties

logger?

readonly optional logger?: (message) => void

Defined in: guards.ts:51

Custom logger for warnings (defaults to console.warn).

Parameters

ParameterType
messagestring

Returns

void


maxAgentSpawns?

readonly optional maxAgentSpawns?: number

Defined in: guards.ts:47

Maximum total agent/subagent nodes before flagging spawn explosion (default: 50).


maxDepth?

readonly optional maxDepth?: number

Defined in: guards.ts:45

Maximum graph depth before flagging spawn explosion (default: 10).


maxReasoningSteps?

readonly optional maxReasoningSteps?: number

Defined in: guards.ts:43

Maximum consecutive same-type nodes before flagging reasoning loop (default: 25).


onViolation?

readonly optional onViolation?: "error" | "abort" | "warn"

Defined in: guards.ts:49

Action to take when guard violations are detected.


policySource?

readonly optional policySource?: PolicySource

Defined in: guards.ts:53

Optional policy source for adaptive guard behavior based on accumulated knowledge.


policyThresholds?

readonly optional policyThresholds?: PolicyThresholds

Defined in: guards.ts:55

Thresholds for policy-derived violations (only used when policySource is set).


timeouts?

readonly optional timeouts?: Partial<Record<NodeType, number>>

Defined in: guards.ts:41

Timeout thresholds per node type in milliseconds.