refactor: accept the ecosystem stdlib Bundle and remove the in-repo sources
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
This commit is contained in:
1 parent
f8b82d4143
commit
72f57beee0
85 files changed
+796
-5939
No files matched your search
@@ -2,7 +2,7 @@
|
||||
"""Prove the CLI and Provider Worker build without any stdlib source (ADR-0070).
|
||||
|
||||
The script exports one committed revision with `git archive`, removes the
|
||||
`stdlib/` tree (there is no ecosystem checkout either), builds
|
||||
source tree (there is no ecosystem checkout either), builds
|
||||
`marqdo-cli` + `marqdo-provider-worker` with `--locked`, and then:
|
||||
|
||||
* runs a language-only program through the freshly built CLI (`check` + `call`);
|
||||
@@ -126,15 +126,11 @@ def main(argv: list[str]) -> int:
|
||||
source = work / "source"
|
||||
try:
|
||||
source_sha = export_revision(repo, args.source, source)
|
||||
stdlib = source / "stdlib"
|
||||
if not stdlib.is_dir():
|
||||
if (source / "stdlib").exists():
|
||||
raise BuildError(
|
||||
"the exported revision has no stdlib/ tree; the lane must remove a "
|
||||
"real Bundle to prove the build does not need it"
|
||||
"Phase B forbids an in-repo stdlib source tree; the independent "
|
||||
"build lane proves the CLI compiles with no Bundle checkout at all"
|
||||
)
|
||||
shutil.rmtree(stdlib)
|
||||
if stdlib.exists():
|
||||
raise BuildError(f"failed to remove {stdlib}")
|
||||
|
||||
env = os.environ.copy()
|
||||
env.pop("MARQDO_STDLIB_DIR", None)
|
||||
@@ -195,7 +191,7 @@ def main(argv: list[str]) -> int:
|
||||
"target_dir": str(target),
|
||||
"binaries": binaries,
|
||||
"checks": {
|
||||
"stdlib_source_removed": True,
|
||||
"stdlib_source_absent": True,
|
||||
"language_only_check": "PASS",
|
||||
"language_only_call": "PASS:3",
|
||||
"stdlib_dependent_missing_bundle": "PASS",
|
||||
|
||||
Reference in new issue
Block a user