kin: auto-commit after pipeline
This commit is contained in:
parent
bf635f16ff
commit
12d95b2e13
4 changed files with 318 additions and 9 deletions
|
|
@ -246,11 +246,8 @@ class TestMissingDeptRoutes:
|
|||
route a task exclusively to the infra or research department via route template.
|
||||
"""
|
||||
|
||||
def test_infra_head_has_no_dedicated_dept_route(self):
|
||||
"""Confirms infra_head is NOT reachable via any standalone dept_infra route.
|
||||
|
||||
This test documents the gap. It will FAIL once a dept_infra route is added.
|
||||
"""
|
||||
def test_infra_head_has_dedicated_dept_route(self):
|
||||
"""dept_infra route exists in specialists.yaml with steps: [infra_head]."""
|
||||
import yaml
|
||||
with open("agents/specialists.yaml") as f:
|
||||
data = yaml.safe_load(f)
|
||||
|
|
@ -258,15 +255,15 @@ class TestMissingDeptRoutes:
|
|||
routes = data["routes"]
|
||||
dept_routes = {k: v for k, v in routes.items() if k.startswith("dept_")}
|
||||
|
||||
# Check no route exclusively using infra_head as its only step
|
||||
infra_only_routes = [
|
||||
name for name, route in dept_routes.items()
|
||||
if route["steps"] == ["infra_head"]
|
||||
]
|
||||
assert len(infra_only_routes) == 0, (
|
||||
f"Found unexpected dept_infra route(s): {infra_only_routes}. "
|
||||
"Update this test if route was intentionally added."
|
||||
assert len(infra_only_routes) == 1, (
|
||||
f"Expected exactly one dept_infra route with steps=[infra_head], "
|
||||
f"found: {infra_only_routes}"
|
||||
)
|
||||
assert "dept_infra" in infra_only_routes
|
||||
|
||||
def test_research_head_has_no_dedicated_dept_route(self):
|
||||
"""Confirms research_head is NOT reachable via any standalone dept_research route.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue