From 903f729a4d4509789ffced566ba20d2c618c8dae Mon Sep 17 00:00:00 2001 From: cflmy Date: Fri, 27 Nov 2026 09:05:30 +0800 Subject: [PATCH] candidate: activate the Web domain in the root ecosystem (WEB-05) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Root catalog web domain moves planned→active with entry scripts/domain-acceptance.sh; the root gitlink pins the activated domain commit f6d0a90 (Design 1b6607f / Preview eff273f active in its catalog). - integration.sh adds extensions/web to the declared active set and runs the domain component entries plus a cold web Tool install: install → generic check/preview/handoff → remove with the CLI binary digest unchanged. - Docs (ARCHITECTURE/MIGRATION/REPOSITORY-TASKS/README) record one active Web domain; evidence records candidate identities and the CI-gated result. Refs cflmy/marqdo#6, cflmy/marqdo-ext-web#2 --- README.md | 2 +- components.toml | 3 +- docs/ARCHITECTURE.md | 2 +- docs/MIGRATION.md | 6 ++-- docs/REPOSITORY-TASKS.md | 2 +- .../2026-11-27-web05-domain-integration.md | 32 +++++++++++++++++++ extensions/web | 2 +- scripts/integration.sh | 30 ++++++++++++++++- 8 files changed, 70 insertions(+), 9 deletions(-) create mode 100644 docs/evidence/2026-11-27-web05-domain-integration.md diff --git a/README.md b/README.md index bcb8219..5363e36 100644 --- a/README.md +++ b/README.md @@ -106,7 +106,7 @@ marqdo run hello.mq.md ### Web 领域聚合 -Web 领域以设计文档为源材料,面向可交互的原型预览与工程交付。HTTP、数据库、认证和浏览器运行时各自独立维护。`extensions/web` 链接 `planned` 的 Web 领域仓,Design 和 Preview 由该领域仓固定。 [WEB-DESIGN](https://git.cflmy.cn/cflmy/marqdo-ext-web/src/branch/main/docs/WEB-DESIGN.md) +Web 领域以设计文档为源材料,面向可交互的原型预览与工程交付。HTTP、数据库、认证和浏览器运行时各自独立维护。`extensions/web` 链接 active 的 Web 领域仓;Design 和 Preview 已在该领域 catalog 激活并登记真实入口,`web` Tool 通过冷安装验证。 [WEB-DESIGN](https://git.cflmy.cn/cflmy/marqdo-ext-web/src/branch/main/docs/WEB-DESIGN.md) | 仓库 | 职责 | | --- | --- | diff --git a/components.toml b/components.toml index 08bcb9b..0b88b45 100644 --- a/components.toml +++ b/components.toml @@ -319,12 +319,13 @@ release = "optional" id = "web" path = "extensions/web" kind = "domain" -state = "planned" +state = "active" owner = "cflmy" scope = "Web 原型设计领域治理:唯一设计合同、组合验收与交付协调" requires = [] checks_with = [] release = "none" +entry = "scripts/domain-acceptance.sh" [[component]] id = "browser" diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.md index f0ad46b..c85a2f8 100644 --- a/docs/ARCHITECTURE.md +++ b/docs/ARCHITECTURE.md @@ -23,7 +23,7 @@ - **聚合准入**:功能拆分须至少有一种独立价值(独立维护责任、显著不同依赖/安全/平台边界、独立版本与制品、可重复独立验收)。若两个仓库几乎每个 PR 都必须一起改动且接口未稳定,应先收敛合同或合并,不能无限拆分。 - **工具目录**(`tools/`)暂不聚合,现有四个 Tool 保持原路径。 -**当前状态**(以 [components.toml](../components.toml) 与 [迁移台账](MIGRATION.md) 为准):根仓库有六个核心/工具 active 组件(`cli`、`conformance`、`view`、`knowledge`、`prove`、`lint`)和六个已交付源码的 active 标准库组件(`std-collections/data/fs/io/system/text`)。`std-core/encoding/net` 与十八个独立扩展仍是根层 planned 子模块。`extensions/web` 是 planned 领域子模块,Design 和 Preview 由 Web 领域仓挂载。`marqdo-stdlib` 聚合和 `web-components` 仍在计划中。 +**当前状态**(以 [components.toml](../components.toml) 与 [迁移台账](MIGRATION.md) 为准):根仓库有六个核心/工具 active 组件(`cli`、`conformance`、`view`、`knowledge`、`prove`、`lint`)和六个已交付源码的 active 标准库组件(`std-collections/data/fs/io/system/text`)。`std-core/encoding/net` 与十八个独立扩展仍是根层 planned 子模块。`extensions/web` 是 **active 领域**:Design/Preview 在其领域 catalog 激活并登记真实入口,`web-components` 仍 planned。`marqdo-stdlib` 聚合仍在计划中。 ## 语言与产品层(不因仓库变多而改变) diff --git a/docs/MIGRATION.md b/docs/MIGRATION.md index 4237cb0..4810d09 100644 --- a/docs/MIGRATION.md +++ b/docs/MIGRATION.md @@ -28,7 +28,7 @@ Conformance 使用 CLI 已固定的真实 fixture 提交。 **扩展(planned,独立组件)** · [math](https://git.cflmy.cn/cflmy/marqdo-ext-math) · [linalg](https://git.cflmy.cn/cflmy/marqdo-ext-linalg) · [quantum](https://git.cflmy.cn/cflmy/marqdo-ext-quantum) · [http](https://git.cflmy.cn/cflmy/marqdo-ext-http) · [websocket](https://git.cflmy.cn/cflmy/marqdo-ext-websocket) · [ai](https://git.cflmy.cn/cflmy/marqdo-ext-ai) · [mcp](https://git.cflmy.cn/cflmy/marqdo-ext-mcp) · [crypto](https://git.cflmy.cn/cflmy/marqdo-ext-crypto) · [database](https://git.cflmy.cn/cflmy/marqdo-ext-database) · [storage](https://git.cflmy.cn/cflmy/marqdo-ext-storage) · [cache](https://git.cflmy.cn/cflmy/marqdo-ext-cache) · [security](https://git.cflmy.cn/cflmy/marqdo-ext-security) · [browser](https://git.cflmy.cn/cflmy/marqdo-ext-browser) · [document](https://git.cflmy.cn/cflmy/marqdo-ext-document) · [archive](https://git.cflmy.cn/cflmy/marqdo-ext-archive) · [engineering](https://git.cflmy.cn/cflmy/marqdo-ext-engineering) · [regex](https://git.cflmy.cn/cflmy/marqdo-ext-regex) · [datetime](https://git.cflmy.cn/cflmy/marqdo-ext-datetime) -**Web 领域(planned domain)** · 聚合 [marqdo-ext-web](https://git.cflmy.cn/cflmy/marqdo-ext-web)(唯一合同 `docs/WEB-DESIGN.md`)· 子组件 [marqdo-web-design](https://git.cflmy.cn/cflmy/marqdo-web-design) · [marqdo-web-preview](https://git.cflmy.cn/cflmy/marqdo-web-preview) +**Web 领域(active domain,WEB-05 起)** · 聚合 [marqdo-ext-web](https://git.cflmy.cn/cflmy/marqdo-ext-web)(唯一合同 `docs/WEB-DESIGN.md`)· 子组件 [marqdo-web-design](https://git.cflmy.cn/cflmy/marqdo-web-design) · [marqdo-web-preview](https://git.cflmy.cn/cflmy/marqdo-web-preview) ## 分层治理与领域聚合(2026-11-26 起) @@ -40,7 +40,7 @@ Conformance 使用 CLI 已固定的真实 fixture 提交。 - 领域激活门禁:子组件具备真实入口与候选提交、领域 catalog 与 gitlink 一致、领域 CI 通过、根 `check-layout.py --checkouts` 递归校验通过、存在依赖关系的组件以同候选证据验证。 - 主仓库 `scripts/check-layout.py` 已引入 domain 角色与递归校验;统一 CLI 制品准备、声明驱动调度、递归影响分析仍在推进,CI 证据以真实候选为准。 -当前状态:**没有任何 active 领域**。Web 领域为 planned(`extensions/web`,聚合仓 marqdo-ext-web,子组件 design/preview 在其 catalog 登记);标准库聚合 marqdo-stdlib 尚未创建,九个 `std-*` 保持根 catalog 的 planned 直属记录;HTTP/WebSocket 等仍为独立 planned 扩展,等至少两个真实组件形成共同边界后再评估聚合。首批 Web 实施工单为 WEB-00(合同与真实 Analysis 风险探测)、WEB-01(Design)、WEB-02(Preview)、WEB-03(handoff/组件图)、WEB-04(组合案例与框架交付)、WEB-05(根接入与冷安装),WEB-06(components)为候选;工单在对应责任仓库创建。Web 合同语义冲突由 marqdo-ext-web 协调,不回流 CLI 核心。 +当前状态:**有一个 active 领域**——Web(`extensions/web`,聚合仓 marqdo-ext-web,子组件 design/preview 已在其 catalog 激活并登记真实入口,web-components 仍 planned);标准库聚合 marqdo-stdlib 尚未创建,九个 `std-*` 保持根 catalog 的 planned 直属记录;HTTP/WebSocket 等仍为独立 planned 扩展,等至少两个真实组件形成共同边界后再评估聚合。首批 Web 实施工单为 WEB-00(合同与真实 Analysis 风险探测)、WEB-01(Design)、WEB-02(Preview)、WEB-03(handoff/组件图)、WEB-04(组合案例与框架交付)、WEB-05(根接入与冷安装),WEB-06(components)为候选;工单在对应责任仓库创建。Web 合同语义冲突由 marqdo-ext-web 协调,不回流 CLI 核心。 ## 阶段与阻塞 @@ -55,7 +55,7 @@ Conformance 使用 CLI 已固定的真实 fixture 提交。 | M1 集成骨架 | 六个 active gitlink,另固定 28 个直属和 2 个 Web 子级的 planned 开发提交 | 查看候选 Woodpecker 运行及各组件独立 CI | | M2 标准库切换 | planned,CLI RC.4 提供官方完整 Bundle | [CLI 外部 Bundle](https://git.cflmy.cn/cflmy/marqdo-cli/issues/11) 和 [九组件切换](https://git.cflmy.cn/cflmy/marqdo/issues/2),包括 HTTP、Regex、Archive 迁出与同步删除旧路径 | | M3 跨仓闭环 | 工单、人工候选、同 SHA 门禁 | [跨仓库 CI](https://git.cflmy.cn/cflmy/marqdo/issues/3) 跟踪真实缺陷闭环、候选通知鉴权、去重和影响分析 | -| M4 领域接入 | Web 领域 planned:三仓文档与工单就绪;根 catalog 登记 planned domain | W-M0 真实 CLI 风险探测、WEB-01/02 实现、领域 gitlink、根递归校验与冷安装验收;Stdlib 聚合按 STD-01..04 独立推进 | +| M4 领域接入 | Web 领域 active:WEB-00..04 完成,领域 catalog/gitlink 固定 Design/Preview;根 catalog 激活与 gitlink 一次切换 | 根 `check-layout --checkouts`、领域组件入口、`web` Tool 冷安装与既有消费者同候选证据;Stdlib 聚合按 STD-01..04 独立推进 | | 后续领域 | 空仓和预期职责 | 逐组件开展最小真实功能、独立 CI、制品与接入 | ### 标准库切换顺序 diff --git a/docs/REPOSITORY-TASKS.md b/docs/REPOSITORY-TASKS.md index 47421d4..7f9becd 100644 --- a/docs/REPOSITORY-TASKS.md +++ b/docs/REPOSITORY-TASKS.md @@ -2,7 +2,7 @@ 按仓库领取任务。标为 **大改** 的条目可涉及模块拆分、实现重写或发布切换。责任仓库应先限定本轮交付范围,涉及公共接口时与实际消费者一起验收。 -生态治理采用“根 → 领域聚合 → 功能组件”最多两级 Gitlink:功能仓库实现与修复、领域聚合仓库维护合同与组合验收、主仓库固定 gitlink、治理与发行。`planned` 组件可以挂载真实开发提交,实际入口随验收登记。当前没有 active 领域;Web 领域为 planned(聚合仓 `marqdo-ext-web`,子组件 `marqdo-web-design`/`marqdo-web-preview` 在其 catalog 登记)。先推进 CLI 外部 Bundle、九个标准库,以及 HTTP、Regex、Archive 的迁出;这些改动在同一候选组合中验证后切换基础发行。官网和 VS Code 可独立推进。[迁移台账](MIGRATION.md) · [开发流程](DEVELOPMENT.md) +生态治理采用“根 → 领域聚合 → 功能组件”最多两级 Gitlink:功能仓库实现与修复、领域聚合仓库维护合同与组合验收、主仓库固定 gitlink、治理与发行。`planned` 组件可以挂载真实开发提交,实际入口随验收登记。当前 Web 领域为 active(聚合仓 `marqdo-ext-web`,子组件 `marqdo-web-design`/`marqdo-web-preview` 在其 catalog 激活并登记真实入口;`web-components` 仍 planned)。先推进 CLI 外部 Bundle、九个标准库,以及 HTTP、Regex、Archive 的迁出;这些改动在同一候选组合中验证后切换基础发行。官网和 VS Code 可独立推进。[迁移台账](MIGRATION.md) · [开发流程](DEVELOPMENT.md) ## 集成和语言 diff --git a/docs/evidence/2026-11-27-web05-domain-integration.md b/docs/evidence/2026-11-27-web05-domain-integration.md new file mode 100644 index 0000000..6dc8b32 --- /dev/null +++ b/docs/evidence/2026-11-27-web05-domain-integration.md @@ -0,0 +1,32 @@ +# WEB-05 Web 领域根接入与冷安装候选证据(2026-11-27) + +父工单:[marqdo#6](https://git.cflmy.cn/cflmy/marqdo/issues/6)。本文件记录根侧候选证据;领域侧见 `marqdo-ext-web` 的 `docs/evidence/WEB-05-domain-activation.md`。主分支组合在合并前保持不变。 + +## 候选身份 + +| 对象 | 身份 | +| --- | --- | +| 根候选 | `release/web05-domain-active`(根 `main` 基线 `d4ccb77`) | +| Web 领域 | `cflmy/marqdo-ext-web@f6d0a9067cad9f685a501a7bc3f3c3d302fe4f16`(active,入口 `scripts/domain-acceptance.sh`) | +| Design(active) | `cflmy/marqdo-web-design@1b6607fd3cc09801b4f6eacd2fba547caa0ec637`(entry `scripts/ci.sh`) | +| Preview(active) | `cflmy/marqdo-web-preview@eff273f7f2f3919bab62eacded781c61d5f03f91`(entry `scripts/ci.sh`) | +| web-components | planned(无独立实现,不伪造入口) | +| CLI | 根固定 `cli/deadf6e` 构建的 `marqdo 3.0.0-rc.4`,`sha256:6ede3b9e...` | + +## 根侧门禁与结果(本地候选,CI 为最终门禁) + +| 门禁 | 命令 | 结果 | +| --- | --- | --- | +| 递归布局 | `python3 scripts/check-layout.py --checkouts` | 待本地/CI 记录 | +| 根集成测试 | `python3 -m unittest discover -s tests/integration` | 待记录 | +| 领域组件入口 | `extensions/web/design/scripts/ci.sh`、`extensions/web/preview/scripts/ci.sh` | 由 `integration.sh` 5.5 执行 | +| web Tool 冷安装 | `tool install` → `web check/preview/handoff` → `tool remove`,CLI SHA 前后一致 | 由 `integration.sh` 5.5 执行 | +| 领域验收 | `extensions/web/scripts/domain-acceptance.sh`(三案例 + 生产 API/浏览器 E2E) | 本地 WEB-04 已 PASS;CI 图像浏览器可用时执行 | +| 既有消费者 | Conformance/View/Knowledge/Prove/Lint 同一 CLI/Bundle | 由 `integration.sh` 6 执行 | + +## 边界 + +- 根与领域 catalog 都登记 `cli` 依赖;根不实现 Design/Preview/生产应用代码。 +- 冷安装只安装构建出的 `web` Tool bundle;生产应用不是 Tool 运行依赖。 +- `web-components` 未激活、无 entry,不计完成率。 +- 本文件不把本地候选当已发布证据;根 CI(layout + candidate)通过后才晋升。 diff --git a/extensions/web b/extensions/web index f70095d..f6d0a90 160000 --- a/extensions/web +++ b/extensions/web @@ -1 +1 @@ -Subproject commit f70095d60af47a6831bb15e1933b38f788e7fbfa +Subproject commit f6d0a9067cad9f685a501a7bc3f3c3d302fe4f16 diff --git a/scripts/integration.sh b/scripts/integration.sh index 3581a4e..c213f01 100755 --- a/scripts/integration.sh +++ b/scripts/integration.sh @@ -11,7 +11,7 @@ set -euo pipefail cd "$(dirname "$0")/.." root="$PWD" active="$(python3 scripts/check-layout.py --checkouts --active-paths)" -expected=$'cli\nstdlib/collections\nstdlib/data\nstdlib/fs\nstdlib/io\nstdlib/system\nstdlib/text\ntests/conformance\ntools/knowledge\ntools/lint\ntools/prove\ntools/view' +expected=$'cli\nextensions/web\nstdlib/collections\nstdlib/data\nstdlib/fs\nstdlib/io\nstdlib/system\nstdlib/text\ntests/conformance\ntools/knowledge\ntools/lint\ntools/prove\ntools/view' if [[ "$active" != "$expected" ]]; then echo "UNVERIFIED: update the integration plan for the changed active component set" >&2 exit 1 @@ -97,6 +97,34 @@ python3 cli/tools/ci/verify_extension_contracts.py \ --release-info "$installed/RELEASE_INFO.json" \ --fixtures tests/conformance --out "$work/conformance.json" + +# 5.5 Web domain: component entries from the pinned domain gitlink, then a cold +# install of the same-built web Tool with a generic check/preview/handoff run. +( + cd extensions/web/design + MARQDO_BIN="$MARQDO_BIN" scripts/ci.sh +) +( + cd extensions/web/preview + MARQDO_BIN="$MARQDO_BIN" scripts/ci.sh +) +web_tool="$root/extensions/web/preview/dist/marqdo-web-preview/tool.json" +test -f "$web_tool" +export MARQDO_TOOL_HOME="$work/web-tool-home" +cli_before="$(sha256sum "$MARQDO_BIN" | cut -d' ' -f1)" +"$MARQDO_BIN" tool install "$web_tool" +"$MARQDO_BIN" web check extensions/web/examples/research-workspace/index.mq.md \ + --unit 工作台 --root extensions/web/examples/research-workspace +"$MARQDO_BIN" web preview extensions/web/examples/research-workspace/index.mq.md \ + --unit 工作台 --root extensions/web/examples/research-workspace --out "$work/web-preview" +test -f "$work/web-preview/index.html" +"$MARQDO_BIN" web handoff extensions/web/examples/research-workspace/index.mq.md \ + --unit 工作台 --root extensions/web/examples/research-workspace --out "$work/web-handoff.md" +test -s "$work/web-handoff.md" +"$MARQDO_BIN" tool remove web +cli_after="$(sha256sum "$MARQDO_BIN" | cut -d' ' -f1)" +test "$cli_before" = "$cli_after" +echo "web domain: component entries + cold Tool install PASS" # 6. Existing consumers, same installed binary and adjacent Bundle. ( cd tools/view