Files
marqdo-view/docs/schema/export-request-v1.schema.json
T
Marqdo View a802f96b6e
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 21:58:15 +08:00

86 lines
1.8 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-request-v1.schema.json",
"title": "View Static Export Request v1",
"type": "object",
"properties": {
"schema": {
"const": "marqdo.view-static-export-request"
},
"schema_version": {
"const": 1
},
"run_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,128}$"
},
"document": {
"type": "string",
"pattern": "^(?!/)(?!.*(?:^|/)\\.{1,2}(?:/|$))[^\\\\:\\x00-\\x1f]+$",
"maxLength": 1024,
"allOf": [
{
"pattern": "\\.mq\\.md$"
}
]
},
"analysis_digest": {
"type": "string",
"pattern": "^sha256:[0-9a-f]{64}$"
},
"scope": {
"const": "document"
},
"include": {
"type": "object",
"properties": {
"result_value": {
"type": "boolean"
},
"stdout": {
"type": "boolean"
},
"stderr": {
"type": "boolean"
},
"observation_summary": {
"type": "boolean"
},
"arguments": {
"type": "boolean"
}
},
"required": [
"result_value",
"stdout",
"stderr",
"observation_summary",
"arguments"
],
"additionalProperties": false
},
"confirm_sensitive_output": {
"type": "boolean"
},
"confirm_partial": {
"type": "boolean"
},
"client_export_request_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,128}$"
}
},
"required": [
"schema",
"schema_version",
"run_id",
"document",
"analysis_digest",
"scope",
"include",
"confirm_sensitive_output",
"client_export_request_id"
],
"additionalProperties": false
}