type Scalar = number | boolean; interface Rule { field: string; op: 'lte' | 'gte' | 'eq'; value: Scalar; } interface Item { id: string; attributes: Record; } export interface AnswerConstraintCheck { schema: 'warden-answer-check/1'; sessionId: string; turn: number; answerSha256: string; /** The host derives these from the real user/policy, never server-authored instructions. */ rules: Rule[]; /** A bounded captured record snapshot; checks are conditional on these source facts. */ records: Item[]; /** Explicit claims extracted by the host adapter; not an automatic semantic parser. */ claims: { selectedId: string; eligibleIds: string[]; }; } export interface ConstraintViolation { item: number; rule: number; op: Rule['op']; limit: Scalar; actual: Scalar; } export interface ConstraintEvidence { status: 'absent' | 'invalid' | 'checked' | 'partial'; factsSha256?: string; violations: ConstraintViolation[]; unknownReferences: number; text: string; } /** Fixed templates + finite scalars/positions only. No names, quotes, URLs or source-authored field labels. */ export declare function checkAnswerConstraints(value: unknown, answer: string, sessionId: string, turn: number): ConstraintEvidence; export {}; //# sourceMappingURL=flow-guard-constraints.d.ts.map