Files

42 lines
2.1 KiB
Markdown

# marqdo-extension-conformance
Independent, physically separate conformance fixtures for
[RFC-EXT-0001](https://git.cflmy.cn/cflmy/marqdo-cli/src/branch/master/docs/architecture/RFC-EXT-0001.md): a third-party
repository that provides all five extension kinds **without modifying or
recompiling `marqdo-cli`**.
Everything here is built and executed by a *frozen* `marqdo` binary whose
absolute path is supplied as `$MARQDO_BIN`. No script in this repository runs
Cargo, links a Rust crate, reads `marqdo-cli`'s test fixtures, or writes into
the CLI workspace.
| Directory | Extension kind | Entry point |
|---|---|---|
| `pure-lib/` | `.mq.md` package (pinned Git) | `consumer/` project locks it by full SHA |
| `plugin/` | Callable ABI plugin (worker transport) | `plugin/plugin.yaml`, C ABI v1 |
| `kernel/` | Foreign kernel (`mocklang`) | `kernel/kernel.json`, one-shot process |
| `provider/` | Resource provider v2 (`demo.sensor`) | `provider/provider.json`, worker helper + C ABI |
| `tool/` | CLI Tool | `tool/tool.json`, `inspect-ext` command |
| [`marqdo-net/`](marqdo-net/README.md) | HTTP(S)/SSE library | Blocking streams over the published resource API |
| [`marqdo-agent/`](marqdo-agent/README.md) | Agent library | A sequential mock-model conversation with an explicit tool allowlist |
## Quick start
```bash
export MARQDO_BIN=/absolute/path/to/extracted/install/marqdo
python3 tests/run_all.py # builds the C fixtures and writes evidence/results.json
```
`tests/verify_frozen_cli.py` hashes `$MARQDO_BIN` before and after the suite and
fails if the binary changed. The runner checks both executable digests and
generates `evidence/results.json`; `evidence/manifest.json` is produced by the CLI repository's
`tools/ci/verify_extension_contracts.py`.
## Contract
See [`CONTRACT.md`](CONTRACT.md) for the exact language/ABI/wire/schema versions
and supported platform matrix. `plugin/include/marqdo_plugin_abi_v1.h` is a
verbatim copy of the public ABI header published by the CLI repository; the
provider ABI declarations are re-declared in `provider/src/sensor.c` from the
public C ABI specification because no separate provider header is published yet.