migrate: own text/UTF-8 sources and carry their baseline assertions #2

Merged
cflmy merged 2 commits from migration/stdlib-text into main 2026-11-26 23:58:08 +08:00
Owner

范围

父仓工单 cflmy/marqdo#9(MIG-00 冻结映射)中 std-text 的迁移交付:把 CLI 官方标准库的文本模块源码与断言迁入本仓,作为唯一源码权威;不改 CLI 核心、Host 或语言语义。

  • 冻结路径:text/utf8.mq.md → std:text/utf8(UTF-8 编解码唯一实现);text.mq.md → std:text(utf8编码 公开名称,改为对 text/utf8.mq.md 的薄封装,删除重复算法)。
  • tests/ 迁入原产品自测源,tests/cases/*.json 固定基线 observation 终值与 stdout。
  • 新增显式输入验收入口:只接受 MARQDO_BIN + MARQDO_STDLIB_DIR,不发现兄弟仓路径或浮动分支。
  • 不生成第二份官方 Bundle manifest;Bundle 生产由根唯一生产者承担。

验证(基线 Bundle + 候选 CLI f8b82d4)

  • 基线运行:/root/work/marqdo-cli/target/release/marqdo run ...(RC.4,基线 Bundle digest sha256:5407d36...)捕获期望。
  • staging Bundle(基线 Bundle 覆盖本仓 modules/,重算 digest)digest sha256:337891c52f63705562b90aefb80e39d8a974e155b94578c91a4f716f88280aaa。
  • MARQDO_BIN=<候选二进制> MARQDO_STDLIB_DIR=<staging> scripts/test.sh → PASS text、PASS utf8,2/2。

原断言对照

text_and_utf8_tests_agree_on_the_byte_encoding:text 终值 [2,195,169];utf8 终值 [2,"é",false],与基线一致。

Refs cflmy/marqdo#9, cflmy/marqdo-std-text#1

迁移候选,等根组合验收;不声称已集成或已发布。

## 范围 父仓工单 cflmy/marqdo#9(MIG-00 冻结映射)中 std-text 的迁移交付:把 CLI 官方标准库的文本模块源码与断言迁入本仓,作为唯一源码权威;不改 CLI 核心、Host 或语言语义。 - **冻结路径**:`text/utf8.mq.md` → `std:text/utf8`(UTF-8 编解码唯一实现);`text.mq.md` → `std:text`(`utf8编码` 公开名称,改为对 `text/utf8.mq.md` 的薄封装,删除重复算法)。 - `tests/` 迁入原产品自测源,`tests/cases/*.json` 固定基线 observation 终值与 stdout。 - 新增显式输入验收入口:只接受 `MARQDO_BIN` + `MARQDO_STDLIB_DIR`,不发现兄弟仓路径或浮动分支。 - 不生成第二份官方 Bundle manifest;Bundle 生产由根唯一生产者承担。 ## 验证(基线 Bundle + 候选 CLI `f8b82d4`) - 基线运行:`/root/work/marqdo-cli/target/release/marqdo run ...`(RC.4,基线 Bundle digest `sha256:5407d36...`)捕获期望。 - staging Bundle(基线 Bundle 覆盖本仓 `modules/`,重算 digest)digest `sha256:337891c52f63705562b90aefb80e39d8a974e155b94578c91a4f716f88280aaa`。 - `MARQDO_BIN=<候选二进制> MARQDO_STDLIB_DIR=<staging> scripts/test.sh` → `PASS text`、`PASS utf8`,2/2。 ## 原断言对照 `text_and_utf8_tests_agree_on_the_byte_encoding`:text 终值 `[2,195,169]`;utf8 终值 `[2,"é",false]`,与基线一致。 Refs cflmy/marqdo#9, cflmy/marqdo-std-text#1 迁移候选,等根组合验收;不声称已集成或已发布。
cflmy added 1 commit 2026-11-26 23:12:40 +08:00
Move the official stdlib text modules to their unique source authority and
freeze the bundle-root paths (std:text, std:text/utf8). text.utf8编码 becomes a
thin wrapper over the single UTF-8 implementation in text/utf8.mq.md.

Carry the pre-migration product assertions into component-owned cases with the
baseline observation terminal values, plus an explicit-input test entry point
(MARQDO_BIN + MARQDO_STDLIB_DIR). No parser, host or CLI change.

Refs cflmy/marqdo#9, cflmy/marqdo-std-text#1
cflmy added 1 commit 2026-11-26 23:13:33 +08:00
Keeps the process self-test usable for any verified CLI identity without
recording a machine-specific absolute path in the repository.
cflmy merged commit c2a7d327e5 into main 2026-11-26 23:58:08 +08:00
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-std-text#2