Fix 11 automation gaps: dead-end phases, autopilot runtime, guard plugin, status.py bugs, Category 3 audit
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:
2026-06-15 17:42:17 -04:00
parent af66f5081d
commit 3480e4ecba
59 changed files with 679 additions and 13 deletions
+2 -6
View File
@@ -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}`);
}
},
}