GuardConfig
Defined in: guards.ts:39
Configuration for runtime guard detection.
Properties
logger?
readonlyoptionallogger?: (message) =>void
Defined in: guards.ts:51
Custom logger for warnings (defaults to console.warn).
Parameters
| Parameter | Type |
|---|---|
message | string |
Returns
void
maxAgentSpawns?
readonlyoptionalmaxAgentSpawns?:number
Defined in: guards.ts:47
Maximum total agent/subagent nodes before flagging spawn explosion (default: 50).
maxDepth?
readonlyoptionalmaxDepth?:number
Defined in: guards.ts:45
Maximum graph depth before flagging spawn explosion (default: 10).
maxReasoningSteps?
readonlyoptionalmaxReasoningSteps?:number
Defined in: guards.ts:43
Maximum consecutive same-type nodes before flagging reasoning loop (default: 25).
onViolation?
readonlyoptionalonViolation?:"error"|"abort"|"warn"
Defined in: guards.ts:49
Action to take when guard violations are detected.
policySource?
readonlyoptionalpolicySource?:PolicySource
Defined in: guards.ts:53
Optional policy source for adaptive guard behavior based on accumulated knowledge.
policyThresholds?
readonlyoptionalpolicyThresholds?:PolicyThresholds
Defined in: guards.ts:55
Thresholds for policy-derived violations (only used when policySource is set).
timeouts?
readonlyoptionaltimeouts?:Partial<Record<NodeType,number>>
Defined in: guards.ts:41
Timeout thresholds per node type in milliseconds.