feat(ext): single callable binding, provider v2 CLI, capability handlers, stdlib aliases
Implements RFC-EXT-0001 PR-00..PR-07 first pass: - CallSiteKey/CallBindingTable + one frontend binding pass; runtime dispatch by identity - prepare composition root shared by check/run/inspect/Analysis; exact plugin reconciliation - provider.json v2 --provider/--allow-provider worker CLI with fail-closed verification - capability handler registry with real fs.read and audit - verified stdlib public aliases replace print_override/AST scan - docs: specs, ADR-0054/0055/0057/0058, README, CI/release gates, evidence PR-04 extension selection/lock v4 and final frozen-binary evidence remain.
This commit is contained in:
1 parent
9aa536c2c9
commit
1f6fd644a0
54 files changed
+8710
-828
No files matched your search
@@ -0,0 +1,32 @@
|
||||
# External-extension evidence
|
||||
|
||||
RFC-EXT-0001 §10.2/§11.3 requires SHA-bound proof that an **unchanged** CLI
|
||||
binary can use extensions from physically separate Git repositories. This
|
||||
directory holds that evidence.
|
||||
|
||||
* `schema.json` — JSON Schema for the evidence manifest.
|
||||
* `<40-hex-source-SHA>/manifest.json` — generated by
|
||||
`tools/ci/verify_extension_contracts.py`; never hand-written.
|
||||
|
||||
Generation (from a clean fixture checkout and a release build of this repo):
|
||||
|
||||
```bash
|
||||
cargo build --release --locked -p marqdo-cli
|
||||
CLI="$(realpath target/release/marqdo)"
|
||||
python3 tools/ci/verify_extension_contracts.py \
|
||||
--cli "$CLI" \
|
||||
--fixtures /path/to/marqdo-extension-conformance
|
||||
python3 tools/ci/verify_extension_contracts.py \
|
||||
--validate docs/evidence/extension/<SHA>/manifest.json
|
||||
```
|
||||
|
||||
The generator refuses to write evidence when:
|
||||
|
||||
* the CLI binary hash changes between the start and end of the suite;
|
||||
* the fixture repository has uncommitted changes;
|
||||
* a required result is missing or `FAIL`;
|
||||
* `UNSUPPORTED`/`SKIPPED` is recorded without `--allow-unverified` and a report
|
||||
entry explaining the platform limitation.
|
||||
|
||||
A local or container run is **not** a substitute for the release gates in
|
||||
`docs/releasing.md` (G3/G4), and no tag is created by this evidence.
|
||||
@@ -0,0 +1,63 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://marqdo.dev/schemas/extension-evidence-v1.json",
|
||||
"title": "Marqdo external-extension evidence manifest",
|
||||
"description": "SHA-bound evidence that independent repositories can use the frozen CLI without modifying or recompiling marqdo-cli (RFC-EXT-0001 §11.3). Generated by tools/ci/verify_extension_contracts.py; never hand-edited.",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": [
|
||||
"schema",
|
||||
"schema_version",
|
||||
"tested_sha",
|
||||
"cli_binary_sha256",
|
||||
"fixture_repo_sha",
|
||||
"os",
|
||||
"arch",
|
||||
"results",
|
||||
"commands",
|
||||
"failures",
|
||||
"unverified"
|
||||
],
|
||||
"properties": {
|
||||
"schema": { "const": "marqdo.extension-evidence" },
|
||||
"schema_version": { "const": 1 },
|
||||
"tested_sha": {
|
||||
"type": "string",
|
||||
"pattern": "^[0-9a-f]{40}$",
|
||||
"description": "Exact marqdo-cli source commit the frozen binary was built from."
|
||||
},
|
||||
"cli_binary_sha256": {
|
||||
"type": "string",
|
||||
"pattern": "^[0-9a-f]{64}$"
|
||||
},
|
||||
"fixture_repo_sha": {
|
||||
"type": "string",
|
||||
"pattern": "^[0-9a-f]{40}$"
|
||||
},
|
||||
"os": { "type": "string", "enum": ["linux", "macos", "windows"] },
|
||||
"arch": { "type": "string" },
|
||||
"results": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": "string",
|
||||
"enum": ["PASS", "FAIL", "UNSUPPORTED", "SKIPPED"]
|
||||
},
|
||||
"required": [
|
||||
"callable_registry",
|
||||
"plugin_worker",
|
||||
"foreign_kernel",
|
||||
"resource_provider_cli",
|
||||
"package_pinned_git",
|
||||
"tool_analysis_consumer",
|
||||
"negative_security"
|
||||
]
|
||||
},
|
||||
"commands": {
|
||||
"type": "array",
|
||||
"items": { "type": "string" },
|
||||
"minItems": 1
|
||||
},
|
||||
"failures": { "type": "array", "items": { "type": "string" } },
|
||||
"unverified": { "type": "array", "items": { "type": "string" } }
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user