From f17e23aeec26e82f7ab45c3ed697572c1d38457a Mon Sep 17 00:00:00 2001 From: cflmy Date: Fri, 27 Nov 2026 01:51:06 +0800 Subject: [PATCH] docs: record the promoted stdlib migration combination and M4 cold install The root candidate is promoted: main pins CLI Phase B (no in-repo stdlib sources) and the six migrated stdlib components; the root CI candidate passed with one derived CLI/Worker/Bundle artifact and all consumers. Record the promotion, the required check pipeline, the release-level offline cold install result, the archive identity caveat (example binaries built locally differ from the CI archive) and the remaining non-blocking follow-ups. Also fix the integration evidence JSON: root_commit must name the root candidate commit, with cli_source_sha separate. Refs cflmy/marqdo#9 --- docs/ARCHITECTURE.md | 2 +- docs/MIGRATION.md | 3 ++- docs/REPOSITORY-TASKS.md | 2 +- docs/evidence/2026-11-27-stdlib-m3-candidate.md | 11 +++++++++++ scripts/integration.sh | 11 ++++++----- 5 files changed, 21 insertions(+), 8 deletions(-) diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index e418e85..f0ad46b 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -23,7 +23,7 @@ - **聚合准入**:功能拆分须至少有一种独立价值(独立维护责任、显著不同依赖/安全/平台边界、独立版本与制品、可重复独立验收)。若两个仓库几乎每个 PR 都必须一起改动且接口未稳定,应先收敛合同或合并,不能无限拆分。 - **工具目录**(`tools/`)暂不聚合,现有四个 Tool 保持原路径。 -**当前状态**(以 [components.toml](../components.toml) 与 [迁移台账](MIGRATION.md) 为准):根仓库有六个直属 active 组件(`cli`、`conformance`、`view`、`knowledge`、`prove`、`lint`)。九个标准库和十八个独立扩展是根层的 planned 子模块。`extensions/web` 是 planned 领域子模块,Design 和 Preview 由 Web 领域仓挂载。`marqdo-stdlib` 聚合和 `web-components` 仍在计划中。 +**当前状态**(以 [components.toml](../components.toml) 与 [迁移台账](MIGRATION.md) 为准):根仓库有六个核心/工具 active 组件(`cli`、`conformance`、`view`、`knowledge`、`prove`、`lint`)和六个已交付源码的 active 标准库组件(`std-collections/data/fs/io/system/text`)。`std-core/encoding/net` 与十八个独立扩展仍是根层 planned 子模块。`extensions/web` 是 planned 领域子模块,Design 和 Preview 由 Web 领域仓挂载。`marqdo-stdlib` 聚合和 `web-components` 仍在计划中。 ## 语言与产品层(不因仓库变多而改变) diff --git a/docs/MIGRATION.md b/docs/MIGRATION.md index acfc865..4237cb0 100644 --- a/docs/MIGRATION.md +++ b/docs/MIGRATION.md @@ -149,7 +149,8 @@ Conformance 使用 CLI 已固定的真实 fixture 提交。 | 组合验收入口 | M2 候选 PASS(组件 entry + 跨仓组合 + 负例 + 相邻离线安装 + CLI 确定性打包) | `scripts/acceptance-stdlib.py`、[M2 候选证据](evidence/2026-11-26-stdlib-m2-candidate.md)、[根 PR #11](https://git.cflmy.cn/cflmy/marqdo/pulls/11) | | CLI 旧源树删除 | 候选完成:CLI 仓已无 `stdlib/` 源树、无编译期 fallback,pin 指向生态 Bundle | [marqdo-cli#11](https://git.cflmy.cn/cflmy/marqdo-cli/issues/11)、[CLI PR #17](https://git.cflmy.cn/cflmy/marqdo-cli/pulls/17)、[Phase B 证据](https://git.cflmy.cn/cflmy/marqdo-cli/src/branch/migration/cli-stdlib-phase-b/docs/evidence/2026-11-27-issue-11-phase-b.md) | | 统一 CLI/Worker/Bundle 制品输入(ECO-02 核心) | 已落地:integration.sh 由同一根候选派生全部输入,不再使用 View 冻结制品 | 根 `scripts/integration.sh`、[marqdo#7](https://git.cflmy.cn/cflmy/marqdo/issues/7) | -| 根组合与切换 | M3 候选:固定 CLI Phase B 与组件提交,待 CI/晋升;主分支仍为迁移前组合 `484cb10` | [M3 证据](evidence/2026-11-27-stdlib-m3-candidate.md)、根 PR #12 | +| 根组合与切换 | **已晋升**:`main` = `f4e292e`,固定 CLI Phase B `deadf6e` 与六个 std/三个 ext 组件;根生态 CI(pipeline 38)PASS | [M3 证据](evidence/2026-11-27-stdlib-m3-candidate.md)、[根 PR #12](https://git.cflmy.cn/cflmy/marqdo/pulls/12) | +| M4 发行级验收 | 离线冷安装 PASS(`ubuntu:24.04 --network none`,归档 `sha256:377d2787...`);多平台不在本线支持矩阵 | [M3 证据的晋升章节](evidence/2026-11-27-stdlib-m3-candidate.md#晋升与-m4-验收) | ## v2 功能历史索引 diff --git a/docs/REPOSITORY-TASKS.md b/docs/REPOSITORY-TASKS.md index c5140d7..47421d4 100644 --- a/docs/REPOSITORY-TASKS.md +++ b/docs/REPOSITORY-TASKS.md @@ -35,7 +35,7 @@ ## 标准库 -每个仓库交付可独立测试的模块,共同组成默认 Bundle。聚合仓库 `marqdo-stdlib` 尚未创建,九个 `std-*` 当前保持根 catalog 的 planned 直属记录;CLI 内置标准库仍是现行发行权威,迁移完成前不得声称拆分完成。迁移的基线、模块/函数与断言台账、冻结发布路径见 [迁移台账](MIGRATION.md) 的“标准库源码归位迁移”一节;唯一 Bundle 生产者是根 `scripts/build-stdlib.py`,组合验收入口是 `scripts/acceptance-stdlib.py`。 +每个仓库交付可独立测试的模块,共同组成默认 Bundle。标准库源码归位已完成并晋升:六个交付源码的 `std-*` 在根 catalog 为 active,`std-core/encoding/net` 保持 planned 且不入 Bundle;CLI 已无内置标准库源树,唯一 Bundle 由根 `scripts/build-stdlib.py` 从固定 gitlink 生成,组合验收为 `scripts/acceptance-stdlib.py`。迁移基线、模块/函数与断言台账、冻结发布路径见 [迁移台账](MIGRATION.md) 的“标准库源码归位迁移”一节。`marqdo-stdlib` 聚合仓库仍未建立;发行级冷安装已通过,后续缺陷回各责任仓。 | 仓库 | 要完成的任务 | | --- | --- | diff --git a/docs/evidence/2026-11-27-stdlib-m3-candidate.md b/docs/evidence/2026-11-27-stdlib-m3-candidate.md index 4ce5495..98c999a 100644 --- a/docs/evidence/2026-11-27-stdlib-m3-candidate.md +++ b/docs/evidence/2026-11-27-stdlib-m3-candidate.md @@ -41,3 +41,14 @@ - 完整根 CI(`scripts/integration.sh` 含 View/Knowledge/Prove/Lint 消费者)在候选分支执行,结果记录在 PR #12/评论,不以本地部分运行替代。 - 根晋升(合并 CLI PR #17 与根 PR #12、climo gitlink 与制品同一候选)属 MIG-RELEASE。 - 完整产品归档冷安装(docker `--network none`)、多平台、ext-http loopback 领域测试仍待补;如需标记为发行门禁必须另行执行,不得以本文件冒充 PASS。 + + +## 晋升与 M4 验收(2026-11-27) + +- CLI Phase B [PR #17](https://git.cflmy.cn/cflmy/marqdo-cli/pulls/17) fast-forward 合并,`master` = `deadf6e`(contract/test/independent-build/minimum-rust/build 全绿)。 +- 根 [PR #12](https://git.cflmy.cn/cflmy/marqdo/pulls/12) fast-forward 合并,`main` = `f4e292e7b09057c77e2a9293b40051be2666c4f8`;根树固定 CLI Phase B 与六个 std、三个 ext 提交,六个 stdlib 组件 active。 +- 根生态 CI 必须门禁 `ci/woodpecker/pr/eco` PASS([pipeline 38](https://ci.cflmy.cn/repos/6/pipeline/38/1)):一次候选派生 Bundle(`sha256:db9055...`)→ 从 cli gitlink 构建 CLI/Worker → `package.py --stdlib-dir`(归档 `sha256:0827ba4b...`)→ smoke → 根 acceptance(组件 entry、显式 Package、组合、负例)→ Conformance/View/Knowledge/Prove/Lint 全部同一安装后二进制与相邻 Bundle。 +- 发行级离线冷安装:在本机对同一晋升组合(根 `f4e292e`、CLI `deadf6e`、Bundle `db9055`)重新打包(归档 `sha256:377d2787...`)并执行 `cli/tools/release/cold-install.sh`(`ubuntu:24.04`、`--network none`、非 root 用户):PASS——安装后打印、`check`、示例运行、隐藏 Bundle 时 fail-closed、仅语言程序可运行均符合门禁。 +- 两个归档 SHA 不同是因为示例插件二进制由本机构建产生,不是同一构建环境的确定性证据;确定性打包证据以 CI 同一环境两次构建为准。发行归档身份以 CI/发布记录为准,本文件只记录晋升组合与冷安装通过。 + +仍保留为后续(不阻塞本轮关闭):Windows/macOS 不在本线发行支持矩阵;`marqdo-ext-http` 的 HTTP-over-TCP loopback 领域测试;ECO-02 的递归影响分析自动化。 diff --git a/scripts/integration.sh b/scripts/integration.sh index cb2aba2..2f6ac32 100755 --- a/scripts/integration.sh +++ b/scripts/integration.sh @@ -136,17 +136,18 @@ python3 cli/tools/ci/verify_extension_contracts.py \ ) # 7. Evidence identity for the accepted candidate. -python3 - "$work" "$source_sha" "$bundle_digest" "$bundle_aliases" "$archive" <<'PY' +root_commit="$(git rev-parse HEAD)" +python3 - "$work" "$root_commit" "$source_sha" "$bundle_digest" "$bundle_aliases" "$archive" <<'PY' import hashlib, json, pathlib, sys work = pathlib.Path(sys.argv[1]) -archive = pathlib.Path(sys.argv[5]) +archive = pathlib.Path(sys.argv[6]) evidence = { "schema": "marqdo.ecosystem-integration", "schema_version": 1, "root_commit": sys.argv[2], - "cli_source_sha": sys.argv[2], - "stdlib_tree_digest": sys.argv[3], - "stdlib_aliases_digest": sys.argv[4], + "cli_source_sha": sys.argv[3], + "stdlib_tree_digest": sys.argv[4], + "stdlib_aliases_digest": sys.argv[5], "archive": archive.name, "archive_sha256": "sha256:" + hashlib.sha256(archive.read_bytes()).hexdigest(), "status": "PASS", -- 2.54.1