From 18226779bfbbeff33cde5400433803eadd47d46c Mon Sep 17 00:00:00 2001 From: Ed_ Date: Mon, 22 Jun 2026 00:41:55 -0400 Subject: [PATCH] chore(audit): create empty scripts/audit_code_path_audit_coverage.py Module docstring + usage comment. The schema validator goes in Phase 12. --- scripts/audit_code_path_audit_coverage.py | 13 +++++++++++++ tests/fixtures/audit_inputs/.gitkeep | 1 + tests/fixtures/synthetic_src/__init__.py | 8 ++++++++ 3 files changed, 22 insertions(+) create mode 100644 scripts/audit_code_path_audit_coverage.py create mode 100644 tests/fixtures/audit_inputs/.gitkeep create mode 100644 tests/fixtures/synthetic_src/__init__.py diff --git a/scripts/audit_code_path_audit_coverage.py b/scripts/audit_code_path_audit_coverage.py new file mode 100644 index 00000000..cb12eb69 --- /dev/null +++ b/scripts/audit_code_path_audit_coverage.py @@ -0,0 +1,13 @@ +"""Meta-audit for src.code_path_audit v2 output schema. + +Verifies that every AggregateProfile produced by the v2 audit +has all 14 required top-level fields, that the +cross_audit_findings has 5 audit scripts, that the +decomposition_cost has the 8 fields, etc. The convention: any +new audit must have a corresponding schema-validator script. + +Usage: + uv run python scripts/audit_code_path_audit_coverage.py + uv run python scripts/audit_code_path_audit_coverage.py --strict +""" +from __future__ import annotations \ No newline at end of file diff --git a/tests/fixtures/audit_inputs/.gitkeep b/tests/fixtures/audit_inputs/.gitkeep new file mode 100644 index 00000000..aac801bb --- /dev/null +++ b/tests/fixtures/audit_inputs/.gitkeep @@ -0,0 +1 @@ +This file ensures tests/fixtures/audit_inputs/ is tracked in git. The 6 input JSON files (audit_weak_types.json, audit_exception_handling.json, audit_optional_in_3_files.json, audit_no_models_config_io.json, audit_main_thread_imports.json, type_registry.json) are populated in Phase 10. The .gitkeep is removed when the first JSON file is added. \ No newline at end of file diff --git a/tests/fixtures/synthetic_src/__init__.py b/tests/fixtures/synthetic_src/__init__.py new file mode 100644 index 00000000..9a26ae1b --- /dev/null +++ b/tests/fixtures/synthetic_src/__init__.py @@ -0,0 +1,8 @@ +"""Synthetic src/ fixture for code_path_audit v2 integration tests. + +Defines 3 TypeAliases (Metadata, FileItems, History) + 6 functions +(2 producers, 4 consumers). The integration tests assert the +exact expected profiles per aggregate. See +conductor/tracks/code_path_audit_20260607/plan_v2.md Phase 10. +""" +from __future__ import annotations \ No newline at end of file