Team topology executor for the OperationsCenter owned execution topology layer (Phase 2 of kodo replacement).
Implements a coordinator → workers → verifier loop:
- Coordinator: Anthropic API call that breaks the goal into stages
- Workers: Claude Code subprocesses that execute each stage
- Verifier: Anthropic API call that validates each stage output
Returns RuntimeResult from the RxP contract layer. Accepts RuntimeInvocation from OC via CxRP.
goal_text reaches the coordinator verbatim as its first input. Workers receive stage descriptions with goal embedded but NOT re-framed.
from team_executor.executor import TeamExecutorRunner
runner = TeamExecutorRunner(team_name="default", working_dir="/path/to/project")
result = runner.run("Implement feature X in the codebase")Team configs are YAML files loaded from:
{working_dir}/.team_executor/teams/{team_name}.yaml~/.team_executor/teams/{team_name}.yaml