---
library: "bootstrap"
slug: "Compose"
name: "Compose"
ref: "Compose#1960"
hash: "sema:Compose#mh:SHA-256:196091975a98531824eec411da641b3e07a8b11d7c807e5f666d45eda717f5f7"
type: "Strategy"
layer: "Mind"
version: "0.11.0"
root: "a6a3d1ff0f982ee30430c5b42f3784c8ec901fd68482cfc1bc30899c1e5e48c5"
license: null
url: "https://semahash.org/vocabularies/bootstrap/patterns/Compose"
---

# Compose

Building complex behavior from simple primitives

Mind · Strategy

## Mechanism

Recursive Assembly: Given solved subproblems, [Combine](https://semahash.org/vocabularies/bootstrap/patterns/Combine.md) solutions respecting interfaces. [Check](https://semahash.org/vocabularies/bootstrap/patterns/Check.md): does combined solution satisfy original problem constraints? If interaction effects emerge, add coordination layer or revise decomposition. It often employs [PromptChain](https://semahash.org/vocabularies/bootstrap/patterns/PromptChain.md) to sequentially feed sub-solutions into the integration step.

## Invariants

- Component outputs match downstream inputs.
- The composition graph is acyclic.
- Verified against the original problem, not only against its interfaces.

## Signature

- Combine(PromptChain)

## Preconditions

- Subproblem solutions available.
- Interface contracts defined.
- Composition order known if order-dependent.

## Postconditions

- Combined solution satisfies original problem.
- No interface violations.
- Emergent interactions handled.

## Failure modes

- Interface Mismatch: component outputs do not match the expected inputs of downstream components.
- Emergent interaction: every interface matches and the whole still fails the original constraints.

## Where this came from

—

## Builds on

- [Check](https://semahash.org/vocabularies/bootstrap/patterns/Check.md) (references)
- [Combine](https://semahash.org/vocabularies/bootstrap/patterns/Combine.md) (references)
- [PromptChain](https://semahash.org/vocabularies/bootstrap/patterns/PromptChain.md) (references)

## Used by

- [SynergisticMode](https://semahash.org/vocabularies/bootstrap/patterns/SynergisticMode.md) (references)

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: Compose#1960
- Hash: sema:Compose#mh:SHA-256:196091975a98531824eec411da641b3e07a8b11d7c807e5f666d45eda717f5f7

## Links

- Page: https://semahash.org/vocabularies/bootstrap/patterns/Compose
- JSON: https://semahash.org/vocabularies/bootstrap/patterns/Compose.json
- Library: https://semahash.org/vocabularies/bootstrap
- Library index: https://semahash.org/vocabularies/bootstrap/index.json
