dsh-taskbridge 1.6.0 → 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 +10 -1
- package/README.md +41 -41
- package/THIRD_PARTY_NOTICES.txt +23 -0
- package/codex/dsh-taskbridge.toml +140 -71
- package/docs/INTRODUCTION.md +44 -22
- package/docs/INTRODUCTION.zh.md +32 -26
- package/docs/codex-integration.md +90 -10
- 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.7.0.zh.md +11 -0
- package/docs/runtime-compatibility.md +4 -11
- package/docs/silent-wait.md +69 -31
- package/docs/taskbridge-upgrade.md +1 -1
- package/docs/worker-permissions.md +4 -14
- package/docs/workspace-grouping.md +126 -0
- package/lib/client.d.ts +365 -3
- package/lib/client.js +260 -5
- package/locale/en.json +1 -1
- package/locale/zh.json +1 -1
- package/package.json +7 -19
- package/src/client/api.js +550 -90
- package/src/client/index.jsx +699 -307
- package/src/client/sidebar.jsx +6 -5
- package/src/client/styles.js +251 -0
- package/src/client/task-cleanup.js +304 -0
- package/src/client/task-records-table.jsx +217 -0
- package/src/client/task-view.js +226 -10
- 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 +525 -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/respond.js +8 -0
- package/src/http/user-plane.js +197 -2
- package/src/index.js +50 -42
- package/src/jobs/activity.js +968 -78
- package/src/jobs/engine.js +784 -230
- package/src/jobs/history.js +188 -12
- package/src/jobs/plan-store.js +5 -0
- package/src/jobs/record-cleanup.js +196 -0
- package/src/jobs/task-tree.js +5 -3
- package/src/jobs/title.js +129 -12
- package/src/mcp/server.js +16 -8
- package/src/mcp/wait.js +64 -5
- package/src/runtime/agent-runner.js +53 -15
- package/src/runtime/worker-prompt.js +53 -0
- package/src/workspace/locks.js +288 -167
- 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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# dsh-taskbridge Codex companion — managed by the DSH TaskBridge plugin settings page.
|
|
2
2
|
# Editing this file turns it into an operator-owned file: the plugin then never
|
|
3
3
|
# overwrites or removes it, and reports it as "modified" instead.
|
|
4
|
-
version = "1.
|
|
4
|
+
version = "1.7.0"
|
|
5
5
|
|
|
6
6
|
name = "dsh-taskbridge"
|
|
7
7
|
description = "Dispatch an explicitly assigned implementation task to DSH through the dsh-taskbridge MCP tools, then return evidence for Codex review."
|
|
@@ -49,7 +49,9 @@ P0: COMMANDER-OWNED PLANNING AND WORK PACKETS (for authorized implementation tas
|
|
|
49
49
|
into one conversation merely to keep context or avoid another preflight.
|
|
50
50
|
5. Parallel packets require independent work, explicit non-conflicting ownership,
|
|
51
51
|
and permission under the operator's request and the repository's AGENTS.md. Do
|
|
52
|
-
not enable Agent Teams
|
|
52
|
+
not enable Agent Teams on your own initiative: the user controls the TaskBridge
|
|
53
|
+
default ("新任务默认开启智能体协作") and may state a choice for one dispatch; rule 4a
|
|
54
|
+
governs it. The operator still selects provider, model
|
|
53
55
|
and reasoning effort; smaller packets never authorize a different execution route.
|
|
54
56
|
6. A blocker or a design question outside the packet goes back to the commander.
|
|
55
57
|
The worker must not expand its scope, execute the remaining roadmap, or become
|
|
@@ -74,12 +76,12 @@ DISPATCH (only for an explicitly assigned implementation task)
|
|
|
74
76
|
`delegate_preflight` with the exact authorized workspace path as
|
|
75
77
|
`workspacePath`. `delegate_status` reports whether delegation is enabled at all;
|
|
76
78
|
`delegate_preflight` reports what the workspace actually looks like and which
|
|
77
|
-
isolation it implies.
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
the
|
|
79
|
+
isolation it implies. For a temporary connection failure, apply rule 6c to the
|
|
80
|
+
failing check. If the switch is off, a required capability is missing, or a refusal
|
|
81
|
+
is confirmed, report the reason and checkpoint to Codex, then pause until that
|
|
82
|
+
prerequisite changes. If the answer is ambiguous, establish the facts with a
|
|
83
|
+
read-only check before submitting. Report the exact bounded evidence to Codex.
|
|
84
|
+
Never open the switch yourself or fall back to DSH Crew or another execution route.
|
|
83
85
|
2. APPLY THE ISOLATION DECISION. `delegate_preflight` answers with an `isolation`
|
|
84
86
|
of `worktree`, `shared` or `block` and a stable `reason` code.
|
|
85
87
|
2a. PREFLIGHT IS PER CHAIN, NOT PER DISPATCH. Preflight a NEW task as above.
|
|
@@ -137,33 +139,62 @@ DISPATCH (only for an explicitly assigned implementation task)
|
|
|
137
139
|
override apply. For a `shared` decision, pass only
|
|
138
140
|
`overrides = { isolation = "shared" }`; this per-task isolation override is
|
|
139
141
|
required because the plugin may still be configured for `worktree`. Never
|
|
140
|
-
override the configured provider, model
|
|
142
|
+
override the configured provider, model or reasoning effort, and never
|
|
141
143
|
encode a route in the task prompt. `allowShared` on the preflight records the
|
|
142
144
|
decision but does not change the submitted job's isolation by itself.
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
145
|
+
4z. NO TOTAL EXECUTION DEADLINE. The plugin's settings page no longer offers an
|
|
146
|
+
execution timeout and a normal delegated run is NOT bounded by one: a long but
|
|
147
|
+
healthy task keeps running, and only `delegate_cancel` stops it. Silence and
|
|
148
|
+
duration are reported through the monitoring reminders below, never turned into
|
|
149
|
+
a failure. `overrides.timeoutSeconds` still exists as an explicit per-job cap; do
|
|
150
|
+
NOT send it unless the operator asked for one, and never send it just because a
|
|
151
|
+
task feels long. A run that ends with `JOB_TIMEOUT` therefore had an explicit cap,
|
|
152
|
+
not the plugin's default.
|
|
153
|
+
4a. FOLLOW THE USER'S CHOICE FOR AGENT TEAMS.
|
|
154
|
+
`delegate_submit` accepts an optional boolean `agentTeams`: it selects DSH's Agent
|
|
155
|
+
Teams mode ("启用智能体团队协作", the same switch the DSH model menu exposes) for THIS
|
|
156
|
+
task's own DSH Session. TaskBridge also has ONE operator setting, "新任务默认开启智能体
|
|
157
|
+
协作" (off on a fresh install and after an upgrade), which the user controls in the
|
|
158
|
+
plugin's settings page. You do not control that setting and must never try to.
|
|
159
|
+
- FIRST, check whether the user stated a choice for THIS dispatch. If they did, send
|
|
160
|
+
exactly that value (`true` or `false`). An explicit value always wins over the
|
|
161
|
+
TaskBridge default.
|
|
162
|
+
- If the user stated no choice, OMIT the field and do not set it in `overrides`.
|
|
163
|
+
A NEW task follows the user's TaskBridge default, which the plugin records as
|
|
164
|
+
`agentTeamsOrigin: "settings-default"`. A follow-up
|
|
165
|
+
(`continueFromTaskId`) inherits the choice the task it continues ran with and
|
|
166
|
+
records `agentTeamsOrigin: "continuation"`; if that task recorded no choice at all
|
|
167
|
+
(an older record), the plugin applies nothing, writes nothing, and the Session keeps
|
|
168
|
+
the mode it already has.
|
|
169
|
+
- Send an explicit value only for the user's choice for this dispatch. Keep restrictions
|
|
170
|
+
on submitting additional TaskBridge jobs in force. A repository rule that expressly
|
|
171
|
+
governs DSH Agent Teams also applies. Surface any conflict with the user's choice
|
|
172
|
+
before dispatch so it does not become a silent override.
|
|
173
|
+
- A continuation does not re-decide it. An omitted value keeps the parent's mode; pass
|
|
174
|
+
an explicit `true`/`false` only when the user asked for a change in THIS follow-up.
|
|
175
|
+
- A choice that cannot be applied is REFUSED, not downgraded. On a DSH with no
|
|
176
|
+
agent-teams service, an explicit `true` OR an explicit `false` — and an inherited
|
|
177
|
+
chain choice — stops BEFORE the prompt and the task records why (`team.reason`).
|
|
178
|
+
Report that refusal; never retry with a different value, never claim success. The
|
|
179
|
+
ONE exception is the user's implicit off default: an ordinary dispatch that nobody
|
|
180
|
+
asked to change still runs on an older DSH, and it reports `applied: false` (NOT
|
|
181
|
+
"off") because nothing confirmed the Session state. Do not describe that run as
|
|
182
|
+
"teams turned off".
|
|
183
|
+
- Prove it from the record, never from assumption: `agentTeams` is the choice that was
|
|
184
|
+
applied, `agentTeamsOrigin` says where it came from (`request`, `continuation`,
|
|
185
|
+
`settings-default`) and `team` says what DSH confirmed (`applied`, `enabled`) or why
|
|
186
|
+
it could not (`reason`). "Requested" and "applied" are different facts; report the
|
|
187
|
+
applied one.
|
|
188
|
+
- ONE OUTER TASK = ONE Session and ONE concurrency slot. Enabling teams does not add a
|
|
189
|
+
slot and does not create a second task; DSH's inner team members are managed inside
|
|
190
|
+
the same Session and are not counted by TaskBridge's parallelism. Do not submit extra
|
|
191
|
+
tasks to "give the team more lanes".
|
|
162
192
|
- Execution provider/model/effort remain the operator's configuration. `agentTeams`
|
|
163
193
|
never overrides them, and you never encode a model in it.
|
|
164
194
|
- Express it ONLY through this schema field. If the loaded tool version does not
|
|
165
195
|
accept `agentTeams`, say so and ask for the newer integration — never fake success,
|
|
166
196
|
never route it through another field, the task prompt or a different channel.
|
|
197
|
+
- Cancellation is unaffected: `delegate_cancel` works the same with teams on or off.
|
|
167
198
|
- Team members run under DSH's native policy (their own approvals default to
|
|
168
199
|
`never`), so they only do what is already permitted. A concrete action that needs
|
|
169
200
|
more permission must be done by the ROOT execution and decided through this
|
|
@@ -172,8 +203,10 @@ DISPATCH (only for an explicitly assigned implementation task)
|
|
|
172
203
|
4b. TASK THREADS. Every submission starts a NEW DSH task conversation by default,
|
|
173
204
|
even in a previously used Workspace. This means a new Session, NOT necessarily a new
|
|
174
205
|
native Workspace. Pass `continueFromTaskId` ONLY when this submission is a follow-up
|
|
175
|
-
to THAT same task: use the latest prior task id
|
|
176
|
-
same DSH Workspace and Session.
|
|
206
|
+
to THAT same task: use the latest prior task id that has a resumable Session, and
|
|
207
|
+
keep the same DSH Workspace and Session. Rule 6c covers attempts that ended before
|
|
208
|
+
reaching a Session.
|
|
209
|
+
Omit `continueFromTaskId` entirely for an unrelated task;
|
|
177
210
|
never reuse a task just to keep context. Unknown, running,
|
|
178
211
|
removed, differently-sourced or failed-without-conversation parents are refused.
|
|
179
212
|
Submit the ORIGINAL authorized source `workspacePath`, never `execution.workspacePath`.
|
|
@@ -207,17 +240,22 @@ DISPATCH (only for an explicitly assigned implementation task)
|
|
|
207
240
|
raising it — when a wait ends you simply call it again on the same taskId.
|
|
208
241
|
A shorter explicit `waitSeconds` is legal but is only for a one-off diagnostic the
|
|
209
242
|
operator explicitly asked for; it is never the normal loop.
|
|
210
|
-
5a0.
|
|
243
|
+
5a0. FIVE DIFFERENT THINGS, never conflated.
|
|
211
244
|
- `wait-limit` — THIS call's own wait budget ran out and nothing changed. Wait again
|
|
212
245
|
on the same taskId. Not a result, not a stall, not a task event.
|
|
213
246
|
- An OUTER limit — your client handed the call back on its own tool/exec time limit.
|
|
214
247
|
The MCP observation did not end and the worker did not stop. Continue the SAME exec
|
|
215
248
|
cell and ask for the largest yield it supports (see 5d).
|
|
216
|
-
- `attention` —
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
249
|
+
- `attention` — the run produced NO REAL PROGRESS for the configured interval (40
|
|
250
|
+
minutes by default) while it is still running. It is NOT reported because the task
|
|
251
|
+
has been running a long time: a task that keeps making progress never produces one,
|
|
252
|
+
however long it runs. See 5a1.
|
|
253
|
+
- A repeated-tool-failure reminder — an `attention` answer carrying a `failure` block.
|
|
254
|
+
Independent of any clock: a busy run can fail the same call over and over.
|
|
255
|
+
- There is NO default total execution timeout. The worker's own budget is unlimited
|
|
256
|
+
unless the operator asked for an explicit per-job cap; if such a cap fires it ends
|
|
257
|
+
the run and is reported as a terminal state (`JOB_TIMEOUT`). It is not `wait-limit`,
|
|
258
|
+
not `attention` and not a client-side event.
|
|
221
259
|
A real hard failure is worth ONE de-duplicated reminder to the host. An ordinary
|
|
222
260
|
single failing test inside the worker is the WORKER's job to diagnose and fix: it is
|
|
223
261
|
not a host event, and you must not resubmit, cancel or take over for it.
|
|
@@ -237,20 +275,24 @@ DISPATCH (only for an explicitly assigned implementation task)
|
|
|
237
275
|
never see this, because the tool re-issues internally. If you do see it, call
|
|
238
276
|
`delegate_wait` on the SAME task again. Never treat it as progress, as a stall or
|
|
239
277
|
as an excuse to submit anything.
|
|
240
|
-
- `attention`: the task
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
278
|
+
- `attention`: the task needs YOU. The answer's `checkpoint` field says which reminder
|
|
279
|
+
this is; read it before deciding anything. Neither reminder changes the task, and
|
|
280
|
+
neither is a function of how long the task has been running.
|
|
281
|
+
(1) `checkpoint: "progress"` — the run progress check. The worker has shown NO REAL
|
|
282
|
+
PROGRESS for the configured interval (40 minutes by default) while the task is still
|
|
283
|
+
running. Real progress means model output, a reasoning step, a tool call or a tool
|
|
284
|
+
result; heartbeats, polls, page refreshes and the plugin's own self-check do NOT
|
|
285
|
+
count and never reset the clock. A task that keeps working for hours never produces
|
|
286
|
+
this, so do not read it as "this has taken too long". Read `progress` (phase, the
|
|
287
|
+
open tool, the silence span, the last self-check verdict) and check that the work
|
|
288
|
+
done so far still matches the goal. Then KEEP WAITING on the SAME taskId unless you
|
|
289
|
+
find a concrete error or a real drift from the goal. The same silence is reported
|
|
290
|
+
ONCE: it will not repeat, and only real progress starts a new silence and a new
|
|
291
|
+
interval. Nothing was cancelled, restarted, resubmitted or re-queued.
|
|
292
|
+
(2) `checkpoint: "failure"` (with a `kind: "repeated-tool-failure"` `failure` block,
|
|
293
|
+
`eventId`, `toolName`, `failureCode`, `consecutive`): the worker has repeated ONE
|
|
294
|
+
operation and failed the same way several times in a row. That is a different
|
|
295
|
+
situation and needs a different decision.
|
|
254
296
|
The SAME reminder (same `eventId`) is REDELIVERED on later waits until you acknowledge
|
|
255
297
|
it, so a lost answer is never a lost reminder: do not read the repetition as several
|
|
256
298
|
failures or new events; it is one notification you have not confirmed yet. After you
|
|
@@ -267,6 +309,10 @@ DISPATCH (only for an explicitly assigned implementation task)
|
|
|
267
309
|
cancel, or write a follow-up that gives the worker the missing information. Do not
|
|
268
310
|
repeat the identical instruction and hope for another outcome, and do not take the
|
|
269
311
|
reminder itself as proof the task can never succeed.
|
|
312
|
+
The plugin is LOCAL: it never wakes an offline Codex. If you are not waiting, the
|
|
313
|
+
self-check and the reminder are still recorded, and the next `delegate_wait` or
|
|
314
|
+
`delegate_result` on the same task reads them — a due reminder reaches you when you
|
|
315
|
+
resume observing, not as a background notification.
|
|
270
316
|
- `permission`: the worker is PAUSED on one native tool call awaiting YOUR
|
|
271
317
|
decision. This is not a stall and not a failure. Do not submit a duplicate and do
|
|
272
318
|
not cancel it merely because it waits.
|
|
@@ -403,10 +449,10 @@ DISPATCH (only for an explicitly assigned implementation task)
|
|
|
403
449
|
Reviewing is done in ONE pass per delivery: do not call `delegate_review` to
|
|
404
450
|
"check in" while the run is still going, and do not review the same result more
|
|
405
451
|
than once.
|
|
406
|
-
- `failed`, `cancelled`: the run ended
|
|
407
|
-
`delegate_result` ONCE for the same task
|
|
408
|
-
|
|
409
|
-
|
|
452
|
+
- `failed`, `cancelled`: the run ended and may have left partial edits. Call
|
|
453
|
+
`delegate_result` ONCE for the same task and report the recorded reason to Codex.
|
|
454
|
+
Apply rule 6c for a confirmed transient DSH execution failure. An intentional
|
|
455
|
+
cancellation ends the run. For a correction to a reviewed delivery, use rule 5c.
|
|
410
456
|
- `interrupted`: the wait itself was cut off (transport hiccup, dropped connection,
|
|
411
457
|
tool restart). It does NOT mean the execution stopped, and one call returns it at
|
|
412
458
|
once instead of looping, so read the answer's own fields:
|
|
@@ -416,6 +462,8 @@ DISPATCH (only for an explicitly assigned implementation task)
|
|
|
416
462
|
- `terminal: true` and `state: "interrupted"`: the TASK record itself is interrupted
|
|
417
463
|
(a process restart left it that way). It will not resume, so read
|
|
418
464
|
`delegate_result` once and report; do not keep calling `delegate_wait` on it.
|
|
465
|
+
Use rule 6c if the evidence supports a transient DSH failure. Keep the original
|
|
466
|
+
Session if it can be continued.
|
|
419
467
|
- `terminal: false` with no state, an unrecognized state, or a state that
|
|
420
468
|
contradicts the record: do NOT assume it is still running and do NOT assume it
|
|
421
469
|
stopped. Keep the taskId, and FIRST check one fact with `delegate_result` (state,
|
|
@@ -457,9 +505,9 @@ DISPATCH (only for an explicitly assigned implementation task)
|
|
|
457
505
|
delegated run. Do not use it to "unblock" a wait you merely find long.
|
|
458
506
|
5c. CORRECTIONS AND FOLLOW-UPS. A requested change, correction or retry that belongs
|
|
459
507
|
to the SAME task is submitted as a follow-up: `continueFromTaskId` set to the
|
|
460
|
-
latest task id in that chain
|
|
461
|
-
for
|
|
462
|
-
|
|
508
|
+
latest resumable task id in that chain. Use the SAME authorized source `workspacePath`
|
|
509
|
+
for preflight and submit. Then call `delegate_wait` on the NEW task id and follow the
|
|
510
|
+
reasons again. Never submit a correction as an unrelated new task to
|
|
463
511
|
escape a long wait, and never reuse an id to "keep context".
|
|
464
512
|
5d. OUTER WAIT: WHEN YOUR HOST TAKES THE CALL BACK. Your host, not this plugin,
|
|
465
513
|
decides how long one tool call may occupy your turn. A `delegate_wait` can be
|
|
@@ -506,16 +554,39 @@ DISPATCH (only for an explicitly assigned implementation task)
|
|
|
506
554
|
used, quoting the reason code, and state whether the run started a new
|
|
507
555
|
conversation or continued `continueFromTaskId`. If a result fails because of
|
|
508
556
|
isolation, do not re-submit under a weaker isolation on your own initiative.
|
|
509
|
-
6b. WHEN YOU ARE BLOCKED.
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
557
|
+
6b. WHEN YOU ARE BLOCKED. Apply rule 6c to transient DSH unavailability. For other
|
|
558
|
+
blockers, stop if a required capability is absent or the same attempt has failed
|
|
559
|
+
twice without new information. Report the requested work, the exact bounded evidence,
|
|
560
|
+
what is blocked, and what must change for work to resume.
|
|
561
|
+
|
|
562
|
+
6c. DSH OUTAGE, RETRY, AND RESUME.
|
|
563
|
+
- For a transient DSH connection or execution failure, such as an upstream 502/503,
|
|
564
|
+
DNS failure, or transport error, make up to three sequential retries after the
|
|
565
|
+
initial failure. Allow a short delay between retries. Codex owns one counter per
|
|
566
|
+
work packet across direct calls and this companion. Use only the remaining
|
|
567
|
+
allowance and report the result of each attempt. A successful retry continues the
|
|
568
|
+
work. An enabled delegation switch confirms authorization only.
|
|
569
|
+
- Retry the failing stage. For an unconfirmed submission, use read-only facts to
|
|
570
|
+
reconcile the receipt and state. If the task is still live, wait on the same task
|
|
571
|
+
id. Wait limits, host interruptions of the wait, repeated-failure reminders, and
|
|
572
|
+
pending approvals do not count as execution failures. If creation or live state
|
|
573
|
+
remains uncertain, save the known facts and pause before risking a duplicate.
|
|
574
|
+
- Once the failed run is confirmed ended, continue the latest resumable task in the
|
|
575
|
+
packet via `continueFromTaskId` and the original SOURCE. Verify the same execution
|
|
576
|
+
directory, isolation, Workspace, and Session when the receipt is available. If an
|
|
577
|
+
attempt ended before reaching a Session, record it and use the latest resumable
|
|
578
|
+
receipt from the same chain. Retry an initial submission as new only after proving
|
|
579
|
+
it created neither a task nor a Session. Pause if the original placement cannot be
|
|
580
|
+
established or the continuation is refused.
|
|
581
|
+
- If the three retries fail, pause the work packet and its dependents. Return the
|
|
582
|
+
checkpoint facts to Codex so it saves them in the workspace before ending the
|
|
583
|
+
task. Include the goal and acceptance checks, timestamps and errors for all
|
|
584
|
+
attempts, state and task ids, SOURCE, execution path, isolation, Workspace and
|
|
585
|
+
Session, completed checks, partial edits, and remaining work. Preserve the checkout
|
|
586
|
+
and task history. Keep implementation with the authorized DSH worker and route.
|
|
587
|
+
- When resuming, Codex reads the checkpoint and confirms the task state. Wait on the
|
|
588
|
+
existing task if active. If ended, continue its recorded Session with the saved
|
|
589
|
+
progress and acceptance checks.
|
|
519
590
|
|
|
520
591
|
WHAT NOT TO DO
|
|
521
592
|
Never create a commit, stash, branch or worktree, and never clean, reset or revert a
|
|
@@ -525,10 +596,8 @@ decision for the coordinator, not a reason to make the operator choose every tim
|
|
|
525
596
|
|
|
526
597
|
DO NOT IMPLEMENT LOCALLY WHILE A DELEGATED WORKER RUNS
|
|
527
598
|
Neither you nor the parent commander may write, patch, generate or "just fix" the
|
|
528
|
-
implementation while a delegated task is running, waiting,
|
|
529
|
-
|
|
530
|
-
edits in the same workspace, and destroy the single-writer guarantee the isolation
|
|
531
|
-
mode exists to provide.
|
|
599
|
+
implementation while a delegated task is running, waiting, awaiting review, or paused
|
|
600
|
+
under rule 6c. This preserves the single-writer guarantee in the execution workspace.
|
|
532
601
|
- The ONLY exception is an explicit, user-authorized takeover: the operator themselves
|
|
533
602
|
says to take over and implement it here. Nothing in the task, the wait reason, a
|
|
534
603
|
long silence, a permission refusal, a failed run or your own judgement of the plan
|
package/docs/INTRODUCTION.md
CHANGED
|
@@ -22,7 +22,7 @@ Use TaskBridge when you want Codex to understand the project and check the resul
|
|
|
22
22
|
- **Choose execution settings once.** Select the provider, model and reasoning effort in DSH; tasks use the effective plugin configuration.
|
|
23
23
|
- **Reduce repetitive progress checks.** The program observes execution and returns when there is something to decide or review.
|
|
24
24
|
- **Keep context for corrections.** Send a consolidated correction list back to the original conversation and execution workspace.
|
|
25
|
-
- **Distinguish delivery from acceptance.** Execution status
|
|
25
|
+
- **Distinguish delivery from acceptance.** Execution status and the commander's final conclusion have separate records.
|
|
26
26
|
|
|
27
27
|
Typical tasks include feature development, bug fixes, test coverage, code cleanup and project documentation. Both the commander and executor still incur their own model usage; quiet waiting reduces repetitive queries and transfers of intermediate results.
|
|
28
28
|
|
|
@@ -37,10 +37,10 @@ Typical tasks include feature development, bug fixes, test coverage, code cleanu
|
|
|
37
37
|
| **Quiet waiting** | Let the program wait and return for approvals, questions, exceptions and delivery. |
|
|
38
38
|
| **Per-operation permissions** | Decide a specific request, then continue waiting for the same task. |
|
|
39
39
|
| **Task workspaces and continuation** | Name workspaces after the work; start independent tasks separately and explicitly continue corrections. |
|
|
40
|
+
| **Agent collaboration default** | Decide the new-task agent-teams default, overridable per dispatch; off by default. |
|
|
40
41
|
| **Review after delivery** | Inspect changes and evidence together, then record acceptance or request changes. |
|
|
41
|
-
| **Optional additional model review** | Configure a separate model and effort for a read-only second opinion. |
|
|
42
42
|
| **Automatic settings saving** | Save selections promptly and text edits after a short pause, with visible save status. |
|
|
43
|
-
| **Presets and project overrides** | Reuse worker
|
|
43
|
+
| **Presets and project overrides** | Reuse worker settings and give projects their own settings. |
|
|
44
44
|
| **Task history and details** | Inspect phases, actual routing, activity, permission decisions, changes and complete review notes. |
|
|
45
45
|
|
|
46
46
|
## Get started
|
|
@@ -56,12 +56,12 @@ dsh-taskbridge
|
|
|
56
56
|
To install this specific release:
|
|
57
57
|
|
|
58
58
|
```text
|
|
59
|
-
dsh-taskbridge@1.
|
|
59
|
+
dsh-taskbridge@1.7.0
|
|
60
60
|
```
|
|
61
61
|
|
|
62
62
|
Enable **DSH TaskBridge** and open its settings. Use the official npm registry if a regional mirror has not synchronized yet. GitHub Releases also provide `.tgz` packages.
|
|
63
63
|
|
|
64
|
-
|
|
64
|
+
TaskBridge runs tasks through DSH. The local MCP connection to Codex requires Node.js 24 or newer. The Codex integration installer checks for an available runtime.
|
|
65
65
|
|
|
66
66
|
### 2. Select an API, model and effort
|
|
67
67
|
|
|
@@ -99,14 +99,14 @@ The commander checks the connection and workspace before submission. Follow exec
|
|
|
99
99
|
| **Dispatch** | Submit a clear goal, project path and task title. | Start the task with the effective configuration and create its record and conversation. |
|
|
100
100
|
| **Execute** | Wait. | Modify files, run tools and tests, record activity and keep waiting internally. |
|
|
101
101
|
| **Request or question** | Decide specific permissions and answer questions needed for execution. | Pause the relevant operation, provide evidence and resume the same task after a decision. |
|
|
102
|
-
| **Deliver** | Review actual changes, verification and unresolved issues together. | Return results and evidence
|
|
102
|
+
| **Deliver** | Review actual changes, verification and unresolved issues together. | Return results and evidence. |
|
|
103
103
|
| **Accept or correct** | Record a review conclusion or prepare one correction list. | Save the conclusion or continue the original conversation and execution workspace. |
|
|
104
104
|
|
|
105
105
|
Execution completion means the executor has returned its work. Acceptance means the commander has reviewed it. Task history distinguishes the two.
|
|
106
106
|
|
|
107
107
|
## Settings
|
|
108
108
|
|
|
109
|
-
The page has **API management, Execution settings,
|
|
109
|
+
The page has **API management, Execution settings, Task history and Codex integration** tabs, with the local delegation switch above them.
|
|
110
110
|
|
|
111
111
|
### API, model and execution options
|
|
112
112
|
|
|
@@ -118,7 +118,8 @@ The page has **API management, Execution settings, Additional review, Task histo
|
|
|
118
118
|
| **Timeout** | Total time budget for a task, 1800 seconds by default; inactivity checks do not extend it. |
|
|
119
119
|
| **Maximum concurrency** | Limit simultaneous tasks, 1 by default; the commander decides whether to split work. |
|
|
120
120
|
| **Workspace isolation** | Use an independent Git worktree or the authorized shared project directory. |
|
|
121
|
-
| **
|
|
121
|
+
| **Agent collaboration for new tasks** | Decide whether a new dispatch with no per-task choice uses DSH's native agent teams; off by default, a per-task choice wins, continuations keep the chain's choice. |
|
|
122
|
+
| **Presets** | Save commonly used worker settings. |
|
|
122
123
|
| **Project overrides** | Apply project-specific settings instead of the global selection. |
|
|
123
124
|
|
|
124
125
|
**You choose the executor.** Managed commander rules preserve the configured provider, model and reasoning effort. An unavailable combination is reported instead of silently switching to another model.
|
|
@@ -142,12 +143,6 @@ The switch starts disabled. Installing the plugin or merely mentioning DSH does
|
|
|
142
143
|
|
|
143
144
|
Disabling the switch rejects new tasks and requests that running tasks stop. Local use does not require manually issuing signed connections.
|
|
144
145
|
|
|
145
|
-
### Optional additional model review
|
|
146
|
-
|
|
147
|
-
Enable additional model review and select its API connection, model and effort independently.
|
|
148
|
-
|
|
149
|
-
The reviewer reads delivered changes and evidence and provides another assessment. This is **read-only** and adds reviewer model usage and cost. It cannot edit files or replace final commander acceptance. With this option off, the commander still reviews the result.
|
|
150
|
-
|
|
151
146
|
## Quiet waiting
|
|
152
147
|
|
|
153
148
|
Quiet waiting reduces repeated status checks and intermediate-code reads while the executor is still working.
|
|
@@ -183,7 +178,31 @@ After a DSH restart, the plugin checks the original task and workspace identitie
|
|
|
183
178
|
|
|
184
179
|
### Use DSH teams when appropriate
|
|
185
180
|
|
|
186
|
-
|
|
181
|
+
**You set the default; the dispatcher may decide one task.** Execution settings have a
|
|
182
|
+
**"Enable agent collaboration for new tasks"** switch, and upgrades and fresh installs
|
|
183
|
+
both start it **off**:
|
|
184
|
+
|
|
185
|
+
- Upgrading or installing never turns it on by itself.
|
|
186
|
+
- It decides only what a **new dispatch** does when it states no per-task choice. When the
|
|
187
|
+
dispatcher states `true` or `false` for one dispatch, **that choice wins**.
|
|
188
|
+
- **Continuations** with no new choice keep the collaboration choice the task they
|
|
189
|
+
continue **recorded**. If that task recorded none (an older record), the plugin applies
|
|
190
|
+
nothing and writes nothing: the Session keeps the mode it already has.
|
|
191
|
+
- It affects **later submissions only**; a task that already started keeps its own
|
|
192
|
+
frozen snapshot.
|
|
193
|
+
- It is **not DSH's global switch**: the plugin writes only that one task's own Session
|
|
194
|
+
and never changes DSH's global default or a conversation you adjusted yourself.
|
|
195
|
+
|
|
196
|
+
On a DSH without agent-teams support, an **explicit** `true` or `false` is refused
|
|
197
|
+
**before the prompt** and the task detail states why; it never quietly runs in the previous
|
|
198
|
+
mode. The one exception is the implicit off default: such an ordinary dispatch still runs,
|
|
199
|
+
but reports **not applied** (not "turned off"), which keeps older dispatches working. This
|
|
200
|
+
decision does not change your configured API, model or effort, and team members' additional
|
|
201
|
+
permissions currently have to be handled through the main executor. Cancellation works the
|
|
202
|
+
same either way.
|
|
203
|
+
|
|
204
|
+
One outer task always holds **one conversation and one concurrency slot**: enabling
|
|
205
|
+
collaboration adds neither, and there is no reason to dispatch extra tasks for it.
|
|
187
206
|
|
|
188
207
|
## Task history: progress and acceptance
|
|
189
208
|
|
|
@@ -191,10 +210,13 @@ Open **Task history → Details** to inspect:
|
|
|
191
210
|
|
|
192
211
|
- **Execution:** phase, recent activity, current tool and inactivity diagnosis.
|
|
193
212
|
- **Effective settings:** actual provider, model, effort and isolation.
|
|
213
|
+
- **Agent collaboration:** the choice frozen on this task, where it came from (per-task
|
|
214
|
+
request / inherited continuation / TaskBridge default), and what DSH confirmed or why it
|
|
215
|
+
could not be applied.
|
|
194
216
|
- **Task relationships:** execution workspace, conversation and continuation links.
|
|
195
217
|
- **Decisions:** permission requests and their per-operation allow/deny records.
|
|
196
218
|
- **Delivery evidence:** changed files, diffs, verification and results.
|
|
197
|
-
- **Review:**
|
|
219
|
+
- **Review:** commander acceptance and complete review notes.
|
|
198
220
|
|
|
199
221
|
| Status | Meaning |
|
|
200
222
|
| --- | --- |
|
|
@@ -223,7 +245,7 @@ Requests return to the commander using TaskBridge. It assesses the specific oper
|
|
|
223
245
|
|
|
224
246
|
### Does quiet waiting guarantee zero Codex token use?
|
|
225
247
|
|
|
226
|
-
No. Planning, approvals, answers, exception handling and review still use model calls. Savings depend on the task, client waiting behavior and context size. See the [historical waiting-stage comparison](releases/1.5.0-token-benchmark.zh.md) for measurements and their limits.
|
|
248
|
+
No. Planning, approvals, answers, exception handling and review still use model calls. Savings depend on the task, client waiting behavior and context size. See the [historical waiting-stage comparison](https://github.com/ranranyya/dsh-taskbridge/blob/master/docs/releases/1.5.0-token-benchmark.zh.md) for measurements and their limits.
|
|
227
249
|
|
|
228
250
|
### Why does a finished task still say “awaiting host review”?
|
|
229
251
|
|
|
@@ -237,7 +259,7 @@ For Codex, use the install/update button and reload the client. Use the MCP-only
|
|
|
237
259
|
|
|
238
260
|
### Does TaskBridge install every dependency and client integration?
|
|
239
261
|
|
|
240
|
-
|
|
262
|
+
Enable TaskBridge in DSH and keep DSH running during delegated tasks. Set up the dependencies each project needs. To connect Codex for the first time, open **Codex integration** in the plugin and click **Install / update TaskBridge agent**. Claude Code and Claude Desktop integration is planned for 2.0.
|
|
241
263
|
|
|
242
264
|
## Client support and the 2.0 plan
|
|
243
265
|
|
|
@@ -260,11 +282,11 @@ The goal for 2.0 is to let more commanders use the execution models configured i
|
|
|
260
282
|
| [Conversation placement](conversation-placement.md) | Workspace naming, conversation creation and explicit continuation. |
|
|
261
283
|
| [Plugin discovery and updates](plugin-market.md) | Custom indexes, npm and GitHub installation sources. |
|
|
262
284
|
| [Migration](taskbridge-upgrade.md) | Upgrading from DSH Delegate / TaskDispatch. |
|
|
263
|
-
| [1.5.4 release notes](releases/1.5.4.zh.md) | Persisted task records, explicit goals and summaries, and placement checks. |
|
|
264
|
-
| [1.5.3 release notes](releases/1.5.3.zh.md) | Review summaries, full-note layout, mixed line endings, and commander planning rules. |
|
|
265
|
-
| [1.5.2 release notes](releases/1.5.2.zh.md) | The introduction update and its validation scope. |
|
|
285
|
+
| [1.5.4 release notes](https://github.com/ranranyya/dsh-taskbridge/blob/master/docs/releases/1.5.4.zh.md) | Persisted task records, explicit goals and summaries, and placement checks. |
|
|
286
|
+
| [1.5.3 release notes](https://github.com/ranranyya/dsh-taskbridge/blob/master/docs/releases/1.5.3.zh.md) | Review summaries, full-note layout, mixed line endings, and commander planning rules. |
|
|
287
|
+
| [1.5.2 release notes](https://github.com/ranranyya/dsh-taskbridge/blob/master/docs/releases/1.5.2.zh.md) | The introduction update and its validation scope. |
|
|
266
288
|
|
|
267
|
-
TaskBridge uses runtime capability checks rather than a DSH version whitelist; see [runtime notes](runtime-compatibility.md). A separate CLI execution channel and validation of every runtime environment are not complete. Existing limits are documented in the [1.5.1 notes](releases/1.5.1.zh.md).
|
|
289
|
+
TaskBridge uses runtime capability checks rather than a DSH version whitelist; see [runtime notes](runtime-compatibility.md). A separate CLI execution channel and validation of every runtime environment are not complete. Existing limits are documented in the [1.5.1 notes](https://github.com/ranranyya/dsh-taskbridge/blob/master/docs/releases/1.5.1.zh.md).
|
|
268
290
|
|
|
269
291
|
Report issues and suggestions on [GitHub Issues](https://github.com/ranranyya/dsh-taskbridge/issues). Include the plugin version, reproduction steps and relevant redacted errors; leave out API keys.
|
|
270
292
|
|