@linxin666/dsh-client-ui-task-board 0.4.8 → 0.4.9

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.
Files changed (64) hide show
  1. package/README.i18n.yaml +2 -2
  2. package/README.md +28 -22
  3. package/README.zh.md +28 -22
  4. package/lib/client.js +1435 -682
  5. package/lib/client.js.map +1 -1
  6. package/lib/index.js +356 -366
  7. package/lib/types/client/PluginSettingsCard.d.ts +21 -0
  8. package/lib/types/client/TaskBoardSettingsCard.d.ts +7 -0
  9. package/lib/types/client/board/ExecutionLog.d.ts +16 -0
  10. package/lib/types/client/board/TaskForm.d.ts +4 -0
  11. package/lib/types/client/board/VerificationReport.d.ts +2 -15
  12. package/lib/types/client/body-mutations.d.ts +45 -0
  13. package/lib/types/client/locales.d.ts +42 -6
  14. package/lib/types/client/suppress-schedule-row.d.ts +86 -0
  15. package/lib/types/core/controller.d.ts +1 -1
  16. package/lib/types/core/subtask.d.ts +59 -49
  17. package/lib/types/core/tasks.d.ts +5 -8
  18. package/lib/types/core/use-cases/task-update.d.ts +1 -1
  19. package/lib/types/core/workspace-target.d.ts +23 -3
  20. package/lib/types/host/launch-admission.d.ts +8 -9
  21. package/lib/types/host-ledger.d.ts +72 -48
  22. package/lib/types/host-routes.d.ts +49 -0
  23. package/lib/types/host-runner.d.ts +20 -10
  24. package/lib/types/host-service.d.ts +7 -50
  25. package/lib/types/index.d.ts +61 -63
  26. package/lib/types/loopback.d.ts +21 -0
  27. package/lib/types/protocol.d.ts +0 -5
  28. package/lib/types/tool-surface.d.ts +1 -0
  29. package/package.json +25 -25
  30. package/src/client/CardDefaultPresetField.tsx +1 -1
  31. package/src/client/PluginSettingsCard.tsx +78 -18
  32. package/src/client/TaskBoardSettingsCard.tsx +68 -25
  33. package/src/client/board/ExecutionLog.tsx +140 -0
  34. package/src/client/board/LinkSubtaskModal.tsx +1 -9
  35. package/src/client/board/NewTaskModal.tsx +2 -11
  36. package/src/client/board/TaskCard.tsx +45 -23
  37. package/src/client/board/TaskDetail.tsx +407 -261
  38. package/src/client/board/TaskForm.tsx +19 -4
  39. package/src/client/board/VerificationReport.tsx +143 -104
  40. package/src/client/board/task-markdown.module.css +11 -8
  41. package/src/client/board-settings.module.css +35 -7
  42. package/src/client/board.module.css +855 -115
  43. package/src/client/body-mutations.ts +133 -0
  44. package/src/client/index.ts +10 -0
  45. package/src/client/locales.ts +97 -24
  46. package/src/client/settings-card.module.css +71 -10
  47. package/src/client/suppress-schedule-row.ts +198 -0
  48. package/src/core/controller.ts +1 -3
  49. package/src/core/subtask.ts +81 -76
  50. package/src/core/tasks.ts +5 -9
  51. package/src/core/use-cases/task-update.ts +1 -3
  52. package/src/core/workspace-target.ts +27 -3
  53. package/src/host/agent-tools.ts +14 -15
  54. package/src/host/launch-admission.ts +8 -9
  55. package/src/host-ledger.ts +158 -125
  56. package/src/host-routes.ts +65 -2
  57. package/src/host-runner.ts +53 -28
  58. package/src/host-service.ts +42 -127
  59. package/src/index.ts +84 -106
  60. package/src/loopback.ts +32 -0
  61. package/src/protocol.ts +2 -9
  62. package/src/tool-surface.ts +1 -0
  63. package/lib/types/client/board/team-run-promotion.d.ts +0 -26
  64. package/src/client/board/team-run-promotion.ts +0 -39
