dsh-taskbridge 1.5.0 → 1.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,31 +1,23 @@
1
- # Claude Code 手动接入
1
+ # Claude Code / Claude Desktop 接入计划
2
2
 
3
- DSH TaskBridge 提供标准 stdio MCP 服务,Claude Code 可作为指挥端连接它。这里提供配置方法,不代表已经完成真实 Claude Code 客户端验收;目前也没有一键安装 Claude Code 智能体的按钮。
3
+ **当前版本仅支持 Codex 端。Claude Code 和 Claude Desktop 接入预计在 2.0 版本上线。**
4
4
 
5
- ## 连接
5
+ TaskBridge 目前提供 Codex 智能体与 MCP 的安装、更新和修复入口。Claude Code、Claude Desktop 尚未作为当前版本的正式接入端提供;请先通过 Codex 使用现有的派工、等待、审批和审查流程。
6
6
 
7
- 在 Claude Code 支持的 MCP 配置中登记一个 stdio 服务,`command` 指向本机 **Node.js 24 或更高版本的可执行文件**,`args` 只填写本插件实际安装目录里的 `bin/dsh-delegate-mcp.js` 的绝对路径。不要填写 `DeepSeek Harness.exe`,也不要把示例占位符直接复制为实际路径。
7
+ ## 2.0 计划
8
8
 
9
- ```json
10
- {
11
- "mcpServers": {
12
- "dsh-taskbridge": {
13
- "command": "<Node.js 可执行文件绝对路径>",
14
- "args": ["<本插件安装目录>/bin/dsh-delegate-mcp.js"],
15
- "env": {
16
- "DSH_DELEGATE_DISCOVERY_FILE": "<DSH_HOME>/data/dsh-delegate/runtime-endpoint.json"
17
- }
18
- }
19
- }
20
- }
21
- ```
9
+ | 客户端 | 当前状态 | 预计版本 |
10
+ | --- | --- | --- |
11
+ | Codex | 已支持 | 当前版本可用 |
12
+ | Claude Code | 接入尚未上线 | 2.0 |
13
+ | Claude Desktop | 接入尚未上线 | 2.0 |
22
14
 
