@dsmm/dsmm 0.3.26 → 0.3.27

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 (47) hide show
  1. package/README.md +21 -8
  2. package/docs/agent-presets.md +7 -7
  3. package/docs/agent-teams.md +27 -0
  4. package/docs/compatibility.md +6 -6
  5. package/docs/lsp.md +10 -12
  6. package/docs/maintenance.md +29 -0
  7. package/docs/roadmap.md +25 -9
  8. package/docs/runtime-recovery.md +3 -3
  9. package/docs/testing.md +2 -1
  10. package/dsh-plugin.json +1 -1
  11. package/lib/client/NativeToolView-data.d.ts +8 -0
  12. package/lib/client/NativeToolView-data.js +19 -0
  13. package/lib/client/NativeToolView.d.ts +19 -0
  14. package/lib/client/NativeToolView.js +46 -0
  15. package/lib/client/RoleToolView-data.js +1 -1
  16. package/lib/client/RoleToolView-locales.d.ts +7 -0
  17. package/lib/client/RoleToolView-locales.js +6 -0
  18. package/lib/client/RoleToolView.js +2 -0
  19. package/lib/client/children-locales.d.ts +3 -3
  20. package/lib/client/controller.js +20 -0
  21. package/lib/client.js +347 -186
  22. package/lib/core-permission-authority.js +14 -4
  23. package/lib/mode.js +2 -2
  24. package/lib/native-admission.d.ts +5 -0
  25. package/lib/native-admission.js +218 -30
  26. package/lib/native-ownership.d.ts +3 -0
  27. package/lib/native-ownership.js +19 -0
  28. package/lib/native-subagents.d.ts +2 -1
  29. package/lib/native-subagents.js +4 -3
  30. package/lib/profile-runtime.d.ts +1 -1
  31. package/lib/prompts.d.ts +2 -0
  32. package/lib/prompts.js +14 -8
  33. package/lib/role-control-remote.js +19 -8
  34. package/lib/role-control-rpc.js +1 -1
  35. package/lib/role-control-types.d.ts +18 -5
  36. package/lib/role-identity.js +3 -19
  37. package/lib/role-invocation.d.ts +1 -1
  38. package/lib/role-policy.d.ts +11 -3
  39. package/lib/role-policy.js +61 -21
  40. package/lib/role-subagents.js +12 -5
  41. package/lib/session-metadata.d.ts +27 -1
  42. package/lib/session-metadata.js +46 -0
  43. package/lib/session-scope.d.ts +1 -1
  44. package/lib/session-scope.js +2 -2
  45. package/package.json +3 -1
  46. package/prompts/source/deepwork/general.md +19 -0
  47. package/prompts/source/shared/native-teams.md +11 -0
package/README.md CHANGED
@@ -4,12 +4,14 @@ DSMM 是 DeepSeek Harness(DSH)的插件。它让不同 Agent 分工处理任
4
4
 
5
5
  比如,让 Planner 拆解任务、Coding 写代码、Reviewer 检查结果,再由 Orchestrator 协调。各个角色可以用不同的模型,不必共用一套配置。
6
6
 
7
- 当前发布版本为 `@dsmm/dsmm@0.3.22`,支持 DSH `>=0.2.1-rc.2 <0.3.0`。安装前请确认客户端版本;范围外的 DSH 版本不受支持。Desktop 使用自带运行时,独立命令行环境需要 Node.js 22 或更高版本。
7
+ 当前发布版本为 `@dsmm/dsmm@0.3.27`,支持 DSH `>=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0`。安装前请确认客户端版本;范围外的 DSH 版本不受支持。Desktop 使用自带运行时,独立命令行环境需要 Node.js 22 或更高版本。
8
8
 
9
- 官方 DSH rc.3 以 `engines.dsh` 优先于 peer ranges 判定兼容性;DSH 依赖仍固定为 rc.2,作为开发基线。
9
+ 官方 DSH rc.3 以 `engines.dsh` 优先于 peer ranges 判定兼容性;锁文件保留 `0.2.1-rc.2` 作为开发基线。
10
+
11
+ 历史会话仅保守支持已有的原生读取和已验证的受限恢复路径,不承诺补齐旧版本行为或自动迁移。继续执行须满足当前身份与权限检查,历史批准不会恢复为当前授权。
10
12
 
