feat: candidate AI-U1 document read closed loop #7

Merged
cflmy merged 1 commits from codex/ai-u1-document-cycle into main 2026-11-30 16:06:52 +08:00
Owner

概述

利用已合并的 CLI #24(afea4f9,document.outline/document.read)交付 ext-ai 的 AI-U1 候选闭环:选择锚点 → 精确读取知识章节 → 以读取原文作为模型上下文 → 结构化判断结果。默认组件 CI 镜像仍无该 builtin,因此该闭环放在独立候选 lane,不改变默认 scripts/ci.sh 与 39 cases。

交付

  • tests/integration/document_cycle.mq.md:document.outline() 取 Unit/Anchor 目录,document.read(module,"规则") 读取精确章节,构造 ai.classify 上下文并返回 module/unit、读取长度与判断。
  • tests/cases-candidate/document_cycle.json + scripts/candidate_document_cycle.sh:候选输入 lane(MARQDO_AI_CASES_DIR),确定性 fixture 模型 valid_yes。
  • scripts/run_cases.py 支持 MARQDO_AI_CASES_DIR;fixture_server.py 增加 valid_yes。
  • docs/STATUS.md:AI-U1 解除;C01/C03 候选 PASS;I08 PARTIAL(选择→读取→判断闭环,计算/解释与真实模型待续)。证据 docs/evidence/2026-11-30-ai-u1-document-cycle.md。

验证(真实 CLI,Linux x86_64 / glibc 2.43)

CLI candidate afea4f9(document.*)+ Bundle 0.3.0(tree 4e47b0ff…)+ HTTP pin 8fe0bee
$ MARQDO_AI_CASES_DIR=tests/cases-candidate python3 scripts/run_cases.py
PASS document_cycle — 1 cases passed

$ sh scripts/ci.sh test(同输入)
39 cases passed (marqdo 3.0.0-rc.6)

document_cycle 断言读取 unit 身份
root:ai-acceptance-consumer@0.0.0::…/document_cycle.mq.md#规则库/规则 与判断 {"label":"是"}。

边界 / 未验证

  • 默认 CI 镜像仍是不含 document.* 的 CLI,故该用例不进默认 CI;不把本地候选 PASS 冒充平台 CI。
  • I08 的计算/解释与真实模型部分未完成;AI-U3 瞬时 TLS、AI-U2b 严格切换(正式镜像)仍按 STATUS。
  • 未改 CLI/其它组件;未新增跨仓依赖;未创建 release/tag。

refs #2 #3 #4

## 概述 利用已合并的 CLI #24(`afea4f9`,`document.outline`/`document.read`)交付 ext-ai 的 **AI-U1 候选闭环**:选择锚点 → 精确读取知识章节 → 以读取原文作为模型上下文 → 结构化判断结果。默认组件 CI 镜像仍无该 builtin,因此该闭环放在独立候选 lane,不改变默认 `scripts/ci.sh` 与 39 cases。 ## 交付 - `tests/integration/document_cycle.mq.md`:`document.outline()` 取 Unit/Anchor 目录,`document.read(module,"规则")` 读取精确章节,构造 `ai.classify` 上下文并返回 module/unit、读取长度与判断。 - `tests/cases-candidate/document_cycle.json` + `scripts/candidate_document_cycle.sh`:候选输入 lane(`MARQDO_AI_CASES_DIR`),确定性 fixture 模型 `valid_yes`。 - `scripts/run_cases.py` 支持 `MARQDO_AI_CASES_DIR`;`fixture_server.py` 增加 `valid_yes`。 - `docs/STATUS.md`:AI-U1 解除;C01/C03 候选 PASS;I08 PARTIAL(选择→读取→判断闭环,计算/解释与真实模型待续)。证据 `docs/evidence/2026-11-30-ai-u1-document-cycle.md`。 ## 验证(真实 CLI,Linux x86_64 / glibc 2.43) ```text CLI candidate afea4f9(document.*)+ Bundle 0.3.0(tree 4e47b0ff…)+ HTTP pin 8fe0bee $ MARQDO_AI_CASES_DIR=tests/cases-candidate python3 scripts/run_cases.py PASS document_cycle — 1 cases passed $ sh scripts/ci.sh test(同输入) 39 cases passed (marqdo 3.0.0-rc.6) ``` `document_cycle` 断言读取 unit 身份 `root:ai-acceptance-consumer@0.0.0::…/document_cycle.mq.md#规则库/规则` 与判断 `{"label":"是"}`。 ## 边界 / 未验证 - 默认 CI 镜像仍是不含 document.* 的 CLI,故该用例不进默认 CI;不把本地候选 PASS 冒充平台 CI。 - I08 的计算/解释与真实模型部分未完成;AI-U3 瞬时 TLS、AI-U2b 严格切换(正式镜像)仍按 STATUS。 - 未改 CLI/其它组件;未新增跨仓依赖;未创建 release/tag。 refs #2 #3 #4
cflmy added 1 commit 2026-11-30 15:59:36 +08:00
Add the candidate-input closed loop unlocked by marqdo-cli#24 (CLI afea4f9):
the program selects the unit/anchor outline with document.outline, reads the
exact knowledge section with document.read, feeds that exact source text to
ai.classify and returns the structured identity/result.

The default component CI image still ships a CLI without document.*, so this is
a separate candidate lane (scripts/candidate_document_cycle.sh +
MARQDO_AI_CASES_DIR); the default scripts/ci.sh and 39-case suite are unchanged
and stay green. Fixture server gains a deterministic valid_yes scenario.

STATUS updates AI-U1 resolved, C01/C03 candidate PASS, I08 PARTIAL
(select->read->classify->structured result closed; compute/explain and real
model continue). Evidence: docs/evidence/2026-11-30-ai-u1-document-cycle.md.

No release, no new cross-repo dependency, no CLI/other component change.
cflmy merged commit 09e6eaf560 into main 2026-11-30 16:06:52 +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-ext-ai#7