---
slug: "Resource"
name: "Resource"
type: "Data Structures"
layer: "Infrastructure"
ref: "Resource#0e5e"
sema_id: "sema:Resource#mh:SHA-256:0e5e5e6735fa9ee49f7e623029d977e435625b8ad05b28f83f962683a0ebb19b"
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/Resource/
related: ["Budget","Mutex","Shard","UniqueHandle"]
---

# Resource

Finite allocatable entity

Layer: Infrastructure · Category: Data Structures

## Mechanism

A finite, identifiable entity that can be allocated, consumed, or locked. Resources are individuated, may be renewable or exhaustible, and are subject to contention when demand exceeds supply. Forms the basis for [Budget](https://mindscape.pages.dev/bootstrap/Budget.md) allocation and mutex coordination.

## Invariants

- Conservation: Resources cannot be created from nothing within a closed system
- Identity: Each resource instance has a unique handle

## Failure modes

—

## Data schema

```json
{
  "type": "object",
  "required": [
    "resource_id",
    "type",
    "owner_id"
  ],
  "properties": {
    "resource_id": {
      "type": "string",
      "description": "Unique asset ID"
    },
    "type": {
      "type": "string",
      "enum": [
        "Compute",
        "Storage",
        "Bandwidth",
        "Token"
      ]
    },
    "quantity": {
      "type": "number"
    },
    "unit": {
      "type": "string"
    },
    "owner_id": {
      "type": "string",
      "description": "Current holder/owner"
    },
    "lock_state": {
      "type": "object",
      "properties": {
        "locked": {
          "type": "boolean"
        },
        "locked_until": {
          "type": "string",
          "format": "date-time"
        },
        "holder_id": {
          "type": "string"
        }
      }
    }
  }
}
```

## Builds on

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

## Used by

- [Mutex](https://mindscape.pages.dev/bootstrap/Mutex.md) (Infrastructure; References)
- [Shard](https://mindscape.pages.dev/bootstrap/Shard.md) (Infrastructure; References)
- [UniqueHandle](https://mindscape.pages.dev/bootstrap/UniqueHandle.md) (Society; References)

## Identity

- Sema ID: `sema:Resource#mh:SHA-256:0e5e5e6735fa9ee49f7e623029d977e435625b8ad05b28f83f962683a0ebb19b`
- Ref: `Resource#0e5e`
- Supersedes:
  - `sema:Resource#mh:SHA-256:9bb2dd733e5900d441d35d2c6e74f69dc4e4afe536c12adbcfc5863f3ada2922`
  - `sema:Resource#mh:SHA-256:f18a2d66448ccb0cc712adcc06c5344a6f3c38ba927fd5d642d5e50dbfdca898`

## Links

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