refactor: keep the plugin SDK in the CLI workspace (revert split)
ci/woodpecker/push/main Pipeline was successful
ci/woodpecker/push/main Pipeline was successful
The pre-stable line prioritizes atomic ABI/header/spec/SDK/loader changes over a premature repository boundary. ADR-0073 supersedes ADR-0072: - restore crates/marqdo-plugin-sdk as a contract-only CLI workspace crate (marqdo-plugin-abi + serde; no loader/host/worker dependency); - restore tests/sdk-plugin and tools/ci/check_plugin_sdk.py, including the real CLI invocation and tampered-digest negative case; - restore workspace/lock/architecture/dependency/docs/CI references; the SDK is a reviewed workspace member again and must not become a remote repo, mirror or submodule in this stage; - ADR-0072 and the old issue #15 evidence are marked superseded; ADR-0073 and the split-revert evidence record the decision and the deleted remote repo; - logical ADR-0071 boundaries are unchanged. Workspace: 636 passed / 0 failed / 2 ignored; fmt, clippy, docs, architecture, dependency, SDK gate and engine differential all PASS. Refs #13, #15
This commit is contained in:
1 parent
89acb709c6
commit
98d256f5a2
34 files changed
+1661
-85
No files matched your search
@@ -50,6 +50,7 @@ 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",
|
||||
@@ -239,14 +240,22 @@ def check_workspace(metadata: dict) -> list[str]:
|
||||
f"dependency `{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)"
|
||||
)
|
||||
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]}"
|
||||
)
|
||||
|
||||
# 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