diff --git a/cli b/cli index 36666ab..8ad2f2c 160000 --- a/cli +++ b/cli @@ -1 +1 @@ -Subproject commit 36666ab52b611c26003b15a9e1c7e23d6c99ebb2 +Subproject commit 8ad2f2cffabcea1072f772b4748606eb01dd0744 diff --git a/docs/evidence/2026-11-30-stdlib-bundle-0.3.0.md b/docs/evidence/2026-11-30-stdlib-bundle-0.3.0.md new file mode 100644 index 0000000..8e0ae8d --- /dev/null +++ b/docs/evidence/2026-11-30-stdlib-bundle-0.3.0.md @@ -0,0 +1,57 @@ +# 官方 Bundle 0.3.0 联动候选(strict JSON 数据组件) + +Date: 2026-11-30. +Root candidate branch: `codex/stdlib-bundle-0.3.0`. +Component inputs: root `stdlib/data` → merged `250633fdca18d8f7d5968561c8dfb51eaeb1ceac` +(PR #14, `json.严格解析`); CLI candidate → merged `8ad2f2cffabcea1072f772b4748606eb01dd0744` +(PR #28, Bundle pin 0.3.0). + +## 1. 候选身份 + +| 项 | 值 | +|---|---| +| Bundle | `marqdo-stdlib 0.3.0` | +| tree digest | `sha256:4e47b0ff4b1e17d252cc74f20837014298fed4831050d65ca0c69f9cbdac55e9` | +| aliases digest | `sha256:5f513c0fdbb3c1e9829be3c9fa23a2d1e89cb8510073fb5eb1e8e2f5265a83bb`(不变) | +| 生产者 | 根 `scripts/build-stdlib.py`(唯一生产者) | +| Bundle 配置 | `scripts/stdlib-bundle.json` 显式版本 bump `0.2.0 → 0.3.0` | +| 内容变化 | `data/json.mq.md` 增加 `json.严格解析`(同层重复键/非有限值拒绝);其余模块字节不变 | +| CLI pin | `tools/stdlib/bundle-pin.json` version/tree/aliases/source.commit = 根候选 `ad88b1e9e50aec978cb23d4e5fe316bbb779967f` | + +版本显式变化满足“同版本不同摘要被拒绝”的规则;不存在第二份 Bundle manifest 或发布路径。 + +## 2. 本地实测 + +```text +$ python3 scripts/build-stdlib.py --out .build/bundle-0.3.0 \ + --root-commit ad88b1e9e50aec978cb23d4e5fe316bbb779967f +name=marqdo-stdlib version=0.3.0 +tree=sha256:4e47b0ff4b1e17d252cc74f20837014298fed4831050d65ca0c69f9cbdac55e9 +aliases=sha256:5f513c0fdbb3c1e9829be3c9fa23a2d1e89cb8510073fb5eb1e8e2f5265a83bb +strict entry present: true + +$ cd cli && python3 tools/ci/fetch_ecosystem_bundle.py --out target/ecosystem-stdlib-0.3.0 +# 从 pin commit 拉取根仓库与 stdlib gitlinks,运行根生产者并校验 pin:成功 + +$ MARQDO_TEST_STDLIB_BUNDLE=.../ecosystem-stdlib-0.3.0 cargo test --workspace --locked +638 passed, 0 failed, 2 ignored + +$ PATH= bash scripts/integration.sh # 根候选 15213ea2 配对树 +... +smoke: verified stdlib 0.3.0 tree=sha256:4e47b0ff... aliases=sha256:5f513c0f... files=18 +PASS: ecosystem candidate (single CLI/Worker/Bundle artifact, consumers green) +``` + +## 3. 配对晋升顺序 + +1. 根候选 `ad88b1e9`:`stdlib/data` gitlink + Bundle 版本 bump(已推送,供 CLI pin 引用)。 +2. CLI C2 `8e43a3d`:bundle-pin 0.3.0 + 断言/文档同步;CLI 组件 CI 真实运行。 +3. 根 A2 候选:CLI gitlink → CLI 合并提交 `8ad2f2c`;根平台 CI 在 PR 中运行完整 eco lane。 +4. 合并后根 main 固定新组合;Bundle 正式发布/tag 仍为维护者动作(本证据不冒充 Release)。 + +## 4. UNVERIFIED / 边界 + +- 根平台 CI(PR)与 CLI 合并提交的最终 gitlink 校验在平台流水线完成;本文只记录本地配对验证。 +- 正式 Bundle release 资产/tag:**未创建**(需维护者批准)。 +- stdlib/data 的扩展仓消费(ext-ai 移除词法兜底)尚未切换;ext-ai 仍 pin 旧 HTTP 候选,留待下一候选。 +- Windows/macOS 原生 lane、strict VM、view/web 浏览器域验收仍 UNVERIFIED。 diff --git a/scripts/stdlib-bundle.json b/scripts/stdlib-bundle.json index 6684ddb..2cc7548 100644 --- a/scripts/stdlib-bundle.json +++ b/scripts/stdlib-bundle.json @@ -1,13 +1,18 @@ { "name": "marqdo-stdlib", - "version": "0.2.0", + "version": "0.3.0", "public_aliases": [ { - "public_names": ["print", "打印"], + "public_names": [ + "print", + "\u6253\u5370" + ], "target_module": "io.mq.md", - "target_function": "写值", - "expected_signature": "params(值)", - "effects": ["host"] + "target_function": "\u5199\u503c", + "expected_signature": "params(\u503c)", + "effects": [ + "host" + ] } ] } diff --git a/stdlib/data b/stdlib/data index 0775c1a..250633f 160000 --- a/stdlib/data +++ b/stdlib/data @@ -1 +1 @@ -Subproject commit 0775c1af3c3a195053dbc06e988480769092e57e +Subproject commit 250633fdca18d8f7d5968561c8dfb51eaeb1ceac