/** * v0.5 §11.4 — Anthropic skills corpus round-trip regression. * * Goal: make sure `skill-parser.ts` is faithful to *real* Anthropic-shape * SKILL.md files, not just our own bundled 25. We exercise the parser * against an external fixture set in three modes: * * 1. Bundled fixtures in `test/fixtures/anthropic-corpus/*.md` — always * checked. Hand-authored representatives of the Anthropic style; no * network required. This is what CI uses. * 2. Cached fetched corpus in `test/.cache/anthropic-skills-/` — * checked if present. * 3. Live `anthropics/skills` fetch — opt-in via * `SOLOSQUAD_FETCH_EXTERNAL_CORPUS=1`. Skipped by default to keep CI * deterministic (corpus may change between npm test runs and §13 * risk register flags this). * * For each file the regression checks: * a) `parseSkillMd` succeeds * b) `validateSkill` returns `ok: true` (Anthropic minimal must pass — * no v0.5 extensions required) * c) `writeSkillMd(parsed)` produces text equal (after CRLF normalize) to * the input — byte-identical round-trip */ export interface CorpusFailure { path: string; reason: string; } export interface CorpusResult { ok: boolean; checked: number; failures: CorpusFailure[]; sources: string[]; } export declare function runCorpusRegression(opts?: { repo_root?: string; fetch_remote?: boolean; }): Promise;