refactor: keep the plugin SDK in the CLI workspace (revert split)
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:
cflmy committed 2026-11-26 21:21:41 +08:00
1 parent 89acb709c6
commit 98d256f5a2
34 files changed
+1661 -85

No files matched your search

+12 -16
View File
@@ -687,22 +687,18 @@ fn plugin_contract_carries_no_native_execution() {
"native host must own plugin `{module}`"
);
}
// ADR-0072: the SDK is an independent repository pinned to a contract
// revision. It must not be reintroduced as a second in-workspace copy.
assert!(
!root.join("crates/marqdo-plugin-sdk").exists(),
"the plugin SDK moved to cflmy/marqdo-plugin-sdk (ADR-0072)"
);
let manifest = read(&root.join("Cargo.toml"));
assert!(
!manifest.contains("marqdo-plugin-sdk"),
"the plugin SDK must not return as a CLI workspace member"
);
let current = read(&root.join("docs/architecture/CURRENT.md"));
assert!(
current.contains("cflmy/marqdo-plugin-sdk") && current.contains("ADR-0072"),
"CURRENT.md must name the independent SDK repository decision"
);
let sdk = read(&root.join("crates/marqdo-plugin-sdk/Cargo.toml"));
for forbidden in [
"marqdo-host",
"marqdo-cli",
"libloading",
"marqdo-worker-ipc",
] {
assert!(
!sdk.contains(forbidden),
"the plugin SDK must not depend on `{forbidden}`"
);
}
}
/// E01/E04: the independent embedding consumer is a real package outside the