Redeo Docs
DocsLADR / Composing Patterns

Composition

Composing Patterns

Composing Patterns

How the canonical patterns stack into larger ladders. Walkthrough of the Crucible reference ladder, which composes ToT, reflexion, self-refine, self-consistency, and persistent memory.

Phases of a composed ladder

Each canonical pattern occupies a distinct phase of a composed ladder. The phases connect via field references and gates:

PhasePatternPurpose
GenerateTree-of-ThoughtsMulti-branch draft
VerifyToT gate, ReflexionPrune, retry if no survivors
RefineSelf-RefineSingle-pass improvement on the winner
AggregateSelf-ConsistencyReduce variance across remaining candidates
PersistVerify-then-PersistWrite the result plus lessons learned to slates

The hop ceiling plus spend cap bound the whole composition safely. A composed ladder that would exceed the ceiling is aborted at runtime with the best-so-far output, which is usually the highest-scoring candidate from the most recent completed phase.

Crucible walkthrough

The Crucible reference ladder composes ToT plus reflexion plus self-refine plus self-consistency plus persistent memory into one ladder. It is a worked example of how the canonical patterns stack into a larger strategy.

The composition works because each pattern is a self-contained phase. The phases connect via:

  • Field references. Each phase's ingest and multi_ingest fields name the previous phase's outputs.
  • Gates. The gate between phases decides whether to advance, retry (jump backward), or abort.
  • Slate writes. The final phase writes the result and a lessons-learned entry to a slate.

Read the Crucible walkthrough for the full annotated config.