Independent SDK consumer of the Marqdo plugin ABI v1: - public contract pinned to CLI commit 2585915e16906dac75f8571bed02e7f6f868c6bc; - no CLI checkout, native host, loader or worker dependency; - third-party fixture built only with this SDK; - frozen-CLI integration check (Int 42 + tampered digest rejection) against the released 3.0.0-rc.4 archive; - AGENTS rules, README, license and Woodpecker CI.
34 lines
1.9 KiB
Markdown
34 lines
1.9 KiB
Markdown
# Marqdo Plugin SDK — contributor/agent rules
|
|
|
|
This repository is the **independent SDK consumer** of the Marqdo plugin ABI
|
|
v1. Read these rules before changing it.
|
|
|
|
1. **One contract authority.** The C header, Rust layout, wire envelope and
|
|
error encoding are owned by
|
|
[`cflmy/marqdo-cli`](https://git.cflmy.cn/cflmy/marqdo-cli) (`marqdo-plugin-abi`,
|
|
`include/marqdo_plugin_abi_v1.h`, `spec/plugin-abi.md`). This repository must
|
|
never define a second ABI, a second Value Wire encoder, or a compatibility
|
|
path.
|
|
2. **Exact contract input.** `marqdo-plugin-abi` is consumed via a Cargo git
|
|
`rev` fixed in `Cargo.toml` and `Cargo.lock`. Do not point at a floating
|
|
branch, a local `../cli` path, or an unpublished copy.
|
|
3. **No execution side.** The SDK must not depend on `libloading`, a host,
|
|
worker process management, sandbox or CLI code. It is a leaf; the CLI does
|
|
not depend on this repository.
|
|
4. **No silent ABI changes.** Layout, buffer ownership, limits and error codes
|
|
are frozen at ABI 1.0. A change requires a new CLI contract major and a new
|
|
SDK release.
|
|
5. **Verify with a frozen CLI.** Build and test with the workspace; for the real
|
|
integration use `tools/check_with_frozen_cli.py --marqdo-bin <released
|
|
marqdo>`. Never claim an integration PASS from unit tests alone.
|
|
6. **Security wording.** A C ABI is not a sandbox. Do not describe this SDK,
|
|
native plugins or the worker transport as isolation.
|
|
7. **Update the pin deliberately.** Bumping the CLI contract `rev` is a reviewable
|
|
change: update `Cargo.toml` + `Cargo.lock`, rerun the frozen-CLI check, and
|
|
record the CLI SHA and SDK SHA in the PR.
|
|
8. Keep `cargo fmt`, `cargo clippy --all-targets -D warnings`, `cargo test
|
|
--locked` and the fixture build green.
|
|
|
|
Architecture decision: `docs/adr/0072-sdk-independent-repository.md` in the CLI
|
|
repository. Tracking issue: <https://git.cflmy.cn/cflmy/marqdo-cli/issues/15>.
|