@linxin666/dsh-client-ui-task-board 0.4.16 → 0.4.17

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 (59) hide show
  1. package/README.i18n.yaml +2 -2
  2. package/README.md +16 -36
  3. package/README.zh.md +16 -36
  4. package/lib/client.js +101 -1348
  5. package/lib/client.js.map +1 -1
  6. package/lib/index.js +129 -2528
  7. package/lib/types/client/TaskBoardSettingsCard.d.ts +0 -20
  8. package/lib/types/client/board/status-key.d.ts +0 -15
  9. package/lib/types/client/locales.d.ts +1 -110
  10. package/lib/types/core/controller.d.ts +1 -1
  11. package/lib/types/core/extension.d.ts +4 -5
  12. package/lib/types/core/model-catalog.d.ts +58 -0
  13. package/lib/types/core/reasoning-effort.d.ts +1 -1
  14. package/lib/types/core/tasks.d.ts +0 -45
  15. package/lib/types/core/use-cases/task-update.d.ts +1 -1
  16. package/lib/types/host/llm-dispatch.d.ts +8 -10
  17. package/lib/types/host-ledger.d.ts +0 -28
  18. package/lib/types/host-runner.d.ts +6 -71
  19. package/lib/types/host-service.d.ts +17 -89
  20. package/lib/types/index.d.ts +0 -78
  21. package/lib/types/protocol.d.ts +6 -23
  22. package/package.json +26 -26
  23. package/src/client/TaskBoardSettingsCard.tsx +13 -200
  24. package/src/client/board/ExecutionLog.tsx +2 -5
  25. package/src/client/board/NewTaskModal.tsx +1 -42
  26. package/src/client/board/TaskCard.tsx +2 -7
  27. package/src/client/board/TaskDetail.tsx +2 -37
  28. package/src/client/board/status-key.ts +0 -30
  29. package/src/client/board-settings.module.css +3 -22
  30. package/src/client/board.module.css +1 -104
  31. package/src/client/index.ts +1 -1
  32. package/src/client/locales.ts +6 -224
  33. package/src/core/controller.ts +1 -3
  34. package/src/core/extension.ts +4 -5
  35. package/src/core/model-catalog.ts +114 -0
  36. package/src/core/reasoning-effort.ts +1 -1
  37. package/src/core/store.ts +22 -17
  38. package/src/core/tasks.ts +0 -53
  39. package/src/core/use-cases/task-update.ts +1 -8
  40. package/src/host/agent-tools.ts +1 -15
  41. package/src/host/llm-dispatch.ts +8 -10
  42. package/src/host-ledger.ts +1 -86
  43. package/src/host-routes.ts +4 -4
  44. package/src/host-runner.ts +12 -138
  45. package/src/host-service.ts +51 -266
  46. package/src/index.ts +9 -163
  47. package/src/protocol.ts +8 -43
  48. package/lib/types/client/board/VerificationReport.d.ts +0 -10
  49. package/lib/types/core/verification-budget.d.ts +0 -52
  50. package/lib/types/core/verification.d.ts +0 -753
  51. package/lib/types/host/verification-gate.d.ts +0 -95
  52. package/lib/types/host/verification-runner.d.ts +0 -139
  53. package/lib/types/host/workspace-evidence.d.ts +0 -53
  54. package/src/client/board/VerificationReport.tsx +0 -361
  55. package/src/core/verification-budget.ts +0 -115
  56. package/src/core/verification.ts +0 -1594
  57. package/src/host/verification-gate.ts +0 -487
  58. package/src/host/verification-runner.ts +0 -702
  59. package/src/host/workspace-evidence.ts +0 -176
package/README.i18n.yaml CHANGED
@@ -2,5 +2,5 @@
2
2
  # side as of the last confirmed-consistent state. Both languages carry equal authority;
3
3
  # after editing either side, bring the other along and re-record with:
4
4
  # node scripts/verify-docs.mjs --write <dir>
5
- README.md: 31f9272645c1b7021a8084616cd4434ca6cd4a0f
6
- README.zh.md: 4e7e5dd56415b1bc913d9125a68b73da5ff58a8f
5
+ README.md: 24524734f0ae12aa61494934941b1acbc52ec251
6
+ README.zh.md: a556dbb5c33c3b7ada78f9da0007338990aac4b4
package/README.md CHANGED
@@ -5,21 +5,20 @@ English | [中文](README.zh.md)
5
5
  <p align="center">
6
6
  <img src="https://img.shields.io/npm/v/@linxin666/dsh-task-board?style=flat-square" alt="Version">
7
7
  &nbsp;
8
- <img src="https://img.shields.io/badge/DSH-%3E%3D0.2.2--rc.1-4c6ef5?style=flat-square&amp;labelColor=454a54" alt="DSH">
8
+ <img src="https://img.shields.io/badge/DSH-%3E%3D0.2.2--rc.2-4c6ef5?style=flat-square&amp;labelColor=454a54" alt="DSH">
9
9
  &nbsp;
10
10
  <img src="https://img.shields.io/badge/license-Apache--2.0-blue?style=flat-square" alt="License">
11
11
  </p>
12
12
 
13
13
  <p align="center">
14
14
  <strong>Autonomous Kanban Task Board & Cron Scheduling for DeepSeek Harness (DSH)</strong><br>
15
- <em>Host-Authoritative Ledger · Parent-Card Subtask Dispatch · Double-Blind Verification · Sleep Inhibition · GitHub Issue-to-PR</em>
15
+ <em>Host-Authoritative Ledger · Parent-Card Subtask Dispatch · Sleep Inhibition · GitHub Issue-to-PR</em>
16
16
  </p>
17
17
 
18
- A hot-pluggable DeepSeek Harness (DSH) Web GUI and official desktop client task automation plugin with a Host-authoritative task ledger, real DSH agent session execution, cron background scheduling, cross-platform idle-sleep protection, parent-card subtask dispatch, and automated verification quality gates. It executes unattended background workflows including automated code reviews, routine health checks, and scheduled pipelines without requiring an open browser window. It mounts cleanly via `cordis.patch.yml` and profiles without modifying DSH core code.
18
+ A hot-pluggable DeepSeek Harness (DSH) Web GUI and official desktop client task automation plugin with a Host-authoritative task ledger, real DSH agent session execution, cron background scheduling, cross-platform idle-sleep protection, and parent-card subtask dispatch. It executes unattended background workflows including automated code reviews, routine health checks, and scheduled pipelines without requiring an open browser window. It mounts cleanly via `cordis.patch.yml` and profiles without modifying DSH core code.
19
19
 
20
20
  - Host-authoritative architecture and offline background execution: The browser is merely an asynchronous view; closing tabs or dropping connections will not interrupt Host scheduling, session execution, or atomic ledger settlement. Built-in cross-platform sleep inhibition (macOS, Windows, Linux) allows screens to power down while preventing system idle sleep for reliable unattended automation.
21
21
  - Parent-card dispatch over subtask trees: a task can carry subtasks, one to three levels deep as the deployment allows. Running a card opens one session, that card's own: the Host opens nothing for its subtasks, and that session reads them with `task_board_get`, dispatches them with `subagent` in dependency order, and writes their conclusions back with `task_board_manage` before it finishes. A card whose subtasks are still unfinished runs under the liangshen dispatcher preset.
22
- - Double-blind adversarial judge quality gates (No False Completion): Intercepts false agent completion claims; requires verification by an independent Judge Model using strict coding criteria, a 0.65 threshold, two-round A/B position swapping, and validation against real workspace filesystem diffs, returning actionable diagnostics for self-repair.
23
22
  - Automated GitHub loop, freeze handover, and agent tool surface: Real-time bidirectional GitHub Issues sync automates agent bug fixing and PR creation; supports `<<<FREEZE` session context snapshots with handover packages; exposes 8 native model tools for autonomous planning and external execution registration.
24
23
 
25
24
  ## Features
@@ -27,8 +26,8 @@ A hot-pluggable DeepSeek Harness (DSH) Web GUI and official desktop client task
27
26
  Cards keep multi-line title and description previews with visible metadata. Previews strip Markdown formatting; task details render description and prompt as safe Markdown without raw HTML or automatic remote images, and content taller than about eight rendered lines is clamped to a fixed height with a fade hint and a "Show more" toggle that expands and collapses it, while shorter content renders untouched with no toggle. Stored task text is unchanged. A bracketed title prefix such as `[Bug]:` renders as a type badge, and the description preview skips issue-form boilerplate (checkbox lists, section headings, empty-field placeholders), preferring a summary section when one exists. A left stripe shows the latest run (running, succeeded, failed, cancelled); a card whose column disagrees with that run is labelled as set by hand. Each column shows the time its cards differ by — created in Backlog/To Do, started while running, settled in Done/Failed — read in the Host time zone. The latest execution session opens straight from the card. Every column header toggles compact single-line cards (Done starts compact, the choice is stored in the browser). All five columns and the archive first group cards by provider source — full `owner/repository` labels for GitHub — with unclaimed cards in Local tasks; source groups sort by label and their fold choices persist per browser. Done source groups start collapsed while the other columns and the archive start expanded, and search always reveals matching groups. Done, Failed and the archive nest Today / Last 7 days / Earlier within each source group and fold the oldest group once that source holds more than 30 cards, unless a search is active.
28
27
 
