Infrastructure · Data Structures

Constraint

Non-negotiable boundary condition

Definition

Mechanism

A boundary condition that must be satisfied by any valid solution. Constraints are non-compensatory: violating one constraint cannot be offset by exceeding another. They come in types: Resource (budget, time), Safety (harm prevention), Legal (compliance), Physical (laws of nature). Constraints propagate via Holographic Inheritance: child tasks inherit parent constraints.

Invariants

  1. Non-Compensatory: Violation of any constraint = rejection.
  2. Inheritance: Child constraints must include all parent constraints.
  3. Explicitness: All constraints must be stated, not implied.

Risks

Failure modes

  1. Constraint Relaxation

    Silently loosening a constraint to fit a preferred solution.

  2. Hidden Constraint

    A real-world constraint not captured in the specification.

  3. Constraint Conflict

    Two constraints are mutually exclusive (no solution exists).

Relationships

Root pattern: builds on nothing in this library.

Used by

References

AcceptSpec

Non-compensatory acceptance contract; consumer Verify yields Solution or FrameError

Mind

BoundaryReview

Test stated limits against practice, and enforce or restate them where the two disagree

Context

Portable execution environment with inherited constraints

FrameSpec

Structured problem definition artifact

RuleSet

Immutable collection of constraints

Mind

SelfReminder

Reinforce constraints in system prompt before each response

Spec

Rigorous requirement definition

Task

The atomic unit of intent

Reference

Data schema

{
  "type": "object",
  "required": [
    "constraint_type",
    "expression"
  ],
  "properties": {
    "constraint_type": {
      "type": "string",
      "enum": [
        "resource",
        "safety",
        "legal",
        "physical"
      ],
      "description": "Category of constraint"
    },
    "expression": {
      "type": "string",
      "description": "The constraint as a boolean expression or inequality"
    },
    "priority": {
      "type": "integer",
      "description": "Enforcement order when multiple constraints apply"
    },
    "source": {
      "type": "string",
      "description": "Origin of the constraint (parent task, law, etc.)"
    }
  }
}

Identity

Ref
Constraint#7013
Sema ID
sema:Constraint#mh:SHA-256:70136d525260a10eedf156aad1fe6c50510eadb10a89d063c7a85575b15708fc
Ring
0
Tier
1
Updated
2026-11-11