---
title: "decompose"
description: "Break problem into subproblems"
canonical: "https://acs.synapti.ai/capabilities/decompose/"
last_updated: "2026-11-16T01:14:10Z"
---

# decompose

Break problem into subproblems

Generated from [schemas/capability_ontology.yaml](https://github.com/synaptiai/agent-capability-standard/blob/main/schemas/capability_ontology.yaml), [skills/decompose/SKILL.md](https://github.com/synaptiai/agent-capability-standard/blob/main/skills/decompose/SKILL.md) at commit 18c38b74ac21. Ontology version 2.2.0.

Layer: [REASON](https://acs.synapti.ai/layers/reason/index.md)

## Safety

| Property | Value |
| --- | --- |
| Risk | Low |
| Changes state | No |
| Needs checkpoint | No |
| Needs approval | No |
| Overridable | No |
| Blocked from autonomy | No |

No ordering edge and no approval or checkpoint flag constrains where decompose runs in a step list, and no conflicts_with edge keeps it out of a parallel group.

## Relationships

**Figure: Relationships of decompose: 1 relationship with 1 capability.** decompose has 1 relationship with 1 capability: 1 with edges out of it.

| Capability | Row | Relationships |
| --- | --- | --- |
| [`delegate`](https://acs.synapti.ai/capabilities/delegate/index.md) | Edges out of decompose | `enables` (out of) |

- `enables`: Unlocks [`delegate`](https://acs.synapti.ai/capabilities/delegate/index.md)

## Contract

**Figure: Contract of decompose: 3 inputs (1 required), 7 outputs.** decompose takes 3 inputs, 1 required (filled pin) and 2 optional (hollow pin), and returns 7 outputs. The tables below list every field.

### Inputs

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `problem` | string | Yes | Problem to decompose |
| `max_depth` | integer | No | Maximum decomposition depth |
| `strategy` | string | No | Decomposition strategy |

### Outputs

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `subproblems` | array | Yes | Component problems |
| `structure` | object | No | Problem hierarchy |
| `dependencies` | array | No | Subproblem dependencies |
| `evidence_anchors` | array of Anchor (or deprecated string or object) | Yes | What the output is based on, as evidence anchors (Standard v1.2 §6.5). An empty list grounds nothing, and the output is then marked inferred (§3.1). |
| `confidence` | number | Yes | The producer's probability that the output's claim is correct, self-reported unless the host documents a calibration (Standard v1.2 §4.1.1) From 0 to 1 |
| `inference_method` | string | No | How the output was reached when it is not grounded in evidence; with confidence it marks the output inferred (Standard v1.2 §3.1, §4.1.1). A producer should use model_knowledge, deduction, induction, abduction, analogy, statistical, simulation, assumption or an x- vendor value; a grounding policy (§5.20) requires one of them. |
| `uncertainty` | Uncertainty | No | The uncertainty of the output's principal value; its confidence equals the output's confidence (Standard v1.2 §4.1.1) |

The skill returns 10 fields: 5 are in decompose's output contract (3 required) and 5 are the skill's own, outside the contract; it leaves out 2 contract fields (inference_method, uncertainty).

| Field of the skill's output | In the output contract |
| --- | --- |
| `decomposition` | No, the skill's own |
| `subproblems` | Yes, required |
| `structure` | Yes, optional |
| `dependencies` | Yes, optional |
| `constraints` | No, the skill's own |
| `gaps` | No, the skill's own |
| `overlaps` | No, the skill's own |
| `confidence` | Yes, required |
| `evidence_anchors` | Yes, required |
| `assumptions` | No, the skill's own |
| `inference_method` | Yes, but the skill leaves it out |
| `uncertainty` | Yes, but the skill leaves it out |

## Used in workflows

**Figure: decompose in workflows.** 3 workflows use decompose, in 3 steps in all; its steps are the squares in an ink ring, and the key under the strips names the other squares.

- [`multi_agent_orchestration`](https://acs.synapti.ai/workflows/multi-agent-orchestration/index.md): step 1
- [`information_research`](https://acs.synapti.ai/workflows/information-research/index.md): step 1
- [`task_delegation`](https://acs.synapti.ai/workflows/task-delegation/index.md): step 1

## Claude Code skill

**Figure: What the decompose skill's tools can do, against the ontology.** The skill may use 2 tools: 2 only read; the ontology marks decompose as read-only, and every tool only reads.

| What they can do | Tools |
| --- | --- |
| Only read | `Read`, `Grep` |
| Run commands, which can change state | none |
| Change files | none |

**Figure: The field names each step of the decompose procedure uses.** 5 of the procedure's 7 steps use the name of an input or output field of the decompose skill as a word; 6 output fields of 10 are used by no step (decomposition, structure, constraints, confidence, evidence_anchors, assumptions).

| Step | Inputs it uses by name | Output fields it uses by name |
| --- | --- | --- |
| 1. Understand the goal | `problem` |  |
| 2. Identify major components |  |  |
| 3. Create subproblems |  | `subproblems` |
| 4. Define dependencies |  | `subproblems`, `dependencies` |
| 5. Add acceptance criteria |  |  |
| 6. Validate completeness |  | `subproblems`, `gaps`, `overlaps` |
| 7. Recurse if needed |  | `subproblems` |

**Figure: The field names each verification check of the decompose skill uses.** 2 of the 5 checks use the name of an input or output field as a word; 8 output fields of 10 are named by no check (decomposition, subproblems, structure, dependencies, constraints, confidence, evidence_anchors and assumptions).

| Check | Inputs it uses by name | Output fields it uses by name |
| --- | --- | --- |
| 1. All aspects of goal covered |  |  |
| 2. No gaps in coverage |  | `gaps` |
| 3. No significant overlaps |  | `overlaps` |
| 4. Acceptance criteria testable |  |  |
| 5. Dependencies form valid DAG |  |  |

**Figure: The neighbours the skill lists for decompose, checked against the ontology and the catalogs.** The skill lists 6 capabilities as common neighbours of decompose; 1 of them has an edge with it in the ontology, and 1 runs next to it, in that order, in a catalog workflow (plan most often, 1 time). Under each tile, an edge reads from its source to its target, with decompose's symbol in its place: "requires Dc" is a requires edge from the tile's capability to decompose, so the tile's capability must run before decompose; "Dc precedes" is a precedes edge from decompose to the tile's capability.

| Listed as | Capability | Ontology edge | Next to it in a workflow |
| --- | --- | --- | --- |
| commonly follows | [`retrieve`](https://acs.synapti.ai/capabilities/retrieve/index.md) | none | never |
| commonly follows | [`observe`](https://acs.synapti.ai/capabilities/observe/index.md) | none | never |
| commonly follows | [`explain`](https://acs.synapti.ai/capabilities/explain/index.md) | none | never |
| commonly precedes | [`plan`](https://acs.synapti.ai/capabilities/plan/index.md) | none | 1 times |
| commonly precedes | [`compare`](https://acs.synapti.ai/capabilities/compare/index.md) | none | never |
| commonly precedes | [`delegate`](https://acs.synapti.ai/capabilities/delegate/index.md) | `enables` (into it) | never |

### Intent

Break down a complex goal into smaller, manageable subproblems with clear boundaries, dependencies, and acceptance criteria. Enable parallel work and incremental progress.

**Success criteria:**
- Goal fully decomposed (no gaps)
- Subproblems are independently verifiable
- Dependencies are explicit
- Acceptance criteria are testable
- Decomposition depth is appropriate

**Compatible schemas:**
- `schemas/output_schema.yaml`

### Inputs

| Parameter | Required | Type | Description |
|-----------|----------|------|-------------|
| `problem` | Yes | string | Problem to decompose |
| `max_depth` | No | integer | Maximum decomposition depth |
| `strategy` | No | string | Decomposition strategy |

Inputs not listed here are outside the capability's contract: a workflow step that binds them gets W604 (STANDARD v1.1 §5.5).

### Procedure

1) **Understand the goal**: Clarify what needs to be achieved
   - Parse the problem statement
   - Identify success criteria
   - Note implicit requirements
   - Determine scope boundaries

2) **Identify major components**: Find natural divisions
   - Functional areas
   - Phases or stages
   - User journeys
   - Technical layers

3) **Create subproblems**: Define each component
   - Clear, specific objective
   - Bounded scope
   - Measurable outcome
   - Independent when possible

4) **Define dependencies**: Map relationships
   - Which subproblems block others?
   - Which can proceed in parallel?
   - Are there shared resources?
   - Create dependency graph (`dependencies`, one edge per blocking pair)

5) **Add acceptance criteria**: Specify done conditions
   - Testable conditions
   - Measurable outcomes
   - Quality requirements
   - Edge case handling

6) **Validate completeness**: Check coverage
   - Do subproblems cover entire goal?
   - Any gaps or overlaps?
   - Are boundaries clear?
   - Is granularity consistent?

7) **Recurse if needed**: Decompose large subproblems
   - Check against target granularity
   - Decompose subproblems that are too large
   - Maintain consistent depth
   - Stop when atomic enough

### Output Contract

Return a structured object:

```yaml
decomposition:
  goal: string  # Original goal
  depth: integer  # Levels of decomposition
  total_subproblems: integer
  granularity: epic | story | task
subproblems:
  - id: string
    name: string
    description: string
    parent: string | null  # Parent subproblem ID
    level: integer  # Depth in tree
    dependencies: array[string]
    acceptance_criteria:
      - criterion: string
        testable: boolean
        priority: required | optional
    estimated_effort: string | null
    parallelizable: boolean
structure:  # Problem hierarchy
  goal: string  # Root of the tree
  children:
    - id: string
      name: string
      children: array  # Nested subproblems
dependencies:  # Subproblem dependencies (edges of the DAG)
  - from: string  # Subproblem that must finish first
    to: string  # Subproblem that depends on it
constraints:
  - type: scope | time | resource | technical
    description: string
    affects: array[string]  # Subproblem IDs
gaps:
  - description: string
    suggestion: string
overlaps:
  - subproblems: array[string]
    description: string
    resolution: string
confidence: number  # probability that the subtasks together achieve the task (§4.1.1)
evidence_anchors: [{ref: "source:ref", kind: record}]
assumptions: []
```

#### Field Definitions

| Field | Type | Description |
|-------|------|-------------|
| `decomposition` | object | Summary of decomposition |
| `subproblems` | array\<object\> | Flat list of all subproblems |
| `structure` | object | Problem hierarchy: the goal and its tree of subproblems |
| `dependencies` | array\<object\> | Subproblem dependency edges (`from` must finish before `to`) |
| `constraints` | array | Boundaries affecting subproblems |
| `gaps` | array | Missing coverage identified |
| `overlaps` | array | Redundant coverage identified |
| `confidence` | number | Probability, 0.0-1.0, that the subtasks together achieve the task (§4.1.1) |
| `evidence_anchors` | array of evidence anchors (§6.5) | References to requirements or sources the decomposition rests on |
| `assumptions` | array | Assumptions that affect the decomposition |

### Examples

#### Example 1: Feature Decomposition

**Input:**
```yaml
problem: "Implement user authentication system"
strategy: "by user story"
```

The work is scoped to the web application only, on a 4-week timeline.

**Output:**
```yaml
decomposition:
  goal: "Implement user authentication system"
  depth: 2
  total_subproblems: 8
  granularity: story
subproblems:
  - id: "SG-1"
    name: "User Registration"
    description: "Allow new users to create accounts"
    parent: null
    level: 1
    dependencies: []
    acceptance_criteria:
      - criterion: "User can register with email and password"
        testable: true
        priority: required
      - criterion: "Email verification sent on registration"
        testable: true
        priority: required
      - criterion: "Duplicate email rejected with clear message"
        testable: true
        priority: required
    estimated_effort: "3d"
    parallelizable: true
  - id: "SG-2"
    name: "User Login"
    description: "Allow existing users to authenticate"
    parent: null
    level: 1
    dependencies: ["SG-1"]
    acceptance_criteria:
      - criterion: "User can login with email and password"
        testable: true
        priority: required
      - criterion: "Failed login shows error without revealing which field wrong"
        testable: true
        priority: required
      - criterion: "Session created on successful login"
        testable: true
        priority: required
    estimated_effort: "2d"
    parallelizable: false
  - id: "SG-3"
    name: "Password Reset"
    description: "Allow users to recover account access"
    parent: null
    level: 1
    dependencies: ["SG-1"]
    acceptance_criteria:
      - criterion: "User can request password reset via email"
        testable: true
        priority: required
      - criterion: "Reset link expires after 24 hours"
        testable: true
        priority: required
      - criterion: "New password must meet complexity requirements"
        testable: true
        priority: required
    estimated_effort: "2d"
    parallelizable: true
  - id: "SG-4"
    name: "Session Management"
    description: "Manage user sessions securely"
    parent: null
    level: 1
    dependencies: ["SG-2"]
    acceptance_criteria:
      - criterion: "Sessions expire after 24 hours of inactivity"
        testable: true
        priority: required
      - criterion: "User can logout, invalidating session"
        testable: true
        priority: required
      - criterion: "Multiple sessions per user supported"
        testable: true
        priority: optional
    estimated_effort: "2d"
    parallelizable: false
  - id: "SG-5"
    name: "OAuth2 Integration"
    description: "Allow login via Google/GitHub"
    parent: null
    level: 1
    dependencies: ["SG-2"]
    acceptance_criteria:
      - criterion: "User can login via Google OAuth"
        testable: true
        priority: required
      - criterion: "User can login via GitHub OAuth"
        testable: true
        priority: required
      - criterion: "OAuth user linked to existing account if email matches"
        testable: true
        priority: required
    estimated_effort: "3d"
    parallelizable: true
  - id: "SG-6"
    name: "Rate Limiting"
    description: "Prevent brute force attacks"
    parent: null
    level: 1
    dependencies: ["SG-2"]
    acceptance_criteria:
      - criterion: "Max 5 failed login attempts per 15 minutes per IP"
        testable: true
        priority: required
      - criterion: "CAPTCHA shown after 3 failed attempts"
        testable: true
        priority: required
    estimated_effort: "1d"
    parallelizable: true
  - id: "SG-7"
    name: "Security Audit Logging"
    description: "Log all auth events for audit"
    parent: null
    level: 1
    dependencies: ["SG-2"]
    acceptance_criteria:
      - criterion: "All login attempts logged with timestamp and IP"
        testable: true
        priority: required
      - criterion: "Password changes logged"
        testable: true
        priority: required
      - criterion: "Logs retained for 90 days"
        testable: true
        priority: required
    estimated_effort: "1d"
    parallelizable: true
  - id: "SG-8"
    name: "Two-Factor Authentication"
    description: "Add optional 2FA for users"
    parent: null
    level: 1
    dependencies: ["SG-2", "SG-4"]
    acceptance_criteria:
      - criterion: "User can enable TOTP-based 2FA"
        testable: true
        priority: required
      - criterion: "Recovery codes provided on 2FA setup"
        testable: true
        priority: required
      - criterion: "2FA prompt on login when enabled"
        testable: true
        priority: required
    estimated_effort: "3d"
    parallelizable: false
structure:
  goal: "Implement user authentication system"
  children:
    - id: "SG-1"
      name: "User Registration"
      children: []
    - id: "SG-2"
      name: "User Login"
      children: []
    - id: "SG-3"
      name: "Password Reset"
      children: []
    - id: "SG-4"
      name: "Session Management"
      children: []
    - id: "SG-5"
      name: "OAuth2 Integration"
      children: []
    - id: "SG-6"
      name: "Rate Limiting"
      children: []
    - id: "SG-7"
      name: "Security Audit Logging"
      children: []
    - id: "SG-8"
      name: "Two-Factor Authentication"
      children: []
dependencies:
  - from: "SG-1"
    to: "SG-2"
  - from: "SG-1"
    to: "SG-3"
  - from: "SG-2"
    to: "SG-4"
  - from: "SG-2"
    to: "SG-5"
  - from: "SG-2"
    to: "SG-6"
  - from: "SG-2"
    to: "SG-7"
  - from: "SG-2"
    to: "SG-8"
  - from: "SG-4"
    to: "SG-8"
constraints:
  - type: scope
    description: "Web application only, no mobile"
    affects: ["SG-1", "SG-2", "SG-5"]
  - type: time
    description: "4 week timeline"
    affects: ["SG-8"]
gaps: []
overlaps: []
confidence: 0.9
evidence_anchors:
  - {ref: "requirement:auth-system", kind: record}
assumptions:
  - "Email service available for verification"
  - "OAuth provider apps already created"
  - "No existing user database to migrate"
```

**Evidence pattern:** Each subproblem has testable acceptance criteria, dependencies mapped.

### Verification

- [ ] All aspects of goal covered
- [ ] No gaps in coverage
- [ ] No significant overlaps
- [ ] Acceptance criteria testable
- [ ] Dependencies form valid DAG

**Verification tools:** Read (for requirement analysis)

### Safety Constraints

- `mutation`: false
- `requires_checkpoint`: false
- `requires_approval`: false
- `risk`: low

**Capability-specific rules:**
- Always verify completeness
- Flag gaps explicitly
- Resolve overlaps
- Ensure acceptance criteria are testable
- Note assumptions that affect decomposition

### Composition Patterns

**Commonly follows:**
- `retrieve` - Gather requirements
- `observe` - Understand existing system
- `explain` - Clarify goal before decomposing

**Commonly precedes:**
- `plan` - Plan and time-order decomposed subproblems
- `compare` - Order subproblems by priority
- `delegate` - Assign subproblems

**Anti-patterns:**
- Never decompose without understanding goal
- Never leave gaps unidentified
- Never skip acceptance criteria

**Workflow references:**
- See `reference/composition_patterns.md` for patterns that decompose a goal before planning
