fix(entropy): _iter_files에서 .git/node_modules 제외 — total_file_count 2298→1645

audit_repository_entropy_v1._iter_files가 .git(628개) 포함으로
total_file_count=2298 > budget=2200 → FAIL 발생.
.git, node_modules, __pycache__ 등 제외 → gate=PASS (1645/2200).

동시 fix: spec/39 YAML ScannerError — note 필드의 'status: DONE' 따옴표 처리.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-14 11:55:40 +09:00
parent b2a38733c8
commit 4841f7d37e
2 changed files with 8 additions and 2 deletions
+7 -1
View File
@@ -14,8 +14,14 @@ import yaml
ROOT = Path(__file__).resolve().parents[1]
_EXCLUDE_DIRS = {".git", "node_modules", "__pycache__", ".tox", ".venv", "venv"}
def _iter_files(root: Path) -> list[Path]:
return [p for p in root.rglob("*") if p.is_file()]
return [
p for p in root.rglob("*")
if p.is_file() and not any(part in _EXCLUDE_DIRS for part in p.relative_to(root).parts)
]
def _sha256_file(path: Path) -> str: