File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3737 REPO_ROOT / "docs" / "product" / "agent-profile-contract.md" ,
3838}
3939LEGACY_PATTERN = re .compile (
40- r"primary_agent|primary_review|side_agent|handoff_agent|agent_profile_v0|primary_checkout|"
40+ r"\bprimary_agent\b|\bprimary_review\b|\bside_agent\b|\bhandoff_agent\b|"
41+ r"\bagent_profile_v0\b|\bprimary_checkout\b|"
4142 r"\bprimary agent\b|\bside agent\b|\bside-agent\b|\bmain controller\b|"
4243 r"controller/sub-agent|controller-subagent|controller owns|"
4344 r'"role"\s*:\s*"(?:controller|subagent)"' ,
@@ -59,6 +60,18 @@ def candidate_files() -> list[Path]:
5960
6061
6162def main () -> int :
63+ for token in (
64+ "primary_agent" ,
65+ "primary_review" ,
66+ "side_agent" ,
67+ "handoff_agent" ,
68+ "agent_profile_v0" ,
69+ "primary_checkout" ,
70+ ):
71+ assert LEGACY_PATTERN .search (token ), token
72+ for domain_term in ("primary_reviewers" , "primary_review_score" ):
73+ assert not LEGACY_PATTERN .search (domain_term ), domain_term
74+
6275 violations : list [str ] = []
6376 for path in candidate_files ():
6477 if path in ALLOWED_LEGACY_PATHS :
You can’t perform that action at this time.
0 commit comments