ci: validate real protocol artifacts and run core tests cross-platform (B-13 B-14)
- add an independent schema job with a pinned Draft 2020-12 validator that validates real Analysis v2/Trace v2/Tool artifacts and negative mutations - tighten the tool schema (SemVer, package-relative entrypoint, non-empty protocol arrays) - run cargo test --workspace plus portable CLI/analysis/trace smoke and a strict-refusal assertion on Windows and macOS - record honestly that Tool/C-ABI/worker runtime coverage remains Unix-only
This commit is contained in:
1 parent
9bceac910b
commit
20d15fd5a2
4 files changed
+207
-14
No files matched your search
@@ -3,20 +3,60 @@
|
||||
"$id": "https://marqdo.dev/schemas/tool-v1.schema.json",
|
||||
"title": "Marqdo CLI Tool Manifest v1",
|
||||
"type": "object",
|
||||
"required": ["schema", "schema_version", "name", "version", "command", "entrypoint"],
|
||||
"required": [
|
||||
"schema",
|
||||
"schema_version",
|
||||
"name",
|
||||
"version",
|
||||
"command",
|
||||
"entrypoint"
|
||||
],
|
||||
"properties": {
|
||||
"schema": {"const": "marqdo.cli-tool"},
|
||||
"schema_version": {"const": 1},
|
||||
"name": {"type": "string", "minLength": 1},
|
||||
"version": {"type": "string", "minLength": 1},
|
||||
"command": {"type": "string", "pattern": "^[a-z][a-z0-9-]*$"},
|
||||
"entrypoint": {"type": "string", "minLength": 1},
|
||||
"schema": {
|
||||
"const": "marqdo.cli-tool"
|
||||
},
|
||||
"schema_version": {
|
||||
"const": 1
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"version": {
|
||||
"type": "string",
|
||||
"pattern": "^[0-9]+\\.[0-9]+\\.[0-9]+(?:-[0-9A-Za-z.-]+)?(?:\\+[0-9A-Za-z.-]+)?$"
|
||||
},
|
||||
"command": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-z][a-z0-9-]*$"
|
||||
},
|
||||
"entrypoint": {
|
||||
"type": "string",
|
||||
"minLength": 1,
|
||||
"pattern": "^(?!/)(?!.*(?:^|/)\\.\\.(?:/|$)).+$"
|
||||
},
|
||||
"compatibility": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"marqdo": {"type": "string"},
|
||||
"analysis": {"type": "array", "items": {"type": "integer", "minimum": 1}},
|
||||
"trace": {"type": "array", "items": {"type": "integer", "minimum": 1}}
|
||||
"marqdo": {
|
||||
"type": "string"
|
||||
},
|
||||
"analysis": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
}
|
||||
},
|
||||
"trace": {
|
||||
"type": "array",
|
||||
"minItems": 1,
|
||||
"items": {
|
||||
"type": "integer",
|
||||
"minimum": 1
|
||||
}
|
||||
}
|
||||
},
|
||||
"additionalProperties": true
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user