@dsmm/dsmm 0.3.13 → 0.3.15

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 (45) hide show
  1. package/README.md +77 -36
  2. package/docs/agent-presets.md +1 -1
  3. package/docs/compatibility.md +2 -2
  4. package/docs/deferred-native-approval-risk.md +4 -4
  5. package/docs/design.md +1 -1
  6. package/docs/lsp.md +1 -1
  7. package/docs/model-routing.md +1 -1
  8. package/docs/native-permissions.md +12 -2
  9. package/docs/profiles.md +14 -5
  10. package/docs/roadmap.md +67 -30
  11. package/docs/runtime-recovery.md +1 -1
  12. package/docs/safety-guards.md +1 -1
  13. package/docs/settings-status.md +1 -1
  14. package/lib/client/DeploymentFields.js +3 -1
  15. package/lib/client/DeploymentPage.js +34 -2
  16. package/lib/client/EditableChoice.js +5 -2
  17. package/lib/client/PermissionsPanel.js +1 -1
  18. package/lib/client/ProfileModelsDialog.d.ts +4 -2
  19. package/lib/client/ProfileModelsDialog.js +46 -7
  20. package/lib/client/ProfilesSection.js +47 -17
  21. package/lib/client/RoleToolView-locales.d.ts +1 -1
  22. package/lib/client/RoleToolView-locales.js +2 -2
  23. package/lib/client/SessionProfiles.js +24 -6
  24. package/lib/client/children-locales.d.ts +1 -1
  25. package/lib/client/controller.d.ts +23 -1
  26. package/lib/client/controller.js +289 -8
  27. package/lib/client/deployment-locales.d.ts +2 -0
  28. package/lib/client/deployment-locales.js +3 -1
  29. package/lib/client/index.js +10 -2
  30. package/lib/client/locales.d.ts +8 -0
  31. package/lib/client/locales.js +16 -6
  32. package/lib/client/profile-blank.d.ts +43 -0
  33. package/lib/client/profile-blank.js +19 -0
  34. package/lib/client/session-labels.d.ts +1 -0
  35. package/lib/client/session-labels.js +3 -0
  36. package/lib/client/styles.d.ts +1 -1
  37. package/lib/client/styles.js +27 -12
  38. package/lib/client.js +714 -234
  39. package/lib/command-approval.d.ts +2 -0
  40. package/lib/command-approval.js +4 -1
  41. package/lib/index.js +2 -1
  42. package/lib/native-admission.d.ts +10 -3
  43. package/lib/native-admission.js +129 -28
  44. package/lib/profile-runtime.js +3 -5
  45. package/package.json +1 -1
package/README.md CHANGED
@@ -1,66 +1,107 @@
1
- # DSMM for DeepSeek Harness
1
+ # DSMM
2
2
 
3
- DSMM (`@dsmm/dsmm`) adds native configuration, role delegation and child controls to DeepSeek Harness. **DSMM** is the Plugins page and package title; **Deepwork** is its optional workflow module. It isn't an OpenCode compatibility layer.
3
+ DSMM 是 DeepSeek Harness(DSH)的插件。它让不同 Agent 分工处理任务,给各个角色配置模型和备用模型,把常用设置保存成方案,也提供 Git 写操作等命令防护规则。
4
4
 
