---
slug: "RuleSet"
name: "RuleSet"
type: "Data Structures"
layer: "Infrastructure"
ref: "RuleSet#7ebf"
sema_id: "sema:RuleSet#mh:SHA-256:7ebf36ad0634307d189aa0545d3424f0d0783bf2a0df04dfafdecf64e0cc9146"
tags: ["Infrastructure","Data Structures"]
updated: 2026-11-11
mindscape: "bootstrap"
index_url: https://mindscape.pages.dev/bootstrap/index.json
url: https://mindscape.pages.dev/bootstrap/RuleSet/
related: ["Constitution","Constraint","InvariantFilter","OathBind","Ruleflip","Ruleflip#ba93"]
---

# RuleSet

Immutable collection of constraints

Layer: Infrastructure · Category: Data Structures

## Mechanism

A structured collection of [Constraint](https://mindscape.pages.dev/bootstrap/Constraint.md)s and invariants that defines a validity boundary. It serves as the immutable input for validation logic, distinct from a mutable policy or social [Constitution](https://mindscape.pages.dev/bootstrap/Constitution.md).

## Invariants

- Immutable once bound: a change is a new RuleSet, not an edit to the one already committed to.

## Failure modes

—

## Data schema

```json
{
  "type": "object",
  "required": [
    "constraints",
    "invariants"
  ],
  "properties": {
    "constraints": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "List of constraint hashes"
    },
    "invariants": {
      "type": "array",
      "description": "Invariants the set asserts, alongside its constraints. Named in the mechanism and previously absent."
    }
  }
}
```

## Builds on

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

## Used by

- [InvariantFilter](https://mindscape.pages.dev/bootstrap/InvariantFilter.md) (Society; Accepts)
- [OathBind](https://mindscape.pages.dev/bootstrap/OathBind.md) (Infrastructure; References)
- [Ruleflip](https://mindscape.pages.dev/bootstrap/Ruleflip.md) (Society; References)

## Identity

- Sema ID: `sema:RuleSet#mh:SHA-256:7ebf36ad0634307d189aa0545d3424f0d0783bf2a0df04dfafdecf64e0cc9146`
- Ref: `RuleSet#7ebf`
- Supersedes:
  - `sema:RuleSet#mh:SHA-256:8d85afc9e1f879dc43aaf8c92bd280aa8f1c81ece7dd1bd6f36c6ab47ddc0ecf`
  - `sema:RuleSet#mh:SHA-256:e91d3830512ca5aa5a8cf7f50ad7d186de4b82aeced94c8cb106258a8663e482`
  - `sema:RuleSet#mh:SHA-256:29462fee548f58cad67908506e4d68676b5a73ab4a60ca36e0cd71cd01412563`
  - `sema:RuleSet#mh:SHA-256:8395e6e9e6a221bbfe200335ad0dd145fc2bdaf7f1815704444ad05e08f9b363`

## Links

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