/** * Pillar schemas — CLI port of lib/governance/pillar-schemas.ts. * Keep in lockstep; the gate must accept/reject identically in cloud and * local modes (CONSTITUTION.md → Gate Invariants). */ import { z } from 'zod'; /** * Pillar payload schemas — the single source of truth for what a governed * memory entry looks like (CONSTITUTION.md → Gate Invariants: every proposal * is schema-validated before anything is persisted). * * The CLI port (packages/cli/src/governance/schemas.ts) mirrors these; the * shared golden-vector tests keep the two from drifting. */ export declare const PILLARS: readonly ["decision", "pattern", "domain", "system"]; export type Pillar = (typeof PILLARS)[number]; export declare const DecisionPayload: z.ZodObject<{ title: z.ZodString; context: z.ZodOptional; decision: z.ZodString; consequences: z.ZodOptional; category: z.ZodDefault>; related_files: z.ZodOptional>; }, "strip", z.ZodTypeAny, { decision?: string; category?: "fix" | "architectural" | "pattern" | "convention" | "rejection" | "preference"; title?: string; context?: string; consequences?: string; related_files?: string[]; }, { decision?: string; category?: "fix" | "architectural" | "pattern" | "convention" | "rejection" | "preference"; title?: string; context?: string; consequences?: string; related_files?: string[]; }>; export declare const PatternPayload: z.ZodObject<{ name: z.ZodString; kind: z.ZodEnum<["approved", "anti"]>; description: z.ZodString; example: z.ZodOptional; applies_to: z.ZodOptional>; }, "strip", z.ZodTypeAny, { name?: string; description?: string; example?: string; kind?: "approved" | "anti"; applies_to?: string[]; }, { name?: string; description?: string; example?: string; kind?: "approved" | "anti"; applies_to?: string[]; }>; export declare const DomainPayload: z.ZodObject<{ rule_key: z.ZodString; statement: z.ZodString; rationale: z.ZodOptional; invariants: z.ZodOptional>; }, "strip", z.ZodTypeAny, { statement?: string; invariants?: string[]; rule_key?: string; rationale?: string; }, { statement?: string; invariants?: string[]; rule_key?: string; rationale?: string; }>; export declare const SystemPayload: z.ZodObject<{ component: z.ZodString; kind: z.ZodEnum<["component", "boundary"]>; description: z.ZodString; allowed_deps: z.ZodOptional>; forbidden_deps: z.ZodOptional>; }, "strip", z.ZodTypeAny, { description?: string; kind?: "component" | "boundary"; allowed_deps?: string[]; forbidden_deps?: string[]; component?: string; }, { description?: string; kind?: "component" | "boundary"; allowed_deps?: string[]; forbidden_deps?: string[]; component?: string; }>; export declare const PAYLOAD_SCHEMAS: Record; /** The stable key used for exact-match conflict detection, per pillar. */ export declare function conflictKey(pillar: Pillar, payload: Record): string | null; export declare const ProposalInput: z.ZodObject<{ projectId: z.ZodString; pillar: z.ZodEnum<["decision", "pattern", "domain", "system"]>; payload: z.ZodRecord; reasoning: z.ZodOptional; supersedes: z.ZodOptional; agent: z.ZodDefault; userId: z.ZodOptional; source: z.ZodDefault>; }, "strip", z.ZodTypeAny, { projectId?: string; reasoning?: string; pillar?: "decision" | "pattern" | "domain" | "system"; supersedes?: string; payload?: Record; agent?: string; userId?: string; source?: "propose_entry" | "legacy_capture" | "git_hook"; }, { projectId?: string; reasoning?: string; pillar?: "decision" | "pattern" | "domain" | "system"; supersedes?: string; payload?: Record; agent?: string; userId?: string; source?: "propose_entry" | "legacy_capture" | "git_hook"; }>; export type ProposalInputType = z.infer; //# sourceMappingURL=schemas.d.ts.map