Add a synthetic quality suite and upstream parity record.
Some checks failed
synthetic / suite (push) Has been cancelled

Assistant: grok
Assistant-Session: 01a1531b-6698-7732-8587-f28ea604bcdf
This commit is contained in:
tegwick 2026-10-19 10:38:49 +02:00
parent b5b6f6bc00
commit f43edc1edc
14 changed files with 753 additions and 11 deletions

View file

@ -55,6 +55,18 @@ def footer_problems(text: str, pin: str) -> list[str]:
return [f"ui/components/SiteFooter.tsx missing {', '.join(missing)}"]
def third_party_problems(root: Path = ROOT, pin: str | None = None) -> list[str]:
pin = load_pin() if pin is None else pin
path = root / "THIRD_PARTY.md"
if not path.is_file():
return ["THIRD_PARTY.md is missing"]
text = path.read_text(encoding="utf-8")
missing = [mark for mark in ("Copyright (c) 2026 OnCo", "MIT License", pin) if mark not in text]
if not missing:
return []
return [f"THIRD_PARTY.md missing {', '.join(missing)}"]
def tree_problems(root: Path = UI, pin: str | None = None) -> list[str]:
pin = load_pin() if pin is None else pin
problems: list[str] = []
@ -74,6 +86,7 @@ def tree_problems(root: Path = UI, pin: str | None = None) -> list[str]:
problems.append("ui/components/SiteFooter.tsx is missing")
else:
problems.extend(footer_problems(footer.read_text(encoding="utf-8"), pin))
problems.extend(third_party_problems(root.parent if root == UI else root, pin))
return problems