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

# ConstraintFirst

Defining boundaries before content

Mind · Strategy

## Mechanism

The agent first generates the 'negative space' (the [Constraint](https://semahash.org/vocabularies/bootstrap/patterns/Constraint.md)s, safety rules, and format requirements), defining a rigid container. Only THEN does it generate the content to fill that container. It separates 'form' from 'function'. This prevents the generation of content that is creative but invalid.

## Invariants

- The [Constraint](https://semahash.org/vocabularies/bootstrap/patterns/Constraint.md) set is generated before any content.
- Constraints are fixed for the duration of a generation pass; revising them starts a new pass.

## Failure modes

- Over-constraining the solution space.
- Retrofitting: constraints are loosened mid-pass to admit content already generated, which reverses the pattern.

## Where this came from

—

## Builds on

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

## Used by

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

## Identity

- Library: bootstrap 0.11.0 (root a6a3d1ff0f98)
- Ref: ConstraintFirst#7d69
- Hash: sema:ConstraintFirst#mh:SHA-256:7d699d6c7f5c44f16125377bb24781286e9fec56f46a307130e6c8ae13473b4d

## Links

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