All contracts

Workspace Intelligence / JSON Schema

Workspai Workspace Impact

Defines the versioned workspace impact v1 boundary used by Workspai and its consumers.

Schema version
workspace-impact.v1
Contract path
contracts/workspace-intelligence/workspace-impact.v1.json
Publication
embedded-type, json-schema
Defined fields
35
Artifact bindings
1

Why this contract exists

Architecture role

Relates workspace structure and change so downstream reasoning remains traceable.

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/reports/workspace-impact-last-run.jsonworkspace-impact.v1
workspai workspace impact --from .workspai/reports/workspace-model-diff-last-run.json --json

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
affectedProjectsarrayYesDefines the affectedprojects value at this contract boundary.
agentBriefobjectYesDefines the agentbrief value at this contract boundary.additionalProperties: false
agentBrief.bulletsarrayYesDefines the bullets value at this contract boundary.
agentBrief.headlinestringYesDefines the headline value at this contract boundary.
agentBrief.unsafeAssumptionsarrayYesDefines the unsafeassumptions value at this contract boundary.
criticalPathHotspotsarrayYesDefines the criticalpathhotspots value at this contract boundary.
criticalPathHotspots[].betweennessnumberYesDefines the betweenness value at this contract boundary.minimum: 0
criticalPathHotspots[].fanInintegerYesDefines the fanin value at this contract boundary.minimum: 0
criticalPathHotspots[].fanOutintegerYesDefines the fanout value at this contract boundary.minimum: 0
criticalPathHotspots[].projectstringYesDefines the project value at this contract boundary.
criticalPathHotspots[].reachintegerYesDefines the reach value at this contract boundary.minimum: 0
diffobjectYesDefines the diff value at this contract boundary.additionalProperties: true
diff.schemaVersionstringYesDefines the schemaversion value at this contract boundary.const: "workspace-model-diff.v1"
diffRefstringYesDefines the diffref value at this contract boundary.
fromRefstringYesDefines the fromref value at this contract boundary.
generatedAtstringYesDefines the generatedat value at this contract boundary.format: date-time
schemaVersionstringYesDefines the schemaversion value at this contract boundary.const: "workspace-impact.v1"
summaryobjectYesDefines the summary value at this contract boundary.additionalProperties: false
summary.affectedProjectsintegerYesDefines the affectedprojects value at this contract boundary.minimum: 0
summary.blastRadiusobjectYesDefines the blastradius value at this contract boundary.additionalProperties: false
summary.blastRadius.directlyAffectedintegerYesDefines the directlyaffected value at this contract boundary.minimum: 0
summary.blastRadius.graphEdgesintegerYesDefines the graphedges value at this contract boundary.minimum: 0
summary.blastRadius.maxDistanceintegerYesDefines the maxdistance value at this contract boundary.minimum: 0
summary.blastRadius.transitivelyAffectedintegerYesDefines the transitivelyaffected value at this contract boundary.minimum: 0
summary.changedbooleanYesDefines the changed value at this contract boundary.
summary.recommendedCommandsintegerYesDefines the recommendedcommands value at this contract boundary.minimum: 0
summary.riskenumYesDefines the risk value at this contract boundary.enum: none, low, medium, high, critical
summary.workspaceItemsintegerYesDefines the workspaceitems value at this contract boundary.minimum: 0
transitiveImpactarrayYesDefines the transitiveimpact value at this contract boundary.
verificationPlanarrayYesDefines the verificationplan value at this contract boundary.
workspaceobjectYesDefines the workspace value at this contract boundary.additionalProperties: false
workspace.namestringYesDefines the name value at this contract boundary.
workspace.profilestringNoDefines the profile value at this contract boundary.
workspace.typestringYesDefines the type value at this contract boundary.
workspaceImpactarrayYesDefines the workspaceimpact value at this contract boundary.

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://getrapidkit.com/schemas/workspace-impact.v1.json",
  "title": "Workspai Workspace Impact",
  "type": "object",
  "required": [
    "schemaVersion",
    "generatedAt",
    "fromRef",
    "diffRef",
    "workspace",
    "summary",
    "affectedProjects",
    "transitiveImpact",
    "criticalPathHotspots",
    "workspaceImpact",
    "verificationPlan",
    "agentBrief",
    "diff"
  ],
  "properties": {
    "schemaVersion": {
      "const": "workspace-impact.v1"
    },
    "generatedAt": {
      "type": "string",
      "format": "date-time"
    },
    "fromRef": {
      "type": "string"
    },
    "diffRef": {
      "type": "string"
    },
    "workspace": {
      "type": "object",
      "required": [
        "name",
        "type"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "profile": {
          "type": "string"
        },
        "type": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "summary": {
      "type": "object",
      "required": [
        "changed",
        "risk",
        "affectedProjects",
        "workspaceItems",
        "recommendedCommands",
        "blastRadius"
      ],
      "properties": {
        "changed": {
          "type": "boolean"
        },
        "risk": {
          "enum": [
            "none",
            "low",
            "medium",
            "high",
            "critical"
          ]
        },
        "affectedProjects": {
          "type": "integer",
          "minimum": 0
        },
        "workspaceItems": {
          "type": "integer",
          "minimum": 0
        },
        "recommendedCommands": {
          "type": "integer",
          "minimum": 0
        },
        "blastRadius": {
          "type": "object",
          "required": [
            "directlyAffected",
            "transitivelyAffected",
            "maxDistance",
            "graphEdges"
          ],
          "properties": {
            "directlyAffected": {
              "type": "integer",
              "minimum": 0
            },
            "transitivelyAffected": {
              "type": "integer",
              "minimum": 0
            },
            "maxDistance": {
              "type": "integer",
              "minimum": 0
            },
            "graphEdges": {
              "type": "integer",
              "minimum": 0
            }
          },
          "additionalProperties": false
        }
      },
      "additionalProperties": false
    },
    "affectedProjects": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "transitiveImpact": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "criticalPathHotspots": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "project",
          "fanIn",
          "fanOut",
          "reach",
          "betweenness"
        ],
        "properties": {
          "project": {
            "type": "string"
          },
          "fanIn": {
            "type": "integer",
            "minimum": 0
          },
          "fanOut": {
            "type": "integer",
            "minimum": 0
          },
          "reach": {
            "type": "integer",
            "minimum": 0
          },
          "betweenness": {
            "type": "number",
            "minimum": 0
          }
        },
        "additionalProperties": true
      }
    },
    "workspaceImpact": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "verificationPlan": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "agentBrief": {
      "type": "object",
      "required": [
        "headline",
        "bullets",
        "unsafeAssumptions"
      ],
      "properties": {
        "headline": {
          "type": "string"
        },
        "bullets": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "unsafeAssumptions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      },
      "additionalProperties": false
    },
    "diff": {
      "type": "object",
      "required": [
        "schemaVersion"
      ],
      "properties": {
        "schemaVersion": {
          "const": "workspace-model-diff.v1"
        }
      },
      "additionalProperties": true
    }
  },
  "additionalProperties": true
}