/** * Muse commit pilot evidence validators (Phase 7A, Step 7A-14). * * Pure functions for seven-tier tests to assert the pilot artifacts meet the * acceptance bar without re-running Muse or the full shell driver. */ import { readFileSync, existsSync } from 'node:fs'; import { join } from 'node:path'; /** Required paths under docs/evidence/7A-14 relative to the Knowtation repo root. */ export const MUSE_COMMIT_PILOT_EVIDENCE_REL = 'docs/evidence/7A-14'; /** Pilot workspace filenames (projections committed via Muse). */ export const PILOT_WORKSPACE_FILES = [ 'overseer.AGENTS.md', 'overseer.cursor.mdc', ] ; /** Artifact filenames captured by run-pilot.sh. */ export const PILOT_ARTIFACT_FILES = [ 'transcript.txt', 'muse-sha-before.txt', 'muse-sha-after.txt', 'overseer.AGENTS.v0.1.0.md', 'overseer.AGENTS.v0.2.0.md', 'overseer.v0.1.0.mdc', 'overseer.v0.2.0.mdc', 'overseer.runbook.v1-to-v2.diff', 'overseer.cursor.v1-to-v2.diff', 'overseer.AGENTS.handedited.md', ]; const GENERATED_MARKER_RE = /^