diff --git a/CONTRACT_PIN.md b/CONTRACT_PIN.md new file mode 100644 index 0000000..9c0435a --- /dev/null +++ b/CONTRACT_PIN.md @@ -0,0 +1,25 @@ +# Contract pin + +This repository consumes exactly one CLI contract revision. The pin is a +reviewed input, not a floating dependency. + +| Field | Value | +|---|---| +| Contract crate | `marqdo-plugin-abi` | +| Source | `https://git.cflmy.cn/cflmy/marqdo-cli.git` | +| Revision | `2585915e16906dac75f8571bed02e7f6f868c6bc` (CLI master merge of PR #14) | +| Plugin ABI | major 1, minor 0 | +| Value Wire | 1 | +| Contract authority | CLI repository (`include/marqdo_plugin_abi_v1.h`, `spec/plugin-abi.md`) | + +## Bump procedure + +1. Land the contract change in the CLI repository with its ADR/spec/tests. +2. Update `rev` in `Cargo.toml`; run `cargo update -p marqdo-plugin-abi` (or + regenerate the lock) and commit both files together. +3. Run `cargo build --locked`, `cargo test --locked` and + `python3 tools/check_with_frozen_cli.py --marqdo-bin `. +4. Record the CLI SHA, SDK SHA, ABI version and the frozen CLI version in the PR. +5. Never point at a branch, a local path or a copied contract tree. ABI layout, + buffer ownership, limits and error codes are frozen at 1.0 unless a new ABI + major is agreed.