refactor: move the plugin SDK to its independent repository (issue #15)
Implements ADR-0072 and the SDK physical migration tracked by issue #15: - remove crates/marqdo-plugin-sdk, tests/sdk-plugin and the CLI-side check_plugin_sdk.py; the public cflmy/marqdo-plugin-sdk repository now owns the SDK workspace, lock, fixture, docs, AGENTS rules and CI definition. - SDK consumes marqdo-plugin-abi at the exact CLI contract rev 2585915e16906dac75f8571bed02e7f6f868c6bc; no path/submodule/copied contract. - CLI does not depend on the SDK and must not re-add it as a workspace member or copy; dependency/architecture gates enforce this. - docs: ADR-0072, CURRENT responsibility map/dependency graph, ADR-0071 amendment, indexes, README, spec/plugin-abi, CI and developer entries. - evidence: clean-clone SDK build/tests and real frozen 3.0.0-rc.4 CLI invocation (Int 42; tampered digest rejected). CLI workspace: 631 passed / 0 failed / 0 ignored; fmt/clippy/docs/architecture/ dependency gates green. Refs #15, #13
This commit is contained in:
1 parent
2585915e16
commit
63d386defa
32 files changed
+268
-1453
No files matched your search
@@ -50,7 +50,6 @@ WORKSPACE_CRATES = {
|
||||
"marqdo-sandbox": "native host support: OS isolation probe and strict launch",
|
||||
"marqdo-foreign": "native host support: controlled one-shot foreign kernels (F-A)",
|
||||
"marqdo-plugin-abi": "public contract: C ABI types, wire envelope and protocol errors",
|
||||
"marqdo-plugin-sdk": "public contract consumer: third-party plugin development helpers",
|
||||
"marqdo-worker-ipc": "shared plumbing: one bounded worker frame transport",
|
||||
"marqdo-provider-worker": "shipped worker: provider helper process",
|
||||
"marqdo-package": "product support: project manifest, lock and dependency resolution",
|
||||
@@ -240,22 +239,14 @@ def check_workspace(metadata: dict) -> list[str]:
|
||||
f"dependency `{forbidden}`"
|
||||
)
|
||||
|
||||
sdk = "marqdo-plugin-sdk"
|
||||
if sdk in graph:
|
||||
closure = reachable(graph, sdk, BUILD_KINDS)
|
||||
for forbidden in (
|
||||
"libloading",
|
||||
"marqdo-worker-ipc",
|
||||
"marqdo-host",
|
||||
"marqdo-sandbox",
|
||||
"marqdo-cli",
|
||||
"marqdo-provider-worker",
|
||||
):
|
||||
if forbidden in closure:
|
||||
problems.append(
|
||||
f"plugin SDK reaches execution-side dependency `{forbidden}`: "
|
||||
f"{closure[forbidden]}"
|
||||
)
|
||||
# ADR-0072: the SDK is an independent repository. The CLI workspace must
|
||||
# not carry it again; a new member here would be an undocumented layer and
|
||||
# would resurrect a second contract-consumer copy.
|
||||
if "marqdo-plugin-sdk" in members:
|
||||
problems.append(
|
||||
"marqdo-plugin-sdk must not be a CLI workspace member; the SDK is the "
|
||||
"independent repository pinned to a contract revision (ADR-0072)"
|
||||
)
|
||||
|
||||
# CLT Tool / package identity is a product concern; the CLI is the only
|
||||
# crate allowed to combine engine + native host + package.
|
||||
|
||||
Reference in new issue
Block a user