abort
Stop the current run. Captures a reason and, when applicable, a final lesson.
Stop the current Anvil run.
- The
reasonargument is required. If empty, exit with{error: "abort requires a reason", code: "E_ABORT_REASON_REQUIRED", details: {}}on stderr. - Read
anvil/state.json. Mark the in-flight task's status asfailedwith the given reason. - If the task has a pending Verify failure and a non-null lesson can be composed, invoke
resettingto append the lesson; otherwise escalate. - Print
{ok: true, aborted: true, reason: <reason>, taskId: <taskId>}on stdout and exit 0.