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
Docs-only delta on top of the verified code SHA 9b4f0a0:
- Woodpecker PR pipeline #101 (test/minimum-rust/build all green, including
archive smoke and frozen external conformance).
- domain-service ledger stays DEFERRED under ADR-0062 (no new domain op).
- STATUS/evidence update; no code, lock or protocol change.
test lane 实际执行并通过:fmt、clippy、cargo test --workspace、docs/architecture、check_dependency_boundaries.py、check_engine_boundary.py、check_plugin_sdk.py、tools/ci 单测、stdlib_product、Windows GNU 交叉 cargo check。
minimum-rust(rust:1.89)通过。
build lane 通过:release 二进制、同一 SHA 的确定性 archive、archive smoke、冻结外部 conformance。
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
范围
按 issue #13 / ADR-0071 完成核心 M0–M3 边界工作,不改变语言语义与任何公共协议(Analysis 3 / Observation 1 / Tool 1 / Plugin ABI 1.0 / Value Wire 1 / Provider v2 / lock v4 均未变)。
marqdo-host-contract:Host/HostOp/ExecutionContext/ResourceRead/FrameId/ParameterSource/LoopTransfer/RuntimeObservation唯一定义。marqdo-runtime只依赖中立契约;marqdo-host实现契约,不反向依赖 runtime/frontend/IR。marqdo-plugin-abi收敛为纯契约(C ABI/wire/error);manifest/artifact/loader/worker 执行侧移入marqdo-host::plugin;SDK 不再携带 loader/worker/host。tests/embedding(独立 workspace + lock):Markdown→frontend→IR→runtime、真实 fuel/stack/deadline/memory 限制、拒绝外部效果,并与真实 CLI 对同一.mq.md做值级差分。tests/sdk-plugin:只用公开 SDK 构建第三方插件,用真实 CLI 显式 trust/grant 调用;篡改 artifact digest 被拒绝。验证(Linux x86_64,Rust 1.100 本机)
cargo fmt --all -- --checkPASScargo clippy --workspace --all-targets --locked -D warningsPASScargo test --workspace --locked --no-fail-fast:636 passed / 0 failed / 2 ignored;基线4bbefc9为 633/0/2(无回退)docs_consistency、architecture_boundaries、stdlib_productPASSpython3 tools/ci/check_dependency_boundaries.pyPASS(54 个工具单测含负例)python3 tools/ci/check_engine_boundary.pyPASS(sum_to(10)=55、types 值级一致;燃料/栈/deadline/memory/资源拒绝)python3 tools/ci/check_plugin_sdk.pyPASS(真实 CLI 调用 Int 42;篡改 digest 拒绝)cargo check --workspace --all-targets --target x86_64-pc-windows-gnuPASS(仅交叉编译)未验证 / 后续(不冒充 PASS)
Evidence:
docs/evidence/2026-11-26-issue-13-engine-host-boundary.mdADR:
docs/adr/0071-engine-host-contract-boundary.mdRefs #13
d713aa068ato9b4f0a0822与现有工单的落盘顺序
crates/cli/tests/architecture_boundaries.rs、docs/STATUS.md和docs/architecture/CURRENT.md,与仍开启的 stdlib Phase A PR (#12) 有重叠。建议先合并本架构候选,再由 #12 基于新 master rebase;本 PR 不重复实现 stdlib Bundle 输入,也不修改stdlib/生产源码/发布产物。CI 状态(候选
e2162ad)Woodpecker push pipeline #103 全部成功:
clone/contract/test/minimum-rust/build。testlane 实际执行并通过:fmt、clippy、cargo test --workspace、docs/architecture、check_dependency_boundaries.py、check_engine_boundary.py、check_plugin_sdk.py、tools/ci 单测、stdlib_product、Windows GNU 交叉cargo check。minimum-rust(rust:1.89)通过。buildlane 通过:release 二进制、同一 SHA 的确定性 archive、archive smoke、冻结外部 conformance。上一轮 PR pipeline #100 的
provider_cliETXTBSY是既有的环境性偶发(同一代码直接重跑 #101 全绿);无代码改动。仍未在本候选验证:native Windows/macOS 运行、strict VM、WASM probe、性能/RSS。证据文件:
docs/evidence/2026-11-26-issue-13-engine-host-boundary.md。最终候选
e2162add2247a465c5684bed0f45e527a69f467a的 CI 已全绿:代码 SHA 为
9b4f0a0,e2162ad只是 docs-only 证据/台账更新(无代码、lock、协议改动)。因此 C11/G05 的候选证据绑定到同一代码树;M4 仍未验证的固定 lane(native Windows/macOS、strict VM、WASM probe、性能/RSS)保持 UNVERIFIED。SDK 物理外迁已另建 #15。