diff --git a/cli b/cli index 8ad2f2c..afea4f9 160000 --- a/cli +++ b/cli @@ -1 +1 @@ -Subproject commit 8ad2f2cffabcea1072f772b4748606eb01dd0744 +Subproject commit afea4f947473ae4cd5688e53a6545cce7f327b2f diff --git a/docs/evidence/2026-11-30-cli-document-read-promotion.md b/docs/evidence/2026-11-30-cli-document-read-promotion.md new file mode 100644 index 0000000..2a61348 --- /dev/null +++ b/docs/evidence/2026-11-30-cli-document-read-promotion.md @@ -0,0 +1,56 @@ +# CLI 文档访问能力晋升(A2 候选) + +Date: 2026-11-30. +Root candidate branch: `codex/promote-cli-document-read`. +Component: `marqdo-cli` C2 `afea4f947473ae4cd5688e53a6545cce7f327b2f` +(PR #29, issue #24). + +## 1. 晋升内容 + +| 组件 | 旧 gitlink | 新 gitlink | +|---|---|---| +| cli | `8ad2f2cffabcea1072f772b4748606eb01dd0744` | `afea4f947473ae4cd5688e53a6545cce7f327b2f` | + +CLI C2 证据: + +- 运行期只读文稿能力:`document.outline` / `document.read`(ADR-0074、 + `spec/document-access.md`、`spec/evaluation.md` §8)。 +- 与 `check --emit` Analysis 3 逐字节一致的契约测试 + (`crates/cli/tests/document_access.rs`);负例覆盖 not_loaded/unknown_unit/ + stale_source/too_large/invalid_request。 +- 本地门禁:fmt/clippy、workspace 641 passed、docs_consistency、依赖/引擎/SDK + 边界、independent build PASS。 +- 平台 Woodpecker:push #167 / PR #168 success。 +- 组件证据:`docs/evidence/2026-11-30-cli-document-runtime-access.md`。 + +## 2. 根候选校验 + +```text +python3 scripts/check-layout.py +python3 scripts/check-layout.py --checkouts +python3 scripts/check-repo-conventions.py +python3 -m unittest discover -s tests/integration +bash scripts/integration.sh +``` + +本候选树本地实测(Linux x86_64 / glibc 2.43): + +```text +python3 scripts/check-layout.py PASS +python3 scripts/check-layout.py --checkouts PASS +python3 scripts/check-repo-conventions.py PASS +python3 -m unittest discover -s tests/integration PASS +bash scripts/integration.sh PASS + smoke: verified stdlib 0.3.0 tree=sha256:4e47b0ff... files=18 + PASS: ecosystem candidate (single CLI/Worker/Bundle artifact, consumers green) +``` + +平台 CI 结果以根 PR 记录为准;本地 PASS 不替代平台 eco lane。 + +## 3. 边界 / 未完成 + +- 仅更新 cli gitlink + 本文档;未改 catalog/entry、未改其他组件、未创建 release。 +- `document.*` 能力是只读快照访问;未新增文件/网络/执行授权。 +- ext-ai 的 AI-U1 消费闭环(C01/C03/I08)由 ext-ai 侧在固定 CLI 候选上另行实现与 + 验收,不在本晋升中冒充。 +- Windows/macOS 原生 lane、strict VM、正式 tag/Release 仍 UNVERIFIED。