From d99d07ddfa3f775f949abaf1cf65b1bbc04abd0b Mon Sep 17 00:00:00 2001 From: cflmy Date: Mon, 30 Nov 2026 13:46:59 +0800 Subject: [PATCH] feat: repin merged HTTP fix and record Bundle-0.3.0 switch assessment MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Re-pin marqdo-ext-http from the candidate d0d6541 to its merged commit 8fe0bee24c92a5a71747b67fa4f9265993c110b7 and regenerate marqdo.lock. - Real-model smoke on CLI 3.0.0-rc.6 (merged 8ad2f2c) + official Bundle 0.3.0 passed on the first attempt (deepseek-flash, finish=stop, local label validation); report archived under docs/evidence. - Evaluate the strict-JSON switch to Bundle 0.3.0 `json.严格解析`: removing the local lexical scanner passes 39 fixture cases and the real smoke locally, but the component CI image still ships Bundle 0.2.0, so the switch is deferred to a follow-up PR after the official Bundle/CI image is available. The current tree keeps the temporary guard and does not extend it. - STATUS records AI-U2 resolved, AI-U2b upstream-resolved/switch-deferred, AI-U3 transient TLS observation, AI-U1 still blocked. No release, no second parser; component CI remains runnable on the published image and Bundle. --- docs/STATUS.md | 12 +++---- ...2026-11-30-bundle03-strict-and-http-pin.md | 36 +++++++++++++++++++ .../ai-smoke-b03-1.log | 1 + .../real-model-smoke.json | 9 +++++ marqdo.lock | 4 +-- marqdo.yaml | 8 ++--- 6 files changed, 57 insertions(+), 13 deletions(-) create mode 100644 docs/evidence/2026-11-30-bundle03-strict-and-http-pin.md create mode 100644 docs/evidence/real-model-2026-11-30-bundle03/ai-smoke-b03-1.log create mode 100644 docs/evidence/real-model-2026-11-30-bundle03/real-model-smoke.json diff --git a/docs/STATUS.md b/docs/STATUS.md index 73f2bd6..ef29c96 100644 --- a/docs/STATUS.md +++ b/docs/STATUS.md @@ -8,7 +8,7 @@ |---|---|---| | 公开 API(`infer`/`classify`/`select`) | 已实现 | 契约见 [API.md](API.md) | | 单一模型协议(OpenAI-compatible 非流式) | 已实现 | ADR 0001 | -| 严格 JSON(重复键/深度/安全整数/有限浮点) | 已实现 | 词法预检为临时守卫,见 AI-U2b | +| 严格 JSON(重复键/深度/安全整数/有限浮点) | 已实现 | 词法预检为临时守卫;官方 Bundle 0.3.0 已提供 `json.严格解析`,本包切换待正式 Bundle/CI 镜像发布(AI-U2b) | | 输出契约子集校验 | 已实现 | `lib/contract.mq.md` | | 可恢复错误族 | 已实现 | 10 个冻结码;宿主错误仍为 CLI RuntimeError | | 本地 fixture 集成(真实 CLI + 真实 TCP + 真实 HTTP) | 已验证 | 39 个候选 case + 白盒单元(rc.6 与 rc.5 CI 镜像均 PASS) | @@ -22,11 +22,9 @@ | 编号 | 仓库 | 缺口 | 证据 | 影响 | |---|---|---|---|---| | AI-U1([marqdo-cli#24](https://git.cflmy.cn/cflmy/marqdo-cli/issues/24)) | `marqdo-cli` | 无通用运行期「已加载文稿目录 + 章节精确读取」公开能力;`ref()` 只承诺 Formula/Code/FunctionRef,`document.outline` 为 `symbol.unknown` | `docs/evidence/M0-baseline.md` §4 | C01–C03、C05 的自主闭环与 I08 主示范不能在本轮完成;不得以预写全文替代 | -| AI-U2([marqdo-ext-http#13](https://git.cflmy.cn/cflmy/marqdo-ext-http/issues/13)) | `marqdo-ext-http` | `文本字节` 每次调用固定 `memory.new(128,128)`(8 MiB,run 内不回收),`构建请求字节` 每个头一次;默认 64 MiB 预算下单个请求即接近上限,同一程序内多次真实请求不可行 | `docs/evidence/M0-baseline.md` §5 | 多步真实推理闭环(AI-03 的多轮部分、I08)阻塞;本包已用精确页数编码 + 单请求路径规避 | -| AI-U2b([marqdo-std-data#13](https://git.cflmy.cn/cflmy/marqdo-std-data/issues/13)) | `marqdo-std-data` | `json.解析` 不拒绝重复键且接受 `1e400` 为 Infinity | `docs/evidence/M0-baseline.md` §6 | 本包以词法预检 + 值域检查临时兜底;长期应由数据组件提供严格模式 | -| AI-U2 修复候选 | `marqdo-ext-http` | 字节预算修复候选 `d0d6541` 已固定在本仓 lock;单请求真实 smoke 通过 | `docs/evidence/2026-11-30-real-model-and-context.md` | 合并后更新到合并提交;多请求闭环仍需真实 loopback 证据 | -| AI-U2b 修复候选 | `marqdo-std-data` | 严格入口 `json.严格解析` 已交付(PR 候选);Bundle 尚未含新符号 | 同上 | 本包词法兜底在 Bundle 更新后移除 | -| AI-U3 真实模型稳定性 | `marqdo-cli` / 网关 | 真实 smoke 3/4 次瞬时 `tls read failed: Resource temporarily unavailable` | 同上 | 不作为稳定 CI 门禁;需上游复核(未在本次修复) | +| AI-U2([marqdo-ext-http#13](https://git.cflmy.cn/cflmy/marqdo-ext-http/issues/13)) | `marqdo-ext-http` | **已解除**:字节预算修复已合并(`8fe0bee24c92a5a71747b67fa4f9265993c110b7`),本包 lock 已重 pin 到合并提交;6 头请求可在默认预算下重复构造 | `docs/evidence/2026-11-30-bundle03-strict-and-http-pin.md` | 多步真实推理的传输预算阻塞解除;真实 loopback 多请求领域测试由 ext-http#3 跟踪 | +| AI-U2b([marqdo-std-data#13](https://git.cflmy.cn/cflmy/marqdo-std-data/issues/13)) | `marqdo-std-data` | 上游已解除:官方 Bundle 0.3.0(根 main `51c335e5`)提供 `json.严格解析`;本包切换需等该 Bundle/CI 镜像正式可用,当前保留词法兜底 | `docs/evidence/2026-11-30-bundle03-strict-and-http-pin.md` | 严格 JSON 语义唯一来源已回到数据组件;本包不再扩展词法扫描范围 | +| AI-U3 真实模型稳定性 | `marqdo-cli` / 网关 | 早期 4 次尝试中 3 次瞬时 `tls read failed: Resource temporarily unavailable`;2026-11-30 使用 Bundle 0.3.0/HTTP 合并提交后真实 smoke 首次尝试 PASS | `docs/evidence/2026-11-30-bundle03-strict-and-http-pin.md` | 不作为稳定 CI 门禁;继续记录更多环境样本 | ## 3. 门禁状态(工单 §13.2,逐项) @@ -114,4 +112,4 @@ - 单次 `infer` 只发一个请求;重试/降级/续写由调用者在显式预算内组织。 - 响应/输出上限 16 KiB(ADR 0001 §5),非工单建议的 256 KiB。 - 实时 token 事件、SSE server、增量 Observation、跨进程取消传播为 deferred;不建立私有 AI-to-View/MQDH 协议。 -- 严格 JSON 重复键检测为临时词法预检;`std:data/json` 严格模式就绪后一次性切换。 +- 严格 JSON 重复键检测仍为临时词法预检;Bundle 0.3.0 已提供 `json.严格解析`,待正式 Bundle/CI 镜像发布后一次性切换(切换已在本地候选验证)。 diff --git a/docs/evidence/2026-11-30-bundle03-strict-and-http-pin.md b/docs/evidence/2026-11-30-bundle03-strict-and-http-pin.md new file mode 100644 index 0000000..e750c79 --- /dev/null +++ b/docs/evidence/2026-11-30-bundle03-strict-and-http-pin.md @@ -0,0 +1,36 @@ +# ext-ai:HTTP 合并提交重 pin、真实模型验收与 Bundle 0.3.0 切换评估 + +Date: 2026-11-30. Issues: `marqdo-ext-ai#3`/`#4`; +上游:`marqdo-std-data#13`(已关闭)、`marqdo-ext-http#13`。 +Root main: `51c335e5ceeeac0f5299168551e2567785e842fc`(官方 Bundle 0.3.0)。 + +## 1. 本轮落地 + +- `marqdo.yaml`/`marqdo.lock`:HTTP 依赖从修复候选 `d0d6541` 重 pin 到 + **合并提交 `8fe0bee24c92a5a71747b67fa4f9265993c110b7`**(PR #14)。 +- 真实模型 smoke 在 CLI 3.0.0-rc.6(合并提交 `8ad2f2c` 构建)+ 官方 + Bundle 0.3.0 + 合并 HTTP 上执行:**首次尝试 PASS** + (reported_model=deepseek-flash、finish=stop、本地标签校验通过; + 报告 `docs/evidence/real-model-2026-11-30-bundle03/real-model-smoke.json`)。 +- 本地 fixture 测试:使用 Bundle 0.2.0(模拟当前 CI 镜像)与 0.3.0 均 + `39 cases passed`。 + +## 2. Bundle 0.3.0 严格入口切换(已评估,未合并) + +- 本地已实现并验证切换:删除本地词法/结构扫描(~450 行),改调用 + `json.严格解析`;39 cases + 真实 smoke 通过。 +- **未合并原因**:组件独立 CI 镜像 `marqdo-ci-shell:3.0.0-rc.5` 仍携带 + Bundle 0.2.0;该镜像没有 `json.严格解析`,合并后组件 CI 会按设计 + fail-closed。按“每个 active 仓库独立 CI 必须真实通过、禁止用本地验证替代 + 平台 CI”的规则,切换保留为独立后续 PR,待官方 Bundle/CI 镜像发布后提交。 +- 当前树继续保留临时词法预检,只用于重复键/非有限值防护,不扩展新的文档/语法 + 能力;严格 JSON 的唯一语义来源已确定为数据组件。 + +## 3. 边界与未验证 + +- AI-U1(CLI #24 运行期文稿目录/章节读取)仍未实现,C01/C03/I08 继续 BLOCKED; + 不以预写全文规避。 +- 真实 loopback 多请求领域验收由 ext-http#3 跟踪;结构化输出/工具调用数据的 + 真实模型验收未声明支持。 +- AI-U3 瞬时 TLS 读失败仍保留历史记录;本次 PASS 不用于宣称稳定 CI 门禁。 +- 未创建 release/tag;CI 镜像刷新与父级晋升由各自工单跟踪。 diff --git a/docs/evidence/real-model-2026-11-30-bundle03/ai-smoke-b03-1.log b/docs/evidence/real-model-2026-11-30-bundle03/ai-smoke-b03-1.log new file mode 100644 index 0000000..cbae890 --- /dev/null +++ b/docs/evidence/real-model-2026-11-30-bundle03/ai-smoke-b03-1.log @@ -0,0 +1 @@ +{"status": "PASS", "endpoint": "llm.cflmy.cn:443", "configured_model": "deepseek-flash", "reported_model": "deepseek-flash", "finish": "stop", "label_validated_local": true, "credential_recorded": false} diff --git a/docs/evidence/real-model-2026-11-30-bundle03/real-model-smoke.json b/docs/evidence/real-model-2026-11-30-bundle03/real-model-smoke.json new file mode 100644 index 0000000..50ecbf9 --- /dev/null +++ b/docs/evidence/real-model-2026-11-30-bundle03/real-model-smoke.json @@ -0,0 +1,9 @@ +{ + "status": "PASS", + "endpoint": "llm.cflmy.cn:443", + "configured_model": "deepseek-flash", + "reported_model": "deepseek-flash", + "finish": "stop", + "label_validated_local": true, + "credential_recorded": false +} diff --git a/marqdo.lock b/marqdo.lock index 5617b81..5f6cecc 100644 --- a/marqdo.lock +++ b/marqdo.lock @@ -2,7 +2,7 @@ lock_version: 4 content_profile_version: 1 root: package: root:marqdo-ext-ai@0.1.0 - manifest_digest: df19a003ddbfce87361e4522a4b866786b043a8b7bae50139a2715bd6b6a457d + manifest_digest: 400a9cd0e30a5c2bae9ca32d450bbd5777fc2d3c462da1195a263502ffae86c5 packages: - instance_id: dep:marqdo-ext-http@0.1.0#598e0f4688ccc19b50d90eb028040b6851f1fb1b56365de7e2183e33d45df7c1 name: marqdo-ext-http @@ -10,7 +10,7 @@ packages: source: kind: git url: https://git.cflmy.cn/cflmy/marqdo-ext-http - rev: d0d654179e921b91fe2cfb9a47b0215202076a36 + rev: 8fe0bee24c92a5a71747b67fa4f9265993c110b7 content_digest: 598e0f4688ccc19b50d90eb028040b6851f1fb1b56365de7e2183e33d45df7c1 manifest_digest: 887cde6799a27c8ff012688a8ff96b796b12ba91f74e422b9767ac77c1b38c45 dependencies: {} diff --git a/marqdo.yaml b/marqdo.yaml index 8d462da..77084dd 100644 --- a/marqdo.yaml +++ b/marqdo.yaml @@ -4,12 +4,12 @@ project: marqdo: ">=3.0.0-beta.1,<4.0.0" # 唯一直接依赖:HTTP 报文编解码(显式 Package,锁定精确提交)。 -# Candidate pin: marqdo-ext-http#13 byte-budget fix (PR candidate). After that -# PR merges, re-pin to the merged commit and re-run the real-model smoke. The -# exact SHA is candidate input, not a floating branch. +# Pinned to the merged marqdo-ext-http#13 byte-budget fix (PR #14 merge +# 8fe0bee24c92a5a71747b67fa4f9265993c110b7). The exact SHA is candidate input, +# not a floating branch. # 通用数据(JSON/UTF-8)来自已发布的默认 Bundle `std:` 模块; # TLS/TCP 属于 CLI 通用资源能力(`resource.open`),不是本包实现。 dependencies: http: git: https://git.cflmy.cn/cflmy/marqdo-ext-http - rev: d0d654179e921b91fe2cfb9a47b0215202076a36 + rev: 8fe0bee24c92a5a71747b67fa4f9265993c110b7 -- 2.54.1