本矩阵追踪 Plugin Management Lifecycle Case Catalog
中的候选 case 从 manual review 到三平台正式门禁的状态。manual-review 不等于默认质量门禁覆盖。
| Case | Spec abbreviation | UI automation | Runtime/storage evidence | Human review | Formal spec | Linux Docker | macOS CI | Windows CI |
|---|---|---|---|---|---|---|---|---|
PLM-LC-001 discovery/navigation |
PD |
targeted pass | UI state + screenshot captured | pending | blocked | blocked | blocked | blocked |
PLM-LC-002 presentation |
PP |
targeted pass | DOM/a11y/overflow + screenshot captured | pending | blocked | blocked | blocked | blocked |
PLM-LC-003 personal main lifecycle |
PM |
targeted pass | overview/list/storage + update badge/inline entry + v2 Skill/MCP provider evidence pass | pending | blocked | blocked | blocked | blocked |
PLM-LC-004 persistence/local visibility |
PV |
targeted pass | restart/config/enabled/workspace B evidence pass | pending | blocked | blocked | blocked | blocked |
PLM-LC-005 orphan/reassociate |
PO |
targeted pass | source/config/enabled + all update entries (menu/detail/badge/inline) absent + fresh-session Skill evidence pass | pending | blocked | blocked | blocked | blocked |
PLM-LC-006 builtin suppress/restore |
PB |
targeted pass | suppression/config/data + Catalog/cache preservation + restart evidence pending | pending | blocked | blocked | blocked | blocked |
PLM-LC-007 local official CDN |
PC |
targeted pass | loopback HTTP ZIP/cache/overview evidence pass | pending | blocked | blocked | blocked | blocked |
PLM-LC-007b real CDN smoke |
PCS |
not run | not captured | pending | never | never | never | never |
PLM-LC-008 recoverable failures |
PF |
targeted pass | source/refresh/describe/install/update preservation evidence pass | pending | blocked | blocked | blocked | blocked |
PLM-LC-009 inline smoke |
PI |
targeted pass | UI/list + fresh-session Skill invocation evidence pass | pending | blocked | blocked | blocked | blocked |
PLM-LC-010 secret env/agent projection |
PEA |
targeted pass | MCP resolved marker + no-secret capture + one canonical agent row + Electron capturePage() video |
pending | blocked | blocked | blocked | blocked |
PLM-LC-011 no-Git GitHub Archive |
PGA |
targeted pass | real Claude Marketplace/plugin HTTP + missing-Git diagnostic; run desktop-e2e-20260806033745155-p99439-e61ceea7b4c68fcf |
pending | never | never | never | never |
PLM-LC-012 isolated refresh/atomic cache |
PRA |
not run | partial refresh + persisted failure + rollback evidence pending | pending | blocked | blocked | blocked | blocked |
PLM-LC-014 builtin uninstall/detail parity |
PBD |
not run | describe/components + suppression/runtime absence + cache/manifest unchanged pending | pending | blocked | blocked | blocked | blocked |
PLM-LC-015 bundled install ownership |
PBO |
not run | bundled restore vs CDN Marketplace ownership evidence pending | pending | blocked | blocked | blocked | blocked |
PLM-LC-016 seed/cache/runtime separation |
PBS |
not run | filesystem/SEA seed, suppressed discovery, describe and self-heal evidence pending | pending | blocked | blocked | blocked | blocked |
PLM-LC-017 installed row menu layout |
PML |
targeted pass | workspace-override row menu single-line text + screenshot | pending | blocked | blocked | blocked | blocked |
Todo103 新增/迁接候选:PLM-LC-018/019 对应 plugins/manual-review/pending/plugin-store-auto-refresh-{throttled,on-enter}.test.ts;Pro desktop-e2e-20260909-152018-653 两例通过。PLM-LC-020 对应 plugins/manual-review/pending/plugin-subagent-override-cold.test.ts,Pro desktop-e2e-20260909-152419-828 冷启动 child/父 continuation 请求验证通过,case-local fixture check 通过。三项均未人工晋级;019 保持公网 smoke、不进入正式 CI。
| Abbreviation | Pending spec |
|---|---|
PD / PP |
plugins/manual-review/pending/plugin-management-discovery-presentation.test.ts |
PM |
plugins/manual-review/pending/plugin-management-personal-lifecycle.test.ts |
PV / PO |
plugins/manual-review/pending/plugin-management-persistence-source.test.ts |
PB / PI |
plugins/manual-review/pending/plugin-management-builtin-inline.test.ts |
PC |
plugins/manual-review/pending/plugin-cdn-zip-marketplace-install.test.ts |
PCS |
plugins/manual-review/pending/plugin-cdn-zip-official-cdn-smoke.test.ts |
PF |
plugins/manual-review/pending/plugin-management-recoverable-failures.test.ts |
PEA |
plugins/manual-review/pending/plugin-runtime-env-agent-projection.test.ts |
PGA |
plugins/manual-review/pending/plugin-no-git-github-archive.test.ts |
PRA |
plugins/manual-review/pending/plugin-refresh-atomic-cache.test.ts |
PBD |
plugins/manual-review/pending/plugin-management-builtin-detail-parity.test.ts |
PBO |
plugins/manual-review/pending/plugin-management-bundled-install-ownership.test.ts |
PBS |
plugins/manual-review/pending/plugin-management-seed-runtime-separation.test.ts |
PML |
plugins/manual-review/pending/plugin-management-installed-menu-layout.test.ts |
2026-07-15 已在 macOS 上逐个运行上述 PD/PP、PM、PV/PO、PB/PI、PC、PF
pending spec,均通过。这些 spec 不得并行共享 E2E HOME;允许同一兼容批次串行运行、各用例隔离 HOME 并共享构建。
截图与 provider capture 已生成,但尚未完成人工产品审核,因此本表不会把
任何 case 标成 formal,也不会运行 promotion apply、Docker admission 或正式 CI preset。
2026-07-20 已在 macOS 上独立运行 PEA pending spec 并通过(run
desktop-e2e-20260720040616896-p59191-dfc1ae47585cbcf6):插件安装详情显示一个 MCP 与一个
agent,Subagents 页面只出现一个规范化插件资源,真实 MCP tool call 返回 resolved marker,provider
capture 与运行日志均不含 synthetic secret。Electron webContents.capturePage() 录制生成 2400×1600、
7 秒、28 帧的 VP9 WebM;关键截图与视频已生成,但仍等待人工产品审核。
2026-08-06 已在 macOS 上独立运行 PGA pending spec 并通过(run
desktop-e2e-20260806033745155-p99439-e61ceea7b4c68fcf):Agent Git binary 指向不存在的绝对
路径,非 GitHub Git 来源返回 plugin_git_unavailable;随后通过 GitHub zipball/HEAD 下载真实
Anthropic Claude Marketplace,并按目录中的固定 SHA 安装 aikido。Marketplace 与安装缓存均无
.git,安装记录保留 URL/SHA,最终 discover 到插件 MCP 组件。该公网 smoke 仍只用于 manual review,
不会晋升为正式 CI 门禁。
2026-08-21 在 Orca 隔离 worktree 完成 Catalog/Runtime 分离的定向回归:Bootstrap 插件生命周期
测试 33/33、Adapters 插件测试 74/74、UI listing/card 测试 20/20;根目录 pnpm typecheck
与 pnpm lint 通过,lint 仅保留既有 warning。正式手工 E2E(PBD/PBO/PBS)仍待独立隔离 HOME
运行和人工审核,不在本次实现中晋升。
2026-09-02 为「已安装列表可更新角标 + 行内更新按钮」补充 PM/PO 断言(角标与行内入口出现 /
孤立插件不出现),并新增 UI 单测 packages/ui/test/pluginStoreUpdateEntries.test.ts(5/5 通过)。
两个 pending spec 未重新运行:它们仍引用已下线的 plugin-store-manage、plugin-store-installed-row、
plugin-store-check-updates 选择器(管理视图已并入 Settings → 插件列表 plugin-settings-plugin-row),
需要单独修复后才能再次做 manual review。
Human review to approved; only then may promotion move the spec out of pending.plugins preset.PLM-BC-001 install cancel, PLM-BC-002 standalone source diagnose, and PLM-BC-003 inline
uninstall remain bug candidates rather than failing lifecycle cases./remote、remote workspace plugin sync 与 workspace-scope 安装没有在本矩阵中
被标记为 covered。packages/ui/test/browser/manual-review/pending/plugin-installed-strip.test.mjs,真实 PluginStoreListView + 测试动作回调。zcode-plugin-strip-clipping/。根 typecheck、desktop typecheck:e2e、lint、architecture 检查通过,已有更新入口单测 5/5。PLM-LC-018/019/020:plugins/manual-review/pending/plugin-localization-creator.test.ts,pending、未执行、未人工审核。单测补充异步目标失效、完整 ID 隔离、缺失/禁用 creator;不作为真实手机或 SSH 端到端证据。
2026-09-16 补充:公开分类与个人市场分组默认全部展开,保留手动收起/展开。PLM-LC-001 的断言同步;plugin-localization-creator E2E 增加 8→6→8 张卡片回归,公开/个人与中英组合由组件交互单测覆盖。
packages/ui/test/browser/manual-review/pending/plugin-store-mode-order.test.mjs 中
PLM-MISSING-CONFIG;fixture 经真实 buildStoreItems → PluginStoreListView → 卡片/搜索投影。2026-09-17 验证:node --test --test-name-pattern=PLM-MISSING-CONFIG packages/ui/test/browser/manual-review/pending/plugin-store-mode-order.test.mjs 8/8 通过;dev CDP 验证旧卡片 0、新插件卡片 5、原始 missing 诊断仍保留。重新进入商店后保持结果。
默认官方文档插件按 PDF、PPT、Excel、Word 排序。浏览器用例覆盖商店分类和已安装图标条,
桌面/手机 × 中英文 × 深浅主题;预置管理分组、停用、缺项、个人同名隔离及服务端排序优先由单测覆盖。
入口:packages/ui/test/browser/manual-review/pending/plugin-store-mode-order.test.mjs。
此用例属于浏览器展示验证,不作为 Electron 安装生命周期或正式 CI 准入证据。
官方创建器本地图标贯穿商店、@ 候选、Composer 标签与 Session 消息投影。
plugin-picker-order.test.mjs 的 PLUGIN-CREATOR-ICON 用例覆盖 catalog 无远端 icon 时打开候选并插入标签,
1200/390、中英、深浅主题;Session 消息及个人市场同名隔离由 pluginCreatorMentionIcon.test.ts 覆盖。
状态为 manual-review,不自动转正;不向真实模型发送测试消息。
2026-10-15 应用插件组内展开回归:plugin-store-mode-order.test.mjs 的 PLM-UI-GROUP 覆盖公开/社区/个人、默认展示 8 张、原位 8→6→8、其他分类保留、搜索清空和来源往返保留手动选择、键盘操作及宽窄视口的中英/深浅主题。此项为真实浏览器组件交互验证,不代表真实手机远控或 Electron 安装生命周期验证;继续保留 manual-review/pending。
PLM-LC-001/002:plugin-management-discovery-presentation.test.ts 在 macOS Electron 通过,run desktop-e2e-20261011-170738-518。覆盖分段搜索、展开/折叠、卡片详情、市场内管理往返与宽窄视口展示。
PLM-UI-001:plugin-management-ui-market.test.ts 在 macOS Electron 中通过,run desktop-e2e-20261011-170634-701。覆盖真实安装、已有会话打开 MCP 资源、沙箱握手、关闭不卸载、Side Pane 市场内管理、项目暂停与全局/另一项目隔离、启用后打开、恢复继承和取消/确认卸载。Fixture 静态校验通过;保留 manual-review/pending,不自动晋级。
默认推荐浏览器用例:两组已通过,包含未收录开发插件排除、鼠标与键盘打开、标签去重、宽窄视口和双语言主题。
原 PLM-STRIP-CLIP 的图标条已删除;对应浏览器测试现覆盖卡片行内更新、焦点可达、管理入口及无横向溢出,8 组通过;另有 UI 详情图片放大、Escape 关闭与焦点返回 2 组通过。原先的历史验证仅代表当时界面。
分类与模式排序浏览器回归 18/18 通过:当前分段搜索、默认展开、office 模式、缺包投影及官方文档顺序;保留失败刷新断言。
暂未完成真实手机远控、Windows/Linux Electron 验证;窄视口结果不代替这些验证。
静态验证:根目录与 CLI 各包 typecheck、root lint、architecture --changed 通过。Root lint 保留既有 warning,架构 0 违规。插件相关 UI 单测 224/224、额外 UI 打开和标签/启动凭据等定向集合通过;CLI bootstrap 生命周期与协议 64/64、目录解析 4/4 通过。
截图位于 packages/desktop/.e2e-artifacts/plugin-management/plm-ui-001/:real-ui-sandbox.png、side-pane-market.png、project-override.png。沙箱图片使用确定性测试页面,不代表默认推荐插件。
插件目录仓库:239 项测试中 219 通过、20 跳过;27 个插件通过校验与发布构建,目录迁移前后所有 ZIP 的路径、字节数和 sha256 相同。尚未发布远端目录。
pluginManagementProjectionSync.test.ts 8/8;包含真实 useCuaComposerEntry hook 随市场暂停而隐藏的接线断言。相关 store、错误归属、远程同步、导航和详情组件合计 67/67,启动凭据夹具 5/5。desktop-e2e-20261012-050628-695 通过;真实安装的已启用/暂停 UI 都可独立进入详情,不写启用状态,不新增 UI tab。desktop-e2e-20261012-050703-560 通过,补充主导航返回聊天且不落入旧设置管理页。desktop-e2e-20261012-051242-142 通过,市场安装后回聊天,再进入 User / Workspace 管理;保存、覆盖、清除字段、暂停及恢复继承均保留原断言。旧脚本的启动就绪、面包屑和菜单恢复入口已同步为当前交互。desktop-e2e-20261012-051408-560 通过;离开市场回聊天、从侧栏重进仍命中刷新节流,官方目录更新时间保持不变。desktop-e2e-20261012-053949-887 通过:同时移除原始与 managed 源包,真实安装错误可见且未生成安装记录;恢复源包后重试成功,后续完整 UI 沙箱、项目覆盖、继承和卸载回归通过。desktop-e2e-20261012-090553-480、desktop-e2e-20261012-092305-636(启动页文案对齐原型后)通过;用例全程录屏为 plm-ui-001.webm,并输出步骤时间点 plm-ui-001.chapters.json:市场头部与 Side Pane 启动页对齐原型后回归;按 PRD 章节输出 01–15 编号截图(.e2e-artifacts/plugin-management/plm-ui-001/),截图前等待有限时长动画结束。回放模型无 high 思考档,运行时设 E2E_PROVIDER_THOUGHT_LEVEL= 并显式指定 case fixture。PLM-UI-MAIN-NAV(主导航无打开、整行进详情、详情为立即试用);PLM-UI-DETAILS 改为键盘回车整卡进详情。desktop-e2e-20261012-104955-651、desktop-e2e-20261012-105655-477、desktop-e2e-20261012-105824-912 通过;步骤截图 06–16 改为主导航无打开 → 右侧市场打开 → 右侧管理页打开 → 项目暂停后右侧「启用」并打开 → 管理页整行进详情恢复继承。用例在主导航断言前关闭右侧市场标签:会话视图后台保持挂载,两份市场并存会让按 testid 取到隐藏的那份。desktop-e2e-20261012-105221-558 在主导航第二次进入管理页时等待 plugin-store-manage 超时,随后 3 次连跑未复现,原因未定位。side-pane-plugin-menu.test.mjs 不再替换静态名单模块,改为请求配置响应并通过真实公开配置解析器。ZCODE_UI_RECOMMENDATIONS_LIVE_CONFIG_URL 接入真实测试环境配置;本次接口返回 5 条推荐并完成展示和打开参数断言。工作区面板仍由 fixture 提供,不代表真实安装或沙箱运行验收。uiPluginRecommendations;使用原 MD5 发布、精确回读,并核对公共接口返回。生产配置未修改。useRecommendedUiPlugins 回归覆盖用户级安装、项目级启用、重复点击、失败重试、服务切换与会话切走再切回后的迟到结果隔离;复用现有插件管理 store。side-pane-plugin-menu.test.mjs 增加启动页和加号菜单的“安装 → 启用 → 再次点击打开”流程,成功后断言没有自动打开;同时断言实际服务请求的 user/workspace scope。安装与启用时菜单保持打开。| Case | 场景 | 用例 | 验证 | 状态 |
|---|---|---|---|---|
| PLM-TEL-001 | 插件安装最终结果与隐私 | plugins/manual-review/pending/plugin-lifecycle-telemetry.test.ts |
macOS Electron 回放通过 | pending,未加入 CI |
验证批次 desktop-e2e-20261015031949530-p54859-5f1860f2585df3f1:真实商店详情安装成功,最终 HTTP 出口仅一条 install 结果,含 event_id 和 duration_ms,无 operation_id 和路径。手机白名单、远端同步结果与 MCP 归属由定向单测验证;Windows/Linux 和真实远端安装未运行。
| Case | 场景 | 入口 | 边界 |
|---|---|---|---|
| PLM-UI-BACKGROUND | 无锚点/隐藏 tab 冷启动、最小化后首次创建与执行、session 空闲时仍执行且不销毁、删除释放 | mcp-apps-host-e2e.mjs --background-only |
真实 Electron、生产 owner/Agent/沙箱;受控页面,未晋升 CI |
| PLM-UI-BACKGROUND-ADMISSION | 无卡片挂载和 conversation 订阅的真实工具结果首次创建、后台运行、返回复用;双窗口不同会话的同插件实例保留与释放 | mcp-apps-host-e2e.mjs --background-only |
macOS Electron 通过;同窗口并发准入和不同会话键隔离另以单测覆盖,未晋升 CI |
| PLM-UI-VISIBILITY | 保活侧栏收起、切标签、离开聊天/工作区时不可见且不拦点击;后台工作、编辑状态及实例保留,恢复交互 | mcp-apps-host-e2e.mjs --managed-only |
macOS Electron 深浅主题通过;生产组件集成,宿主页面投影另以桌面/手机壳 UT 覆盖,未晋升 CI |
| PLM-UI-BACKGROUND-CRAFT | 最小化窗口且无卡片时,真实工具结果触发 WASM 首次初始化;后台图层操作、编辑状态保留与恢复展示截图;切主页面后隐藏 UI、后台编辑并返回 | mcp-apps-host-e2e.mjs --photocraft-background-only,设置 ZCODE_PHOTOCRAFT_SERVER |
macOS Electron 通过;未修改的 PhotoCraft 0.2.2,恢复截图包含后台新增图层,不替代商店安装路径验证 |
Web/remote 不支持回退、runtime 失效、内联滚动与页面保留沿用 --managed-only。
Windows/Linux、真实手机和其它第三方插件需独立验证。
PLM-UI-CONNECTION-READY:--managed-only 控制真实 MCP initialize 完成顺序,验证生产
React 面板等待连接后自动运行、无错误闪现和重复实例。2026-10-16 macOS Electron 专项通过;未晋升 CI。
独立 worktree 使用标准命令整组回归,managed 27 项、managed-empty 1 项、interaction 1 项全部通过,
证据批次 zcode-mcp-host-e2e-f1vN0y。此前整组运行出现过 guest 崩溃重建超时和锚点切换后
点击断言失败,独立复跑均通过;保留原失败证据,不据此认定稳定性问题已解决。
packages/ui/test/browser/manual-review/pending/plugin-concurrent-install.test.mjs。真实 store 和安装按钮,390/1200px × 中英文 × 深浅主题共 8 组通过;旧实现 8 组均在第二次安装清掉第一次忙碌态处失败。日志和截图写入系统临时目录的 zcode-plugin-concurrent-install/。plugins/manual-review/pending/plugin-concurrent-install.test.ts。macOS Electron + 真实 CLI,个人来源本地 HTTP 下载响应门验证两项同时安装中、第一项失败不清理第二项、两项失败后均可重试;运行 desktop-e2e-20261015143344848-p62610-27dafbf8f737df99 通过。截图位于 .e2e-artifacts/plugin-management/plm-concurrent-install/both-pending.png。ZCODE_E2E_MANUAL_REVIEW=1 E2E_PROVIDER_HTTP_MODE=replay E2E_PROVIDER_REPLAY_FIXTURE_PATH=packages/desktop/test/e2e/fixtures/upstream/common.json pnpm --filter @zcode/desktop test:e2e -- --spec './test/e2e/plugins/manual-review/pending/plugin-concurrent-install.test.ts'。