diff --git a/agents/prompts/pm.md b/agents/prompts/pm.md index a42787b..baa2cfb 100644 --- a/agents/prompts/pm.md +++ b/agents/prompts/pm.md @@ -131,10 +131,6 @@ Return ONLY valid JSON (no markdown, no explanation): } ``` -Valid values for `status`: `"done"`, `"blocked"`. - -If status is "blocked", include `"blocked_reason": "..."` and `"analysis": "..."` explaining why the task cannot be planned. - ## Blocked Protocol If you cannot plan the pipeline (task is completely ambiguous, no information to work with, or explicitly outside the system scope), return this JSON **instead of** the normal output: diff --git a/agents/runner.py b/agents/runner.py index 2c2bbb5..5a7c295 100644 --- a/agents/runner.py +++ b/agents/runner.py @@ -1800,7 +1800,7 @@ def run_pipeline( pass else: # Review mode: wait for manual approval - models.update_task(conn, task_id, status="review") + models.update_task(conn, task_id, status="review", execution_mode="review") # Run post-pipeline hooks (failures don't affect pipeline status) try: diff --git a/core/context_builder.py b/core/context_builder.py index a7215c2..f53d2f5 100644 --- a/core/context_builder.py +++ b/core/context_builder.py @@ -332,7 +332,6 @@ def format_prompt(context: dict, role: str, prompt_template: str | None = None) sections.append("") # Revision context: director's comment + agent's previous output - task = context.get("task") if task and task.get("revise_comment"): sections.append("## Director's revision request:") sections.append(task["revise_comment"])