All contracts

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 pathSchemaProducer
.workspai/changes/change-id/lease.jsonworkspai.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 pathTypeRequiredMeaningConstraints
baselineobjectYesDefines the baseline value at this contract boundary.additionalProperties: false
baseline.graphobjectYesDefines the graph value at this contract boundary.additionalProperties: false
baseline.graph.artifactstringYesDefines the artifact value at this contract boundary.minLength: 1
baseline.graph.digestreferenceYesDefines the digest value at this contract boundary.ref: decision-event.v1.json#/$defs/digest
baseline.graph.inputHashreferenceYesDefines the inputhash value at this contract boundary.ref: decision-event.v1.json#/$defs/sha256
baseline.graph.rolestringYesDefines the role value at this contract boundary.minLength: 1
baseline.graph.schemaVersionstringYesDefines the schemaversion value at this contract boundary.minLength: 1
baseline.modelreferenceYesDefines the model value at this contract boundary.ref: decision-event.v1.json#/$defs/artifactReference
changeIdstringYesDefines the changeid value at this contract boundary.pattern: ^change-[a-z0-9][a-z0-9-]{7,95}$
createdAtstringYesDefines the createdat value at this contract boundary.format: date-time
generationreferenceYesDefines the generation value at this contract boundary.ref: decision-event.v1.json#/$defs/sha256
goalIdstringYesDefines the goalid value at this contract boundary.minLength: 1
privateMaterializationobjectYesDefines the privatematerialization value at this contract boundary.additionalProperties: false
privateMaterialization.artifactstringYesDefines the artifact value at this contract boundary.minLength: 1
privateMaterialization.authoritativebooleanYesDefines the authoritative value at this contract boundary.const: false
privateMaterialization.digestreferenceYesDefines the digest value at this contract boundary.ref: decision-event.v1.json#/$defs/digest
privateMaterialization.portablebooleanYesDefines the portable value at this contract boundary.const: false
privateMaterialization.rolestringYesDefines the role value at this contract boundary.const: "hash-bound-baseline-cache"
schemaVersionstringYesDefines the schemaversion value at this contract boundary.const: "workspai.architecture-change-lease.v1"
scopereferenceYesDefines the scope value at this contract boundary.ref: decision-event.v1.json#/$defs/scope
semanticsstringYesDefines the semantics value at this contract boundary.const: "optimistic-generation-guard"
workspaceobjectYesDefines the workspace value at this contract boundary.additionalProperties: false
workspace.namestringYesDefines 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
}