tool: require exact current contracts without negotiation

This commit is contained in:
Codex committed 2026-11-24 14:23:48 +08:00
1 parent 8bfe0c36ee
commit f83d992c61
16 files changed
+229 -366

No files matched your search

@@ -5,9 +5,9 @@
"version": "0.1.0",
"command": "sample-knowledge",
"entrypoint": "bin/sample-knowledge",
"compatibility": {
"marqdo": ">=3.0.0-beta.1,<4.0.0",
"analysis": [2],
"trace": [2]
"requires": {
"api_revision": 1,
"analysis": 3,
"observation": 1
}
}
+4 -4
View File
@@ -5,9 +5,9 @@
"version": "0.1.0",
"command": "sample-proof",
"entrypoint": "bin/sample-proof",
"compatibility": {
"marqdo": ">=3.0.0-beta.1,<4.0.0",
"analysis": [2],
"trace": [2]
"requires": {
"api_revision": 1,
"analysis": 3,
"observation": 1
}
}
@@ -48,7 +48,7 @@ fn main() {
std::process::exit(1);
}
let version = number_field(&json, "schema_version").unwrap_or_default();
if version != 2 {
if version != 3 {
eprintln!("sample-view: unsupported Analysis version {version}");
std::process::exit(1);
}
+3 -4
View File
@@ -5,9 +5,8 @@
"version": "0.1.0",
"command": "sample-view",
"entrypoint": "bin/sample-view",
"compatibility": {
"marqdo": ">=3.0.0-beta.1,<4.0.0",
"analysis": [2],
"trace": [2]
"requires": {
"api_revision": 1,
"analysis": 3
}
}
+1 -1
View File
@@ -12,7 +12,7 @@ marqdo tool remove benchmark
```
The executable receives the remaining arguments verbatim, inherits stdio/cwd,
and its exit code is propagated. `MARQDO_TOOL_PROTOCOL=1` and `MARQDO_BIN` are
and its exit code is propagated. `MARQDO_API_REVISION=1` and `MARQDO_BIN` are
provided for tools that need `check --emit`/`run --trace-file`.
A Tool is a user-run native process. It is **not** a C ABI plugin, a foreign
@@ -1,7 +1,7 @@
#!/bin/sh
# A deliberately tool-specific program: the Marqdo CLI knows no `benchmark`
# command or its options.
printf 'benchmark tool: protocol=%s\n' "${MARQDO_TOOL_PROTOCOL:-unset}"
printf 'benchmark tool: protocol=%s\n' "${MARQDO_API_REVISION:-unset}"
for argument in "$@"; do
printf 'arg=%s\n' "$argument"
done
+2 -2
View File
@@ -5,7 +5,7 @@
"version": "0.1.0",
"command": "benchmark",
"entrypoint": "bin/marqdo-benchmark",
"compatibility": {
"marqdo": ">=3.0.0-beta.1,<4.0.0"
"requires": {
"api_revision": 1
}
}