migrate: own clock/datetime/env/process/random sources and baseline assertions
Move the official stdlib system modules to their unique source authority without changing public std: paths or host authorization. Carry the pre-migration product assertions into component cases captured from the baseline Bundle; the process case resolves the granted program and expected stdout from the verified CLI. Refs cflmy/marqdo#9, cflmy/marqdo-std-system#1
This commit was merged in pull request #2.
This commit is contained in:
1 parent
e1c4da4cc5
commit
053ddb0e59
19 files changed
+949
-6
No files matched your search
@@ -1,14 +1,40 @@
|
||||
# marqdo-std-system
|
||||
|
||||
本仓负责时钟、UTC、环境、进程与随机。当前状态为 `planned`。
|
||||
本仓负责时钟、UTC、环境、进程与随机能力。当前处于**标准库源码归位迁移**阶段:源码与断言已迁入本仓,等待父仓候选组合验收(父仓工单 [marqdo#9](https://git.cflmy.cn/cflmy/marqdo/issues/9),本仓工单 [#1](https://git.cflmy.cn/cflmy/marqdo-std-system/issues/1))。
|
||||
|
||||
## 首项任务
|
||||
## 唯一公开入口(Bundle 根相对路径)
|
||||
|
||||
迁入时钟、UTC、环境、进程和随机能力。
|
||||
| 发布路径 | 公开导入 | 职责 |
|
||||
| --- | --- | --- |
|
||||
| `clock.mq.md` | `std:clock` | 项目模式 Unix 毫秒 |
|
||||
| `datetime.mq.md` | `std:datetime` | UTC ISO-8601 格式化/解析 |
|
||||
| `env.mq.md` | `std:env` | 仅授权名称的环境读取 |
|
||||
| `process.mq.md` | `std:process` | 显式授权程序、超时与输出上限 |
|
||||
| `random.mq.md` | `std:random` | OS 熵生成的字节/整数 |
|
||||
|
||||
`modules/` 保存将来 Bundle 根下的相对路径;Bundle 与 `stdlib.json` 由父仓唯一生产者生成,本仓不维护第二份官方 manifest。
|
||||
|
||||
## 目录
|
||||
|
||||
- [modules/](modules/README.md) 存放对外发布的模块源码。
|
||||
- [tests/](tests/README.md) 存放独立验收用的输入和断言。
|
||||
- `modules/`:对外发布的模块源码(Bundle 根相对路径)。
|
||||
- `tests/`:迁入的 `.mq.md` 自测源与 `tests/cases/` 期望(observation 终值、stdout、参数、环境)。
|
||||
- `scripts/`:独立验收入口。
|
||||
|
||||
## 独立验收
|
||||
|
||||
只接受显式传入的已验证制品,不读取兄弟仓物理路径或浮动分支:
|
||||
|
||||
```sh
|
||||
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 权限、资源原语或其他标准库;`clock`/`env`/`process`/`random` 只包装现行 Host 授权请求,不接管权限或 OS 监督;不新增 IANA 时区、进程监督器或密码学随机 API。
|
||||
|
||||
[生态迁移台账](https://git.cflmy.cn/cflmy/marqdo/src/branch/main/docs/MIGRATION.md) · [开发流程](https://git.cflmy.cn/cflmy/marqdo/src/branch/main/docs/DEVELOPMENT.md)
|
||||
Reference in new issue
Block a user