"""Backend interfaces for multi-agent execution."""

from dataclasses import dataclass
from typing import Protocol


@dataclass(slots=True)
class BackendResult:
    """Normalized result returned by a coordination backend."""

    success: bool
    summary: str


class CoordinationBackend(Protocol):
    """Protocol implemented by pluggable coordination backends."""

    def run(self, task: str) -> BackendResult:
        """Execute a team task and return a normalized result."""

