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 path | Schema | Producer |
|---|---|---|
| .workspai/changes/change-id/predicted-overlay.json | workspai.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 path | Type | Required | Meaning | Constraints |
|---|---|---|---|---|
| assumptions | array | Yes | Defines the assumptions value at this contract boundary. | — |
| baselineGeneration | reference | Yes | Defines the baselinegeneration value at this contract boundary. | ref: decision-event.v1.json#/$defs/sha256 |
| changeId | string | Yes | Defines the changeid value at this contract boundary. | pattern: ^change-[a-z0-9][a-z0-9-]{7,95}$ |
| generatedAt | string | Yes | Defines the generatedat value at this contract boundary. | format: date-time |
| goalId | string | Yes | Defines the goalid value at this contract boundary. | minLength: 1 |
| nonCanonical | boolean | Yes | Defines the noncanonical value at this contract boundary. | const: true |
| operations | array | Yes | Defines the operations value at this contract boundary. | — |
| operations[].confidence | enum | Yes | Defines the confidence value at this contract boundary. | enum: high, medium, low |
| operations[].operation | enum | Yes | Defines the operation value at this contract boundary. | enum: add, remove, change |
| operations[].rationale | string | Yes | Defines the rationale value at this contract boundary. | minLength: 1 |
| operations[].targetId | string | Yes | Defines the targetid value at this contract boundary. | minLength: 1 |
| operations[].targetKind | enum | Yes | Defines the targetkind value at this contract boundary. | enum: entity, relation, proof, artifact |
| predictedRisk | enum | Yes | Defines the predictedrisk value at this contract boundary. | enum: none, low, medium, high |
| proofEligible | boolean | Yes | Defines the proofeligible value at this contract boundary. | const: false |
| schemaVersion | string | Yes | Defines 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
}