---
slug: "ConstraintFirst"
name: "ConstraintFirst"
type: "Strategy"
layer: "Mind"
ref: "ConstraintFirst#7d69"
sema_id: "sema:ConstraintFirst#mh:SHA-256:7d699d6c7f5c44f16125377bb24781286e9fec56f46a307130e6c8ae13473b4d"
tags: ["Mind","Strategy"]
updated: 2026-11-11
mindscape: "bootstrap"
index_url: https://mindscape.pages.dev/bootstrap/index.json
url: https://mindscape.pages.dev/bootstrap/ConstraintFirst/
related: ["Constraint","Bubble"]
---

# ConstraintFirst

Defining boundaries before content

Layer: Mind · Category: Strategy

## Mechanism

The agent first generates the 'negative space' (the [Constraint](https://mindscape.pages.dev/bootstrap/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://mindscape.pages.dev/bootstrap/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.

## Builds on

- [Constraint](https://mindscape.pages.dev/bootstrap/Constraint.md) (Infrastructure; References)

## Used by

- [Bubble](https://mindscape.pages.dev/bootstrap/Bubble.md) (Mind; References)

## Identity

- Sema ID: `sema:ConstraintFirst#mh:SHA-256:7d699d6c7f5c44f16125377bb24781286e9fec56f46a307130e6c8ae13473b4d`
- Ref: `ConstraintFirst#7d69`
- Supersedes:
  - `sema:ConstraintFirst#mh:SHA-256:10b8fcc765c09236232529dc50ab31552658027fe8df05d72bbf5c22725a7fa7`

## Links

- [Pattern page](https://mindscape.pages.dev/bootstrap/ConstraintFirst/)
- [View in the interactive graph](https://mindscape.pages.dev/bootstrap/#ConstraintFirst)
- [JSON](https://mindscape.pages.dev/bootstrap/ConstraintFirst.json)
- [Index of all patterns](https://mindscape.pages.dev/bootstrap/index.json)
