Files
cleveragents-core/tools/controller/mcp/__init__.py
T
drew 0bc734c020 style: ruff format the controller-state-machine branch (288 files)
Applies `ruff format` to the accumulated formatting debt on this branch.
Formatting-only — no behavioral changes. Required for CI/lint's format
gate (`nox -s format -- --check`), which the branch was failing on 288
tracked files that drifted from ruff's canonical style.

In-progress WIP files are intentionally excluded so this commit stays a
clean formatting-only diff.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-05-20 00:09:17 -04:00

23 lines
869 B
Python

"""Per-role response-builder MCP servers.
Each builder MCP is spawned per-attempt by the worker controller
(plan v9 decision: per-attempt subprocess). The worker (an OpenCode
LLM session) invokes the builder's tools to construct its response
piece-by-piece; the MCP validates each call against the V1 contract
and refuses invalid ones. ``{role}_finalize()`` emits the canonical
JSON output that the worker controller reads + strict-parses as
defense in depth.
Layout:
- ``_builder_base.py`` — shared builder state + invariant decorators.
- ``reviewer_builder.py`` etc. — per-role server modules.
Each server module is runnable as a script:
uv run python tools/controller/mcp/reviewer_builder.py
This is what the worker controller invokes per-attempt.
"""
from . import _builder_base # re-exported for tests; not for direct use
__all__ = ["_builder_base"]