Skip to content

ApprovalMatcherOptions

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/approvals/matcher.ts:195

Tuning + seams for resolveApprovalRules. All optional; the defaults are the product’s.

optional annotations?: EffectiveToolAnnotationSource

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/approvals/matcher.ts:200

Where a hint entry reads its effective values (§4.7.1). Build it with createEffectiveToolAnnotationSource; defaults to failClosedToolAnnotations.


optional now?: () => number

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/approvals/matcher.ts:210

Clock, injectable so the budget backstop is testable without a pathological pattern.

number


optional onNotice?: (notice) => void

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/approvals/matcher.ts:206

Where a run-time report goes — the established ShellApprovalGateNotice shape, which the runner forwards to statusUpdate. Absent means the report is dropped, which is why the runner always passes one.

ShellApprovalGateNotice

void


optional regexpBudgetMs?: number

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/core/approvals/matcher.ts:208

Override REGEXP_MATCH_BUDGET_MS.