"""Test doubles for the suites that run a cycle: the tmux window it runs in, and the prompts of an entry point that exists only in tests.""" from agent_cycle import tmux from agent_cycle.worker_prompts import WorkerPrompts WINDOW = tmux.Window("loop-proj", "item-7", "%4") # The prompts of an entry point that exists only in tests, so a cycle's tests read no real entry point's wording. PROMPTS = WorkerPrompts( driver="a-driver", fresh=lambda task, premises, route, project, facts: f"Fresh: {task}\n\n{premises}\n\n{facts}", resumed=lambda evidence, route, project: f"Resumed: {evidence}", rungs_held=lambda route, project: f" You hold {route.rung}.", quote_sources="the project's records", answer_destinations="the plan or a comment", records_named="the project's decisions", )