dsh-sansheng-liubu/docs/verification/03-host-smoke.md

56 lines
4.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 真实宿主冒烟记录(隔离测试 profile)
日期:2026-11-14
宿主:DeepSeek Harness 0.2.2-rc.3
测试环境:`C:\dsh-sansheng-test`(独立 `DSH_HOME`,不触碰用户日常 `~/.dsh` 桌面 profile)
启动命令:
```powershell
$env:DSH_HOME = 'C:\dsh-sansheng-test'
dsh --profile web-test --port 7399 --host 127.0.0.1 --no-open
```
profile `web-test` 的 bundles:`@deepseek-ai/dsh-base`、`@deepseek-ai/dsh-web-app`、`ds-bot`、`dsh-sansheng-sansheng`;
两个本仓库包通过 ASCII 路径 junction 以 `link:` 安装,避免中文路径被 pnpm 写坏。
## 已取得的真实宿主证据
| 项 | 结果 | 证据 |
| --- | --- | --- |
| 两个包被宿主加载 | 是;页面 bundle 包含 `dsh-sansheng-sansheng/client.js` 与 `ds-bot/client.js` | 浏览器 console 无本插件报错 |
| 服务端工具/路由 | `GET /sansheng/state` → 200 `{projects:[],current:null,health:{status:"ok"}}`;`GET /sansheng/health` → 200,返回独立 `sansheng/state.json` 与 DS Bot state 计数 | HTTP 响应(见下) |
| 原生侧栏入口 | 左栏底部出现「三省」按钮;点击后在右栏打开「角色」页签 | `evidence/host-right-uninitialized.png` |
| 未初始化项目 | 右栏显示「此项目尚未初始化」,初始化表单默认折叠,仅有项目名/工作目录/三个模型字段 | `evidence/host-init-form.png` |
| 通过 UI 创建项目 | 成功创建「演示项目」三 Bot + 项目群;左栏出现 `演示项目 · 三省六部` 与 工部/尚书/丞相;右栏三张角色卡显示、可点击、无“会话缺失” | `evidence/host-right-roles.png` |
| 成功回滚与错误提示 | 先尝试把工作目录放进 DSH_HOME,宿主拒绝(“holds DeepSeek Harness data”);UI 显示「初始化失败:…已回滚本次新建的 Bot」,未落半绑定 | 本次运行日志/UI 文本 |
| 原生聊天布局 | 输入框保持在底部,右栏展开/收起不影响输入框几何(1440×900 截图) | `evidence/host-right-roles.png` |
| 左侧栏保持宿主项目树 | 安装 M-06 后,DS Bot 不再 shadow `sidebar.workspaces`;左栏显示「工作区 / DS Bot / New Session」项目树,不再换成 Bot 列表 | `evidence/host-project-tree-bot-switch.png` |
| Bot 切换在右栏 | 右栏角色卡下方新增折叠「Bot 切换 · 4」,列出丞相/工部/尚书/Chief 与项目群,点击打开对应真实会话 | `evidence/host-project-tree-bot-switch.png` |
| 模型切换 | 组件/服务端测试通过;测试 profile 没有 API Key,`/sansheng/state` 的 `models` 为空,角色卡显示「默认模型」,未能真实切换 | `client.test.js`、Q11 测试 |
HTTP 响应原文(初始空状态):
```json
{"generatedAt":...,"projects":[],"current":null,"currentMatch":null,"health":{"status":"ok","error":null}}
```
`/sansheng/health`:
```json
{"store":{"status":"ok","path":"C:\\dsh-sansheng-test\\sansheng\\state.json","error":null,"registry":"C:\\dsh-sansheng-test\\sansheng\\registry.json"},"governance":true,"dsbot":{"path":"C:\\dsh-sansheng-test\\bot\\state.json","bots":0,"rooms":0}}
```
创建项目后同一端点显示 `bots: 4, rooms: 1`(Chief + 三 Bot、一个项目群),说明 ds-bot 运行时与治理服务在同一真实宿主进程内可用;`governance:true` 表示 `sansheng-governance` 已注册。
## 未验证(本测试 profile 的限制)
- 测试 profile 没有 DeepSeek 账号 / API key,未执行真实模型对话,因此 E01–E04 未完成。
- 测试 profile 另外尝试加入 `workspace-groups-remote@1.3.0` 做共存探测;DS Bot 页面仍占据左栏并显示 Bot/群列表,未渲染 workspace-groups 项目树,因此 workspace 右键菜单入口未在该宿主里右键验证(组件级测试通过)。
- 深色模式、窄屏、长消息滚动、连续工具流、拖拽右栏宽度未截屏验证。
- 未修改、未重启用户日常 desktop profile;因此日常桌面仍是旧十席工作台,不能把本记录当作日常桌面已升级。
## 结论
真实宿主已验证:包能加载、右栏入口可发现、初始化项目可落地、三卡可见且会话可点、输入框布局未被接管。
真实模型 E2E、workspace-groups 项目树右键、深色/窄屏视觉仍属缺口,发布状态保持**候选版本**。