chore(mma): Clean up mma_exec.py and robustify visual simulation mocking
This commit is contained in:
@@ -1652,8 +1652,8 @@ def send(
|
||||
if 'Epic Initialization' in _custom_system_prompt:
|
||||
keyword = "Epic Initialization"
|
||||
mock_response_content = [
|
||||
{"id": "mock-track-1", "type": "Track", "module": "core", "persona": "Tech Lead", "severity": "Medium", "goal": "Mock Goal 1", "acceptance_criteria": ["criteria 1"]},
|
||||
{"id": "mock-track-2", "type": "Track", "module": "ui", "persona": "Frontend Lead", "severity": "Low", "goal": "Mock Goal 2", "acceptance_criteria": ["criteria 2"]}
|
||||
{"id": "mock-track-1", "type": "Track", "module": "core", "persona": "Tech Lead", "severity": "Medium", "goal": "Mock Goal 1", "acceptance_criteria": ["criteria 1"], "title": "Mock Goal 1"},
|
||||
{"id": "mock-track-2", "type": "Track", "module": "ui", "persona": "Frontend Lead", "severity": "Low", "goal": "Mock Goal 2", "acceptance_criteria": ["criteria 2"], "title": "Mock Goal 2"}
|
||||
]
|
||||
elif 'Sprint Planning' in _custom_system_prompt:
|
||||
keyword = "Sprint Planning"
|
||||
@@ -1662,7 +1662,8 @@ def send(
|
||||
{"id": "mock-ticket-2", "type": "Ticket", "goal": "Mock Ticket 2", "target_file": "file2.py", "depends_on": ["mock-ticket-1"], "context_requirements": "req 2"}
|
||||
]
|
||||
else:
|
||||
mock_response_content = "Mock AI Response"
|
||||
# Tier 3 mock response for ticket execution
|
||||
mock_response_content = "SUCCESS: Mock Tier 3 worker implemented the change. [MOCK OUTPUT]"
|
||||
|
||||
print(f"[MOCK AI] Triggered for prompt keyword: {keyword}")
|
||||
return json.dumps(mock_response_content)
|
||||
|
||||
Reference in New Issue
Block a user