11
13
  - 源码仓库:[hugefiver/dsmm](https://github.com/hugefiver/dsmm)
12
- - 安装来源:[npm (@dsmm/dsmm)](https://www.npmjs.com/package/@dsmm/dsmm);发布资产:[GitHub Releases (v0.3.22)](https://github.com/hugefiver/dsmm/releases/tag/v0.3.22)
14
+ - 安装来源:[npm (@dsmm/dsmm)](https://www.npmjs.com/package/@dsmm/dsmm);发布资产:[GitHub Releases (v0.3.27)](https://github.com/hugefiver/dsmm/releases/tag/v0.3.27)
13
15
 
14
16
  ---
15
17
 
@@ -20,7 +22,7 @@ DSMM 是 DeepSeek Harness(DSH)的插件。它让不同 Agent 分工处理任
20
22
  ### 初次安装
21
23
 
22
24
  1. 打开 DeepSeek Harness Desktop,进入 **插件(Plugins)** 页面。
23
- 2. 点击 **添加插件(Add plugin)**,输入 `@dsmm/dsmm@0.3.22` 并确认。
25
+ 2. 点击 **添加插件(Add plugin)**,输入 `@dsmm/dsmm@0.3.27` 并确认。
24
26
  3. 安装完成后,检查插件是否处于启用状态。如果界面提示需要重启,请按提示重启客户端。
25
27
 
26
28
  Desktop 的插件由客户端自己管理。全局 npm 安装和独立 npm 版 `dsh` 命令不能替代这一步。
@@ -32,7 +34,7 @@ DSH Desktop 当前不支持在界面中用同名版本原位覆盖更新插件
32
34
  1. 保存好正在进行的任务,**正常退出并完全关闭 DSH Desktop**。
33
35
  2. 使用 Desktop 安装自带的命令行工具更新配置。以下示例适用于 Windows 默认安装路径(`%LOCALAPPDATA%\Programs\DeepSeek Harness\`):
34
36
  ```powershell
35
- & "$env:LOCALAPPDATA\Programs\DeepSeek Harness\resources\runtime\cli\bin\dsh.cmd" plugin --profile desktop add @dsmm/dsmm@0.3.22 --save-exact --ignore-scripts --registry=https://registry.npmjs.org
37
+ & "$env:LOCALAPPDATA\Programs\DeepSeek Harness\resources\runtime\cli\bin\dsh.cmd" plugin --profile desktop add @dsmm/dsmm@0.3.27 --save-exact --ignore-scripts --registry=https://registry.npmjs.org
36
38
  ```
37
39
  *若安装在自定义路径,请替换为对应的实际位置;非 Windows 系统请参考 Desktop 自身菜单或官方指引,不要混用非 Desktop 的独立 CLI 命令。*
38
40
  3. 重新打开 DSH Desktop 即可加载新版本。
@@ -47,12 +49,22 @@ Deepwork 是 DSMM 提供的角色委派与模型路由工作流模块。
47
49
 
48
50
  插件安装后,Deepwork 模块总开关默认开启,但新创建的普通会话默认不开启 Deepwork 模式。
49
51
 
50
- - **在当前会话中开启**:点击会话菜单中的「启用 Deepwork」(英文界面为 Enable Deepwork)。开启后当前会话即可使用角色调度;再次点击「关闭 Deepwork」即可停用。
52
+ 使用 DSMM 角色调度时,请选择原生 Agent 预设中的 **DW Orchestrator**。普通原生预设启用 Deepwork 后,只增加通用工作指导、按需技能和适用的模型参数调整,保留原生身份、模型选择与委派方式。
53
+
54
+ - **在当前会话中开启**:点击会话菜单中的「启用 Deepwork」(英文界面为 Enable Deepwork)启用通用指导;点击「关闭 Deepwork」移除这层指导。显式预设的角色身份与权限保持独立。
51
55
  - **让新会话默认开启**:在预设方案配置中,将「默认 Deepwork 模式」(`defaultActive`)设置为启用。
52
56
  - **模块总开关限制**:如果在插件部署配置中关闭了 Deepwork 模块总开关,会话菜单中将无法开启该模式;若界面提示需要重启,需重启客户端生效。
53
57
 
54
58
  ---
55
59
 
60
+ ## 原生团队协作
61
+
62
+ 当 Host 提供 Agent Teams 时,团队模式和任务板由原生界面与服务管理。DSMM 保留原生任务修订、成员消息与生命周期,并让只读角色只读任务;任务归属和工作范围提示不会扩大执行权限。
63
+
64
+ 支持的同树成员可以继续协作,创建者退出后也可在原权限上限内恢复工作。任务分配不会自动唤醒成员,需显式发送消息。使用方式和边界见 [Agent Teams](docs/agent-teams.md)。
65
+
66
+ ---
67
+
56
68
  ## 配置与方案
57
69
 
58
70
  ### 两种配置范围
@@ -71,7 +83,8 @@ DSMM 包含两处相互独立的配置区域:
71
83
  - **在当前会话中应用方案(Apply profile to current session)**:在已有对话历史的原生会话中直接更换预设方案。
72
84
  - 会话必须处于真正空闲状态:无正在生成的回复、无排队输入、无待处理审批且无运行中的子任务。界面单独显示 `idle` 状态并不代表没有后台活动,需等待所有操作完全结束。
73
85
  - 切换成功后,已存在的旧子任务继续保留启动时的原配置与限制,后续新委派的子任务才会使用新方案。
74
- - **使用方案模型(Use profile model)**:把当前会话的原生模型选择切换为方案中配置的主模型。默认的 `rootModelPolicy: native` 下,保存或切换方案不会自动改模型;要一起换模型,需要明确点击这个操作。操作期间如果又手动选择了模型,以较新的选择为准。
86
+ - 部分新版 Host 无法确认全部后台工作是否空闲,此操作会显示不可用;保存方案和原生模型选择保持独立。
87
+ - **使用方案模型(Use profile model)**:对于有对应 DSMM 角色主模型的会话,把原生模型选择切换为方案中配置的主模型。默认的 `rootModelPolicy: native` 下,保存或切换方案不会自动改模型;要一起换模型,需要明确点击这个操作。操作期间如果又手动选择了模型,以较新的选择为准。
75
88
 
76
89
  ### 配置角色模型与参数
77
90
 
@@ -85,7 +98,7 @@ DSMM 包含两处相互独立的配置区域:
85
98
 
86
99
  终端适配提供 `/dsmm` 操作菜单、简单设置和已保存方案的选择,不另做复杂配置编辑器。DSMM 必须加载在 TUI 实际使用的 profile 中,Desktop 中已安装的插件不会自动共用。
87
100
 
88
- 如果希望根会话也完全按配置中的主模型和备用路由运行,可在 TUI 的部署配置中将 `rootModelPolicy` 设为 `configured`。它影响同一部署中的所有客户端,具名方案不能覆盖这个策略;其他独立部署默认仍使用原生模型选择。具体版本要求、配置范围和联调限制见 [TUI 使用说明](docs/tui.md)。
101
+ 如果希望显式 DSMM 根预设按配置中的主模型和备用路由运行,可在 TUI 的部署配置中将 `rootModelPolicy` 设为 `configured`。它影响同一部署中的所有客户端,具名方案不能覆盖这个策略;其他独立部署默认仍使用原生模型选择。具体版本要求、配置范围和联调限制见 [TUI 使用说明](docs/tui.md)。
89
102
 
90
103
  ---
91
104
 
@@ -1,6 +1,6 @@
1
1
  # Deepwork Agent presets and child control
2
2
 
3
- DSMM 0.3.16 targets exactly DSH `0.2.1-rc.2`. Native package composition and callable admission are separate requirements.
3
+ The supported Host range is listed in [compatibility](compatibility.md). Native package composition and callable admission are separate requirements.
4
4
 
5
5
  ## Roles and composition
6
6
 
@@ -14,9 +14,9 @@ Optional preset materialization writes only the DSMM-owned dispatcher preset dir
14
14
 
15
15
  Managed Agent scopes supply the single role opening (`You are <display name>.`) through `harness:identity`, without a parenthesized role ID. Persona prefixes carry role guidance, not another identity opening; admitted children shadow both inherited sections. Internal role IDs remain the admission, routing and preset keys. The ordinary native identity remains unchanged outside those scopes; the override doesn't grant a role, tool or permission based on its displayed name.
16
16
 
17
- For a non-DW preset with Deepwork active, the Agent receives the shared locale-priority guidance and the standard preset's model identity sentence becomes model-neutral. The preset's remaining persona prefix and suffix stay intact; this does not load the full DW role persona. Turning Deepwork off restores the original persona and removes the added locale-priority guidance.
17
+ A non-DW preset retains its native identity, persona, model selection, effort and delegation while Deepwork is active. It receives general working guidance, locale policy, lazy skills and applicable model-parameter tuning. Mode activation does not create an orchestrator identity, apply DSMM role routes or require specialist tools. When a skill describes an unavailable specialist, the Agent follows its native persona's authority and performs the permitted work directly.
18
18
 
19
- Root admission is not configurable per role: the dispatcher is the only standing root. A blank preset switch to any other DSMM role is refused because no such preset is registered, and the admitted composition stays in place. Forced creation and empty-root preset changes still require valid root admission before execution. Opting into Deepwork requires the enabled module, role and usable composition; it never grants writes. Harness's native `/plan` remains collaboration state, not a permission upgrade.
19
+ Root admission is not configurable per role: the dispatcher is the only standing root. A blank preset switch to any other DSMM role is refused because no such preset is registered, and the admitted composition stays in place. Forced creation and empty-root preset changes still require valid root admission before execution. DSMM role admission requires an enabled module, enabled role and usable composition. Ordinary presets can use the general Deepwork mode without acquiring a role; mode activation grants no writes. Harness's native `/plan` remains collaboration state, not a permission upgrade.
20
20
 
21
21
  Standing Orchestrator/Builder compositions include native planning, compaction/pruning, question and todo rows. Planner includes planning, compaction/pruning and questions, but no todo writer. Coding/frontend/deep/complex/cross-cutting include compaction/pruning, questions and todo; other auxiliary roles add none of those rows. Native spawn can retain parent services, so this isn't a promise to strip every inherited row from short children. Effective filters and execution fences still decide access. Native `/plan` doesn't upgrade Planner permissions, and `/compact` remains a human native command.
22
22
 
@@ -31,11 +31,11 @@ Standing Orchestrator/Builder compositions include native planning, compaction/p
31
31
  | deep, complex, cross-cutting | Utility leaves and coding/frontend/hard-reasoning/creative/documenting specialists |
32
32
  | Native child Builder | Bounded utility leaves, not stage ownership |
33
33
 
34
- No child gains coordination authority from a preset label, persona or serialized role string. The shared policy checks exact live native ownership/admission and provider/definition identity. Each call has its own pending child correlation; awaited creation installs immutable policy before queued input executes. Generic spawn/fork can't bypass role admission in a DSMM-controlled workflow. Unrelated ordinary off-mode native children retain Host behavior without acquiring DSMM delegation.
34
+ No child gains coordination authority from a preset label, persona or serialized role string. The shared policy checks exact live native ownership/admission and provider/definition identity. Each call has its own pending child correlation; awaited creation installs immutable policy before queued input executes. Generic spawn/fork can't bypass role admission in a DSMM-controlled workflow. Ordinary native children retain Host delegation and model ownership without acquiring a DSMM role, whether Deepwork is active or inactive.
35
35
 
36
36
  Read-only roles remain read-only independently of mode and optional guards. Planner returns complete Markdown for native review/handoff; an authorized coordinator persists it. There is no Planner writer. Native catalog visibility and role permission are separate: a schema or read-only catalog listing doesn't authorize invocation, and own-layer native schemas may remain visible even when mandatory execution fences deny them.
37
37
 
38
- Descendants intersect current parent capability ceilings with native/requested restrictions and union deny-lists. Existing native filters still execute. Cold resume rebuilds DSMM restrictions from current role/configuration and exact parent authority rather than restoring an old runtime snapshot. A named profile cannot lift startup/deployment or native ceilings; required roles are covered in [profiles](profiles.md#inheritance-and-ceilings).
38
+ Descendants intersect captured tool and delegation-target ceilings with current admission and native restrictions, and union deny-lists. New tree members persist their DSMM ceilings in their own native Session records. Cold continuation validates native catalog, provider and lineage, loads the captured profile selector's current content, and retains the original readonly, tool, target and DSMM depth limits. A verified live root can own the admission lifetime while the durable creator is absent; it does not become the direct creator. Older records without a complete ceiling retain exact-live-creator recovery. A named profile cannot lift native ceilings; see [profiles](profiles.md#inheritance-and-ceilings).
39
39
 
40
40
  ## Invocation and lifecycle
41
41
 
@@ -49,7 +49,7 @@ A running waiting call can't be handed to background. There is no restart-as-han
49
49
 
50
50
  ## Child reports and control interfaces
51
51
 
52
- Child report interfaces expose actual runs, direct children and a read-only descendant tree. IDs, activity, mode, admitted role/level, route comparison, original evidence and disabled reasons remain separate facts. Corrupt, unsupported or unavailable branches report diagnostics, not fabricated success. Descendant inspection doesn't grant control over non-direct children. The current client doesn't register a separate Conversation child tab; retained interfaces or components aren't proof of a reachable panel.
52
+ Child report interfaces expose actual runs, direct children and a read-only descendant tree. IDs, activity, mode, admitted role/level, route comparison, original evidence and disabled reasons remain separate facts. Corrupt, unsupported or unavailable branches report diagnostics, not fabricated success. These inspection interfaces do not grant additional control. On tree-capable Hosts, native `send_message` preserves the actual sender and permits same-tree communication; native `list_agents` and `wait_agent` provide discovery and waiting when exposed. Native interruption requires ancestor authority. Cross-tree messaging and sibling interruption remain refused. Older Hosts retain their adjacent-child control contract. The current client doesn't register a separate DSMM Conversation child tab; use the native Host surfaces that are actually available.
53
53
 
54
54
  Route comparison uses the live admitted `invocation-capture` and the child's latest `own-native-request-header`. Missing, invalid or unobserved evidence remains unknown; it is never inferred from a root route, current profile or role label. Display metadata isn't a cold-recovery credential.
55
55
 
@@ -69,7 +69,7 @@ Arguments, result content, errors and metadata remain inspectable as JSON. Nonte
69
69
 
70
70
  Official AgentRegistry, SubagentRuntime and JSONL namespace plugins own execution and storage. There is no custom Registry/Runtime selector, manual-runtime activation path or companion requirement. Native runtime availability and actual DSMM admission are still separate observations; seeing a catalog isn't proof of callable policy. See [settings](settings-status.md#child-runtime-composition).
71
71
 
72
- Cold recovery requires verified native root/child identity and creates a new exact-object admission. Logs, IDs and display data alone cannot restore authority. Missing old captures do not block a valid native DSMM child. Read-only history queries never resume Agents. `preset-skills` is installed and released by the admitted Agent scope, not a public plugin. See [compatibility](compatibility.md#native-history-composition).
72
+ Cold recovery requires verified native root/child identity and creates a new exact-object admission. Persisted DSMM records carry restrictions and profile selection identity; current native membership, provider and policy supply authority. Creator-absent recovery requires a complete own ceiling record. Generic native members retain null role/level and native model ownership. DSMM does not preserve an unavailable native tool-instance depth setting across Host configuration changes; each current native invocation still enforces its own depth limit. Read-only history queries never resume Agents. `preset-skills` is installed and released by the admitted Agent scope, not a public plugin. See [compatibility](compatibility.md#native-history-composition).
73
73
 
74
74
  Native Host commands, sessions, inbox, permissions, process/cwd/model selection and transports retain ownership. DSMM supplies role admission and bounded controls, not a replacement lifecycle scheduler, generic permission bypass or automatic retry system.
75
75
 
@@ -0,0 +1,27 @@
1
+ # Native Agent Teams
2
+
3
+ DSMM uses the Host's Agent Teams service and task tools. The native Host owns the task board, revisions, persistence, member names and task presentation. Team mode is a root-session choice; DSMM does not enable it automatically. A Host without the native service or task tools retains ordinary delegation.
4
+
5
+ ## Roles and task access
6
+
7
+ The current native step determines which conditional task tools are callable. DSMM keeps the original registrations and their activation conditions.
8
+
9
+ - Writable agents may use the native `team_task_create`, `team_task_list`, `team_task_get` and `team_task_update` tools where their role, inherited filters and native task authority permit them.
10
+ - Read-only DSMM roles receive only `team_task_list` and `team_task_get`. The root assigns and closes their tasks. Giving a task to a read-only agent does not authorize a task mutation or a file write.
11
+ - The native root controls Team mode and reassignment. Task ownership, `writeScopes`, member labels and messages do not grant tools, delegate new roles, expand path access or lift depth limits.
12
+
13
+ ## Working with tasks
14
+
15
+ Create tasks with the dependencies and ownership needed for the work. An unassigned, ready pending task can be claimed and completed through the native update operation. Root reassignment immediately makes the task `in_progress`; the assigned worker reads and executes it without claiming it again.
16
+
17
+ Task changes do not wake an agent or send a message. Send the task identity and assignment through native `send_message` when work should begin. Interrupting an agent does not release its task ownership. Read the board before deciding whether reassignment is needed.
18
+
19
+ Use the task's current revision as `expectedRevision` when updating through the native service, or the corresponding field exposed by the native tool schema. On `TEAM_TASK_STALE_REVISION`, reread and reconcile the current task before making another change. On `TEAM_TASK_PERSISTENCE_UNCONFIRMED`, the change may already be visible while durable storage is uncertain: reread authoritative state and do not replay the mutation automatically.
20
+
21
+ `writeScopes` describe intended work areas for coordination. They are not filesystem locks or permission grants. Native sandbox policy and DSMM's existing tool, role and permission checks still decide whether an operation may execute.
22
+
23
+ ## Member lifetime
24
+
25
+ On tree-capable Hosts, messages preserve their sender and stay within the native tree. Native names and `list_agents` identify members; `wait_agent` is available when the Host exposes it. Ancestors can interrupt descendants; siblings cannot use interruption as a coordination shortcut.
26
+
27
+ Supported members can continue under the verified live root after their durable creator exits. Cold continuation uses current selected-profile content and retains captured DSMM restrictions. Generic native members retain their native model authority and do not acquire a DSMM role. Details and legacy-record limits are in [Agent presets](agent-presets.md) and [compatibility](compatibility.md).
@@ -1,6 +1,6 @@
1
1
  # DSMM compatibility and upgrade boundaries
2
2
 
3
- **DSMM 0.3.22 supports DSH `>=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0`** and Node.js 22 or later. The dual branch admits the 0.2.2 RC series (from `0.2.2-rc.1` on) while keeping every supported 0.2.1 release in range; `0.2.2-alpha.*` is deliberately excluded. Official DSH rc.3+ gives `engines.dsh` precedence over peer ranges (peers are ignored when `engines.dsh` is present) and evaluates ranges with prereleases included; strict npm semantics additionally need the explicit second branch, so the declaration is accurate under both readings. The `<0.3.0` upper bound lets future `0.3.0-rc.x` pass the Host gate under its includePrerelease reading; strict consumers exclude it. DSH dependencies, peerDependencies and devDependencies use the same non-exact range as `engines.dsh`, so a Host profile resolves them to its in-range version instead of being shadowed by a pinned `0.2.1-rc.2` copy; the lockfile keeps `0.2.1-rc.2` as the development baseline; versions outside the declared Host range aren't supported.
3
+ **DSMM 0.3.27 supports DSH `>=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0`** and Node.js 22 or later. The dual branch admits the 0.2.2 RC series (from `0.2.2-rc.1` on) while keeping every supported 0.2.1 release in range; `0.2.2-alpha.*` is deliberately excluded. Official DSH rc.3+ gives `engines.dsh` precedence over peer ranges (peers are ignored when `engines.dsh` is present) and evaluates ranges with prereleases included; strict npm semantics additionally need the explicit second branch, so the declaration is accurate under both readings. The `<0.3.0` upper bound lets future `0.3.0-rc.x` pass the Host gate under its includePrerelease reading; strict consumers exclude it. DSH dependencies, peerDependencies and devDependencies use the same non-exact range as `engines.dsh`, so a Host profile resolves them to its in-range version instead of being shadowed by a pinned `0.2.1-rc.2` copy; the lockfile keeps `0.2.1-rc.2` as the development baseline; versions outside the declared Host range aren't supported.
4
4
 
5
5
  ## Supported integration
6
6
 
@@ -8,7 +8,7 @@ Official AgentRegistry, SubagentRuntime and JSONL namespace plugins own executio
8
8
 
9
9
  Native Web surfaces are Plugins bundle configuration, Settings Profiles, the compact Conversation menu and delegation call views. CLI/headless use native deployment and tools; headless doesn't select Agent presets. TUI and Desktop retain their own carriers and exposed UI capabilities; Web controls aren't necessarily exposed in TUI.
10
10
 
11
- `preset-skills` is internal Agent-scoped installation, not a public Loader plugin. DSMM-managed external LSP stays disabled even with stored `lsp.enabled:true`; native DSH LSP and independently configured MCP remain unaffected. See [LSP boundary](lsp.md).
11
+ `preset-skills` is internal Agent-scoped installation, not a public Loader plugin. DSMM-managed external LSP defaults to disabled. With the Deepwork module and `lsp.enabled` enabled at startup, it uses the trusted Host install anchor to mount the native MCP client; saving a changed configuration does not remount the running bridge. Native DSH LSP and independently configured MCP remain separate. See [LSP boundary](lsp.md).
12
12
 
13
13
  ### Conversation process summaries
14
14
 
@@ -35,7 +35,7 @@ DSMM runs identically on 0.2.1 and 0.2.2 Hosts except where 0.2.2 changed public
35
35
  - **Model selection is fixed before step preparation.** DSMM prepares the selection and request proposal together during admission and maintenance, keeping adapter defaults separate from explicit effort. Configured roots with an explicit primary reassert their admitted selection at public running/inbox boundaries; native roots retain native selection authority. A request that conflicts with its step's fixed provider/model/effort is rejected before dispatch, without scheduling another selection or dropping parameters. A picker change racing a running step can therefore produce a refusal; change models while idle for the next-turn boundary. Plugin metadata associates DSMM-written selections and child setup selections observed between native Session and Agent announcements with their exact events. These remain distinguishable on cold activation without treating setup as new manual intent. The records convey no authority, and same-value selections create no synthetic intent.
36
36
  - **Cross-route model fallback is unavailable on 0.2.2** (blocked): the request-error contract only allows same-selection retries, so `rate-limit-fallback` route switching degrades to a bounded same-route retry with a one-time diagnostic, and unavailable-route switching refuses outright. 0.2.1 behavior is unchanged. The native `dsh-llm-retry` extension coexists with DSMM's retry ownership.
37
37
  - **Session configuration switching requires provider enumeration.** Hosts without `subagents.list()` still load DSMM and execute normal sessions and role delegations. Applying a profile or deployment baseline to a resident session is unavailable because DSMM cannot establish that external subagent work is absent. Independent Deepwork mode controls remain available. Saving configuration and selecting defaults for new sessions remain available.
38
- - **Native tree publication precedes child admission on newer Hosts.** Child requests and tools wait for the native activation's published creator and root to be verified. DSMM retains the exact live creator for permission inheritance and direct-child controls; sharing a tree root or a persisted parent ID alone grants no authority. A missing or retired creator refuses admission, including cold continuation.
38
+ - **Native tree publication precedes child admission on newer Hosts.** Child requests and tools wait for verified native publication. New delegation requires its exact live creator. Existing members keep the durable creator distinct from the live root that owns admission lifetime. A supported cold member with a complete own restriction ceiling can resume while its creator is absent; native catalog/provider identity, current configuration and captured limits remain required. Legacy records without this evidence retain exact-live-creator recovery.
39
39
  - **Pending selection is visible at admission.** A DSMM-configured route becomes the client-visible pending model selection as soon as admission completes, and cross-step route changes surface the Host's `[model changed: ...]` notice. This is native 0.2.2 behavior and is not suppressed.
40
40
  - **fs overwrite observation is restored by the DSMM bundle patch.** 0.2.2 compositions disable `@deepseek-ai/dsh-fs-observation-policy` by default; DSMM's bundle patch re-enables it by id, restoring read-before-write and external-modification rejection (`FS_STALE_VERSION`). The user's profile layer still wins and can explicitly disable it.
41
41
  - **Adapter capacity defaults changed.** 0.2.2 assumes 1M context / 128K output for models that declare no capacity. Routes served by small endpoints must declare real limits; DSMM's raw seam keeps its explicit-capacity validation.
@@ -44,7 +44,7 @@ DSMM runs identically on 0.2.1 and 0.2.2 Hosts except where 0.2.2 changed public
44
44
 
45
45
  ### Native history composition
46
46
 
47
- DSMM runs against the unpatched native DSH packages: it installs no Host-side patches and injects no bootstrap flags. Historical sessions stay readable through native history surfaces, and a persisted DSMM session resumes with a fresh admission built from the current deployment; persisted mode choices remain user intent, while old delegation authority never survives.
47
+ DSMM runs against the unpatched native DSH packages: it installs no Host-side patches and injects no bootstrap flags. Historical support is limited to the existing native reader and validated continuation paths, with no blanket guarantee for historical package versions or additional behavior repair or migration. Native-readable records remain available through history surfaces. Supported persisted DSMM sessions resume with a fresh admission built from the current deployment; persisted mode choices remain user intent, while old delegation authority never survives.
48
48
 
49
49
  Root and native continuable-child activations load current DSMM prompts/skills/roles and the selected profile ID's latest valid content. Explicit baseline and global-default sources remain distinct. Old immutable revisions and runtime captures are not required for a valid native DSMM descriptor. Missing identity or conflicting/unsafe selection metadata refuses; missing or invalid current named content does not fall back. Parent ownership, catalog/own descriptor, provider, independent composition, readonly/filter/depth and cancellation boundaries are validated before publication. Resident Agents do not hot-switch. Settled one-shot children stay non-resumable.
50
50
 
@@ -56,9 +56,9 @@ Native continuation replays persisted persona and toolFilter. Current DSMM role
56
56
 
57
57
  Role calls wait for native activation results by default; only `completed` is normal completion. Cancellation after publication uses activation disposal and cleanup. Enabled background execution selects `delivery: 'parent'` before start. The accepted child/message receipt and interrupt acknowledgment aren't completion. Running waiting tasks can't transfer to background.
58
58
 
59
- Queue/Steer can enter native cold continuation for supported direct children under exact-parent/operator authority. Listing and interrupt do not wake children; descendant views remain read-only. A cold prompt availability means continuation can be attempted, not that a model has executed. Missing native capability disables the operation; unknown sends aren't automatically resent. See [Agent presets](agent-presets.md).
59
+ Queue/Steer retains its native operator and attachment checks. On tree-capable Hosts, model messages preserve the sender and can reach members of the same tree, including supported cold members; interruption requires ancestor authority. Older Hosts retain adjacent-child controls. Listing and interrupt do not wake cold members. A continuation receipt confirms acceptance, not model execution. Missing native capability disables the operation; unknown sends aren't automatically resent. See [Agent presets](agent-presets.md).
60
60
 
61
- Resuming a persisted DSMM session builds a fresh admission from the current deployment and validates its mounted composition again; configuration, PluginRecord metadata, labels or child IDs never reconstruct authorization. A resumed child without its exact live parent stays refused: delegated authority exists only on the live parent that admitted it. Preserve readable history; don't substitute a persona, reset a session or import old data automatically. Native factory load/repair can precede the created guard, so a refusal doesn't promise the log was never opened. Clear/compact can retain policy only with the exact live object and admission, not inferred lineage.
61
+ Resuming a persisted DSMM session builds a fresh admission and validates its mounted composition. Native membership and current policy provide authority; own PluginRecords supply only profile selection and restrictive ceilings. The current profile cannot expand a member's captured readonly, tool, delegation-target or DSMM depth limits, including through newly delegated descendants. Generic native members retain their native model and null role/level. Without creator residency, a complete own ceiling and verified current native root are required. Readable history remains available; no persona substitution, session reset or automatic import is performed. Native factory load/repair can precede the created guard, so a refusal doesn't promise the log was never opened. Clear/compact can retain policy only with the exact live object and admission, not inferred lineage.
62
62
 
63
63
  Standard supported model calls use native prepared calls. Raw/custom and Pi-AI stop-only calls use the minimal public completions seam for self-contained literal or explicit model-mapping configurations. Catalog-backed raw combinations that can't be reliably reproduced are rejected for both native and DSMM parameter sources, without disabling standard Coding. Native effort encoding/capability metadata isn't rewritten. See [model routing](model-routing.md).
64
64
 
package/docs/lsp.md CHANGED
@@ -1,16 +1,16 @@
1
1
  # DSMM LSP boundary
2
2
 
3
- This version doesn't enable DSMM-managed external LSP. The integration implementation, public interfaces and original `lsp` configuration are retained, but automatic MCP mounting stays off even when stored configuration contains `lsp.enabled:true`. Saving settings, enabling Deepwork or restarting the Host doesn't provide an activation path. DSMM's settings UI hides LSP controls.
3
+ DSMM-managed external LSP is opt-in. When the Deepwork module is enabled in startup configuration and `lsp.enabled: true`, DSMM mounts the Host's native MCP client through its trusted installation anchor. The default is disabled. Saving desired settings does not remount a running integration or change existing Agent admission; restart the Host to apply startup LSP configuration. Enabling Deepwork alone does not enable LSP. DSMM's settings UI hides LSP controls.
4
4
 
5
- The default `cordis.patch.yml` doesn't add an MCP client row. This restriction applies only to DSMM's automatic integration: it doesn't disable DSH's own LSP services or an MCP server independently configured by the operator. DSMM doesn't download servers or native binaries.
5
+ The default `cordis.patch.yml` doesn't add a separate MCP client row. DSMM leaves DSH's own LSP services and independently configured MCP servers under their native owners. DSMM doesn't download servers or native binaries.
6
6
 
7
- The manual integration uses the `ocmm-lsp` executable published by the `ocmm` npm package. DSMM does not contain the LSP source, Rust/native build, platform-package matrix, or LSP release workflow, and does not declare `ocmm` as a package dependency. The operator must separately provide the published `ocmm` package and its matching optional `ocmm-lsp-*` platform package in the Host execution environment; installs that omit optional dependencies cannot provide the native binary. No source checkout or parent-repository `dist/` path is a supported fallback.
7
+ The integration uses the `ocmm-lsp` executable published by the `ocmm` npm package. DSMM does not contain the LSP source, Rust/native build, platform-package matrix, or LSP release workflow, and does not declare `ocmm` as a package dependency. The operator must separately provide the published `ocmm` package and its matching optional `ocmm-lsp-*` platform package in the Host execution environment; installs that omit optional dependencies cannot provide the native binary. No source checkout or parent-repository `dist/` path is a supported fallback.
8
8
 
9
- ## Retained manual example
9
+ ## Native MCP configuration
10
10
 
11
- The retained [manual patch](../patches/ocmm-lsp-mcp.example.cordis.patch.yml) remains available as a native-host configuration reference, not a supported DSMM activation entry for this version. Independently managed MCP composition remains the operator's responsibility, including npm package availability, executable resolution, namespace uniqueness and native lifecycle ownership.
11
+ The [manual patch](../patches/ocmm-lsp-mcp.example.cordis.patch.yml) is available for independently managed native MCP composition. Use either DSMM startup mounting or an independent row for a given server namespace. Independent composition remains the operator's responsibility, including npm package availability, executable resolution, namespace uniqueness and native lifecycle ownership.
12
12
 
13
- The retained example describes:
13
+ Both paths use these defaults:
14
14
 
15
15
  - `serverName: dsmm_lsp`
16
16
  - `command: ocmm-lsp`
@@ -21,9 +21,9 @@ The retained example describes:
21
21
 
22
22
  `ocmm-lsp` above is the npm package's declared executable. An explicit absolute command override may be used by the Host, but DSMM does not discover a sibling checkout, compile the binary, or publish an alternative LSP artifact.
23
23
 
24
- ## Retained tool interface
24
+ ## Tool interface
25
25
 
26
- An independently mounted native MCP client using `serverName: dsmm_lsp` uses the following tool names. This inventory describes the retained interface, not tools automatically available from DSMM in this version:
26
+ With `serverName: dsmm_lsp`, a successful startup mount exposes the tools supplied by the external server. The `ocmm-lsp` interface uses these names:
27
27
 
28
28
  - `mcp__dsmm_lsp__status`
29
29
  - `mcp__dsmm_lsp__diagnostics`
@@ -37,8 +37,6 @@ An independently mounted native MCP client using `serverName: dsmm_lsp` uses the
37
37
 
38
38
  `format` applies the language server's document edits to the source file atomically. The debug adapter protocol (DAP) remains a separate debugging surface and is not an MCP tool.
39
39
 
40
- DSMM's read-only role restrictions don't grant rename or format permission. The retained `lspRuntime` status interface reports bounded state, diagnostic codes and tool names, not executable paths, arguments or environment values. Tool discovery alone doesn't prove language-server availability or a successful symbol query.
40
+ DSMM's read-only role restrictions deny rename and format. The `lspRuntime` status interface reports `disabled`, `ready` or `unavailable`, bounded diagnostic codes and tool names, without executable paths, arguments or environment values. Missing Host anchors, native MCP packages or registered tools prevent a ready state; `failOnStartupError: true` makes startup failure fatal. Tool discovery alone doesn't prove language-server availability or a successful symbol query.
41
41
 
42
- DSMM 0.3.16 targets exactly DSH `0.2.1-rc.2`. Automatic external LSP mounting isn't delivered; the retained interface inventory isn't an activation path.
43
-
44
- DSH's native definition/references/implementation/hover surface isn't a promise of diagnostics, rename or format. The retained external interface above doesn't expand that native scope. Independently managed MCP users must verify actual executable and language-server availability; DSMM doesn't certify or repair that environment.
42
+ Supported Host versions are listed in [compatibility](compatibility.md). DSH's own definition/references/implementation/hover surface remains separate from the external diagnostics, rename and format interface. Operators must provide and verify the executable and language server, such as `gopls` for Go; DSMM doesn't install or repair that environment.
@@ -41,6 +41,14 @@ base Deepwork prompt, run `pnpm run generate:roles`. CI uses
41
41
  `pnpm run check:roles` and fails if `agent-presets/` or `prompts/deepwork.md` is
42
42
  stale. Generated assets are package resources, not an alternate source of truth.
43
43
 
44
+ Ordinary native presets use `prompts/source/deepwork/general.md` while Deepwork is
45
+ active. Their native identity, persona, model selection, effort and delegation stay
46
+ in place. DSMM identity comes from an explicit DSMM preset or trusted invocation,
47
+ not mode activation or `defaultActive`. The full `deepwork/default.md` workflow and
48
+ role/model workflow calibrations apply only to admitted DSMM roles. Ordinary
49
+ Agents still receive general guidance, lazy skills and applicable model-parameter
50
+ tuning; they acquire no planner/critic dispatch requirement or DSMM role tools.
51
+
44
52
  Model guidance is subordinate to the selected role and the current runtime's tools
45
53
  and permissions. Role and workflow prompts contain usage guidance rather than a
46
54
  static Host contract or duplicate skill/MCP inventories; availability comes from
@@ -74,6 +82,27 @@ are outside this registration boundary.
74
82
 
75
83
  The invocation projection in the system prompt omits provider/model identifiers.
76
84
  Actual request routes and native UI observations retain their original metadata.
85
+ Runtime lifecycle guidance observes native tree support and actual `list_agents` /
86
+ `wait_agent` definitions. Same-tree messaging preserves the sender; interruption
87
+ uses ancestor authority. Cold continuation keeps its durable creator identity and
88
+ persisted own-session restriction ceiling while the verified live root owns the
89
+ admission lifetime. Current selected-profile content and role routing apply at
90
+ cold activation; resident captures stay immutable and approvals are never restored
91
+ from DSMM records. Ordinary native members use explicit null role/level selectors
92
+ and keep native model ownership. Their depth records contain only evidenced
93
+ inherited or explicit DSMM limits; an omitted limit remains unbounded in that
94
+ record. Native tools retain their current per-invocation depth checks. The public
95
+ native descriptor and lifecycle do not expose a tool-instance depth cap for DSMM
96
+ to preserve across Host configuration changes.
97
+
98
+ `prompts/source/shared/native-teams.md` supplies Team-specific task guidance only
99
+ when the native service is enabled and the current ToolSet admits Team tools.
100
+ Team definitions remain in their original conditional registration; inspection
101
+ without a ToolSet captures inherited ceilings without turning disabled tools on.
102
+ Readonly members retain list/get only, including when assigned as task owners.
103
+ Root reassignment produces `in_progress` work, task mutations do not wake members,
104
+ and persistence-uncertain mutations require rereading rather than automatic replay.
105
+ Task ownership and advisory write scopes never enlarge permissions.
77
106
 
78
107
  Execution guidance requires direct user-facing conclusions, reasons and actions.
79
108
  Use contrast or negation for an expressed misconception or a distinction that
package/docs/roadmap.md CHANGED
@@ -2,13 +2,13 @@
2
2
 
3
3
  ## Version policy
4
4
 
5
- **DSMM 0.3.22 supports DSH `>=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0`.** Official DSH rc.3 gives `engines.dsh` precedence over peer ranges; rc.2 remains the pinned development baseline. The dual branch admits the 0.2.2 RC series starting at `0.2.2-rc.1` (the implemented adaptation target, verified against an installed exact-tag SDK anchor) while keeping 0.2.1 behavior identical; `0.2.2-alpha.*` is excluded. Each DSMM version declares its supported Host range independently of its development dependencies. Older SDKs and old configuration schemas aren't runtime compatibility targets. Loading sessions created by DSMM `0.2.x` is a required compatibility target, separate from retaining old runtime implementations or execution behavior. A dependency upgrade or support outside the declared range requires deliberate reassessment, not an automatic runtime switch.
5
+ **DSMM supports DSH `>=0.2.1-rc.2 <0.2.2-0 || >=0.2.2-rc.1 <0.3.0`.** Official DSH rc.3 gives `engines.dsh` precedence over peer ranges; rc.2 remains the pinned development baseline. The dual branch admits the 0.2.2 RC series starting at `0.2.2-rc.1` (the implemented adaptation target, verified against an installed exact-tag SDK anchor) while keeping 0.2.1 behavior identical; `0.2.2-alpha.*` is excluded. Each DSMM version declares its supported Host range independently of its development dependencies. Older SDKs and old configuration schemas aren't runtime compatibility targets. Historical-session support is limited to the existing native reader and validated continuation paths. Broader historical-version behavior repair and migration are outside the current scope. A dependency upgrade or support outside the declared range requires deliberate reassessment, not an automatic runtime switch.
6
6
 
7
7
  Published `0.3.0` retains its original rc.1 package, tag, assets and version-bound release identity.
8
8
 
9
9
  ## Current capabilities
10
10
 
11
- Official AgentRegistry, SubagentRuntime and JSONL namespace plugins own execution and storage. DSMM supplies immutable admission, roles, routing and scoped policy without a custom execution owner, persistence companion or manual-runtime selector. Coding delegation consumes native activation results and cancellation; live direct-child controls use native ownership and capabilities, while descendant inspection remains read-only.
11
+ Official AgentRegistry, SubagentRuntime and JSONL namespace plugins own execution and storage. DSMM supplies immutable admission, roles, routing and scoped policy without a custom execution owner, persistence companion or manual-runtime selector. Coding delegation consumes native activation results and cancellation. Native tree controls follow Host membership and ancestor authority; retained DSMM descendant-inspection interfaces remain read-only.
12
12
 
13
13
  Deployment configuration uses native Plugins forms and separate sparse Global/native-profile layers. Named Profiles preserve draft, saved revision, future default and current admission as distinct states. Global/store CAS, native form revisions, filesystem protection, operator authority and RPC lifetime checks retain their own boundaries. Desired values don't update mounted services or running task policy. Save/future-default selection, model selection, mode changes and overlay Apply have independent capabilities.
14
14
 
@@ -28,7 +28,7 @@ On DSH `0.2.2-rc.1`, native multi-file patches are available through explicit `t
28
28
  | --- | --- | --- |
29
29
  | Cross-route model fallback on 0.2.2 | 0.2.2 fixes the model selection per step; DSMM keeps same-route bounded retries and degrades `rate-limit-fallback` switching to a same-route retry with a one-time diagnostic. 0.2.1 switching is unchanged. | A public re-selection boundary within the failing step (or per-attempt selection); see [compatibility](compatibility.md#dsh-022-host-differences). |
30
30
  | Profile selection before execution | Existing blank roots can select saved profiles or deployment defaults. Without a session, explicit workspace/Profile selection obtains a native blank, blocks sending until selection is confirmed, then opens it. | Validate native new-session navigation, unsent text/references/attachments and first-send behavior in the target Host. No-session selection is implemented; browser acceptance is separate. |
31
- | Session overlay Apply | Eligible quiescent roots, including started/restored roots, can switch under native subtree maintenance and admission CAS. Active work, open turns, queued input and pending approvals/delegation prevent switching. Resident children retain their captures; new delegations use the selected configuration. | Switching during active work remains unsupported. Unprovable external-provider startup is refused; supported coverage uses the same Host lifecycle and agents registry. See [approval boundaries](deferred-native-approval-risk.md). |
31
+ | Session overlay Apply | Hosts exposing complete provider enumeration can switch eligible quiescent roots under native subtree maintenance and admission CAS. Active work, queued input and pending approval/delegation prevent switching. Hosts without `subagents.list()`, including rc.3, refuse this action while ordinary execution and separate model/mode actions remain available. | A public way to prove all provider work is idle is required on tree-only runtimes. Active-work switching remains unsupported. See [approval boundaries](deferred-native-approval-risk.md). |
32
32
  | Running-call background handoff | Deferred. Select waiting or native parent delivery before starting; existing background dispatch stays unchanged. | A supported same-activation native delivery handoff; see the deferred foreground delegation requirements below. |
33
33
  | Granular sandbox access switches | Deferred for later investigation, including system-certificate access for Windows Schannel. No new switch or backend is supplied for this capability. | A supported per-process enforcement mechanism, identified necessary resources, and isolated on/off verification; see [granular sandbox extensions](#deferred-granular-sandbox-access-switches). |
34
34
  | Restricted-role continuation after restoration | Supported roots and continuable children receive fresh admission through awaited `agent/created`, with current role, parent, readonly, tool and depth checks. Historical approvals do not grant current authority. | Broader historical-format support needs public control of persisted persona/composition and pre-activation restoration boundaries. Cold-child image preflight can still inspect historical `agent.options` before current routing takes effect. Unresolvable presets and missing or unsafe identity remain refused; see [recovery boundaries](compatibility.md#native-history-composition). |
@@ -36,7 +36,7 @@ On DSH `0.2.2-rc.1`, native multi-file patches are available through explicit `t
36
36
  | Catalog-backed raw combinations | Rejected where the complete composition can't be reliably reproduced, regardless of native or DSMM parameter source. Standard calls aren't affected. | A public seam that can reproduce the full catalog composition and preserve native capability/effort semantics. |
37
37
  | Repeated command approval | Eligible DSMM command-rule approvals are remembered for the exact live Agent. Independent native/downstream asks, non-reusable rules and sandbox widening can still require approval. | Diagnose the exact command, working directory, contributing rule and approval reason; do not expand Allow rules merely to suppress a prompt. |
38
38
  | PowerShell Fake-IP access | Verified HTTPS through the current Mihomo Fake-IP route with Node/OpenSSL in native and DSMM `workspace-write`; Windows curl/Schannel fails in both sandbox paths. | Upstream Windows sandbox/Schannel compatibility; configured proxy-environment propagation remains unverified. See [network limitations](runtime-recovery.md#powershell-in-a-fake-ip-environment). |
39
- | External LSP | A startup mounting path exists when Deepwork and `lsp.enabled` are enabled, with a trusted Host install anchor, native MCP client and discoverable tools. LSP defaults to disabled; saving configuration doesn't remount the running integration. | Verify the bridge in the target Host with separately supplied executables and language servers. The integration test skips without its Host anchor; tool discovery alone doesn't establish working language-server operations. Native DSH LSP and independently configured MCP remain separate, and readonly roles don't gain rename/format authority. |
39
+ | External LSP | A startup mounting path exists when the Deepwork module and `lsp.enabled` are enabled, with a trusted Host install anchor, native MCP client and discoverable tools. LSP defaults to disabled; saving configuration doesn't remount the running integration. | Verify the bridge in the target Host with separately supplied executables and language servers. The integration test skips without its Host anchor; tool discovery alone doesn't establish working language-server operations. Native DSH LSP and independently configured MCP remain separate, and readonly roles don't gain rename/format authority. |
40
40
 
41
41
  Search/Fetch retain the explicitly configured native provider. DSMM doesn't automatically enable a direct API, change credentials or forward the recent human question. HTTP Fake-IP behavior and network limits are maintained in [Fake-IP fetch](web-fetch-fakeip.md).
42
42
 
@@ -46,7 +46,7 @@ A read-only native Gateway stream connects admitted role/level and initial versu
46
46
 
47
47
  Repeated provider call IDs continue to execute normally. When the client cannot disambiguate a reused call ID, live observation for that key is removed; each final tool result retains its own child-bound metadata. Disconnects and observer disposal never transfer execution, cancel the child or create another completion owner.
48
48
 
49
- The isolated rc.1 CLI/Gateway acceptance covers observation before foreground completion, independent-peer refusal, child read-only scope, observer disposal and repeated call IDs. Production browser WebSocket/DOM and visual card acceptance remain unverified.
49
+ CLI/Gateway coverage includes observation before foreground completion, independent-peer refusal, readonly scope, observer disposal and repeated call IDs. On the tree-capable Host, an isolated browser also exercises a real native activation through Gateway, the native Connection/generated remote, the production observation controller and ToolCallTree DOM. It covers live own-header routes, completion and observer disposal without cancellation. Visual card states and responsive layout are covered with the native presenter retained. This browser path uses an owned RPC carrier; a separate WebSocket-transport acceptance remains open.
50
50
 
51
51
  ## Deferred: foreground delegation handoff
52
52
 
@@ -57,12 +57,28 @@ Reassess after DSH updates. The pinned `0.2.1-rc.2` API fixes activation deliver
57
57
  - On a candidate DSH update, check for a public same-activation handoff API and its completion/cancellation race semantics. Read-only live invocation metadata uses a separate supported client channel and does not transfer execution or delivery ownership.
58
58
  - Acceptance requires one native completion delivery, no duplicate execution, unchanged permission and ownership checks, and correct handling of completion racing a click. Verify the non-DW option in both states and leave already-background calls untouched. Do not expose an ineffective switch or upgrade/install DSH automatically.
59
59
 
60
- ## Current: native history loading, including the DSMM 0.2.x compatibility target
60
+ ## Current: non-DW Deepwork enhancement
61
+
62
+ Ordinary native presets retain their identity, persona, model selection, explicit effort and native delegation while Deepwork is active. They receive general guidance, lazy skills and applicable model-parameter tuning, without acquiring an orchestrator role or mandatory specialist calls. Explicit DSMM presets and trusted role invocations retain their admitted routing and delegation policy.
63
+
64
+ Native `subagent` and `subagent_fork` calls preserve their original presenter and gain call-card observations after an exact activation receipt is available. Execution-token correlation binds the native start to its call; actual routes come from the child's own request header and terminal state from its native end. An accepted receipt alone does not imply task completion. Before correlation, on unsupported presenters or on unobserved replay, the native output remains available without invented role or route metadata.
65
+
66
+ ## Current: native tree collaboration and Agent Teams
67
+
68
+ Native same-tree messaging preserves the sender, and interruption uses ancestor authority. Members can remain usable after their creator exits. Supported cold role and generic members retain their original identity and captured DSMM readonly/tool/target/depth ceilings while a verified current native root owns their admission lifetime. Current selected-profile content applies without restoring historical approval grants or recreating absent ancestors. Legacy records without an own ceiling retain exact-live-creator recovery.
69
+
70
+ Agent Teams reuses the native task service, conditional tools, revisions and persistence. Readonly DSMM members can list/get; the root handles their task mutations. Reassignment, explicit wake, revision conflicts and persistence-uncertain outcomes follow the native contracts. Task ownership and advisory write scopes grant no execution permissions. See [Agent Teams](agent-teams.md) and the `native-teams` [integration group](testing.md#integration-groups).
71
+
72
+ ## Deferred: prompt delivery of concurrent foreground results
73
+
74
+ Independent foreground calls already execute concurrently through the native scheduler. Returning each completed tool result while a sibling is still running requires a supported native result-submission boundary; the current Host commits results in model-call order. This remains separate from running-activation background handoff. DSMM must not synthesize tool results or take over native completion delivery to supply either capability.
75
+
76
+ ## Current: conservative native history support
61
77
 
62
78
  Historical-session loading uses the existing native DSH reader, not a pending DSMM migration subsystem. `ApiSessionList.list()` reads `sessionQuery.listSessions()`; `SessionHistoryController.page()` reads persisted events without activating an Agent. These paths do not require a historical DSMM preset to resolve or a DSMM admission to succeed. Titles are folded from stored events, and history pages expose conversation events, including tool results.
63
79
 
64
80
  - DSH `0.2.1-rc.2` includes session-format codecs v0–v4 and their migration chain. These are DSH storage-format versions, not DSMM package versions. Records must satisfy the native format and metadata requirements; the current history API requires `cwd`. Unsupported formats or invalid records remain distinct from unavailable execution capabilities.
65
- - Loading sessions created by DSMM `0.2.x` remains a compatibility requirement. The loading mechanism is implemented; there is no identified missing DSMM reader to build. Coverage of representative `0.2.x` root/child artifacts is not established by the existing earlier-`0.3.x` legacy-session test. That is a sample-coverage limit, not evidence that history loading is unimplemented or requires a newer Host.
81
+ - Preserve the implemented native history reader and validated root/child continuation paths. Support depends on readable native records, resolvable identity and current permissions; no blanket compatibility guarantee is made for historical package versions. Additional historical-format repair or migration is outside the current scope.
66
82
  - Historical list entries, titles, messages and tool results must remain readable independently of continuation. Native follow/promotion and Agent resume are separate execution paths: retired presets or unsafe identity may prevent continuation without constituting a history-decoding failure. Continued execution uses current restrictions and fresh authorization, never historical approvals as current authority.
67
83
  - Preserve original records. Any necessary migration must protect user data with a recoverable original and concurrent-write safeguards. Corrupt or genuinely unreadable data must produce a specific diagnostic rather than silently removing the session. Compatibility checks should exercise native list and read-only history independently from continuation.
68
84
 
@@ -78,7 +94,7 @@ Existing blank root sessions support configuration selection and installation be
78
94
 
79
95
  ## UI acceptance: simpler DSMM settings
80
96
 
81
- The Profile redesign, deployment section navigation and initial expansion behavior already exist. The remaining work is a complete review of actual UI states and fixes for concrete findings, not reimplementation of the page. `test/client-named-profiles-browser.test.ts` exercises the production Profile section in an isolated browser shell when Host and Playwright anchors are supplied; it does not establish the full native conversation-header/new-session experience or every deployment drawer.
97
+ The Profile redesign, deployment navigation and initial expansion behavior already exist. Isolated native-browser coverage exercises deployment saves, Profile editor/dialog states, validation, conflict handling, keyboard access, themes and responsive layouts. Explicit route provider/model blanks now block both main-form and dialog saves while preserving numeric drafts and inheritance behavior. The [Profile browser test](../test/client-named-profiles-browser.test.ts) covers that production component; the full native conversation-header/new-session draft, attachment and first-send flow remains a separate acceptance item. Further UI work should address concrete findings in uncovered surfaces, not rebuild the existing page.
82
98
 
83
99
  - Expand drawers containing only one section by default so their controls are immediately visible. Keep multi-section drawers easy to scan and navigate.
84
100
  - Remove all redundant copy: repeated headings, explanations already conveyed by a control, implementation details and “not X, but Y” comparisons.
@@ -134,7 +150,7 @@ The extension must preserve the existing interception scope. Native reads that d
134
150
  - Outside-workspace read policy and native external write/edit refusal already exist. Configurable exact-path/tree grants remain subject to enforcement shared by file tools and shell execution.
135
151
  - Temporary-directory access follows the full default allowance of the selected DSH mode and backend. DSMM does not narrow that allowance to a dedicated `temp/dsh` subtree. Preserve readonly and explicit deny rules; permission to use temporary storage does not authorize deleting unrelated temporary files.
136
152
  - Describe each backend's actual temporary-directory scope accurately. Windows child-process `TMP`/`TEMP` may point to a private session/workspace directory; native file-tool allowances and process confinement must not be presented as identical without evidence.
137
- - DSH `0.2.1-rc.2` has no additional writable-root field. DSH `0.2.2-rc.1` exposes `additionalWritableRoots`, but its bundled Windows ACL backend rejects additional writable directories. Single-file and independent read/write grants remain separate capability gaps.
153
+ - DSH `0.2.1-rc.2` has no additional writable-root field. DSH `0.2.2-rc.1` exposes `additionalWritableRoots`, but its bundled Windows ACL backend rejects additional writable directories. On `0.2.2-rc.3`, additional directory grants authorize native `write` and `edit`; Windows PowerShell, terminals and PTC retain workspace/private-temp access. File-tool and process enforcement are separate, and the Windows backend reports partial enforcement. Single-file and independent read/write grants remain separate capability gaps.
138
154
  - Broader path support requires public Host enforcement, readonly preservation, path/link validation and rejection of adjacent unapproved locations. Unsupported scopes must not silently become full access or a private ACL framework.
139
155
 
140
156
  ## Deferred: granular sandbox access switches
@@ -43,7 +43,7 @@ Idle continuation is separately opt-in under `runtimeRecovery.idleContinuation`;
43
43
 
44
44
  Role delegation uses official activation. Waiting uses `delivery:'caller'`; only native `completed` is normal completion. Failure, partial output and cancellation remain visible. After publication, cancellation uses the receipt's `dispose()` and awaits cleanup. Background must be selected before start with `delivery:'parent'`; an accepted child/message receipt isn't completion. Running waiting calls can't be transferred to background.
45
45
 
46
- Supported exact live children may receive Queue/Steer or interrupt through native controls, subject to current direct-parent/operator authority and actual capabilities. Inbox acceptance and interrupt acknowledgment aren't completion. Unknown sends aren't automatically retried. Read-only descendant inspection grants no control.
46
+ Native controls retain their operator and attachment checks. Tree-capable Hosts support same-tree messages from the actual sender and ancestor-only interruption; older Hosts retain adjacent-child authority. Supported cold members require verified native identity, current policy and an own restrictive ceiling when their creator is absent. Inbox acceptance and interrupt acknowledgment aren't completion. Unknown sends aren't automatically retried. Inspection alone grants no control.
47
47
 
48
48
  ## Cold resume and lifetime
49
49
 
@@ -61,7 +61,7 @@ Diagnostics omit request/provider bodies, credentials and goal/todo text.
61
61
 
62
62
  ## Known Host limitation: Windows sandbox and Git Schannel
63
63
 
64
- DSH `0.2.1-rc.2` with the `windows-acl` backend can fail HTTPS Git operations under `workspace-write` with `schannel: AcquireCredentialsHandle failed: SEC_E_NO_CREDENTIALS (0x8009030e)`. This was reproduced on 2026-10-21 using a public repository and isolated Git configuration, without account authentication.
64
+ DSH `0.2.1-rc.2` and `0.2.2-rc.3` with the `windows-acl` backend can fail HTTPS Git operations under `workspace-write` with `schannel: AcquireCredentialsHandle failed: SEC_E_NO_CREDENTIALS (0x8009030e)`. The failure occurs with public repositories and isolated Git configuration, without account authentication.
65
65
 
66
66
  The same Git command succeeds outside the sandbox, fails through both the native DSH executor and the DSMM-managed native tool with unchanged effective sandbox policy, and succeeds inside the same sandbox when explicitly using OpenSSL. This isolates the failure to the Windows sandbox/Schannel interaction, not a DSMM-specific permission decision. The specific restricted-token flag, SID or integrity-level interaction remains undetermined; the error does not establish missing GitHub credentials.
67
67
 
@@ -73,7 +73,7 @@ git -c http.sslBackend=openssl ls-remote https://github.com/git/git.git HEAD
73
73
 
74
74
  This changes the TLS trust backend, not the sandbox policy, and keeps certificate verification enabled. DSMM must not inject it silently, change global Git configuration, disable TLS verification or switch to full access to hide the failure.
75
75
 
76
- Upstream fix status is unconfirmed. On a later DSH version, recheck the same read-only Git operation with Schannel through the native `workspace-write` executor and DSMM-managed path. A sandbox fix must also preserve denial of workspace-external writes; a successful full-access command is not a fix. No local Host or dependency patch is applied for this limitation.
76
+ The failure remains reproducible on `0.2.2-rc.3` through both the native `workspace-write` executor and DSMM-managed path. Node/OpenSSL HTTPS with certificate validation succeeds in both paths, while unauthorized workspace-external writes remain denied. On a later DSH version, recheck Schannel and the write boundary together. A successful full-access command is not a sandbox fix. No local Host or dependency patch is applied for this limitation.
77
77
 
78
78
  ### PowerShell in a Fake-IP environment
79
79
 
package/docs/testing.md CHANGED
@@ -57,7 +57,8 @@ serially.
57
57
  | `native-runtime` | Multi-step Host/runtime, resume, module admission, real shell safety and native SDK/CLI wrappers. Some cases require `DSMM_TEST_DSH_ENTRY` or `DSMM_COLD_PROFILE_SDK_ANCHOR`. |
58
58
  | `host-boundaries` | Isolated installed-Host CLI routing, cold resume, native/DSMM LLM owners, default effort, tools, child admission and retry boundaries, plus the resolver-free Fake-IP adapter guard. Requires `DSMM_TEST_DSH_ENTRY`; uses a loopback model service and no real API credentials. |
59
59
  | `adaptation-remaining` | Targeted dual-Host feature compatibility. Requires `DSMM_TEST_DSH_ENTRY`. Native patch tests run the built package through an isolated CLI, native tool-fs and filesystem sandbox, covering explicit configuration, observation, multi-path effects and permission/cancellation boundaries. Live-delegation tests load the built package in the selected Host and exercise its actual Gateway/Connection stream while loopback child HTTP is held, including observer disposal and repeated provider call IDs; this is not browser DOM acceptance. Dynamic-header tests resolve the selected SDK and run built DSMM owners/adapters through a real Cordis Loader/Pi-AI adapter with loopback HTTP and configuration/retirement checks; their dedicated resolver does not redirect `lib` back to source. Unsupported native capabilities explicitly skip; rc.2 retains its existing filesystem tool set. |
60
- | `frontend` | Real browser deployment/profile/editable-choice flows and native role cards. Browser cases require both `DSMM_TEST_DSH_ENTRY` and `DSMM_TEST_PLAYWRIGHT_ENTRY`. |
60
+ | `native-teams` | Real native tree messages, ancestor interruption, creator-absent role/generic continuation and Agent Teams task permissions. Set `DSMM_TEST_DSH_ENTRY` to a Host exposing the relevant native capabilities; these files use the Host-source resolver. |
61
+ | `frontend` | Real browser deployment/profile/editable-choice flows and native role/native delegation cards, including the actual Gateway-to-DOM observation path. Browser cases require both `DSMM_TEST_DSH_ENTRY` and `DSMM_TEST_PLAYWRIGHT_ENTRY`; `DSMM_TEST_BROWSER_EXECUTABLE` selects an existing browser. |
61
62
  | `delivery` | Actual package/frontend materialization and full native/ordinary module delivery. Native cases require an explicit DSH anchor. |
62
63
 
63
64
  For the focused Host boundary suite, set `DSMM_TEST_DSH_ENTRY` to the installed
package/dsh-plugin.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "manifestVersion": "0.15",
4
4
  "id": "com.hugefiver.dsmm",
5
5
  "name": "DSMM",
6
- "version": "0.3.26",
6
+ "version": "0.3.27",
7
7
  "facets": {
8
8
  "host": {
9
9
  "entry": "lib/index.js",
@@ -0,0 +1,8 @@
1
+ import type { RoleCallObservation } from "../role-control-types.js";
2
+ export interface NativeActivationIdentity {
3
+ readonly kind: "name" | "id";
4
+ readonly value: string;
5
+ }
6
+ export declare function nativeActivationIdentity(meta: unknown): NativeActivationIdentity | undefined;
7
+ export declare function observedNativeTool(toolName: string, callId: string, identity: NativeActivationIdentity | undefined, observation: RoleCallObservation | undefined): import("../role-control-types.js").NativeCallObservation | undefined;
8
+ //# sourceMappingURL=NativeToolView-data.d.ts.map
@@ -0,0 +1,19 @@
1
+ export function nativeActivationIdentity(meta) {
2
+ if (meta === null || typeof meta !== "object" || Array.isArray(meta))
3
+ return undefined;
4
+ const value = meta;
5
+ if (value.kind !== "activation")
6
+ return undefined;
7
+ if (typeof value.name === "string" && value.name.trim() !== "")
8
+ return { kind: "name", value: value.name };
9
+ if (typeof value.subagentId === "string" && value.subagentId.trim() !== "")
10
+ return { kind: "id", value: value.subagentId };
11
+ return undefined;
12
+ }
13
+ export function observedNativeTool(toolName, callId, identity, observation) {
14
+ if (identity === undefined || observation?.kind !== "native" || observation.toolName !== toolName || observation.callId !== callId)
15
+ return undefined;
16
+ const observedIdentity = identity.kind === "name" ? observation.nativeName : observation.childId;
17
+ return observedIdentity === identity.value ? observation : undefined;
18
+ }
19
+ //# sourceMappingURL=NativeToolView-data.js.map
@@ -0,0 +1,19 @@
1
+ import type { Context } from "@deepseek-ai/cordis";
2
+ import type { ToolCallViewProps } from "@deepseek-ai/dsh-client-ui-tool/client";
3
+ import type { HostObservable, InjectFace, PropsLocale } from "@deepseek-ai/dsh-client-ui-slots";
4
+ import type { ComponentType } from "react";
5
+ import { ROLE_TOOL_NS } from "./RoleToolView-locales.js";
6
+ import type { RoleCallObservationController, RoleCallObservationState } from "./role-call-observations.js";
7
+ type NativeProps = ToolCallViewProps & PropsLocale<"conversation">;
8
+ type NativeView = ComponentType<NativeProps>;
9
+ type Props = ToolCallViewProps & PropsLocale<typeof ROLE_TOOL_NS> & InjectFace<{
10
+ hooks: {
11
+ roleCalls: HostObservable<RoleCallObservationState>;
12
+ };
13
+ nativeView: NativeView;
14
+ nativeT: NativeProps["t"];
15
+ }>;
16
+ export declare function NativeToolView(props: Props): import("react").JSX.Element;
17
+ export declare function registerNativeToolViews(ctx: Context, observations: RoleCallObservationController): () => void;
18
+ export {};
19
+ //# sourceMappingURL=NativeToolView.d.ts.map