5
- **DSMM 0.3.13 targets exactly DSH `0.2.1-rc.2`** and Node.js 22 or later. The maintained source repository is [hugefiver/dsmm](https://github.com/hugefiver/dsmm).
5
+ 比如,让 Planner 拆解任务、Coding 写代码、Reviewer 检查结果,再由 Orchestrator 协调。各个角色可以用不同的模型,不必共用一套配置。
6
6
 
7
- ## Configuration and profiles
7
+ 当前发布版本为 `@dsmm/dsmm@0.3.15`,支持 DSH `0.2.1-rc.2`。安装前请确认客户端版本;其他 DSH 版本暂不在支持范围内。Desktop 使用自带运行时,独立命令行环境需要 Node.js 22 或更高版本。
8
8
 
9
- **Plugins → DSMM bundle config** is the deployment editor. Choose sparse Global settings or the current native profile override, then open a module drawer. Each scope has independent Save, Refresh and Discard actions. Profile writes require the exact authorized native form and revision; unavailable forms never fall back to Global writes. Core configuration and permissions remain available without a session and with Deepwork off.
9
+ - 源码仓库:[hugefiver/dsmm](https://github.com/hugefiver/dsmm)
10
+ - 发布地址:[GitHub Releases (v0.3.15)](https://github.com/hugefiver/dsmm/releases/tag/v0.3.15) 与 [npm (@dsmm/dsmm)](https://www.npmjs.com/package/@dsmm/dsmm)
10
11
 
11
- Resolution is **defaults → sparse Global deployment → explicit native entry/profile → admitted named overlay**. Objects merge, arrays replace, and explicit false, empty and same-default values remain pins. Unset removes only the current layer's key. Global storage is `<resolvedDshHome>/plugins/dsmm`; home resolution uses explicit `profileContext.home`, then `DSH_HOME`, then the native `~/.dsh` default.
12
+ ---
12
13
 
13
- **Settings → Deepwork Profiles** separates editor draft, saved revision, future-default pin and current-session admission. Save doesn't activate a revision. Future-default selection affects new sessions, not existing Agents or their children. Live overlay **Apply is unavailable** in rc.2: save and select a default for a new session instead. There is no queued Apply or implicit restart.
14
+ ## 安装与升级
14
15
 
15
- The Conversation menu's **Use profile model** is an independent native selection action using the admitted immutable configuration, not a later draft. The **Deepwork** toggle records explicit intent, including a same-default choice; DW presets default on, but explicit off wins without removing persona or permission boundaries. Model selection, mode switching and overlay Apply each have their own capability and refusal reason. Disabling Apply doesn't disable the other two. Sessionless controls don't create a session. See [Profiles](docs/profiles.md) and [settings/status](docs/settings-status.md).
16
+ ### 初次安装
16
17
 
17
- Desired configuration, mounted startup capability and actual Agent admission are separate states. Saves don't remount services or update running task policy. Global and named stores use their own CAS/atomic-write boundaries; native profile forms use native revision CAS, not a cross-layer transaction. A committed save with failed observation remains saved with refresh required. An unconfirmed native mutation requires reread, not blind retry. Writes require the actual operator and valid connection/owner lifetime through precommit.
18
+ 1. 打开 DeepSeek Harness Desktop,进入 **插件(Plugins)** 页面。
19
+ 2. 点击 **添加插件(Add plugin)**,输入 `@dsmm/dsmm@0.3.15` 并确认。
20
+ 3. 安装完成后,检查插件是否处于启用状态。如果界面提示需要重启,请按提示重启客户端。
18
21
 
19
- ## Roles and execution
22
+ Desktop 的插件由客户端自己管理。全局 npm 安装和独立 npm 版 `dsh` 命令不能替代这一步。
20
23
 
21
- The inventory contains 11 base roles, 11 categories and fourteen configurable lazy skills. Only the Orchestrator is a selectable standing root and the only registered native preset; every other role is an internal delegation target whose children share the parent's standing composition. Cross-cutting defaults off. Preset discovery, root eligibility and model availability are separate checks. A role name doesn't prove a different model or grant authority.
24
+ ### 已有版本升级(Windows)
22
25
 
23
- Official **AgentRegistry, SubagentRuntime and JSONL namespace plugins own execution and storage**. DSMM binds immutable per-Agent configuration and per-call role policy through native preset/provider composition and awaited creation. There is no custom execution owner, manual-runtime selector or persistence companion to install. `preset-skills` is an internal Agent-scoped handle, not a public Loader plugin.
26
+ DSH Desktop 当前不支持在界面中用同名版本原位覆盖更新插件。受支持的升级方式如下:
24
27
 
25
- Role calls wait for the official activation result by default. Only native `stopReason: completed` is normal completion; failure, interruption and partial output remain distinct. After publication, cancellation uses the activation receipt's `dispose()` and waits for cleanup. If background execution is enabled, choose `run_in_background:true` **before starting**; delivery is then owned by the native parent notification path. An accepted child/message receipt isn't a completed task. A running waiting call can't be transferred to background.
28
+ 1. 保存好正在进行的任务,**正常退出并完全关闭 DSH Desktop**。
29
+ 2. 使用 Desktop 安装自带的命令行工具更新配置。以下示例适用于 Windows 默认安装路径(`%LOCALAPPDATA%\Programs\DeepSeek Harness\`):
30
+ ```powershell
31
+ & "$env:LOCALAPPDATA\Programs\DeepSeek Harness\resources\runtime\cli\bin\dsh.cmd" plugin --profile desktop add @dsmm/dsmm@0.3.15 --save-exact --ignore-scripts --registry=https://registry.npmjs.org
32
+ ```
33
+ *若安装在自定义路径,请替换为对应的实际位置;非 Windows 系统请参考 Desktop 自身菜单或官方指引,不要混用非 Desktop 的独立 CLI 命令。*
34
+ 3. 重新打开 DSH Desktop 即可加载新版本。
26
35
 
27
- Supported live direct-child controls use native Queue, Steer and interrupt under exact-parent and operator authority. Descendant inspection is read-only. Availability follows actual native capabilities, not a visible button or catalog row. Unknown send outcomes must not trigger automatic resend. **Resuming a persisted DSMM session builds a fresh admission from the current deployment**: history stays readable user intent, while delegation authority and child residency are never reconstructed from logs, labels or current settings. See [Agent presets and child control](docs/agent-presets.md).
36
+ 不要在任务还在运行时升级,也不要为升级手动删除配置。插件更新不保证正在运行的任务能继续执行。
28
37
 
29
- Collapsed call rows show **Call Coding** / **调用 Coding** when the target is known; child labels use **Coding: task description**. Requested identity is distinct from validated actual execution identity. Partial arguments, failures, interruptions and current-format replay retain that distinction, including nested PTC calls. Native safety refusal views take precedence.
38
+ ---
30
39
 
31
- ## Models and resources
40
+ ## 启用 Deepwork
32
41
 
33
- Ordinary roots retain native provider/model/effort selection. Role calls default to `level:"normal"`; eligible targets may configure exact `low`, `high` and `max`. `subagents.toolTopology` chooses per-role or parameterized tools. Per-call `route` is absent unless deployment explicitly grants it; named profiles can't grant that permission. Child routes are initial defaults, not every-turn overrides of later native intent.
42
+ Deepwork 是 DSMM 提供的角色委派与模型路由工作流模块。
34
43
 
35
- Standard supported requests use native prepared calls. Raw/custom parameters and Pi-AI stop-only requests use the minimal public Pi-AI `openai-completions` payload seam for self-contained literal or explicit model-mapping configurations. Catalog-backed raw combinations that can't be reliably reproduced are rejected regardless of native or DSMM parameter source. Standard Coding remains available, and native effort encoding and advertised capabilities remain unchanged. See [model routing](docs/model-routing.md) and [bounded recovery](docs/runtime-recovery.md).
44
+ 插件安装后,Deepwork 模块总开关默认开启,但新创建的普通会话默认不开启 Deepwork 模式。
36
45
 
37
- Skills expose metadata first and read bodies on demand within the admitted Agent scope. Deepwork off hides DSMM skills, not Host/project resources or role restrictions. Non-DSMM ancestor resource winners remain authoritative. [Maintenance](docs/maintenance.md) covers source ownership, generation, packaged resources, licenses and attribution.
46
+ - **在当前会话中开启**:点击会话菜单中的「启用 Deepwork」(英文界面为 Enable Deepwork)。开启后当前会话即可使用角色调度;再次点击「关闭 Deepwork」即可停用。
47
+ - **让新会话默认开启**:在预设方案配置中,将「默认 Deepwork 模式」(`defaultActive`)设置为启用。
48
+ - **模块总开关限制**:如果在插件部署配置中关闭了 Deepwork 模块总开关,会话菜单中将无法开启该模式;若界面提示需要重启,需重启客户端生效。
38
49
 
39
- DSMM-managed external LSP remains disabled, including with `lsp.enabled:true`. It isn't automatically remounted by Save, restart or Deepwork activation. The retained external MCP configuration calls the `ocmm-lsp` executable from the published `ocmm` npm package; DSMM carries no LSP source, native build or LSP publication lane. DSH's own LSP and independently configured MCP are unaffected. See [LSP boundary](docs/lsp.md).
50
+ ---
40
51
 
41
- ## Use a local artifact
52
+ ## 配置与方案
42
53
 
43
- Use an explicitly authorized locally packed artifact for evaluation. For a disposable CLI evaluation:
54
+ ### 两种配置范围
44
55
 
45
- ```powershell
46
- $env:DSH_HOME = "<disposable-test-home>"
47
- dsh --profile <test-profile> --from-default-profile headless --dump-config
48
- dsh plugin --profile <test-profile> add <absolute-path-to-local-candidate.tgz>
49
- dsh --profile <test-profile> --dump-config
50
- ```
56
+ DSMM 包含两处相互独立的配置区域:
51
57
 
52
- Use an empty test home and a fresh profile. These examples aren't authorization to install software or change a real Desktop/TUI profile. Headless task execution requires a separately configured native provider and effective `defaultActive:true`; it doesn't select Agent presets. `/deepwork [off|message]` and inspection-only `/dsmm-status [json]` belong to the Host command adapter, not headless task text. `--dump-config` shows Loader composition, not full Global-aware admission.
58
+ - **插件部署配置(Plugins → DSMM bundle config)**:用于管理全局部署或当前原生 profile 的覆盖项,包括模块开关、全局执行策略与防护设置。
59
+ - **具名预设方案(Settings → Deepwork Profiles)**:用于保存不同的工作流配置(如日常编码、深度审查等),每个方案拥有独立的角色模型路由与参数。
53
60
 
54
- Real installation must preserve providers/accounts, credentials, unrelated Loader rows and history. No old-profile or cold-history migration is supplied. Desktop plugin installation follows publication and requires the exact rc.2 Host; it doesn't upgrade the Host. See [compatibility](docs/compatibility.md) and [release policy](docs/releasing.md).
61
+ ### 方案保存、设为默认与会话切换
55
62
 
56
- ## Safety and network limits
63
+ 在 **Settings → Deepwork Profiles** 中编辑方案时,请注意以下操作的区别:
57
64
 
58
- DSH owns approval, sandboxing, depth and cancellation. DSMM narrows authority through role, tool and exact-call checks; it doesn't create a second approval queue or reusable grants. Native once approval applies only to that call and scope. See [native permissions](docs/native-permissions.md) and [safety guards](docs/safety-guards.md).
65
+ - **保存方案(Save profile)**:仅将当前修改写入文件保存,不会自动改变正在运行的会话,也不会自动变成新建会话的默认方案。
66
+ - **设为未来默认(Set as future default)**:将当前选中的方案设为后续新建会话使用的默认配置。
67
+ - **在当前会话中应用方案(Apply profile to current session)**:在已有对话历史的原生会话中直接更换预设方案。
68
+ - 会话必须处于真正空闲状态:无正在生成的回复、无排队输入、无待处理审批且无运行中的子任务。界面单独显示 `idle` 状态并不代表没有后台活动,需等待所有操作完全结束。
69
+ - 切换成功后,已存在的旧子任务继续保留启动时的原配置与限制,后续新委派的子任务才会使用新方案。
70
+ - **使用方案模型(Use profile model)**:把当前会话的模型切换为方案中配置的主模型。保存或切换方案本身不会自动改模型;要一起换模型,需要明确点击这个操作。操作期间如果又手动选择了模型,以较新的选择为准。
59
71
 
60
- Search/Fetch remain explicitly selected native providers. The optional Fake-IP fetch adapter, its exact `/16` policy and network limits are documented in [Fake-IP fetch](docs/web-fetch-fakeip.md). The shell rejection source remains unknown; neither tool Allow nor disabling sandbox is a network fix.
72
+ ### 配置角色模型与参数
61
73
 
62
- Retired brand-specific routing fields reject rather than migrate. Unsupported configuration and history stay untouched.
74
+ 在方案编辑页点击「配置全部 Agent 模型」(Configure all Agent models),可以为各个角色配置:
63
75
 
64
- ## Development and release
76
+ - **主模型(Primary)**:该角色优先调用的服务商与模型。
77
+ - **推理强度与参数**:按模型支持的选项填写,例如 medium 或 high。不同模型接受的值可能不同,不能把同一组档位套在所有模型上。
78
+ - **备用路由(Fallback Routes)**:当主模型不可用时依次尝试的候选通道(最多支持 32 个备用路由)。
65
79
 
66
- The checked-in `src/`, `prompts/`, and `skills/` trees are the standalone maintenance sources. Build, test, role generation, frontend provenance, and package checks do not read a sibling repository. Development and final acceptance use the affected module and interface suites rather than a full test run; see [testing](docs/testing.md), [maintenance](docs/maintenance.md), and [release policy](docs/releasing.md).
80
+ ---
81
+
82
+ ## 权限和后台任务
83
+
84
+ - **Git 保护范围不是执行许可**:“所有写操作”和“仅高风险写操作”决定保护规则检查哪些 Git 操作;检查后是询问、禁止还是关闭保护,由对应设置决定。选择范围不代表自动执行或批准命令。
85
+ - **子任务不继承临时授权**:子任务被拒绝的操作不会自动继承父任务已获得的单次审批。
86
+ - **禁止审批时会直接拒绝**:如果原生会话的审批策略是 never,需要审批的操作会被拒绝,DSMM 不能替它放行。
87
+ - **授权功能仍有限制**:目前没有按指定外部目录单独授予写权限、为子 Agent 开放审批,或跨会话记住临时授权的功能。
88
+ - **任务等待与取消**:角色调用默认等待执行完成。若需后台异步执行,须在启动前完成配置,正在前台同步等待的任务无法中途切入后台;取消任务请使用原生的中断操作。
89
+
90
+ ---
91
+
92
+ ## 相关文档
93
+
94
+ 需要了解具体设置时,可以继续阅读:
95
+
96
+ - [预设方案](docs/profiles.md)
97
+ - [插件设置](docs/settings-status.md)
98
+ - [模型与备用路由](docs/model-routing.md)
99
+ - [权限与审批](docs/native-permissions.md)
100
+
101
+ 参与开发请看[测试说明](docs/testing.md)、[兼容性说明](docs/compatibility.md)和[维护指南](docs/maintenance.md)。
102
+
103
+ ---
104
+
105
+ ## 许可证与归属
106
+
107
+ 本项目遵循 [Anti American AI Public License (AAAPL)](LICENSE),版权所有 © 2026 Hugefiver。依赖库与第三方授权详情请见 [docs/maintenance.md](docs/maintenance.md)。
@@ -1,6 +1,6 @@
1
1
  # Deepwork Agent presets and child control
2
2
 
3
- DSMM 0.3.13 targets exactly DSH `0.2.1-rc.2`. Native package composition and callable admission are separate requirements.
3
+ DSMM 0.3.15 targets exactly DSH `0.2.1-rc.2`. Native package composition and callable admission are separate requirements.
4
4
 
5
5
  ## Roles and composition
6
6
 
@@ -1,6 +1,6 @@
1
1
  # DSMM compatibility and upgrade boundaries
2
2
 
3
- **DSMM 0.3.13 targets exactly DSH `0.2.1-rc.2`** and Node.js 22 or later. Older SDKs and automatically drifting versions aren't supported targets.
3
+ **DSMM 0.3.15 targets exactly DSH `0.2.1-rc.2`** and Node.js 22 or later. Older SDKs and automatically drifting versions aren't supported targets.
4
4
 
5
5
  ## Supported integration
6
6
 
@@ -50,7 +50,7 @@ Standard supported model calls use native prepared calls. Raw/custom and Pi-AI s
50
50
 
51
51
  ## Retired compatibility surfaces
52
52
 
53
- No old SDK branch, legacy-read host, cold-profile migration, session repair or custom-owner selector is a 0.3.13 activation path. Old libraries, captures and unmarked history aren't copied, rewritten, repaired or adopted by same-name fallback. Retired brand calibration/default-effort and MaxReasoningPresets fields reject with `deprecated-field`; edit configuration deliberately using generic routes and parameters.
53
+ No old SDK branch, legacy-read host, cold-profile migration, session repair or custom-owner selector is a 0.3.15 activation path. Old libraries, captures and unmarked history aren't copied, rewritten, repaired or adopted by same-name fallback. Retired brand calibration/default-effort and MaxReasoningPresets fields reject with `deprecated-field`; edit configuration deliberately using generic routes and parameters.
54
54
 
55
55
  Published **0.3.0 retains its rc.1 identity**, immutable tag, package, assets and version-bound receipt grammar. Historical release controls interpret those records under their original identity, not as a runtime compatibility branch.
56
56
 
@@ -1,10 +1,10 @@
1
1
  # 原生审批与运行中配置边界
2
2
 
3
- DSMM 0.3.13 精确面向 DSH `0.2.1-rc.2`。原生批准仅对同次调用及其批准范围有效,不扩展到其他输入或后续调用。配置来源变化不把 DSMM epoch 变成第二次审批,也不取消已经等待的原生审批。
3
+ DSMM 0.3.15 精确面向 DSH `0.2.1-rc.2`。原生批准仅对同次调用及其批准范围有效,不扩展到其他输入或后续调用。配置来源变化不把 DSMM epoch 变成第二次审批,也不取消已经等待的原生审批。
4
4
 
5
5
  ## 当前限制
6
6
 
7
- Live overlay Apply 不可用。需要另一套 overlay 时,保存并选择未来默认,再创建新会话;不能强制重绑运行中的父 Agent 或待审批调用。现有 Agent 与子任务保留各自准入时的不可变配置。
7
+ 已执行或恢复的 root 在原生子树真正空闲时可显式切换 overlay。事务使用原生 maintenance 和 admission CAS,保留会话 ID、历史、草稿及原生模型选择。仍有活动工作、未结束 turn、排队输入、工具/审批或待处理委派时拒绝切换,不能强制重绑运行中的父 Agent 或待审批调用。已有子 Agent 保留捕获的配置和权限上限,新委派使用新配置;无法证明外部 provider 启动边界时仍拒绝。观测范围限定为共享同一 Host 生命周期和 agents registry 的原生服务。
8
8
 
9
9
  Use profile model 与普通模式操作具有独立 capability,不因 Apply 不可用而一并关闭,也不授予新的 overlay 权限。
10
10
 
@@ -14,7 +14,7 @@ Use profile model 与普通模式操作具有独立 capability,不因 Apply
14
14
 
15
15
  ## 自动 Git 范围与规则记忆
16
16
 
17
- `guards.gitWriteScope` 默认为 `all-writes`,可选 `high-risk`,与 `gitWriteGuard: ask | deny | off` 正交。`high-risk` 仅缩小自动 Git 保护的动作集合,不过滤显式 shell ask/deny,也不关闭对象型 nativeCommands ask;readonly、原生策略和既有 Full access/simple 路径的优先级不变。配置沿用全局、当前 DSH 配置和具名 profile 的继承规则,不增加 live Apply。
17
+ `guards.gitWriteScope` 默认为 `all-writes`,可选 `high-risk`,与 `gitWriteGuard: ask | deny | off` 正交。`high-risk` 仅缩小自动 Git 保护的动作集合,不过滤显式 shell ask/deny,也不关闭对象型 nativeCommands ask;readonly、原生策略和既有 Full access/simple 路径的优先级不变。配置沿用全局、当前 DSH 配置和具名 profile 的继承规则;修改规则本身不授予 overlay 切换资格。
18
18
 
19
19
  DSMM 的命令规则批准仅在精确的存活 Agent 对象内记忆;需完整原生审批服务最终返回 `allowed-once` 且调用绑定有效。同一规则允许的参数变化可以复用 DSMM 规则批准,不能扩展显式精确匹配或跨动作、工具注册、目录及规则语义借用。配置来源/规则变更使未来记忆失效,Agent 销毁、session 对象替换或控制器退休结束记忆。子 Agent 可捕获设置,但不继承父批准;记忆不持久化,也不跨恢复或重启。
20
20
 
@@ -22,4 +22,4 @@ DSMM 的命令规则批准仅在精确的存活 Agent 对象内记忆;需完
22
22
 
23
23
  减少重复人工介入改变了风险,不能宣称总体风险不变。通用 Git 路径在既有 guard 边界重核调用,仍信任宿主后续可变的同进程 middleware;managed Shell 保持受控最终入口检查,但二者都不承诺隔离主动绕过管线的同进程插件或提供 OS 隔离,也不承诺所有工具没有弹窗。
24
24
 
25
- 遇到拒绝时先检查实际结果,不无条件重跑整个父任务。未来的 live Apply 必须能绑定精确调用、配置与未决审批,保持上述权限和生命周期边界;当前版本不提供该操作。
25
+ 遇到拒绝时先检查实际结果,不无条件重跑整个父任务。成功的空闲切换使精确子树的命令规则记忆失效,失败不清除记忆,旧 capture 不能迟到提交新记忆。运行中切换仍不提供;不得通过取消任务或复用批准绕过空闲条件。
package/docs/design.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # DSMM native architecture
2
2
 
3
- DSMM 0.3.13 targets exactly DSH `0.2.1-rc.2`. It supplies Core configuration and native permission integration plus optional Deepwork roles, routing and skills.
3
+ DSMM 0.3.15 targets exactly DSH `0.2.1-rc.2`. It supplies Core configuration and native permission integration plus optional Deepwork roles, routing and skills.
4
4
 
5
5
  ## Native integration boundary
6
6
 
package/docs/lsp.md CHANGED
@@ -39,6 +39,6 @@ An independently mounted native MCP client using `serverName: dsmm_lsp` uses the
39
39
 
40
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.
41
41
 
42
- DSMM 0.3.13 targets exactly DSH `0.2.1-rc.2`. Automatic external LSP mounting isn't delivered; the retained interface inventory isn't an activation path.
42
+ DSMM 0.3.15 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
43
 
44
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.
@@ -2,7 +2,7 @@
2
2
 
3
3
  Providers, accounts and credentials remain native DSH configuration, never named-profile contents.
4
4
 
5
- DSMM 0.3.13 targets exactly DSH `0.2.1-rc.2`. Standard calls use native prepared calls. The public Pi-AI completions seam supports self-contained literal and explicit model-mapping raw configurations; unsupported catalog-backed raw combinations are rejected without affecting standard calls.
5
+ DSMM 0.3.15 targets exactly DSH `0.2.1-rc.2`. Standard calls use native prepared calls. The public Pi-AI completions seam supports self-contained literal and explicit model-mapping raw configurations; unsupported catalog-backed raw combinations are rejected without affecting standard calls.
6
6
 
7
7
  ## Native roots and child defaults
8
8
 
@@ -1,6 +1,14 @@
1
1
  # Native permissions
2
2
 
3
- DSMM 0.3.13 targets exactly DSH `0.2.1-rc.2`. DSH owns approval; DSMM composes policy into the native tool pipeline without a second approval queue or UI. DSMM command-rule approval memory is limited to the exact live Agent and is distinct from native once grants.
3
+ DSMM 0.3.15 targets exactly DSH `0.2.1-rc.2`. In the current runtime, DSH owns approval; DSMM composes policy into the native tool pipeline without a second approval queue or UI. DSMM command-rule approval memory is limited to the exact live Agent and is distinct from native once grants.
4
+
5
+ ## Permission architecture and extension target
6
+
7
+ Permission control has two separately configured lanes: **additional protection**, where DSMM detects an operation DSH would otherwise permit and requests native approval according to its guard configuration; and **native-request authorization**, where DSMM answers an intercepted DSH operation according to applicable authorization rules. Git-write guards illustrate the first; the exact-request command allowlist answerer illustrates the second.
8
+
9
+ Permission improvements must not expand interception: operations that currently need no approval must not acquire another DSMM approval. Existing additional guards retain their own configuration. Restricting configured command elevation to the actual native standing `workspace-write` mode remains deferred pending a public source-binding interface; it is not a guarantee of the current implementation. See [native command authorization scope](roadmap.md#upstream-watch-native-command-authorization-scope). Direct loading of native bash/pwsh remains supported without replacement tools or a required adapter migration.
10
+
11
+ Operator-created long-lived command/subcommand/path grants and model-proposed authorization scopes are deferred. DSH rc.2 has no native remembered-grant/revoke contract; implementing a separate scope-confirmation and revocation system is not part of the current extension. The [unified permission-control design](superpowers/specs/2026-10-23-unified-permission-control.md) describes that deferred target. Existing configured patterns and live-Agent command-rule memory remain available; neither is a general native grant store.
4
12
 
5
13
  ## Full access and approval
6
14
 
@@ -30,6 +38,8 @@ Configuration writes require the real native operator, exact entry/form or Root
30
38
 
31
39
  Trusted native `read`, `glob` and `grep` calls do not request outside-read approval, inside or outside the workspace. This includes saved `outsideReads: ask` and `outside-read` entries with `action: ask`. DSMM continues reading these settings without rewriting user configuration. Missing FS/path or co-location facts do not turn `allow`, `ask` or `inherit` into a read approval.
32
40
 
41
+ In `read-only`, any future automatic authorization is limited to identifiable outside-workspace reads, never writable sandbox escalation. The current Host has no dedicated outside-read approval request to answer. DSMM does not create one, infer its source from reason text, or treat `outsideReads: allow` as permission to approve independent native or third-party requests.
42
+
33
43
  Existing deny policy and path-rule matching remain effective. Outside standing Full access, a relevant deny fails closed when the required containment or path facts cannot be proved; an unknown backend is not proof that a target is inside the workspace. Standing Full access retains its definite-blacklist behavior described above.
34
44
 
35
45
  The same outside-read behavior applies to the existing shell read branch only when the native adapter supplies a current, trusted `readCapability` for the actual executable and environment. A tool name, command name or workspace cwd is not read-only proof. Independent shell command rules, unknown-command behavior and web/Git policy are unchanged.
@@ -60,7 +70,7 @@ Observed `kind:shell` registration isn't proof of the actual executor, environme
60
70
 
61
71
  ### Running overlay changes
62
72
 
63
- Live overlay Apply is unavailable. Save/select a future default and create a new session instead of rebinding an active parent or pending invocation. Ordinary mode controls and Use profile model retain independent capabilities; neither grants overlay authority.
73
+ Overlay Apply is available for trusted quiescent roots, including roots with history, under native subtree maintenance and admission CAS. Active work and pending approvals prevent switching; successful publication invalidates the exact subtree's command-rule memory without changing native standing permissions or transferring approval. Resident children retain their captured ceilings. Ordinary mode controls and Use profile model retain independent capabilities; neither grants overlay authority. See [Profile selection](profiles.md) for eligibility and external-provider limits.
64
74
 
65
75
  Same-call approval, cancellation, ownership and input isolation remain effective. Don't replay a whole parent task to work around a refused call; inspect the outcome and explicitly invoke fresh work only when appropriate.
66
76
 
package/docs/profiles.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Deepwork runtime profiles
2
2
 
3
- DSMM 0.3.13 targets exactly DSH `0.2.1-rc.2`. See [compatibility](compatibility.md) for installation boundaries.
3
+ DSMM 0.3.15 targets exactly DSH `0.2.1-rc.2`. See [compatibility](compatibility.md) for installation boundaries.
4
4
 
5
5
  A named Deepwork profile is a runtime-policy document, not a native deployment profile or Agent preset. Open **Settings → Deepwork Profiles** to browse and edit it. Native **Plugins → DSMM** edits deployment layers instead, as described in [settings and status](settings-status.md).
6
6
 
@@ -15,14 +15,22 @@ A named Deepwork profile is a runtime-policy document, not a native deployment p
15
15
 
16
16
  Browsing doesn't activate anything. **Save profile** doesn't select it or change a resident Agent. **Set as future default** records the named ID and an archival saved revision, never a dirty draft. Subsequent activations read that ID's latest valid saved content. **Use baseline for future sessions** clears that default without deleting documents.
17
17
 
18
- **Apply profile to current session** and **Pin baseline for current session** are unavailable in this version (`canApplyOverlay:false`, `new-session-required`). Save and select a future default, then create a new session. Nothing is queued, restarted or silently applied to the current root or its children.
18
+ **Apply profile to current session** and **Pin baseline for current session** are available for eligible quiescent root sessions, including roots with execution history or a restored admission. Explicit selection replaces the root's configuration under native maintenance and revision checks, preserving its ID, history, draft and native model selection. Resident children retain their captured configuration and ceilings; new delegations use the selected configuration. Saving alone never reconfigures a resident Agent.
19
19
 
20
- The compact Conversation header menu shows the current admission separately from the future default. **Use profile model** asks native model selection to use the admitted immutable configuration's declared main model, not a later saved draft. It doesn't write an overlay pointer or increment the admission epoch. Native model-default persistence follows the Models tab; newer manual model or effort intent, including same-value reselection, wins. `canSelectModel`, `canToggleMode` and `canApplyOverlay` have independent reasons: unavailable live Apply doesn't disable ordinary model selection or mode switching. Sessionless controls never create a session.
20
+ The root and its resident descendants must have no running work, open turn, queued input, active tool/approval or pending delegation. An `idle` label alone does not establish this. Unprovable external-provider startup remains unavailable; coverage is limited to native services sharing the same Host lifecycle and agents registry. Successful publication invalidates command-rule memory for the exact subtree, without inheriting approvals or affecting another root. The client refreshes capabilities on native running-state transitions; the server remains the authority, and Refresh can reread other state changes.
21
+
22
+ The compact Conversation header menu shows the current admission separately from the future default. **Use profile model** asks native model selection to use the admitted immutable configuration's declared main model, not a later saved draft. It doesn't write an overlay pointer or increment the admission epoch. Native model-default persistence follows the Models tab; newer manual model or effort intent, including same-value reselection, wins. `canSelectModel`, `canToggleMode` and `canApplyOverlay` have independent reasons: unavailable live Apply doesn't disable ordinary model selection or mode switching.
23
+
24
+ Without a current session, choose a workspace and a saved profile or deployment defaults in the header menu or Settings session scope. Choosing a profile first keeps that choice pending until a workspace is explicitly selected. Browsing, refreshing and editing profiles do not create sessions, and the first workspace is never selected automatically. On explicit selection, the native workspace service creates or reuses a blank session; DSMM retains it, blocks sending while configuration is unconfirmed, completes the existing selection transaction and only then opens the confirmed session. This does not change the future default or native model.
25
+
26
+ Preparation keeps native draft ownership: DSMM does not copy or reconstruct text, references or attachments. A later navigation, service replacement or disposal prevents an old result from opening a session. An unknown selection result requires rereading the same target, not automatically creating another session or resubmitting the choice. If connection fails before a session ID is returned, use native workspace navigation to inspect the result. Full Host-level draft/attachment continuity remains a separate integration acceptance requirement.
21
27
 
22
28
  ## Named profiles interface layout
23
29
 
24
30
  The redesigned Named Profiles page (`.dsmm-profiles.dsmm-named-profiles`) organizes editing into a streamlined, scannable flow with a wide multi-agent configuration dialog:
25
31
 
32
+ Long editors keep their primary actions at the top of the relevant scrolling surface. The Profile page has one Save/Discard/Reload bar; the Agent-model dialog has its own Save/Close controls for the same draft and save eligibility. Deployment scope actions and root-rule actions remain separate transactions, with nested bars offset to avoid overlap. Row-level add/remove actions stay with their fields.
33
+
26
34
  1. **Header browse row** — Select profile, New draft, and Refresh inventory buttons alongside a real-time status badge (`data-dsmm-editor-state`) tracking dirty, saved, refresh-required, and applied states.
27
35
  2. **Effective summary card** — Visible summary of future default (with inline Set as future default button) and current session admission (with a quick-locate button targeting the session settings section).
28
36
  3. **Secondary actions** — Collapsed disclosure containing future default reset ("新会话使用插件默认" / "Use baseline for future sessions") and current-session scope controls, preserving four independent transactions (Save profile, Set as future default, Session admission, and Model-only activation).
@@ -41,7 +49,8 @@ The redesigned Named Profiles page (`.dsmm-profiles.dsmm-named-profiles`) organi
41
49
  - Expandable calling levels (`low`, `high`, `max`) with accurate configuration summary (absent for orchestrator).
42
50
  - Expandable fallback chains (up to 32 items with safe focus management on add/move/remove).
43
51
  - Collapsed non-model role settings (`enabled`, `retry`) with inheritance summary using known data.
44
- - Single JSONC draft shared with main page; closing dialog via Esc or close button preserves dirty/invalid drafts without extra discard confirmation.
52
+ - Single JSONC draft shared with main page; closing dialog via Esc or close button preserves dirty/invalid drafts without extra discard confirmation.
53
+ - Top Save invokes the same profile save action as the main page, preserving validation, conflict, read-only and busy guards. Closing the dialog does not discard the draft.
45
54
  6. **Advanced execution settings** — Collapsed `<details>` disclosure for global execution settings:
46
55
  - Profile defaults: Default strategy and rate-limit bounds (`settings.runtimePolicy`).
47
56
  - Git write protection: Sparse `settings.guards.gitWriteGuard` (`ask` | `deny` | `off`) and `settings.guards.gitWriteScope` (`all-writes` | `high-risk`). When guard is `off`, the scope control is disabled with an explanatory note ("保护已关闭,检查范围暂不生效"), while Unset/inherit remains accessible.
@@ -49,7 +58,7 @@ The redesigned Named Profiles page (`.dsmm-profiles.dsmm-named-profiles`) organi
49
58
  7. **Advanced JSONC source editor** — Collapsed `<details className="dsmm-advanced">` disclosure:
50
59
  - Full JSONC source editor preserving comments, whitespace, and unprojected parameters.
51
60
  - User-triggered validation refusals expand disclosures and select the exact UTF-16 character range with reduced-motion support.
52
- 8. **Save bar with Actionable Save-Lock Locator** — In normal document flow at the bottom:
61
+ 8. **Save bar with Actionable Save-Lock Locator** — At the top of the editor, sticky within its scrolling surface:
53
62
  - Status message and blocking issues.
54
63
  - When save is locked due to invalid fields, actionable locator buttons directly navigate to the target:
55
64
  - For role-scoped invalid fields, automatically opens the dialog, clears filters, expands the target details group, and focuses the invalid field.
package/docs/roadmap.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  ## Version policy
4
4
 
5
- **DSMM 0.3.13 targets exactly DSH `0.2.1-rc.2`.** Each DSMM version targets the published DSH RC or stable release selected for that version. 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 newer upstream release requires deliberate reassessment, not an automatic dependency or runtime switch.
5
+ **DSMM 0.3.15 targets exactly DSH `0.2.1-rc.2`.** Each DSMM version targets the published DSH RC or stable release selected for that version. 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 newer upstream release requires deliberate reassessment, not an automatic dependency or 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
 
@@ -12,6 +12,10 @@ Official AgentRegistry, SubagentRuntime and JSONL namespace plugins own executio
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
 
15
+ The Profile editor has a single-column main form, direct basic settings and orchestrator model controls, a separate Agent-model dialog, independently collapsed advanced settings and JSONC, and Save/Discard/Reload with validation, conflict and focus handling. The page structure and controller behavior are implemented; browser acceptance is distinct from adding these features.
16
+
17
+ Supported root and continuable-child reactivation preserves native session identity and history while rebuilding admission from current deployment settings and the current content of the selected named profile. Cold children resume through native ownership, use current role routing and restrictions, and do not inherit historical approvals. Already resident Agents retain their admitted configuration. The cross-Host regression in `test/native-session-resume-refresh.test.ts` covers original root/child IDs, changed routes, readonly enforcement, disabled-role refusal and fresh approval requests; this is implemented behavior, not a pending restoration feature.
18
+
15
19
  Agent-scoped skills expose metadata and load bodies lazily, preserving non-DSMM ancestor winners. Standard model calls use native prepared calls. The minimal public Pi-AI completions seam supports raw/custom and stop-only parameters 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; standard calls and native effort encoding remain unchanged.
16
20
 
17
21
  Native call views show the target in collapsed rows, distinguish requested from actual identity, and retain that distinction for partial output, failure, interruption and current-format replay/PTC. Child labels use `Coding: task description`.
@@ -20,37 +24,40 @@ Native call views show the target in collapsed rows, distinguish requested from
20
24
 
21
25
  | Capability | Current behavior | Requirement for broader support |
22
26
  | --- | --- | --- |
23
- | Profile selection in a new session | The working tree supports choosing a profile or deployment defaults before the first turn. | Preserve first-request, child-routing and draft behavior through supported native Client integration. |
24
- | Live overlay Apply | Unavailable. Save/select a future default for a new session; ordinary model and mode actions retain independent capabilities. | Exact configuration/call/approval binding without cross-call authority reuse. See [approval boundaries](deferred-native-approval-risk.md). |
27
+ | 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. |
28
+ | 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). |
25
29
  | Running-call background handoff | Unavailable. Select waiting or native parent delivery before starting; don't restart a task to simulate transfer. | A supported same-activation ownership/delivery handoff. |
26
- | Restricted-role continuation after restoration | Native history and restoration remain available under DSH's rules; historical metadata does not grant current DSMM role authority. DSMM-specific restrictions are not guaranteed across restoration. | Supported Host lifecycle hooks that preserve the required readonly, tool and depth restrictions without a global restoration gate. |
30
+ | 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). |
27
31
  | Non-disruptive hot update | No uninterrupted live-session guarantee. Retire admissions and let native owners cancel/dispose owned work; guards remain fail-closed. | Native lifecycle support that preserves active task/approval boundaries. |
28
32
  | 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. |
29
- | Repeated read-only Git approval | Keep native approval; don't expand Allow rules based on an unexplained prompt. | Exact triggering command, working directory and approval reason. |
33
+ | 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. |
30
34
  | 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). |
31
- | External LSP | DSMM automatic mounting isn't delivered. DSH native definition/references/implementation/hover and independently configured MCP remain separate. | Supported APIs and explicit permissions for additional operations; no automatic external remount or scope expansion. |
35
+ | 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. |
32
36
 
33
37
  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).
34
38
 
35
- ## Planned: loading sessions created by DSMM 0.2.x
39
+ ## Current: native history loading, including the DSMM 0.2.x compatibility target
40
+
41
+ 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.
42
+
43
+ - 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.
44
+ - 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.
45
+ - 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.
46
+ - 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.
36
47
 
37
- Sessions created by DSMM `0.2.x` must remain loadable under the supported current DSH runtime. Changed execution behavior is acceptable; blanket refusal to load an old session is not.
48
+ ## Current: idle-root, blank-session and no-session Profile selection
38
49
 
39
- - Opening a historical session must preserve its list entry, title and readable conversation, including messages and tool results. An unavailable execution capability must not make the session disappear or prevent history from loading.
40
- - Retired presets, plugins, metadata or admission formats require interpretation, migration or an explicit degraded mode rather than whole-session rejection solely because the old implementation is unavailable. This does not require restoring the old SDK or execution owner.
41
- - Continued execution may use current roles, routing, configuration and permission semantics. Explain material differences and request fresh authorization where necessary; never treat historical metadata or approvals as current authority. When continuation is unavailable, retain the loaded history and expose the specific limitation separately.
42
- - Preserve original records. Any necessary migration must protect user data with a recoverable original and concurrent-write safeguards; never discard history merely to make loading succeed. Corrupt or genuinely unreadable data must produce a specific diagnostic rather than silently removing the session.
43
- - Acceptance covers opening representative `0.2.x` root and child histories, retaining titles/list entries and readable content, and separating continuation restrictions from loading. These are pending compatibility requirements, not claims that `0.3.12` already fulfills them.
50
+ Existing blank root sessions support configuration selection and installation before the first request. The conversation header menu and Settings session scope use this path. `test/client-profile-editor.test.ts` covers selection on the new-session page with a retained native blank, and `test/session-profile-runtime.test.ts` covers first-request routing and execution-state guards. This flow is implemented, not a pending new-session feature as a whole.
44
51
 
45
- ## Working-tree implementation: profile selection before the first message
52
+ - The header menu and Settings session scope accept an explicit workspace and Profile choice when no session exists. Browsing or refreshing does not create a session, and no workspace is inferred from list order or process cwd.
53
+ - The current DSH `uiWorkspace.connectWorkspace()` service obtains a native blank without opening it. DSMM retains that exact session, occupies an empty composer block, performs the existing describe/select transaction and opens the session only after its selection and admission match. Profile-first interaction waits for an explicit workspace choice. No native model or future-default setting is changed.
54
+ - Late results cannot take over newer navigation. Unknown outcomes are reread without automatic creation or mutation replay; if the Host never returns a session ID, native workspace navigation is needed to inspect the result. DSMM releases only its own retained reference and composer block and does not reconstruct native input or attachments.
55
+ - Started and restored roots can explicitly switch once their native subtree is quiescent. The next request and new delegations use the committed configuration without changing the native model or future default. Successful publication clears only the exact subtree's command-rule memory; active or unprovable work remains refused. Client running-state transitions refresh server capabilities without granting permission locally.
56
+ - Verify the complete native new-session flow, including unsent text and attachments, selection feedback and first send. Controller/composer blocking during selection does not by itself establish draft preservation across session creation. Do not show a “new session required” instruction where the required action is unavailable.
46
57
 
47
- - Allow selecting a saved profile or the default configuration on the new-session page, including when a blank session has already been created.
48
- - Show the selected profile immediately and use its settings for the first request and subsequent delegated work. Keep the user's unsent draft when changing the selection.
49
- - Keep the choice for this session separate from the default for future sessions. Changing one must not silently change the other.
50
- - Determine availability from whether execution has begun, rather than disabling every session with the same restriction. Preserve permission checks and protect active work when a conversation has already started.
51
- - Verify that a user can open a new session, change its profile and send the first message with the selected settings. Do not show a “new session required” instruction on a page where that action is itself unavailable.
58
+ ## UI acceptance: simpler DSMM settings
52
59
 
53
- ## Working-tree implementation: simpler DSMM settings
60
+ 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.
54
61
 
55
62
  - Expand drawers containing only one section by default so their controls are immediately visible. Keep multi-section drawers easy to scan and navigate.
56
63
  - Remove all redundant copy: repeated headings, explanations already conveyed by a control, implementation details and “not X, but Y” comparisons.
@@ -58,11 +65,11 @@ Sessions created by DSMM `0.2.x` must remain loadable under the supported curren
58
65
  - Keep only information needed to make a choice or act: what a setting affects, when it takes effect, important permission/data consequences and a concise recovery action when something fails. Place optional technical diagnostics behind a details disclosure.
59
66
  - Review every drawer and its empty, disabled, saved and error states. Users must be able to find the controls and understand their choices without reading implementation explanations; preserve keyboard access and accessible labels.
60
67
 
61
- ## Working-tree implementation: dispatcher-only native presets
68
+ ## Current: dispatcher-only native presets
62
69
 
63
70
  - Register only the dispatcher as a selectable native preset. Delegation targets are not registered compositions: a delegated child shares its parent's standing composition, and the admitted invocation carries its role, identity and restrictions.
64
71
  - Blank preset switches to any other DSMM role are refused by the native registry; the admitted composition keeps executing.
65
- - DSMM installs no Host package patches. Native restoration does not enroll reconstructed Agents in DSMM admission; history stays readable, while delegation authority and child residency are never reconstructed from logs.
72
+ - DSMM installs no Host package patches. Supported restored Agents receive fresh DSMM admission under current configuration and validated native ownership. Historical role identity may inform validation, but logs never restore delegation authority or live child residency. Historical presets that no longer resolve remain a separate compatibility limitation.
66
73
 
67
74
  Existing [Fake-IP fetch](web-fetch-fakeip.md) protections remain in force.
68
75
 
@@ -72,17 +79,38 @@ Existing [Fake-IP fetch](web-fetch-fakeip.md) protections remain in force.
72
79
  - Match parsed command tokens rather than shell-string prefixes. A matching command does not authorize an additional pipeline, chained command or substitution. Variable arguments can still invoke the selected program's own scripts or subprocess features; sandbox and role restrictions remain necessary.
73
80
  - Preserve native deny/never, readonly, current ownership, approval consumption and configuration CAS. Pattern matching does not itself widen the sandbox or create remembered session approval.
74
81
 
75
- ## Planned: session-scoped approval reuse
82
+ ## Current: live-Agent command-rule approval reuse
83
+
84
+ - `CommandApprovals` is wired into Git safety guards and permission-controlled command execution. After a complete native approval outcome and final execution checks, eligible Git, shell and native-command rule contributions can be remembered in memory for the exact live Agent. This DSMM rule memory is separate from native `allowed-once` target authorization.
85
+ - Reuse matches rule semantics, tool definition, configuration source, owner/generation, realm and live session identity. Uncertain/non-reusable contributions keep asking. Disposal, plugin retirement and policy invalidation revoke memory; a restored Agent with the same session ID does not inherit it, and children do not share it.
86
+ - Independent downstream asks, native deny/never, readonly and role ceilings still apply. Rule memory does not itself authorize a later sandbox-widening request or become a reusable native target grant. Command-pattern Allow configuration and remembered Ask contributions remain distinct.
87
+ - `test/command-approval.test.ts` and `test/git-command-approval.test.ts` cover reuse, compound rules, source changes, independent refusals, identity changes, cold resume and later widening requests.
88
+
89
+ ## Deferred: scoped long-lived authorization and model proposals
90
+
91
+ The [permission-control design](superpowers/specs/2026-10-23-unified-permission-control.md) defines two independently configured lanes with one rule model and a consistent operator experience:
76
92
 
77
- - Implementation is deferred pending reassessment of a newer DSH release. Prefer native remembered approvals if available; otherwise decide whether a DSMM-scoped extension is warranted. The goals below do not select an implementation or authorize Host changes.
78
- - Let the model propose a command/subcommand pattern or supported path scope together with a reason. The operator chooses between approving once and remembering that explicit scope for the current session; the model cannot grant itself permission.
79
- - Keep remembered grants in memory for the current live session and Host run, with a visible revoke action. Do not save them as Global/profile configuration, restore them from history, or automatically share them with other sessions or delegated Agents. Session disposal, Host restart or plugin retirement invalidates them.
80
- - Display the approved command scope and sandbox mode separately. Reuse approval only for matching calls and the explicitly approved mode through the native approval service; native never/deny and readonly/role ceilings remain effective.
81
- - A remembered `danger-full-access` approval, if supported, must explicitly disclose the broader OS-permitted write scope. It is not a directory-only grant. Approving one command once must not silently disable confinement for later commands.
82
- - Verify reuse, non-matching calls, revocation and lifetime expiry through the supported approval path. This capability is planned, not part of the command-pattern implementation.
93
+ The extension must preserve the existing interception scope. Native reads that do not ask must continue without an added gate; generic or independently sourced approvals cannot be treated as outside-read authorization. Mode-bounded command auto-authorization remains a separate deferred item below, not a delivered guarantee.
94
+
95
+ - **Additional protection:** Existing guards detect configured operations, such as writable Git actions, and submit their existing approval requirements through DSH. The extension does not expand that interception set.
96
+ - **Native-request authorization:** DSMM automatically answers DSH-intercepted requests according to authorization rules. The primary extension is explicit operator-created live-session grants for this lane, not just remembering the first lane's command-rule asks.
97
+ - Share tool, command/subcommand and path selectors, parsing, matching and scope presentation across the lanes. Keep configuration, rule effects and authorization sources separate; authorizing one lane must not implicitly satisfy an independent requirement in the other.
98
+ - Allow the user to approve one call or a displayed scope for the live session, inspect active grants and revoke them. Models may propose tool/command/subcommand/path or full-access authorization with a reason, but cannot grant it or silently alter saved policy. Grants stay in memory for the live Agent/Host lifetime, without persistence, restore or automatic child inheritance.
99
+ - Each matching DSH request would receive a fresh native decision. A live grant would authorize future matching answers, not reuse a prior `allowed-once` result or change standing sandbox permissions. Command/subcommand/path long-lived scopes and model proposals remain deferred rather than introducing a separate approval owner and grant-management subsystem on rc.2. Reassess after DSH provides simpler scope, lifetime and revocation contracts.
100
+ - Native rc.2 client decisions remain once/reject. The additional scope choice and grant management require plugin interaction work, not a DSH package replacement or a button-label change. Preserve native request ownership, cancellation, final same-call manual approval, native never/deny and role ceilings.
101
+ - Display path scope and execution mode separately. Full access permits OS-allowed writes outside the workspace and is not a directory grant. Precise path/tree authorization is available only with native enforcement shared by file tools and shell; unsupported scopes cannot silently fall back to full access.
102
+ - Acceptance covers both request origins, independent configuration with shared matching, explicit operator consent, model proposals, matching/non-matching requests, revocation and expiry, and the native permission ceilings. Existing first-lane rule memory is not proof that this second-lane extension is complete.
103
+
104
+ ## Upstream watch: native command authorization scope
105
+
106
+ - **Deferred on DSH `0.2.1-rc.2`.** Observe whether a public native API binds a tool registration or approval request to the execution body's actual registration context, effective sandbox policy and executor identity. The current registry lookup and `approval/request` payload do not expose enough provenance to establish that binding for directly loaded native shell tools.
107
+ - Preserve direct loading of native bash/pwsh, including aliases and custom compositions. Do not replace them with a separate DSMM tool set, copy their execution logic, require migration to adapters, or silently remove existing automatic-approval support.
108
+ - The target is configuration-derived elevation only in actual standing `workspace-write`, with no configured writes in `read-only` and no redundant approval in standing full access. Preserve native deny/never/cancellation, independent approval requirements and the finality of manual approval for the same call. This mode-boundary correction is not delivered; existing permission behavior remains unchanged.
109
+ - Reassess when a supported public source-binding contract becomes available. Verify direct native loading, scoped policy/executor differences, aliases, loading order and asynchronous mode changes through actual approvals and executor policy before implementing. Do not infer authority from tool names, reason text or a controller's unrelated scope, patch Host packages, or upgrade DSH automatically.
83
110
 
84
111
  ## Planned: external-path and temporary-directory grants
85
112
 
113
+ - Outside-workspace read policy and native external write/edit refusal already exist. The missing capability is configurable exact-path/tree grants, particularly external writes and dedicated temporary-directory writes, consistently enforced by file tools and shell execution.
86
114
  - Reassess the available public DSH interfaces before choosing an implementation. This capability remains deferred rather than blocking command-pattern or configuration improvements.
87
115
  - Target independent read and write permissions for exact paths or directory trees: normal workspace writes, configured external reads, and writes only to explicitly authorized external locations. A dedicated system-temp `dsh` subtree is a useful opt-in scope for creating, editing and cleaning Agent-owned temporary files; it must not grant access to the entire system temp directory or authorize deleting unrelated files.
88
116
  - DSH `0.2.1-rc.2` has no additional writable-root field in its standard execution policy. Its Windows backend supplies a private per-session/workspace `dsh-*` directory through child-process `TMP`/`TEMP`; this is neither a configurable fixed `temp/dsh` grant nor proof that native file tools share the same allowance.
@@ -93,6 +121,15 @@ Existing [Fake-IP fetch](web-fetch-fakeip.md) protections remain in force.
93
121
  - Track the sandbox/Schannel incompatibility reproduced with DSH `0.2.1-rc.2`; an upstream fix is not yet confirmed. Details and the explicit per-command OpenSSL workaround are in [runtime limitations](runtime-recovery.md#known-host-limitation-windows-sandbox-and-git-schannel).
94
122
  - On a candidate DSH update, verify Git HTTPS with Schannel through both native and DSMM-managed `workspace-write` execution, while retaining denial of unauthorized external writes. Do not disable certificate validation, silently change TLS backends or relax sandbox restrictions to obtain a passing result.
95
123
 
124
+ ## Delivery priorities and Host dependencies
125
+
126
+ - **Current-Host acceptance:** verify the implemented no-session Profile selector, first-send routing and native draft/attachment continuity; review settings UI states and fix concrete findings. This is integration acceptance, not a page rebuild or a dependency-upgrade prerequisite.
127
+ - **Environment acceptance:** exercise the existing LSP bridge with an explicit Host anchor, supplied executable and real language server. This verifies an implemented integration rather than adding a new mounting mechanism. Historical sample coverage is likewise separate from implementing a reader.
128
+ - **Permission follow-up:** observe native registration/approval source-binding APIs before revisiting mode-bounded automatic authorization; preserve existing direct-native compatibility without replacement tools. Long-lived command/subcommand/path grants, model-proposed scopes and their management UI are also deferred pending simpler supported DSH contracts. Existing command configuration and command-rule memory remain distinct capabilities. Precise path enforcement remains a separate Host dependency.
129
+ - **Await supported Host contracts:** exact external write/tree grants shared by file tools and shell; safe configuration changes during active execution; same-activation delivery transfer; non-disruptive plugin replacement; and a complete catalog-backed raw prepared-call seam. Existing catalog helpers and hot reload do not supply those stronger guarantees. Broader continuation also needs supported historical persona/composition handling and route-aware image preflight.
130
+
131
+ As of 2026-10-23, the public [DSH master comparison](https://github.com/deepseek-ai/deepseek-harness/compare/dsh-v0.2.1-rc.2...master) is identical to `dsh-v0.2.1-rc.2`, with no commits ahead. The latest [release](https://github.com/deepseek-ai/deepseek-harness/releases/tag/dsh-v0.2.1-rc.2) is rc.2, published 2026-10-17; npm `latest` and `next` also resolve to rc.2. `alpha.5` predates that baseline. No newer public upgrade target or delivery commitment for the missing contracts is established. Reassess concrete API changes when published, rather than waiting for a version label alone.
132
+
96
133
  ## Publication and Desktop installation
97
134
 
98
- 0.3.13 publication uses the version-bound [release controls](releasing.md). Desktop plugin installation follows publication, uses the Desktop-owned carrier and requires exact DSH `0.2.1-rc.2`. Installation doesn't authorize upgrading the Host, changing credentials or real sessions, altering unrelated configuration, or restarting active work. An incompatible Host or required data migration blocks installation rather than expanding its scope.
135
+ 0.3.15 publication uses the version-bound [release controls](releasing.md). Desktop plugin installation follows publication, uses the Desktop-owned carrier and requires exact DSH `0.2.1-rc.2`. Installation doesn't authorize upgrading the Host, changing credentials or real sessions, altering unrelated configuration, or restarting active work. An incompatible Host or required data migration blocks installation rather than expanding its scope.
@@ -1,6 +1,6 @@
1
1
  # Runtime recovery and route strategies
2
2
 
3
- DSMM 0.3.13 targets exactly DSH `0.2.1-rc.2`.
3
+ DSMM 0.3.15 targets exactly DSH `0.2.1-rc.2`.
4
4
 
5
5
  ## Independent role strategies
6
6
 
@@ -1,6 +1,6 @@
1
1
  # DSMM Safety Guards
2
2
 
3
- DSMM 0.3.13 targets exactly DSH `0.2.1-rc.2`. Its guards use `tools/pre-execute` for allow, deny and ask decisions, and `tools/post-execute` for accepted-result truncation. They don't use OpenCode hook names or mutate tool arguments. Deployment overrides belong in the `id: dsmm` Loader entry's `config` object, not a settings.yaml namespace.
3
+ DSMM 0.3.15 targets exactly DSH `0.2.1-rc.2`. Its guards use `tools/pre-execute` for allow, deny and ask decisions, and `tools/post-execute` for accepted-result truncation. They don't use OpenCode hook names or mutate tool arguments. Deployment overrides belong in the `id: dsmm` Loader entry's `config` object, not a settings.yaml namespace.
4
4
 
5
5
  ## Scope
6
6
 
@@ -1,6 +1,6 @@
1
1
  # Deepwork settings and status
2
2
 
3
- DSMM 0.3.13 targets exactly DSH `0.2.1-rc.2`. Named policy is covered in [profiles](profiles.md), routing in [model routing](model-routing.md), and child authority in [Agent presets](agent-presets.md).
3
+ DSMM 0.3.15 targets exactly DSH `0.2.1-rc.2`. Named policy is covered in [profiles](profiles.md), routing in [model routing](model-routing.md), and child authority in [Agent presets](agent-presets.md).
4
4
 
5
5
  ## Deployment layers and native editors
6
6