0.2.0-0-pre.1-fix.1

This commit is contained in:
2026-09-18 00:58:14 +02:00
parent de63a8c57b
commit df4a06fac3
23 changed files with 317 additions and 37 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env python3
# file: scripts/audit_project_workspace_rules.py
# version: 4
# version: 5
"""Audit mechanically verifiable games.sasedev workspace boundaries."""
@@ -67,7 +67,7 @@ def main() -> int:
if history_root.exists():
for history_path in sorted(history_root.rglob("*.md")):
relative_history = history_path.relative_to(history_root)
if relative_history.as_posix() == "README.md":
if relative_history.as_posix() == "000-README.md":
continue
if len(relative_history.parts) != 2:
errors.append(f"DOC-010: history file must use history/<X.Y.Z>/<label>.md: {history_path.relative_to(root).as_posix()}")
@@ -79,6 +79,13 @@ def main() -> int:
candidate = f"{base_version}-{label}"
if SEMVER.fullmatch(candidate) is None:
errors.append(f"DOC-010: invalid history milestone filename: {history_path.relative_to(root).as_posix()}")
docs_root = root / "docs"
if docs_root.exists():
for readme_path in sorted(docs_root.rglob("README.md")):
errors.append(
f"DOC-011: documentary directory entry point must use 000-README.md: {readme_path.relative_to(root).as_posix()}"
)
forbidden_assets = [path for path in (root / "crates").rglob("assets") if path.is_dir()]
for path in forbidden_assets:
errors.append(f"GAME-ASSET-001: assets directory forbidden inside crates: {path.relative_to(root).as_posix()}")