/** * Loop Engineering guidelines linter (M0). * * Pure function: takes the raw markdown text of * `.peaks/standards/loop-engineering-guidelines.md` and returns either * `{ ok: true, redLines: [...] }` or `{ ok: false, findings: [...] }`. * * The four required sections per red line (karpathy-style form) are: * - Failure modes * - Rewrite * - Self-check * - Out-of-scope * * Each red line is identified by a heading like `## RL-0 — ...`. * * The lint intentionally does NOT touch any application-level code; it * only parses the guideline file. The peaks CLI command * `peaks standards lint --category loop-engineering` (registered in M0's * plan) will read this file from disk and call this function. */ export declare const EXPECTED_RED_LINE_IDS: readonly ["RL-0", "RL-1", "RL-2", "RL-3", "RL-4", "RL-5", "RL-6", "RL-7", "RL-8", "RL-9", "RL-10"]; export type RedLineId = (typeof EXPECTED_RED_LINE_IDS)[number]; export declare const REQUIRED_SECTIONS: readonly ["Failure modes", "Rewrite", "Self-check", "Out-of-scope"]; export type RedLineSection = (typeof REQUIRED_SECTIONS)[number]; export interface RedLineReport { id: RedLineId; title: string; sections: Partial>; } export type LintResult = { ok: true; redLines: RedLineReport[]; } | { ok: false; findings: string[]; redLines: RedLineReport[]; }; export declare function lintLoopEngineeringGuidelines(raw: string): LintResult;