---
slug: "Loop"
name: "Loop"
type: "Primitives"
layer: "Infrastructure"
ref: "Loop#37f9"
sema_id: "sema:Loop#mh:SHA-256:37f953c0b21b9b0c72a639c4e1a54354faa71f07905531d271f6bbf40c341603"
tags: ["Infrastructure","Primitives"]
updated: 2026-11-11
mindscape: "bootstrap"
index_url: https://mindscape.world/scapes/bootstrap.json
url: https://mindscape.world/bootstrap/Loop/
related: ["Condition","Work","Agent","Cyclic","DepthGovernor","EvaluatorOptimizer","Monitor","OODA","PracticeResponseReview","ReAct","Resonate","RolloutWatch","RootHashGossip","SocraticLoop","Spiralback","SteelmanCheck","SunkCostIgnore","PracticeResponseReview#a24f","Spiralback#f9b7"]
---

# Loop

Repeated execution cycle

Layer: Infrastructure · Category: Primitives

## Mechanism

A control flow structure that repeats a sequence of [Work](https://mindscape.world/scapes/bootstrap/Work.md) until a specific [Condition](https://mindscape.world/scapes/bootstrap/Condition.md) is met. Essential for feedback, learning, and persistent processes.

## Invariants

- Termination Guarantee: Must have a proven exit condition (or explicit Daemon mode).
- Progress: State must change between iterations to avoid infinite freeze.

## Failure modes

—

## Builds on

- [Condition](https://mindscape.world/scapes/bootstrap/Condition.md) (Infrastructure; Accepts)
- [Work](https://mindscape.world/scapes/bootstrap/Work.md) (Infrastructure; Composes with)

## Used by

- [Agent](https://mindscape.world/scapes/bootstrap/Agent.md) (Mind; References)
- [Cyclic](https://mindscape.world/scapes/bootstrap/Cyclic.md) (Infrastructure; References)
- [DepthGovernor](https://mindscape.world/scapes/bootstrap/DepthGovernor.md) (Mind; References)
- [EvaluatorOptimizer](https://mindscape.world/scapes/bootstrap/EvaluatorOptimizer.md) (Society; References)
- [Monitor](https://mindscape.world/scapes/bootstrap/Monitor.md) (Infrastructure; Composes with)
- [OODA](https://mindscape.world/scapes/bootstrap/OODA.md) (Mind; References)
- [PracticeResponseReview](https://mindscape.world/scapes/bootstrap/PracticeResponseReview.md) (Mind; References)
- [ReAct](https://mindscape.world/scapes/bootstrap/ReAct.md) (Mind; References)
- [Resonate](https://mindscape.world/scapes/bootstrap/Resonate.md) (Society; References)
- [RolloutWatch](https://mindscape.world/scapes/bootstrap/RolloutWatch.md) (Society; Composes with)
- [RootHashGossip](https://mindscape.world/scapes/bootstrap/RootHashGossip.md) (Society; References)
- [SocraticLoop](https://mindscape.world/scapes/bootstrap/SocraticLoop.md) (Mind; References)
- [Spiralback](https://mindscape.world/scapes/bootstrap/Spiralback.md) (Mind; References)
- [SteelmanCheck](https://mindscape.world/scapes/bootstrap/SteelmanCheck.md) (Mind; References)
- [SunkCostIgnore](https://mindscape.world/scapes/bootstrap/SunkCostIgnore.md) (Mind; References)

## Identity

- Sema ID: `sema:Loop#mh:SHA-256:37f953c0b21b9b0c72a639c4e1a54354faa71f07905531d271f6bbf40c341603`
- Ref: `Loop#37f9`
- Supersedes:
  - `sema:Loop#mh:SHA-256:fb2e7eeab0b569d64f7e74defeec56aeccf5abdb6c5cd4a0ce80c397ebc5d593`
  - `sema:Loop#mh:SHA-256:984a20b35090934ca5ea1f97f2026b6be48b3805ddc0802f32ba66fe6bfcaf87`

## Links

- [Pattern page](https://mindscape.world/bootstrap/Loop/)
- [View in the interactive graph](https://mindscape.world/bootstrap/#Loop)
- [JSON](https://mindscape.world/scapes/bootstrap/Loop.json)
- [Index of all patterns](https://mindscape.world/scapes/bootstrap.json)
