"""The product is universal: no file that ships may name this owner, a home path, a price, or a specific AI model. Host tool names (Claude Code, Codex, OpenCode and the like) are legitimate where an adapter or its docs need them; model ids and model-family names used as instructions are not. Every exception is one allowlist line with its reason.""" import os, re, subprocess, unittest from support import REPO # One line per exception: (relative path, exact text on the line, reason). ALLOWLIST = [ ("README.md", "github.com/swaits/sisi", "the project's own repository URL, needed to install"), ("README.md", "Stephen Waits", "legal copyright attribution, matching LICENSE"), ("SECURITY.md", "github.com/swaits/sisi", "the project's own repository URL, needed to report privately"), ("sisi/gate.py", "Claude-Code-shaped", "host transcript format name, not a model id"), ("verifiers/intent/domain-evidence-report.md", "", "worked example with test-data amounts, not a price"), ("verifiers/intent/owner-acceptance-runbook.md", "", "worked example with test-data amounts, not a price"), ("sisi/workers.py", "", "TEMPORARY: being rewritten by the orchestration worker under this same rule; remove at merge"), ("sisi/routing.py", "", "TEMPORARY: being rewritten by the orchestration worker under this same rule; remove at merge"), ] HOST_IDS = {"claude-code", "gemini-cli"} OWNER_RES = [ ("owner handle or name", re.compile(r"swaits", re.I)), ("owner given name", re.compile(r"\bStephen\b")), ("owner surname", re.compile(r"\bWaits\b")), ] HOME_RE = re.compile(r"(?