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
@@ -42,7 +42,7 @@ to a different commit.
|
||||
| Dependency gate | `python3 tools/ci/check_dependency_boundaries.py` | PASS |
|
||||
| Dependency gate negative cases | `python3 -m unittest tools.ci.test_dependency_boundaries` / `python3 -m unittest discover -s tools/ci` | PASS (54 tool tests) |
|
||||
| Engine independence and differential execution | `python3 tools/ci/check_engine_boundary.py` | PASS |
|
||||
| Plugin SDK real consumption | `python3 tools/ci/check_plugin_sdk.py` | PASS at that candidate; the SDK and this gate moved to the independent repository under issue #15 / ADR-0072 (evidence: `2026-11-26-issue-15-sdk-independent-repository.md`) |
|
||||
| Plugin SDK real consumption | `python3 tools/ci/check_plugin_sdk.py` | PASS |
|
||||
| Existing product/conformance suites | included in workspace run; stdlib product suite additionally run | PASS |
|
||||
|
||||
Behavioral facts from the engine gate:
|
||||
|
||||
@@ -1,5 +1,11 @@
|
||||
# Evidence — issue #15 independent `marqdo-plugin-sdk` repository
|
||||
|
||||
> **Superseded.** This snapshot records the (later reverted) ADR-0072 split.
|
||||
> The SDK is back in the CLI workspace under
|
||||
> [ADR-0073](../adr/0073-sdk-stays-in-cli-workspace.md); the remote repository
|
||||
> was deleted. See `2026-11-26-issue-15-sdk-split-reverted.md`. Do not read this
|
||||
> file as current architecture.
|
||||
|
||||
Date: 2026-11-26 (Asia/Shanghai)
|
||||
Tracking issue: <https://git.cflmy.cn/cflmy/marqdo-cli/issues/15>
|
||||
Decision: [ADR-0072](../adr/0072-sdk-independent-repository.md)
|
||||
|
||||
@@ -0,0 +1,61 @@
|
||||
# Evidence — issue #15 plugin SDK split reverted to the CLI workspace
|
||||
|
||||
Date: 2026-11-26 (Asia/Shanghai)
|
||||
Tracking issue: <https://git.cflmy.cn/cflmy/marqdo-cli/issues/15>
|
||||
Decision: [ADR-0073](../adr/0073-sdk-stays-in-cli-workspace.md) (supersedes
|
||||
[ADR-0072](../adr/0072-sdk-independent-repository.md))
|
||||
Parent: issue #13 / [ADR-0071](../adr/0071-engine-host-contract-boundary.md)
|
||||
|
||||
## Decision
|
||||
|
||||
Parent CLI contract merge: `2585915e16906dac75f8571bed02e7f6f868c6bc`.
|
||||
Deleted split repository commits: `b31187a` / `c3134e4` (kept in Git history
|
||||
of the former repository only; no source copy remains).
|
||||
|
||||
The plugin SDK stays in the CLI workspace as a contract-only crate. The public
|
||||
repository `cflmy/marqdo-plugin-sdk` created by ADR-0072 was deleted; its source
|
||||
was restored from CLI Git history. The pre-stable line prioritizes atomic
|
||||
ABI/header/spec/SDK/loader changes in one workspace, lock and candidate SHA.
|
||||
The logical ADR-0071 boundaries are unchanged.
|
||||
|
||||
## Actions executed
|
||||
|
||||
| Step | Result |
|
||||
|---|---|
|
||||
| Restore `crates/marqdo-plugin-sdk` from CLI history | Restored contract-only crate (`marqdo-plugin-abi` + serde/serde_json); no loader/host/worker dependency |
|
||||
| Restore workspace member and lock | `cargo check --workspace --all-targets --locked` resolves the SDK in the workspace; `Cargo.lock` contains it again |
|
||||
| Restore `tests/sdk-plugin` and `tools/ci/check_plugin_sdk.py` | Real fixture/gate back in the CLI; builds only against the public SDK and invokes via the real CLI |
|
||||
| Restore architecture/dependency/docs references | `architecture_boundaries.rs`, `check_dependency_boundaries.py`, `docs_consistency` paths, README/AGENTS/spec/developer guides point at the in-repo crate again |
|
||||
| Delete remote `cflmy/marqdo-plugin-sdk` | Authorized by the maintainer; the repository and its branches are gone, no mirror remains |
|
||||
| No temporary branch | The revert is committed directly on `master` and pushed; old merged feature branches are deleted separately |
|
||||
| Record superseded history | ADR-0072 and the old issue-#15 evidence carry Superseded banners; ADR-0073 is the current decision |
|
||||
|
||||
## Verification (local, Linux x86_64, Rust 1.100)
|
||||
|
||||
| Gate | Command | Result |
|
||||
|---|---|---|
|
||||
| Formatting | `cargo fmt --all -- --check` | PASS |
|
||||
| Clippy | `cargo clippy --workspace --all-targets --locked -- -D warnings` | PASS |
|
||||
| Rust tests | `cargo test --workspace --locked --offline --no-fail-fast` | PASS — **636 passed / 0 failed / 2 ignored** (same as the pre-split workspace) |
|
||||
| Architecture boundaries | `cargo test -p marqdo-cli --test architecture_boundaries --locked` | PASS |
|
||||
| Docs consistency | `cargo test -p marqdo-cli --test docs_consistency --locked` | PASS |
|
||||
| Dependency direction | `python3 tools/ci/check_dependency_boundaries.py` | PASS — SDK back in the reviewed workspace allowlist with contract-only edges |
|
||||
| SDK real consumption | `python3 tools/ci/check_plugin_sdk.py` | PASS — builds fixture with only the SDK; real CLI returns `Int 42`; tampered digest rejected |
|
||||
| Engine differential | `python3 tools/ci/check_engine_boundary.py` | PASS |
|
||||
| Tools unit tests | `python3 -m unittest discover -s tools/ci -p "test_*.py"` | PASS |
|
||||
|
||||
The remote CI run for the final `master` commit is recorded by the pipeline on
|
||||
that commit; this file is updated by the same integration when the run exists.
|
||||
No split repository, mirror or submodule exists after the deletion.
|
||||
|
||||
## Current architecture facts
|
||||
|
||||
- `marqdo-plugin-abi` is still the pure public contract; loader/worker/manifest/
|
||||
artifact remain in `marqdo-host::plugin` (ADR-0071).
|
||||
- `marqdo-plugin-sdk` is a CLI workspace member with normal/build dependencies
|
||||
only on the contract + serde; the CLI product is the only assembly point.
|
||||
- Plugin authors get header, spec, SDK, examples and loader from one public CLI
|
||||
repository/release; they compile their plugin, not the CLI.
|
||||
- The CLI runtime does not depend on the SDK; external plugin loading remains
|
||||
available (C ABI header + `--plugin`/`--trust-native-plugin`/`--allow-plugin`
|
||||
+ worker transport).
|
||||
Reference in new issue
Block a user