Workspace Intelligence / JSON Schema
Workspai Architecture Change Lease
Defines the versioned architecture change lease v1 boundary used by Workspai and its consumers.
- Schema version
workspai.architecture-change-lease.v1- Contract path
contracts/workspace-intelligence/architecture-change-lease.v1.json- Publication
- json-schema
- Defined fields
- 23
- Artifact bindings
- 1
Why this contract exists
Architecture role
Defines a versioned interoperability boundary used by Workspai and contract-aware consumers.
Consumption boundary
- • Workspai CLI
- • Workspace Intelligence consumers
- • IDEs and agents
Related commands
Commands are linked only when the runtime contract identifies a direct production relationship. Supporting contracts may be consumed without having a single producer command.
Produced artifacts
These durable files are emitted by registered commands and validated against this contract.
| Artifact path | Schema | Producer |
|---|---|---|
| .workspai/changes/change-id/lease.json | workspai.architecture-change-lease.v1 | workspai change begin |
Field reference
Every declared schema property or published capability path is listed here. Required means the contract declares or publishes that field at the shown boundary.
| Field path | Type | Required | Meaning | Constraints |
|---|---|---|---|---|
| baseline | object | Yes | Defines the baseline value at this contract boundary. | additionalProperties: false |
| baseline.graph | object | Yes | Defines the graph value at this contract boundary. | additionalProperties: false |
| baseline.graph.artifact | string | Yes | Defines the artifact value at this contract boundary. | minLength: 1 |
| baseline.graph.digest | reference | Yes | Defines the digest value at this contract boundary. | ref: decision-event.v1.json#/$defs/digest |
| baseline.graph.inputHash | reference | Yes | Defines the inputhash value at this contract boundary. | ref: decision-event.v1.json#/$defs/sha256 |
| baseline.graph.role | string | Yes | Defines the role value at this contract boundary. | minLength: 1 |
| baseline.graph.schemaVersion | string | Yes | Defines the schemaversion value at this contract boundary. | minLength: 1 |
| baseline.model | reference | Yes | Defines the model value at this contract boundary. | ref: decision-event.v1.json#/$defs/artifactReference |
| changeId | string | Yes | Defines the changeid value at this contract boundary. | pattern: ^change-[a-z0-9][a-z0-9-]{7,95}$ |
| createdAt | string | Yes | Defines the createdat value at this contract boundary. | format: date-time |
| generation | reference | Yes | Defines the generation value at this contract boundary. | ref: decision-event.v1.json#/$defs/sha256 |
| goalId | string | Yes | Defines the goalid value at this contract boundary. | minLength: 1 |
| privateMaterialization | object | Yes | Defines the privatematerialization value at this contract boundary. | additionalProperties: false |
| privateMaterialization.artifact | string | Yes | Defines the artifact value at this contract boundary. | minLength: 1 |
| privateMaterialization.authoritative | boolean | Yes | Defines the authoritative value at this contract boundary. | const: false |
| privateMaterialization.digest | reference | Yes | Defines the digest value at this contract boundary. | ref: decision-event.v1.json#/$defs/digest |
| privateMaterialization.portable | boolean | Yes | Defines the portable value at this contract boundary. | const: false |
| privateMaterialization.role | string | Yes | Defines the role value at this contract boundary. | const: "hash-bound-baseline-cache" |
| schemaVersion | string | Yes | Defines the schemaversion value at this contract boundary. | const: "workspai.architecture-change-lease.v1" |
| scope | reference | Yes | Defines the scope value at this contract boundary. | ref: decision-event.v1.json#/$defs/scope |
| semantics | string | Yes | Defines the semantics value at this contract boundary. | const: "optimistic-generation-guard" |
| workspace | object | Yes | Defines the workspace value at this contract boundary. | additionalProperties: false |
| workspace.name | string | Yes | Defines the name value at this contract boundary. | minLength: 1 |
Canonical machine-readable definition
The raw synchronized contract remains authoritative. The educational sections above are projections of this definition.
Show raw JSON
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://workspai.dev/schemas/workspace-intelligence/architecture-change-lease.v1.json",
"title": "Workspai Architecture Change Lease",
"type": "object",
"required": [
"schemaVersion",
"changeId",
"goalId",
"createdAt",
"workspace",
"scope",
"baseline",
"generation",
"semantics",
"privateMaterialization"
],
"properties": {
"schemaVersion": {
"const": "workspai.architecture-change-lease.v1"
},
"changeId": {
"type": "string",
"pattern": "^change-[a-z0-9][a-z0-9-]{7,95}$"
},
"goalId": {
"type": "string",
"minLength": 1
},
"createdAt": {
"type": "string",
"format": "date-time"
},
"workspace": {
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": false
},
"scope": {
"$ref": "decision-event.v1.json#/$defs/scope"
},
"baseline": {
"type": "object",
"required": [
"model",
"graph"
],
"properties": {
"model": {
"$ref": "decision-event.v1.json#/$defs/artifactReference"
},
"graph": {
"type": "object",
"required": [
"role",
"artifact",
"schemaVersion",
"digest",
"inputHash"
],
"properties": {
"role": {
"type": "string",
"minLength": 1
},
"artifact": {
"type": "string",
"minLength": 1
},
"schemaVersion": {
"type": "string",
"minLength": 1
},
"digest": {
"$ref": "decision-event.v1.json#/$defs/digest"
},
"inputHash": {
"$ref": "decision-event.v1.json#/$defs/sha256"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
"generation": {
"$ref": "decision-event.v1.json#/$defs/sha256"
},
"semantics": {
"const": "optimistic-generation-guard"
},
"privateMaterialization": {
"type": "object",
"required": [
"artifact",
"role",
"portable",
"authoritative",
"digest"
],
"properties": {
"artifact": {
"type": "string",
"minLength": 1
},
"role": {
"const": "hash-bound-baseline-cache"
},
"portable": {
"const": false
},
"authoritative": {
"const": false
},
"digest": {
"$ref": "decision-event.v1.json#/$defs/digest"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}