system-prompts-and-models-o.../scripts/check_glossary_consistency.py
Sami Assiri 1ceeea9004 feat(tier1): finalize production activation and revenue execution pack
Complete Tier-1 closure follow-through by wiring docs governance gates, RC release readiness checks, source-of-truth enforcement, executive weekly contract surface, and go-live severity notes.
Add full go-live revenue execution documentation set (production activation, real production playbook, trust expansion, first 3 clients, live deployment, and automated revenue engine) and register all canonical paths.

Made-with: Cursor
2026-04-17 14:13:57 +03:00

36 lines
894 B
Python

#!/usr/bin/env python3
"""Lightweight glossary presence check for Tier-1 Docs/Governance CI."""
from __future__ import annotations
import sys
from pathlib import Path
ROOT = Path(__file__).resolve().parent.parent
GLOSSARY = ROOT / "docs" / "glossary-dealix-planes-tracks.md"
# Stable anchors that must remain if the glossary is the naming contract.
REQUIRED_SUBSTRINGS = (
"Decision",
"Execution",
"Trust",
"Operating",
"Plane",
)
def main() -> int:
if not GLOSSARY.is_file():
print("MISSING", GLOSSARY, file=sys.stderr)
return 1
text = GLOSSARY.read_text(encoding="utf-8")
missing = [s for s in REQUIRED_SUBSTRINGS if s not in text]
if missing:
print("GLOSSARY_FAIL missing:", missing, file=sys.stderr)
return 1
print("glossary consistency OK")
return 0
if __name__ == "__main__":
raise SystemExit(main())