Skip to content

findApprovalsGrammarIssues

findApprovalsGrammarIssues(raw): DeprecatedConfigIssue[]

Defined in: _worktrees/docs-release/gaunt-sloth/packages/core/src/config/schema.ts:1413

EXT-71 §3.1 — every hard error the rule grammar defines, found on the RAW input: each entry in allow/deny/escalate validated with a path that names the offending field (collectApprovalEntryIssues), the approvals.mcp block (collectMcpApprovalsIssues), and the two mcpServers keys no rule can refer to — * (RESERVED_MCP_SERVER_NAME, which an entry already reads as “every server”) and the empty name (UNNAMEABLE_MCP_SERVER_NAME, which no entry’s server field can hold). Both need to see mcpServers, a sibling of approvals rather than a field of it.

All of them are HARD errors, reported the same way findDeprecatedConfigIssues reports its own, and — like it — this runs BEFORE the schema parse so the precise message is the only one the user sees.

PURE: it only reads the object. Kept separate from findDeprecatedConfigIssues because these are not removed pre-2.0 shapes; they are rules of the current grammar.

Record<string, unknown>

DeprecatedConfigIssue[]