/** * CLI glue for the `contextatlas validate-adrs` subcommand (v0.7 * Step 2.3.c.0 — β-bounded mechanical floor enforcement for ADR * depth per Travis Lock 1 + refinement adjudications). * * Reads `docs/adr/*.md` files (per config.adrs.path + Scope γ' walker * substrate). For each ADR, validates against canonical depth-floor * invariants: * * - Frontmatter present with required fields (title, severity, symbols) * - Canonical section headers (Context, Decision, Rationale, Consequences) * - ≥2 symbol-with-line-number citations (file-path-symbol or * file-path-line form) * - ≥2 substantive Context paragraphs (each ≥3 sentences) * - ≥2 distinct named alternatives with text content beyond label * (alternatives-considered enumeration; harder-to-game than keyword * matching per Travis lock) * - ≥1 fenced code block * - ≥3 distinct Rationale items * - ≥3 distinct Consequences items * - Line count ≤600 (hard fail with split-suggestion remediation per * Travis lock; an ADR exceeding 600 lines is probably bundling * multiple decisions) * * Used as MANDATORY GATE (Phase C) in /generate-adrs Skill workflow * between Phase B writing + Phase C completion reporting. Bounds the * cross-session-variance-pattern risk for ADR depth that text-only * SKILL.md prompt-tightening cannot mechanically enforce. * * Exit codes: * 0 — all ADRs pass; report summary to stdout * 2 — one or more ADRs fail; per-ADR remediation to stderr with * actionable guidance */ export type ValidateAdrsExitCode = 0 | 2; export interface ValidateAdrsCliOptions { configRoot: string; configFile: string | null; /** Test seam: where validation report goes. */ writeStdout?: (chunk: string) => void; /** Test seam: where validation errors go. */ writeStderr?: (chunk: string) => void; } export interface ValidateAdrsCliResult { exitCode: ValidateAdrsExitCode; /** Per-ADR error map; empty when all pass. */ errorsByFile: Record; adrsValidated: number; } /** * Run the `validate-adrs` subcommand. Never throws. */ export declare function runValidateAdrsSubcommand(options: ValidateAdrsCliOptions): Promise; /** * Validate a single ADR's content against canonical depth-floor * invariants. Returns array of error strings (empty if all pass). */ export declare function validateAdrShape(content: string): string[]; //# sourceMappingURL=cli-validate-adrs.d.ts.map