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
86 lines
5.5 KiB
Markdown
86 lines
5.5 KiB
Markdown
# marqdo-ext-web
|
||
|
||
Marqdo **Web 领域聚合仓库**(状态:`planned`)。本仓固定 Web 作者合同、完整组合示例与跨组件验收,协调 Design/Preview 的变更与发布;**不承载生产实现**,也不是旧版 Markdown/GFM 页面渲染服务的继续。
|
||
|
||
本仓通过 Git 子模块固定 Design 和 Preview 的开发提交。领域和子组件均为 `planned`,实际验收入口和发行制品随功能开发建立。子组件登记见 [`components.toml`](components.toml)。
|
||
|
||
## 唯一合同入口
|
||
|
||
| 文档 | 作用 |
|
||
| --- | --- |
|
||
| [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` 原样收录);入口 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) |
|
||
|
||
## 领域边界
|
||
|
||
| 本仓拥有 | 本仓不拥有 |
|
||
| --- | --- |
|
||
| 唯一 Web 作者合同与领域开发指南 | 第二个 Design/Preview 实现或生产级 renderer/parser |
|
||
| 固定组合、示例、跨组件集成测试与发布装配脚本 | 子组件源码副本、业务逻辑脚本 |
|
||
| 领域变更协调、ADR、验收证据与发布组合 | CLI 核心语法、Web 专属关键字、Markdown/语言解析器 |
|
||
| 三个组合案例与生产框架交付试验的领域验收(未来 WEB-04) | 真实登录/支付/数据库/网络业务、内置 LLM/Agent 调度 |
|
||
| 领域内 gitlink、`.gitmodules` 与直接子组件记录 | 根 gitlink、跨领域集成与生态发行(归根仓库) |
|
||
|
||
## 组件状态
|
||
|
||
| ID | 目录 | kind | state | 职责 | requires | release |
|
||
| --- | --- | --- | --- | --- | --- | --- |
|
||
| `web-design` | `design/` | extension | planned | 设计文档解释、校验、组件图及交付 | `cli` | optional |
|
||
| `web-preview` | `preview/` | tool | planned | 通用原型渲染及 `web` 命令发行 | `cli`, `web-design` | optional |
|
||
| `web-components` | `components/` | extension | planned | 可组合的设计文档与原型组件模板 | `web-design` | optional |
|
||
|
||
- `planned` gitlink 固定已发布的开发提交。实现和验收通过后才登记实际 `entry` 并计入完成率。
|
||
- 依赖为计划依赖;真实激活前须以实际 imports/构建输入/制品核实。
|
||
- 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
|
||
marqdo-ext-web/
|
||
├── README.md
|
||
├── AGENTS.md
|
||
├── LICENSE
|
||
├── components.toml
|
||
├── .gitmodules
|
||
├── design/ # marqdo-web-design
|
||
├── preview/ # marqdo-web-preview
|
||
├── docs/WEB-DESIGN.md
|
||
├── docs/DEVELOPMENT.md
|
||
├── examples/research-workspace/ # 规范 §8 原样示例
|
||
└── tests/README.md # 领域验收目录与证据规则(当前无实现测试)
|
||
```
|
||
|
||
克隆后可运行 `git submodule update --init` 获取固定开发提交。`scripts/integration.sh` 与 `tests/integration/` 随领域功能验收建立。
|
||
|
||
## 相关权威
|
||
|
||
- 根仓库:[架构](https://git.cflmy.cn/cflmy/marqdo/src/branch/main/docs/ARCHITECTURE.md) · [开发流程](https://git.cflmy.cn/cflmy/marqdo/src/branch/main/docs/DEVELOPMENT.md) · [迁移台账](https://git.cflmy.cn/cflmy/marqdo/src/branch/main/docs/MIGRATION.md) · [各仓库任务](https://git.cflmy.cn/cflmy/marqdo/src/branch/main/docs/REPOSITORY-TASKS.md)
|
||
- 协作约定见 [AGENTS.md](AGENTS.md)。
|
||
|
||
## WEB-04 组合案例与生产交付试验
|
||
|
||
| 路径 | 内容 |
|
||
| --- | --- |
|
||
| `examples/doc-site/` | 文档型网站设计案例 |
|
||
| `examples/research-workspace/` | §8 科研任务台原型(Design/Preview 通用能力) |
|
||
| `examples/quantum-editor/` | 量子电路编辑器设计案例(有限场景/交互) |
|
||
| `examples/research-workbench-app/` | 科研任务台真实生产实现试验(Express + 持久化 + API/浏览器 E2E) |
|
||
| `scripts/domain-acceptance.sh` | 领域验收:三案例 check/preview/handoff + 生产应用测试,显式 CLI/Tool 输入 |
|
||
| `docs/WEB-04-delivery.md` | 设计源到生产实现的映射、有意未实现项与任务拆分 |
|
||
| `docs/evidence/WEB-04-domain-delivery.md` | WEB-04 三案例 + 生产 API/浏览器 E2E 实测证据 |
|
||
|
||
生产应用不是 `web` Tool 的运行依赖;原型 PASS 不冒充生产 PASS。
|