v0.12.0 — Auto Driver & Cross-Directory Plan Discovery
Auto driver
New megaplan auto --plan <name> drives a plan from its current state to a terminal outcome without human intervention. The driver is intentionally dumb: it reads status, runs next_step, and loops. All real judgment stays in the phase logic.
- Gate escalation policy — ESCALATE defaults to force-proceed. Opt out with
--on-escalate abortor--on-escalate fail. - Stall detection — bails after N consecutive iterations in the same state (default 5).
- Iteration cap — hard stop at 200 iterations by default to bound runaway loops.
- Structured exit codes — so shell callers and CI can branch on terminal state without parsing output:
| Exit code | Meaning |
|---|---|
0 |
done |
1 |
failed |
2 |
stalled |
3 |
escalated (under --on-escalate fail) |
4 |
iteration cap hit |
- Emits a JSON outcome with the final state snapshot and event log on exit.
Cross-directory plan discovery
resolve_plan_dir now walks both parent and child directories to locate plans by name, so megaplan commands work from anywhere in a project tree — not just the directory that contains .megaplan/.
megaplan list --tree— list plans in the current subtree.megaplan list --all— system-wide plan discovery across the whole workspace.
Standard robustness: init→plan transition
The standard robustness profile now picks up the init→plan transition that was previously only wired under heavier levels. Standard plans no longer stall after init waiting for a transition that never fires.
Tests
Added test_auto coverage for the driver loop, escalation policies, stall detection, and iteration caps.