23
- 配置文件的位置和作用域按你的 Claude Code 版本选择,参见 [Claude Code 官方 MCP 文档](https://code.claude.com/docs/en/mcp)。端点文件由运行中的插件维护,端口变化时重新发现;无需把 DSH API 密钥写到 Claude Code。
15
+ 计划的目标是让 Claude Code 和 Claude Desktop 也能作为指挥端,使用 DSH 插件中配置的执行 API、模型和思考强度,并接入任务委派、静默等待、必要判断和交付审查流程。
24
16
 
25
- ## 指挥规则
17
+ 具体配置入口、客户端操作方法与验收范围将在 2.0 发布时提供。预计版本是产品计划,实际功能以对应发布说明为准。
26
18
 
27
- 先在 DSH 插件页选好 API、执行模型和思考强度,并开启本机调用开关。向指挥端说明:
19
+ ## 关于旧的手动 MCP 文档
28
20
 
29
- > 仅在我明确委派的任务中调用 DSH。你负责规划、权限判断和最终审查,DSH 负责实现。先预检授权的源仓库,提交后等待同一 taskId;普通执行期间不要反复读取结果。审批时核对准确操作与指纹,按授权决定单次允许或拒绝。交付后集中审查,有修正则通过 continueFromTaskId 续接原任务,不重复派工或自行接管实现。模型与思考强度以 DSH 插件设置为准。
21
+ 本页此前记录过标准 stdio MCP 的手动连接方案。该方案不代表 Claude 客户端已经正式上线或完成实际验收;为避免误导,本页已改为接入规划。
30
22
 
31
- 先调用 `delegate_status` 验证连接,再以不修改文件的简短任务试运行。客户端可能提前结束等待,应继续等待原任务;不承诺某个客户端版本的 `@` 选择或完全零唤醒。
23
+ 当前安装步骤请查看 [TaskBridge 中文介绍](INTRODUCTION.zh.md) 和 [Codex 集成说明](codex-integration.md)。
@@ -1,7 +1,9 @@
1
1
  # Codex integration contract
2
2
 
3
- Status: implemented in 1.5.0 (1.1.0 introduced wait rules, 1.2.0 added installed-integration upgrades, 1.4.0 clarifies outer long waits and explicit host-review recording). This automatic installer covers Codex. Claude Code uses the separate manual MCP guide.
3
+ Status: implemented in 1.5.2 (1.1.0 introduced wait rules, 1.2.0 added installed-integration upgrades, 1.4.0 clarifies outer long waits and explicit host-review recording). This automatic installer covers Codex, the currently supported client. Claude Code and Claude Desktop integration is planned for 2.0; see the separate roadmap.
4
4
 
5
+ 1.5.1 refreshes the manifest on each activation, resolves a normal linked home root, and upgrades exact shipped/candidate templates while preserving custom content. See [1.5.1 notes](releases/1.5.1.zh.md).
6
+
5
7
  1.5.0 adds `delegate_question_answer`, combined decision/answer-and-wait flows and program metrics. Managed upgrades recognize the exact published 1.4.2 and verified local test.1/test.2 companions; customized files remain operator-owned. See the [1.5.0 release notes](releases/1.5.0.zh.md).
6
8
 
7
9
  1.4.2 also recognizes the exact published 1.4.1 companion for managed upgrades.
@@ -52,7 +54,7 @@ not apply to custom wrappers, other directories, or automatic startup refresh.
52
54
  | --- | --- | --- | --- |
53
55
  | `$CODEX_HOME/agents/dsh-taskbridge.toml` | managed copy of `codex/dsh-taskbridge.toml` | create it **exclusively** on explicit install when absent; refresh a byte-exact known build during plugin startup or explicit install; delete it on `remove` only after re-reading it and finding the same bytes it classified | overwrite or delete a file that is not that exact build — including a file with an old version line whose body was edited, and including a file that changed in the window between the status read and the write/removal |
54
56
  | `$CODEX_HOME/config.toml`, table `mcp_servers.dsh-delegate` | operator, with one managed entry | add the entry when absent; update `command`/`args`/its own `env.DSH_DELEGATE_DISCOVERY_FILE` when the entry carries **the plugin marker** *and* is the exact shape this plugin writes; on an explicit `install`/`repair` only, adopt a recorded `args[0]` that is a PROVED real installation of this package (manifest `name` + `bin["dsh-delegate-mcp"]` mapping) | touch any other key, table, comment or ordering; adopt, update or delete an unmarked same-name entry, even one whose values coincide; adopt a differing script path from the automatic startup check |
55
- | `$CODEX_HOME` and `$CODEX_HOME/agents` | Codex | read them (lstat **and** the Windows file attributes); create `agents` (`0700`) when both are real directories | create them relative to the process working directory; **follow a link at either level** (POSIX symlink, Windows junction/reparse point) for any read-through, write or delete |
57
+ | `$CODEX_HOME` and `$CODEX_HOME/agents` | Codex | resolve and pin a normal root symlink/junction to its real directory; inspect the real root and agents directory; create missing agents (`0700`) | retarget or delete the root alias; follow a link in the agents subdirectory or final file; write through an unusable or unverified target |
56
58
  | DSH local-call switch | operator | report it | change it |
57
59
 
58
60
  `$CODEX_HOME` resolution: `CODEX_HOME` when set and absolute; otherwise
@@ -64,15 +66,14 @@ nobody named.
64
66
 
65
67
  `lstat` on the final file is not enough: if `$CODEX_HOME/agents` is a junction,
66
68
  `mkdir -p` and the file create walk *through* it and write
67
- `agents/dsh-taskbridge.toml` outside the Codex home entirely. Both directories are
68
- therefore inspected as *boundaries*:
69
+ `agents/dsh-taskbridge.toml` outside the Codex home entirely. Since 1.5.1 the selected HOME root is first pinned to its real directory; that real root and the agents subdirectory are then inspected as boundaries:
69
70
 
70
71
  | `$CODEX_HOME` | `$CODEX_HOME/agents` | result |
71
72
  | --- | --- | --- |
72
73
  | real directory | missing | normal: install creates `agents` (`0700`) |
73
74
  | real directory | real directory | normal |
74
75
  | real directory | link (symlink or junction) | `agent.state = conflict`, `reason = agents-dir-is-link`; install/repair/remove all refuse with `AGENT_PATH_CONFLICT` |
75
- | link | not inspected (nothing below a link is examined) | `agent.state = conflict`, `reason = codex-home-is-link`; same refusal |
76
+ | root symlink/junction with a real directory target | checked under the pinned real target | normal root alias; alias preserved, agents/file links still refused |
76
77
  | could not be verified | — | `agent.state = conflict`, `reason = boundary-unverified`; same refusal |
77
78
 
78
79
  A **junction** is the case `lstat` cannot see: Windows reports it as an ordinary
@@ -441,12 +442,7 @@ A successful `install` records the directory even when it wrote nothing because
441
442
  installation was already exactly right: `changed: []` is a success, not "nothing happened".
442
443
  A REFUSED install records nothing, so a refusal cannot become the remembered target.
443
444
 
444
- A default that is a link (or cannot be verified) is reported as `default-is-link` /
445
- `default-unverified`; a home that does not exist is `no-codex-home`. When no supported
446
- directory applies, `status()` and the actions REFUSE with `CODEX_HOME_INVALID` instead of
447
- falling back, and so does `refreshManagedIntegration` when the caller passes a
448
- `startupTarget` whose `home` is `null` — the plugin never walks a junction and never
449
- substitutes a tree nobody named.
445
+ In 1.5.1 the selected home root is pinned by the installer to its real target after this precedence resolution. A normal root symlink/junction is supported; an unresolvable or unverifiable target is refused. A missing home remains `no-codex-home`; a null startup target does not silently fall back to another tree. The root alias is preserved, and links below it in agents or the final files remain forbidden.
450
446
 
451
447
  The explicit 安装 / 更新 TaskBridge 智能体 button (action `install`) is unchanged and remains
452
448
  the way to *create* the two managed targets. `status` reports the drift (`mcp.drift`)
@@ -530,7 +526,7 @@ successful diagnosis.
530
526
  ```jsonc
531
527
  {
532
528
  "codexHome": "…",
533
- "packageVersion": "1.5.0",
529
+ "packageVersion": "1.5.2",
534
530
  "boundary": { "blocked": false, "link": null, "unknown": false, "home": "directory", "agents": "directory" },
535
531
  "agent": {
536
532
  "path": "…", "state": "installed", "installed": true, "managed": true,
@@ -942,7 +938,7 @@ session (or a restart) is required to load the new file and the new MCP entry.
942
938
  | --- | --- |
943
939
  | `CODEX_HOME` relative | 400 `CODEX_HOME_INVALID`; nothing read or written |
944
940
  | `CODEX_HOME` unset | diagnosed against `~/.codex` |
945
- | `$CODEX_HOME` is a symlink or a Windows junction | `conflict` (`codex-home-is-link`); nothing below it is inspected, written or deleted |
941
+ | `$CODEX_HOME` is a normal symlink or Windows junction | pin and verify its real directory target, preserve the root alias, then apply the same managed-content checks; broken or unverifiable targets are refused |
946
942
  | `$CODEX_HOME/agents` is a symlink or a Windows junction | `conflict` (`agents-dir-is-link`); install/repair/remove refuse with `AGENT_PATH_CONFLICT` and no file is created outside the home |
947
943
  | an ordinary real Windows directory | `directory` in every spelling of the helper's boolean (`dir/False`, `dir/false`); never reported as a link |
948
944
  | `repair` with the agent file missing or `outdated` | `changed: ["mcp"]` or `[]`; the agent file is not created and not refreshed, and `agents/` is not created |
@@ -15,7 +15,7 @@ https://ranranyya.github.io/dsh-taskbridge/index.json
15
15
  3. 搜索 **DSH TaskBridge** 或 **dsh-taskbridge**。
16
16
  4. 安装确认框应显示本项目 GitHub 仓库和精确提交。核对后安装,不要改填别人的 `dsh-delegate` 或 `dsh-dispatch` npm 包。
17
17
 
18
- 当前索引采用固定 Git 提交作为安装来源,不依赖本机 npm 登录。另一种安装方式是直接在“添加插件”中输入 `dsh-taskbridge@1.5.0`,无需添加索引;若中国大陆镜像未同步,改选 npm 官方源。GitHub Release 同时提供 `.tgz` 和 SHA256 文件。
18
+ 当前索引采用固定 Git 提交作为安装来源,不依赖本机 npm 登录。另一种安装方式是直接在“添加插件”中输入 `dsh-taskbridge@1.5.2`,无需添加索引;若中国大陆镜像未同步,改选 npm 官方源。GitHub Release 同时提供 `.tgz` 和 SHA256 文件。
19
19
 
20
20
  ## 新版本
21
21
 
@@ -0,0 +1,70 @@
1
+ # DSH TaskBridge 1.5.1 更新说明
2
+
3
+ 发布日期:2026 年 11 月 15 日。安装标识:`dsh-taskbridge@1.5.1`。
4
+
5
+ **让你的 Claude Code 或 Codex 指挥 DSH 工作,在 DSH 插件中选择已有 API、执行模型和思考强度。**
6
+
7
+ 1.5.1 延续派工、静默等待、必要审批、集中审查和同任务续接流程,重点修复设置交互、更新误报冲突和重复失败提醒的确认可靠性。CLI 执行通道和 Claude Code 一键安装不在本次更新范围内。
8
+
9
+ ## 主要变化
10
+
11
+ ### 设置自动保存
12
+
13
+ - 移除页面底部额外的保存按钮。
14
+ - 文本输入停止约 700ms 后合并保存,主要开关和下拉选择及时保存。
15
+ - 写入串行处理,避免较早的响应覆盖较新的设置;无效草稿保留,方便继续修正。
16
+ - 正在执行的任务使用派工时的配置快照,不被中途设置改动偷偷切换 API 或模型。
17
+
18
+ ### 更新后 Codex 集成不再反复误报冲突
19
+
20
+ - 支持 Codex 根配置目录为正常符号链接或 Windows Junction,解析并固定到真实目录后操作,保留原有根链接。
21
+ - 每次插件激活从当前安装包刷新版本信息,避免热更新缓存旧版本、给新规则写上旧版本号。
22
+ - 识别正式 1.5.0、已发出的本地候选以及已观察到的旧版本戳产物的精确原版文件,支持升级到 1.5.1。
23
+ - 用户真正修改过的 agent 或自定义 MCP 配置仍保留;异常的 agents 子目录和最终文件链接仍拒绝。
24
+
25
+ ### 任务详情和审查意见可正常打开
26
+
27
+ - 打开、重复打开或切换任务时,详情展示在列表上方并定位到详情区域。
28
+ - 完整审查意见保留全文,后台列表刷新不再用摘要覆盖已经打开的内容。
29
+ - 长意见继续按现有边界和分页协议读取,不暗中截短。
30
+
31
+ ### 失败提醒要收到确认才清除
32
+
33
+ - 连续相同工具失败的提醒具有稳定 eventId,回包丢失后仍可重取同一事件。
34
+ - `delegate_wait` 新增可选 `ackFailureEventId`,返回明确的 `failureAck`;正确确认幂等,错误 ID 不会清除提醒。
35
+ - 长审批、普通问答及网络错误等返回路径保留已经应用的确认事实,减少重复处理。
36
+ - 旧客户端仍可使用原参数,但未确认提醒可能重发;请同步加载新版托管规则。
37
+
38
+ ### 指挥规则、恢复和团队选择
39
+
40
+ - 正常执行只静默等待,执行者处理普通单项失败;指挥端在审批、真实异常和交付时介入,交付后集中、有界审查。
41
+ - 同链身份无变化时复用已有预检事实;引擎仍逐次核验 checkout,审查结论必须确认保存。
42
+ - DSH 重启后可从已验证的任务身份、真实目录及 Git worktree 登记恢复原隔离工作区,不新建替代副本。
43
+ - 新增逐任务 `agentTeams` 决定,由指挥端按复杂度选择;不改变用户选定的提供方、执行模型或思考强度。省略表示不作新决定,续接可继承。
44
+ - 限制长会话 metrics 中展示的样本数量,保留累计统计和明确的省略数量,避免返回整体超过预算。
45
+
46
+ ## 验证
47
+
48
+ - 正式源码完整回归:1567 项通过,无失败、跳过或取消;前端构建一致性检查通过。
49
+ - Windows DSH 原生页面实测自动保存并恢复原值、重复打开详情、任务切换及 435 字符完整审查意见。
50
+ - 候选通过原生插件管理覆盖安装;热更新、重复点击安装更新、DSH 重启均无 Codex 集成冲突。已安装 C 盘 Junction 实际定位到 E 盘,根链接和正确配置保持不变。
51
+ - 真实 `workbuddy / deepseek-v4.1-flash / max` 任务连续三次读取故意缺失文件,再执行普通权限 90 秒等待。新旧客户端取得相同提醒;错误确认保留、正确确认清除、重复确认幂等;随后默认长等待直到交付,集中审查结论 saved/durable。
52
+ - 正式包另做解包、版本与 MCP 握手、旧版/候选模板升级和自定义内容保留检查。
53
+
54
+ 这是特定 Windows 环境与所述提供方的验收,不等同于所有平台、模型或故障组合已经实测。
55
+
56
+ ## 已知限制
57
+
58
+ - 失败提醒没有新增跨进程持久化,重启前未确认的提醒不保证恢复。
59
+ - 既有历史预算若裁剪了可信审批证据,重启后可能拒绝该历史任务续接并返回 `JOB_TASK_NOT_FOUND`;本版不放宽完整证据要求。
60
+ - 团队成员提权桥接尚未实现;成员默认审批策略为 `never`,需要更大权限的具体操作应回到主执行者逐次申请。真实验收验证了团队关闭,未创建真实成员进行提权验收。
61
+ - 最终 `MCP_RESULT_OVER_BUDGET` 拒绝兜底没有独立反例覆盖;完整一小时客户端边界及全部提供方异常组合未覆盖。
62
+ - 本版没有新的同条件 token 账单对照,不宣称比 1.5.0 再节省固定比例。此前样本及适用边界见 [1.5.0 账单对照](1.5.0-token-benchmark.zh.md)。
63
+
64
+ ## 更新
65
+
66
+ 等待当前任务结束,在 DSH 插件管理中更新 `dsh-taskbridge`,或添加 `dsh-taskbridge@1.5.1`;也可安装本 Release 的 `dsh-taskbridge-1.5.1.tgz` 并核对 SHA256。区域镜像未同步时改选 npm 官方源。
67
+
68
+ 已安装且未修改的 Codex 托管规则在插件启用时刷新;首次安装仍需点击 Codex 集成中的安装按钮。客户端若缓存旧 MCP 定义,请重新连接或新开会话。不要同时启用旧 Delegate/TaskDispatch 和 TaskBridge。
69
+
70
+ 本项目自定义插件索引随 GitHub Release 更新,订阅该索引后可发现相应版本;这不是承诺被所有 DSH 内置市场自动收录。本地压缩包来源是否显示自动更新取决于客户端来源管理,必要时用上述包名安装。
@@ -0,0 +1,30 @@
1
+ # DSH TaskBridge 1.5.2 更新说明
2
+
3
+ 发布日期:2026 年 11 月 15 日。安装标识:`dsh-taskbridge@1.5.2`。
4
+
5
+ **这次专门更新插件介绍,帮助新用户更快了解 TaskBridge 能做什么、如何接入与开始派工。功能沿用 1.5.1。**
6
+
7
+ ## 更新内容
8
+
9
+ - **列表简介**:讲清“让 Codex 指挥 DSH”的定位,突出在插件中选择已有 API、执行模型与思考强度,以及静默等待、审批、审查和原会话续接。
10
+ - **中英文详情**:按产品用途、完整任务流程、核心功能和上手步骤重新组织,补充设置表、任务状态、实际派工示例、常见问题和中英文任务流程图。
11
+ - **README**:先介绍产品和使用价值,再提供版本更新与技术文档,方便从 GitHub 或 npm 了解项目。
12
+ - **能力说明**:当前仅支持 Codex 端;Claude Code 与 Claude Desktop 接入预计在 2.0 上线。同步修订旧的 Claude 接入说明,避免将规划功能写成已上线能力。
13
+
14
+ ## 功能与升级
15
+
16
+ API/模型选择、静默等待、权限审批、集中审查和同任务续接的行为保持 1.5.1。同步发布版本及未修改的 1.5.1 Codex 托管模板身份,支持正常升级;用户自定义配置仍保留。
17
+
18
+ 已有功能的验收范围与已知限制见 [1.5.1 更新说明](1.5.1.zh.md)。本次不新增执行通道,不宣称新的 token 节省比例。
19
+
20
+ ## 本次检查
21
+
22
+ - 161 项发布、版本、包内容及 Codex 集成相关检查通过,无失败、跳过或取消。
23
+ - 前端构建一致性检查通过;托管智能体的行为规则与 1.5.1 相同,仅同步版本戳。
24
+ - 本次检查围绕文案分发与升级,不将 1.5.1 的真实模型验收记作本次重新执行。
25
+
26
+ ## 更新方式
27
+
28
+ 在 DSH 插件管理中更新 `dsh-taskbridge`,或在“添加插件”中输入 `dsh-taskbridge@1.5.2`;也可安装 GitHub Release 提供的 `dsh-taskbridge-1.5.2.tgz`。区域镜像尚未同步时请选择 npm 官方源。
29
+
30
+ 本项目自定义插件索引随正式 Release 更新。已安装插件的介绍随本次更新显示;发现页和镜像可能需要刷新缓存。
@@ -1,6 +1,6 @@
1
1
  # Runtime compatibility
2
2
 
3
- Build 1.5.0 retains the loading policy introduced in 1.4.2: **no DSH version whitelist**: it omits `engines.dsh`, declares
3
+ Build 1.5.2 retains the loading policy introduced in 1.4.2: **no DSH version whitelist**: it omits `engines.dsh`, declares
4
4
  host-provided `@deepseek-ai/dsh-*` peers as `*`, and publishes no DSH engine range
5
5
  in the custom plugin index. The plugin uses runtime capability checks rather than
6
6
  rejecting a host solely by its version number. Node.js `>=24` is still required.
@@ -53,7 +53,7 @@ acceptance run.
53
53
  - Development dependencies remain pinned for reproducible tests; they do not
54
54
  restrict the host-provided peer versions used by an installed plugin.
55
55
  - Older plugin packages keep their own metadata and can still be refused by a
56
- newer host. Upgrade to `dsh-taskbridge@1.5.0` to use this loading policy.
56
+ newer host. Upgrade to `dsh-taskbridge@1.5.2` to use this loading policy.
57
57
 
58
58
  ## 2. What DSH 0.2.2 changes
59
59
 
@@ -184,10 +184,10 @@ What remains genuinely unverified:
184
184
 
185
185
  ## 5. Upgrading from an older plugin build
186
186
 
187
- 1. Download `dsh-taskbridge-1.5.0.tgz` from the GitHub Release, or build the package locally (`npm pack`).
187
+ 1. Download `dsh-taskbridge-1.5.2.tgz` from the GitHub Release, or build the package locally (`npm pack`).
188
188
  2. Install it the way your surface requires: the Desktop **Plugins manager** for a
189
189
  Desktop profile (npm/CLI operations on that profile are refused), or
190
- `dsh plugin --profile <name> add ./dsh-taskbridge-1.5.0.tgz` for a CLI profile you
190
+ `dsh plugin --profile <name> add ./dsh-taskbridge-1.5.2.tgz` for a CLI profile you
191
191
  start yourself.
192
192
  3. The settings, the switch value and the task history are preserved
193
193
  (`$DSH_HOME/data/dsh-delegate`); nothing is migrated destructively.
@@ -121,10 +121,25 @@
121
121
  - 只认**原生结构化失败标记**:`tool/result.message.isError === true`(`ToolResultMessage` 契约)。
122
122
  输出里出现 "error" 字样、任务安静、只有思考、测试跑得久、或者没有改文件,都**不是**失败。
123
123
  - 同一个 `callId` 的重复结果只算一次;工具、操作或失败码**不同**,或者中间出现一次成功,
124
- 都会结束/切换当前 episode。已经提醒过的 episode 不再重复提醒;之后新的 episode 可以再提醒。
124
+ 都会结束/切换当前 episode。一个 episode 只**生成**一条提醒(到达阈值的那一刻),这条提醒
125
+ 在被确认前会以同一身份**重放**;被确认(或因恢复/切换而失效)后才安静,之后新的 episode
126
+ 可以再生成一条新提醒。
125
127
  - 它沿用 `attention` 这个 reason,并额外携带 **`failure`** 块:
126
- `{ kind: "repeated-tool-failure", toolName, failureCode, consecutive, threshold, ... }`。
127
- 这是**有类型**的紧凑诊断,不是文本猜测。
128
+ `{ kind: "repeated-tool-failure", eventId, toolName, failureCode, consecutive, threshold, ... }`。
129
+ 这是**有类型**的紧凑诊断,不是文本猜测。`eventId` 是这条提醒的稳定身份(16 位十六进制,
130
+ 每个任务的 monitor 有独立的随机命名空间),不含任何参数或错误正文。
131
+ - **重放直到确认**(TB-09/TB-10):提醒不是"取走即清空"。observe 的 HTTP 回答丢失后,
132
+ 客户端重试会得到**同一个** `eventId` 的同一条提醒;同轮后续失败也不会生成新的提醒身份。
133
+ 服务端已生成响应(甚至已写出)都不等于接收方已收到,只有接收方凭 `eventId` 的显式确认
134
+ 才停止重放:宿主在下次 `delegate_wait`(或直接 observe)携带 `ackFailureEventId`,答案的
135
+ `failureAck` 字段回报确认事实。`acknowledged: true` 才是已确认;`false` 时按 `reason`
136
+ 区分:`unknown-event`(错误/未知 id,不得盲重试,继续同任务等待并处理新事件)、
137
+ `superseded`(旧 episode 已被取代,无需再确认)、`no-pending`(任务已终结)、
138
+ `event-id-required`(确认字段为空)。确认成功后的等待即使随后报错或被取消,答案(或拒绝)
139
+ 中仍保留已确认事实,不会把不确定说成成功。
140
+ - 未确认提醒会随每次 observe 以同一身份重放,因此**旧客户端(不发确认)的明确行为**是:
141
+ 同一条提醒会重复出现,直到该 episode 结束或被确认——这是回包丢失可恢复的必要语义;
142
+ 新宿主按 `taskId` + `eventId` 去重,并在下次等待时确认。
128
143
  - 它只提醒,**不自动**取消任务、更换模型或改变超时。授权请求和终态**优先**于它。
129
144
  - 只保留散列与计数:操作的 sha256 前缀、失败码、次数、时间;不保留也不发送原始参数、思考、
130
145
  输出或密钥。终态后释放,只留一段有界证据。
@@ -258,6 +273,22 @@ token 用量和费用在这个进程里**不可见**,因此报告为 `not-inte
258
273
  - 执行完成 ≠ 被接受。插件永远不自行验收;`selfApproved` 恒为 `false`,
259
274
  `hostAcceptance` 由宿主自己记录。
260
275
  - 大改动只挑相关的文件各看一次,不要反复重读同一份证据。
276
+ - 派工期间只做等待:正常执行(`delegate_wait`)之外不读中间代码、不代为运行测试,
277
+ 也不用一次授权把实现接过来。Codex 负责规划、审批与终审,worker 负责实现。
278
+ 普通单个测试失败由 worker 自检修复,不自动触发指挥官诊断;只有确定阻塞、
279
+ `attention`、真正异常或用户要求时,才做一次**有界**诊断,先事实后决定,仍不接管写实现。
280
+
281
+ ### 审批核验的是操作本身
282
+
283
+ 审批只核验**完整、具体**的命令或脚本、它涉及的每一条路径,以及进程归属(会运行谁的
284
+ 程序、在哪个目录工作)。worker 给出的理由只是**待核实的声明**,不是证据也不是授权。
285
+
286
+ - 读源码不需要审批。简单的源码检索/字段查找用 PowerShell 内建
287
+ (`Select-String` / `Get-Content`);**不要**为了读一个文件去启动 `node` 或 Electron。
288
+ - 外部程序只有在**同一环境确有失败证据**时才值得单次申请,且只申请一条具体命令,
289
+ 并说明它解决哪个错误。
290
+ - 测试写到自己临时目录里的 fixture 提交**不等于**对源码仓库提交:不要因此拒绝,
291
+ 也不要把它当成改写历史。禁止的是在仓库里自行 commit / push / tag / 改历史。
261
292
 
262
293
  1.4.0 增加 `delegate_review({ taskId, decision, note })`。派工方实际审查后记录
263
294
  `accepted`(审查通过)或 `changes-requested`(需要修正),并填写简短事实或修改意见。
@@ -284,6 +315,45 @@ token 用量和费用在这个进程里**不可见**,因此报告为 `not-inte
284
315
  已授权的源工作区路径。这样跟进任务会续接同一条 DSH 对话、落在同一棵工作树里。
285
316
  不相关的任务不要复用 id,也不要为了"保持上下文"而续接。
286
317
 
318
+ **预检按任务链算,不按每次派工算。** 新任务照旧:`delegate_status` +
319
+ `delegate_preflight`(原始授权源路径)+ 脏树隔离决策。已经验证过的链条继续修正时,
320
+ 只要源路径未变、任务目标与边界未变、且没有身份/隔离异常,就**复用已核验的预检事实**,
321
+ 不再因为 worker 上一轮留下的候选改动而重做一次脏树决策——那些改动正是这个链条的预期状态。
322
+ 需要重新核实时:源路径变了、任务不相关、出现身份/隔离拒绝、或引擎报告不一致。
323
+
324
+ 复用预检**不改变**引擎的任何校验:每次提交仍然带**原始源 `workspacePath`** 与
325
+ **最新的 `continueFromTaskId`**,引擎每次都重新校验所有权、路径、原 checkout 与会话。
326
+ **绝不**用"改成新任务"绕过一次拒绝。
327
+
328
+ ### 团队模式(Agent Teams)由指挥官按任务决定
329
+
330
+ `delegate_submit` 的可选布尔 `agentTeams` 选择 DSH 的 Agent Teams 模式
331
+ (模型菜单里的"启用智能体团队协作")用于**本任务自己的** DSH 会话。它不是 Codex 自己的
332
+ 多智能体功能,也不是附加审查模型。用户在派工制度上决定一次"由 Codex 按复杂度决定",
333
+ 不需要每次派工都问用户。
334
+
335
+ - 简单单文件或强顺序依赖的活:**显式**传 `agentTeams: false`(schema 支持该字段时)。
336
+ **省略字段不等于关闭**——省略表示"没有做出新决定",运行会保留(续接时继承)会话原有的选择。
337
+ 仓库 AGENTS 禁止再委派的场景必须显式 `false`,并交代哪些操作改由 root 执行(那些仍需正常审批)。
338
+ - 只有确实能拆成**可并行**的独立模块、且收益覆盖协调成本时才打开,并在派工文本里写明理由。
339
+ - 续接不重复决策:插件继承链条的选择,省略即沿用父任务;要让这一次跟进关闭,必须显式 `false`;
340
+ 只有范围变化足以推翻时才显式给出新值。
341
+ - 执行用的 provider / model / effort 仍由用户的配置决定,`agentTeams` **从不覆盖**它们。
342
+ - 只通过这个 schema 字段表达。工具版本不支持时要**说明并请求加载新集成**,
343
+ 不得伪造成功,也不得改用别的字段、任务文本或其他通道。
344
+ - 团队成员按 DSH 原生策略运行(子成员的审批默认 `never`),只能在既有范围内工作;
345
+ 需要额外权限的**具体动作由 root 执行**,再走本通道原有的单次审批。
346
+ 不要宣称子成员审批已打通,不要放松 `owns`,不要改宿主策略。
347
+
348
+ ### 审查证据的读法
349
+
350
+ `ready` 之后对同一任务只调**一次** `delegate_result`,按顺序读:
351
+ ① 短摘要、改动文件清单、测试结果与日志路径、限制;② 只有审查缺口真正需要的文件,
352
+ 一次一个文件或一个限定范围。**不要**整份倾倒大文件或全仓 diff——被截断就得重读,等于没读到。
353
+ 把已核验的结论**连同证据路径**(文件+行号,或日志路径)记下来,后来的疑问用它回答。
354
+ 审查结论**必须**通过 `delegate_review` 写回并确认 `saved`/durable;
355
+ 只写一份报告不算审查记录。发现问题**集中一轮**成一份修正清单,续接原任务。
356
+
287
357
  ## 8. 已有用户如何升级
288
358
 
289
359
  1. 在 DSH 的插件设置页打开 **Codex 集成**;
@@ -348,5 +418,5 @@ token 用量和费用在这个进程里**不可见**,因此报告为 `not-inte
348
418
  - `answerReceipt` 和 `decisionReceipt` 的身份、`applied`、`confirmation` 在结果裁剪或后续等待失败时仍保留。大批答案可标明省略,不反复回传全文;收到已应用回执后不要重送。
349
419
  - 题目默认十分钟到期,最多三十分钟;DSH 原生调用若更早撤销,也立即失效。题目绑定同一 Agent、Session 和原工具调用,不会移交给新回合的同名调用。
350
420
  - 审批拒绝理由注入同一个执行 Agent。`rejectionFeedback.delivered` 表示注入是否成功,不等于模型已理解;原操作仍被拒绝,后续申请独立判断。问题回答始终不授予任何权限。
351
-
352
- 2026-11-15,本地 test.2 候选通过实际 DSH Desktop 重启续接,以及真实模型12轮串行100秒工具等待/只读校验,整轮约21分23秒。1次 MCP 等待、1次ready返回、0次中间结果读取;外层客户端20分钟时仍需续接同一个exec。账单实测见[1.5.0等待阶段对照](releases/1.5.0-token-benchmark.zh.md),不承诺跨客户端零唤醒或所有任务固定节省率。
421
+
422
+ 2026-11-15,本地 test.2 候选通过实际 DSH Desktop 重启续接,以及真实模型12轮串行100秒工具等待/只读校验,整轮约21分23秒。1次 MCP 等待、1次ready返回、0次中间结果读取;外层客户端20分钟时仍需续接同一个exec。账单实测见[1.5.0等待阶段对照](releases/1.5.0-token-benchmark.zh.md),不承诺跨客户端零唤醒或所有任务固定节省率。
@@ -6,7 +6,7 @@
6
6
 
7
7
  1. 等待当前任务结束,关闭旧插件的本机调用开关。
8
8
  2. 在 DSH 插件管理中停用并卸载本项目旧 `dsh-delegate` 或 `dsh-taskdispatch` 包。**保留 `<DSH_HOME>/data/dsh-delegate` 数据目录**;DSH 若提供删除数据选项,不要勾选。新旧包不能同时启用。
9
- 3. 在“添加插件”中输入 **`dsh-taskbridge@1.5.0`**。中国大陆镜像未同步时改选 npm 官方源。也可安装本项目 Release 的 `dsh-taskbridge-1.5.0.tgz`,或添加本项目固定 Git 提交的自定义索引。不要手动修改 Desktop 保留的 profile。
9
+ 3. 在“添加插件”中输入 **`dsh-taskbridge@1.5.2`**。中国大陆镜像未同步时改选 npm 官方源。也可安装本项目 Release 的 `dsh-taskbridge-1.5.2.tgz`,或添加本项目固定 Git 提交的自定义索引。不要手动修改 Desktop 保留的 profile。
10
10
  4. 打开 **DSH TaskBridge** 配置页,核对 API、模型、思考强度和总开关。数据目录与旧版相同;安装前关闭旧开关,避免恢复之前保存的开启状态。
11
11
  5. 在 Codex 集成中点击“安装 / 更新 TaskBridge 智能体”,更新智能体及 MCP,然后重新加载 Codex。未修改的旧 `dsh-delegate.toml` 会迁移为 `dsh-taskbridge.toml`;修改过的文件保留。只需修复 MCP 时可使用“仅修复 MCP 配置”。启动自检不会接管其他安装目录。
12
12
  6. 若添加过旧索引,改用 `https://ranranyya.github.io/dsh-taskbridge/index.json`。
@@ -1,4 +1,4 @@
1
- # Worker session permissions (1.5.0; historical 1.0.0–1.2.0 audits retained)
1
+ # Worker session permissions (1.5.2; historical 1.0.0–1.2.0 audits retained)
2
2
 
3
3
  This document describes the worker sandbox, per-call approval and ordinary-question boundaries. The standing worker sandbox remains `workspace-write`; a question answer never grants access. A single approved operation does not authorize another call.
4
4