candidate: pin, activate and accept the six migrated stdlib components #12

Open
cflmy wants to merge 4 commits from migration/stdlib-m2-candidate into main
pull from: migration/stdlib-m2-candidate
Owner

范围(依赖根 PR #11)

M2 候选组合:把六个已迁移的 stdlib 接收仓候选固定进根树并激活,执行第一次真实的根组合验收。主分支迁移前组合 484cb10 不变;本 PR 不修改 CLI gitlink,不修改主分支。

  • 固定 gitlink:std-text/std-system/std-io/std-fs/std-data/std-collections 的接收仓候选提交(每个责任仓自己的 PR #2)。
  • 根 catalog:六个 std 组件 planned → active,登记真实 entry = scripts/test.sh;std-core/std-encoding/std-net 保持 planned、不加入 Bundle。
  • 修正 requires:迁移模块只依赖 CLI 语言/Host 内建与同仓兄弟模块,六个 active 组件真实依赖只有 cli;Table 值操作/序列化两仓声明协同验收 checks_with。旧数组是设计输入,不是真实依赖。
  • scripts/integration.sh:active 集合加入六个 stdlib 路径;在既有 RC.4 消费者门禁之前加入根组合验收 scripts/acceptance-stdlib.py。
  • 新增 M2 候选证据 与台账状态更新。

验证(本候选真实执行)

  • check-layout.py 与 --checkouts:PASS(6 个 active stdlib entry 存在,33 个固定子树一致)。
  • unittest discover -s tests/integration:Ran 56,OK。
  • Bundle:marqdo-stdlib@0.2.0,tree digest sha256:db905508...,两次干净构建逐字节一致,17 个模块(无 tests/demo/domain)。
  • 组件独立验收:6/6 PASS(17 个 case);跨仓组合:别名、Table 切分、默认 Bundle smoke PASS,Table 终值与迁移前逐字节一致。
  • 负例:缺显式 Bundle、篡改摘要均失败拒绝;相邻目录离线安装 PASS。
  • CLI 打包:Phase A(marqdo-cli@f8b82d4)pack-stdlib.py 两次确定性输出,归档 sha256:212cca32...,篡改拒绝。
  • 两个 CLI 身份(RC.4 由 452e9a3 构建;Phase A f8b82d4)对同一 Bundle 门禁结果一致。

未验证(不得当作发行验收)

  • 完整 integration.sh 既有消费者门禁(Conformance/View/Knowledge/Prove/Lint)未执行;统一 CLI 制品输入仍是 ECO-02(marqdo#7)范围。
  • CLI Phase B、HTTP/Regex/Archive 迁移、完整产品归档冷安装与多平台未完成。

Refs cflmy/marqdo#9
依赖 cflmy/marqdo#11(M0/MIG-BUNDLE)。

CI(候选 4818924)

  • 根生态 CI:pr/eco SUCCESS — https://ci.cflmy.cn/repos/6/pipeline/29/1
    • layout 步骤 PASS(含 check-layout.py --checkouts),candidate 步骤 PASS(冻结 RC.4 制品 + 统一 Bundle 生产者 + 组件 entry + 显式 Package 门禁 + 组合 fixture + 失败负例)。
    • 同提交 push/eco 被有意取消(同 commit 的重复流水线,CI 并发度为 1),不是失败;必选门禁是 ci/woodpecker/pr/eco。
  • 上一轮 4fade3e 的 CI 暴露了验收脚本负例未显式传环境的问题(有相邻 Bundle 时会误回退),已在 4818924 修复并以“安装后 CLI + 相邻 stdlib”形态本地复现验证。
## 范围(依赖根 PR #11) M2 候选组合:把六个已迁移的 stdlib 接收仓候选固定进根树并激活,执行第一次真实的根组合验收。**主分支迁移前组合 `484cb10` 不变**;本 PR 不修改 CLI gitlink,不修改主分支。 - 固定 gitlink:std-text/std-system/std-io/std-fs/std-data/std-collections 的接收仓候选提交(每个责任仓自己的 PR #2)。 - 根 catalog:六个 std 组件 `planned → active`,登记真实 `entry = scripts/test.sh`;`std-core/std-encoding/std-net` 保持 planned、不加入 Bundle。 - 修正 `requires`:迁移模块只依赖 CLI 语言/Host 内建与同仓兄弟模块,六个 active 组件真实依赖只有 `cli`;Table 值操作/序列化两仓声明协同验收 `checks_with`。旧数组是设计输入,不是真实依赖。 - `scripts/integration.sh`:active 集合加入六个 stdlib 路径;在既有 RC.4 消费者门禁之前加入根组合验收 `scripts/acceptance-stdlib.py`。 - 新增 [M2 候选证据](docs/evidence/2026-11-26-stdlib-m2-candidate.md) 与台账状态更新。 ## 验证(本候选真实执行) - `check-layout.py` 与 `--checkouts`:PASS(6 个 active stdlib entry 存在,33 个固定子树一致)。 - `unittest discover -s tests/integration`:Ran 56,OK。 - Bundle:`marqdo-stdlib@0.2.0`,tree digest `sha256:db905508...`,两次干净构建逐字节一致,17 个模块(无 tests/demo/domain)。 - 组件独立验收:6/6 PASS(17 个 case);跨仓组合:别名、Table 切分、默认 Bundle smoke PASS,Table 终值与迁移前逐字节一致。 - 负例:缺显式 Bundle、篡改摘要均失败拒绝;相邻目录离线安装 PASS。 - CLI 打包:Phase A(`marqdo-cli@f8b82d4`)`pack-stdlib.py` 两次确定性输出,归档 `sha256:212cca32...`,篡改拒绝。 - 两个 CLI 身份(RC.4 由 `452e9a3` 构建;Phase A `f8b82d4`)对同一 Bundle 门禁结果一致。 ## 未验证(不得当作发行验收) - 完整 `integration.sh` 既有消费者门禁(Conformance/View/Knowledge/Prove/Lint)未执行;统一 CLI 制品输入仍是 ECO-02(marqdo#7)范围。 - CLI Phase B、HTTP/Regex/Archive 迁移、完整产品归档冷安装与多平台未完成。 Refs cflmy/marqdo#9 依赖 cflmy/marqdo#11(M0/MIG-BUNDLE)。 ## CI(候选 `4818924`) - 根生态 CI:**pr/eco SUCCESS** — https://ci.cflmy.cn/repos/6/pipeline/29/1 - layout 步骤 PASS(含 `check-layout.py --checkouts`),candidate 步骤 PASS(冻结 RC.4 制品 + 统一 Bundle 生产者 + 组件 entry + 显式 Package 门禁 + 组合 fixture + 失败负例)。 - 同提交 push/eco 被有意取消(同 commit 的重复流水线,CI 并发度为 1),不是失败;必选门禁是 `ci/woodpecker/pr/eco`。 - 上一轮 `4fade3e` 的 CI 暴露了验收脚本负例未显式传环境的问题(有相邻 Bundle 时会误回退),已在 `4818924` 修复并以“安装后 CLI + 相邻 stdlib”形态本地复现验证。
cflmy changed target branch from migration/stdlib-m0-ledger to main 2026-11-26 23:58:35 +08:00
cflmy added 2 commits 2026-11-26 23:58:35 +08:00
M2 candidate for cflmy/marqdo#9: pin std-text/std-system/std-io/std-fs/
std-data/std-collections at the exact receiving-repo candidate commits,
activate them in the root catalog with their own scripts/test.sh entry, and
extend integration.sh with the root acceptance-stdlib gate.

The previous requires arrays were design inputs, not real dependencies: the
migrated modules import only CLI language/host builtins and same-repository
siblings, so every active stdlib component now requires only cli (the Table
pair also declares the coordinated checks_with). core/encoding/net stay planned
and do not join the Bundle.
Evidence for the pinned six-component candidate: two byte-identical Bundle
builds (0.2.0, tree digest sha256:db9055...), both verified CLI identities,
component entries, cross-repository composition (including byte-equal Table
split), fail-closed negatives, adjacent offline install and deterministic CLI
packaging. The file explicitly keeps the unchanged main combination, the
existing consumer gates, CLI Phase B and the ext migrations as UNVERIFIED.

Refs cflmy/marqdo#9
Author
Owner

依赖已落地:根 PR #11 合并(main 7475c79),六个接收仓 PR 与 CLI Phase A PR #12 均已 fast-forward 合并并被本候选以相同 SHA 固定。本 PR 保持 open,等待 ext 三仓迁移与 MIG-RELEASE 原子晋升所需的统一制品输入;不会先合并造成主分支双源。

依赖已落地:根 PR #11 合并(main `7475c79`),六个接收仓 PR 与 CLI Phase A PR #12 均已 fast-forward 合并并被本候选以相同 SHA 固定。本 PR 保持 open,等待 ext 三仓迁移与 MIG-RELEASE 原子晋升所需的统一制品输入;不会先合并造成主分支双源。
cflmy added 1 commit 2026-11-27 00:10:12 +08:00
Pin ext-http/ext-regex/ext-archive at the merged explicit-Package candidates
(they stay planned, never join the default Bundle) and extend the root
acceptance gate to run any extension checkout that publishes the current
package layout (marqdo.yaml + index.mq.md + scripts/test.sh). Record the actual
package-entry decision in the ledger and evidence: the three domain modules are
consumed through the public @alias import after marqdo lock, with the original
domain tests and baseline terminal values preserved.

Refs cflmy/marqdo#9
Author
Owner

候选更新(4fade3e):固定 ext-http/ext-regex/ext-archive 的显式 Package 合并提交,根组合验收新增 explicit-package 门禁(临时消费者工程经 marqdo lock + @alias 公开导入,原始领域测试终值与迁移前基线一致)。三者保持 planned,不进入默认 Bundle。

本地候选复跑:check-layout.py --checkouts PASS;Bundle 0.2.0 tree digest 不变 sha256:db9055...;acceptance(RC.4 452e9a3 构建)9 个组件/包门禁 + 3 组合 + 2 负例 PASS。等 CI 与后续 MIG-RELEASE(统一 CLI 制品输入)后再晋升。

候选更新(`4fade3e`):固定 ext-http/ext-regex/ext-archive 的显式 Package 合并提交,根组合验收新增 `explicit-package` 门禁(临时消费者工程经 `marqdo lock` + `@alias` 公开导入,原始领域测试终值与迁移前基线一致)。三者保持 planned,不进入默认 Bundle。 本地候选复跑:`check-layout.py --checkouts` PASS;Bundle `0.2.0` tree digest 不变 `sha256:db9055...`;acceptance(RC.4 `452e9a3` 构建)9 个组件/包门禁 + 3 组合 + 2 负例 PASS。等 CI 与后续 MIG-RELEASE(统一 CLI 制品输入)后再晋升。
cflmy added 1 commit 2026-11-27 00:26:58 +08:00
The fail-closed gates must run with MARQDO_STDLIB_DIR explicitly pointed at a
missing or tampered Bundle; inheriting the caller environment let a CLI with an
adjacent valid Bundle fall back and made the missing-bundle negative pass.
Reproduced with an installed CLI that has stdlib/ next to the binary.

Refs cflmy/marqdo#9
Author
Owner

CI 修复后候选 4818924 通过必选门禁:pr/eco SUCCESS https://ci.cflmy.cn/repos/6/pipeline/29/1

失败原因与修复:4fade3e 的 candidate 步骤失败于 negative gate missing-explicit-bundle unexpectedly passed——负例门禁没有把 MARQDO_STDLIB_DIR 显式传入子进程,安装后 CLI 会回退到二进制相邻 stdlib/。修复为显式传环境,并用“安装后 CLI + 相邻 stdlib”形态本地复现验证。push/eco 是被有意取消的重复流水线,不是失败。

CI 修复后候选 `4818924` 通过必选门禁:pr/eco SUCCESS https://ci.cflmy.cn/repos/6/pipeline/29/1 失败原因与修复:`4fade3e` 的 candidate 步骤失败于 `negative gate missing-explicit-bundle unexpectedly passed`——负例门禁没有把 `MARQDO_STDLIB_DIR` 显式传入子进程,安装后 CLI 会回退到二进制相邻 `stdlib/`。修复为显式传环境,并用“安装后 CLI + 相邻 stdlib”形态本地复现验证。push/eco 是被有意取消的重复流水线,不是失败。
All checks were successful
ci/woodpecker/pr/eco Pipeline was successful
Required
Details
ci/woodpecker/push/eco Pipeline is running
You are not authorized to merge this pull request.
This pull request can be merged automatically.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin migration/stdlib-m2-candidate:migration/stdlib-m2-candidate
git checkout migration/stdlib-m2-candidate
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: cflmy/marqdo#12