Infrastructure · Data Structures
Resource
Finite allocatable entity
Definition
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 allocation and mutex coordination.
Invariants
- Conservation: Resources cannot be created from nothing within a closed system
- Identity: Each resource instance has a unique handle
Risks
Failure modes
None stated.
Relationships
Builds on
References
Resource allocation limit
Used by
References
Ownership-based mutual exclusion
Deterministic partitioning of state
Society
Single current authority over a transferable resource reference
Reference
Data schema
{
"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"
}
}
}
}
}