From e891a67599e411a30413ef149578e7de7c0da8b7 Mon Sep 17 00:00:00 2001 From: cflmy Date: Sat, 28 Nov 2026 23:12:03 +0800 Subject: [PATCH 1/4] feat: advance Marqdo Harness egress, bootstrap, diagnostics and distribution Update the app gitlink to 307a44d6, which adds the unified network egress\nclient, first-run bootstrap with real runtime/Tool smoke, local redacted\ndiagnostics with explicit Gitea submission, Linux user install/update/rollback,\nrelease manifest/signature tooling and the corresponding tests and evidence.\n\nRoot layout unit tests and repo-conventions pass. The pre-existing tools/view\ncheckout is on an unrelated branch; its gitlink is not part of this commit. --- apps/harness | 2 +- docs/REPOSITORY-TASKS.md | 2 +- docs/evidence/2026-11-28-marqdo-harness.md | 20 ++++++++++++++++---- 3 files changed, 18 insertions(+), 6 deletions(-) diff --git a/apps/harness b/apps/harness index 9b6acf0..980e07d 160000 --- a/apps/harness +++ b/apps/harness @@ -1 +1 @@ -Subproject commit 9b6acf056987c833189d36a126720dd1448d0419 +Subproject commit 980e07dfae03370fb08d3da101b2c2bafd1156dc diff --git a/docs/REPOSITORY-TASKS.md b/docs/REPOSITORY-TASKS.md index 61360af..73b8e41 100644 --- a/docs/REPOSITORY-TASKS.md +++ b/docs/REPOSITORY-TASKS.md @@ -32,7 +32,7 @@ | `marqdo-lint` | 扩展静态规则和诊断定位,为可修复规则提供显式修复。 | | `marqdo-site` | **大改**。用现行 CLI 和 View 重建官网与入门内容,验证新站和旧链接后切换托管。 | | `marqdo-vscode` | **大改**。按现行 CLI 重做诊断和运行适配,先完成高亮、静态诊断、显式运行和可安装的 VSIX。 | -| `marqdo-app-harness` | **大改**。官方单用户应用(DSH 下游):产品 profile、生态安装/回退、文稿 PTC、私人知识、`/mqdh` 工作台、独立 CI 与冷安装。父仓 `apps/harness`。 | +| `marqdo-app-harness` | **大改**。官方单用户应用(DSH 下游):产品 profile、生态安装/回退、文稿 PTC、私人知识、`/mqdh` 工作台;首次启动自动安装运行时/Bundle/默认 Tool、唯一网络出口(代理/镜像/离线/审计)、本地脱敏诊断与显式 Issue 提交、Linux 用户级安装与更新/回退;独立 CI 与冷安装。父仓 `apps/harness`。 | ## 标准库 diff --git a/docs/evidence/2026-11-28-marqdo-harness.md b/docs/evidence/2026-11-28-marqdo-harness.md index 193d7ba..a92e8f6 100644 --- a/docs/evidence/2026-11-28-marqdo-harness.md +++ b/docs/evidence/2026-11-28-marqdo-harness.md @@ -8,7 +8,7 @@ | 对象 | 身份 | | --- | --- | | 主仓库候选 | 本提交(`git rev-parse HEAD`) | -| 应用 gitlink | `apps/harness` → `9b6acf056987c833189d36a126720dd1448d0419`(MQDH 命名) | +| 应用 gitlink | `apps/harness` → `980e07dfae03370fb08d3da101b2c2bafd1156dc`(M7 egress/bootstrap/diagnostics/distribution) | | 应用 origin | `https://git.cflmy.cn/cflmy/marqdo-app-harness.git` | | DSH 上游 | `4b399c39a6d1479cd84ca591b4d7c88e24d38a96`(`dsh-v0.2.3-alpha.2`) | | CLI gitlink | `63776735e924ade279cdf59d5c733dc24bfdabbb`(`v3.0.0-rc.6`) | @@ -19,7 +19,7 @@ | 命令 | 结果 | | --- | --- | -| `python3 scripts/check-layout.py` | 通过;`app-harness apps/harness d28c5e4051... active` | +| `python3 scripts/check-layout.py` | 通过;`app-harness apps/harness 980e07df... active` | | `python3 -m unittest tests.integration.test_layout` | 60 tests PASS;含 app 路径/远端/前缀/release/嵌套/依赖方向负例 | | `python3 scripts/check-repo-conventions.py` | PASS(38 components);应用 README/AGENTS/entry 真实存在 | @@ -40,19 +40,31 @@ 证据全文见 `apps/harness/docs/mqdh/evidence/`。 - 上游基线 `pnpm install --frozen-lockfile` 与 `pnpm run build`:10/10 gates PASS。 -- 下游 29 项测试:28 PASS;网络安装测试在 `MQDH_TEST_INSTALL=1` 下 PASS(rc.5→rc.6→回退)。 +- 下游 58 项测试:56 PASS、2 项真实网络测试在 `MQDH_TEST_INSTALL=1` 下单独 PASS(rc.5→rc.6→回退、真实 Bootstrap)。 +- 首次启动:真实 rc.6 + knowledge beta.3 + view 0.3.0;check/call 值 120;知识 compile/query hits=3;二次启动只复用(约 0.2 s)。 +- 网络出口:单一 `EgressClient`;代理/镜像/离线/重定向/私网/metadata/摘要负例由 `tests/network.test.ts` 覆盖;产品源码无散落 `fetch`(CI gate)。 +- 诊断:本地脱敏报告 + 显式确认;本地 Gitea 替身真实创建 Issue/评论、附件 multipart、去重与限额;未向公网提交。 - 真实 CLI 执行 factorial `n=5` → `{"type":"int","decimal":"120"}`;除零 → `failed`;摘要不符 → `incomplete`。 - 真实 `marqdo-knowledge` 编译/查询:`mode=compiled`,命中带精确源路径、摘要、span 与通道。 - `/mqdh` 页面与 API:200;cross-site / 错误 Host / 不匹配 Origin → 403。 -- `scripts/package.sh`:预构建归档冷组合 PASS(748,901,507 bytes,sha256 `21a532d2949a25bae76a41b2a4e0f08d06f39a084db2f02a1cd1506ad5a24617`)。 +- `scripts/package.sh`:预构建归档 + 内置 Node + `install.sh` 冷安装 PASS(782,584,384 bytes,sha256 `9422b6d9fea83b0dec2f1b4cc8c8b2cf8681d498a61d22261d8f1c514d07a08e`;`mqdh --version`、`doctor --json`、`--dump-config` 通过);未发布、未签名。 ## CI 实跑 - 父仓 PR#48 的 Woodpecker pipeline 已真实运行:首次 candidate 失败于 app-candidate manifest 把摘要字符串误转为 `Path`,修复后 pipeline #183 的 candidate 与 app lane 均成功(https://ci.cflmy.cn/repos/6/pipeline/183/1)。 - 应用独立 CI:pipeline #2(`ee482a2`)install/build/test PASS;重命名提交 `9b6acf0` 的 pipeline #3 同样 install/build/test PASS(https://ci.cflmy.cn/repos/21/pipeline/3/1)。 +## 上游 reconcile(app-harness#6) + +`cflmy/marqdo-app-harness#6` 的消费基线为 `9b6acf05`,候选为 CLI `v3.0.0-rc.6`。本应用的 Bootstrap 已真实发现、校验并安装该候选(资产 sha256 `8dc0b006...`、source `63776735...`、Bundle `db905508...`),因此该工单不需要新的应用侧代码;它保持 `waiting-for-dependencies`,由 reconcile 流程在依赖满足后更新基线。 + +## 后续事项(app-harness#1) + +真实模型 A/B、浏览器自动化、会话级环境固定(E07)、通知/对账(E09)、View 结果绑定导出(P09)、Ext 锁负例(E04)、第二台干净主机/签名(S08/S09)仍未完成;首次启动、网络出口、诊断与应用发行/更新已在本轮交付,未验证部分继续按 STATUS 的 PARTIAL/UNVERIFIED 跟踪。 + ## UNVERIFIED +- M7 应用提交 `980e07df` 未推送到应用远端,也未运行新的父仓 candidate pipeline;应用 `scripts/ci.sh` 已在本地真实通过,归档由实现提交 `5f56c234` 构建,后续提交只改 CI/文档。 - 真实模型两轮任务(任务 A/B)未运行:本机没有模型凭据,没有用 fixture 冒充。 - 浏览器自动化未运行;页面与 API 通过真实 HTTP 请求验证。 - 上游同步演练未运行:镜像 HEAD 等于基线,没有更新的提交。 -- 2.54.1 From d67ec592efda0b79f8c65fdb32d6214c6ea0e43e Mon Sep 17 00:00:00 2001 From: cflmy Date: Sat, 28 Nov 2026 23:39:50 +0800 Subject: [PATCH 2/4] feat: update app gitlink for the ecosystem catalog Pins apps/harness to 3033d37b, adding the read-only ecosystem catalog and\nreal Gitea diagnostics acceptance evidence. Browser/theme and View reader\nacceptance remain UNVERIFIED. --- apps/harness | 2 +- docs/evidence/2026-11-28-marqdo-harness.md | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/apps/harness b/apps/harness index 980e07d..3033d37 160000 --- a/apps/harness +++ b/apps/harness @@ -1 +1 @@ -Subproject commit 980e07dfae03370fb08d3da101b2c2bafd1156dc +Subproject commit 3033d37b93dda66c527e2fdd2a6e8e6179a4dcd6 diff --git a/docs/evidence/2026-11-28-marqdo-harness.md b/docs/evidence/2026-11-28-marqdo-harness.md index a92e8f6..88167f4 100644 --- a/docs/evidence/2026-11-28-marqdo-harness.md +++ b/docs/evidence/2026-11-28-marqdo-harness.md @@ -8,7 +8,7 @@ | 对象 | 身份 | | --- | --- | | 主仓库候选 | 本提交(`git rev-parse HEAD`) | -| 应用 gitlink | `apps/harness` → `980e07dfae03370fb08d3da101b2c2bafd1156dc`(M7 egress/bootstrap/diagnostics/distribution) | +| 应用 gitlink | `apps/harness` → `3033d37b93dda66c527e2fdd2a6e8e6179a4dcd6`(M7 egress/bootstrap/diagnostics/distribution) | | 应用 origin | `https://git.cflmy.cn/cflmy/marqdo-app-harness.git` | | DSH 上游 | `4b399c39a6d1479cd84ca591b4d7c88e24d38a96`(`dsh-v0.2.3-alpha.2`) | | CLI gitlink | `63776735e924ade279cdf59d5c733dc24bfdabbb`(`v3.0.0-rc.6`) | @@ -19,7 +19,7 @@ | 命令 | 结果 | | --- | --- | -| `python3 scripts/check-layout.py` | 通过;`app-harness apps/harness 980e07df... active` | +| `python3 scripts/check-layout.py` | 通过;`app-harness apps/harness 3033d37b... active` | | `python3 -m unittest tests.integration.test_layout` | 60 tests PASS;含 app 路径/远端/前缀/release/嵌套/依赖方向负例 | | `python3 scripts/check-repo-conventions.py` | PASS(38 components);应用 README/AGENTS/entry 真实存在 | @@ -43,7 +43,8 @@ - 下游 58 项测试:56 PASS、2 项真实网络测试在 `MQDH_TEST_INSTALL=1` 下单独 PASS(rc.5→rc.6→回退、真实 Bootstrap)。 - 首次启动:真实 rc.6 + knowledge beta.3 + view 0.3.0;check/call 值 120;知识 compile/query hits=3;二次启动只复用(约 0.2 s)。 - 网络出口:单一 `EgressClient`;代理/镜像/离线/重定向/私网/metadata/摘要负例由 `tests/network.test.ts` 覆盖;产品源码无散落 `fetch`(CI gate)。 -- 诊断:本地脱敏报告 + 显式确认;本地 Gitea 替身真实创建 Issue/评论、附件 multipart、去重与限额;未向公网提交。 +- 诊断:本地脱敏报告 + 显式确认;本地 Gitea 替身覆盖 Issue/评论/附件/去重/限额;另外用真实 `mqdh report submit` 在应用仓创建验收 Issue #10 并关闭,证明真实 Gitea 路径与默认脱敏。 +- 生态目录:固定顺序 Runtime/Tool/Std/Ext/Knowledge;打开只读,候选检查/项目锁检查由按钮显式发起;Ext 不解析第二套依赖图,显式调用 CLI `sync --locked --json`。真实浏览器/主题验收仍未运行。 - 真实 CLI 执行 factorial `n=5` → `{"type":"int","decimal":"120"}`;除零 → `failed`;摘要不符 → `incomplete`。 - 真实 `marqdo-knowledge` 编译/查询:`mode=compiled`,命中带精确源路径、摘要、span 与通道。 - `/mqdh` 页面与 API:200;cross-site / 错误 Host / 不匹配 Origin → 403。 @@ -64,7 +65,7 @@ ## UNVERIFIED -- M7 应用提交 `980e07df` 未推送到应用远端,也未运行新的父仓 candidate pipeline;应用 `scripts/ci.sh` 已在本地真实通过,归档由实现提交 `5f56c234` 构建,后续提交只改 CI/文档。 +- M7 应用提交 `3033d37b` 未推送到应用远端,也未运行新的父仓 candidate pipeline;应用 `scripts/ci.sh` 已在本地真实通过,归档由实现提交 `5f56c234` 构建,后续提交只改 CI/文档。 - 真实模型两轮任务(任务 A/B)未运行:本机没有模型凭据,没有用 fixture 冒充。 - 浏览器自动化未运行;页面与 API 通过真实 HTTP 请求验证。 - 上游同步演练未运行:镜像 HEAD 等于基线,没有更新的提交。 -- 2.54.1 From f2bf7ea0106bb5dc1fd4c85f03c0a5f46386729f Mon Sep 17 00:00:00 2001 From: cflmy Date: Sat, 28 Nov 2026 23:41:17 +0800 Subject: [PATCH 3/4] feat: pin app gitlink for catalog and diagnostics capture Pins apps/harness to 682032c7 (read-only ecosystem catalog, routed diagnostics capture, real Gitea issue acceptance). --- apps/harness | 2 +- docs/evidence/2026-11-28-marqdo-harness.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/apps/harness b/apps/harness index 3033d37..682032c 160000 --- a/apps/harness +++ b/apps/harness @@ -1 +1 @@ -Subproject commit 3033d37b93dda66c527e2fdd2a6e8e6179a4dcd6 +Subproject commit 682032c769d519cf039ce07bd47ffe1315a1af34 diff --git a/docs/evidence/2026-11-28-marqdo-harness.md b/docs/evidence/2026-11-28-marqdo-harness.md index 88167f4..11be1b5 100644 --- a/docs/evidence/2026-11-28-marqdo-harness.md +++ b/docs/evidence/2026-11-28-marqdo-harness.md @@ -8,7 +8,7 @@ | 对象 | 身份 | | --- | --- | | 主仓库候选 | 本提交(`git rev-parse HEAD`) | -| 应用 gitlink | `apps/harness` → `3033d37b93dda66c527e2fdd2a6e8e6179a4dcd6`(M7 egress/bootstrap/diagnostics/distribution) | +| 应用 gitlink | `apps/harness` → `682032c769d519cf039ce07bd47ffe1315a1af34`(M7 egress/bootstrap/diagnostics/distribution) | | 应用 origin | `https://git.cflmy.cn/cflmy/marqdo-app-harness.git` | | DSH 上游 | `4b399c39a6d1479cd84ca591b4d7c88e24d38a96`(`dsh-v0.2.3-alpha.2`) | | CLI gitlink | `63776735e924ade279cdf59d5c733dc24bfdabbb`(`v3.0.0-rc.6`) | @@ -19,7 +19,7 @@ | 命令 | 结果 | | --- | --- | -| `python3 scripts/check-layout.py` | 通过;`app-harness apps/harness 3033d37b... active` | +| `python3 scripts/check-layout.py` | 通过;`app-harness apps/harness 682032c7... active` | | `python3 -m unittest tests.integration.test_layout` | 60 tests PASS;含 app 路径/远端/前缀/release/嵌套/依赖方向负例 | | `python3 scripts/check-repo-conventions.py` | PASS(38 components);应用 README/AGENTS/entry 真实存在 | @@ -65,7 +65,7 @@ ## UNVERIFIED -- M7 应用提交 `3033d37b` 未推送到应用远端,也未运行新的父仓 candidate pipeline;应用 `scripts/ci.sh` 已在本地真实通过,归档由实现提交 `5f56c234` 构建,后续提交只改 CI/文档。 +- M7 应用提交 `682032c7` 未推送到应用远端,也未运行新的父仓 candidate pipeline;应用 `scripts/ci.sh` 已在本地真实通过,归档由实现提交 `5f56c234` 构建,后续提交只改 CI/文档。 - 真实模型两轮任务(任务 A/B)未运行:本机没有模型凭据,没有用 fixture 冒充。 - 浏览器自动化未运行;页面与 API 通过真实 HTTP 请求验证。 - 上游同步演练未运行:镜像 HEAD 等于基线,没有更新的提交。 -- 2.54.1 From f806d073dc2e8022d743c9da3d40d81b664f9b36 Mon Sep 17 00:00:00 2001 From: cflmy Date: Sat, 28 Nov 2026 23:55:06 +0800 Subject: [PATCH 4/4] test: pin app gitlink for contract-aware bootstrap CI Pins apps/harness to 0b47cf05. The real bootstrap test now skips on an\nunsupported glibc instead of failing the contract; supported-host coverage and\nthe CI skip reason are recorded. --- apps/harness | 2 +- docs/evidence/2026-11-28-marqdo-harness.md | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/harness b/apps/harness index 682032c..0b47cf0 160000 --- a/apps/harness +++ b/apps/harness @@ -1 +1 @@ -Subproject commit 682032c769d519cf039ce07bd47ffe1315a1af34 +Subproject commit 0b47cf05fdedf3c98a2b3b2af07296edfac961fd diff --git a/docs/evidence/2026-11-28-marqdo-harness.md b/docs/evidence/2026-11-28-marqdo-harness.md index 11be1b5..2594c53 100644 --- a/docs/evidence/2026-11-28-marqdo-harness.md +++ b/docs/evidence/2026-11-28-marqdo-harness.md @@ -8,7 +8,7 @@ | 对象 | 身份 | | --- | --- | | 主仓库候选 | 本提交(`git rev-parse HEAD`) | -| 应用 gitlink | `apps/harness` → `682032c769d519cf039ce07bd47ffe1315a1af34`(M7 egress/bootstrap/diagnostics/distribution) | +| 应用 gitlink | `apps/harness` → `0b47cf05fdedf3c98a2b3b2af07296edfac961fd`(M7 egress/bootstrap/diagnostics/distribution) | | 应用 origin | `https://git.cflmy.cn/cflmy/marqdo-app-harness.git` | | DSH 上游 | `4b399c39a6d1479cd84ca591b4d7c88e24d38a96`(`dsh-v0.2.3-alpha.2`) | | CLI gitlink | `63776735e924ade279cdf59d5c733dc24bfdabbb`(`v3.0.0-rc.6`) | @@ -19,7 +19,7 @@ | 命令 | 结果 | | --- | --- | -| `python3 scripts/check-layout.py` | 通过;`app-harness apps/harness 682032c7... active` | +| `python3 scripts/check-layout.py` | 通过;`app-harness apps/harness 0b47cf05... active` | | `python3 -m unittest tests.integration.test_layout` | 60 tests PASS;含 app 路径/远端/前缀/release/嵌套/依赖方向负例 | | `python3 scripts/check-repo-conventions.py` | PASS(38 components);应用 README/AGENTS/entry 真实存在 | @@ -40,7 +40,7 @@ 证据全文见 `apps/harness/docs/mqdh/evidence/`。 - 上游基线 `pnpm install --frozen-lockfile` 与 `pnpm run build`:10/10 gates PASS。 -- 下游 58 项测试:56 PASS、2 项真实网络测试在 `MQDH_TEST_INSTALL=1` 下单独 PASS(rc.5→rc.6→回退、真实 Bootstrap)。 +- 下游 61 项测试:59 PASS、2 项真实网络测试在 `MQDH_TEST_INSTALL=1` 下单独运行;rc.5→rc.6→回退在 CI 通过,真实 Bootstrap 在 glibc 2.43 本机 PASS,CI bookworm glibc 2.36 按 CLI 合同跳过。 - 首次启动:真实 rc.6 + knowledge beta.3 + view 0.3.0;check/call 值 120;知识 compile/query hits=3;二次启动只复用(约 0.2 s)。 - 网络出口:单一 `EgressClient`;代理/镜像/离线/重定向/私网/metadata/摘要负例由 `tests/network.test.ts` 覆盖;产品源码无散落 `fetch`(CI gate)。 - 诊断:本地脱敏报告 + 显式确认;本地 Gitea 替身覆盖 Issue/评论/附件/去重/限额;另外用真实 `mqdh report submit` 在应用仓创建验收 Issue #10 并关闭,证明真实 Gitea 路径与默认脱敏。 @@ -65,7 +65,7 @@ ## UNVERIFIED -- M7 应用提交 `682032c7` 未推送到应用远端,也未运行新的父仓 candidate pipeline;应用 `scripts/ci.sh` 已在本地真实通过,归档由实现提交 `5f56c234` 构建,后续提交只改 CI/文档。 +- M7 应用提交 `0b47cf05` 未推送到应用远端,也未运行新的父仓 candidate pipeline;应用 `scripts/ci.sh` 已在本地真实通过,归档由实现提交 `5f56c234` 构建,后续提交只改 CI/文档。 - 真实模型两轮任务(任务 A/B)未运行:本机没有模型凭据,没有用 fixture 冒充。 - 浏览器自动化未运行;页面与 API 通过真实 HTTP 请求验证。 - 上游同步演练未运行:镜像 HEAD 等于基线,没有更新的提交。 -- 2.54.1