Workspace Intelligence / JSON Schema
Workspai Decision Checkpoint
Defines the versioned decision checkpoint v1 boundary used by Workspai and its consumers.
- Schema version
workspai.decision-checkpoint.v1- Contract path
contracts/workspace-intelligence/decision-checkpoint.v1.json- Publication
- json-schema
- Defined fields
- 8
- 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/decisions/change-id/checkpoint.json | workspai.decision-checkpoint.v1 | workspai change |
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 |
|---|---|---|---|---|
| eventCount | integer | Yes | Defines the eventcount value at this contract boundary. | minimum: 1 |
| eventHeadDigest | reference | Yes | Defines the eventheaddigest value at this contract boundary. | ref: decision-event.v1.json#/$defs/sha256 |
| generatedAt | string | Yes | Defines the generatedat value at this contract boundary. | format: date-time |
| generation | integer | Yes | Defines the generation value at this contract boundary. | minimum: 1 |
| schemaVersion | string | Yes | Defines the schemaversion value at this contract boundary. | const: "workspai.decision-checkpoint.v1" |
| state | enum | Yes | Defines the state value at this contract boundary. | enum: draft, scoped, evidence-ready, authorized, executing, verifying, awaiting-human, blocked, committed, rejected, aborted, superseded |
| transactionDigest | reference | Yes | Defines the transactiondigest value at this contract boundary. | ref: decision-event.v1.json#/$defs/sha256 |
| transactionId | string | Yes | Defines the transactionid value at this contract boundary. | pattern: ^change-[a-z0-9][a-z0-9-]{7,95}$ |
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/decision-checkpoint.v1.json",
"title": "Workspai Decision Checkpoint",
"type": "object",
"required": [
"schemaVersion",
"transactionId",
"generatedAt",
"generation",
"eventCount",
"eventHeadDigest",
"state",
"transactionDigest"
],
"properties": {
"schemaVersion": {
"const": "workspai.decision-checkpoint.v1"
},
"transactionId": {
"type": "string",
"pattern": "^change-[a-z0-9][a-z0-9-]{7,95}$"
},
"generatedAt": {
"type": "string",
"format": "date-time"
},
"generation": {
"type": "integer",
"minimum": 1
},
"eventCount": {
"type": "integer",
"minimum": 1
},
"eventHeadDigest": {
"$ref": "decision-event.v1.json#/$defs/sha256"
},
"state": {
"enum": [
"draft",
"scoped",
"evidence-ready",
"authorized",
"executing",
"verifying",
"awaiting-human",
"blocked",
"committed",
"rejected",
"aborted",
"superseded"
]
},
"transactionDigest": {
"$ref": "decision-event.v1.json#/$defs/sha256"
}
},
"additionalProperties": false
}