# CLI Coding Agent Failure Taxonomy v0.1

Canonical URL: https://bernstein.run/spec/agent-failure-taxonomy/v0.1
JSON Schema: https://bernstein.run/spec/agent-failure-taxonomy/v0.1.json
Changelog: https://bernstein.run/spec/agent-failure-taxonomy/CHANGELOG.md
Version: 0.1.0 | Published: 2026-05-19 | License: CC BY 4.0

Closed-set eight-category vocabulary for classifying failed or degraded CLI coding agent task outcomes, cross-referenced to NIST AI RMF 1.0 and ISO/IEC 42001.

## Categories (in gating priority order)

| Priority | ID | Severity | NIST AI RMF | ISO/IEC 42001 | Operational Signal |
| --- | --- | --- | --- | --- | --- |
| 1 | `test_regression` | critical | validity, robustness | A.6.2.5 (regression handling) | previously-green tests fail after the agent run |
| 2 | `timeout` | high | validity, robustness | A.6.2.7 (resource budgeting) | wall-clock or turn-count limit reached before completion signals satisfied |
| 3 | `scope_creep` | high | validity, security | A.7.2 (data and asset boundaries) | diff touches paths outside the declared owned_files set |
| 4 | `conflict` | high | robustness | A.6.2.8 (concurrency control) | merge or apply step fails because of an overlapping edit by another agent |
| 5 | `hallucination` | high | validity, security | A.6.2.9 (factuality and grounding) | code does not compile, or imports/calls reference non-existent symbols |
| 6 | `orientation_miss` | medium | validity | A.6.2.4 (performance evaluation of AI components) | more than half of turns spent in exploration before any artefact is produced |
| 7 | `incomplete` | medium | validity | A.6.2.6 (output verification) | one or more required completion signals are missing at run end |
| 8 | `context_miss` | medium | validity | A.5.2 (training and contextual data adequacy) | agent explicitly reports missing information or misreads the brief |

## Required Schema Fields

`task_id`, `category`, `severity` (`low` | `medium` | `high` | `critical`). Optional: `details`, `files_involved`, `agent`, `model`, `trace_url`, `timestamp`. Successful tasks emit no failure record.
