dsh-taskbridge 1.5.4 → 1.7.0
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.
- package/CHANGELOG.md +80 -59
- package/README.md +51 -50
- package/THIRD_PARTY_NOTICES.txt +23 -0
- package/bin/dsh-delegate-mcp.d.ts +1 -0
- package/bin/dsh-delegate-mcp.js +1 -0
- package/codex/dsh-taskbridge.toml +148 -71
- package/docs/INTRODUCTION.md +44 -22
- package/docs/INTRODUCTION.zh.md +32 -26
- package/docs/codex-integration.md +99 -19
- package/docs/contracts-stage-b.md +4 -4
- package/docs/conversation-placement.md +25 -7
- package/docs/plugin-market.md +1 -1
- package/docs/releases/1.6.0.zh.md +11 -0
- package/docs/releases/1.7.0.zh.md +11 -0
- package/docs/runtime-compatibility.md +10 -11
- package/docs/silent-wait.md +69 -31
- package/docs/taskbridge-upgrade.md +1 -1
- package/docs/worker-permissions.md +11 -21
- package/docs/workspace-grouping.md +126 -0
- package/lib/client.d.ts +581 -0
- package/lib/client.js +332 -3461
- package/locale/en.json +1 -1
- package/locale/zh.json +1 -1
- package/package.json +7 -19
- package/src/client/api.js +895 -90
- package/src/client/index.jsx +1363 -296
- package/src/client/sidebar.jsx +862 -0
- package/src/client/styles.js +340 -0
- package/src/client/task-cleanup.js +304 -0
- package/src/client/task-records-table.jsx +217 -0
- package/src/client/task-view.js +307 -0
- package/src/client/workspace-groups.js +482 -0
- package/src/client/workspaces-browser.jsx +770 -0
- package/src/codex/agent-ownership.js +270 -0
- package/src/codex/installer.js +528 -35
- package/src/codex/seam.js +5 -0
- package/src/config/defaults.js +63 -17
- package/src/config/settings.js +60 -62
- package/src/config/validate.js +126 -71
- package/src/http/execution-plane.js +200 -1
- package/src/http/respond.js +26 -2
- package/src/http/user-plane.js +566 -2
- package/src/index.d.ts +55 -0
- package/src/index.js +58 -42
- package/src/jobs/activity.js +968 -78
- package/src/jobs/engine.js +1010 -230
- package/src/jobs/history.js +224 -12
- package/src/jobs/plan-store.js +1020 -0
- package/src/jobs/record-cleanup.js +196 -0
- package/src/jobs/task-display.js +73 -0
- package/src/jobs/task-tree.js +786 -0
- package/src/jobs/title.js +129 -12
- package/src/mcp/server.js +206 -10
- package/src/mcp/wait.js +64 -5
- package/src/runtime/agent-runner.js +101 -15
- package/src/runtime/worker-prompt.js +53 -0
- package/src/workspace/locks.js +288 -167
- package/docs/assets/taskbridge-workflow.en.png +0 -0
- package/docs/assets/taskbridge-workflow.zh.png +0 -0
- package/docs/releases/1.4.0-token-benchmark.zh.md +0 -40
- package/docs/releases/1.4.0.zh.md +0 -54
- package/docs/releases/1.4.1.zh.md +0 -59
- package/docs/releases/1.4.2.zh.md +0 -23
- package/docs/releases/1.5.0-token-benchmark.zh.md +0 -73
- package/docs/releases/1.5.0.zh.md +0 -51
- package/docs/releases/1.5.1.zh.md +0 -70
- package/docs/releases/1.5.2.zh.md +0 -30
- package/docs/releases/1.5.3-test.1.zh.md +0 -28
- package/docs/releases/1.5.3-test.2.zh.md +0 -24
- package/docs/releases/1.5.3.zh.md +0 -33
- package/docs/releases/1.5.4.zh.md +0 -25
- package/src/review/preset.js +0 -868
- package/src/review/prompts.js +0 -145
- package/src/review/reviewer.js +0 -933
package/docs/INTRODUCTION.zh.md
CHANGED
|
@@ -22,7 +22,7 @@ TaskBridge 是安装在 **DeepSeek Harness(DSH)** 中的任务委派插件
|
|
|
22
22
|
- **不用反复告诉指挥端选哪个 API**:在 DSH 插件里选好提供方、模型和思考强度,任务按有效配置执行。
|
|
23
23
|
- **不用靠模型频繁“查看进度”维持等待**:程序持续观察执行活动,只在需要判断的节点返回。
|
|
24
24
|
- **返工不用重新开一个毫无上下文的任务**:将问题集中成修正清单,续接原来的 DSH 会话和执行工作区。
|
|
25
|
-
-
|
|
25
|
+
- **执行与验收各有记录**:任务完成和指挥端审查结论分别展示,方便判断工作究竟进行到哪一步。
|
|
26
26
|
|
|
27
27
|
适合功能开发、缺陷修复、测试补充、代码整理和项目文档等任务。使用成本仍包括指挥端和执行端各自的模型调用;静默等待减少的是重复查询与搬运中间结果产生的开销。
|
|
28
28
|
|
|
@@ -37,10 +37,10 @@ TaskBridge 是安装在 **DeepSeek Harness(DSH)** 中的任务委派插件
|
|
|
37
37
|
| **静默等待** | 执行期间由程序等待,审批、提问、异常和交付时交回指挥端。 |
|
|
38
38
|
| **逐次权限判断** | 根据具体操作决定是否允许,处理后继续等待原任务。 |
|
|
39
39
|
| **任务工作区与会话续接** | 按工作内容命名工作区;独立任务新建会话,修正任务明确续接。 |
|
|
40
|
+
| **智能体协作的默认开关** | 决定新任务在派工方没有单次选择时是否使用 DSH 智能体团队,并可逐次指定;默认关闭。 |
|
|
40
41
|
| **集中审查** | 交付后统一查看改动、测试和证据,写回通过或需要修正的结论。 |
|
|
41
|
-
| **可选附加模型审查** | 单独选择审查模型与思考强度,增加一份只读复审意见。 |
|
|
42
42
|
| **设置自动保存** | 开关与选择及时保存,文本输入停顿后合并保存,页面显示保存结果。 |
|
|
43
|
-
| **预设与项目覆盖** |
|
|
43
|
+
| **预设与项目覆盖** | 保存常用执行设置,让不同项目使用各自的配置。 |
|
|
44
44
|
| **任务记录与详情** | 查看阶段、实际模型、最近活动、权限决定、变更与完整审查意见。 |
|
|
45
45
|
|
|
46
46
|
## 安装与接入
|
|
@@ -56,12 +56,12 @@ dsh-taskbridge
|
|
|
56
56
|
也可以指定本次版本:
|
|
57
57
|
|
|
58
58
|
```text
|
|
59
|
-
dsh-taskbridge@1.
|
|
59
|
+
dsh-taskbridge@1.7.0
|
|
60
60
|
```
|
|
61
61
|
|
|
62
62
|
安装后启用 **DSH TaskBridge**,进入该插件的设置页面。若使用的区域镜像尚未同步新版本,可切换到 npm 官方源;本项目 GitHub Release 也提供 `.tgz` 安装包。
|
|
63
63
|
|
|
64
|
-
TaskBridge
|
|
64
|
+
TaskBridge 通过 DSH 执行任务。连接 Codex 的本机 MCP 入口需要 Node.js 24 或更高版本。Codex 集成安装器会检查可用的运行时。
|
|
65
65
|
|
|
66
66
|
### 2. 选择 API、模型与思考强度
|
|
67
67
|
|
|
@@ -99,14 +99,14 @@ TaskBridge 可独立使用,**不需要先安装 dsh-crew**。DSH 负责提供
|
|
|
99
99
|
| **派工** | 提交清晰的目标、项目路径和任务标题。 | 按有效配置启动执行,建立任务记录与会话。 |
|
|
100
100
|
| **执行** | 进入等待。 | 修改文件、运行工具与测试;程序记录活动并持续等待。 |
|
|
101
101
|
| **申请或提问** | 判断具体权限申请,回答执行所需问题。 | 暂停相应操作,提供依据,接收决定后继续原任务。 |
|
|
102
|
-
| **交付** | 集中检查实际改动、测试结果和未解决问题。 |
|
|
102
|
+
| **交付** | 集中检查实际改动、测试结果和未解决问题。 | 提供结果与证据。 |
|
|
103
103
|
| **验收或修正** | 写回审查结论;有问题时整理一轮修正清单。 | 保存结论,或续接原会话与执行工作区。 |
|
|
104
104
|
|
|
105
105
|
“执行完成”表示执行者交回了结果;“审查通过”表示指挥端已经验收。两者在任务记录中分别呈现。
|
|
106
106
|
|
|
107
107
|
## 设置说明
|
|
108
108
|
|
|
109
|
-
插件设置包含
|
|
109
|
+
插件设置包含 **接口管理、执行设置、任务记录、Codex 集成** 四个页签;本机调用总开关位于页签上方。
|
|
110
110
|
|
|
111
111
|
### API、模型与执行参数
|
|
112
112
|
|
|
@@ -115,10 +115,11 @@ TaskBridge 可独立使用,**不需要先安装 dsh-crew**。DSH 负责提供
|
|
|
115
115
|
| **提供方** | 选择 DSH 已启用、且已加入插件的 API 连接。 |
|
|
116
116
|
| **执行模型** | 选择负责实现任务的模型。实际使用的提供方与模型会写入任务详情。 |
|
|
117
117
|
| **思考强度** | 使用所选模型声明支持的档位;可用选项随模型变化。 |
|
|
118
|
-
|
|
|
119
|
-
| **最大并发** | 限制同时执行的任务数,默认 1
|
|
118
|
+
| **执行时长** | **普通任务没有总时长上限**:跑得久不会自动中止,只有你主动取消才停止。旧版本存下的「超时」值仍会被读取,但不再限制新任务;派工方如明确给出单任务上限(`overrides.timeoutSeconds`)仍然生效。 |
|
|
119
|
+
| **最大并发** | 限制同时执行的任务数,默认 1;是否拆分多个任务由指挥端结合任务决定。每个独立工作包各占一个名额;同一来源的隔离任务可以并行(各自独立的会话与工作树),共享目录一次只跑一个;智能体协作的子智能体只在单个会话内部,不计入名额。 |
|
|
120
120
|
| **工作区隔离** | 选择独立 Git 工作树或共享项目目录,决定执行者在哪里修改文件。 |
|
|
121
|
-
|
|
|
121
|
+
| **新任务默认开启智能体协作** | 只决定新派工在没有单次选择时是否使用 DSH 原生智能体团队;默认关闭,单次选择优先,续接沿用原任务记录。 |
|
|
122
|
+
| **预设** | 保存常用的执行设置,便于切换。 |
|
|
122
123
|
| **项目覆盖** | 为匹配的项目设置专用组合,优先于全局配置。 |
|
|
123
124
|
|
|
124
125
|
**执行模型由你选择。** 指挥端的托管规则要求尊重插件配置,不自行替换 API、模型或思考强度。选中的组合不可用时会报告原因,不会悄悄换成另一个模型。
|
|
@@ -142,12 +143,6 @@ TaskBridge 可独立使用,**不需要先安装 dsh-crew**。DSH 负责提供
|
|
|
142
143
|
|
|
143
144
|
关闭开关会拒绝新任务,并请求停止正在运行的任务。本机使用无需手动签发连接或复制授权签名。
|
|
144
145
|
|
|
145
|
-
### 可选附加模型审查
|
|
146
|
-
|
|
147
|
-
在 **附加审查** 中开启“启用附加模型审查”,并单独选择审查所用的 API、模型与思考强度。
|
|
148
|
-
|
|
149
|
-
它会读取交付的改动与证据,提出检查意见,适合为重要修改增加一道复核。该审查是**只读**的,会增加一次审查模型的工作与相应费用;它不修改文件,也不代替指挥端最终验收。关闭后仍由指挥端完成审查。
|
|
150
|
-
|
|
151
146
|
## 静默等待:执行时程序等待,判断时模型介入
|
|
152
147
|
|
|
153
148
|
静默等待的目标是减少“执行者还在干活,指挥模型却反复读状态和中间代码”的重复工作。
|
|
@@ -161,9 +156,9 @@ TaskBridge 可独立使用,**不需要先安装 dsh-crew**。DSH 负责提供
|
|
|
161
156
|
| 同一操作连续重复失败达到阈值 | 发出需确认的提醒,避免相同错误不断重试;默认阈值为 3,可调整。 |
|
|
162
157
|
| 完成、失败、取消或中断 | 及时交回结果或异常,进入审查或处理。 |
|
|
163
158
|
|
|
164
|
-
|
|
159
|
+
10/40 分钟是**连续没有真实进展的阈值**,不是“每隔 10/40 分钟让 GPT 查看一次”,也不是按任务总运行时长计时:跑了几小时但一直在推进的任务不会被提醒。界面刷新、连接心跳、自检本身和查看状态都不会伪装成执行进度;没有文件改动也不直接等于卡住。
|
|
165
160
|
|
|
166
|
-
|
|
161
|
+
两个时长各自可以用 `0` 关闭,并且可以分别设置;它们与重复失败提醒互相独立。单次等待到达上限或被客户端提前结束时,应续等同一任务;不会因此自动取消、重复派工或切换模型。具体规则见 [静默等待说明](silent-wait.md)。
|
|
167
162
|
|
|
168
163
|
## 会话续接与任务组织
|
|
169
164
|
|
|
@@ -183,7 +178,17 @@ DSH 重启后,插件会核验原任务与工作区身份再尝试恢复续接
|
|
|
183
178
|
|
|
184
179
|
### 复杂任务可按需使用 DSH 团队
|
|
185
180
|
|
|
186
|
-
|
|
181
|
+
**默认由你决定,单次由派工方决定。** 执行设置里有「**新任务默认开启智能体协作**」,升级和首次安装都是**关闭**:
|
|
182
|
+
|
|
183
|
+
- 升级或首次安装**不会**打开它,插件不会替你开启协作。
|
|
184
|
+
- 它只决定**新派工在没有单次选择时**用哪种方式;派工方在单次派工里明确开或关时,以**单次选择为准**。
|
|
185
|
+
- **续接**已有任务且没有新的单次选择时,原任务记录过协作选择就**沿用那条记录**;如果原任务**没有**记录过(旧记录),插件**不套用这里的默认,也不写入任何协作值**,那条原生会话当前的选择保持不变。
|
|
186
|
+
- 它只影响**之后新提交**的任务;已经开始的任务保留各自的快照。
|
|
187
|
+
- 它**不是 DSH 的全局开关**:插件只写这条任务自己的会话,不会改 DSH 的全局「默认开启」,也不会影响你在 DSH 里手动调过的会话。
|
|
188
|
+
|
|
189
|
+
当前 DSH 版本没有对应的原生协作能力时,**明确的开和关都会在发送提示词之前被拒绝**,任务详情写明原因,不会悄悄退回会话原有模式继续跑。唯一的例外是「默认隐式关闭」:这种普通派工仍然执行,但会如实报告**未应用**(而不是「已关闭」),这样旧版本的派工保持可用。协作方式不改变你选定的执行 API、模型和思考强度;团队成员的额外权限申请目前仍需回到主执行者处理。有任何时候都**可以取消**运行中的任务。
|
|
190
|
+
|
|
191
|
+
一个外层任务始终只占**一个会话和一个并发名额**:开启协作不会多占名额,也不需要为此额外派工。
|
|
187
192
|
|
|
188
193
|
## 任务记录:看进度,也看验收结果
|
|
189
194
|
|
|
@@ -191,10 +196,11 @@ DSH 重启后,插件会核验原任务与工作区身份再尝试恢复续接
|
|
|
191
196
|
|
|
192
197
|
- **执行情况**:当前阶段、最近活动时间、当前工具与无活动诊断。
|
|
193
198
|
- **实际配置**:本次生效的提供方、模型、思考强度与隔离方式。
|
|
199
|
+
- **智能体协作**:这条任务当时的选择、来源(单次指定/续接沿用/按默认)以及 DSH 实际确认的结果或未能生效的原因。
|
|
194
200
|
- **任务关系**:执行工作区、会话以及是否续接已有任务。
|
|
195
201
|
- **操作依据**:权限申请、单次允许/拒绝决定和相关记录。
|
|
196
202
|
- **交付证据**:变更文件、差异、验证结果与执行结果。
|
|
197
|
-
-
|
|
203
|
+
- **审查结论**:指挥端验收状态和可展开的完整审查意见。
|
|
198
204
|
|
|
199
205
|
| 你看到的状态 | 含义 |
|
|
200
206
|
| --- | --- |
|
|
@@ -223,7 +229,7 @@ DSH 重启后,插件会核验原任务与工作区身份再尝试恢复续接
|
|
|
223
229
|
|
|
224
230
|
### 静默等待能保证 Codex 完全不消耗 token 吗?
|
|
225
231
|
|
|
226
|
-
|
|
232
|
+
不能。规划、审批、回答、异常处理和最终审查仍需要模型调用。TaskBridge 减少正常执行中的重复查询,实际节省取决于任务、客户端等待机制和上下文大小。历史测量及其适用范围见 [等待阶段用量对照](https://github.com/ranranyya/dsh-taskbridge/blob/master/docs/releases/1.5.0-token-benchmark.zh.md)。
|
|
227
233
|
|
|
228
234
|
### 为什么任务做完后还显示“等待宿主审查”?
|
|
229
235
|
|
|
@@ -237,7 +243,7 @@ Codex 可在 **Codex 集成** 中点击“安装 / 更新 TaskBridge 智能体
|
|
|
237
243
|
|
|
238
244
|
### TaskBridge 会替我安装所有依赖、接好所有客户端吗?
|
|
239
245
|
|
|
240
|
-
TaskBridge
|
|
246
|
+
在 DSH 中启用 TaskBridge,并在派工期间保持 DSH 运行。项目依赖按各项目的要求准备。首次接入 Codex 时,在插件的「Codex 集成」中点击「安装 / 更新 TaskBridge 智能体」。Claude Code 和 Claude Desktop 接入计划在 2.0 提供。
|
|
241
247
|
|
|
242
248
|
## 客户端支持与 2.0 计划
|
|
243
249
|
|
|
@@ -260,11 +266,11 @@ TaskBridge 自身无需 dsh-crew。执行任务使用的项目依赖仍按任务
|
|
|
260
266
|
| [会话放置与续接](conversation-placement.md) | DSH 工作区命名、会话创建和同任务续接。 |
|
|
261
267
|
| [插件发现与更新](plugin-market.md) | 自定义索引、npm 与 GitHub 安装来源。 |
|
|
262
268
|
| [旧名称迁移](taskbridge-upgrade.md) | 从 DSH Delegate / TaskDispatch 升级。 |
|
|
263
|
-
| [1.5.4 更新说明](releases/1.5.4.zh.md) | 任务记录保存、目标与完成说明、派工归属核查。 |
|
|
264
|
-
| [1.5.3 更新说明](releases/1.5.3.zh.md) | 验收展示、全文排版、混合换行修复与指挥规则更新。 |
|
|
265
|
-
| [1.5.2 更新说明](releases/1.5.2.zh.md) | 产品介绍更新及验证范围。 |
|
|
269
|
+
| [1.5.4 更新说明](https://github.com/ranranyya/dsh-taskbridge/blob/master/docs/releases/1.5.4.zh.md) | 任务记录保存、目标与完成说明、派工归属核查。 |
|
|
270
|
+
| [1.5.3 更新说明](https://github.com/ranranyya/dsh-taskbridge/blob/master/docs/releases/1.5.3.zh.md) | 验收展示、全文排版、混合换行修复与指挥规则更新。 |
|
|
271
|
+
| [1.5.2 更新说明](https://github.com/ranranyya/dsh-taskbridge/blob/master/docs/releases/1.5.2.zh.md) | 产品介绍更新及验证范围。 |
|
|
266
272
|
|
|
267
|
-
本插件不按 DSH 版本白名单筛选,所需接口按运行时实际能力检查;具体说明见 [运行时说明](runtime-compatibility.md)。CLI 独立执行通道及所有运行环境组合尚未完成,已知限制见 [1.5.1 说明](releases/1.5.1.zh.md)。
|
|
273
|
+
本插件不按 DSH 版本白名单筛选,所需接口按运行时实际能力检查;具体说明见 [运行时说明](runtime-compatibility.md)。CLI 独立执行通道及所有运行环境组合尚未完成,已知限制见 [1.5.1 说明](https://github.com/ranranyya/dsh-taskbridge/blob/master/docs/releases/1.5.1.zh.md)。
|
|
268
274
|
|
|
269
275
|
发现问题或希望改进使用体验,欢迎在 [GitHub Issues](https://github.com/ranranyya/dsh-taskbridge/issues) 提交反馈。请附上插件版本、出现问题的步骤和必要的脱敏错误信息,避免附带 API 密钥。
|
|
270
276
|
|
|
@@ -1,12 +1,20 @@
|
|
|
1
1
|
# Codex integration contract
|
|
2
2
|
|
|
3
|
-
Status: implemented in 1.
|
|
3
|
+
Status: implemented in 1.7.0 (planning nodes, multi-level parent-child hierarchy, persisted task descriptions, commander planning, placement checks, and managed template upgrades). 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.
|
|
6
|
-
|
|
7
|
-
1.
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
The 1.7.0 release also makes future managed upgrades self-recognising: the two exact
|
|
6
|
+
companions this machine really held (`1.6.1` in both terminator spellings and the local
|
|
7
|
+
`1.6.1-test.5` prerelease) are now enumerated, and an explicit install or the startup refresh
|
|
8
|
+
records the LF-normalized digest of the template it wrote, in one small file per real Codex
|
|
9
|
+
home. A LATER release therefore recognises the template the previous one wrote without
|
|
10
|
+
appending another digest by hand, while an edited file — one changed character, or only the
|
|
11
|
+
`version` line — still stays the operator's and is never rewritten. See section 5.
|
|
12
|
+
|
|
13
|
+
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](https://github.com/ranranyya/dsh-taskbridge/blob/master/docs/releases/1.5.1.zh.md).
|
|
14
|
+
|
|
15
|
+
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](https://github.com/ranranyya/dsh-taskbridge/blob/master/docs/releases/1.5.0.zh.md).
|
|
16
|
+
|
|
17
|
+
1.4.2 also recognizes the exact published 1.4.1 companion for managed upgrades.
|
|
10
18
|
The review behavior introduced in 1.4.1 recognizes the exact unmodified
|
|
11
19
|
1.4.0 companion in LF and CRLF forms, and updates the review contract: a completed
|
|
12
20
|
task may be read and reviewed by its original identity after a restart. History
|
|
@@ -17,7 +25,7 @@ omit review prose. A result that reports `noteOmitted: true` can be read with
|
|
|
17
25
|
`delegate_result` plus `reviewNoteOffset` and optional `reviewNoteLimit` (1–2000
|
|
18
26
|
Unicode code points per page, default 2000); follow `nextOffset` until `complete`.
|
|
19
27
|
Review notes accept up to 8000 code points after trimming and are stored redacted.
|
|
20
|
-
See the [release notes](releases/1.4.1.zh.md) for validation boundaries.
|
|
28
|
+
See the [release notes](https://github.com/ranranyya/dsh-taskbridge/blob/master/docs/releases/1.4.1.zh.md) for validation boundaries.
|
|
21
29
|
|
|
22
30
|
This document is the contract between the plugin's settings page (browser half),
|
|
23
31
|
the host-side installer (`src/codex/installer.js`) and the two files it manages.
|
|
@@ -48,12 +56,12 @@ not apply to custom wrappers, other directories, or automatic startup refresh.
|
|
|
48
56
|
|
|
49
57
|
---
|
|
50
58
|
|
|
51
|
-
## Explicit task descriptions (1.5.4)
|
|
52
|
-
|
|
53
|
-
`delegate_submit` and `POST /tasks` accept optional `goalDescription`; `delegate_review` and `POST /tasks/review` accept optional `completionSummary`. Both trim surrounding whitespace, preserve internal newlines, and allow at most 2000 Unicode code points before and after redaction. Missing or blank strings are absent; explicit null and other non-strings are refused. No value is inferred from prompts or earlier tasks.
|
|
54
|
-
|
|
55
|
-
The goal is fixed at task creation. The completion summary exists only under `hostAcceptance.completionSummary`, is part of the review identity with decision and note, and becomes public only after the same review write is durable. A saved review cannot gain or change a summary. Compact waits return only its character count and an omission flag; full results contain the prose. History retains titles and explicit continuation references without inventing missing old data.
|
|
56
|
-
|
|
59
|
+
## Explicit task descriptions (1.5.4)
|
|
60
|
+
|
|
61
|
+
`delegate_submit` and `POST /tasks` accept optional `goalDescription`; `delegate_review` and `POST /tasks/review` accept optional `completionSummary`. Both trim surrounding whitespace, preserve internal newlines, and allow at most 2000 Unicode code points before and after redaction. Missing or blank strings are absent; explicit null and other non-strings are refused. No value is inferred from prompts or earlier tasks.
|
|
62
|
+
|
|
63
|
+
The goal is fixed at task creation. The completion summary exists only under `hostAcceptance.completionSummary`, is part of the review identity with decision and note, and becomes public only after the same review write is durable. A saved review cannot gain or change a summary. Compact waits return only its character count and an omission flag; full results contain the prose. History retains titles and explicit continuation references without inventing missing old data.
|
|
64
|
+
|
|
57
65
|
## 1. What is owned, and what is not
|
|
58
66
|
|
|
59
67
|
| Path | Owner | The plugin may | The plugin may never |
|
|
@@ -210,7 +218,7 @@ the agent file is an independent target and is still installed.
|
|
|
210
218
|
| `not-configured` | no `mcp_servers.dsh-delegate` at all | writes the block |
|
|
211
219
|
| `configured` | the marker is present **and** the values are exactly the owned shape | no change |
|
|
212
220
|
| `outdated` | marked owned command, but stale `args`/discovery/`tool_timeout_sec`; or the narrowly recognised 0.1.6 Desktop command with the current package `args` and owned env shape | rewrites only those values in place |
|
|
213
|
-
| `conflict` | anything else (`unmanaged-entry`, `command-not-ours`, `legacy-command-shape`, `url`, `unknown-field`, `extra-env`, `args-not-an-array`, `command-not-a-string`, `not-a-table`, `array-table`, and the boundary reasons below) | **refuses** with `MCP_ENTRY_CONFLICT` and a note explaining why |
|
|
221
|
+
| `conflict` | anything else (`unmanaged-entry`, `unmanaged-entry-exact`, `command-not-ours`, `legacy-command-shape`, `url`, `unknown-field`, `extra-env`, `args-not-an-array`, `command-not-a-string`, `not-a-table`, `array-table`, and the boundary reasons below) | **refuses** with `MCP_ENTRY_CONFLICT` and a note explaining why; `repair` adds the marker for `unmanaged-entry-exact` only |
|
|
214
222
|
|
|
215
223
|
Every classification also reports **`drift`**: the list of owned facts that are stale
|
|
216
224
|
(`tool_timeout_sec`, `args`, `command`, `env`), or `null` when nothing is. The status
|
|
@@ -240,6 +248,28 @@ Two rules are deliberate:
|
|
|
240
248
|
the comment line directly above the definition (or above the `[mcp_servers]`
|
|
241
249
|
header when the definition is the inline `dsh-delegate = { … }` spelling); a
|
|
242
250
|
marker elsewhere in the file does not count.
|
|
251
|
+
* **`unmanaged-entry-exact`.** The same unmarked definition, but it already IS this
|
|
252
|
+
build's entry in every owned fact: `command` is the resolved Node executable, `args` is
|
|
253
|
+
exactly this installation's entry script, `tool_timeout_sec` is the owned integer, and
|
|
254
|
+
the `env` map is exactly the owned one (no additional key, none missing) — and the
|
|
255
|
+
definition is ONE unambiguous standard `[mcp_servers.dsh-delegate]` table with unique
|
|
256
|
+
keys. This is the configuration the settings page shows, entered by hand without the marker
|
|
257
|
+
comment. It stays a `conflict` for `status`, plugin startup and `remove`, but the reason
|
|
258
|
+
names it so that “仅修复 MCP 配置” (`repair`) may make ONE edit: insert the marker line
|
|
259
|
+
directly above the server's OWN header and change no other byte.
|
|
260
|
+
The write re-reads `config.toml`, requires the plan's digest, the boundary verdict, the
|
|
261
|
+
whole owned shape and this installation's exact script to still hold, and splices the
|
|
262
|
+
marker into the original text at the header line's character offset — so a BOM, mixed
|
|
263
|
+
CRLF/LF endings, an indented header, an operator comment above it and a missing final
|
|
264
|
+
newline all survive, and deleting the new line restores the file byte for byte. It then
|
|
265
|
+
verifies the marker is adjacent to the server's own header (never to a shared
|
|
266
|
+
`[mcp_servers]` parent, which would claim sibling entries), that the result classifies as
|
|
267
|
+
`configured`, and that the change is exactly that one line.
|
|
268
|
+
Refused, with the plain `unmanaged-entry` reason and a byte-identical file: any owned value
|
|
269
|
+
that differs; a duplicated key (the parser keeps every entry, so a merge would let the last
|
|
270
|
+
value win); an inline table beside or instead of the header; an extra or empty sub-table
|
|
271
|
+
such as `[mcp_servers.dsh-delegate.custom]`; a nested inline table value; an array table.
|
|
272
|
+
`install` never adds the marker.
|
|
243
273
|
* **`command-not-ours`.** A different command is a different program, so even
|
|
244
274
|
identical arguments do not make the entry ours. `extra-env` is symmetrical — an
|
|
245
275
|
`env` key the plugin did not write is the operator's data, and an entry carrying
|
|
@@ -465,7 +495,7 @@ Reachable only through the authenticated user plane (section 4) or the CLI
|
|
|
465
495
|
| --- | --- | --- |
|
|
466
496
|
| `status` | nothing | anything |
|
|
467
497
|
| `install` | agent file (absent / older managed build) + MCP entry (absent / `outdated`) | a user's agent file, a conflicting MCP entry, the DSH switch |
|
|
468
|
-
| `repair` | the MCP entry only (absent / `outdated`), exactly as `install` would | the agent file: it is **not created, not refreshed and not deleted**, nor is `agents/` created |
|
|
498
|
+
| `repair` | the MCP entry only (absent / `outdated`), exactly as `install` would; plus the marker line for an `unmanaged-entry-exact` definition | the agent file: it is **not created, not refreshed and not deleted**, nor is `agents/` created; no owned value of an unmarked entry is ever rewritten |
|
|
469
499
|
| `remove` | deletes only owned targets | a user's agent file, a conflicting entry |
|
|
470
500
|
|
|
471
501
|
`install` is idempotent: a second run with nothing changed reports
|
|
@@ -532,7 +562,7 @@ successful diagnosis.
|
|
|
532
562
|
```jsonc
|
|
533
563
|
{
|
|
534
564
|
"codexHome": "…",
|
|
535
|
-
"packageVersion": "1.
|
|
565
|
+
"packageVersion": "1.7.0",
|
|
536
566
|
"boundary": { "blocked": false, "link": null, "unknown": false, "home": "directory", "agents": "directory" },
|
|
537
567
|
"agent": {
|
|
538
568
|
"path": "…", "state": "installed", "installed": true, "managed": true,
|
|
@@ -635,7 +665,8 @@ session's MCP tools, and a second definition would start a second server.
|
|
|
635
665
|
digests (published builds only: `0.1.6`, both `0.1.7` builds, `0.1.8`, `0.1.9`,
|
|
636
666
|
`0.1.10` in both its CRLF and LF byte forms, `0.1.11`, `0.1.12`, `0.1.13`, `0.1.14`,
|
|
637
667
|
`1.0.0` and `1.1.0` in both byte forms, plus any later build listed when it is packed
|
|
638
|
-
and verified)
|
|
668
|
+
and verified) **or** byte-identical to a template this plugin recorded writing into THIS
|
|
669
|
+
Codex home (section 5.0);
|
|
639
670
|
* `modified`/`conflict` — everything else.
|
|
640
671
|
|
|
641
672
|
Every release from `0.1.10` through `0.1.13` changes only the version line in the
|
|
@@ -707,6 +738,22 @@ A digest is added only for a build that was actually packed and verified, and th
|
|
|
707
738
|
current template's digest is never in the list under an older label; the tests assert
|
|
708
739
|
both facts (`tests/codex-integration.test.js`, `tests/package.test.js`).
|
|
709
740
|
|
|
741
|
+
The 1.7.0 package recognizes these two earlier companion versions, each in both
|
|
742
|
+
terminator spellings, and all four are exact identities like every entry above:
|
|
743
|
+
|
|
744
|
+
| Release | Digest enumerated in `KNOWN_AGENT_TEMPLATES` |
|
|
745
|
+
| --- | --- |
|
|
746
|
+
| `1.6.1` | `efdef5f6e6ebcb26590ca929e674391b3c4fcdb3c017714d2322615783fdf712` (all LF) |
|
|
747
|
+
| `1.6.1` | `5da9fd5eb5a89fd3c76365faca78b51e34233d993605f1b55dff4b07ceb88b80` (same template, CRLF) |
|
|
748
|
+
| `1.6.1-test.5` | `bf698c861e7e560c555f8350b711db88627dce4a8752b2cbebe8748b6d640d37` (the packed agent, LF) |
|
|
749
|
+
| `1.6.1-test.5` | `a45e12d0b234e80854e69429518a2def2d00338f968c2ecfc689307b792e4426` (same file, CRLF) |
|
|
750
|
+
|
|
751
|
+
Both carry the SAME instruction body — the one `codex/dsh-taskbridge.toml` still holds —
|
|
752
|
+
and differ only in the stamped `version` line, which is exactly why each needs its own
|
|
753
|
+
exact identity: without them an untouched `1.6.1` or `1.6.1-test.5` installation hashes to
|
|
754
|
+
"unknown content" and is reported `modified`, i.e. "somebody else's file", which is the
|
|
755
|
+
false conflict this package removes.
|
|
756
|
+
|
|
710
757
|
At plugin startup, an `outdated` agent is refreshed automatically only when its
|
|
711
758
|
bytes still match a known shipped build. This does not create a missing agent or
|
|
712
759
|
edit `config.toml`. A file with any other content is preserved, even when its
|
|
@@ -723,6 +770,37 @@ and one edited body byte is the operator's: the digest no longer matches, so it
|
|
|
723
770
|
`modified`, it is never refreshed, and it is never removed. Conversely a
|
|
724
771
|
byte-exact published build is refreshed and removable, as documented.
|
|
725
772
|
|
|
773
|
+
### 5.0 The recorded template digest (future releases)
|
|
774
|
+
|
|
775
|
+
Enumerating every future release by hand does not scale, so one small record exists beside the
|
|
776
|
+
table: after an **explicit `install`** or the startup **`refreshKnownAgentTemplate`** has written
|
|
777
|
+
the agent file, and only when the file it re-reads is exactly the template this build renders,
|
|
778
|
+
the plugin stores the digest of those bytes.
|
|
779
|
+
|
|
780
|
+
* Path: `<DSH_HOME>/data/dsh-delegate/codex-agent-ownership/<sha256 of the real home>.json` — one
|
|
781
|
+
file per pinned Codex home, named by a digest of that home so no case equivalence is ever
|
|
782
|
+
inferred and two homes can never collide.
|
|
783
|
+
* Content: `{ "schemaVersion": 1, "codexHome": "<real home>", "templateLfSha256": "<64 hex>" }`.
|
|
784
|
+
The digest is **LF-normalized** (the CRLF/LF spelling is not content, exactly as the table
|
|
785
|
+
treats it), and it is the only digest. No template body, no `config.toml`, no model
|
|
786
|
+
setting, no version, no timestamp, no credential.
|
|
787
|
+
* A file whose digest equals that value is `outdated`. One changed character — an added line, a
|
|
788
|
+
tab, or a rewritten `version` line — hashes differently and stays `modified`.
|
|
789
|
+
* The record is read only: `status`, `repair` and `remove` never write it. A record reached
|
|
790
|
+
through a link or reparse point, missing, unreadable, malformed, over 4 KB, or naming a
|
|
791
|
+
different home is **no record** — the file is then classified by its content alone. A read
|
|
792
|
+
never creates the record directory; a write proves each level first and is atomic, owner-only,
|
|
793
|
+
and read back. An unchanged record is not rewritten. A `DSH_HOME` override must be absolute;
|
|
794
|
+
without one the `~/.dsh` default applies.
|
|
795
|
+
* A failure to record costs the next release one enumeration. It never fails an install and
|
|
796
|
+
never changes how a file is classified.
|
|
797
|
+
|
|
798
|
+
The version line is *never* the proof. A file that still starts with the managed
|
|
799
|
+
header, still contains the dispatch rules, but has an old or invented version line
|
|
800
|
+
and one edited body byte is the operator's: the digest no longer matches, so it is
|
|
801
|
+
`modified`, it is never refreshed, and it is never removed. Conversely a
|
|
802
|
+
byte-exact published build is refreshed and removable, as documented.
|
|
803
|
+
|
|
726
804
|
### 5.1 Required dispatch semantics
|
|
727
805
|
|
|
728
806
|
The instructions must state all of the following. They are asserted in
|
|
@@ -743,8 +821,8 @@ one fails the build:
|
|
|
743
821
|
5. **Switch first, facts second.** Call `delegate_status` first; then call
|
|
744
822
|
`delegate_preflight` with the exact authorized workspace path. If either fails,
|
|
745
823
|
the tool is missing, the switch is off, or the answer is ambiguous, stop and
|
|
746
|
-
report the bounded refusal.
|
|
747
|
-
|
|
824
|
+
report the bounded refusal. Leave the switch as set and use only the authorized
|
|
825
|
+
TaskBridge execution path.
|
|
748
826
|
6. **The isolation is decided from the measured facts, and never downgraded.**
|
|
749
827
|
`delegate_preflight` returns `isolation` (`worktree` / `shared` / `block`) and a
|
|
750
828
|
stable `reason` code:
|
|
@@ -961,6 +1039,8 @@ session (or a restart) is required to load the new file and the new MCP entry.
|
|
|
961
1039
|
| `config.toml` contains a NUL / control character | `CODEX_CONFIG_UNSUPPORTED`, untouched |
|
|
962
1040
|
| `config.toml` uses CRLF | edited in place; CRLF and every unrelated byte preserved |
|
|
963
1041
|
| an unmarked same-name `mcp_servers.dsh-delegate` entry | `conflict` (`unmanaged-entry`); byte-identical after install/repair/remove |
|
|
1042
|
+
| an unmarked entry that is EXACTLY the owned entry (same command, single script argument, timeout and env) in one unambiguous standard table | `conflict` (`unmanaged-entry-exact`); byte-identical after install/remove, and `repair` adds the one marker line |
|
|
1043
|
+
| an unmarked entry with a duplicated key, an inline table beside the header, or an extra/empty sub-table | `conflict` (`unmanaged-entry`); byte-identical after install/repair/remove |
|
|
964
1044
|
| entry added between the read and the write | re-classified; refused if it stopped being ours |
|
|
965
1045
|
| package `bin/dsh-delegate-mcp.js` missing | MCP refused (`MCP_SCRIPT_MISSING`), agent still installed |
|
|
966
1046
|
| plain Node.js host (`process.execPath` is a Node binary) | `command` is that path; no override is consulted |
|
|
@@ -414,10 +414,10 @@ route that does not exist.
|
|
|
414
414
|
2. **执行设置** — `settings.worker` inside the same document, bounded by
|
|
415
415
|
`catalog[].models[].efforts` for effort and by the validator for
|
|
416
416
|
timeout/parallelism/isolation. `catalog.effective` previews the composed result.
|
|
417
|
-
3.
|
|
418
|
-
|
|
419
|
-
4.
|
|
420
|
-
|
|
417
|
+
3. **任务记录** — `GET /api/dsh-delegate/tasks`, `POST …/tasks/get`,
|
|
418
|
+
`POST …/tasks/cancel`. The host records its conclusion with `delegate_review`.
|
|
419
|
+
4. **Codex 集成** — use the [Codex integration controls](codex-integration.md) to
|
|
420
|
+
set up the host connection.
|
|
421
421
|
|
|
422
422
|
Authorization controls sit **above** those four areas and use only
|
|
423
423
|
`/connections*`, `/grants*`, `/authorization/revoke-all` and `/status`. A UI that
|
|
@@ -137,6 +137,30 @@ rule applied synchronously to a live record, and placement calls it as a re-chec
|
|
|
137
137
|
of a chain admission already proved — including the exact execution directory, so
|
|
138
138
|
placement never resumes a thread whose Workspace id merely looks familiar.
|
|
139
139
|
|
|
140
|
+
## TaskBridge in the DSH Workspace Tree
|
|
141
|
+
|
|
142
|
+
The DSH workspace region stays visible alongside the TaskBridge task records entry. The
|
|
143
|
+
ordinary workspaces, native menus (remove workspace, archive/unarchive
|
|
144
|
+
session), and per-workspace actions are provided by DSH.
|
|
145
|
+
|
|
146
|
+
Instead, the plugin registers the managed worktrees directory
|
|
147
|
+
(`<data>/dsh-delegate/worktrees`) as a Workspace named TaskBridge. Registration happens
|
|
148
|
+
at every activation, and a fresh install creates that directory inside the plugin's own
|
|
149
|
+
data directory, so the group exists before the first isolated run. Choose **Workspace
|
|
150
|
+
Tree** (按工作区树) in DSH's own **视图选项** (View Options → grouping): DSH nests every
|
|
151
|
+
registered Workspace whose directory is below that root, which is where each isolated
|
|
152
|
+
task's checkout and Workspace already live.
|
|
153
|
+
|
|
154
|
+
New worktree runs get their own checkout and workspace. Explicit continuations keep
|
|
155
|
+
using the original checkout and session.
|
|
156
|
+
|
|
157
|
+
A shared run stays in the authorized source directory. Older workspaces outside
|
|
158
|
+
the root stay at their recorded folders and their runs are listed in TaskBridge's
|
|
159
|
+
task records. The grouping does not move files or change the directory associated
|
|
160
|
+
with a workspace or session. An existing root Workspace keeps the name selected in
|
|
161
|
+
DSH, and a host without the Workspace controller keeps the plugin loadable — only the
|
|
162
|
+
grouping is unavailable.
|
|
163
|
+
|
|
140
164
|
## The admission gate, in order
|
|
141
165
|
|
|
142
166
|
A `continueFromTaskId` submission is decided by one pass in `admit()`, before
|
|
@@ -332,10 +356,4 @@ label or fuzzy matching anywhere in this path.
|
|
|
332
356
|
|
|
333
357
|
A resolved Agent belongs to its Session, so the runner never disposes one:
|
|
334
358
|
disposal would end the conversation and make a later `continueFromTaskId`
|
|
335
|
-
follow-up unable to resolve it.
|
|
336
|
-
the additional review) creates an Agent through `agents.create`, and only that
|
|
337
|
-
Agent is disposed.
|
|
338
|
-
|
|
339
|
-
The review sets `allowUnplaced: true` deliberately: it must not join the
|
|
340
|
-
operator's Workspace history, it is not part of the worker thread, and it is not
|
|
341
|
-
resumable by a later continuation.
|
|
359
|
+
follow-up unable to resolve it. The runner disposes only Agents it creates itself.
|
package/docs/plugin-market.md
CHANGED
|
@@ -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.
|
|
18
|
+
当前索引采用固定 Git 提交作为安装来源,不依赖本机 npm 登录。另一种安装方式是直接在“添加插件”中输入 `dsh-taskbridge@1.7.0`,无需添加索引;若中国大陆镜像未同步,改选 npm 官方源。GitHub Release 同时提供 `.tgz` 和 SHA256 文件。
|
|
19
19
|
|
|
20
20
|
## 新版本
|
|
21
21
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# TaskBridge 1.6.0
|
|
2
|
+
|
|
3
|
+
在插件的「任务记录」页可以围绕总目标创建多层规划。每个子任务保留自己的执行身份,同一任务的首次执行与后续整改按轮次显示。执行完成后先进入待审查,结论保存后才计为验收通过。总目标仍有子任务或分支需要处理时,会继续显示相应状态。
|
|
4
|
+
|
|
5
|
+
任务按已核实的源项目分组。可以按项目、任务标题和编号搜索,再用状态缩小范围。点击对应轮次的「详情」可原位读到审查意见和执行信息。选中「已归档」可找回归档的任务,并恢复到主列表。后续整改会重新显示这一任务。历史记录仍按既有保留规则管理。
|
|
6
|
+
|
|
7
|
+
DSH 左侧的「TaskBridge 任务」打开项目导航。在当前 DSH 中仍可定位的会话可以从这里打开。找不到原生会话或会话已被 DSH 归档时,页面会说明原因。多层规划在「任务记录」页查看,DSH 的工作区和会话继续在宿主页面管理。
|
|
8
|
+
|
|
9
|
+
修复续接中明确指定 `max` 却被自动降档的问题。指定具体档位时,当轮首条及后续模型请求保持该档位。TaskBridge 设为「不指定」且 DSH 设为 `auto` 时,继续按工具记录自动调档。
|
|
10
|
+
|
|
11
|
+
从 1.5.4 更新时沿用已有历史与用户设置。当前支持通过 Codex 接入,其他客户端的计划见 [兼容说明](../runtime-compatibility.md)。
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
# TaskBridge 1.7.0
|
|
2
|
+
|
|
3
|
+
- 「任务记录」会自动显示新任务,保留工作标题。可按日期筛选,按执行链清理记录,也可打开任务原来的 DSH 会话。清理记录会保留源码和 DSH 会话。入口在**插件设置页的「任务记录」标签**;左侧侧栏不再有独立的「TaskBridge 任务」行。
|
|
4
|
+
- 左侧保留 DSH 原生工作区列表(原名、顺序、搜索、会话与菜单都不变)。「工作区 → 视图选项 → 按工作区树」显示可折叠的 TaskBridge 根工作区,展开后是隔离任务工作区和对话,旁边仍可访问原有工作区。工作区菜单可移除该工作区并保留文件及会话,对话菜单可归档和取消归档。共享任务沿用原项目中的原生工作区;经 TaskBridge 派出的会话在它自己的原生行里带一个很小的标记(「派工」/「派工 · 隔离」)。
|
|
5
|
+
- 同一项目可同时派发多个独立的隔离任务。每个工作包有自己的 DSH 会话和执行目录,各占一个并发名额。同一个共享目录一次只允许一个执行任务。
|
|
6
|
+
- 任务实际运行满 10 分钟时,插件在本机自检一次。Codex 连续 40 分钟未收到新成果时,插件会提醒 Codex 检查。两项可分别调整或关闭,提醒不会中止任务。
|
|
7
|
+
- 智能体协作默认关闭,可由用户设置,也可随单次派工选择。续接默认保留原会话的选择。任务的规划与交付验收由 Codex 负责。
|
|
8
|
+
- Codex 集成可识别和升级插件托管的旧智能体文件,保留用户的自定义设置。「安装 / 更新 TaskBridge 智能体」可重新配置集成,「仅修复 MCP 配置」只处理连接。
|
|
9
|
+
|
|
10
|
+
在 DSH 的「添加插件」中安装 `dsh-taskbridge-1.7.0.tgz`。已有 TaskBridge 的用户可用本地包升级。
|
|
11
|
+
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# Runtime compatibility
|
|
2
2
|
|
|
3
|
-
Build 1.
|
|
3
|
+
Build 1.7.0 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.
|
|
7
7
|
|
|
8
8
|
The historical runtime audits below describe the interfaces already implemented;
|
|
9
9
|
they are not an exclusive admission list or a claim of end-to-end testing on every
|
|
10
|
-
DSH build. See the [1.4.2 release notes](releases/1.4.2.zh.md) for this change,
|
|
11
|
-
the [1.4.1 release notes](releases/1.4.1.zh.md) for review fixes, and the
|
|
10
|
+
DSH build. See the [1.4.2 release notes](https://github.com/ranranyya/dsh-taskbridge/blob/master/docs/releases/1.4.2.zh.md) for this change,
|
|
11
|
+
the [1.4.1 release notes](https://github.com/ranranyya/dsh-taskbridge/blob/master/docs/releases/1.4.1.zh.md) for review fixes, and the
|
|
12
12
|
[1.3.1 release report](releases/1.3.1.zh.md) for historical distribution verification.
|
|
13
13
|
|
|
14
14
|
`1.1.0` added silent waiting: the global `monitoring` thresholds (self-check and attention
|
|
@@ -32,7 +32,7 @@ not been installed into it. The 1.4.0 checks use isolated package installations
|
|
|
32
32
|
temporary Codex homes; they do not establish that the operator's production Desktop
|
|
33
33
|
profile has been upgraded. The waiting-channel token comparison is measured separately
|
|
34
34
|
and does not represent whole-task or billing savings. See the 1.4.0 Release notes and
|
|
35
|
-
the [measurement report](releases/1.4.0-token-benchmark.zh.md) for their exact boundaries.
|
|
35
|
+
the [measurement report](https://github.com/ranranyya/dsh-taskbridge/blob/master/docs/releases/1.4.0-token-benchmark.zh.md) for their exact boundaries.
|
|
36
36
|
An older production profile must
|
|
37
37
|
be upgraded to this build, and the
|
|
38
38
|
Codex companion refreshed from the settings page (or by the startup check, which now also
|
|
@@ -88,6 +88,12 @@ Two consequences the plugin has to respect:
|
|
|
88
88
|
default", which is a distinct value from any concrete effort, so a selection that
|
|
89
89
|
omits it must not be reported as a concrete effort.
|
|
90
90
|
|
|
91
|
+
When a delegated worker specifies a concrete effort, TaskBridge keeps it after
|
|
92
|
+
step scheduling. DSH 0.2.2 binds the effort from the step selection before it
|
|
93
|
+
validates `agent/request`. Older hosts can apply the effort through that request
|
|
94
|
+
hook. The listeners are scoped to the worker and removed when the task ends.
|
|
95
|
+
Leaving the TaskBridge effort unset allows the installed DSH scheduler to choose.
|
|
96
|
+
|
|
91
97
|
### 2.2 Asynchronous native policy initialization
|
|
92
98
|
|
|
93
99
|
The two services this plugin's worker contract depends on are initialized
|
|
@@ -126,13 +132,6 @@ Rules that hold in **both** paths:
|
|
|
126
132
|
prompt**, not a run under an unstated route. The plugin never reports a route it did
|
|
127
133
|
not read back as "verified", and never claims a concrete reasoning effort for a
|
|
128
134
|
selection that omitted one.
|
|
129
|
-
- The **modern model-selection adapter applies to the optional reviewer as well**: the
|
|
130
|
-
review agent picks its own provider, model and effort through the same durable
|
|
131
|
-
selection surface. What is worker-only is the **sandbox policy and the per-call
|
|
132
|
-
permission bridge** — the reviewer is read-only, gets no bridge, and the worker's
|
|
133
|
-
`workspace-write` / `never`/`ask` contract is not applied to it.
|
|
134
|
-
"The policy and the bridge do not apply to review" is a statement about permissions,
|
|
135
|
-
not about model selection.
|
|
136
135
|
- The approval stance is `ask` **only** for a run whose armed bridge is bound to the
|
|
137
136
|
Agent it drives; every other run keeps `never`. Both stances are read back through
|
|
138
137
|
`ctx.approval.effectivePolicy(session)` on both runtime generations, so an `ask`
|