feat(mma): Implement HITL execution clutch and step-mode

This commit is contained in:
2026-02-26 20:14:27 -05:00
parent cfd20c027d
commit 1afd9c8c2a
4 changed files with 132 additions and 12 deletions

View File

@@ -36,6 +36,13 @@ class ConductorEngine:
)
run_worker_lifecycle(ticket, context)
def confirm_execution(payload: str) -> bool:
"""
Placeholder for external confirmation function.
In a real scenario, this might trigger a UI prompt.
"""
return True
def run_worker_lifecycle(ticket: Ticket, context: WorkerContext, context_files: List[str] = None):
"""
Simulates the lifecycle of a single agent working on a ticket.
@@ -74,7 +81,8 @@ def run_worker_lifecycle(ticket: Ticket, context: WorkerContext, context_files:
response = ai_client.send(
md_content="",
user_message=user_message,
base_dir="."
base_dir=".",
pre_tool_callback=confirm_execution if ticket.step_mode else None
)
if "BLOCKED" in response.upper():