(teammate: str)
| 627 | # ── Lead Protocol Tools ── |
| 628 | |
| 629 | def run_request_shutdown(teammate: str) -> str: |
| 630 | req_id = new_request_id() |
| 631 | pending_requests[req_id] = ProtocolState( |
| 632 | request_id=req_id, type="shutdown", |
| 633 | sender="lead", target=teammate, |
| 634 | status="pending", payload="") |
| 635 | BUS.send("lead", teammate, "Shut down.", "shutdown_request", |
| 636 | {"request_id": req_id}) |
| 637 | return f"Shutdown request sent to {teammate}" |
| 638 | |
| 639 | |
| 640 | def run_request_plan(teammate: str, task: str) -> str: |
nothing calls this directly
no test coverage detected