Files
marqdo-view/docs/schema/export-manifest-v2.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

422 lines
9.1 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-manifest-v2.schema.json",
"title": "View Static Result Export Manifest v2",
"type": "object",
"properties": {
"schema": {
"const": "marqdo.view-export"
},
"schema_version": {
"const": 2
},
"view": {
"type": "object",
"properties": {
"name": {
"const": "marqdo-view"
},
"version": {
"type": "string"
}
},
"required": [
"name",
"version"
],
"additionalProperties": false
},
"core_version": {
"type": "string"
},
"entry": {
"type": "object",
"properties": {
"relative_path": {
"type": "string",
"pattern": "^(?!/)(?!.*(?:^|/)\\.{1,2}(?:/|$))[^\\\\:\\x00-\\x1f]+$"
},
"file": {
"const": "index.html"
},
"sha256": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
}
},
"required": [
"relative_path",
"file",
"sha256"
],
"additionalProperties": false
},
"pages": {
"type": "array",
"items": {
"type": "object",
"properties": {
"relative_path": {
"type": "string",
"pattern": "^(?!/)(?!.*(?:^|/)\\.{1,2}(?:/|$))[^\\\\:\\x00-\\x1f]+$"
},
"module_id": {
"type": "string"
},
"source_sha256": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"source_status": {
"type": "string"
},
"analysis_digest": {
"anyOf": [
{
"type": "string",
"pattern": "^sha256:[0-9a-f]{64}$"
},
{
"type": "null"
}
]
},
"file": {
"type": "string",
"pattern": "^(?!/)(?!.*(?:^|/)\\.{1,2}(?:/|$))[^\\\\:\\x00-\\x1f]+$"
},
"sha256": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"annotations": {
"type": "boolean"
}
},
"required": [
"relative_path",
"module_id",
"source_sha256",
"source_status",
"analysis_digest",
"file",
"sha256",
"annotations"
],
"additionalProperties": false
}
},
"assets": {
"type": "array",
"items": {
"type": "object",
"properties": {
"path": {
"type": "string",
"pattern": "^(?!/)(?!.*(?:^|/)\\.{1,2}(?:/|$))[^\\\\:\\x00-\\x1f]+$"
},
"sha256": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"size": {
"type": "integer",
"minimum": 0
}
},
"required": [
"path",
"sha256",
"size"
],
"additionalProperties": false
}
},
"files": {
"type": "array",
"items": {
"type": "object",
"properties": {
"path": {
"type": "string",
"pattern": "^(?!/)(?!.*(?:^|/)\\.{1,2}(?:/|$))[^\\\\:\\x00-\\x1f]+$"
},
"sha256": {
"type": "string",
"pattern": "^[0-9a-f]{64}$"
},
"size": {
"type": "integer",
"minimum": 0
},
"mime": {
"enum": [
"image/png",
"image/jpeg",
"image/gif",
"image/webp",
"image/svg+xml"
]
}
},
"required": [
"path",
"sha256",
"size"
],
"additionalProperties": false
}
},
"scope": {
"const": "document"
},
"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_run_id": {
"type": "string",
"pattern": "^[A-Za-z0-9_-]{1,128}$"
},
"core_version": {
"type": "string"
},
"target": {
"type": "string"
},
"status": {
"enum": [
"succeeded",
"failed"
]
},
"terminal_at": {
"type": "string",
"format": "date-time"
},
"source_verified": {
"const": true
},
"trace_status": {
"enum": [
"verified",
"invalid",
"unavailable",
"truncated"
]
},
"result_complete": {
"type": "boolean"
},
"output_complete": {
"type": "boolean"
},
"observation_truncated": {
"type": "boolean"
},
"parameters": {
"enum": [
"omitted",
"included"
]
},
"mode": {
"enum": [
"pure",
"project"
]
},
"core_protocol": {
"type": "object",
"properties": {
"analysis": {
"enum": [
2,
3
]
},
"trace": {
"const": 2
},
"events": {
"const": 1
}
},
"required": [
"analysis",
"trace",
"events"
],
"additionalProperties": false
}
},
"required": [
"included",
"core_run_id",
"core_version",
"target",
"status",
"terminal_at",
"source_verified",
"trace_status",
"result_complete",
"output_complete",
"observation_truncated",
"parameters",
"mode",
"core_protocol"
],
"additionalProperties": false
},
"executed_during_export": {
"const": false
},
"requires": {
"type": "object",
"properties": {
"marqdo": {
"type": "string"
},
"api_revision": {
"const": 1
},
"analysis": {
"const": 3
},
"observation": {
"const": 1
},
"markdown_profile": {
"const": "marqdo.md.v1"
}
},
"required": [
"marqdo",
"api_revision",
"analysis",
"observation",
"markdown_profile"
],
"additionalProperties": false
},
"producers": {
"type": "object",
"properties": {
"view": {
"type": "object",
"properties": {
"name": {
"const": "marqdo-view"
},
"version": {
"type": "string"
},
"binary_sha256": {
"type": "string"
}
},
"required": [
"name",
"version",
"binary_sha256"
],
"additionalProperties": false
},
"cli": {
"oneOf": [
{
"type": "null"
},
{
"type": "object",
"properties": {
"version": {
"type": [
"string",
"null"
]
},
"binary_sha256": {
"type": "string"
}
},
"required": [
"version",
"binary_sha256"
],
"additionalProperties": false
}
]
}
},
"required": [
"view",
"cli"
],
"additionalProperties": false
}
},
"required": [
"schema",
"schema_version",
"view",
"producers",
"requires",
"core_version",
"entry",
"pages",
"assets",
"files",
"scope",
"source",
"execution",
"executed_during_export"
],
"additionalProperties": false
}