test(web): probe the real Analysis contract for WEB-00

Add scripts/risk-probe.py and scripts/ci.sh: consume only the verified CLI's
public Analysis 3 for the research-workspace entry, its two component targets
and two negative fixtures. Verify the exact Knowledge H2 anchor/spans, the GFM
component table AST/header/cell links, references with candidate_path/fragment,
target anchor resolution with source digests, and that ordinary links and
missing anchors stay distinguishable facts.

The local candidate passes with no gaps, so WEB-DESIGN's Analysis dependency
needs no correction; no new CLI syntax/private field is requested. Record the
CLI/root identities, commands and unverified scope in the evidence document.

Refs cflmy/marqdo#6, cflmy/marqdo-ext-web#1
This commit was merged in pull request #3.
This commit is contained in:
cflmy committed 2026-11-27 02:27:42 +08:00
1 parent f70095d60a
commit df4324f3e3
4 files changed
+457 -1

No files matched your search

+10 -1
View File
@@ -10,8 +10,9 @@ Marqdo **Web 领域聚合仓库**(状态:`planned`)。本仓固定 Web 作
| --- | --- |
| [docs/WEB-DESIGN.md](docs/WEB-DESIGN.md) | **唯一现行 Web 作者合同**:作者写什么、如何被确定性解释、什么被拒绝、命令/退出码/安全/handoff/诊断/变更流程 |
| [docs/DEVELOPMENT.md](docs/DEVELOPMENT.md) | 领域治理与开发流程:组件关系、依赖规则、激活门禁、组件→领域→根候选晋升、三层验收、工单路由 |
| [examples/research-workspace/](examples/research-workspace/) | 根规范 §8 科研工作台示例(六个 `.mq.md` 原样收录);状态 `UNVERIFIED` |
| [examples/research-workspace/](examples/research-workspace/) | 根规范 §8 科研工作台示例(六个 `.mq.md` 原样收录);入口 Analysis 已由 WEB-00 实测,Design/Preview 解释前整体仍 `UNVERIFIED` |
| [tests/README.md](tests/README.md) | 领域/跨组件验收的目录、证据与当前状态 |
| [docs/evidence/WEB-00-analysis-probe.md](docs/evidence/WEB-00-analysis-probe.md) | WEB-00:真实 CLI Analysis 3 对合同依赖的探测证据(入口/链接/目标/负例,PASS) |
| [components.toml](components.toml) | 直接子组件的治理记录(均为 planned,无 entry) |
## 领域边界
@@ -37,6 +38,14 @@ Marqdo **Web 领域聚合仓库**(状态:`planned`)。本仓固定 Web 作
- Design 和 Preview 在各自的独立仓库开发。 [marqdo-web-design](https://git.cflmy.cn/cflmy/marqdo-web-design) · [marqdo-web-preview](https://git.cflmy.cn/cflmy/marqdo-web-preview)
- 本仓库不提供运行时入口,也不需要另一份 `tool.json`;唯一工具入口属于 Preview 的 `web` 命令。
## 独立验收入口(WEB-00 起)
```sh
MARQDO_BIN=<verified marqdo> MARQDO_CLI_SHA256=<digest> scripts/ci.sh
```
`scripts/risk-probe.py` 只消费真实 CLI 的公开 Analysis 3(`check --emit`),检查 WEB-DESIGN 依赖的表 AST、anchor、references `candidate_path`、目标 anchor 与负例事实;输出机器证据,缺事实即失败。它不解析 Markdown、不模拟 CLI。
## 仓库结构
```text