chore(conductor): Mark track 'Saved Tool Presets' as complete

This commit is contained in:
2026-03-10 01:23:57 -04:00
parent 5f208684db
commit dcc13efaf7
24 changed files with 899 additions and 121 deletions

View File

@@ -65,7 +65,7 @@ def get_model_for_role(role: str, failure_count: int = 0) -> str:
elif role == 'tier2-tech-lead' or role == 'tier2':
return 'gemini-3-flash-preview'
elif role == 'tier3-worker' or role == 'tier3':
return 'gemini-3-flash-preview'
return 'gemini-3-flash-preview'
elif role == 'tier4-qa' or role == 'tier4':
return 'gemini-2.5-flash-lite'
else:
@@ -129,7 +129,7 @@ def get_dependencies(filepath: str) -> list[str]:
print(f"Error getting dependencies for {filepath}: {e}")
return []
def execute_agent(role: str, prompt: str, docs: list[str], debug: bool = False, failure_count: int = 0) -> str:
def execute_agent(role: str, prompt: str, docs: list[str], debug: bool = False, failure_count: int = 0, tool_preset: str | None = None) -> str:
model = get_model_for_role(role, failure_count)
# Advanced Context: Dependency skeletons for Tier 3
@@ -199,12 +199,14 @@ def execute_agent(role: str, prompt: str, docs: list[str], debug: bool = False,
try:
env = os.environ.copy()
env["GEMINI_CLI_HOOK_CONTEXT"] = "mma_headless"
if tool_preset is not None:
env["SLOP_TOOL_PRESET"] = tool_preset
if debug:
print("--- MMA DEBUG ---")
print(f"Executing Command: {cmd}")
print("Relevant Environment Variables:")
for key, value in env.items():
if key.startswith("GEMINI_CLI_"):
if key.startswith("GEMINI_CLI_") or key == "SLOP_TOOL_PRESET":
print(f" {key}={value}")
process = subprocess.run(cmd, input=command_text, capture_output=True, text=True, encoding='utf-8', env=env)
if debug:
@@ -257,6 +259,11 @@ def create_parser() -> argparse.ArgumentParser:
default=0,
help="Number of times this task has failed previously"
)
parser.add_argument(
"--tool-preset",
type=str,
help="The tool preset to use"
)
parser.add_argument(
"prompt",
type=str,
@@ -272,6 +279,7 @@ def main() -> None:
prompt = args.prompt
debug = args.debug
failure_count = args.failure_count
tool_preset = args.tool_preset
docs = []
if args.task_file and os.path.exists(args.task_file):
with open(args.task_file, "rb") as f:
@@ -282,6 +290,7 @@ def main() -> None:
# Only override debug if it's explicitly set in the task file (optional)
debug = task_data.get("debug", debug)
failure_count = task_data.get("failure_count", failure_count)
tool_preset = task_data.get("tool_preset", tool_preset)
if not role or not prompt:
parser.print_help()
return
@@ -293,8 +302,8 @@ def main() -> None:
for ref in file_refs:
if os.path.exists(ref) and ref not in docs:
docs.append(ref)
print(f"Executing role: {role} with docs: {docs} (debug={debug}, failure_count={failure_count})")
result = execute_agent(role, prompt, docs, debug=debug, failure_count=failure_count)
print(f"Executing role: {role} with docs: {docs} (debug={debug}, failure_count={failure_count}, tool_preset={tool_preset})")
result = execute_agent(role, prompt, docs, debug=debug, failure_count=failure_count, tool_preset=tool_preset)
print(result)
if __name__ == "__main__":