Skip to content

Commit 1dd5d17

Browse files
authored
test(control-plane): scope peer hierarchy boundary tokens (#1810)
1 parent 8bab383 commit 1dd5d17

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

examples/control_plane/peer-agent-hard-cut-boundary-smoke.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
REPO_ROOT / "docs" / "product" / "agent-profile-contract.md",
3838
}
3939
LEGACY_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

6162
def 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:

0 commit comments

Comments
 (0)