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
@@ -125,6 +125,32 @@ SDK physical repository after S07/S08, regex/compression replacement under
|
||||
ADR-0062, foreign F-B (ADR-0063), platform and strict evidence, and the Engine/
|
||||
Native Host split only if the ADR-0071 reopening conditions appear.
|
||||
|
||||
## 0.13 Independent plugin SDK repository — issue #15 (unreleased candidate)
|
||||
|
||||
This is a repository-ownership/architecture change, not a new product release.
|
||||
The contract and plugin ABI behaviour are unchanged. Evidence:
|
||||
[`evidence/2026-11-26-issue-15-sdk-independent-repository.md`](evidence/2026-11-26-issue-15-sdk-independent-repository.md);
|
||||
decision: [ADR-0072](adr/0072-sdk-independent-repository.md).
|
||||
|
||||
- The Rust SDK moved to the public repository
|
||||
[`cflmy/marqdo-plugin-sdk`](https://git.cflmy.cn/cflmy/marqdo-plugin-sdk)
|
||||
(commit `b31187a`), with its own workspace/lock, AGENTS rules, README, license
|
||||
and Woodpecker pipeline definition.
|
||||
- It consumes `marqdo-plugin-abi` from the CLI repository at the exact
|
||||
`rev = 2585915e16906dac75f8571bed02e7f6f868c6bc`; it never uses a `../cli`
|
||||
path, a floating branch, a submodule or a copied ABI/Value Wire.
|
||||
- The CLI repository no longer contains `crates/marqdo-plugin-sdk`,
|
||||
`tests/sdk-plugin` or the CLI-side SDK gate; the SDK does not appear in the
|
||||
workspace or `Cargo.lock`. The CLI does not depend on the SDK.
|
||||
- Clean-clone SDK build/tests and a real integration against the frozen
|
||||
released `3.0.0-rc.4` CLI pass (`Int 42`, tampered digest rejected). CLI
|
||||
workspace tests: 631 passed / 0 failed / 0 ignored (the five SDK tests moved
|
||||
to the SDK repository). The SDK
|
||||
repository's CI repeats those checks; enabling the Woodpecker project for the
|
||||
new repository is an administrative follow-up, not a code claim.
|
||||
- Engine/Native Host remain in the CLI workspace under ADR-0071; no other
|
||||
repository split is approved by this change.
|
||||
|
||||
## 0.10 Closed public Analysis boundary — issue #10 (RC.4 released)
|
||||
|
||||
The candidate replaces the program-only Analysis projection in place under
|
||||
|
||||
@@ -1,6 +1,10 @@
|
||||
# ADR-0071 — Engine / Host Contract / Native Host / CLI boundaries
|
||||
|
||||
Status: **Accepted** for the pre-stable 3.0 line (2026-11-26).
|
||||
The SDK portion of the repository decision was later implemented by
|
||||
[ADR-0072](0072-sdk-independent-repository.md) (independent public SDK
|
||||
repository pinned to this contract); the Engine/Native Host keep-in-workspace
|
||||
decision is unchanged.
|
||||
|
||||
Supersedes the historical review-RFC position that a Host contract crate is a
|
||||
second-step, optional move. It does not supersede the language contract
|
||||
@@ -91,10 +95,10 @@ maintainer, and an empty candidate repository would be a prohibited boundary
|
||||
violation. This ADR records **keep in workspace** as the legal conclusion and
|
||||
names the reopening conditions in `docs/architecture/CURRENT.md` §7.
|
||||
|
||||
The plugin SDK's physical move is a follow-up: the contract is decoupled now,
|
||||
and the move requires a clean-directory build against a fixed contract revision
|
||||
(issue #13 S07/S08). No gitlink/submodule or empty `marqdo-cli-*` repository is
|
||||
created by this ADR.
|
||||
The plugin SDK's physical move landed as [ADR-0072](0072-sdk-independent-repository.md):
|
||||
a standalone public repository consumes this contract at one pinned CLI `rev`.
|
||||
The Engine and Native Host stay here; no gitlink/submodule or empty
|
||||
`marqdo-cli-*` repository is created by this ADR.
|
||||
|
||||
## Verification
|
||||
|
||||
|
||||
@@ -0,0 +1,106 @@
|
||||
# ADR-0072 — Independent `marqdo-plugin-sdk` repository
|
||||
|
||||
Status: **Accepted** (2026-11-26).
|
||||
|
||||
Complements [ADR-0071](0071-engine-host-contract-boundary.md) and implements the
|
||||
SDK follow-up tracked by issue [#15](https://git.cflmy.cn/cflmy/marqdo-cli/issues/15)
|
||||
after the contract decoupling of issue #13.
|
||||
|
||||
## Context
|
||||
|
||||
Issue #13 / ADR-0071 separated the public plugin contract from its execution
|
||||
side:
|
||||
|
||||
- `marqdo-plugin-abi` (CLI repository) now contains only the C ABI v1 layout,
|
||||
the wire envelope and protocol errors;
|
||||
- `dlopen`, manifest/artifact file handling, worker management and invocation
|
||||
dispatch live in `marqdo-host::plugin`;
|
||||
- `marqdo-plugin-sdk` consumed only the contract and was verified by a real
|
||||
fixture loaded through the CLI.
|
||||
|
||||
The SDK is a leaf with a different consumer group (third-party plugin authors),
|
||||
a different change cadence and an independent release need. Keeping it in the
|
||||
CLI workspace made the architecture map imply that the CLI product owns SDK
|
||||
publication and forced every SDK change through the CLI build. Issue #15
|
||||
required either fixing the distribution input or recording a blocking ticket.
|
||||
The CLI repository is public, so a fixed Cargo git `rev` is a fetchable
|
||||
contract input; there is no need for a submodule, a vendored contract copy or a
|
||||
second wire implementation.
|
||||
|
||||
This is a **deliberate, narrow repository split**, not a mechanical projection
|
||||
of every crate: engine and native host remain in the CLI workspace (ADR-0071
|
||||
reopening conditions unchanged), and no empty candidate repository is created.
|
||||
|
||||
## Decision
|
||||
|
||||
### Topology
|
||||
|
||||
| Item | Decision |
|
||||
|---|---|
|
||||
| SDK repository | Public `cflmy/marqdo-plugin-sdk` (`main`), own Cargo workspace and lock |
|
||||
| Contract input | `marqdo-plugin-abi` from `https://git.cflmy.cn/cflmy/marqdo-cli.git` at exact `rev = 2585915e16906dac75f8571bed02e7f6f868c6bc` (the merge commit that landed ADR-0071) |
|
||||
| CLI dependency on SDK | **None**. CLI normal/build/test lanes do not fetch or build the SDK |
|
||||
| CLI workspace | `crates/marqdo-plugin-sdk` removed; the SDK is not a workspace member |
|
||||
| Submodule/gitlink | **Not used** for this split; the SDK leaf must not create a CLI↔SDK identity cycle |
|
||||
| Acceptance fixture | `tests/fixture` in the SDK repository only; real invocation uses a **frozen released CLI binary** via `tools/check_with_frozen_cli.py` |
|
||||
| Contract authority | Unchanged: CLI owns the C header, Rust layout, Value Wire and error encodings; the SDK never defines a second contract |
|
||||
| Publication | SDK releases are versioned independently against a contract generation; bumping the pinned CLI `rev` is a reviewed change |
|
||||
|
||||
### Rules
|
||||
|
||||
- The SDK repository must resolve and build from a clean clone without the CLI
|
||||
checkout; only its fixed git dependency may reach the CLI repository.
|
||||
- It must not depend on `libloading`, a native host, worker execution, sandbox
|
||||
or CLI code.
|
||||
- The SDK's fixture is a third-party plugin built with only the public SDK. It
|
||||
is verified against a frozen CLI archive (same ABI 1.0 contract), not against a
|
||||
locally rebuilt CLI.
|
||||
- The CLI repository must not reintroduce the SDK as a workspace member, a
|
||||
copied source tree or a compatibility path; `tools/ci/check_dependency_boundaries.py`
|
||||
and `architecture_boundaries.rs` fail if it does.
|
||||
- The CLI's public contract is authoritative; the SDK repository README and
|
||||
AGENTS rules point back to `include/marqdo_plugin_abi_v1.h`,
|
||||
`spec/plugin-abi.md` and the pinned commit.
|
||||
- The existing security statement remains: a C ABI is not a sandbox, and native
|
||||
loading requires explicit trust; the SDK grants no capability.
|
||||
|
||||
## Verification (candidate)
|
||||
|
||||
- SDK repository commit `b31187a` on `main`:
|
||||
- clean-clone `cargo build --locked` and `cargo test --locked` pass;
|
||||
- the fixture builds with only the SDK;
|
||||
- `tools/check_with_frozen_cli.py --marqdo-bin <released marqdo 3.0.0-rc.4>`
|
||||
returns `Int 42` and rejects a tampered artifact digest.
|
||||
- CLI candidate removes the SDK crate, fixture and CLI-side gate; workspace
|
||||
tests, architecture boundaries, docs consistency and dependency gates pass;
|
||||
the SDK no longer appears in the workspace or lock file.
|
||||
- Full evidence: `docs/evidence/2026-11-26-issue-15-sdk-independent-repository.md`.
|
||||
|
||||
## Rejected alternatives
|
||||
|
||||
- **Keep the SDK in the CLI workspace** while calling the contract "decoupled":
|
||||
leaves two release cadences and ownership in one repo; issue #15 cannot close.
|
||||
- **Git submodule/gitlink into the CLI repo**: CLI does not consume the SDK, so
|
||||
a submodule would create an unnecessary recursive identity and checkout
|
||||
failure mode.
|
||||
- **Relative path dependency `../cli`**: not an independent build; forbidden by
|
||||
issue #13 §6.2.
|
||||
- **Copy `marqdo-plugin-abi`/Value Wire into the SDK repo**: would create a
|
||||
second contract and wire encoder authority.
|
||||
- **Publish the contract to a registry first**: no registry/release channel is
|
||||
approved here; the public git `rev` is the available precise input. A future
|
||||
published artifact can replace the git `rev` without changing authority.
|
||||
|
||||
## Consequences and rollback
|
||||
|
||||
- The architecture map now shows one CLI contract producer and one independent
|
||||
SDK consumer; CLI CI no longer carries SDK-only checks, and SDK CI owns them.
|
||||
- The SDK remains pinned to a CLI merge commit. Changing the contract or
|
||||
advancing the pin is a deliberate cross-repository change with its own
|
||||
evidence; a contract change must land in the CLI first, then the SDK pin is
|
||||
bumped.
|
||||
- Rollback is a complete known-good combination: keep the CLI commit and the SDK
|
||||
pin that were verified together; do not restore a copied SDK or an old ABI.
|
||||
- External SDK consumers can fetch the public CLI contract today. If a
|
||||
registry-published contract or a different visibility policy is later chosen,
|
||||
that is a new ADR, not an implicit change.
|
||||
@@ -73,3 +73,6 @@ Files: `0001`–`0050`, plus:
|
||||
* [0071](0071-engine-host-contract-boundary.md) — Engine / Host Contract /
|
||||
Native Host / CLI responsibilities, dependency rules, plugin ABI contract split
|
||||
and the keep-in-workspace repository decision.
|
||||
|
||||
* [0072](0072-sdk-independent-repository.md) — independent public
|
||||
`cflmy/marqdo-plugin-sdk` repository pinned to one CLI contract `rev`.
|
||||
@@ -48,7 +48,6 @@ in the same change.
|
||||
| `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 v1 layout, 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 |
|
||||
@@ -208,7 +207,7 @@ marqdo-host-contract -> marqdo-value, marqdo-span
|
||||
marqdo-host -> marqdo-host-contract, marqdo-plugin-abi, marqdo-foreign,
|
||||
marqdo-sandbox, marqdo-worker-ipc
|
||||
marqdo-plugin-abi -> marqdo-value, serde/serde_json (contract only)
|
||||
marqdo-plugin-sdk -> marqdo-plugin-abi (contract only)
|
||||
[cflmy/marqdo-plugin-sdk] -> cflmy/marqdo-cli#marqdo-plugin-abi @ pinned rev
|
||||
marqdo-provider-worker -> marqdo-worker-ipc
|
||||
```
|
||||
|
||||
@@ -326,7 +325,7 @@ that a phase is complete.
|
||||
|---|---|---|
|
||||
| Engine (`span`/`value`/`expression`/`markdown`/`ir`/`frontend`/`runtime`/`host-contract`) | **Keep in this workspace** as one atomic semantic-change domain | A real, non-in-repo consumer needs independent build/release, and the semantic change cost is acceptable |
|
||||
| Native Host (`host`/`sandbox`/`foreign`/plugin loader) | **Keep in this workspace**, dependent on the neutral contract | An independent platform maintainer or second product consumes it; security/conformance can be verified separately |
|
||||
| `marqdo-plugin-sdk` | Contract decoupled; physical move to an independent repository is a follow-up after the §6.3 external build and pinned-artifact mechanism | A clean-directory build against a fixed contract revision without the CLI checkout passes (S07/S08) |
|
||||
| `marqdo-plugin-sdk` | **Moved to independent public repository** `cflmy/marqdo-plugin-sdk` ([ADR-0072](../adr/0072-sdk-independent-repository.md)) | Contract input is a pinned CLI git `rev`; clean-clone build + frozen-CLI integration are the SDK repository's gates. CLI must not depend on it or re-add a copy |
|
||||
| Stdlib | Separate issue #11/#12 (Phase A build input); runtime contract unchanged | Ecosystem-assembled Bundle and extension replacement accepted; then retire the in-repo source authority |
|
||||
| Regex/compression domain services | **DEFERRED** under ADR-0062 ownership; no new domain operation may be added | A separately installable extension replaces the host-held service and the old entries are removed atomically |
|
||||
| Foreign F-A | Retained; no F-B, session or new transport in this change | Separate ADR and milestone |
|
||||
@@ -358,6 +357,8 @@ host are one source tree until the reopening evidence above exists.
|
||||
- [Compute-machine RFC-0001](../MARQDO_COMPUTE_MACHINE_RFC_0001.md) and [core/stdlib RFC-0002](../MARQDO_COMPUTE_CORE_STDLIB_MIGRATION_RFC_0002.md) — design input.
|
||||
- [Architecture audit and refactor RFC](Marqdo_CLI_Latest_Architecture_Audit_and_Refactor_RFC.md) — historical review input; the current boundary decision is ADR-0071.
|
||||
- [ADR-0071: Engine / Host Contract / Native Host boundaries](../adr/0071-engine-host-contract-boundary.md) — accepted responsibility split and keep-in-workspace decision for issue #13.
|
||||
- [ADR-0072: Independent `marqdo-plugin-sdk` repository](../adr/0072-sdk-independent-repository.md) — the one deliberate repository split (public SDK leaf pinned to the CLI contract).
|
||||
- [Issue #15 SDK split evidence](../evidence/2026-11-26-issue-15-sdk-independent-repository.md) — clean-clone build and frozen-CLI integration.
|
||||
- [Issue #13 engine/host evidence](../evidence/2026-11-26-issue-13-engine-host-boundary.md) — executed candidate commands and results.
|
||||
- [RFC-EXT-0001](RFC-EXT-0001.md) — extensibility closure task specification (implementation status tracked here and in STATUS).
|
||||
- [ADR-0054: single callable binding](../adr/0054-callable-binding-single-source.md) — one registry/binding pass, runtime dispatch by identity.
|
||||
|
||||
@@ -83,7 +83,8 @@ The implemented first slices of these RFCs are recorded in `CURRENT.md` and
|
||||
| Resource operations and core kinds | [0062](../adr/0062-resource-operation-ownership-and-core-kinds.md) | Accepted and implemented; architecture gate pins the reviewed lists |
|
||||
| Foreign F-A transition | [0063](../adr/0063-foreign-kernel-transition-fa.md) | Accepted: retained F-A primitive; F-B deferred |
|
||||
| Stable core inventory and external gate | [0064](../adr/0064-stable-core-extension-boundary.md) | Accepted and wired into Linux CI |
|
||||
| Engine / Host Contract / Native Host / CLI boundaries | [0071](../adr/0071-engine-host-contract-boundary.md) | Accepted and implemented by issue #13: runtime depends on the neutral contract, native host implements it, plugin ABI is contract-only, keep-in-workspace repository decision |
|
||||
| Engine / Host Contract / Native Host / CLI boundaries | [0071](../adr/0071-engine-host-contract-boundary.md) | Accepted and implemented by issue #13: runtime depends on the neutral contract, native host implements it, plugin ABI is contract-only, Engine/Native Host keep-in-workspace decision |
|
||||
| Independent plugin SDK repository | [0072](../adr/0072-sdk-independent-repository.md) | Accepted and implemented: public `cflmy/marqdo-plugin-sdk`, pinned to CLI contract commit, CLI does not depend on it |
|
||||
| Manifest-driven Resource Control | [0065](../adr/0065-resource-control-vnext.md) | Proposed |
|
||||
| Structured Tasks and Channels | [0066](../adr/0066-structured-tasks-v1.md) | Proposed |
|
||||
| Table physical storage (T1/T2/T3), strict stdin/stderr/file/network resources | — | **Not decided**; do not implement by implication |
|
||||
|
||||
@@ -34,7 +34,6 @@ test (rust:1.100-bookworm, clippy/rustfmt, Node.js 22, MinGW, both binaries):
|
||||
docs_consistency / architecture_boundaries / stdlib_product
|
||||
check_dependency_boundaries.py (Cargo-metadata responsibility graph)
|
||||
check_engine_boundary.py (independent consumer build/run + CLI differential)
|
||||
check_plugin_sdk.py (real third-party SDK plugin via the real CLI)
|
||||
python3 -m unittest discover -s tools/ci -p "test_*.py"
|
||||
rustup target add x86_64-pc-windows-gnu
|
||||
cargo check --workspace --all-targets --target x86_64-pc-windows-gnu
|
||||
|
||||
@@ -18,7 +18,7 @@ Foreign wire v1, Provider manifest v2, lock v4 and markdown profile
|
||||
|---|---|---|
|
||||
| AI/math/data/quantum/SKILL libraries, pure algorithms | `.mq.md` package | `index.mq.md`, `marqdo.yaml`, README, tests |
|
||||
| Knowledge/Proof/View/IDE/lint/analysis tools | CLI Tool protocol | standalone executable + `tool.json` + Analysis/Observation consumer |
|
||||
| High-performance native callable functions | Callable Plugin ABI v1 | `plugin.yaml`, host-targeted library, SDK/header |
|
||||
| High-performance native callable functions | Callable Plugin ABI v1 | `plugin.yaml`, host-targeted library, public SDK (`cflmy/marqdo-plugin-sdk`) + header |
|
||||
| New foreign language backend (R/Python/Julia/…) | Foreign Kernel | `kernel.json`, executable provider, pinned environment |
|
||||
| Hardware/device/external-stream resources | Resource Provider v2 | `provider.json`, C ABI library, worker helper |
|
||||
| Change `@exec` semantics, add keywords/types | **not** a third-party extension | core language RFC + migration + full conformance |
|
||||
@@ -61,7 +61,7 @@ only on `marqdo-host-contract`; the native host implements it; the plugin ABI
|
||||
crate is a contract (no loader/worker); the CLI is the only assembly point.
|
||||
Run `python3 tools/ci/check_dependency_boundaries.py`,
|
||||
`python3 tools/ci/check_engine_boundary.py` and
|
||||
`python3 tools/ci/check_plugin_sdk.py` with the Rust suits. Do not create an
|
||||
the independent SDK repository's frozen-CLI check with the Rust suits. Do not create an
|
||||
empty candidate repository for a boundary; a split needs the evidence and a new
|
||||
ADR.
|
||||
|
||||
|
||||
@@ -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 |
|
||||
| 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`) |
|
||||
| Existing product/conformance suites | included in workspace run; stdlib product suite additionally run | PASS |
|
||||
|
||||
Behavioral facts from the engine gate:
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
# Evidence — issue #15 independent `marqdo-plugin-sdk` repository
|
||||
|
||||
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)
|
||||
Parent: issue #13 / [ADR-0071](../adr/0071-engine-host-contract-boundary.md)
|
||||
|
||||
## Topology and identity
|
||||
|
||||
| Object | Exact identity |
|
||||
|---|---|
|
||||
| SDK repository | `cflmy/marqdo-plugin-sdk` (public), `main` at `b31187a` |
|
||||
| CLI contract input | `marqdo-plugin-abi` from `https://git.cflmy.cn/cflmy/marqdo-cli.git` `rev = 2585915e16906dac75f8571bed02e7f6f868c6bc` (merge of PR #14) |
|
||||
| CLI candidate | `architecture/sdk-independent-repository`; PR/CI SHA recorded by the PR |
|
||||
| Frozen CLI acceptance binary | `marqdo` 3.0.0-rc.4 Linux x86_64 release archive, SHA-256 from the release `.sha256` asset |
|
||||
| ABI | Plugin ABI 1.0 / Value Wire 1 / package + provider formats unchanged |
|
||||
|
||||
The SDK repository is its own Cargo workspace and lock. The CLI does not depend
|
||||
on it, and the SDK does not depend on the CLI checkout, the native host, a
|
||||
loader/worker, a sandbox or the CLI product.
|
||||
|
||||
## SDK repository verification (clean clone, independent of CLI checkout)
|
||||
|
||||
Commands run in a fresh `git clone https://git.cflmy.cn/cflmy/marqdo-plugin-sdk.git`
|
||||
outside this repository:
|
||||
|
||||
| Gate | Command | Result |
|
||||
|---|---|---|
|
||||
| Locked build | `cargo build --locked` | PASS (contract fetched from the pinned public CLI git `rev`) |
|
||||
| SDK tests | `cargo test --locked` | PASS (4 unit tests + 1 doc-test, 2 ignored doc examples) |
|
||||
| Third-party fixture | `cargo build --locked --manifest-path tests/fixture/Cargo.toml` | PASS (built only from the SDK) |
|
||||
| Frozen CLI invocation (S04/S07) | `python3 tools/check_with_frozen_cli.py --marqdo-bin frozen/marqdo` | PASS — real CLI returns `Int 42` |
|
||||
| Tampered artifact (S05/S06) | same script, `sha256` replaced | PASS — rejected with artifact/sha256 diagnostic |
|
||||
|
||||
The frozen binary was the released 3.0.0-rc.4 archive, not a locally rebuilt CLI;
|
||||
the plugin ABI is unchanged across the #13 decoupling, which is exactly the
|
||||
cross-repository compatibility being tested.
|
||||
|
||||
SDK repository CI (`.woodpecker/main.yml`) repeats the workspace checks, the
|
||||
fixture build and the frozen-CLI integration after downloading that released
|
||||
archive. Enabling the Woodpecker project/webhook for the new repository is a
|
||||
repository-administration step outside this change; the pipeline definition is
|
||||
checked in and the same commands were executed manually above.
|
||||
|
||||
## CLI repository verification (this change)
|
||||
|
||||
| Gate | Command | Result |
|
||||
|---|---|---|
|
||||
| Workspace resolution | `cargo check --workspace --locked` | PASS; `marqdo-plugin-sdk` no longer appears in `Cargo.lock` |
|
||||
| Formatting | `cargo fmt --all -- --check` | PASS |
|
||||
| Clippy | `cargo clippy --workspace --all-targets --locked -- -D warnings` | PASS |
|
||||
| Rust tests | `cargo test --workspace --locked --no-fail-fast` | PASS — 631 passed / 0 failed / 0 ignored (the removed SDK 4 unit + 1 doc test now run in the SDK repository; the two previously ignored SDK doc examples moved with them) |
|
||||
| Architecture boundaries | `cargo test -p marqdo-cli --test architecture_boundaries --locked` | PASS — SDK absence/moved-repository assertion |
|
||||
| Docs consistency | `cargo test -p marqdo-cli --test docs_consistency --locked` | PASS |
|
||||
| Dependency direction | `python3 tools/ci/check_dependency_boundaries.py` | PASS — SDK no longer a workspace member; negative case added |
|
||||
| Tools unit tests | `python3 -m unittest discover -s tools/ci -p "test_*.py"` | PASS |
|
||||
| Engine differential | `python3 tools/ci/check_engine_boundary.py` | PASS (unchanged) |
|
||||
|
||||
Removed from the CLI workspace/repository in the same integration:
|
||||
|
||||
- `crates/marqdo-plugin-sdk/` (moved to the independent repository);
|
||||
- `tests/sdk-plugin/` (fixture moved to `tests/fixture` in the SDK repository);
|
||||
- `tools/ci/check_plugin_sdk.py` (its superset lives in the SDK repository and
|
||||
uses a frozen CLI binary);
|
||||
- workspace/lock entry, architecture/layer docs, CI lane entries and current
|
||||
developer references.
|
||||
|
||||
## Not verified / follow-ups
|
||||
|
||||
- **Woodpecker activation** for the new public repository is administrative; the
|
||||
pipeline definition is committed, but no remote pipeline run is claimed here.
|
||||
- **Registry publication** of the contract crate is not introduced; the public
|
||||
CLI git `rev` is the precise, fetchable input. A future published artifact
|
||||
would be a new decision and would not change contract authority.
|
||||
- Engine/Native Host remain in the CLI workspace under ADR-0071; this split does
|
||||
not reopen that decision.
|
||||
- No second ABI, wire encoder, loader or host copy exists in the SDK repository;
|
||||
no compatibility/submodule path was added to the CLI repository.
|
||||
Reference in new issue
Block a user