- Reject strict live/file observation destinations before opening a session: a rejected destination no longer writes a partial JSONL stream or snapshot. - Remove a previous `check --emit` artifact when the project cannot be loaded, not only when it has compile errors, so a consumer can never bind a run to a stale Analysis document. - Report the concrete `fs.exists|metadata|list|mkdir|remove|rename` effect operation instead of collapsing all six into `resource.request`. - Preserve the plugin ABI frame codes through the shared worker transport: an over-limit frame is `worker_frame_too_large` and an encode failure is `worker_encode_failed`, not a generic `worker_frame_invalid`. - Give the event and snapshot schemas the same capture `level` enum and document the levels in spec/observation.md. - Add a regression test for each fix.
124 lines
2.5 KiB
JSON
124 lines
2.5 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://marqdo.dev/schemas/observation-file.schema.json",
|
|
"title": "Marqdo Observation Snapshot",
|
|
"type": "object",
|
|
"required": [
|
|
"schema",
|
|
"schema_version",
|
|
"run",
|
|
"capture",
|
|
"events"
|
|
],
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"schema": {
|
|
"const": "marqdo.observation"
|
|
},
|
|
"schema_version": {
|
|
"const": 1
|
|
},
|
|
"run": {
|
|
"type": "object",
|
|
"required": [
|
|
"id",
|
|
"status",
|
|
"source"
|
|
],
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"id": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"status": {
|
|
"enum": [
|
|
"ok",
|
|
"error",
|
|
"rejected",
|
|
"incomplete"
|
|
]
|
|
},
|
|
"source": {
|
|
"type": [
|
|
"object",
|
|
"null"
|
|
],
|
|
"if": {
|
|
"type": "object"
|
|
},
|
|
"then": {
|
|
"required": [
|
|
"root_id",
|
|
"analysis_digest"
|
|
],
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"root_id": {
|
|
"type": "string",
|
|
"minLength": 1
|
|
},
|
|
"analysis_digest": {
|
|
"type": "string",
|
|
"pattern": "^sha256:[0-9a-f]{64}$"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"capture": {
|
|
"type": "object",
|
|
"required": [
|
|
"level",
|
|
"values",
|
|
"selected_variables",
|
|
"selected_parameters",
|
|
"allow_text_values",
|
|
"truncated"
|
|
],
|
|
"additionalProperties": false,
|
|
"properties": {
|
|
"level": {
|
|
"enum": [
|
|
"base",
|
|
"structural",
|
|
"values"
|
|
]
|
|
},
|
|
"values": {
|
|
"type": "boolean"
|
|
},
|
|
"selected_variables": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"selected_parameters": {
|
|
"type": "array",
|
|
"items": {
|
|
"type": "string"
|
|
}
|
|
},
|
|
"allow_text_values": {
|
|
"type": "boolean"
|
|
},
|
|
"truncated": {
|
|
"type": [
|
|
"object",
|
|
"null"
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"events": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"items": {
|
|
"$ref": "observation-event.schema.json"
|
|
}
|
|
}
|
|
}
|
|
}
|