All contracts

Workspace Intelligence / JSON Schema

Workspai Doctor JSON Summary

Defines the versioned doctor summary v1 boundary used by Workspai and its consumers.

Schema version
workspai.doctor-summary.v1
Contract path
contracts/workspace-intelligence/doctor-summary.v1.json
Publication
json-schema
Defined fields
31
Artifact bindings
0

Why this contract exists

Architecture role

Carries structured evidence, findings, and verdicts across governance boundaries.

Consumption boundary

  • Workspai CLI
  • CI and release automation
  • Developers

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.

This is a supporting, capability, cache, compatibility, or consumer contract. It has no single direct producer command in the canonical Workspace Intelligence execution registry.

Produced artifacts

These durable files are emitted by registered commands and validated against this contract.

No canonical file artifact is registered for this contract. It may describe capabilities, embedded data, runtime exchange, or supporting state instead of a standalone report.

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
affectedProjectsarrayNoDefines the affectedprojects value at this contract boundary.
affectedProjects[].advisoryFindingsintegerYesDefines the advisoryfindings value at this contract boundary.minimum: 0
affectedProjects[].blockingCausesintegerYesDefines the blockingcauses value at this contract boundary.minimum: 0
affectedProjects[].namestringYesDefines the name value at this contract boundary.
affectedProjects[].pathstringYesDefines the path value at this contract boundary.
affectedProjects[].runtimeFamilystringYesDefines the runtimefamily value at this contract boundary.
affectedProjects[].unknownFindingsintegerYesDefines the unknownfindings value at this contract boundary.minimum: 0
affectedProjects[].verdictenumYesDefines the verdict value at this contract boundary.enum: passed, attention, blocked
artifactsobjectNoDefines the artifacts value at this contract boundary.
blockersarrayNoDefines the blockers value at this contract boundary.
blockers[].capabilityIdstringNoDefines the capabilityid value at this contract boundary.
blockers[].idstringYesDefines the id value at this contract boundary.
blockers[].issueClassstringYesDefines the issueclass value at this contract boundary.
blockers[].repairDispositionenumYesDefines the repairdisposition value at this contract boundary.enum: automatic, approval-required, manual, unavailable, not-needed
blockers[].symptomstringYesDefines the symptom value at this contract boundary.
countsreferenceYesDefines the counts value at this contract boundary.ref: doctor-receipt.v1.json#/$defs/counts
freshnessreferenceNoDefines the freshness value at this contract boundary.ref: doctor-receipt.v1.json#/$defs/freshness
generatedAtstringYesDefines the generatedat value at this contract boundary.format: date-time
nextActionsarrayNoDefines the nextactions value at this contract boundary.
projectobjectNoDefines the project value at this contract boundary.additionalProperties: false
project.frameworkstringYesDefines the framework value at this contract boundary.
project.namestringYesDefines the name value at this contract boundary.
project.pathstringYesDefines the path value at this contract boundary.
project.runtimeFamilystringYesDefines the runtimefamily value at this contract boundary.
schemaVersionstringYesDefines the schemaversion value at this contract boundary.const: "workspai.doctor-summary.v1"
scopeenumYesDefines the scope value at this contract boundary.enum: system, workspace, project
systemobjectNoDefines the system value at this contract boundary.
verdictenumYesDefines the verdict value at this contract boundary.enum: passed, attention, blocked
workspaceobject | nullNoDefines the workspace value at this contract boundary.additionalProperties: false
workspace.namestringYesDefines the name value at this contract boundary.
workspace.pathstringYesDefines the path 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://workspai.dev/schemas/workspace-intelligence/doctor-summary.v1.json",
  "title": "Workspai Doctor JSON Summary",
  "type": "object",
  "required": [
    "schemaVersion",
    "generatedAt",
    "scope",
    "verdict",
    "counts"
  ],
  "properties": {
    "schemaVersion": {
      "const": "workspai.doctor-summary.v1"
    },
    "generatedAt": {
      "type": "string",
      "format": "date-time"
    },
    "scope": {
      "enum": [
        "system",
        "workspace",
        "project"
      ]
    },
    "verdict": {
      "enum": [
        "passed",
        "attention",
        "blocked"
      ]
    },
    "counts": {
      "$ref": "doctor-receipt.v1.json#/$defs/counts"
    },
    "freshness": {
      "$ref": "doctor-receipt.v1.json#/$defs/freshness"
    },
    "workspace": {
      "type": [
        "object",
        "null"
      ],
      "required": [
        "name",
        "path"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "path": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "project": {
      "type": "object",
      "required": [
        "name",
        "path",
        "runtimeFamily",
        "framework"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "path": {
          "type": "string"
        },
        "runtimeFamily": {
          "type": "string"
        },
        "framework": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "affectedProjects": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "name",
          "path",
          "runtimeFamily",
          "verdict",
          "blockingCauses",
          "advisoryFindings",
          "unknownFindings"
        ],
        "properties": {
          "name": {
            "type": "string"
          },
          "path": {
            "type": "string"
          },
          "runtimeFamily": {
            "type": "string"
          },
          "verdict": {
            "enum": [
              "passed",
              "attention",
              "blocked"
            ]
          },
          "blockingCauses": {
            "type": "integer",
            "minimum": 0
          },
          "advisoryFindings": {
            "type": "integer",
            "minimum": 0
          },
          "unknownFindings": {
            "type": "integer",
            "minimum": 0
          }
        },
        "additionalProperties": false
      }
    },
    "blockers": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "id",
          "issueClass",
          "symptom",
          "repairDisposition"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "issueClass": {
            "type": "string"
          },
          "symptom": {
            "type": "string"
          },
          "repairDisposition": {
            "enum": [
              "automatic",
              "approval-required",
              "manual",
              "unavailable",
              "not-needed"
            ]
          },
          "capabilityId": {
            "type": "string"
          }
        },
        "additionalProperties": false
      }
    },
    "system": {
      "type": "object",
      "additionalProperties": {
        "type": "object",
        "required": [
          "status",
          "message"
        ],
        "properties": {
          "status": {
            "enum": [
              "ok",
              "warn",
              "error"
            ]
          },
          "message": {
            "type": "string"
          }
        },
        "additionalProperties": false
      }
    },
    "artifacts": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "nextActions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  },
  "allOf": [
    {
      "if": {
        "properties": {
          "scope": {
            "const": "workspace"
          }
        }
      },
      "then": {
        "required": [
          "workspace",
          "affectedProjects",
          "freshness",
          "artifacts"
        ]
      }
    },
    {
      "if": {
        "properties": {
          "scope": {
            "const": "project"
          }
        }
      },
      "then": {
        "required": [
          "workspace",
          "project",
          "blockers",
          "freshness",
          "artifacts"
        ]
      }
    },
    {
      "if": {
        "properties": {
          "scope": {
            "const": "system"
          }
        }
      },
      "then": {
        "required": [
          "system",
          "nextActions"
        ]
      }
    }
  ],
  "additionalProperties": false
}