EffectiveToolAnnotationSource
EffectiveToolAnnotationSource = (
subject) =>EffectiveToolAnnotations|undefined
Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/approvals/matcher.ts:123
Resolves the effective annotations of a tool call, or undefined when they cannot be determined
— which the matcher treats as undecidable (non-match on allow, match on deny/escalate).
This function type is the whole contract between the matcher and the trust model:
createEffectiveToolAnnotationSource (core/approvals/annotations.ts) is the one implementation
that applies per-server, per-hint trust (§4.7.1), and it is the ONLY place an effective set is
derived. Nothing in this module knows how trust is decided, which is what lets the two evolve
independently.
Parameters
Section titled “Parameters”subject
Section titled “subject”ToolApprovalSubject | McpToolApprovalSubject
Returns
Section titled “Returns”EffectiveToolAnnotations | undefined