Implements the core M0-M3 boundary work from issue #13 / ADR-0071 without
changing language semantics or any public protocol:
- add marqdo-host-contract owning Host/HostOp/ExecutionContext/ResourceRead
and the runtime observation facts; the engine depends on it only.
- marqdo-runtime no longer links marqdo-host; the native host implements the
contract and has no reverse edge to runtime/frontend/IR.
- reduce marqdo-plugin-abi to the public C ABI/wire/error contract; move
manifest/artifact/loader/worker execution into marqdo-host::plugin so the
SDK carries no loader/worker/host dependency.
- add a real independent consumer (tests/embedding, own workspace+lock) that
runs Markdown -> frontend -> IR -> runtime with bounded budgets and explicit
effect refusal, plus differential CLI comparison.
- add an SDK-only third-party plugin fixture and real CLI invocation gate.
- replace the frozen-crate architecture test with a reviewed responsibility
graph enforced from Cargo metadata, with negative unit cases.
- consolidate current docs/entry: ADR-0071, CURRENT responsibility map,
developers/architecture indexes, historical banners, STATUS and evidence.
- record keep-in-workspace for Engine/Native Host; no empty candidate repo.
Evidence: docs/evidence/2026-11-26-issue-13-engine-host-boundary.md
Refs #13
- add a hidden __plugin-worker mode that loads one native library in a child
process and serves length-prefixed JSON invoke frames
- add host WorkerPlugin with ready handshake, export cross-check, per-call
timeout and crash/EOF propagation
- route kind: worker without in-process trust; native still requires explicit
trust; wasm is rejected explicitly
- report worker_processes=true while keeping strict OS isolation unavailable
- test successful worker calls and worker crash isolation
- update plugin ABI spec and R2 status
Blueprint section 10: a first-class plugin ABI independent of the legacy
MARQDO_ABI_VERSION=2, with a C ABI that is explicitly not a sandbox.
- include/marqdo_plugin_abi_v1.h: frozen stable-layout C contract with
documented buffer ownership/lifetimes, size limits, NULL/zero-length
semantics, single-threaded invocation, no hot-unload policy, version
negotiation and target-triple requirements.
- marqdo-plugin-abi (host side): repr(C) mirrors with compile-time layout
assertions, major/minor negotiation (wrong major fails, minor clamps),
plugin.yaml parsing/validation, target selection and sha256 artifact
verification, wire_version 1 typed JSON request/response envelopes,
structured PluginError, and a libloading-based loader with host alloc/free,
export registration and runtime ABI re-negotiation.
- marqdo-plugin-sdk (plugin side): mq_plugin_entry! macro, panic containment,
safe byte-buffer wrappers, capability/logging context and JSON helpers; it
depends only on the shared ABI crate.
- examples/plugin-demo: dependency-free C plugin (solver.add), manifest,
build.sh that refreshes the artifact hash, README explaining that install,
inspect and load are three different trust decisions.
- Tests: C plugin cross-compiled with cc and loaded, plus wrong ABI major,
missing symbol/artifact, hash mismatch and malformed manifest cases.