Sebastian Kister
All posts

Agents Fail at the Specification, Not at the Model

The largest class of multi-agent failures starts before the first token, in a task nobody specified. A typed contract per agent addresses it by design.

3 min read

40%+of failures

in multi-agent systems trace back to specification and system design (UC Berkeley MAST, NeurIPS 2025)

The number

UC Berkeley’s MAST study analyzed execution traces from seven open-source multi-agent frameworks and found 14 failure modes in three groups: specification and system design, misalignment between agents, and task verification. The largest group is specification, at over 40% of all failures in the published analysis.

These are not model bugs. The authors conclude that the failures often stem from system design, not only from the limits of the model. In a 2026 talk, Berkeley’s Ion Stoica summarized one case: a protocol change alone added 9.4% with the same model. The same slides put the effort from prototype to production at roughly 10 to 50 times the prototype.

What a specification failure looks like

The MAST failure modes read like a list of missing fields:

  • Disobeying the task specification. The agent was never given an unambiguous goal.
  • Step repetition. Nothing told the agent how many attempts it had.
  • Unaware of termination. No success criterion, so no way to know it was done.
  • Premature termination and incorrect verification. “Done” was declared, not checked.
  • Information withholding. Agents exchanged free text instead of a defined result.

Every one of them can be prevented before execution starts.

The contract: six fields

In the architecture I work on, no agent spawns without a typed task contract. It has six fields, and each one closes a specific failure mode:

Field What it prevents
Goal anchor Drifting from the original task, and goals redirected by injected content
Success criterion Agents that never stop, or stop and declare success without a check
Budget Runaway loops in time, tokens and cost
Depth allowance Unbounded spawning of sub-agents
Error budget Silent failure: it defines how wrong an agent may be before it escalates to a human
Return schema Free-text handovers that lose or hide information

The lifecycle is fixed: spawn, execute, verify, report, dissolve. The contract is enforced at every spawn edge with constrained decoding, so a sub-agent can only return what the schema allows.

The security standards point the same way

The OWASP Top 10 for Agentic Applications 2026 puts agent goal hijack first, and Cycode’s summary names constraining objectives as a primary defense. A goal anchor is exactly that constraint, written down before the agent reads anything untrusted.

In February 2026, NIST’s Center for AI Standards and Innovation launched its AI Agent Standards Initiative, with a focus on agent identity and authorization.

Identity and authorization define who an agent is and what it may touch. The contract defines what it is for and when it must stop. A production system needs both.

Measure it

  • Contract coverage. The share of agent spawns with a complete, typed contract. The target is 100%.
  • Schema violations at spawn edges, per thousand runs.
  • Termination accuracy. The share of runs that end on the success criterion rather than on an exhausted budget.
  • Budget overruns per agent type.
  • Escalations to the human gate, and whether they fall over time.

These sit on top of the delivery metrics from AI Speed Is Felt, Not Measured and complete the harness around the model.

The rule

Recursion only under a typed contract. A prompt asks an agent to do something. A contract defines what done means.

Sources