29
28
  - **Task board UI**: the board is the shell's own center-column panel — like the desktop application's Plugins page, it contributes a row to the shell's official sidebar panel list and a page to the layout's center-column seat, so row geometry, the active highlight, the collapsed rail, the label, and language switching are the shell's to own; the board provides five kanban columns, search, task details, archive/restore, execution history, and links to execution transcripts. Every column is reachable by hand, by dragging a card or from the detail view's move menu: the move writes the column and no execution record, so Done or Failed declares work that finished (or failed) outside a tracked run and Running parks work that is under way without a session, while a card the runner is actually executing refuses every move until it settles. Archived tasks are read-only except for restore, delete, and transcript viewing, and cannot run manually or on schedule until restored.
30
- - **Two complementary automation entries**: the shell's official *Automation tasks* page manages reminders and timed prompts in the Host Schedule service, while *Task board* manages cards, subtasks, real Session execution, cron, acceptance, and execution history. Both entries stay available so the user can choose the task shape; the board neither hides nor takes over the official page.
31
- - **Detail layout and folds**: the task detail is two columns on a wide viewport — the left holds the task itself (description, execution prompt, labels, subtasks, frozen snapshot, handover bundle) and the right holds how this run will run (execution settings, scheduled runs, execution history, status); a narrow viewport falls back to one column in the same order. Workspace, agent preset, permission, model, and reasoning effort stay visible, while the three card-level switches (continue in the same conversation, start with /goal, skip this task's acceptance) fold into one "Advanced" row that echoes the switches that are on while it is closed, so the card's shape is readable without expanding it. Scheduled runs and execution history each take one fold row: the schedule row says whether a rule is armed and when it next fires, the history row says how many runs there are and what the latest one did, and the list itself shows the five most recent runs until it is expanded; an acceptance report shows one verdict badge on its row and the verdict, judge route, per-criterion scores, and findings only once expanded. The permission gate and the current status never fold. The view uses three type sizes (title, body, meta), status and result badges share one filled slot scale, and every fold row and button carries a hit target of at least 44 pixels.
29
+ - **Two complementary automation entries**: the shell's official *Automation tasks* page manages reminders and timed prompts in the Host Schedule service, while *Task board* manages cards, subtasks, real Session execution, cron, and execution history. Both entries stay available so the user can choose the task shape; the board neither hides nor takes over the official page.
30
+ - **Detail layout and folds**: the task detail is two columns on a wide viewport — the left holds the task itself (description, execution prompt, labels, subtasks, frozen snapshot, handover bundle) and the right holds how this run will run (execution settings, scheduled runs, execution history, status); a narrow viewport falls back to one column in the same order. Workspace, agent preset, permission, model, and reasoning effort stay visible, while session reuse (continue in the same conversation) folds into one "Run Mode" row that echoes whether it is enabled while closed, so the card's shape is readable without expanding it. Scheduled runs and execution history each take one fold row: the schedule row says whether a rule is armed and when it next fires, the history row says how many runs there are and what the latest one did, and the list itself shows the five most recent runs until it is expanded. The permission gate and the current status never fold. The view uses three type sizes (title, body, meta), status and result badges share one filled slot scale, and every fold row and button carries a hit target of at least 44 pixels.
32
31
  - **Continuation cards (data plane)**: a new task may paste a `<<<FREEZE ... >>>FREEZE` block from a session; it parses into a goal/progress/next snapshot persisted with the task (ledger v3). Cards carry a frozen badge, the detail view shows the full snapshot and freeze time, search covers snapshot text, and archive/restore matches plain tasks. The snapshot reuses the freeze security gate at the protocol layer: sensitive patterns become `[REDACTED]` with a marker, slash-prefixed command lines reject the whole snapshot, and each field is capped at 8 KiB.
33
32
  - **Handover bundles and the permission confirmation gate**: a continuation card may attach a handover bundle — the pinned execution triplet (workspace / agent preset / permission) plus doc/script references. The bundle's triplet overrides the plain pin fields at execution, and the references ride the prompt as a handover preamble. A binding whose effective permission is above the deployment's permission baseline — the Host's own default permission preset unless the profile pins `sessionDefaultPermission` — is unconfirmed: manual run refuses, cron skips the card and rolls to the next occurrence, and the confirm button in the task detail resolves the binding; any later permission or bundle change re-arms the gate.
34
33
  - **Claim provenance wrap and source audit**: executing a continuation card (a card with a frozen snapshot) mandatorily wraps the task instruction in a source-declaration template — freeze instant, source session, and an unreviewed-content warning — composed after the handover preamble so the picking-up agent stays wary of stored prompt injection in card text. The session issuing a create/update action is stamped into the snapshot (frozenBy, re-stamped when the snapshot is replaced), and the session issuing a run/rerun lands on the execution record (initiatedBy) together with a captured copy of the freeze provenance; both are visible in the task detail. The initiator is client-asserted audit metadata, not a trust boundary.
@@ -42,10 +41,8 @@ Cards keep multi-line title and description previews with visible metadata. Prev
42
41
  - **Card attachments (issue #1979)**: a card may carry up to eight files and images. The create and edit forms accept them three ways — drag and drop, paste, and the file picker — and a picked file stays a LOCAL preview until the card is saved: the upload happens on save, so a card the user abandons leaves no stored object behind. The drop area is focusable and keyboard-operable, and the removal controls are disabled while a save is in flight. An image is stored as a raster image and travels with the execution as an image part of the prompt, placed after the text part; any other file is stored verbatim and reaches the execution session as a readable host path in a read-only attachment section of its own, separate from the handover references. The card keeps METADATA only — the kind, the stored identifier, the name, the size, the media type, the digest of the exact stored bytes, and the pixel size of an image — never the bytes, never base64, never a data URL. The display name is always one canonical line without any path part, so it can neither break the prompt nor point at a directory. Before the ledger commits an attachment, the Host proves the claim against the official attachment storage: an image is read back and compared, a file is streamed and its digest recomputed, and a reference the storage cannot prove refuses the whole action, so a spoofed client claim never becomes a stored fact. Every execution resolves the attachments afresh, and a route that declares it cannot read images refuses the run before the prompt is queued. The board's limits are eight attachments per card, 10 MiB per attachment and 32 MiB per card; a deployment whose own attachment storage is stricter — including its per-message image budget — lowers the published limit, and the Host enforces that budget both when it writes the card and when the execution resolves it. One stored object is claimed once: the same content never appears twice on a card.
43
42
  - **Host-authoritative ledger**: tasks, schedules, and execution records live in `$DSH_HOME/task-board/ledger-v2.json`; browser actions become confirmed Host transactions.
44
43
  - **Bounded execution history**: each task keeps the most recent 20 execution records; the oldest runs are trimmed when a new run starts, so ledger size and write cost stay bounded regardless of how often a task has run.
45
- - **Real execution**: manual and scheduled runs use the same Host runner, which by default creates a fresh session, renames it, applies the agent preset and `/permission <id>`, then queues the task prompt.
46
- - **Goal-driven runs (opt-in per card, on top of the global switch)**: the GLOBAL native `/goal` switch (below, off by default) is the master control; with it on, and only when a card opts in through its detail-view checkbox (the new-task dialog starts unchecked), the runner queues the task prompt and then arms dsh's built-in `/goal` with that same composed prompt as the objective. dsh's goal-round driver keeps starting continuation rounds in the session until the agent marks the goal complete, and the board keeps the execution in `running` until the goal leaves its active phase: a completed goal settles the run as succeeded, a blocked one fails it with the goal's own reason. The option is per task (`goalRun`, absent means off, so a card that never touched it runs one plain turn) and is available to `task_board_create`/`task_board_update` too. The checkbox is always operable: the master switch decides whether the preference takes effect, never whether it can be stated, and it never rewrites the stored value.
47
- - **Goal acceptance (on by default)**: a task executed in goal form must pass ONE acceptance before `update_goal(action: complete)` may take effect, because the board gates that call on the official tool pre-execute lifecycle instead of trusting the agent's own report. Acceptance runs the default final acceptance of the installed `dsh-llm-verifier` (MIT): the three coding criteria (Specification Adherence, Output Match, Error Signal Detection), a 0.65 threshold applied to the total AND to every criterion, two judge rounds per criterion with the A/B slots swapped and averaged, the task's real trajectory (tool calls, their output, assistant prose) judged against the empty-work baseline, the work must beat that baseline, and — when the deployment records workspace changes — the HOST's own record of what the run changed on disk (file list with added/deleted counts and bounded per-file comparisons) is attached as the prompt's reference context so a described-but-unapplied patch cannot pass. A veto is booked as a quality verdict only when it can be LOCATED: every criterion that makes the run fail must arrive with a structured finding naming the requirement it imposes, the observation that falls short, the difference, and a verbatim citation of the task, the work's own trajectory or the host's workspace record. A rejecting answer with no finding, a generic or empty finding, a citation that does not occur in the reviewed evidence, a citation of the empty-work baseline, and a criterion failed without its own evidence are recorded as an INVALID acceptance instead: they spend no quality budget, do not fail the card, and are bounded separately (two), after which the board stops calling the judge and holds the card for a human. A run whose only records are invalid ends for lack of a matching pass, but with its own terminal reason that states the acceptance was unusable and explicitly denies being an evidence-backed quality veto. A judge that could not see the output because the trace was truncated is treated the same way, because insufficient evidence is not a failure of the work. One execution may accept twice: the first failure returns the total, the per-criterion scores and the located findings to the fixing agent, the second failure ends that execution as failed. Once an execution PASSES and settles, the acceptance-only detail (its findings and structured citations) is removed automatically and only a lightweight audit credential remains — verdict, scores, time, judge route, evidence hash and a one-line problem summary. Nothing outside that execution's own acceptance record is touched, a failed or invalid execution keeps everything a repair or a review needs, the removal is idempotent, and a cleanup that fails is recorded and retried on the next Host start without ever revoking the pass. The budget lives on the execution record, so a repeated completion call, a new goal round, a plugin reload and a Host restart all reuse the same cycle, while a rerun or a scheduled occurrence is a new execution with its own budget. An anomaly (timeout, authentication failure, unparseable judge answer, unresolvable judge route) is recorded separately from a quality verdict and never consumes the quality budget. Exhausting the anomaly budget does NOT fail the card: a judge route that cannot answer is the environment failing, not the work, so the cycle is held open with no further judge call until a user clears the recorded anomalies through `task_board_manage(action: reset-verification)`. An attempt that the acceptance time budget ends before any verdict is recorded as its own stage, spends no budget at all and also fails nothing. Both ceilings are settings (`goalVerificationCallTimeoutSeconds`, `goalVerificationBudgetSeconds`), read live, and a judge call is never opened when the time left cannot hold it. The running column shows executing / verifying / fixing, and each execution's row carries its verdict, judge model and level, count, scores with thresholds, findings, evidence scope and token usage. Forced acceptance also keeps the old fallback paths honest: a paused goal, an unreadable projection, a completed turn and a manual settle can no longer settle a goal execution as succeeded without a matching pass record. A failure carrying acceptance records means the judge answered and the work did not pass, while a failure with no acceptance record at all is reported as its own reason: the gate never opened because the session never called `update_goal(action: complete)` — often a session that narrated completion in prose — so nothing was ever judged and the delivery was never rejected. **A single card can opt out of the gate**: the new-task form and the task detail both carry a Skip acceptance checkbox (off by default, a card-level option like Continue in the same conversation and Start with /goal), and a checked card no longer intercepts its completion claim in goal form. The execution records `applicability: skipped` and the report says the CARD skipped acceptance, which is a different fact from the board-wide switch being off and is reported as such. It applies only to executions started afterwards, so flipping it mid-run never rewrites the rule judging a run already in flight.
48
- - **Task reasoning effort**: the task model picker exposes a reasoning-effort selector when the selected model declares supported levels in the Host model catalog. Leaving it blank inherits the model/Host default; only that model's declared levels are offered. The task stores its choice and applies it when selecting the execution model, including a reused session. This setting is separate from the acceptance judge's reasoning effort.
44
+ - **Real execution**: manual and scheduled runs use the same Host runner, which by default creates a fresh session, renames it, applies the agent preset and `/permission <id>`, queues the task prompt as a plain single-turn run, and settles the execution from that turn's result.
45
+ - **Task reasoning effort**: the task model picker exposes a reasoning-effort selector when the selected model declares supported levels in the Host model catalog. Leaving it blank inherits the model/Host default; only that model's declared levels are offered. The task stores its choice and applies it when selecting the execution model, including a reused session.
49
46
  - **Optional session reuse**: a task can opt into continuing in its previous execution's session (issue #1419). Reuse happens only when that session is idle and still present in the runtime roster — the Host then re-applies the pinned permission and model on it and queues the prompt, keeping the conversation title and history; otherwise the run mints a fresh session as before, so an unknown roster or a busy session never blocks a scheduled run. The roster read is taken for the launch itself, so a board that has been idle reuses a session that has been idle all along instead of refusing it.
50
47
  - **Idle-aware session polling (issue #1821)**: the Host reads the DSH session roster only while the board has something that roster can decide — an execution to inspect, or a card parked in the running column whose verdict may arrive from a settle this process never saw. An empty board with no running card, no open execution and no enabled schedule polls nothing at all, so an idle Host no longer rebuilds every persisted session row (string conversion, object allocation, one stat per record) on a fixed heartbeat. The cadence that governs a busy board is the `sessionPollSeconds` setting, and a roster read that fails or stays unknown backs off on a doubling delay up to one minute, so a session tree that is down is not hammered at the poll interval.
51
48
  - **Fail-closed pins**: a missing workspace, missing or broken preset, or rejected permission command fails before the task prompt is sent.
@@ -64,7 +61,7 @@ Cards keep multi-line title and description previews with visible metadata. Prev
64
61
  The board view renders on first open and keeps its local view state when closed and reopened. Host synchronization, scheduling and execution remain active independently of the view.
65
62
 
66
63
  - `src/index.ts` mounts the Host service through the official `@deepseek-ai/dsh-api-gateway`, `@deepseek-ai/dsh-workspace`, and `@deepseek-ai/dsh-host-webserver` SDKs.
67
- - `src/host-ledger.ts` serializes actions and persists `{ schemaVersion: 6, revision, tasks, scheduler, recentRequests }` through a temporary file plus atomic rename.
64
+ - `src/host-ledger.ts` serializes actions and persists `{ schemaVersion: 7, revision, tasks, scheduler, recentRequests }` through a temporary file plus atomic rename.
68
65
  - `src/host-service.ts` owns schedule firing (a single timer armed at the ledger's nearest target through the host's `timer` service, falling back to process timers when the host serves none), missed-trigger skipping, runner launch, restart reconciliation, and power reasons; the ledger itself owns the run budget, so a one-shot or an exhausted capped rule can never be opened a second time.
69
66
  - `src/client/native-panel.tsx` registers the board's sidebar row and center-column page (the official `sidebar.panellist` list seat and the keyed `main` seat) and maintains the center-column exclusivity protocol with the ssh panel.
70
67
  - `src/client/host-api.ts` imports legacy browser data once, submits idempotent actions, and treats Host snapshots as the only confirmed UI state.
@@ -106,7 +103,7 @@ dsh plugin --profile web add link:$(pwd)/packages/dsh-task-board
106
103
 
107
104
  ## Configuration
108
105
 
109
- This plugin's settings card groups its options into collapsible sections — the board and its runtime behavior, task acceptance, new-card defaults, and the section a provider extension contributes (the GitHub Issues integration). Every section starts collapsed. A change takes effect as it is made: a pick is written at once, and a typed value once typing pauses, on Enter, or when the field is left; Escape puts the stored value back.
106
+ This plugin's settings card groups its options into collapsible sections — Basics, New-card defaults, and the section a provider extension contributes (the GitHub Issues integration). Every section starts collapsed. A change takes effect as it is made: a pick is written at once, and a typed value once typing pauses, on Enter, or when the field is left; Escape puts the stored value back.
110
107
 
111
108
  | Key | Default | Behavior |
112
109
  | --- | --- | --- |
@@ -121,12 +118,6 @@ This plugin's settings card groups its options into collapsible sections — the
121
118
  | `sessionPollSeconds` | `5` | How often, in seconds, the Host re-reads the DSH session roster while the board has something to reconcile: a running card or an open execution. An idle board with neither does not poll at all. Range 1 to 300; a shorter interval settles runs sooner and costs the Host more. |
122
119
  | `runLaunchWidth` | `3` | How many run launches may be in flight at once, 1 to 16. It only matters when several cards want to run at the same moment — a manual run, a re-run and a due occurrence alike: that many executions are admitted to create their session and queue their prompt, and the rest wait their turn, round-robin across runs and FIFO inside one. Running a single card opens one session, so this value never changes the shape of one run. The default follows this repository's measured guidance for heavy implementation subagents (at most three). Read at each admission, so a live edit bounds the launches that have not been admitted yet. |
123
120
  | `spendBudgetTokens` | `0` | Daily token ceiling for the work this board dispatches. `0` means no gate, and the board then reads no ledger and counts nothing at all. The unit is tokens because the usage ledger prices only DeepSeek's own routes and reports 0 for every other route. Measured against the family usage ledger's local-date bucket: a manual run or re-run whose day already spent the cap is refused, and the caller sees that message as its board-refused reason; a due schedule records the refusal on the scheduler error and skips the occurrence without spending a planned run, so raising the cap or the local day rolling over admits the next trigger. Read at each gate, so an edit binds the next run without a restart. |
124
- | `goalRunEnabled` | `false` | GLOBAL native `/goal` switch. While off, every card runs one plain turn and the board never arms dsh's built-in `/goal`; a run uses native `/goal` only when this is on AND the card's own Start with /goal option is checked (that option is off by default). The value is frozen when an execution starts, so a live edit only affects executions that begin afterwards, and a card's stored `goalRun` preference is never rewritten. Such a run is recorded as `goal-disabled`: it is neither reported as accepted nor failed for lacking a completion call. Independent of `goalVerification`. |
125
- | `goalVerification` | `true` | Goal acceptance for executions this board starts. When on, `update_goal(action: complete)` inside a task execution is refused until an acceptance pass is recorded for that execution. Only goal-form executions are affected: plain chat and a card that did not opt into `goalRun` are untouched. A single card can opt out of the gate on its own with the Skip acceptance checkbox (below). |
126
- | `goalVerificationModel` | `''` (inherit) | Judge model route as `provider/model`. Blank inherits the HOST model catalog default — never the card's pinned execution model. |
127
- | `goalVerificationReasoningEffort` | `''` (inherit) | Judge reasoning level. Blank inherits the host default level; a level the resolved model does not declare is never sent, and the fallback to that model's own default is recorded and shown. |
128
- | `goalVerificationCallTimeoutSeconds` | `150` | Ceiling of ONE judge request of an acceptance, in seconds (range 30 to 600). One acceptance issues six judge requests, so a ceiling too small for the judge model turns a slow but healthy route into a wall of timeouts. |
129
- | `goalVerificationBudgetSeconds` | `1200` | Total ceiling of ONE acceptance attempt, in seconds (range 120 to 1800), covering evidence rendering and every judge call including retries. Keep it at or above the per-call ceiling times six or the acceptance can never finish; an attempt that runs out is recorded as a budget stop that judges nothing and spends no budget. |
130
121
  | `cardDefaultMode` | `''` (no default) | Agent preset a newly created card starts from. Blank pins nothing, so the card follows the deployment default as before. |
131
122
  | `cardDefaultPermission` | `''` (no default) | Permission a newly created card starts from. It may sit above the session permission baseline: it is a prefill, so an above-baseline binding still needs a human confirmation before the card runs. |
132
123
  | `cardDefaultModel` | `''` (no default) | Execution model (`provider/model`) a newly created card starts from. Blank pins nothing and makes `cardDefaultReasoningEffort` inert. |
@@ -145,14 +136,13 @@ On macOS the backend starts `/usr/bin/caffeinate -i -w <host-pid>` and never req
145
136
  ## Data storage and migration
146
137
 
147
138
  - The authoritative ledger file is `$DSH_HOME/task-board/ledger-v2.json` (the file name is historical); the current document schema is v7, and an older document (v2, v3, v4, v5 or v6) is migrated losslessly in place on the next Host start. New POSIX files use mode `0600`; Windows inherits the user directory ACL.
148
- - v5 adds the per-execution acceptance block (`verification`). The migration deliberately does NOT stamp one, so an execution opened before v5 keeps settling on its historical verdict and no in-flight run is retroactively judged by a gate that was never armed for it. A malformed block is dropped (that execution is then treated as unverified — fail closed), and an imported execution record never carries one, because a fabricated pass record must not let imported work look accepted.
149
139
  - v6 adds the schedule plan type and the run budget, and v7 adds the card attachment metadata (`attachments`). Both are additive: a card written before the field existed keeps running exactly as it did, and a malformed attachment list is repaired entry by entry (unusable entries dropped, count and byte caps applied) instead of dropping the task row. The legacy browser import does NOT accept attachments: a v1 export never carried one, so a document claiming one is refused rather than let past the storage check.
140
+ - Legacy goal-run and acceptance fields (`goalRun` and `skipVerification` on task rows, and the `verification` block introduced on execution rows in historical schema v5) are retired without bumping the v7 ledger schema: on load, the ledger ignores and drops those fields instead of rejecting the row, never writes them back, and preserves every task row and historical execution record intact.
150
141
  - A v2 to v3 migration failure (structurally invalid task rows) fails closed with an explicit error and keeps the original file untouched; it never restarts from an empty ledger silently. A corrupt or unsupported-schema file is moved to a collision-resistant `ledger-v2.json.corrupt-*` name and the Host starts with an empty ledger plus a visible scheduler error. The corrupt bytes are not overwritten.
151
142
  - On the first upgraded page load for an origin, `dsh.taskBoard.v1` is imported by stable source and request ids. Tasks merge by id, strictly newer browser top-level fields win, equal timestamps keep Host fields, and execution records merge by execution id.
152
143
  - The most recent 256 request ids and SHA-256 action fingerprints are stored with the ledger, so a retried mutation remains idempotent after a Host restart without duplicating full action payloads.
153
- - An external-outcome execution record adds one optional boolean (`external`). A ledger written before it existed carries none, and the loader neither invents one nor treats an absent field as external, so old documents read back unchanged; a non-boolean value is dropped rather than trusted as provenance. The ledger stays at v5: the field is absent from every existing row, which is exactly the additive change the v5 migration already describes.
144
+ - An external-outcome execution record adds one optional boolean (`external`). A ledger written before it existed carries none, and the loader neither invents one nor treats an absent field as external, so old documents read back unchanged; a non-boolean value is dropped rather than trusted as provenance. It needed no schema bump because the field is absent from every pre-existing row.
154
145
  - Task labels are an optional `tags` field on the task row (`{ name, promptPrefix? }[]`) and needed no schema bump: a v3 document without it loads unchanged, and a malformed list is repaired entry by entry (blanks, repeats, and over-long names dropped, count capped) rather than dropping the task row.
155
- - The goal opt-in is an optional `goalRun` field on the task row and needed no schema bump either: absent means off, an explicit `true` is the opt-in, and a stray `false` is repaired back to absent on load.
156
146
  - The import marker `dsh.taskBoard.v2.hostImported` stores the confirmed Host ledger generation only after import succeeds. A new or recovered ledger generation is offered the retained v1 data again. The v1 localStorage value remains untouched as a read-only rollback copy.
157
147
  - One Host process owns a task-board ledger directory at a time through `$DSH_HOME/task-board/ledger-v2.lock`; a second Host using the same DSH home fails closed instead of concurrently writing the ledger.
158
148
 
@@ -186,12 +176,11 @@ Set `DSH_POWER_SMOKE=1` to opt into the native helper smoke test on Windows, mac
186
176
  1. Mount the package, restart `dsh web`, open the task board, and confirm the Host time zone and power status are visible.
187
177
  2. Create and edit a task; refresh or open a second same-origin tab and confirm both show the same Host revision.
188
178
  3. Run a task with pinned workspace, preset, and permission; confirm a new session appears and the task settles from its `turn/end` history.
189
- 4. Run a task with the /goal option checked: confirm the session starts a goal and the card stays in `running` across continuation rounds until the goal completes, then settles as succeeded. Uncheck the option and confirm the next run is a single turn that settles from one `turn/end`.
190
- 5. Enable a near-future cron, close all browser pages, and confirm the Host still creates and settles exactly one execution. Then arm a one-shot at a near-future instant and confirm exactly one execution is created and the rule reads as ended; set a recurring rule's run limit to 2 and confirm the third occurrence creates nothing.
191
- 6. Stop the Host past a cron occurrence, restart it, and confirm the missed occurrence is skipped and `nextRunAt` rolls forward from current Host time.
192
- 7. Enable `preventIdleSleep`, run a long session, and let the display turn off; after restoring the display, confirm the session continued and the execution settled.
193
- 8. Disable the setting and all schedules, stop DSH, and confirm the helper exits; on macOS, `pmset -g assertions` should show no display-sleep assertion from this plugin.
194
- 9. On Linux, use `systemd-inhibit --list` to confirm that only an `idle`/`block` entry exists; the display should still follow desktop settings, while manual sleep and lid close remain under system policy.
179
+ 4. Enable a near-future cron, close all browser pages, and confirm the Host still creates and settles exactly one execution. Then arm a one-shot at a near-future instant and confirm exactly one execution is created and the rule reads as ended; set a recurring rule's run limit to 2 and confirm the third occurrence creates nothing.
180
+ 5. Stop the Host past a cron occurrence, restart it, and confirm the missed occurrence is skipped and `nextRunAt` rolls forward from current Host time.
181
+ 6. Enable `preventIdleSleep`, run a long session, and let the display turn off; after restoring the display, confirm the session continued and the execution settled.
182
+ 7. Disable the setting and all schedules, stop DSH, and confirm the helper exits; on macOS, `pmset -g assertions` should show no display-sleep assertion from this plugin.
183
+ 8. On Linux, use `systemd-inhibit --list` to confirm that only an `idle`/`block` entry exists; the display should still follow desktop settings, while manual sleep and lid close remain under system policy.
195
184
 
196
185
  ## Known limitations
197
186
 
@@ -207,15 +196,6 @@ Set `DSH_POWER_SMOKE=1` to opt into the native helper smoke test on Windows, mac
207
196
  - Host execution consumes the same API quota as an ordinary DSH agent session.
208
197
  - Running a card opens one session, its own, and that session dispatches the unfinished subtasks with subagents inside it: a card with many subtasks consumes the quota of every subagent it dispatches, while the board itself opens nothing extra. A subtask whose conclusion is never written back inherits the parent run's verdict, which records the parent's judgement rather than a separate execution of that card.
209
198
  - Agent tool calls are model-driven: a run or a scheduled execution started from a conversation consumes the same API quota, and an agent can arm a schedule that keeps firing until it is disarmed or the board is switched off.
210
- - A goal run keeps working for as many rounds as the objective needs: every round consumes API quota, and the session stays busy until the goal completes or dsh blocks it (round limit, a rejected round, or a failed queue), which the board reports as a failed execution.
211
- - Goal mode needs the runtime's `/goal` command and a command dispatcher. A deployment that serves neither still runs every card as a single turn; the host log reports that the goal was unavailable instead of failing the run.
212
-
213
- - Acceptance spends model requests: one acceptance is three criteria times two rounds (six judge requests), and one execution may accept twice, so a goal cycle that needs its one repair costs up to twelve extra requests on top of the work itself.
214
- - No cost estimate is shown for an acceptance: this deployment exposes no reliable per-token price for the resolved judge route, so the report lists tokens only.
215
- - The host-observed workspace-change block appears only when the deployment records changes and the read succeeds; an unavailable service or a failed comparison degrades the evidence to the trajectory alone rather than failing the acceptance.
216
- - Acceptance is enforced only where it can be: a run that never became a goal run (`/goal` refused or unavailable, or the global switch off) is not gated, and its record says so explicitly instead of implying it was verified; a teammate record left by a historical team run carries no acceptance either. A global-switch run is marked `goal-disabled` — its own reason, distinct from a refused command — so it is never read as a passed acceptance either. A deployment that serves no model catalog cannot resolve a judge route, so a completion claim is refused and recorded as an acceptance anomaly; once the anomaly budget is spent the card is held open rather than failed, and recovering needs a user to clear the anomalies.
217
- - The first version always judges with the coding criteria: there is no automatic rubric selection, so a non-coding task is judged by engineering criteria (the settings copy states this).
218
- - If a third-party verifier (for example the installed `dsh-llm-verifier`) also enables its own automatic acceptance, both judges score the same session independently: this board's acceptance gates completion while the other only steers, and no public SDK interface lets them share one verdict. Turning that plugin's automatic mode off is the only reliable way to avoid paying for two judgments.
219
199
  - The official attachment storage has no deletion API. Removing an attachment from a card, or deleting the card itself, removes the METADATA only: the stored object stays in the deployment's attachment storage. The board neither promises a physical deletion nor works around one.
220
200
  - A non-image attachment reaches the execution session as a readable host path, so the session can only read the file when the deployment's attachment storage is host-file-backed. A deployment whose storage hands out no readable path fails the run with that reason instead of silently running the card without its attachment.
221
201
  - An image attachment needs a model route that accepts image input. The board asks the official model service about the route the run really uses (the card's pin, or the current route of a reused session); a route that declares its modalities and excludes images refuses the run before the prompt is queued. A route whose modalities cannot be read is treated as unknown and allowed, and a route the board cannot resolve at all skips this preflight — in both cases the official Host check remains the fallback.
package/README.zh.md CHANGED
@@ -5,21 +5,20 @@
5
5
  <p align="center">
6
6
  <img src="https://img.shields.io/npm/v/@linxin666/dsh-task-board?style=flat-square" alt="Version">
7
7
  &nbsp;
8
- <img src="https://img.shields.io/badge/DSH-%3E%3D0.2.2--rc.1-4c6ef5?style=flat-square&amp;labelColor=454a54" alt="DSH">
8
+ <img src="https://img.shields.io/badge/DSH-%3E%3D0.2.2--rc.2-4c6ef5?style=flat-square&amp;labelColor=454a54" alt="DSH">
9
9
  &nbsp;
10
10
  <img src="https://img.shields.io/badge/license-Apache--2.0-blue?style=flat-square" alt="License">
11
11
  </p>
12
12
 
13
13
  <p align="center">
14
14
  <strong>DeepSeek Harness(DSH)官方 Web GUI 与桌面客户端自动化任务管理与长程后台执行引擎</strong><br>
15
- <em>Host 权威事务账本 · 父卡自治派发子任务 · 对抗式双盲裁判验收 · 离线 Cron 与防休眠电源保护 · GitHub Issue-to-PR 闭环</em>
15
+ <em>Host 权威事务账本 · 父卡自治派发子任务 · 离线 Cron 与防休眠电源保护 · GitHub Issue-to-PR 闭环</em>
16
16
  </p>
17
17
 
18
- 一个高可用、可热插拔的 DeepSeek Harness (DSH) Web GUI 与官方桌面客户端任务自动化插件,提供 Host 权威任务账本、真实 DSH 会话自动化执行、Cron 表达式后台定时调度、跨平台空闲睡眠保护、父卡自治派发子任务与自动化质量验收门禁。用户无需常驻浏览器,即可在后台无人值守运行代码巡检、健康检查与定时自动化流水线。插件只通过 `cordis.patch.yml` 与 profile 机制挂载,零修改侵入 DSH 官方源码。
18
+ 一个高可用、可热插拔的 DeepSeek Harness (DSH) Web GUI 与官方桌面客户端任务自动化插件,提供 Host 权威任务账本、真实 DSH 会话自动化执行、Cron 表达式后台定时调度、跨平台空闲睡眠保护与父卡自治派发子任务。用户无需常驻浏览器,即可在后台无人值守运行代码巡检、健康检查与定时自动化流水线。插件只通过 `cordis.patch.yml` 与 profile 机制挂载,零修改侵入 DSH 官方源码。
19
19
 
20
20
  - 宿主权威架构与离线后台执行:浏览器仅为异步视图,关闭页面或断网不影响 Host 调度、会话执行与原子账本结算;内置跨平台防休眠电源管理(macOS/Windows/Linux),允许显示器息屏同时阻止整机闲置休眠,确保无人值守长程自动化。
21
21
  - 树状子任务的父卡自治派发:任务可以带子任务,深度按部署设置 1 到 3 层。执行一张卡只开它自己的一个会话:Host 不为子任务开任何会话,这个会话自己用 `task_board_get` 读子卡、用 `subagent` 按依赖顺序派发、完工前用 `task_board_manage` 回填结论。还有未完成子任务时,这次执行改用梁神(liangshen)派发预设。
22
- - 对抗式双盲质量验收门禁(No False Completion):拦截 Agent 虚假完工自述,必须经由独立裁判模型沿用严苛 Coding 判据与 0.65 阈值进行 A/B 位置轮换打分,结合真实工作区磁盘 Diff 行级变更进行质检验收,带结构化问题反馈闭环自愈。
23
22
  - 全自动 GitHub 闭环、冻结交接与智能工具面:无缝双向同步 GitHub Issues,自动驱动 Agent 修复并创建关联 PR;支持 `<<<FREEZE` 会话上下文安全快照与交接包;提供 8 项面向模型的原生工具,支持 Agent 自主规划与外部执行结果登记。
24
23
 
25
24
  ## 功能
@@ -27,8 +26,8 @@
27
26
  卡片保留多行标题、描述预览及可见的元数据。预览去除 Markdown 标记,详情中的描述与 Prompt 按安全 Markdown 渲染,不执行原始 HTML 或自动加载远程图片;超过约八行的内容默认按固定高度钳制并带渐隐提示,点「展开全文」展开、可再收起,未超出的内容原样渲染且无切换按钮。任务原文保持不变。标题开头的方括号前缀(如 `[Bug]:`)渲染为类型徽章,描述预览跳过 Issue 表单的模板内容(勾选列表、小节标题、空字段占位),存在摘要类小节时优先取它。卡片左侧色条显示最近一次执行(运行中、成功、失败、取消);所在列与该次执行不一致的卡片标注为手动结算。每列显示能区分卡片的时间——待规划/待办为创建时间、运行中为开始时间、已完成/已失败为结算时间——按 Host 时区读取。最近一次执行的会话可直接从卡片打开。每个列头都可切换紧凑单行卡片(已完成列默认紧凑,选择保存在浏览器中)。五个主列与归档先按提供方来源分组——GitHub 显示完整 `owner/repository`——未被提供方认领的卡片进入「本地任务」组;来源组按名称排序,折叠选择按浏览器保存。已完成的来源组默认折叠,其他主列与归档默认展开,搜索总会露出命中的分组。已完成、已失败与归档在每个来源组内部再按「今天 / 近 7 天 / 更早」分组,该来源超过 30 张卡时折叠最早一组,搜索时不折叠。
28
27
 
29
28
  - **任务看板 UI**:看板是 shell 自己的中栏面板——它像桌面版【插件】页那样,向 shell 的官方侧栏面板列表贡献一行、向布局的中栏座位贡献一页,因此行的几何、选中高亮、折叠 rail、标签与语言切换都由 shell 统一负责;看板提供五列布局、搜索、任务详情、归档/恢复、执行历史和执行会话跳转。五列都可以手工切换:拖拽卡片或从详情页的「移动到…」菜单切换状态,只写列、不产生执行记录——「已完成」「已失败」声明工作在受追踪的执行之外结束(或失败),「进行中」则表示工作正在进行但没有对应会话;真正在执行中的卡片在结算前拒绝任何移动。归档任务除恢复、删除和查看 transcript 外保持只读,恢复前不能手动或定时执行。
30
- - **两个互补的自动化入口**:shell 官方「自动化任务」页管理 Host Schedule 服务里的提醒与定时提示;「任务看板」管理卡片、子任务、真实会话执行、cron、验收与执行历史。两个入口同时保留,用户可按任务形态选择,看板不会隐藏或接管官方页面。
31
- - **任务详情的布局与折叠**:任务详情在宽视口上是双栏——左栏是任务本身(描述、执行 Prompt、标签、子任务、冻结快照、交接包),右栏是这次执行会怎么跑(执行设置、定时运行、执行记录、状态);窄视口按同一顺序退回单栏。执行设置里的工作区、Agent 预设、权限、模型与思考档位常驻可见,三个卡片级开关(同一对话继续、以 /goal 开始执行、跳过本任务的验收)收进一行「高级设置」,收起时在行上回显已开启项,因此不展开也知道这张卡会怎么跑。定时运行与执行记录各占一行折叠:定时行说明是否启用与下次触发时刻,执行记录行说明次数与最近一次结果,记录本身默认只列最近五次,展开才看全部;每条记录里的验收报告在行上只给一个结论徽标,展开后才是判定、裁判路由、逐项分数与问题反馈。权限确认门与当前状态不折叠。视图内字号只有三档(标题、正文、元信息),状态与结果徽标共用一套填充色槽位,折叠行与按钮的命中区不小于 44 像素。
29
+ - **两个互补的自动化入口**:shell 官方「自动化任务」页管理 Host Schedule 服务里的提醒与定时提示;「任务看板」管理卡片、子任务、真实会话执行、cron 与执行历史。两个入口同时保留,用户可按任务形态选择,看板不会隐藏或接管官方页面。
30
+ - **任务详情的布局与折叠**:任务详情在宽视口上是双栏——左栏是任务本身(描述、执行 Prompt、标签、子任务、冻结快照、交接包),右栏是这次执行会怎么跑(执行设置、定时运行、执行记录、状态);窄视口按同一顺序退回单栏。执行设置里的工作区、Agent 预设、权限、模型与思考档位常驻可见,会话复用(同一对话继续)收进一行「运行方式」,收起时在行上回显是否已开启,因此不展开也知道这张卡会怎么跑。定时运行与执行记录各占一行折叠:定时行说明是否启用与下次触发时刻,执行记录行说明次数与最近一次结果,记录本身默认只列最近五次,展开才看全部。权限确认门与当前状态不折叠。视图内字号只有三档(标题、正文、元信息),状态与结果徽标共用一套填充色槽位,折叠行与按钮的命中区不小于 44 像素。
32
31
  - **续接卡片(数据面)**:新建任务时可粘贴会话输出的 `<<<FREEZE … >>>FREEZE` 冻结块,解析为「目标/进度/下一步」快照随任务持久化(v3 账本);卡片带冻结徽标,详情页可读完整快照与冻结时间,搜索覆盖快照文本,归档/恢复与普通任务一致。快照在协议层复用冻结安全门:敏感模式自动替换为 `[REDACTED]` 并标记、以 `/` 开头的命令行整体拒绝、每字段 8 KiB 上限。
33
32
  - **交接包与权限确认门**:续接卡片可附交接包——钉住三元组(工作区/agent 预设/权限)加文档与脚本引用。执行时交接包三元组覆盖普通钉住字段,引用以交接前言随 Prompt 下发。有效权限高于部署权限基线——未钉住 `sessionDefaultPermission` 时即宿主自己的默认权限预设——的绑定处于待确认状态:手动执行被拒绝、cron 跳过该卡并滚动到下一触发点,任务详情中的确认按钮完成人工确认;此后任何权限或交接包变更都会重新武装确认门。
34
33
  - **领卡来源声明包裹与来源审计**:执行续接卡片(带冻结快照的卡片)时,任务指令被来源声明模板强制包裹——冻结时间、来源会话与未经人工审查提示,组合在交接前言之后,使接手 Agent 对卡片文本中的存储型提示注入保持警惕。create/update 动作的发起方会话织入快照(frozenBy,快照被替换时重新盖章),run/rerun 的发起方会话连同冻结来源的捕获副本一起落在执行记录(initiatedBy)上,两者均可在任务详情查看。发起方为客户端断言的审计元数据,不构成信任边界。
@@ -42,10 +41,8 @@
42
41
  - **卡片附件(issue #1979)**:一张卡片最多带八个文件或图片。新建与编辑表单支持三种加入方式——拖放、粘贴、文件选择器;选中的文件在保存卡片之前只是一份本地预览:上传发生在保存时,因此被放弃的卡片不会在存储里留下对象。拖放区可聚焦、可用键盘操作,保存进行期间移除按钮禁用。图片按位图图片存储,随执行以 Prompt 的图片部件下发,位置在文字部件之后;其余文件按原样存储,以只读路径进入执行会话,并写在独立于交接引用的附件小节里。卡片只保存**元数据**——类型、存储标识、名称、大小、媒体类型、精确字节的摘要,以及图片的像素尺寸——绝不保存字节、base64 或 data URL。展示名称始终是一行规范形、不含任何路径部分,因此既不会破坏 Prompt,也不会指向某个目录。账本提交附件之前,Host 会拿官方附件存储证明这条声明:图片读回比对,文件流式读取并重算摘要,存储无法证明的引用会让整个动作被拒绝,因此伪造的客户端声明不会成为已存事实。每次执行都会重新解析附件;声明不支持图片的路由会在 Prompt 入队之前拒绝这次运行。看板的限额是每卡 8 个附件、单附件 10 MiB、每卡合计 32 MiB;部署自身的附件存储更严格时(含每条消息的图片预算)会下调公布的上限,Host 在写入卡片与执行解析两处都强制该预算。同一个存储对象只被认领一次:同一份内容不会在一张卡上出现两次。
43
42
  - **Host 权威账本**:任务、计划和执行记录存于 `$DSH_HOME/task-board/ledger-v2.json`;浏览器动作只有经 Host 确认后才成为 UI 状态。
44
43
  - **有界执行历史**:每个任务只保留最近 20 条执行记录;新运行开始时截掉最旧的记录,使账本大小与每次写入成本不随任务历史无限增长。
45
- - **真实执行**:手动运行和定时运行共用 Host runner,默认新建独立会话、重命名、应用 agent 预设和 `/permission <id>`,再以 queue 模式发送任务 Prompt。
46
- - **目标驱动执行(卡片逐张选择加入,且需总开关开启)**:全局原生 `/goal` 开关(见下,默认关闭)是总开关;开启后,只有卡片在详情页勾选加入(新建任务对话框默认不勾选)时,runner 才会先入队任务 Prompt,再以同一份组合 Prompt 作为目标武装 dsh 内置的 `/goal`。dsh 的目标轮次驱动器会在同一会话中不断开启续跑轮次,直到 agent 标记目标完成;看板则让该执行一直保持 `running`,直到目标离开 active 阶段:目标正常完成判为成功,被阻塞则以目标自身的原因判为失败。该选项按任务设置(`goalRun`,缺席即关闭,因此从未动过该选项的卡片只执行一轮普通对话),`task_board_create`/`task_board_update` 同样可用。勾选框始终可操作:总开关只决定该偏好是否生效,从不决定它能否被表达,也绝不改写已保存的值。
47
- - **任务验收(默认开启)**:以 goal 形式执行的任务必须先通过一次验收,`update_goal(action: complete)` 才会生效——看板在官方「工具执行前」生命周期上拦截这次调用,而不是相信 agent 的自述。验收沿用已安装 dsh-llm-verifier(MIT)的默认最终验收:三项 coding 判据(Specification Adherence、Output Match、Error Signal Detection)、总分与每项判据都必须达到 0.65 阈值、每项两轮并交换 A/B 位置后取平均、以任务真实轨迹(工具调用及其输出、assistant 文本)对比空工作基线,实际工作必须胜过该基线;部署记录工作区变更时,还会附上宿主自身对「本次运行改了磁盘上什么」的记录(文件清单与增删行数、有界的逐文件对比)作为提示词的参考上下文,使「只在自述里写过的补丁」无法通过。否决只有在**可定位**时才记为质量判定:任何导致不通过的判据都必须带有结构化问题反馈,写明它施加的任务要求、未达标的实际观测、差异,以及对任务、本次执行自己的轨迹或宿主工作区记录的逐字引用。没有反馈的否决、空泛或空的反馈、引用并不出现在所审证据中、引用空工作基线、以及「判据不通过却没有它自己的证据」,都记为**无效验收**:不消耗质量额度、不判卡片失败,并单独有界(两次);额度用尽后看板停止调用裁判、把卡片留给人工处理。若某次执行的记录只有无效验收,它同样因没有匹配的通过记录而结束,但使用独立终态原因,说明验收本身不可用,并明确否认这是有证据的质量判负。轨迹被截断导致裁判看不到输出时同样按无效验收处理,因为证据不足不等于工作没做。同一 execution 最多验收两次:第一次不通过把总分、逐项分数与可定位问题交回修复的 agent,第二次仍不通过即判该 execution 失败。执行**通过**并结算后,验收专用详细材料(问题反馈与结构化引用)会自动移除,只保留轻量审计凭据——判定、分数、时间、裁判路由、证据哈希与一行问题摘要。该 execution 记录之外的任何东西都不动;失败或无效的执行保留修复与复核所需的全部材料;移除是幂等的;清理失败会被记录并在宿主下次启动时重试,且绝不撤销通过记录。额度记录在 execution 记录上,因此重复完成调用、跨入下一 goal 轮次、插件重载与宿主重启都复用同一周期;重跑或一次定时触发则是新的 execution、重新计数。验收异常(超时、鉴权失败、裁判回答无法解析、裁判路由不可解析)与质量判定分开记录,不消耗质量额度。异常额度用尽并不把卡片判死:裁判路由答不上来是环境故障而不是工作不合格,此时执行周期保持打开、不再发起裁判调用,直到用户通过 `task_board_manage(action: reset-verification)` 清除已记录的异常。若一次验收在产生任何判定前就耗尽时间预算,会单独记为一类结果,不消耗任何额度,同样不判死卡片。两个上限都是配置项(`goalVerificationCallTimeoutSeconds`、`goalVerificationBudgetSeconds`),按需实时读取;剩余时间装不下一次调用时不会发起这次注定被中断的调用。运行列显示「执行中 / 验收中 / 验收未通过修复中」,每条 execution 记录展示判定、裁判模型与强度、次数、各项分数与阈值、问题反馈、证据范围与 token 用量。强制验收还堵住了旧回退路径:暂停的 goal、读取失败的 projection、已完成的回合与人工强制结算,都不能在没有匹配通过记录的情况下把 goal 执行结算为成功。带着验收记录失败意味着裁判给出了判定而工作没通过;一条验收记录都没有的失败则单独说明:验收门从未打开,因为执行会话没有调用 `update_goal(action= complete)`(常见于只在回复里宣告完成),交付从未被判定,更谈不上被判负。**单张卡片可以退出这道门**:新建任务与任务详情都有「跳过本任务的验收」勾选(默认不勾,语义与「同一对话继续」「以 /goal 开始执行任务」同级的卡片级选项),勾选后该卡以 goal 形式执行时不再拦截完成声明,执行记录标注 `applicability: skipped` 并在验收面板写明「该任务卡勾选了跳过验收」——它与总开关关闭是两回事,看板会分别说明。只对之后新开的执行生效,运行中改勾选不会改写已在飞的执行的判定规则。
48
- - **任务思考强度**:所选模型在 Host 模型目录中声明支持的思考档位时,任务模型选择器提供思考强度下拉框。留空沿用模型/宿主默认值,只提供该模型声明的档位。任务保存该选择,并在选择执行模型时应用,包括复用已有会话的执行。此设置独立于验收裁判的思考强度。
44
+ - **真实执行**:手动运行和定时运行共用 Host runner,默认新建独立会话、重命名、应用 agent 预设和 `/permission <id>`,以 queue 模式发送任务 Prompt 执行普通单回合对话,并按该回合结果结算。
45
+ - **任务思考强度**:所选模型在 Host 模型目录中声明支持的思考档位时,任务模型选择器提供思考强度下拉框。留空沿用模型/宿主默认值,只提供该模型声明的档位。任务保存该选择,并在选择执行模型时应用,包括复用已有会话的执行。
49
46
  - **可选会话复用**:任务可选择在上一执行会话中继续(issue #1419)。仅当该会话空闲且仍在运行时会话名册中才复用——Host 会重新应用钉住的权限与模型再以 queue 模式发送 Prompt,会话标题与历史保持不变;否则照旧新建会话,因此名册未知或会话正忙都不会阻塞定时运行。名册读取就发生在这次启动本身,所以长期空闲的看板会复用一个一直空闲的会话,而不是因为缓存过期而拒绝它。
50
47
  - **空闲时停止会话轮询(issue #1821)**:只有当看板确实有需要名册裁决的事情时,Host 才读取 DSH 会话名册——存在待核对的执行,或运行列里有一张卡片(它的结果可能来自本进程没观测到的结算)。空看板、没有运行中卡片、没有未结算执行、也没有已启用计划时不轮询任何东西,因此空闲的 Host 不再按固定心跳重建每一条持久化会话行(字符串转换、对象分配、每条记录一次 stat)。有工作时按配置项 `sessionPollSeconds` 的节奏轮询;读取失败或名册仍未知时按翻倍延迟退避,上限一分钟,因此会话树故障时不会被按轮询间隔反复冲击。
51
48
  - **钉子失败即关闭**:工作区缺失、预设缺失或损坏、权限命令被拒绝时,任务 Prompt 不会发送。
@@ -64,7 +61,7 @@
64
61
  看板视图在首次打开时渲染,关闭后重新打开会保留本地视图状态。Host 同步、调度和执行独立于视图持续运行。
65
62
 
66
63
  - `src/index.ts` 通过官方 `@deepseek-ai/dsh-api-gateway`、`@deepseek-ai/dsh-workspace` 与 `@deepseek-ai/dsh-host-webserver` SDK 挂载 Host 服务。
67
- - `src/host-ledger.ts` 串行动作,并用临时文件加原子 rename 持久化 `{ schemaVersion: 6, revision, tasks, scheduler, recentRequests }`。
64
+ - `src/host-ledger.ts` 串行动作,并用临时文件加原子 rename 持久化 `{ schemaVersion: 7, revision, tasks, scheduler, recentRequests }`。
68
65
  - `src/host-service.ts` 负责调度触发武装(按账本最近的到期时刻武装单个定时器,宿主未提供 `timer` 服务时回退到进程定时器)、错过触发跳过、runner 启动、重启对账和电源保护理由;次数预算由账本自己执行,因此单次计划或已用尽上限的循环规则绝不会被第二次开启。
69
66
  - `src/client/native-panel.tsx` 注册看板的侧栏行与中栏页面(官方 `sidebar.panellist` 列表座位与 keyed `main` 座位),并维护与 ssh 面板的中栏互斥协议。
70
67
  - `src/client/host-api.ts` 单次导入旧浏览器数据、提交幂等动作,并把 Host snapshot 当作唯一已确认 UI 状态。
@@ -106,7 +103,7 @@ dsh plugin --profile web add link:$(pwd)/packages/dsh-task-board
106
103
 
107
104
  ## 配置
108
105
 
109
- 本插件的设置卡把选项组织成可折叠的分区——看板与运行行为、任务验收、新建卡片默认值,以及提供方扩展(GitHub Issues 集成)贡献的分区。每个分区默认折叠。改动即时生效:点选的选项立刻写入,输入的值在停止输入、按 Enter 或离开输入框时写入;按 Escape 恢复已保存的值。
106
+ 本插件的设置卡把选项组织成可折叠的分区——基础、新建卡片默认值,以及提供方扩展(GitHub Issues 集成)贡献的分区。每个分区默认折叠。改动即时生效:点选的选项立刻写入,输入的值在停止输入、按 Enter 或离开输入框时写入;按 Escape 恢复已保存的值。
110
107
 
111
108
  | 键 | 默认值 | 行为 |
112
109
  | --- | --- | --- |
@@ -121,12 +118,6 @@ dsh plugin --profile web add link:$(pwd)/packages/dsh-task-board
121
118
  | `sessionPollSeconds` | `5` | 看板有需要核对的事情(运行中的卡片或未结算执行)时,Host 重新读取 DSH 会话名册的间隔秒数。两者都没有的空闲看板完全不轮询。取值 1 到 300;间隔越短结算越快、Host 负载越高。 |
122
119
  | `runLaunchWidth` | `3` | 同一刻最多几个执行被准入启动,1 到 16。它只在多张卡片同时要执行时起作用——手动执行、重新执行与到点定时一样:这么多个执行会创建会话并把 Prompt 入队,其余排队等待(队列在多次运行之间轮转、同一次运行内 FIFO)。单卡执行只开一个会话,所以这个值不改变单次运行的形态。默认值取自本仓「重型实施子代理并发 ≤ 3」的实测纪律。每次准入时读取,修改只影响尚未入列的启动。 |
123
120
  | `spendBudgetTokens` | `0` | 看板派活的每日 token 上限。`0` 表示不设闸,此时看板不读任何账本、也不做任何计数。计量单位是 token,因为使用账本只对 DeepSeek 官方路由计价,其他路由恒为 0。口径是 usage 账本按本地日期分桶的用量:当天已达上限时,手动执行与重新执行被拒绝,调用方拿到的拒绝原因就是这条文本;到点的定时执行把拒绝写进调度错误并跳过本次触发,不消耗计划次数,因此调高上限或跨过本地零点后下一次触发照常执行。每次闸门判定都重新读取,改完即时生效、无需重启。 |
124
- | `goalRunEnabled` | `false` | 全局原生 `/goal` 执行开关。关闭时所有卡片都按普通单回合执行,看板不再武装 dsh 内置的 `/goal`;只有它开启、且卡片自身的「以 /goal 开始执行任务」被勾选时(该选项默认关闭),运行才使用原生 /goal。该值在执行启动时冻结,因此实时修改只影响之后新开的执行,卡片存储的 `goalRun` 偏好绝不被改写。这类运行记录为 `goal-disabled`:既不会被报告为已验收通过,也不会因缺少完成调用被判失败。与 `goalVerification` 相互独立。 |
125
- | `goalVerification` | `true` | 本插件所开执行的 goal 验收。开启后,任务执行内的 `update_goal(action: complete)` 在该执行取得验收通过记录前一律被拒绝。只影响以 goal 形式执行的运行:普通聊天与未勾选 `goalRun` 的卡片不受影响。单张任务卡可以用「跳过本任务的验收」勾选退出本开关的约束(见下)。 |
126
- | `goalVerificationModel` | `''`(继承) | 裁判模型路由,形如 `provider/model`。留空继承宿主模型目录的默认路由,绝不是任务卡钉住的执行模型。 |
127
- | `goalVerificationReasoningEffort` | `''`(继承) | 裁判推理强度。留空继承宿主默认档位;目标模型未声明的档位绝不传参,回退到该模型自身默认档位并记录、展示。 |
128
- | `goalVerificationCallTimeoutSeconds` | `150` | 单次裁判调用的上限(秒,范围 30–600)。一次验收要发六次裁判调用,上限过小会把「慢但健康」的路由变成一整排超时。 |
129
- | `goalVerificationBudgetSeconds` | `1200` | 单次验收的总时间上限(秒,范围 120–1800),覆盖证据渲染与全部裁判调用(含重试)。应不小于单次调用上限的六倍,否则一次验收永远跑不完;耗尽时记为一类「预算耗尽」结果,不产生任何判定,也不消耗任何额度。 |
130
121
  | `cardDefaultMode` | `''`(无默认值) | 新建卡片起始的 agent 预设。留空不钉住任何值,卡片照旧跟随部署默认预设。 |
131
122
  | `cardDefaultPermission` | `''`(无默认值) | 新建卡片起始的权限。它可以高于会话权限基线:它只是预填,高于基线的绑定仍需人工确认后才能运行。 |
132
123
  | `cardDefaultModel` | `''`(无默认值) | 新建卡片起始的执行模型(`provider/model`)。留空不钉住任何值,并使 `cardDefaultReasoningEffort` 失效。 |
@@ -145,14 +136,13 @@ macOS 后端启动 `/usr/bin/caffeinate -i -w <host-pid>`,绝不请求 `-d`。
145
136
  ## 数据存储与迁移
146
137
 
147
138
  - 权威账本文件固定为 `$DSH_HOME/task-board/ledger-v2.json`(文件名为历史沿用);当前文档 schema 为 v7,更旧的文档(v2/v3/v4/v5/v6)会在下一次 Host 启动时逐字段无损迁移并原地写回。POSIX 新文件权限为 `0600`;Windows 继承用户目录 ACL。
148
- - v5 增加每 execution 的验收块(`verification`)。迁移刻意不补写该块:v5 之前开启的 execution 仍按历史判定结算,不会因为一个从未为它武装的完成门而被追溯验收。无法解析的验收块会被丢弃(该 execution 视为未验收,fail closed);import 带入的 execution 记录一律剥离该块,否则伪造的通过记录会让导入的工作看起来已验收。
149
139
  - v6 增加调度计划类型与次数预算,v7 增加卡片附件元数据(`attachments`)。两者都是增量式的:该字段出现之前写入的卡片行为完全不变;非法的附件列表逐条修复(丢弃不可用条目,并应用数量与字节上限),而不是丢掉整行任务。旧版浏览器 import **不接受**附件:v1 导出从不携带附件,因此声称携带附件的文档会被拒绝,而不是绕过存储校验进入账本。
140
+ - 历史遗留的目标运行与任务验收字段(任务行上的 `goalRun`、`skipVerification`,以及历史 schema v5 在执行记录上引入的 `verification` 块)已移除,账本 schema 保持 v7 不变:加载旧数据时忽略并丢弃这些字段、不再写回,绝不因此拒绝整行,卡片与历史执行记录保持完整可用。
150
141
  - v2 到 v3 迁移失败(任务行结构非法)时失败关闭并报出明确错误,原文件保持不动;绝不静默以空账本重启。损坏或未知 schema 的文件会移动到防碰撞的 `ledger-v2.json.corrupt-*` 名称,Host 以空账本和可见 scheduler 错误启动,不覆盖损坏字节。
151
142
  - 每个 origin 首次加载新版页面时,按稳定 source id 和 request id 导入 `dsh.taskBoard.v1`。任务按 id 合并,浏览器端严格较新的顶层字段优先,时间戳相同时保留 Host 字段,执行记录按 execution id 合并。
152
143
  - 最近 256 个 request id 与动作的 SHA-256 指纹会随账本持久化,因此 Host 重启后的变更重试仍保持幂等,且不会复制完整动作载荷。
153
- - 外部结果 execution 记录只新增一个可选布尔字段(`external`)。该字段出现之前写入的账本没有它,读取时既不会凭空补写、也不会把「没有该字段」当成外部执行,因此旧文档原样读回;非布尔值会被丢弃,不会被当成可信来源标记。账本仍保持 v5:该字段在既有行里一律缺席,正是 v5 迁移已描述的那种增量变更。
144
+ - 外部结果 execution 记录只新增一个可选布尔字段(`external`)。该字段出现之前写入的账本没有它,读取时既不会凭空补写、也不会把「没有该字段」当成外部执行,因此旧文档原样读回;非布尔值会被丢弃,不会被当成可信来源标记。无需升级 schema,因为既有行中该字段一律缺席。
154
145
  - 任务标签是任务行上的可选 `tags` 字段(`{ name, promptPrefix? }[]`),无需 bump schema:不含该字段的 v3 文档原样加载,非法的标签列表逐条修复(丢弃空名、重复项与超长名,并封顶数量),而不是丢掉整行任务。
155
- - /goal 选项是任务行上的可选 `goalRun` 字段,同样无需 bump schema:缺席即关闭,显式 `true` 是加入选择,多写的 `false` 在加载时被修复回缺席。
156
146
  - 只有导入成功并经 Host 确认后,`dsh.taskBoard.v2.hostImported` 才保存当前 Host 账本 generation;新建或损坏恢复出的新 generation 会再次接收保留的 v1 数据。v1 localStorage 原值保持不变,作为只读回退备份。
157
147
  - 同一时间只有一个 Host 进程能通过 `$DSH_HOME/task-board/ledger-v2.lock` 持有任务看板账本目录;第二个使用同一 DSH home 的 Host 会失败关闭,不并发写账本。
158
148
 
@@ -186,12 +176,11 @@ pnpm --filter @linxin666/dsh-client-ui-task-board build
186
176
  1. 挂载插件并重启 `dsh web`,打开任务看板,确认 Host 时区和电源状态可见。
187
177
  2. 新建并编辑任务;刷新或打开第二个同源标签页,确认两者显示同一 Host revision。
188
178
  3. 执行一个钉住工作区、预设和权限的任务;确认出现新会话,并由该会话的 `turn/end` 历史结算任务。
189
- 4. 在勾选 /goal 选项的情况下执行一个任务:确认会话启动了目标,卡片在多轮续跑期间保持 `running`,直到目标完成后结算为成功。取消勾选后再执行一次,确认变回单回合、由一条 `turn/end` 结算。
190
- 5. 启用一个即将到期的 cron,关闭全部浏览器页面,确认 Host 仍只创建并结算一次 execution。再把单次计划设在即将到来的时刻,确认恰好创建一次 execution 且规则显示为已结束;把循环规则的次数上限设为 2,确认第三次触发不再创建任何执行。
191
- 6. 让 Host 停止并错过一个 cron 触发点,重启后确认该次被跳过,`nextRunAt` 从当前 Host 时间向后滚动。
192
- 7. 开启 `preventIdleSleep` 并运行长任务,让显示器自动熄灭;恢复显示后确认会话继续且 execution 已结算。
193
- 8. 关闭设置并禁用所有计划,再停止 DSH,确认 helper 退出;macOS 可用 `pmset -g assertions` 辅助确认插件没有 display-sleep assertion。
194
- 9. Linux 可用 `systemd-inhibit --list` 确认只存在 `idle`/`block` 条目;显示器仍按桌面设置关闭,手动睡眠和合盖仍由系统策略处理。
179
+ 4. 启用一个即将到期的 cron,关闭全部浏览器页面,确认 Host 仍只创建并结算一次 execution。再把单次计划设在即将到来的时刻,确认恰好创建一次 execution 且规则显示为已结束;把循环规则的次数上限设为 2,确认第三次触发不再创建任何执行。
180
+ 5. 让 Host 停止并错过一个 cron 触发点,重启后确认该次被跳过,`nextRunAt` 从当前 Host 时间向后滚动。
181
+ 6. 开启 `preventIdleSleep` 并运行长任务,让显示器自动熄灭;恢复显示后确认会话继续且 execution 已结算。
182
+ 7. 关闭设置并禁用所有计划,再停止 DSH,确认 helper 退出;macOS 可用 `pmset -g assertions` 辅助确认插件没有 display-sleep assertion。
183
+ 8. Linux 可用 `systemd-inhibit --list` 确认只存在 `idle`/`block` 条目;显示器仍按桌面设置关闭,手动睡眠和合盖仍由系统策略处理。
195
184
 
196
185
  ## 已知限制
197
186
 
@@ -207,15 +196,6 @@ pnpm --filter @linxin666/dsh-client-ui-task-board build
207
196
  - Host 执行消耗与普通 DSH agent 会话相同的 API 额度。
208
197
  - 执行一张卡只开它自己一个会话,这个会话在内部用 subagent 派发未完成的子任务:子任务多的卡会消耗它派发的每个子 agent 的额度,而看板本身不为它们多开会话。没有回填结论的子卡继承父卡这次运行的判定——那是对父卡判断的记录,不是这张卡自己跑过一遍。
209
198
  - Agent 工具调用由模型驱动:从对话发起的执行或定时运行同样消耗 API 额度,且 agent 可以启用一个持续触发的计划,直到被关闭或看板被关掉。
210
- - 目标执行会按目标需要不断续跑:每一轮都消耗 API 额度,会话会一直忙碌,直到目标完成或被 dsh 阻塞(轮次上限、回合被拒或入队失败),后者在看板上记为执行失败。
211
- - 目标模式依赖运行时的 `/goal` 命令与命令派发器。两者都不提供的部署仍会把每张卡片当单回合执行,并在宿主日志中记录目标模式不可用,而不是让执行失败。
212
-
213
- - 每次验收都会消耗模型请求:一次验收是 3 项判据 × 2 轮(6 次裁判请求),而同一 execution 最多验收两次,因此一个需要修复一次的 goal 周期最多在任务本身之外多花 12 次请求。
214
- - 验收不估费用:本部署无法为目标裁判路由提供可靠的分 token 价格来源,报告只列出 token 用量。
215
- - 宿主观察的工作区变更块只在部署确实记录变更且读取成功时出现;服务不可用或对比读取失败时,证据降级为只判轨迹,而不是让验收失败。
216
- - 验收只在能生效的地方强制执行:没有成为 goal 执行的运行(`/goal` 被拒绝或不可用,或全局总开关关闭)不受门禁,记录会明确说明,而不是暗示它已被验收;历史上团队执行遗留的 teammate 记录同样不带验收。总开关关闭的运行记为 `goal-disabled`(独立原因,与「命令被拒」区分),因此也不会被读成已验收通过。宿主不提供模型目录时无法解析裁判路由,完成声明按 fail closed 拒绝并记为验收异常;异常额度用尽后卡片保持打开而不是判死,恢复需要用户清除这些异常。
217
- - 第一版一律使用 coding 判据:没有自动 rubric 选择,非工程任务也按工程判据评判(设置界面已说明)。
218
- - 若第三方验收插件(例如已安装的 `dsh-llm-verifier`)也开启了自己的自动验收,两个裁判会各自对同一会话评分:本看板的验收决定能否完成,另一个只做提示,公开 SDK 接口无法让二者共享同一判定。要避免为两次判定付费,只能关闭对方的自动模式。
219
199
  - 官方附件存储没有删除接口。从卡片移除附件、或删除卡片本身,移除的只是**元数据**:存储对象仍留在部署的附件存储里。看板既不承诺物理删除,也不为此绕路。
220
200
  - 非图片附件以可读宿主路径进入执行会话,因此只有当部署的附件存储以宿主文件形式保存时,会话才能真正读到该文件。存储不给可读路径的部署会让这次运行以该原因失败,而不是悄悄丢掉附件照常执行。
221
201
  - 图片附件需要接受图片输入的模型路由。看板会向官方模型服务询问这次运行真正使用的路由(卡片钉住的模型,或复用会话当前所在的路由);声明了模态且不含图片的路由会在 Prompt 入队之前拒绝这次运行。模态读不到的路由视为未知,放行;完全解析不出路由时预检被跳过——这两种情况下官方 Host 的检查仍是兜底。