migrate: own the file and path modules with their baseline authorization assertions #2

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

范围

父仓工单 cflmy/marqdo#9 中 marqdo-std-fs 的迁移交付:把 CLI 官方标准库相关模块与断言迁入本仓作为唯一源码权威;不改 CLI 核心、Host 或语言语义。

  • 冻结路径保持原样(std:fs/file、std:path)。
  • fs case 使用原产品测试的 --allow-read/--allow-write out 授权参数与清理语义;权限检查仍在 Host。
  • 期望终值覆盖原 fs_test_exercises_the_file_operation_surface 的 15 项断言。

Bundle 与 stdlib.json 由根唯一生产者生成,本仓不维护第二份官方 manifest。

验证

  • 基线 Bundle /root/work/marqdo/cli/stdlib + 候选 CLI(issue #11 Phase A 合并 master,f8b82d4 构建)捕获期望并对照原产品断言。
  • staging Bundle(基线 Bundle 覆盖本仓 modules/ 后重算 digest)sha256:5407d3665ba2fe105820d0f1af5efaafa10c277a69eb819c3225719813c8c713。
  • MARQDO_BIN=<候选> MARQDO_STDLIB_DIR=<staging> scripts/test.sh 结果:
PASS fs
PASS path
2 cases passed

原断言对照

见 tests/cases/*.json,期望终值取自迁移前基线真实执行结果。

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

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

## 范围 父仓工单 cflmy/marqdo#9 中 `marqdo-std-fs` 的迁移交付:把 CLI 官方标准库相关模块与断言迁入本仓作为唯一源码权威;不改 CLI 核心、Host 或语言语义。 - 冻结路径保持原样(`std:fs/file`、`std:path`)。 - `fs` case 使用原产品测试的 `--allow-read/--allow-write out` 授权参数与清理语义;权限检查仍在 Host。 - 期望终值覆盖原 `fs_test_exercises_the_file_operation_surface` 的 15 项断言。 Bundle 与 `stdlib.json` 由根唯一生产者生成,本仓不维护第二份官方 manifest。 ## 验证 - 基线 Bundle `/root/work/marqdo/cli/stdlib` + 候选 CLI(issue #11 Phase A 合并 master,`f8b82d4` 构建)捕获期望并对照原产品断言。 - staging Bundle(基线 Bundle 覆盖本仓 `modules/` 后重算 digest)`sha256:5407d3665ba2fe105820d0f1af5efaafa10c277a69eb819c3225719813c8c713`。 - `MARQDO_BIN=<候选> MARQDO_STDLIB_DIR=<staging> scripts/test.sh` 结果: ``` PASS fs PASS path 2 cases passed ``` ## 原断言对照 见 `tests/cases/*.json`,期望终值取自迁移前基线真实执行结果。 Refs cflmy/marqdo#9, cflmy/marqdo-std-fs#1 迁移候选,待根组合验收;不声称已集成或已发布。
cflmy added 1 commit 2026-11-26 23:30:29 +08:00
Move the official stdlib file and path modules to their unique source authority
without changing public paths or host authorization. Carry the pre-migration
product assertions, including the bounded read and cleanup semantics.

Refs cflmy/marqdo#9, cflmy/marqdo-std-fs#1
cflmy merged commit 63bceae587 into main 2026-11-26 23:58:10 +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-fs#2