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
CI evidence tools
strict-evidence.py
Writes marqdo.strict-evidence.v1, called by tests/security/run-lane.sh when
MARQDO_STRICT_EVIDENCE is set and by the self-hosted security workflow. It
records only measured or explicitly supplied facts:
tested_shaand whether it came fromgit rev-parseor an operator env;- source archive SHA256 (and whether it matched the expected digest);
- kernel/uname/cgroup2/container,
uid/root, bwrap/rustc/cargo/cc versions; - runner kind, image digest, run URL, start/finish and outcome.
A root-only PASS is rejected. PASS from a container or a persistent
self-hosted runner with production credentials is not valid G-C evidence; see
docs/security-vm.md.
release_evidence.py
Aggregates per-gate results into marqdo.release-gates.v1:
python3 tools/ci/release_evidence.py \
--target-sha "$SHA" \
--gate "linux=PASS:$SHA:https://ci.example/run/1" \
--gate "windows=PASS:$SHA:https://ci.example/run/2" \
--gate "macos=PASS:$SHA:https://ci.example/run/3" \
--gate "strict_vm=PASS:$SHA:https://ci.example/run/4" \
--gate "performance=WARN:$SHA:https://ci.example/run/5" \
--out "docs/evidence/ci/$SHA/manifest.json"
A missing gate becomes UNVERIFIED. Any non-PASS required gate, a
tested_sha different from target_sha, an unknown gate name or a malformed
SHA forces DO_NOT_RELEASE. performance may be PASS or WARN.
Unit tests: python3 -m unittest discover -s tools/ci -p 'test_*.py'.
Frozen external extension lane
run_frozen_extensions.sh ARCHIVE SOURCE_SHA OUTPUT_MANIFEST fetches the
fixture revision pinned in the script and checks it out detached in a
temporary directory. It extracts the Linux archive there and uses the
release metadata to verify the source SHA and both executable digests.
The external fixture runs against that installation and the verifier checks
fresh results, all seven extension groups and the reference application cases.
GitHub CI uploads the manifest. Woodpecker prints it in the build step.