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
+24
-23
@@ -125,31 +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)
|
||||
## 0.13 Plugin SDK remains in the CLI workspace — split reverted (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).
|
||||
This is an architecture correction, not a product/protocol change. Decision:
|
||||
[ADR-0073](adr/0073-sdk-stays-in-cli-workspace.md) (supersedes
|
||||
[ADR-0072](adr/0072-sdk-independent-repository.md)). Evidence:
|
||||
[`evidence/2026-11-26-issue-15-sdk-split-reverted.md`](evidence/2026-11-26-issue-15-sdk-split-reverted.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.
|
||||
- The public `cflmy/marqdo-plugin-sdk` repository was **deleted**. The SDK
|
||||
source is restored as the CLI workspace crate `crates/marqdo-plugin-sdk`, with
|
||||
the same contract-only dependency graph (`marqdo-plugin-abi` + serde); it is
|
||||
not a remote repository, mirror or submodule.
|
||||
- The CLI keeps the atomic plugin-development surface: C header, `spec/`, the
|
||||
`marqdo-plugin-abi` contract, SDK helpers, fixture and real CLI invocation
|
||||
test change in one workspace/lock/candidate SHA. No cross-repository `rev`
|
||||
pin remains.
|
||||
- `tests/sdk-plugin` and `tools/ci/check_plugin_sdk.py` are restored; the gate
|
||||
builds the fixture with only the public SDK and invokes it through the real
|
||||
CLI with explicit trust/grant, rejecting a tampered artifact digest.
|
||||
- Logical ADR-0071 boundaries are unchanged: the runtime depends only on the
|
||||
neutral contract, `marqdo-plugin-abi` is a pure contract, loader/worker live
|
||||
in `marqdo-host::plugin`, CLI is the single assembly point.
|
||||
- External plugin access is unchanged: the CLI product and public repository
|
||||
carry the header/spec/SDK/loader; plugin authors compile their plugin, not the
|
||||
CLI. Engine/Native Host remain in the workspace; no other split is planned.
|
||||
- ADR-0072 and the old issue-#15 evidence carry Superseded banners. The remote
|
||||
replica is gone; Git history retains the decision/implementation record.
|
||||
|
||||
## 0.10 Closed public Analysis boundary — issue #10 (RC.4 released)
|
||||
|
||||
|
||||
@@ -1,10 +1,6 @@
|
||||
# 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
|
||||
@@ -95,10 +91,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 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.
|
||||
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.
|
||||
|
||||
## Verification
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
# ADR-0072 — Independent `marqdo-plugin-sdk` repository
|
||||
|
||||
Status: **Accepted** (2026-11-26).
|
||||
Status: **Superseded by [ADR-0073](0073-sdk-stays-in-cli-workspace.md)**
|
||||
(2026-11-26). The independent repository was deleted and the SDK returned to
|
||||
the CLI workspace; this document is kept as decision history only.
|
||||
|
||||
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)
|
||||
|
||||
@@ -0,0 +1,99 @@
|
||||
# ADR-0073 — Keep the plugin SDK in the CLI workspace; defer the repository split
|
||||
|
||||
Status: **Accepted** (2026-11-26).
|
||||
Supersedes [ADR-0072](0072-sdk-independent-repository.md).
|
||||
|
||||
## Context
|
||||
|
||||
ADR-0072 split `marqdo-plugin-sdk` into the public repository
|
||||
`cflmy/marqdo-plugin-sdk` and pinned it to one CLI contract `rev`. The
|
||||
implementation itself was technically sound (clean-clone build, frozen-CLI
|
||||
integration, no second ABI), but a re-evaluation against the pre-stable project's
|
||||
architecture showed that the **repository boundary was premature**, even though
|
||||
the **logical contract boundary is correct and stays**.
|
||||
|
||||
The relevant facts at this point in the prerelease line:
|
||||
|
||||
- the SDK is a small, contract-only consumer (six source files; dependencies are
|
||||
`marqdo-plugin-abi`, `serde`, `serde_json`);
|
||||
- plugin ABI 1.0, Value Wire 1 and the C header are frozen; the SDK has no
|
||||
independent version or release story beyond the ABI generation;
|
||||
- the C header, `spec/plugin-abi.md`, the `marqdo-plugin-abi` contract, the
|
||||
loader/worker and the SDK helpers evolve together and are owned by the same
|
||||
maintainers;
|
||||
- no registry publication or independent maintenance exists for the SDK;
|
||||
- the CLI product supports external plugin integration without the SDK (C ABI +
|
||||
loader are in the CLI), so the SDK is a developer kit, not a runtime feature.
|
||||
|
||||
Under issue #13's own criteria, "keep in workspace" is a legal conclusion when
|
||||
independent consumer/release evidence is absent. The split added a cross-repo
|
||||
`rev` pin, a second CI lane, a second source location and a documentation
|
||||
integrity burden (stale in-repo paths, weak entry links) without a current
|
||||
release or consumer benefit. The CLI's developer-facing contract, header, spec,
|
||||
SDK and examples should form one atomic change domain.
|
||||
|
||||
## Decision
|
||||
|
||||
1. **The plugin SDK returns to the CLI workspace** as
|
||||
`crates/marqdo-plugin-sdk`, a contract-only crate. It keeps its current clean
|
||||
dependency graph: `marqdo-plugin-abi` + `serde`/`serde_json`; no loader,
|
||||
worker, host, sandbox or CLI dependency.
|
||||
2. **The independent repository is deleted.** Its source was restored from CLI
|
||||
Git history; no second copy of the SDK or contract remains. The SDK must not
|
||||
be reintroduced as a remote repository or as a submodule in this stage.
|
||||
3. **Logical boundaries stay exactly as ADR-0071 defined them**: the runtime
|
||||
depends only on `marqdo-host-contract`; `marqdo-plugin-abi` is a pure
|
||||
contract; execution-side loader/worker/manifest/artifact live in
|
||||
`marqdo-host::plugin`; the CLI is the single assembly point.
|
||||
4. **Atomicity is the priority for the pre-stable line.** ABI layout, header,
|
||||
spec, contract crate, SDK helpers, fixture and the real CLI invocation test
|
||||
land in one commit/PR/lock. There is no cross-repository pin to bump and no
|
||||
second current source tree.
|
||||
5. **External access remains in the CLI product.** The release archive and
|
||||
repository carry the C header, public plugin spec, loader/worker and the SDK
|
||||
source; plugin authors build their plugin against this repository (or use
|
||||
the header from another language). The CLI itself is not compiled by plugin
|
||||
users.
|
||||
6. **Future extraction is a new decision, not an implicit step.** It requires
|
||||
new evidence: independent SDK release (for example a published contract
|
||||
artifact), a real non-CLI consumer/maintainer, or a distribution need that
|
||||
the atomic workspace cannot serve. It then needs a new Accepted ADR and must
|
||||
not create a CLI↔SDK gitlink cycle.
|
||||
|
||||
## Verification
|
||||
|
||||
- SDK crate, fixture, CLI-side SDK gate and workspace/lock are restored; the
|
||||
CLI builds and tests them in the same workspace.
|
||||
- `tools/ci/check_dependency_boundaries.py` enforces the SDK's contract-only
|
||||
normal/build dependencies and its presence in the workspace as a reviewed
|
||||
crate.
|
||||
- `tools/ci/check_plugin_sdk.py` builds the SDK fixture with only the public SDK
|
||||
and loads it through the real CLI with explicit trust/grant; a tampered
|
||||
artifact digest is rejected.
|
||||
- The remote split repository was deleted after this decision; no temporary
|
||||
branch was created for the revert.
|
||||
- Full evidence: `docs/evidence/2026-11-26-issue-15-sdk-split-reverted.md`.
|
||||
|
||||
## Rejected alternatives
|
||||
|
||||
- **Keep the split because it was already implemented.** Sunk-cost reasoning;
|
||||
it does not satisfy the "necessary split" criterion for this stage.
|
||||
- **Keep the remote repository as a mirror/copy.** Two current SDK sources and
|
||||
a second contract consumer tree are explicitly forbidden; Git history already
|
||||
preserves ADR-0072's implementation.
|
||||
- **Make the SDK a submodule of the CLI.** Inverts the dependency direction and
|
||||
risks the CLI gitlink ↔ SDK → CLI contract cycle; the CLI does not consume
|
||||
the SDK at build time.
|
||||
- **Turn the SDK into a prebuilt binary so users need not compile.** Native
|
||||
plugins are compiled by their authors by definition; the SDK is a source-level
|
||||
helper. A prebuilt SDK is neither a plugin nor a compiler target.
|
||||
|
||||
## Consequences
|
||||
|
||||
- One atomic language/plugin-development change domain; one lock and one
|
||||
candidate SHA for ABI/header/spec/SDK/loader changes.
|
||||
- External plugin integration keeps working through the CLI's contract and
|
||||
loader; the SDK is discoverable in the same public repository as the header
|
||||
and spec.
|
||||
- The split work remains in Git history (ADR-0072, former PR #16) as decision
|
||||
history; it is not current architecture.
|
||||
+4
-2
@@ -74,5 +74,7 @@ Files: `0001`–`0050`, plus:
|
||||
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`.
|
||||
* [0072](0072-sdk-independent-repository.md) — **superseded**: the independent
|
||||
public SDK repository was deleted and the SDK returned to the CLI workspace.
|
||||
* [0073](0073-sdk-stays-in-cli-workspace.md) — keep the plugin SDK in the CLI
|
||||
workspace for the pre-stable atomic line; repository split deferred.
|
||||
@@ -19,7 +19,8 @@ resources, OS adapters and trusted extension execution; `crates/cli` remains the
|
||||
single product assembly. The plugin ABI crate is a public contract only: native
|
||||
loading, artifact/manifest execution and worker processes live in
|
||||
`marqdo-host::plugin`. The SDK depends on the contract, not on a loader or a
|
||||
host.
|
||||
host, and stays in this workspace as a contract-only developer crate
|
||||
([ADR-0073](../adr/0073-sdk-stays-in-cli-workspace.md)).
|
||||
|
||||
The Engine and the Native Host stay in **this workspace**. Issue #13 §9.2
|
||||
admission for a separate repository is not met yet: there is no real external
|
||||
@@ -48,6 +49,7 @@ 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 |
|
||||
@@ -207,7 +209,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)
|
||||
[cflmy/marqdo-plugin-sdk] -> cflmy/marqdo-cli#marqdo-plugin-abi @ pinned rev
|
||||
marqdo-plugin-sdk -> marqdo-plugin-abi (contract only)
|
||||
marqdo-provider-worker -> marqdo-worker-ipc
|
||||
```
|
||||
|
||||
@@ -325,15 +327,17 @@ 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` | **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 |
|
||||
| `marqdo-plugin-sdk` | **Keep in this workspace** as a contract-only developer crate. The ADR-0072 independent repository was deleted and the source restored ([ADR-0073](../adr/0073-sdk-stays-in-cli-workspace.md)); atomic ABI/header/spec/SDK changes are the priority for the pre-stable line | Independent SDK release/registry publication, a real non-CLI consumer or maintainer, and a new Accepted ADR. No submodule/gitlink |
|
||||
| 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 |
|
||||
|
||||
No candidate empty `marqdo-engine`, `marqdo-host` or `marqdo-cli-*` repository
|
||||
is created by this decision. Git repository boundaries are ownership and release
|
||||
boundaries, not a mechanical projection of Cargo crates. The engine and native
|
||||
host are one source tree until the reopening evidence above exists.
|
||||
is created by this decision. The former independent SDK repository was deleted
|
||||
under ADR-0073; the SDK is back in this workspace and no remote copy is kept.
|
||||
Git repository boundaries are ownership and release boundaries, not a mechanical
|
||||
projection of Cargo crates. The engine, native host and plugin developer kit are
|
||||
one source tree until the reopening evidence above exists.
|
||||
|
||||
## 8. References
|
||||
|
||||
@@ -357,9 +361,10 @@ 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.
|
||||
- [ADR-0073: Keep the plugin SDK in the CLI workspace](../adr/0073-sdk-stays-in-cli-workspace.md) — current decision: SDK atomicity, no split, no remote copy; supersedes ADR-0072.
|
||||
- [ADR-0072: Independent SDK repository](../adr/0072-sdk-independent-repository.md) — **superseded** decision history; the repository was deleted.
|
||||
- [Issue #13 engine/host evidence](../evidence/2026-11-26-issue-13-engine-host-boundary.md) — executed candidate commands and results.
|
||||
- [Issue #15 SDK split-revert evidence](../evidence/2026-11-26-issue-15-sdk-split-reverted.md) — repository deletion, source restoration and gates.
|
||||
- [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.
|
||||
- [ADR-0055: resource provider CLI v2](../adr/0055-resource-provider-cli-v2.md) — provider v2 manifest/worker CLI closure and trust boundary.
|
||||
|
||||
@@ -83,8 +83,9 @@ 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, 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 |
|
||||
| Independent plugin SDK repository | [0072](../adr/0072-sdk-independent-repository.md) | **Superseded by ADR-0073**: repository deleted, SDK restored to the CLI workspace |
|
||||
| Plugin SDK stays in the CLI workspace | [0073](../adr/0073-sdk-stays-in-cli-workspace.md) | Accepted: atomic pre-stable changes, no split, no remote copy |
|
||||
| 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 |
|
||||
| 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,6 +34,7 @@ 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, public SDK (`cflmy/marqdo-plugin-sdk`) + header |
|
||||
| High-performance native callable functions | Callable Plugin ABI v1 | `plugin.yaml`, host-targeted library, 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
|
||||
the independent SDK repository's frozen-CLI check with the Rust suits. Do not create an
|
||||
`python3 tools/ci/check_plugin_sdk.py` 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 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