Skip to main content

PolicySource

Defined in: types.ts:756

Read-only interface for querying accumulated knowledge. Used by guards to make adaptive decisions based on execution history.

Methods

getAgentProfile()

getAgentProfile(agentId): AgentProfile | null

Defined in: types.ts:764

Full derived profile for an agent, or null if no history.

Parameters

ParameterType
agentIdstring

Returns

AgentProfile | null


isKnownBottleneck()

isKnownBottleneck(nodeName): boolean

Defined in: types.ts:760

Whether a node name appears as a known bottleneck across any agent.

Parameters

ParameterType
nodeNamestring

Returns

boolean


lastConformanceScore()

lastConformanceScore(agentId): number | null

Defined in: types.ts:762

Most recent conformance score for an agent, or null if none recorded.

Parameters

ParameterType
agentIdstring

Returns

number | null


recentFailureRate()

recentFailureRate(agentId): number

Defined in: types.ts:758

Recent failure rate for an agent (0.0–1.0). Returns 0 if no history.

Parameters

ParameterType
agentIdstring

Returns

number