Modern QA2026Orchestrator Communication Protocol — tiles
Log inJoin
29 / 108 · 03 Agentic Testing Architectures · The Orchestrator Pattern← prev⊞ allnext →☰ Read as one page

4.5Orchestrator Communication Protocol

The orchestrator and specialists communicate through structured messages:

@dataclass
class TaskAssignment:
    """Message from orchestrator to specialist."""
    task_id: str
    agent_type: str         # "ui", "api", "perf", "security"
    scenarios: list[str]    # Natural language test scenarios
    constraints: dict       # Time budget, step limits, etc.
    priority: int           # 0=low, 1=normal, 2=high

@dataclass
class TaskResult:
    """Message from specialist to orchestrator."""
    task_id: str
    agent_type: str
    tests_executed: int
    tests_passed: int
    tests_failed: int
    failures: list[dict]    # {scenario, reason, screenshot}
    duration_seconds: float
    tokens_used: int