@@ -1,19 +1,18 @@
1
1
  /**
2
2
  * Admission control for the session-creating half of a run.
3
3
  *
4
- * One board action can open a whole subtree, and a team run hands every member
5
- * of it to the Lead at once. Both paths used to fire every launch in the same
6
- * tick, so the Host asked DSH for N sessions at once — the burst the repository's
7
- * measured guidance caps at three heavy implementation subagents
8
- * (docs/multi-agent-resources.md), with no mechanism enforcing it.
4
+ * A run opens one session, so the burst this bounds is several runs starting at
5
+ * once — several cards run from different tabs, or a due schedule firing while
6
+ * a manual run is still launching. Unbounded, the Host asks DSH for N sessions
7
+ * in the same tick: the burst the repository's measured guidance caps at three
8
+ * heavy implementation subagents (docs/multi-agent-resources.md), with no
9
+ * mechanism enforcing it.
9
10
  *
10
11
  * The queue is SERVICE-wide, not per run group: the pressure it bounds is the
11
12
  * machine's (the Host process's memory and the swap it drives), and two run
12
13
  * groups opened from two tabs share one Host. Admission is round-robin across
13
- * run groups — FIFO inside a group, so a group's first run (the Lead, which
14
- * carries the run shape and the teammate namespace) always starts before its
15
- * members — so a large subtree cannot starve a run opened after it, and no
16
- * entry can be starved.
14
+ * run groups — FIFO inside a group — so one run cannot starve another opened
15
+ * after it, and no entry can be starved.
17
16
  *
18
17
  * The width is read through a live callback, so a settings edit takes effect on
19
18
  * the next admission without remounting anything.
@@ -11,14 +11,13 @@ export interface LedgerState {
11
11
  export interface OpenedRun {
12
12
  task: TaskRecord;
13
13
  execution: ExecutionRecord;
14
- /**
15
- * How the Host obtains this run's session. Absent or `session` launches a
16
- * fresh (or reused) execution session; `teammate` means the run belongs to a
17
- * team-mode cascade, where the Host asks the root's Lead session to spawn a
18
- * teammate instead of launching a session of its own.
19
- */
20
- dispatch?: 'session' | 'teammate';
21
14
  }
15
+ /**
16
+ * Prefix of the `initiatedBy` an inherited descendant verdict carries. The Host
17
+ * recorded it on the run card's behalf (see `inheritVerdictForDescendants`), not
18
+ * an outside agent that reported its own work.
19
+ */
20
+ export declare const PARENT_RUN_INITIATOR_PREFIX = "parent-run:";
22
21
  /** Minimal value copy used by the Host session monitor. */
