Skip to main content

Failed `anchor work` files a bug plan with the backtrace

· One min read
Anchor maintainers

When anchor work or anchor review cannot complete, the CLI now writes a private bug plan in that project's .plans/bugs/ so the failure is queued instead of living only in a terminal scrollback.

The file is .plans/bugs/cli-fail-<verb>-<slug>.local.md. It names the plan that was in flight, the command, the error, and a Python traceback when one exists. JSON includes result.incident_plan. A later failure of the same kind appends an ## Incident section.

Idle and usage errors do not file (empty queue, missing slug, holder mismatch). Set ANCHOR_NO_INCIDENT_PLANS=1 to turn it off. Working an auto-filed plan does not file another.