import type { DecisionAnswer, DecisionPredicate, JsonSchema, JsonValue } from '../types.js'; import type { DecisionPatternId, PatternRoute } from './types.js'; /** * Governed runtime specification for each pattern pack. Every pack is executed by * `evaluateDecisionRuleset`; this module only declares artifacts and the * deterministic, data-driven gates applied around that evaluation. */ export type AcceptanceProfile = 'choice' | 'truth' | 'ordinal'; export interface PatternEvaluationSpec { alias: string; answer: DecisionAnswer; question: string; inputPointer: string; /** Definition input schema; defaults to the pack input schema. */ inputSchema?: JsonSchema; acceptance: AcceptanceProfile; } export interface PatternRuleSpec { id: string; priority: number; when: DecisionPredicate; route: PatternRoute; reason: string; } /** Deterministic gates are code-owned authority. Evidence can only narrow them. */ export interface PatternGateSpec { /** Input pointer whose value `deny` forces deny for every model output. */ deterministicPolicyFrom?: string; /** Candidate proposed by evidence (or by the input under check) must be a member of a code-owned list. */ candidateGate?: { candidateFrom: { source: 'decision'; alias: string; } | { source: 'input'; pointer: string; }; allowedFrom: string; /** Object candidates match allowed entries on these keys. */ matchKeys?: string[]; /** Every matching allowed entry must also carry these exact values. */ requireAllowed?: Record; /** Object candidates are reported by this key. */ labelKey?: string; reason: string; }; /** Arguments proposed for the selected function must validate against its code-owned schema. */ argumentGate?: { functionAlias: string; argumentsFrom: string; schemasFrom: string; reason: string; }; /** Per-question subject identities. A batch dispatches only when every question shares one subject. */ batchSubjectsFrom?: string; /** Durable replay through the production receipt store. */ replay?: { resumeCountFrom: string; }; } export interface PatternSpec { inputSchema: JsonSchema; evaluations: PatternEvaluationSpec[]; rules: PatternRuleSpec[]; defaultOutcome: { route: PatternRoute; reason: string; }; failureOutcome: { route: PatternRoute; reason: string; }; gates: PatternGateSpec; unauthorizedEvidenceRoute: 'review' | 'deny'; } export declare const PATTERN_SPECS: Record; //# sourceMappingURL=specs.d.ts.map