Files
marqdo/tests/workbench/schemas/DocumentViewV1.schema.json
cflmyandCursor 03396afd02 feat(workbench): land M00–M06 runtime contracts and read-only view
Add capabilities/selection/usage/DocumentView/locator/RunContext with
honest probes, LLM messages+cancel, sse-live cancel bridge, and CI
workbench_contracts gate; record design evidence for verified slices.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-10-25 10:55:08 +08:00

39 lines
1.2 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "marqdo://contracts/DocumentViewV1",
"title": "DocumentViewV1",
"type": "object",
"required": ["schema", "schema_version", "document", "execution", "completeness"],
"properties": {
"schema": { "const": "DocumentViewV1" },
"schema_version": { "const": 1 },
"document": {
"type": "object",
"required": ["id", "source_revision"],
"properties": {
"id": { "type": "string" },
"title": { "type": "string" },
"source_revision": { "type": "string" },
"semantic_digest": { "type": "string" },
"generation_id": { "type": ["string", "null"] },
"presentation_token": { "type": "string" }
}
},
"execution": {
"type": "object",
"required": ["state"],
"properties": {
"state": { "const": "not_run" },
"run_id": { "type": ["string", "null"] }
}
},
"completeness": { "enum": ["complete", "partial"] },
"render": { "type": "object" },
"outline": { "type": "array" },
"nodes": { "type": "array" },
"refs": { "type": "array" },
"diagnostics": { "type": "array" }
},
"additionalProperties": true
}