Skip to content
mentoor

Topic 2 of 5 · 4 min read

Tightly coupled work that breaks across agents

Goal: Explain from a failed run how two agents made conflicting implicit decisions because they did not share context.

When parts of a job depend on each other's decisions, splitting them across agents that cannot see those decisions produces pieces that do not fit. Coding and design are the clearest cases, because every choice (a name, a format, a style) constrains the rest.

Check yourself · 1 of 3

What does Cognition mean by saying that actions carry implicit decisions?

Choose one answer

Why it matters

Cognition, the team behind Devin, describes two principles from their own failures: share full context, not just messages, and remember that every action carries implicit decisions. Their example is a Flappy Bird clone split in two: one agent builds the background with its pipes, another builds the bird. The first builds a background that looks like Super Mario Bros. The second builds a bird that neither looks nor moves like the one in the game. Each did a reasonable job from its brief. The brief simply did not contain the decisions that mattered.

A subagent only knows what you put in its prompt. A one-line subtask hides dozens of unstated choices.

Where the conflicts come from

  1. Interfaces. One agent writes the API, another the client. Field names, status codes and error shapes are guessed on both sides.
  2. Style and conventions. Camel case versus snake case, how errors are wrapped, which logger to call.
  3. Assumptions about state. One agent assumes the migration has run, another assumes the old schema.
  4. Edits to the same files. Two agents rewrite the same function and the later write wins.

None of these fail loudly. Each piece passes its own tests. The failure shows up when the pieces meet.

Before and after

Weak plan: "Agent 1 builds the /orders endpoint. Agent 2 builds the order list screen." The two have only the sentence above.

// Agent 1 returns
{ "order_id": 41, "created": "2026-12-01T09:00:00Z", "total_cents": 1999 }

// Agent 2 reads
const { id, createdAt, total } = order; // undefined, undefined, undefined

Better plan: one agent does both ends in one context, or a human or the lead first writes the contract (field names, types, error codes) and both agents receive it in full. Even then, the contract must be complete, which is hard to do in advance.

What goes wrong

  • The merge step becomes the hard part. Reconciling two plausible, incompatible designs costs more than writing one.
  • A fix for one conflict creates another, because the agents still cannot see each other's changes.
  • Messages are not context. Passing a summary of what agent 1 did leaves out the reasoning and the dead ends that shaped it.

The Cemri et al. study of multi-agent failures reports the same pattern: many failures come from how agents coordinate and from misaligned assumptions, not from weak individual models.

Examples

Two agents, two date formats

The server agent returns "created": "2026-12-01T09:00:00Z". The mobile agent parses dd/MM/yyyy. Both read their brief correctly, because the brief said only "show the order date". The fix was a one-line contract: all timestamps are ISO 8601 in UTC.

Two edits to one function

Agent A adds retry logic to sendEmail. Agent B, started at the same time, adds logging to the same function from the original file. B writes last, so the retry code disappears. Neither saw the other's change, and no test covered retries.

Key points

  • Every action carries implicit decisions, and a short subtask brief does not pass them on.
  • Agents that cannot see each other's work guess at interfaces, naming, style and state, and the guesses differ.
  • Each piece can pass its own tests and still fail when the pieces are joined.
  • Passing a summary message is weaker than sharing the full context and trace that led to a decision.
  • If the parts must agree on a contract, write the full contract first or keep both sides with one agent.

Common mistakes

  • Splitting a feature by layer (server, client, tests) and giving each agent a one-line brief.
  • Assuming a summary from one agent carries the decisions the next agent needs.
  • Letting two agents edit the same file in parallel.
  • Judging each piece by its own tests and not testing the joined result.

Check yourself · 2 of 3

One agent builds an API that returns order_id; another builds a client that reads id. Each passes its own tests. What went wrong?

Choose one answer

Check yourself · 3 of 3

A team wants to split a feature across agents but the parts must agree on field names and error codes. Which step helps most?

Choose one answer

Practice items, not counted towards your mastery.

Start here

More for this topic