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.
1.9 KiB
1.9 KiB
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.
- One contract authority. The C header, Rust layout, wire envelope and
error encoding are owned by
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. - Exact contract input.
marqdo-plugin-abiis consumed via a Cargo gitrevfixed inCargo.tomlandCargo.lock. Do not point at a floating branch, a local../clipath, or an unpublished copy. - 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. - 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.
- 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. - Security wording. A C ABI is not a sandbox. Do not describe this SDK, native plugins or the worker transport as isolation.
- Update the pin deliberately. Bumping the CLI contract
revis a reviewable change: updateCargo.toml+Cargo.lock, rerun the frozen-CLI check, and record the CLI SHA and SDK SHA in the PR. - Keep
cargo fmt,cargo clippy --all-targets -D warnings,cargo test --lockedand 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.