style(fase1): ruff format spike modules

This commit is contained in:
Kjell Tore Guttormsen 2026-06-24 10:34:27 +02:00
commit c1317689f1
6 changed files with 123 additions and 26 deletions

View file

@ -109,7 +109,9 @@ def _caught_flaw(texts: Sequence[str]) -> bool:
return any(marker in blob for marker in _FLAW_MARKERS)
async def run_live(*, n_rounds: int = DEFAULT_ROUNDS, write_findings: bool = True) -> dict[str, object]:
async def run_live(
*, n_rounds: int = DEFAULT_ROUNDS, write_findings: bool = True
) -> dict[str, object]:
"""Gated empirical arm: run maker-checker vs single-agent against a reference
project carrying a planted flaw, measure, and write ``findings-a.md``.
@ -127,8 +129,12 @@ async def run_live(*, n_rounds: int = DEFAULT_ROUNDS, write_findings: bool = Tru
# --- maker-checker arm (3 roles) ---
proposer = Agent(client, "You propose one concrete cost-saving measure.", name="proposer")
critic = Agent(client, "You critique the proposal and flag any constraint violation.", name="critic")
validator = Agent(client, "You give the final valid/invalid decision with a reason.", name="validator")
critic = Agent(
client, "You critique the proposal and flag any constraint violation.", name="critic"
)
validator = Agent(
client, "You give the final valid/invalid decision with a reason.", name="validator"
)
names = ["proposer", "critic", "validator"]
counter = {"n": 0}