Back to patterns

Responsibility Partitioning

Responsibility & OwnershipOCLS OWN

Name the owner of each outcome and draw the boundary around it.


Context

When several agents pursue a shared goal inside one system, unclear roles and boundaries produce duplicated work, gray zones no one owns, and incidents that cannot be attributed to a single agent. As the system grows, the question "who is responsible for what" becomes unanswerable.

Problem

If you keep adding capability without separating roles, agents start to overlap and gray zones appear where no one is accountable. When something fails you cannot trace it to a specific agent, and there is no clear lever for improvement. In the end, no one is accountable for any of the system's behavior.

Forces

  • Independent agents reduce coordination cost, but partitioning too finely raises orchestration overhead.
  • Clear boundaries make agents testable and replaceable, but the wrong cut produces unnecessary handoffs.
  • Designing the perfect partition up front leads to analysis paralysis; skipping partitioning altogether produces a refactoring bill that explodes later.

Solution

Decompose the system's final goal into sub-responsibilities and assign each to exactly one agent. The criterion for the cut is "what can this agent explain about its work." Each agent decides and acts within its boundary; anything outside is delegated through an explicit handoff. Once partitioned, give each boundary a Module Contract so collaboration runs on contract, not custom.

Judgment question

Is this responsibility independent enough to live in its own agent?

Application scenario

Illustrative scenario — figures and company names in this page are hypothetical for explaining the pattern, not measured data.

An early customer-support system ran intake classification, response generation, escalation, and quality review inside a single agent. It worked at low volume. As traffic grew, the cracks appeared: when response quality dropped you could not tell whether the cause was misclassification or generation; tightening the escalation rule changed the response tone. After splitting into Intake, Response, Escalation, and QA agents, each could be evaluated and improved on its own, and incident attribution became immediate.

How it breaks

Squeezing every capability into one agent and "separating roles by prompt" produces interference between roles. Tuning the classification prompt changes the response tone; tightening escalation blocks normal responses. Every change has unpredictable side effects.

Implementation pattern bridge

  • Hierarchical Decomposition
  • Parallel Fan-out/Gather

A parent agent decomposes the goal into sub-responsibilities and delegates them. Parallelizable responsibilities are realized as Fan-out; sequentially dependent ones as Hierarchical.

Academic References

  • Architecting Agentic Communities using Design Patterns — arXiv 2601.03624
  • ATAM: Method for Architecture Evaluation — Carnegie Mellon SEI

Apply this pattern

Use the review skill in your repository, then compare the implementation decisions in the related articles. Check each example against your own permissions, data, and failure modes.

Related implementation notes

  • The development environment changes before the codeWhen agents started servers across projects and branches, ports and traffic became hard to follow. This case study covers building dev-proxy, an open source local proxy that combines subdomain routing, a terminal traffic inspector, and peers across machines, along with the problems that came up while rebuilding the environment for multi-project development.
  • The problem is solved. Why isn't it a product?I built, with coding agents, what an observability SaaS used to do for us. Collecting logs, analysing them, and improving the code from them all worked through AI, and I got exactly the interface I wanted. It still was not a product. Put the minimum conditions for solving a problem and for being a product side by side on the four-layer stack, and they part ways at the point where the person who uses a tool, the person who runs it, and the person accountable for it stop being the same person. Whether to build or buy then stops being a question of replacement and becomes a choice, stage by stage, of how much you are willing to be accountable for.
  • Agent design: lessons from an eight-day failureWe switched off an AI page-generation pipeline built over eight days and 145 commits, and replaced it with a tool built in a single day. The finer we sliced the steps and the harder we tuned the prompts, the wider the spread of results became. Quality rose only when we cut the steps an LLM judges and made the remaining ones scorable by code.

Related patterns

  • Module ContractDeclare the conditions, authority, and failure paths of every execution unit.
  • Context RoutingDesign information flow so each participant receives exactly what it needs.