"""manifest.py — Load mutation manifest JSON for the qc-flag mutation testing suite.

Used by mutation_generator.py and mutation_runner.py to iterate over
defined mutations for each Lean module. See manifest.json for schema.
"""
import json
from pathlib import Path
from typing import Any

def load_manifest(path: Path | None = None) -> dict[str, Any]:
    if path is None:
        path = Path(__file__).parent / "manifest.json"
    return json.loads(path.read_text())
