Workspace operations / JSON Schema
Workspai Workspace Run Evidence
Defines the versioned workspace run last v1 boundary used by Workspai and its consumers.
- Schema version
workspace-run-v1- Contract path
contracts/workspace-run-last.v1.json- Publication
- synced-supporting-contract
- Defined fields
- 25
- 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/reports/workspace-run-last.json | workspace-run-v1 | workspai workspace run |
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 |
|---|---|---|---|---|
| $defs.workspaceRunStageReport.durationMs | integer | Yes | Defines the durationms value at this contract boundary. | minimum: 0 |
| $defs.workspaceRunStageReport.enterpriseControls | object | No | Defines the enterprisecontrols value at this contract boundary. | additionalProperties: true |
| $defs.workspaceRunStageReport.gates | object | Yes | Defines the gates value at this contract boundary. | additionalProperties: true |
| $defs.workspaceRunStageReport.generatedAt | string | Yes | Defines the generatedat value at this contract boundary. | format: date-time |
| $defs.workspaceRunStageReport.options | object | Yes | Defines the options value at this contract boundary. | additionalProperties: true |
| $defs.workspaceRunStageReport.projects | array | Yes | Defines the projects value at this contract boundary. | — |
| $defs.workspaceRunStageReport.schemaVersion | enum | Yes | Defines the schemaversion value at this contract boundary. | enum: 1.0, workspace-run-stage-v1 |
| $defs.workspaceRunStageReport.selection | object | Yes | Defines the selection value at this contract boundary. | additionalProperties: true |
| $defs.workspaceRunStageReport.stage | enum | Yes | Defines the stage value at this contract boundary. | enum: init, test, build, start |
| $defs.workspaceRunStageReport.summary | object | Yes | Defines the summary value at this contract boundary. | additionalProperties: true |
| $defs.workspaceRunStageReport.summary.exitCode | integer | Yes | Defines the exitcode value at this contract boundary. | — |
| $defs.workspaceRunStageReport.summary.failed | integer | Yes | Defines the failed value at this contract boundary. | minimum: 0 |
| $defs.workspaceRunStageReport.summary.passed | integer | Yes | Defines the passed value at this contract boundary. | minimum: 0 |
| $defs.workspaceRunStageReport.summary.projectCount | integer | Yes | Defines the projectcount value at this contract boundary. | minimum: 0 |
| $defs.workspaceRunStageReport.summary.selectedCount | integer | Yes | Defines the selectedcount value at this contract boundary. | minimum: 0 |
| $defs.workspaceRunStageReport.summary.skipped | integer | Yes | Defines the skipped value at this contract boundary. | minimum: 0 |
| $defs.workspaceRunStageReport.workspacePath | string | Yes | Defines the workspacepath value at this contract boundary. | minLength: 1 |
| enterpriseControls | object | Yes | Defines the enterprisecontrols value at this contract boundary. | additionalProperties: true |
| enterpriseControls.evidencePath | string | Yes | Defines the evidencepath value at this contract boundary. | minLength: 1 |
| enterpriseControls.jsonReady | boolean | Yes | Defines the jsonready value at this contract boundary. | — |
| generatedAt | string | Yes | Defines the generatedat value at this contract boundary. | format: date-time |
| latestStage | enum | Yes | Defines the lateststage value at this contract boundary. | enum: init, test, build, start |
| schemaVersion | string | Yes | Defines the schemaversion value at this contract boundary. | const: "workspace-run-v1" |
| stages | object | Yes | Defines the stages value at this contract boundary. | — |
| workspacePath | string | Yes | Defines the workspacepath 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://getrapidkit.com/schemas/workspace-run-last.v1.json",
"title": "Workspai Workspace Run Evidence",
"type": "object",
"required": [
"schemaVersion",
"generatedAt",
"workspacePath",
"latestStage",
"stages",
"enterpriseControls"
],
"properties": {
"schemaVersion": {
"const": "workspace-run-v1"
},
"generatedAt": {
"type": "string",
"format": "date-time"
},
"workspacePath": {
"type": "string",
"minLength": 1
},
"latestStage": {
"enum": [
"init",
"test",
"build",
"start"
]
},
"stages": {
"type": "object",
"propertyNames": {
"enum": [
"init",
"test",
"build",
"start"
]
},
"additionalProperties": {
"$ref": "#/$defs/workspaceRunStageReport"
}
},
"enterpriseControls": {
"type": "object",
"required": [
"jsonReady",
"evidencePath"
],
"properties": {
"jsonReady": {
"type": "boolean"
},
"evidencePath": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": true
}
},
"additionalProperties": false,
"$defs": {
"workspaceRunStageReport": {
"type": "object",
"required": [
"schemaVersion",
"workspacePath",
"stage",
"generatedAt",
"durationMs",
"options",
"selection",
"gates",
"summary",
"projects"
],
"properties": {
"schemaVersion": {
"enum": [
"1.0",
"workspace-run-stage-v1"
]
},
"workspacePath": {
"type": "string",
"minLength": 1
},
"stage": {
"enum": [
"init",
"test",
"build",
"start"
]
},
"generatedAt": {
"type": "string",
"format": "date-time"
},
"durationMs": {
"type": "integer",
"minimum": 0
},
"options": {
"type": "object",
"additionalProperties": true
},
"selection": {
"type": "object",
"additionalProperties": true
},
"gates": {
"type": "object",
"additionalProperties": true
},
"summary": {
"type": "object",
"required": [
"projectCount",
"selectedCount",
"passed",
"failed",
"skipped",
"exitCode"
],
"properties": {
"projectCount": {
"type": "integer",
"minimum": 0
},
"selectedCount": {
"type": "integer",
"minimum": 0
},
"passed": {
"type": "integer",
"minimum": 0
},
"failed": {
"type": "integer",
"minimum": 0
},
"skipped": {
"type": "integer",
"minimum": 0
},
"exitCode": {
"type": "integer"
}
},
"additionalProperties": true
},
"projects": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
},
"enterpriseControls": {
"type": "object",
"additionalProperties": true
}
},
"additionalProperties": true
}
}
}