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
3ab4aaa861
35 files changed
+272
-1454
No files matched your search
@@ -82,7 +82,6 @@ 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"]
|
||||
@@ -185,10 +184,15 @@ class DependencyBoundaryTests(unittest.TestCase):
|
||||
"must not carry execution-side dependency `libloading`",
|
||||
)
|
||||
|
||||
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_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_undocumented_workspace_crate_is_rejected(self) -> None:
|
||||
|
||||
Reference in new issue
Block a user