---
slug: "Condition"
name: "Condition"
type: "Data Structures"
layer: "Infrastructure"
ref: "Condition#b480"
sema_id: "sema:Condition#mh:SHA-256:b480f3c4da11ba6d86f6d14e0fb8521268f3c4bb38588460f7ff4253ad8d78d5"
tags: ["Infrastructure","Data Structures"]
updated: 2026-11-11
mindscape: "bootstrap"
index_url: https://mindscape.world/scapes/bootstrap.json
url: https://mindscape.world/bootstrap/Condition/
related: ["Check","Contract","DepthGovernor","FeatureFlag","Gate","HeldRelease","Loop","Refine","State","TriGate","WhyClimb"]
---

# Condition

Interface for patterns that evaluate to a boolean truth-value

Layer: Infrastructure · Category: Data Structures

## Mechanism

A marker interface (Trait). Patterns implementing 'Condition' MUST provide an evaluation logic that returns a strict Boolean (True/False) based on provided context.

## Invariants

- Boolean Output: Result must be binary.
- Decidability: Must always return a value (or error), never hang.

## Failure modes

- Ambiguity: Returning 'Maybe' or probabilistic float where Boolean is required.

## Data schema

```json
{
  "type": "object",
  "required": [
    "predicate"
  ],
  "properties": {
    "predicate": {
      "type": "string",
      "description": "The boolean expression or check to evaluate"
    },
    "required_context": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Keys that must be present in context for evaluation"
    },
    "timeout_ms": {
      "type": "integer",
      "description": "Maximum time allowed for evaluation before returning Error"
    }
  }
}
```

## Builds on

—

## Used by

- [Check](https://mindscape.world/scapes/bootstrap/Check.md) (Infrastructure; References)
- [Contract](https://mindscape.world/scapes/bootstrap/Contract.md) (Infrastructure; Accepts)
- [DepthGovernor](https://mindscape.world/scapes/bootstrap/DepthGovernor.md) (Mind; References)
- [FeatureFlag](https://mindscape.world/scapes/bootstrap/FeatureFlag.md) (Society; References)
- [Gate](https://mindscape.world/scapes/bootstrap/Gate.md) (Infrastructure; References)
- [HeldRelease](https://mindscape.world/scapes/bootstrap/HeldRelease.md) (Society; References)
- [Loop](https://mindscape.world/scapes/bootstrap/Loop.md) (Infrastructure; Accepts)
- [Refine](https://mindscape.world/scapes/bootstrap/Refine.md) (Mind; Accepts)
- [State](https://mindscape.world/scapes/bootstrap/State.md) (Infrastructure; References)
- [TriGate](https://mindscape.world/scapes/bootstrap/TriGate.md) (Infrastructure; References)
- [WhyClimb](https://mindscape.world/scapes/bootstrap/WhyClimb.md) (Mind; References)

## Identity

- Sema ID: `sema:Condition#mh:SHA-256:b480f3c4da11ba6d86f6d14e0fb8521268f3c4bb38588460f7ff4253ad8d78d5`
- Ref: `Condition#b480`

## Links

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