checkpoint: mma_orchestrator track

This commit is contained in:
2026-02-26 22:59:26 -05:00
parent f05fa3d340
commit d087a20f7b
17 changed files with 930 additions and 73 deletions

View File

@@ -176,12 +176,12 @@ def execute_agent(role: str, prompt: str, docs: list[str]) -> str:
if role in ['tier3', 'tier3-worker']:
system_directive = "STRICT SYSTEM DIRECTIVE: You are a stateless Tier 3 Worker (Contributor). " \
"Your goal is to implement specific code changes or tests based on the provided task. " \
"You have access to tools for reading and writing files. " \
"You have access to tools for reading and writing files, and run_shell_command for TDD verification. " \
"Follow TDD and return success status or code changes. No pleasantries, no conversational filler."
elif role in ['tier4', 'tier4-qa']:
system_directive = "STRICT SYSTEM DIRECTIVE: You are a stateless Tier 4 QA Agent. " \
"Your goal is to analyze errors, summarize logs, or verify tests. " \
"You have access to tools for reading files and exploring the codebase. " \
"You have access to tools for reading files, exploring the codebase, and run_shell_command for diagnostics. " \
"ONLY output the requested analysis. No pleasantries."
else:
system_directive = f"STRICT SYSTEM DIRECTIVE: You are a stateless {role}. " \
@@ -205,7 +205,7 @@ def execute_agent(role: str, prompt: str, docs: list[str]) -> str:
# We use -p 'mma_task' to ensure non-interactive (headless) mode and valid parsing.
ps_command = (
f"if (Test-Path 'C:\\projects\\misc\\setup_gemini.ps1') {{ . 'C:\\projects\\misc\\setup_gemini.ps1' }}; "
f"gemini -p 'mma_task' --output-format json --model {model}"
f"gemini -p 'mma_task' --allow-shell --output-format json --model {model}"
)
cmd = ['powershell.exe', '-NoProfile', '-Command', ps_command]