Fix 11 automation gaps: dead-end phases, autopilot runtime, guard plugin, status.py bugs, Category 3 audit
CI / build (push) Has been cancelled
CI / build (push) Has been cancelled
- Fix decomposition:approved and human_intervention dead-end phases - Add scripts/autopilot.py: real drive_all() implementation - Fix guard plugin: throw Error instead of injecting user messages - Fix status.py: double continue, _require_state, --list-states - Add Category 3 (git-based modification) audit - Add Category 5 (stuck-task detection) audit - All 206 tests pass
This commit is contained in:
@@ -55,13 +55,9 @@ export default (async ({ client, project, directory }: PluginInput): Promise<Hoo
|
||||
? `BLOCKED: File is outside the project scope.`
|
||||
: reason === "wrong_phase"
|
||||
? `BLOCKED: Current task is not in an edit-allowed phase. Transition it to implement or doc_review first.`
|
||||
: `BLOCKED: ${reason || "Edit denied by automaton framework"}`
|
||||
: `BLOCKED: ${reason || "Edit denied by automaton framework"}`;
|
||||
|
||||
output.args = null as any
|
||||
client.chat({
|
||||
role: "user",
|
||||
content: `[AUTOMATON GUARD] ${msg}\n\nTo proceed:\n1. Create a task: python ~/.automaton/scripts/status.py --create-task <name> --project ${directory}\n2. Transition it: python ~/.automaton/scripts/status.py --transition implement --task <name> --project ${directory}`,
|
||||
})
|
||||
throw new Error(`[AUTOMATON GUARD] ${msg}\n\nTo proceed:\n1. Create a task: python ~/.automaton/scripts/status.py --create-task <name> --project ${directory}\n2. Transition it: python ~/.automaton/scripts/status.py --transition implement --task <name> --project ${directory}`);
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user