cflmy 63bceae587 migrate: own fs/file and path sources with host-authorization assertions
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
2026-11-26 23:30:29 +08:00

marqdo-std-fs

本仓负责文件、目录与词法路径。当前处于标准库源码归位迁移阶段:源码与断言已迁入本仓,等待父仓候选组合验收(父仓工单 marqdo#9,本仓工单 #1)。

唯一公开入口(Bundle 根相对路径)

发布路径 公开导入 职责
fs/file.mq.md std:fs/file 有界文件读写、目录遍历与删除
path.mq.md std:path 纯词法 join/basename/dirname/normalize

modules/ 保存将来 Bundle 根下的相对路径;Bundle 与 stdlib.json 由父仓唯一生产者生成,本仓不维护第二份官方 manifest。

目录

  • modules/:对外发布的模块源码(Bundle 根相对路径)。
  • tests/:迁入的 .mq.md 自测源与 tests/cases/ 期望(observation 终值、stdout、参数、环境)。
  • scripts/:独立验收入口。

独立验收

只接受显式传入的已验证制品,不读取兄弟仓物理路径或浮动分支:

MARQDO_BIN=/path/to/verified/marqdo \
MARQDO_STDLIB_DIR=/path/to/installed/bundle \
scripts/test.sh
  • MARQDO_BIN:真实 CLI 二进制;MARQDO_STDLIB_DIR:已安装且通过 manifest digest 校验、包含本仓模块的 Bundle。
  • 期望值来自迁移前基线的真实执行结果;修改期望值等于声明公开行为变化,必须单独评审。

边界

不实现语言内核或资源原语;路径授权、原子/缓冲、符号链接等安全边界仍由 Host 负责,库只做薄封装;path 不进行 I/O。保留基线中的 8 MiB 有界读取、close 写入、非递归删除与既有错误。

生态迁移台账 · 开发流程

S
Description
Marqdo standard library component for fs
Readme
35 KiB
0 Stars 1 Watchers 0 Forks
Languages
Python 95.4%
Shell 4.6%