23
22
  export interface OpenExecutionReference {
24
23
  readonly taskId: string;
@@ -52,7 +51,7 @@ export interface LedgerRuntimeView {
52
51
  * Session ids of every open execution, including the ones
53
52
  * {@link openExecutions} skips because their own outcome is already
54
53
  * recorded. A caller that asks whether the board still observes any session
55
- * must use this list: a deferred cascade parent is settled by its members,
54
+ * must use this list: a stored run-group parent is settled by its members,
56
55
  * but it is still an open execution.
57
56
  */
58
57
  readonly openSessionIds: readonly string[];
@@ -96,7 +95,7 @@ export declare function win32StartTimeMs(pid: number, probe?: PowerShellProbe):
96
95
  * missing, cyclic, or names an archived parent while the child is on board is
97
96
  * dropped (the task becomes a root) instead of dropping the task. A chain
98
97
  * deeper than the current `maxSubtaskDepth` is deliberately KEPT: the limit
99
- * gates new links, it never deletes a stored one, and every cascade walk is
98
+ * gates new links, it never deletes a stored one, and every lineage walk is
100
99
  * bounded by the limit anyway. The Host is the only writer of these links, so
101
100
  * this is a last-resort guard against a hand-edited or imported document.
102
101
  */
@@ -185,10 +184,10 @@ export declare class HostTaskLedger {
185
184
  runs?: OpenedRun[];
186
185
  };
187
186
  /**
188
- * Open the cascade one due schedule triggers: an empty array means nothing
189
- * ran (already running, or a participant whose elevated permission is still
190
- * unconfirmed, a one-shot whose instant was missed, or an exhausted budget),
191
- * and the rule's own state says which.
187
+ * Open the one run a due schedule triggers: an empty array means nothing ran
188
+ * (already running, a card whose elevated permission is still unconfirmed, a
189
+ * one-shot whose instant was missed, or an exhausted budget), and the rule's
190
+ * own state says which.
192
191
  *
193
192
  * The run budget is enforced HERE, inside the single ledger writer: a rule
194
193
  * whose counter already reached its cap is stopped instead of opened, so no
@@ -219,8 +218,8 @@ export declare class HostTaskLedger {
219
218
  * failed without creating a session (see
220
219
  * {@link applyScheduleRefund}). Called by the service on the failed-launch
221
220
  * path only; a manual run and a launch that did reach a session are never
222
- * refunded. A no-op for a task with no rule, so a failed cascade member does
223
- * not touch anything.
221
+ * refunded. A no-op for a task with no rule, so a failed run does not touch
222
+ * anything.
224
223
  * @param taskId - the task whose occurrence is being refunded.
225
224
  * @param now - clock instant (ms epoch).
226
225
  */
@@ -237,16 +236,46 @@ export declare class HostTaskLedger {
237
236
  skipMissed(now: number): void;
238
237
  setScheduler(patch: Partial<TaskBoardSchedulerSnapshot>): void;
239
238
  /**
240
- * Settle one execution. A cascade participant first records its OWN outcome
241
- * and only finalizes once every child execution in its run group has
242
- * settled, so a parent card leaves 'running' with the whole tree's verdict
243
- * rather than its own turn alone.
239
+ * Settle one execution. A NEW run is a single-member group, so it settles on
240
+ * its own turn. A run group the Host opened before it stopped spreading one
241
+ * run across a subtree is folded here instead: a stored participant records
242
+ * its OWN outcome and only finalizes once every child execution in its group
243
+ * has settled, so a parent card leaves 'running' with the whole group's
244
+ * verdict rather than its own turn alone.
244
245
  *
245
246
  * `summary` is what the run left behind (see `ExecutionSummary`), passed in
246
247
  * by whichever reader observed the session. It is informational: a caller
247
248
  * without one settles exactly as before, and a settlement never waits on it.
248
249
  */
249
250
  settle(taskId: string, executionId: string, outcome: ExecutionOutcome, error?: string, summary?: ExecutionSummary): void;
251
+ /**
252
+ * Record the run's verdict on the outstanding descendants its root was asked
253
+ * to dispatch.
254
+ *
255
+ * A card with unfinished subtasks runs as an autonomous dispatcher: its
256
+ * session reads the subtasks, dispatches them with subagents, and is asked to
257
+ * write their conclusions back with
258
+ * `task_board_manage({action:'record-external-outcome'})` before it finishes.
259
+ * A run that never wrote one back would leave those cards parked with no
260
+ * record of what the parent decided about them, so once the RUN CARD's
261
+ * execution reached a decisive terminal record, every outstanding descendant
262
+ * this run opened no execution for inherits that verdict as an external
263
+ * record.
264
+ *
265
+ * Idempotent by construction: a card that already carries an execution in
266
+ * this run group (the fold owns it), an open execution (it is running on its
267
+ * own), or a terminal record stamped after this run started (the dispatching
268
+ * agent's own backfill, or an earlier pass of this one) is left alone. Only a
269
+ * decisive verdict is inherited: a cancelled run judged nothing about the
270
+ * subtasks, and a subtask already in the done column has nothing left to
271
+ * inherit.
272
+ * @param taskId - the card whose execution just settled.
273
+ * @param executionId - that execution.
274
+ * @param groupId - its run group.
275
+ * @param now - clock instant (ms epoch).
276
+ * @returns whether the document changed.
277
+ */
278
+ private inheritVerdictForDescendants;
250
279
  attachSession(taskId: string, executionId: string, sessionId: string): void;
251
280
  allTasks(): readonly TaskRecord[];
252
281
  getTask(id: string): TaskRecord | undefined;
@@ -263,47 +292,41 @@ export declare class HostTaskLedger {
263
292
  /**
264
293
  * The binding that makes a run illegal, if any.
265
294
  *
266
- * A plain cascade launches one session per participant, so every participant
267
- * carries its own resolved binding and each one gates the run. A team run
268
- * launches only the Lead session: the Lead's binding gates it, and a
269
- * teammate inherits that session's permission, so a subtask's OWN pin is
270
- * refused exactly when the Lead session does not already carry it — the
271
- * teammate could never be given that authority, and dropping the pin
272
- * silently would misreport the work (an inherited binding is the Lead's own
273
- * and stays allowed once the Lead is confirmed).
295
+ * Only the card being run gets a session, so only ITS resolved binding gates
296
+ * the run: a subtask's own elevated permission is that subtask's gate when the
297
+ * subtask is run, and no longer blocks its parent from running.
274
298
  * @param root - the task being run.
275
299
  * @returns the first refusal, or undefined when the run may start.
276
300
  */
277
301
  private bindingRefusal;
278
- /**
279
- * The tasks a cascade from `rootId` would actually open executions for, with
280
- * their effective execution targets resolved. Archived members never run, and
281
- * a member that already has an open execution is skipped (a task cannot run
282
- * twice), so the result is the participant set the launch will use.
283
- */
284
- private cascadeParticipants;
285
302
  /** Whether a task or any of its subtasks still has an open execution. */
286
303
  private subtreeHasOpenExecution;
304
+ /** The descendants of a card that still hold work, as the launch prompt names them. */
305
+ outstandingDescendants(taskId: string): TaskRecord[];
306
+ /** Whether a card still has a subtask outside the done column. */
307
+ hasOutstandingDescendants(taskId: string): boolean;
287
308
  /**
288
- * Open one execution per cascade participant that still has work (the
289
- * requested task and its on-board descendants, within the depth limit) under
290
- * a single run group, and commit the ledger once. A descendant in 'done' is
291
- * not a participant ({@link joinsCascadeRun}). The returned runs are ordered
292
- * root-first, so the Host launches the parent before its subtasks.
309
+ * Open ONE execution for the requested card, under a fresh run group, and
310
+ * commit the ledger once. The group stays single-member on purpose: a run
311
+ * never opens a session for a subtask (that card's own agent dispatches
312
+ * subagents inside this session), and the group id is what later lets the
313
+ * settlement fold a HISTORICAL multi-member group it opened before this
314
+ * behavior changed.
293
315
  * @param root - the task the user ran.
294
316
  * @param now - clock instant (ms epoch).
295
317
  * @param initiator - the DSH session that asked for the run (audit only).
296
318
  * @param rerun - true to reset the root to 'todo' before starting it.
297
319
  * @param progress - when set, this run was a due occurrence and the root's
298
320
  * rule is advanced (counter, next target, stop/skip record) in the same
299
- * atomic commit that opened the executions.
321
+ * atomic commit that opened the execution.
300
322
  */
301
- private startCascade;
323
+ private startRun;
302
324
  /**
303
- * Finalize every cascade parent that is ready, walking from `taskId` up the
304
- * lineage: a member settles once its own outcome is recorded and none of its
305
- * group children is still open, and its verdict folds those children in
306
- * (failure dominates, then cancellation).
325
+ * Finalize every stored run-group parent that is ready, walking from `taskId`
326
+ * up the lineage: a member settles once its own outcome is recorded and none
327
+ * of its group children is still open, and its verdict folds those children in
328
+ * (failure dominates, then cancellation). A single-member group — every run
329
+ * this Host opens now — settles on its own turn exactly as any plain run does.
307
330
  */
308
331
  private settleCascade;
309
332
  /**
@@ -311,11 +334,12 @@ export declare class HostTaskLedger {
311
334
  * members are all settled. The Host poll calls this on every tick, so a run
312
335
  * can no longer be left in the running column by a settle nobody observed:
313
336
  *
314
- * - A team run is governed by its Lead. Once the Lead's own outcome is
337
+ * - A stored team run is governed by its Lead. Once the Lead's own outcome is
315
338
  * recorded, its still-open members are settled with that verdict. A
316
339
  * teammate is a durable member of the Team and may never report a turn of
317
- * its own, and without this the whole lineage waits on it forever.
318
- * - A cascade parent whose members are all settled is finalized here even
340
+ * its own, and without this the whole lineage waits on it forever. New runs
341
+ * never start a team, so this only closes a group the ledger already holds.
342
+ * - A stored group parent whose members are all settled is finalized here even
319
343
  * when the settle that completed the tree happened in another process, or
320
344
  * was interrupted between its child write and its parent write.
321
345
  *
@@ -4,10 +4,41 @@ import type { TaskBoardHostService } from './host-service.ts';
4
4
  import { type TaskBoardParseDraft, type TaskBoardParseRequest } from './protocol.ts';
5
5
  /** Header replaced by an authenticated same-host reverse proxy. */
6
6
  export declare const TASK_BOARD_PROXY_TOKEN_HEADER = "x-dsh-task-board-proxy-token";
7
+ /**
8
+ * The composition's Host connection service, narrowed to the one check the
9
+ * board bridges: `requestRejection` runs the Host/Origin fence and verifies
10
+ * the authority-bound `dsh-auth-*` browser session minted by the Host. It
11
+ * answers `undefined` only for a request it admits and 401/403 otherwise.
12
+ * Declared structurally, like the official open-in-app routes do, because the
13
+ * service's package is a browser-side dependency this Host half does not
14
+ * import.
15
+ */
16
+ export interface TaskBoardConnectionTrust {
17
+ requestRejection(request: {
18
+ readonly headers: IncomingMessage['headers'];
19
+ }): 401 | 403 | undefined;
20
+ }
7
21
  /** Optional authenticated reverse-proxy access layered over the loopback default. */
8
22
  export interface TaskBoardRouteAccess {
9
23
  trustedProxyHosts?: readonly string[];
10
24
  proxyToken?: string;
25
+ /**
26
+ /**
27
+ * Whether the operator's own reverse proxy or tunnel may speak for the
28
+ * browser: a forwarded request that landed on this machine's loopback
29
+ * upstream then counts as trustable, still behind the browser same-origin
30
+ * marker. Read at each request (hence the function), so the settings switch
31
+ * binds the next request without re-registering the routes. Absent or false
32
+ * keeps the pre-existing fence exactly as it was (issue #1906).
33
+ */
34
+ trustForwardedProxy?: () => boolean;
35
+ /**
36
+ * Resolves the Host's `connection` service when a request arrives, so a
37
+ * deployment that mounts it after these routes still gains the bridge and a
38
+ * composition that never mounts it keeps the pre-existing fence. Absent means
39
+ * no bridge (issue #1930).
40
+ */
41
+ connection?: () => TaskBoardConnectionTrust | undefined;
11
42
  }
12
43
  /**
13
44
  * Host faces the routes need beyond the ledger service. The parse face is
@@ -21,6 +52,8 @@ export interface TaskBoardRouteOptions {
21
52
  interface ResolvedRouteAccess {
22
53
  trustedProxyHosts: ReadonlySet<string>;
23
54
  proxyToken?: string;
55
+ trustForwardedProxy: () => boolean;
56
+ connection?: () => TaskBoardConnectionTrust | undefined;
24
57
  }
25
58
  /**
26
59
  * Task-board route fence. Direct desktop access uses the repository-wide
@@ -30,6 +63,22 @@ interface ResolvedRouteAccess {
30
63
  * tripwire, the socket/Host/origin-equality checks carry the authority).
31
64
  * Authenticated proxies must be explicitly allowlisted and replace the
32
65
  * internal token header after their own authentication step.
66
+ *
67
+ * A third party's proxy cannot inject that token, so a deployment whose own
68
+ * tunnel dials the loopback upstream (issue #1918) can instead turn on
69
+ * trustForwardedProxy: a forwarded request that landed on this machine
70
+ * (loopback socket AND loopback Host) is then admitted on the same browser
71
+ * marker alone. The switch defaults off, so an unconfigured board keeps
72
+ * refusing every forwarded request (issue #1906).
73
+ *
74
+ * A deployment behind a reverse proxy or ingress that DSH itself serves
75
+ * (`--trusted-host`, TLS terminated at the edge) is admitted by the Host's
76
+ * `connection` service instead: a request whose Host/Origin fence and signed
77
+ * browser session it accepts needs no board-specific allowlist, which is why
78
+ * the check runs first when the service is mounted (issue #1930). The fence
79
+ * below stays untouched as the fallback, so a deployment without the service,
80
+ * and every direct client the service does not admit, keeps exactly the
81
+ * pre-existing decision.
33
82
  */
34
83
  export declare function isTrustedTaskBoardRequest(req: IncomingMessage, access: ResolvedRouteAccess): boolean;
35
84
  export declare function makeTaskBoardRoutes(service: TaskBoardHostService, access?: TaskBoardRouteAccess, options?: TaskBoardRouteOptions): WebRoute[];
@@ -102,21 +102,23 @@ export declare class SessionLaunchError extends Error {
102
102
  * first, the provenance wrap then encloses the instruction. Plain tasks (no
103
103
  * freeze) keep the bare handover preamble + prompt.
104
104
  */
105
- /** One other execution member of a run, as named in the launched task's prompt. */
106
- export interface PromptPeer {
107
- /** Task id of the member. */
105
+ /** One unfinished subtask the launched card's own agent has to dispatch. */
106
+ export interface PromptDescendant {
107
+ /** Task id of the subtask card. */
108
108
  id: string;
109
- /** Member title. */
109
+ /** Subtask title. */
110
110
  title: string;
111
- /** Teammate name when this member runs as a teammate. */
112
- name?: string;
111
+ /** Its column, so the run can tell a fresh card from one already failed before. */
112
+ status: string;
113
113
  }
114
114
  /** Execution-shape context appended to the launched task's prompt. */
115
115
  export interface PromptContext {
116
- /** The other members this run opens, excluding the launched task itself. */
117
- peers?: readonly PromptPeer[];
118
- /** True when those members run as teammates inside this session (Team Lead). */
119
- team?: boolean;
116
+ /**
117
+ * The card's outstanding descendants. Present exactly when this run is an
118
+ * autonomous dispatch: the Host opens no session for them, so this session
119
+ * reads them and dispatches subagents itself.
120
+ */
121
+ descendants?: readonly PromptDescendant[];
120
122
  /**
121
123
  * Scheduled-run provenance: the instant the rule actually fired, its kind,
122
124
  * and the IANA zone its wall clock was read in. Present only for a
@@ -193,6 +195,14 @@ export declare class HostExecutionRunner {
193
195
  launch(task: TaskRecord, options?: {
194
196
  reuseSessionId?: string;
195
197
  promptContext?: PromptContext;
198
+ /**
199
+ * Agent preset this execution is FORCED under, overriding the card's own
200
+ * `mode` pin (and a handover bundle's): the caller decides it from the run's
201
+ * shape (a card with unfinished subtasks runs as the autonomous dispatcher),
202
+ * and the override is never written into the card. A preset the deployment
203
+ * does not register fails the launch before any session exists.
204
+ */
205
+ agentPreset?: string;
196
206
  onSession?: (sessionId: string) => void;
197
207
  onGoalArmed?: (armed: boolean) => void;
198
208
  /**
@@ -9,33 +9,6 @@ import type { TaskBoardExtension } from './core/extension.ts';
9
9
  import { type ScheduleMode } from './core/tasks.ts';
10
10
  import { type ModelCatalogView, type VerificationContract, type VerificationSettings } from './core/verification.ts';
11
11
  import type { TaskPermission } from './core/handover.ts';
12
- /** One teammate the Host asks the Agent Teams service to spawn for a team run. */
13
- export interface TeamSpawnInput {
14
- /** Session id of the run's Team Lead (the root task's execution session). */
15
- leadSessionId: string;
16
- /** Immutable lower-kebab-case teammate name, unique inside the Team. */
17
- name: string;
18
- /** Short description of the delegated responsibility. */
19
- description: string;
20
- /** The subtask's execution prompt. */
21
- prompt: string;
22
- }
23
- /** Result of one teammate spawn attempt. */
24
- export interface TeamSpawnResult {
25
- /** The teammate's session id when it reached the active edge. */
26
- sessionId?: string;
27
- /** Why the spawn failed: a thrown call, or a member that settled as failed. */
28
- error?: string;
29
- }
30
- /**
31
- * The Agent Teams capability the Host needs for team-mode runs. The plugin
32
- * builds it from the optional `agentTeams` service; it is absent when this
33
- * deployment does not serve that service, in which case a team run is refused
34
- * instead of silently degrading into a plain cascade.
35
- */
36
- export interface TaskBoardTeamDispatcher {
37
- spawn(input: TeamSpawnInput): Promise<TeamSpawnResult>;
38
- }
39
12
  /**
40
13
  * Why an enforced goal execution settled failed while its acceptance DID run:
41
14
  * attempts were recorded and none of them passed. The judge answered about the
@@ -61,7 +34,7 @@ export declare const NEVER_INVOKED_VERIFICATION_REASON = "goal \u9A8C\u6536\u672
61
34
  */
62
35
  export declare const INVALID_ONLY_VERIFICATION_REASON = "goal \u9A8C\u6536\u65E0\u6548\uFF1A\u672C\u6B21\u6267\u884C\u53EA\u8BB0\u5F55\u4E86\u65E0\u6548\u9A8C\u6536\uFF08\u88C1\u5224\u672A\u80FD\u7ED9\u51FA\u4E0E\u4EFB\u52A1\u8981\u6C42\u5BF9\u5E94\u3001\u4E14\u53EF\u5B9A\u4F4D\u5230\u672C\u6B21\u8BC1\u636E\u7684\u5426\u51B3\u4F9D\u636E\uFF09\uFF0C\u770B\u677F\u5DF2\u505C\u6B62\u8C03\u7528\u88C1\u5224\u3002\u8FD9**\u4E0D\u662F**\u6709\u8BC1\u636E\u7684\u8D28\u91CF\u5224\u8D1F\uFF1A\u9A8C\u6536\u672C\u8EAB\u4E0D\u53EF\u7528\uFF0C\u672C\u6B21\u8FD0\u884C\u56E0\u6CA1\u6709\u5339\u914D\u7684\u901A\u8FC7\u8BB0\u5F55\u800C\u7ED3\u675F\u3002\u8BF7\u68C0\u67E5\u9A8C\u6536\u73AF\u5883\u4E0E\u8BC1\u636E\u53EF\u89C1\u6027\uFF0C\u6216\u7528 task_board_manage(action=reset-verification) \u6E05\u9664\u8BB0\u5F55\u7684\u65E0\u6548\u9A8C\u6536\u540E\u91CD\u65B0\u5B8C\u6210\u76EE\u6807\u3002";
63
36
  /**
64
- * Provenance of one cron-triggered cascade: when the rule fired and the zone
37
+ * Provenance of one cron-triggered run: when the rule fired and the zone
65
38
  * its wall clock was read in. Passed into every launched prompt of that run so
66
39
  * a scheduled job knows its own clock rather than inferring one.
67
40
  */
@@ -119,7 +92,6 @@ export declare class TaskBoardHostService {
119
92
  private preventIdleSleep;
120
93
  private readonly verificationSettings;
121
94
  private readonly verificationCatalog;
122
- private readonly team;
123
95
  private readonly timers;
124
96
  /** Live reader of the global native-/goal switch; frozen per execution. */
125
97
  private readonly goalRunEnabled;
@@ -174,7 +146,6 @@ export declare class TaskBoardHostService {
174
146
  * without remounting the row. Absent means the deployment configures none.
175
147
  */
176
148
  cardDefaults?: () => CardDefaults;
177
- team?: TaskBoardTeamDispatcher;
178
149
  timers?: HostTimerFace;
179
150
  /**
180
151
  * Live GLOBAL native /goal switch (a volatile config read). Read ONCE per
@@ -317,15 +288,6 @@ export declare class TaskBoardHostService {
317
288
  * session, are never refunded.
318
289
  */
319
290
  private refundUnstartedSchedule;
320
- private scheduleTeammate;
321
- /**
322
- * Spawn one teammate inside the Lead session and attach the teammate's
323
- * session to the subtask execution, so the existing session monitor settles
324
- * it from the teammate's own turn like any other execution. A spawn that
325
- * fails settles the subtask as failed immediately, which then folds into the
326
- * Lead's cascade verdict.
327
- */
328
- private spawnTeammate;
329
291
  /**
330
292
  * One roster pass, and whether it could read the session tree.
331
293
  *
@@ -417,18 +379,13 @@ export declare class TaskBoardHostService {
417
379
  private onScheduleFire;
418
380
  private armedSchedules;
419
381
  /**
420
- * Launch one run set. The root goes first and receives the run shape in its
421
- * prompt (which members this run opens, and how they run); every plain-cascade
422
- * member then launches on its own so one refused participant cannot hold the
423
- * others back. A team run's members are spawned inside the root's Lead
424
- * session instead, once that session exists.
382
+ * Launch the one run a run request opened. A run request names one card and
383
+ * opens one execution for it; the card's own session dispatches its subtasks
384
+ * as subagents, so nothing else is enqueued here.
425
385
  *
426
- * Every launch of one run set goes through the admission queue, which admits
427
- * at most `runLaunchWidth` of them at a time — the whole subtree still opens,
428
- * members just enter the running column in batches. Order inside the group is
429
- * the order they are enqueued here, so the root's session always exists before
430
- * any member's, and one member's launch settling (or failing) is what admits
431
- * the next. All members share the one contract this group freezes.
386
+ * The launch still goes through the admission queue, which admits at most
387
+ * `runLaunchWidth` launches at a time — that bound now applies across
388
+ * concurrent runs rather than across the members of one run.
432
389
  */
433
390
  private dispatchRuns;
434
391
  /**