From 0443c59e0eab3189f020a8acd6169aa28467d6d0 Mon Sep 17 00:00:00 2001 From: cflmy Date: Mon, 30 Nov 2026 15:53:32 +0800 Subject: [PATCH 1/2] feat: promote the CLI document-read capability Pin marqdo-cli C2 afea4f9 (PR #29, issue #24) in the root gitlink tree. The component adds the read-only document.outline/document.read snapshot builtins with an Analysis-consistent contract, tests and ADR-0074; root catalog/entries are unchanged. Evidence: docs/evidence/2026-11-30-cli-document-read-promotion.md. Local layout/checkouts/conventions/integration validation to be recorded on the candidate before the PR is opened. --- cli | 2 +- .../2026-11-30-cli-document-read-promotion.md | 46 +++++++++++++++++++ 2 files changed, 47 insertions(+), 1 deletion(-) create mode 100644 docs/evidence/2026-11-30-cli-document-read-promotion.md 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..f746e3b --- /dev/null +++ b/docs/evidence/2026-11-30-cli-document-read-promotion.md @@ -0,0 +1,46 @@ +# 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 +``` + +结果:本候选树本地执行;平台 CI 结果以根 PR 记录为准。集成输出必须显示 +`PASS: ecosystem candidate (single CLI/Worker/Bundle artifact, consumers green)` +且 Bundle 仍为 `marqdo-stdlib 0.3.0`(tree `sha256:4e47b0ff…`)。 + +## 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。 -- 2.54.1 From a6ac24dd7e76c28ca2a1e56e871c9d7eb091c50d Mon Sep 17 00:00:00 2001 From: cflmy Date: Mon, 30 Nov 2026 15:55:31 +0800 Subject: [PATCH 2/2] docs: record local A2 validation for the CLI document-read promotion check-layout (tree + recursive), check-repo-conventions, tests/integration and the full scripts/integration.sh ecosystem candidate all PASS locally with Bundle 0.3.0 verified; the platform eco lane is recorded by the root PR. --- .../2026-11-30-cli-document-read-promotion.md | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/docs/evidence/2026-11-30-cli-document-read-promotion.md b/docs/evidence/2026-11-30-cli-document-read-promotion.md index f746e3b..2a61348 100644 --- a/docs/evidence/2026-11-30-cli-document-read-promotion.md +++ b/docs/evidence/2026-11-30-cli-document-read-promotion.md @@ -33,9 +33,19 @@ python3 -m unittest discover -s tests/integration bash scripts/integration.sh ``` -结果:本候选树本地执行;平台 CI 结果以根 PR 记录为准。集成输出必须显示 -`PASS: ecosystem candidate (single CLI/Worker/Bundle artifact, consumers green)` -且 Bundle 仍为 `marqdo-stdlib 0.3.0`(tree `sha256:4e47b0ff…`)。 +本候选树本地实测(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. 边界 / 未完成 -- 2.54.1