Files
marqdo-ext-web/docs/evidence/WEB-04-domain-delivery.md
T
cflmy 7a2c9280c0 feat: WEB-04 domain composition cases and production delivery trial
Add three composition cases driven by the same generic web Tool:
- examples/doc-site (documentation site),
- examples/research-workspace (existing section 8 workbench prototype),
- examples/quantum-editor (finite scenario/interaction design).

Add a real production delivery trial in examples/research-workbench-app
(Express + JSON persistence + static UI): validation, search, status
transitions, linked statistics, JSON errors, real file persistence; node:test
API acceptance and a Playwright browser E2E. The production app is not a runtime
dependency of the web Tool; prototype PASS is kept separate from production
PASS. docs/WEB-04-delivery.md records the design-source to implementation
mapping, intentional non-goals and task splits.

scripts/domain-acceptance.sh is the explicit domain entry: installs the built
Tool, runs check/preview/handoff for the three cases, then installs/tests the
production app incl. browser E2E, and removes the Tool. Evidence records the
real CLI/Design/Preview identities and local PASS results.

Pin the domain submodules to the merged Design (WEB-01/03) and Preview (WEB-02)
candidates; activation and root gitlink belong to WEB-05.

Refs cflmy/marqdo-ext-web#2, cflmy/marqdo#6
2026-11-27 09:02:27 +08:00

41 lines
2.5 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# WEB-04 领域组合案例与生产交付试验证据
日期:2026-11-27。责任仓:`marqdo-ext-web`;工单:[marqdo-ext-web#2](https://git.cflmy.cn/cflmy/marqdo-ext-web/issues/2)(WEB-04);父工单:根 [marqdo#6](https://git.cflmy.cn/cflmy/marqdo/issues/6)。
## 输入身份
| 对象 | 身份 |
| --- | --- |
| CLI | 由根固定 `cli/deadf6e` 构建的 `marqdo 3.0.0-rc.4`,`sha256:6ede3b9e8bcfad3942573e68b5f54b2c5bc2866b37d102f63acd49a55cb212db` |
| Design | `marqdo-web-design@1b6607fd3cc09801b4f6eacd2fba547caa0ec637`(WEB-03 handoff/图/切片) |
| Preview / web Tool | `marqdo-web-preview@eff273f7f2f3919bab62eacded781c61d5f03f91`(WEB-02 + WEB-03 消费) |
| 平台 | Linux x86_64,Node v24.22.3,Chromium(Playwright headless shell 1255) |
## 执行与结果(本地真实运行)
```sh
MARQDO_BIN=<verified marqdo> \
MARQDO_WEB_TOOL_JSON=<marqdo-web-preview/dist/marqdo-web-preview/tool.json> \
scripts/domain-acceptance.sh
```
结果 **PASS**:
- 同一 `marqdo web` Tool 对三个案例执行 `check/preview/handoff`:
- 文档型网站 `examples/doc-site`(单元 `首页`):PASS;
- §8 科研任务台原型 `examples/research-workspace`(单元 `工作台`):PASS;
- 量子电路编辑器设计 `examples/quantum-editor`(单元 `编辑器`):PASS(含有限场景/交互)。
- 每个 preview 均含 CSP、通用组件/场景标记;handoff 均非空并含 Design handoff;无按案例分叉的 renderer 或 CLI 语法。
- 生产交付试验 `examples/research-workbench-app`(Express):
- API 测试(真实 HTTP、真实临时文件持久化、错误/统计联动):`node --test` PASS;
- 真实浏览器 E2E(Playwright/Chromium):统计、搜索、创建、错误提示联动 PASS。
- Tool 生命周期:真实 CLI `tool install` → 三案例 + 生产应用 → `tool remove web`;CLI 二进制未改变(脚本断言)。
- 设计源→生产映射、有意未实现项与任务拆分记录在 `docs/WEB-04-delivery.md`。
## 边界与未验证
- 生产应用不依赖 `web` Tool 运行;原型 PASS 不冒充生产 PASS,二者证据分开。
- 认证、真实数据库、网络同步、任务编辑/删除、真实设备接入等有意未实现,已在交付文档标注。
- 浏览器 E2E 需要 Chromium;无浏览器环境须标 UNVERIFIED,本证据对应实际 Chromium 运行。
- 领域 gitlink 固定 Design/Preview 候选;根 gitlink、领域激活、`web` Tool 冷安装与根组合验收属 WEB-05,不在本证据内完成。