Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/security / / computeEffectiveAllowlist

Function: computeEffectiveAllowlist()

ts
function computeEffectiveAllowlist(parent, declared): readonly string[];

Defined in: packages/security/src/secrets/acl.ts:80

Compute the effective allowlist for a child scope: intersection of the parent's allowlist and the child's declared list. The intersection is the foundation of the deny-by-default sub-agent inheritance contract — passing an additional key in a child only works when the parent already permits it.

Parameters

ParameterType
parent| ToolSecretsContext | undefined
declaredreadonly string[]

Returns

readonly string[]

Stable