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
@@ -82,6 +82,7 @@ def valid_workspace_edges() -> dict[str, list[str]]:
|
||||
"marqdo-span",
|
||||
]
|
||||
edges["marqdo-plugin-abi"] = ["marqdo-value"]
|
||||
edges["marqdo-plugin-sdk"] = ["marqdo-plugin-abi"]
|
||||
edges["marqdo-worker-ipc"] = []
|
||||
edges["marqdo-sandbox"] = []
|
||||
edges["marqdo-foreign"] = ["marqdo-worker-ipc"]
|
||||
@@ -184,15 +185,10 @@ class DependencyBoundaryTests(unittest.TestCase):
|
||||
"must not carry execution-side dependency `libloading`",
|
||||
)
|
||||
|
||||
def test_sdk_reappearing_as_workspace_member_is_rejected(self) -> None:
|
||||
edges = valid_workspace_edges()
|
||||
edges["marqdo-plugin-sdk"] = ["marqdo-plugin-abi"]
|
||||
workspace = metadata(edges, members=set(gate.WORKSPACE_CRATES) | {"marqdo-plugin-sdk"})
|
||||
consumer = metadata(valid_consumer_edges(), members={"marqdo-embedding-consumer"})
|
||||
problems = gate.evaluate(workspace, consumer)
|
||||
self.assertTrue(
|
||||
any("must not be a CLI workspace member" in problem for problem in problems),
|
||||
problems,
|
||||
def test_sdk_host_edge_is_rejected(self) -> None:
|
||||
self.assert_rejected(
|
||||
lambda edges: edges["marqdo-plugin-sdk"].append("marqdo-host"),
|
||||
"plugin SDK reaches execution-side dependency `marqdo-host`",
|
||||
)
|
||||
|
||||
def test_undocumented_workspace_crate_is_rejected(self) -> None:
|
||||
|
||||
Reference in new issue
Block a user