Phase B of ADR-0070 (issue #11): the CLI no longer owns standard-library
sources. The pin names the accepted ecosystem Bundle (marqdo-stdlib@0.2.0,
root commit + tree/alias digests); tools/ci/fetch_ecosystem_bundle.py
materializes it from the pinned root commit and stdlib gitlinks and verifies
the digests. bundle.py and the test harness require an explicit verified Bundle
for the accepted identity, and runtime discovery has no compile-time source
fallback in any profile.
Delete stdlib/ (modules, self-tests, aliases manifest). Module and domain tests
stay with their component owners; the CLI product lane now verifies the
external Bundle's public surface, std: resolution and official print/打印 alias
routing (tests/product-stdlib). Composition assertions whose owner is the
ecosystem (Table split, print-format equivalence) moved to the root Bundle
acceptance; the generic TCP round-trip stays a CLI test. Spawned-CLI tests name
the verified Bundle explicitly.
CI (Woodpecker + GitHub) materializes the pinned Bundle before product tests,
packaging and performance lanes; packaging and release take --stdlib-dir from
that artifact. Docs, STATUS, ADR-0070 and a Phase B evidence record updated.
Refs cflmy/marqdo#9, cflmy/marqdo-cli#11
Woodpecker executes the job commands as one shell script; the inline contract
block plus its trailing commands exceeded the runner's command buffer and the
last command was truncated mid-argument (the raw log shows the shell received
'python3 tools/c'). Move the lane into tools/ci/contract_lane.sh and keep the
CI commands short, preserving every check.
CI jobs share one workspace, so a second job saw 'output already exists' from
the first fetch. The helper now reuses an output only after verifying it against
the pin, builds into a temporary sibling and moves it into place atomically.
Refs cflmy/marqdo-cli#11
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 #11 Phase B,父仓 #9 的 MIG-CLI 完成项)
在 Phase A 显式 Bundle 输入之上完成源码所有权切换:CLI 不再拥有标准库源码,接受由生态根仓库组装的唯一 Bundle。
tools/stdlib/bundle-pin.json→source.kind = "ecosystem":cflmy/marqdo@48189243f7,marqdo-stdlib@0.2.0,tree digestsha256:db905508…,aliases digestsha256:5f513c0f…(17 模块,无组件自测)。tools/ci/fetch_ecosystem_bundle.py:按 pin 抓取精确根提交与 6 个 stdlib gitlink,运行根唯一生产者并校验摘要;CI 用它物化 Bundle,不读浮动分支、不 vendor 源码。stdlib/(模块、自测、manifest)与任何 build profile 的编译期源码 fallback;运行时发现只剩MARQDO_STDLIB_DIR与二进制相邻stdlib/。bundle.py/测试 harness 对 ecosystem pin 要求显式已验证 Bundle;缺失即 fail-closed。std:执行、官方print/打印alias 路由(tests/product-stdlib/)。marqdo-ext-http(loopback 测试后续);CLI 保留通用 TCP round-trip(tcp_round_trip.rs)。验证(本地候选
72f57be,Bundle 由 fetch helper 物化)cargo fmt --all -- --check、cargo clippy --workspace --all-targets -- -D warnings:PASS。MARQDO_TEST_STDLIB_BUNDLE=<materialized> cargo test --workspace --locked:72 个测试二进制全部 PASS。python3 -m unittest discover -s tools/ci -p "test_*.py":75 tests OK。cargo test -p marqdo-cli --test stdlib_product:4 PASS(含缺 Bundle fail-closed)。independent_build.py、release package + smoke:本地运行,结果见 PR 评论/CI。未验证
Refs cflmy/marqdo#9, cflmy/marqdo-cli#11
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.