Files
marqdo-view/docs/schema/export-overlay-v1.schema.json
T
Marqdo View 340ecb035f
ci/woodpecker/push/woodpecker Pipeline was successful
feat: migrate View 0.3.0 to marqdo 3.0.0-rc.4 contracts
Replace the retired rc.2 Analysis v2/Trace v2/Execution Events v1 stack with the
single current contract family:

- Analysis v3 (ADR-0069 public boundary): one check --emit artifact carries the
  exact source, Markdown AST, heading scopes (heading_span + complete span),
  anchors, state-bearing references, calls, resources and diagnostics; the old
  revision-3 shape is rejected with a rebuild hint.
- Observation v1: one run/call --output jsonl stream (+ atomic
  --observation-file snapshot) decoded by one decoder and projected into the
  reader/SSE/export layers; stale/malformed/truncated/incomplete never render
  as success.
- CLI Tool revision 1: requires {api_revision:1, analysis:3, observation:1},
  product range >=3.0.0-rc.3,<4.0.0, only MARQDO_BIN and
  MARQDO_API_REVISION are consumed.
- Remove compatibility branches, retired flags/env vars and duplicate decoders;
  re-record Analysis v3 and Observation v1 fixtures; rewrite contract,
  integration and security tests (173 passing locally).
- Add check-no-legacy/check-docs/check-observation gates, rc.4 pins in the
  CI pipelines, 0.3.0 Tool bundle and evidence manifest support.

See issues #4, #5 and #6; acceptance baseline is CLI source
452e9a32bd9e40dba427d4180691c58bab74449e, archive
9c3f166b5e5b8840d39d10019074e4e1c42432fc23e26c69670e64fdcf4e15d8.
2026-11-25 22:12:51 +08:00

219 lines
4.4 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://git.cflmy.cn/cflmy/marqdo-view/raw/branch/master/docs/schema/export-overlay-v1.schema.json",
"title": "View internal renderer result projection v1",
"type": "object",
"properties": {
"source": {
"type": "object",
"properties": {
"project_root_id": {
"type": "string"
},
"document": {
"type": "string",
"pattern": "^(?!/)(?!.*(?:^|/)\\.{1,2}(?:/|$))[^\\\\:\\x00-\\x1f]+$"
},
"module_id": {
"type": "string"
},
"source_sha256": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"analysis_digest": {
"type": "string",
"pattern": "^sha256:[0-9a-f]{64}$"
},
"lock_digest": {
"anyOf": [
{
"type": "string",
"pattern": "^sha256:[0-9a-f]{64}$"
},
{
"type": "null"
}
]
}
},
"required": [
"project_root_id",
"document",
"module_id",
"source_sha256",
"analysis_digest",
"lock_digest"
],
"additionalProperties": false
},
"execution": {
"type": "object",
"properties": {
"included": {
"const": true
},
"core_version": {
"type": "string"
},
"target": {
"type": "string"
},
"status": {
"enum": [
"succeeded",
"failed"
]
},
"terminal_at": {
"type": "string",
"format": "date-time"
},
"source_verified": {
"const": true
},
"observation_status": {
"enum": [
"verified",
"invalid",
"unavailable",
"truncated",
"stale"
]
},
"result_complete": {
"type": "boolean"
},
"output_complete": {
"type": "boolean"
},
"observation_truncated": {
"type": "boolean"
},
"parameters": {
"enum": [
"omitted",
"included"
]
},
"mode": {
"enum": [
"pure",
"project"
]
},
"capture_level": {
"type": "string"
},
"contracts": {
"type": "object",
"properties": {
"api_revision": {
"const": 1
},
"analysis": {
"const": 3
},
"observation": {
"const": 1
}
},
"required": [
"api_revision",
"analysis",
"observation"
],
"additionalProperties": false
},
"core_run_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,128}$"
}
},
"required": [
"included",
"core_run_id",
"core_version",
"target",
"status",
"terminal_at",
"source_verified",
"observation_status",
"capture_level",
"result_complete",
"output_complete",
"observation_truncated",
"parameters",
"mode",
"contracts"
],
"additionalProperties": false
},
"label": {
"type": "string"
},
"value": {
"type": [
"string",
"null"
],
"maxLength": 131072
},
"stdout": {
"type": [
"string",
"null"
],
"maxLength": 131072
},
"stderr": {
"type": [
"string",
"null"
],
"maxLength": 131072
},
"observation_counts": {
"type": [
"object",
"null"
],
"additionalProperties": {
"type": "integer",
"minimum": 0
}
},
"arguments": {
"type": [
"array",
"null"
],
"maxItems": 32,
"items": {
"type": "array",
"prefixItems": [
{
"type": "string"
},
{
"type": "string"
}
],
"items": false,
"minItems": 2
}
}
},
"required": [
"source",
"execution",
"label",
"value",
"stdout",
"stderr",
"observation_counts",
"arguments"
],
"additionalProperties": false
}