docs: adopt hierarchical ecosystem governance and Web domain contract

Replace the flat, one-level submodule policy with the bounded tree
root -> domain aggregate -> component (at most two gitlink levels) and
introduce the single `kind = "domain"` governance role.

- Merge the approved architecture rules into ARCHITECTURE, DEVELOPMENT,
  MIGRATION, REPOSITORY-TASKS, AGENTS and components.toml; keep the full
  implementation spec as ADR 0001 (historical input, not a second
  current authority).
- Register `web` as a planned domain at extensions/web; child records
  live in marqdo-ext-web's own components.toml, never duplicated in the
  root catalog. No placeholder gitlink or fake active entry is created.
- Point the Web domain at the single authoritative contract
  marqdo-ext-web docs/WEB-DESIGN.md; Design and Preview stay planned
  until they have real entries and same-candidate evidence.
- Create the marqdo-ext-web, marqdo-web-design and marqdo-web-preview
  repositories (docs/contracts/issues only) and update the migration
  ledger, task list, extension index and issue/PR templates.
This commit is contained in:
cflmy committed 2026-11-26 17:18:14 +08:00
1 parent c5415d5bc5
commit 198b3acc86
13 files changed
+1343 -86

No files matched your search

+11 -4
View File
@@ -1,6 +1,14 @@
# 领域扩展
# 领域扩展与领域聚合
领域扩展负责按需安装的算法、协议和业务能力。 进入各组件目录查看独立仓库和开发任务。
本目录覆盖按需安装的领域能力。功能组件默认 `planned`,开发在独立责任仓库进行,验收后按治理规则接入;聚合仓库不实现子组件业务,根 catalog 只登记 `kind = "domain"` 的聚合本身,不重复登记其后代路径。
## 领域聚合(planned)
| 路径 | 仓库 | 说明 |
| --- | --- | --- |
| [web](web/README.md) | [marqdo-ext-web](https://git.cflmy.cn/cflmy/marqdo-ext-web) | Web 原型设计领域聚合:唯一设计合同、示例、组合验收与交付协调;子组件 [marqdo-web-design](https://git.cflmy.cn/cflmy/marqdo-web-design)、[marqdo-web-preview](https://git.cflmy.cn/cflmy/marqdo-web-preview) 在领域 `components.toml` 登记 |
## 独立组件(planned)
- [marqdo-ext-math](math/README.md) · 数值算法、统计、符号数学及绘图
- [marqdo-ext-linalg](linalg/README.md) · 复数、矩阵、分解及数值线性代数
@@ -14,7 +22,6 @@
- [marqdo-ext-storage](storage/README.md) · 本地和对象存储接口
- [marqdo-ext-cache](cache/README.md) · TTL、缓存和失效
- [marqdo-ext-security](security/README.md) · 应用身份、会话及权限模型
- [marqdo-ext-web](web/README.md) · Markdown/GFM 渲染、页面、路由和组件
- [marqdo-ext-browser](browser/README.md) · 浏览器宿主、WASM 适配、DOM 和事件
- [marqdo-ext-document](document/README.md) · Markdown 结构与显式文档编辑
- [marqdo-ext-archive](archive/README.md) · 压缩、安全归档和解包
@@ -22,4 +29,4 @@
- [marqdo-ext-regex](regex/README.md) · 正则匹配、捕获、扫描和替换
- [marqdo-ext-datetime](datetime/README.md) · IANA 时区、DST 和高级日历
[组件目录](../components.toml) · [各仓库任务](../docs/REPOSITORY-TASKS.md)
[组件目录](../components.toml) · [各仓库任务](../docs/REPOSITORY-TASKS.md) · [架构边界](../docs/ARCHITECTURE.md)
+11 -3
View File
@@ -1,5 +1,13 @@
# marqdo-ext-web
# extensions/web(Web 领域聚合目标路径)
职责为Markdown/GFM 渲染、页面、路由和组件。当前状态为 `planned`。
该路径是 `kind = "domain"` 的 Web 领域聚合仓库 [marqdo-ext-web](https://git.cflmy.cn/cflmy/marqdo-ext-web) 的挂载路径。当前状态 `planned`:**没有 gitlink,也没有本目录内的实现源码**;本 README 只是根 catalog 的记录说明。
开发和验收在独立仓库进行。 [独立仓库](https://git.cflmy.cn/cflmy/marqdo-ext-web) · [各仓库任务](../../docs/REPOSITORY-TASKS.md)
## 边界
- 领域聚合仓库只做治理:唯一设计合同、示例、跨组件集成测试、发布装配与交付协调;**不得**在其中实现 renderer、parser、数据库驱动或业务逻辑,也不得复制子仓库源码。
- 子组件不在根 catalog 登记:[marqdo-web-design](https://git.cflmy.cn/cflmy/marqdo-web-design)(设计解释 Rust library)与 [marqdo-web-preview](https://git.cflmy.cn/cflmy/marqdo-web-preview)(`web` Tool 与离线预览)记录在领域仓库自己的 `components.toml`,激活时随领域 gitlink 一次接入根。
- 唯一作者合同:[WEB-DESIGN](https://git.cflmy.cn/cflmy/marqdo-ext-web/src/branch/main/docs/WEB-DESIGN.md);领域开发指南:[DEVELOPMENT](https://git.cflmy.cn/cflmy/marqdo-ext-web/src/branch/main/docs/DEVELOPMENT.md)。
## 激活门禁
两个子组件具备真实独立入口与候选提交、领域 catalog 与 gitlink 一致、领域 CI 通过、根 `check-layout.py --checkouts` 递归校验通过、Design/Preview 同候选证据齐全。未满足前保持 `planned`,不创建占位 gitlink。详见 [迁移台账](../../docs/MIGRATION.md) 与 [开发流程](../../docs/DEVELOPMENT.md)。