All contracts

Workspace Intelligence / JSON Schema

Workspai Predicted Architecture Change

Defines the versioned predicted architecture change v1 boundary used by Workspai and its consumers.

Schema version
workspai.predicted-architecture-change.v1
Contract path
contracts/workspace-intelligence/predicted-architecture-change.v1.json
Publication
json-schema
Defined fields
15
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/predicted-overlay.jsonworkspai.predicted-architecture-change.v1
workspai change predict

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
assumptionsarrayYesDefines the assumptions value at this contract boundary.
baselineGenerationreferenceYesDefines the baselinegeneration value at this contract boundary.ref: decision-event.v1.json#/$defs/sha256
changeIdstringYesDefines the changeid value at this contract boundary.pattern: ^change-[a-z0-9][a-z0-9-]{7,95}$
generatedAtstringYesDefines the generatedat value at this contract boundary.format: date-time
goalIdstringYesDefines the goalid value at this contract boundary.minLength: 1
nonCanonicalbooleanYesDefines the noncanonical value at this contract boundary.const: true
operationsarrayYesDefines the operations value at this contract boundary.
operations[].confidenceenumYesDefines the confidence value at this contract boundary.enum: high, medium, low
operations[].operationenumYesDefines the operation value at this contract boundary.enum: add, remove, change
operations[].rationalestringYesDefines the rationale value at this contract boundary.minLength: 1
operations[].targetIdstringYesDefines the targetid value at this contract boundary.minLength: 1
operations[].targetKindenumYesDefines the targetkind value at this contract boundary.enum: entity, relation, proof, artifact
predictedRiskenumYesDefines the predictedrisk value at this contract boundary.enum: none, low, medium, high
proofEligiblebooleanYesDefines the proofeligible value at this contract boundary.const: false
schemaVersionstringYesDefines the schemaversion value at this contract boundary.const: "workspai.predicted-architecture-change.v1"

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/predicted-architecture-change.v1.json",
  "title": "Workspai Predicted Architecture Change",
  "type": "object",
  "required": [
    "schemaVersion",
    "changeId",
    "goalId",
    "generatedAt",
    "baselineGeneration",
    "nonCanonical",
    "proofEligible",
    "operations",
    "assumptions",
    "predictedRisk"
  ],
  "properties": {
    "schemaVersion": {
      "const": "workspai.predicted-architecture-change.v1"
    },
    "changeId": {
      "type": "string",
      "pattern": "^change-[a-z0-9][a-z0-9-]{7,95}$"
    },
    "goalId": {
      "type": "string",
      "minLength": 1
    },
    "generatedAt": {
      "type": "string",
      "format": "date-time"
    },
    "baselineGeneration": {
      "$ref": "decision-event.v1.json#/$defs/sha256"
    },
    "nonCanonical": {
      "const": true
    },
    "proofEligible": {
      "const": false
    },
    "operations": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "operation",
          "targetKind",
          "targetId",
          "rationale",
          "confidence"
        ],
        "properties": {
          "operation": {
            "enum": [
              "add",
              "remove",
              "change"
            ]
          },
          "targetKind": {
            "enum": [
              "entity",
              "relation",
              "proof",
              "artifact"
            ]
          },
          "targetId": {
            "type": "string",
            "minLength": 1
          },
          "rationale": {
            "type": "string",
            "minLength": 1
          },
          "confidence": {
            "enum": [
              "high",
              "medium",
              "low"
            ]
          }
        },
        "additionalProperties": false
      }
    },
    "assumptions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "predictedRisk": {
      "enum": [
        "none",
        "low",
        "medium",
        "high"
      ]
    }
  },
  "additionalProperties": false
}