Private
Public Access
feat(audit): MVP output - AUDIT_REPORT.md only, move stale to _stale/
MVP pipeline simplification: - render_rollups() now produces ONLY summary.md + AUDIT_REPORT.md - run_audit() now produces only per-aggregate .md (no .dsl/.tree) - New src/code_path_audit_gen.py generates the single coherent report Stale artifacts moved to _stale/ subdirectory (preserved for history): - 13 per-aggregate .dsl files (redundant with .md) - 13 per-aggregate .tree files (redundant with .md) - 9 old top-level rollups (cross_audit_summary, decomposition_matrix, candidates, field_usage, call_graph, hot_paths, dead_fields, ssdl_analysis, organization_deductions - all superseded by sections inlined in AUDIT_REPORT.md) - _stale/README.md explains what happened Meta-audit updated to check .md files (14 required H2 sections per aggregate) instead of .dsl files. 0 violations on 10 real profiles. Tests: 131 passing. New MVP report: 5000+ lines.
This commit is contained in:
@@ -158,16 +158,14 @@ def test_run_audit_produces_13_aggregates() -> None:
|
||||
assert result.ok
|
||||
assert len(result.data.aggregate_profiles) == 13
|
||||
|
||||
def test_render_rollups_produces_4_files() -> None:
|
||||
"""render_rollups produces summary.md, cross_audit_summary.md, decomposition_matrix.md, candidates.md."""
|
||||
def test_render_rollups_produces_2_files() -> None:
|
||||
"""render_rollups produces summary.md + AUDIT_REPORT.md (MVP: single comprehensive document)."""
|
||||
with tempfile.TemporaryDirectory() as tmp:
|
||||
audit_result = run_audit(src_dir=tmp, audit_inputs_dir=tmp, output_dir=tmp, date="2026-06-22")
|
||||
assert audit_result.ok
|
||||
rollup_paths = render_rollups(audit_result.data, Path(tmp) / "2026-06-22")
|
||||
assert "summary.md" in rollup_paths
|
||||
assert "cross_audit_summary.md" in rollup_paths
|
||||
assert "decomposition_matrix.md" in rollup_paths
|
||||
assert "candidates.md" in rollup_paths
|
||||
assert "AUDIT_REPORT.md" in rollup_paths
|
||||
|
||||
def test_code_path_audit_v2_returns_dict() -> None:
|
||||
"""code_path_audit_v2 returns a dict with 'profiles' + 'errors' keys (MCP tool contract)."""
|
||||
|
||||
Reference in New Issue
Block a user