@dsmm/dsmm 0.3.22 → 0.3.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agent-presets/dsmm-builder/agent.cordis.yml +1 -17
- package/agent-presets/dsmm-clarifier/agent.cordis.yml +1 -17
- package/agent-presets/dsmm-code-search/agent.cordis.yml +1 -17
- package/agent-presets/dsmm-coding/agent.cordis.yml +1 -17
- package/agent-presets/dsmm-complex/agent.cordis.yml +1 -17
- package/agent-presets/dsmm-creative/agent.cordis.yml +1 -17
- package/agent-presets/dsmm-cross-cutting/agent.cordis.yml +1 -17
- package/agent-presets/dsmm-deep/agent.cordis.yml +1 -17
- package/agent-presets/dsmm-doc-search/agent.cordis.yml +1 -17
- package/agent-presets/dsmm-documenting/agent.cordis.yml +1 -17
- package/agent-presets/dsmm-frontend/agent.cordis.yml +1 -17
- package/agent-presets/dsmm-hard-reasoning/agent.cordis.yml +1 -17
- package/agent-presets/dsmm-media-reader/agent.cordis.yml +1 -17
- package/agent-presets/dsmm-normal-task/agent.cordis.yml +1 -17
- package/agent-presets/dsmm-oracle/agent.cordis.yml +1 -17
- package/agent-presets/dsmm-oracle-2nd/agent.cordis.yml +1 -17
- package/agent-presets/dsmm-orchestrator/agent.cordis.yml +1 -17
- package/agent-presets/dsmm-plan-critic/agent.cordis.yml +1 -17
- package/agent-presets/dsmm-planner/agent.cordis.yml +1 -17
- package/agent-presets/dsmm-quick/agent.cordis.yml +1 -17
- package/agent-presets/dsmm-research/agent.cordis.yml +1 -17
- package/agent-presets/dsmm-reviewer/agent.cordis.yml +1 -17
- package/cordis.patch.yml +3 -0
- package/docs/agent-presets.md +1 -1
- package/docs/compatibility.md +13 -1
- package/docs/maintenance.md +48 -10
- package/docs/model-routing.md +25 -3
- package/docs/native-permissions.md +20 -4
- package/docs/releasing.md +3 -3
- package/docs/roadmap.md +33 -11
- package/docs/runtime-recovery.md +5 -3
- package/docs/settings-status.md +2 -2
- package/docs/testing.md +10 -0
- package/docs/web-fetch-fakeip.md +8 -2
- package/dsh-plugin.json +1 -1
- package/lib/agent-prompt-scope.d.ts +6 -0
- package/lib/agent-prompt-scope.js +66 -0
- package/lib/child-capture.d.ts +1 -1
- package/lib/child-capture.js +3 -1
- package/lib/client/DeploymentFields.js +1 -1
- package/lib/client/RoleToolView-data.d.ts +4 -2
- package/lib/client/RoleToolView-data.js +18 -4
- package/lib/client/RoleToolView-locales.d.ts +9 -0
- package/lib/client/RoleToolView-locales.js +4 -0
- package/lib/client/RoleToolView.d.ts +9 -3
- package/lib/client/RoleToolView.js +29 -8
- package/lib/client/children-locales.d.ts +4 -4
- package/lib/client/deployment-locales.d.ts +1 -0
- package/lib/client/deployment-locales.js +3 -1
- package/lib/client/index.js +36 -1
- package/lib/client/role-call-observations.d.ts +33 -0
- package/lib/client/role-call-observations.js +207 -0
- package/lib/client.js +501 -96
- package/lib/dsh-types.d.ts +15 -0
- package/lib/index.js +4 -1
- package/lib/live-pi-ai-owner.d.ts +1 -2
- package/lib/live-pi-ai-owner.js +10 -7
- package/lib/locale-guidance.d.ts +3 -0
- package/lib/locale-guidance.js +12 -0
- package/lib/model-family.d.ts +16 -0
- package/lib/model-family.js +156 -35
- package/lib/model-routing.d.ts +23 -2
- package/lib/model-routing.js +145 -7
- package/lib/native-admission.d.ts +36 -1
- package/lib/native-admission.js +408 -24
- package/lib/native-pi-ai-wire.js +17 -4
- package/lib/profile-diagnostics.js +1 -1
- package/lib/profile-remote.d.ts +2 -0
- package/lib/profile-remote.js +12 -3
- package/lib/profile-types.d.ts +5 -0
- package/lib/prompt-content.js +1 -1
- package/lib/prompts.d.ts +3 -2
- package/lib/prompts.js +32 -45
- package/lib/role-control-remote.d.ts +5 -2
- package/lib/role-control-remote.js +84 -4
- package/lib/role-control-rpc.d.ts +8 -1
- package/lib/role-control-rpc.js +122 -50
- package/lib/role-control-types.d.ts +62 -1
- package/lib/role-control-types.js +3 -0
- package/lib/role-invocation.js +1 -1
- package/lib/role-llm-runtime.js +2 -2
- package/lib/role-routing.d.ts +27 -7
- package/lib/role-routing.js +129 -16
- package/lib/role-subagents.js +13 -26
- package/lib/runtime-recovery.js +23 -6
- package/lib/session-metadata.d.ts +13 -1
- package/lib/session-metadata.js +21 -1
- package/lib/settings.d.ts +1 -0
- package/lib/settings.js +2 -1
- package/lib/web-fetch-address-policy.d.ts +6 -2
- package/lib/web-fetch-fakeip.d.ts +6 -0
- package/lib/web-fetch-fakeip.js +29 -2
- package/package.json +2 -2
- package/prompts/deepwork.md +3 -25
- package/prompts/source/deepwork/claude-opus-5.md +2 -8
- package/prompts/source/deepwork/codex.md +2 -8
- package/prompts/source/deepwork/default.md +3 -14
- package/prompts/source/deepwork/gemini-4.md +1 -7
- package/prompts/source/deepwork/gemini.md +3 -19
- package/prompts/source/deepwork/glm.md +6 -23
- package/prompts/source/deepwork/gpt.md +7 -15
- package/prompts/source/deepwork/kimi-k3-1.md +65 -0
- package/prompts/source/deepwork/kimi.md +1 -7
- package/prompts/source/deepwork/planner.md +0 -4
- package/prompts/source/deepwork/swe-2.md +2 -8
- package/prompts/source/shared/locale.md +1 -6
- package/skills/avoid-ai-slop/SKILL.md +2 -0
- package/skills/frontend/references/design/interaction-skill.md +14 -0
- package/skills/remove-ai-slops/SKILL.md +4 -4
- package/skills/report-fidelity/SKILL.md +3 -0
- package/prompts/source/shared/dsh-host-contract.md +0 -8
|
@@ -3,12 +3,7 @@
|
|
|
3
3
|
config:
|
|
4
4
|
prefix: |-
|
|
5
5
|
<dsmm-locale-guidance>
|
|
6
|
-
|
|
7
|
-
- This shared resource supplies no configured locale; preserve this exact Agent's captured locale and applicable host/user language guidance when supplied.
|
|
8
|
-
- When neither captured locale nor applicable host/user language guidance is supplied, infer the preferred visible-output language from the current request and conversation context. This does not configure reasoning language or the host/project locale.
|
|
9
|
-
- If the user mixes languages, use the language that best matches the current request.
|
|
10
|
-
- Preserve code, identifiers, file paths, commands, protocol names, quotes, and user-requested wording in their original language when accuracy requires it.
|
|
11
|
-
- If the user explicitly asks for a different output language for a specific answer, follow that local request unless it conflicts with higher-priority instructions.
|
|
6
|
+
Follow the current user's explicit output-language request, then this Agent's captured locale when supplied, then applicable host guidance or the current request and conversation context. Preserve code, identifiers, paths, commands and quotations when accuracy requires it. This governs visible output only.
|
|
12
7
|
</dsmm-locale-guidance>
|
|
13
8
|
|
|
14
9
|
---
|
|
@@ -39,17 +34,6 @@
|
|
|
39
34
|
|
|
40
35
|
---
|
|
41
36
|
|
|
42
|
-
<dsmm-host-contract>
|
|
43
|
-
Use the current DSH 0.2.1-rc.2 catalog: read/glob/grep for files, web_search/web_fetch for external facts, write/edit and the actual bash/pwsh for authorized edits and execution, and native skill invocation for triggered skills. Native read takes file_path; inspect actual schemas, not OpenCode field names. Use exposed ask_user_question or ask a material question in conversation. Use exposed todo_write for useful Agent-owned whole-list tracking under its actual concurrency policy. Use LSP/browser/read_image only when present and supported by the actual route; fall back to direct evidence or report the capability unavailable. No Task/todowrite/compress/Context7 MCP API is assumed; host compaction is not a model-facing compression tool.
|
|
44
|
-
Logical source role names map to IDs dsmm-<name> (explore is only the code-search alias). Inspect this Agent's actual admitted tool inventory: per-role exposes individual role tools plus dsmm_category; parameterized exposes dsmm_role/dsmm_category and their permitted target enums. description/prompt are assignment inputs; optional level, route and run_in_background depend on the actual schema and captured admission. Omitted/normal retains the default route; low/high/max requires that target's configured complete route or effort-only override, with exact native preflight. route additionally needs deployment allowRouteOverride=true; no suffix role/tool or arbitrary effort is inferred. Layout/level never changes target/read-only/depth/ownership authority. A read-only planner returns complete Markdown for authorized coordinator persistence, never through file/shell writes or a child proxy.
|
|
45
|
-
One-shot defaults foreground and is never revived after settlement. When enabled and admitted, native jobs own one-shot background; a managed continuable configuration defaults background and returns a durable child ID, while explicit run_in_background:false starts a non-reusable one-shot. Existing continuable children use actual exposed send_message for running/idle/same-ID cold delivery and actual native user queue/steer; acceptance is not completion. Original child route/locale/authority remains captured and intersects current exact-parent authority, not parent-new-policy inheritance. Legacy conservative evidence permits useful proven capabilities and denies missing-evidence capabilities with reasons. A foreground handoff, only through an actually wired user control, moves the existing run to native-job ownership without another start; no static text declares a new tool or RPC. Managed delivery requires disabling the stock subagents row and binding the unique PUBLIC DSMM SubagentRuntime subclass at explicit startup, then restart. Stock cannot be hot-replaced. Background/capacity/depth/ownership/cancellation remain mandatory. Native continuation is not task_id/resume/retry.
|
|
46
|
-
The native main model picker, explicit user route and catalog are authoritative. Model guidance calibrates behavior only; it does not select a provider/model, grant permissions, declare external independence or change advertised effort. Oracle independence requires a different model was explicitly selected and verified in the actual route. Default inventory has no synthetic tiers or additional Oracle slots.
|
|
47
|
-
Follow the current user's explicit visible-output language request, then this Agent's immutable captured locale when supplied, then applicable host/user language guidance or current request/context. All DSMM roles/categories follow this priority even with common mode off. Preserve identifiers, code, paths, commands, protocol fields and exact quotes; child assignments retain explicit language requests. This contract copies no Root locale/configuration, promises no internal reasoning language and changes neither host UI nor project locale.
|
|
48
|
-
Role persona and access remain when Deepwork is explicitly off; common workflow and DSMM skills do not. Git/install/login/destructive actions need exact authorization regardless of mode. All delegation guidance is intersected with enabled roles, mounted capabilities, inherited permissions and native depth; runtime policy enforces those ceilings, not these static texts.
|
|
49
|
-
</dsmm-host-contract>
|
|
50
|
-
|
|
51
|
-
---
|
|
52
|
-
|
|
53
37
|
<dsmm-shell-command-safety>
|
|
54
38
|
# Shell Command Safety
|
|
55
39
|
|
|
@@ -3,12 +3,7 @@
|
|
|
3
3
|
config:
|
|
4
4
|
prefix: |-
|
|
5
5
|
<dsmm-locale-guidance>
|
|
6
|
-
|
|
7
|
-
- This shared resource supplies no configured locale; preserve this exact Agent's captured locale and applicable host/user language guidance when supplied.
|
|
8
|
-
- When neither captured locale nor applicable host/user language guidance is supplied, infer the preferred visible-output language from the current request and conversation context. This does not configure reasoning language or the host/project locale.
|
|
9
|
-
- If the user mixes languages, use the language that best matches the current request.
|
|
10
|
-
- Preserve code, identifiers, file paths, commands, protocol names, quotes, and user-requested wording in their original language when accuracy requires it.
|
|
11
|
-
- If the user explicitly asks for a different output language for a specific answer, follow that local request unless it conflicts with higher-priority instructions.
|
|
6
|
+
Follow the current user's explicit output-language request, then this Agent's captured locale when supplied, then applicable host guidance or the current request and conversation context. Preserve code, identifiers, paths, commands and quotations when accuracy requires it. This governs visible output only.
|
|
12
7
|
</dsmm-locale-guidance>
|
|
13
8
|
|
|
14
9
|
---
|
|
@@ -98,17 +93,6 @@
|
|
|
98
93
|
|
|
99
94
|
---
|
|
100
95
|
|
|
101
|
-
<dsmm-host-contract>
|
|
102
|
-
Use the current DSH 0.2.1-rc.2 catalog: read/glob/grep for files, web_search/web_fetch for external facts, write/edit and the actual bash/pwsh for authorized edits and execution, and native skill invocation for triggered skills. Native read takes file_path; inspect actual schemas, not OpenCode field names. Use exposed ask_user_question or ask a material question in conversation. Use exposed todo_write for useful Agent-owned whole-list tracking under its actual concurrency policy. Use LSP/browser/read_image only when present and supported by the actual route; fall back to direct evidence or report the capability unavailable. No Task/todowrite/compress/Context7 MCP API is assumed; host compaction is not a model-facing compression tool.
|
|
103
|
-
Logical source role names map to IDs dsmm-<name> (explore is only the code-search alias). Inspect this Agent's actual admitted tool inventory: per-role exposes individual role tools plus dsmm_category; parameterized exposes dsmm_role/dsmm_category and their permitted target enums. description/prompt are assignment inputs; optional level, route and run_in_background depend on the actual schema and captured admission. Omitted/normal retains the default route; low/high/max requires that target's configured complete route or effort-only override, with exact native preflight. route additionally needs deployment allowRouteOverride=true; no suffix role/tool or arbitrary effort is inferred. Layout/level never changes target/read-only/depth/ownership authority. A read-only planner returns complete Markdown for authorized coordinator persistence, never through file/shell writes or a child proxy.
|
|
104
|
-
One-shot defaults foreground and is never revived after settlement. When enabled and admitted, native jobs own one-shot background; a managed continuable configuration defaults background and returns a durable child ID, while explicit run_in_background:false starts a non-reusable one-shot. Existing continuable children use actual exposed send_message for running/idle/same-ID cold delivery and actual native user queue/steer; acceptance is not completion. Original child route/locale/authority remains captured and intersects current exact-parent authority, not parent-new-policy inheritance. Legacy conservative evidence permits useful proven capabilities and denies missing-evidence capabilities with reasons. A foreground handoff, only through an actually wired user control, moves the existing run to native-job ownership without another start; no static text declares a new tool or RPC. Managed delivery requires disabling the stock subagents row and binding the unique PUBLIC DSMM SubagentRuntime subclass at explicit startup, then restart. Stock cannot be hot-replaced. Background/capacity/depth/ownership/cancellation remain mandatory. Native continuation is not task_id/resume/retry.
|
|
105
|
-
The native main model picker, explicit user route and catalog are authoritative. Model guidance calibrates behavior only; it does not select a provider/model, grant permissions, declare external independence or change advertised effort. Oracle independence requires a different model was explicitly selected and verified in the actual route. Default inventory has no synthetic tiers or additional Oracle slots.
|
|
106
|
-
Follow the current user's explicit visible-output language request, then this Agent's immutable captured locale when supplied, then applicable host/user language guidance or current request/context. All DSMM roles/categories follow this priority even with common mode off. Preserve identifiers, code, paths, commands, protocol fields and exact quotes; child assignments retain explicit language requests. This contract copies no Root locale/configuration, promises no internal reasoning language and changes neither host UI nor project locale.
|
|
107
|
-
Role persona and access remain when Deepwork is explicitly off; common workflow and DSMM skills do not. Git/install/login/destructive actions need exact authorization regardless of mode. All delegation guidance is intersected with enabled roles, mounted capabilities, inherited permissions and native depth; runtime policy enforces those ceilings, not these static texts.
|
|
108
|
-
</dsmm-host-contract>
|
|
109
|
-
|
|
110
|
-
---
|
|
111
|
-
|
|
112
96
|
<dsmm-shell-command-safety>
|
|
113
97
|
# Shell Command Safety
|
|
114
98
|
|
|
@@ -3,12 +3,7 @@
|
|
|
3
3
|
config:
|
|
4
4
|
prefix: |-
|
|
5
5
|
<dsmm-locale-guidance>
|
|
6
|
-
|
|
7
|
-
- This shared resource supplies no configured locale; preserve this exact Agent's captured locale and applicable host/user language guidance when supplied.
|
|
8
|
-
- When neither captured locale nor applicable host/user language guidance is supplied, infer the preferred visible-output language from the current request and conversation context. This does not configure reasoning language or the host/project locale.
|
|
9
|
-
- If the user mixes languages, use the language that best matches the current request.
|
|
10
|
-
- Preserve code, identifiers, file paths, commands, protocol names, quotes, and user-requested wording in their original language when accuracy requires it.
|
|
11
|
-
- If the user explicitly asks for a different output language for a specific answer, follow that local request unless it conflicts with higher-priority instructions.
|
|
6
|
+
Follow the current user's explicit output-language request, then this Agent's captured locale when supplied, then applicable host guidance or the current request and conversation context. Preserve code, identifiers, paths, commands and quotations when accuracy requires it. This governs visible output only.
|
|
12
7
|
</dsmm-locale-guidance>
|
|
13
8
|
|
|
14
9
|
---
|
|
@@ -45,17 +40,6 @@
|
|
|
45
40
|
|
|
46
41
|
---
|
|
47
42
|
|
|
48
|
-
<dsmm-host-contract>
|
|
49
|
-
Use the current DSH 0.2.1-rc.2 catalog: read/glob/grep for files, web_search/web_fetch for external facts, write/edit and the actual bash/pwsh for authorized edits and execution, and native skill invocation for triggered skills. Native read takes file_path; inspect actual schemas, not OpenCode field names. Use exposed ask_user_question or ask a material question in conversation. Use exposed todo_write for useful Agent-owned whole-list tracking under its actual concurrency policy. Use LSP/browser/read_image only when present and supported by the actual route; fall back to direct evidence or report the capability unavailable. No Task/todowrite/compress/Context7 MCP API is assumed; host compaction is not a model-facing compression tool.
|
|
50
|
-
Logical source role names map to IDs dsmm-<name> (explore is only the code-search alias). Inspect this Agent's actual admitted tool inventory: per-role exposes individual role tools plus dsmm_category; parameterized exposes dsmm_role/dsmm_category and their permitted target enums. description/prompt are assignment inputs; optional level, route and run_in_background depend on the actual schema and captured admission. Omitted/normal retains the default route; low/high/max requires that target's configured complete route or effort-only override, with exact native preflight. route additionally needs deployment allowRouteOverride=true; no suffix role/tool or arbitrary effort is inferred. Layout/level never changes target/read-only/depth/ownership authority. A read-only planner returns complete Markdown for authorized coordinator persistence, never through file/shell writes or a child proxy.
|
|
51
|
-
One-shot defaults foreground and is never revived after settlement. When enabled and admitted, native jobs own one-shot background; a managed continuable configuration defaults background and returns a durable child ID, while explicit run_in_background:false starts a non-reusable one-shot. Existing continuable children use actual exposed send_message for running/idle/same-ID cold delivery and actual native user queue/steer; acceptance is not completion. Original child route/locale/authority remains captured and intersects current exact-parent authority, not parent-new-policy inheritance. Legacy conservative evidence permits useful proven capabilities and denies missing-evidence capabilities with reasons. A foreground handoff, only through an actually wired user control, moves the existing run to native-job ownership without another start; no static text declares a new tool or RPC. Managed delivery requires disabling the stock subagents row and binding the unique PUBLIC DSMM SubagentRuntime subclass at explicit startup, then restart. Stock cannot be hot-replaced. Background/capacity/depth/ownership/cancellation remain mandatory. Native continuation is not task_id/resume/retry.
|
|
52
|
-
The native main model picker, explicit user route and catalog are authoritative. Model guidance calibrates behavior only; it does not select a provider/model, grant permissions, declare external independence or change advertised effort. Oracle independence requires a different model was explicitly selected and verified in the actual route. Default inventory has no synthetic tiers or additional Oracle slots.
|
|
53
|
-
Follow the current user's explicit visible-output language request, then this Agent's immutable captured locale when supplied, then applicable host/user language guidance or current request/context. All DSMM roles/categories follow this priority even with common mode off. Preserve identifiers, code, paths, commands, protocol fields and exact quotes; child assignments retain explicit language requests. This contract copies no Root locale/configuration, promises no internal reasoning language and changes neither host UI nor project locale.
|
|
54
|
-
Role persona and access remain when Deepwork is explicitly off; common workflow and DSMM skills do not. Git/install/login/destructive actions need exact authorization regardless of mode. All delegation guidance is intersected with enabled roles, mounted capabilities, inherited permissions and native depth; runtime policy enforces those ceilings, not these static texts.
|
|
55
|
-
</dsmm-host-contract>
|
|
56
|
-
|
|
57
|
-
---
|
|
58
|
-
|
|
59
43
|
<dsmm-shell-command-safety>
|
|
60
44
|
# Shell Command Safety
|
|
61
45
|
|
|
@@ -3,12 +3,7 @@
|
|
|
3
3
|
config:
|
|
4
4
|
prefix: |-
|
|
5
5
|
<dsmm-locale-guidance>
|
|
6
|
-
|
|
7
|
-
- This shared resource supplies no configured locale; preserve this exact Agent's captured locale and applicable host/user language guidance when supplied.
|
|
8
|
-
- When neither captured locale nor applicable host/user language guidance is supplied, infer the preferred visible-output language from the current request and conversation context. This does not configure reasoning language or the host/project locale.
|
|
9
|
-
- If the user mixes languages, use the language that best matches the current request.
|
|
10
|
-
- Preserve code, identifiers, file paths, commands, protocol names, quotes, and user-requested wording in their original language when accuracy requires it.
|
|
11
|
-
- If the user explicitly asks for a different output language for a specific answer, follow that local request unless it conflicts with higher-priority instructions.
|
|
6
|
+
Follow the current user's explicit output-language request, then this Agent's captured locale when supplied, then applicable host guidance or the current request and conversation context. Preserve code, identifiers, paths, commands and quotations when accuracy requires it. This governs visible output only.
|
|
12
7
|
</dsmm-locale-guidance>
|
|
13
8
|
|
|
14
9
|
---
|
|
@@ -37,17 +32,6 @@
|
|
|
37
32
|
|
|
38
33
|
---
|
|
39
34
|
|
|
40
|
-
<dsmm-host-contract>
|
|
41
|
-
Use the current DSH 0.2.1-rc.2 catalog: read/glob/grep for files, web_search/web_fetch for external facts, write/edit and the actual bash/pwsh for authorized edits and execution, and native skill invocation for triggered skills. Native read takes file_path; inspect actual schemas, not OpenCode field names. Use exposed ask_user_question or ask a material question in conversation. Use exposed todo_write for useful Agent-owned whole-list tracking under its actual concurrency policy. Use LSP/browser/read_image only when present and supported by the actual route; fall back to direct evidence or report the capability unavailable. No Task/todowrite/compress/Context7 MCP API is assumed; host compaction is not a model-facing compression tool.
|
|
42
|
-
Logical source role names map to IDs dsmm-<name> (explore is only the code-search alias). Inspect this Agent's actual admitted tool inventory: per-role exposes individual role tools plus dsmm_category; parameterized exposes dsmm_role/dsmm_category and their permitted target enums. description/prompt are assignment inputs; optional level, route and run_in_background depend on the actual schema and captured admission. Omitted/normal retains the default route; low/high/max requires that target's configured complete route or effort-only override, with exact native preflight. route additionally needs deployment allowRouteOverride=true; no suffix role/tool or arbitrary effort is inferred. Layout/level never changes target/read-only/depth/ownership authority. A read-only planner returns complete Markdown for authorized coordinator persistence, never through file/shell writes or a child proxy.
|
|
43
|
-
One-shot defaults foreground and is never revived after settlement. When enabled and admitted, native jobs own one-shot background; a managed continuable configuration defaults background and returns a durable child ID, while explicit run_in_background:false starts a non-reusable one-shot. Existing continuable children use actual exposed send_message for running/idle/same-ID cold delivery and actual native user queue/steer; acceptance is not completion. Original child route/locale/authority remains captured and intersects current exact-parent authority, not parent-new-policy inheritance. Legacy conservative evidence permits useful proven capabilities and denies missing-evidence capabilities with reasons. A foreground handoff, only through an actually wired user control, moves the existing run to native-job ownership without another start; no static text declares a new tool or RPC. Managed delivery requires disabling the stock subagents row and binding the unique PUBLIC DSMM SubagentRuntime subclass at explicit startup, then restart. Stock cannot be hot-replaced. Background/capacity/depth/ownership/cancellation remain mandatory. Native continuation is not task_id/resume/retry.
|
|
44
|
-
The native main model picker, explicit user route and catalog are authoritative. Model guidance calibrates behavior only; it does not select a provider/model, grant permissions, declare external independence or change advertised effort. Oracle independence requires a different model was explicitly selected and verified in the actual route. Default inventory has no synthetic tiers or additional Oracle slots.
|
|
45
|
-
Follow the current user's explicit visible-output language request, then this Agent's immutable captured locale when supplied, then applicable host/user language guidance or current request/context. All DSMM roles/categories follow this priority even with common mode off. Preserve identifiers, code, paths, commands, protocol fields and exact quotes; child assignments retain explicit language requests. This contract copies no Root locale/configuration, promises no internal reasoning language and changes neither host UI nor project locale.
|
|
46
|
-
Role persona and access remain when Deepwork is explicitly off; common workflow and DSMM skills do not. Git/install/login/destructive actions need exact authorization regardless of mode. All delegation guidance is intersected with enabled roles, mounted capabilities, inherited permissions and native depth; runtime policy enforces those ceilings, not these static texts.
|
|
47
|
-
</dsmm-host-contract>
|
|
48
|
-
|
|
49
|
-
---
|
|
50
|
-
|
|
51
35
|
<dsmm-shell-command-safety>
|
|
52
36
|
# Shell Command Safety
|
|
53
37
|
|
|
@@ -3,12 +3,7 @@
|
|
|
3
3
|
config:
|
|
4
4
|
prefix: |-
|
|
5
5
|
<dsmm-locale-guidance>
|
|
6
|
-
|
|
7
|
-
- This shared resource supplies no configured locale; preserve this exact Agent's captured locale and applicable host/user language guidance when supplied.
|
|
8
|
-
- When neither captured locale nor applicable host/user language guidance is supplied, infer the preferred visible-output language from the current request and conversation context. This does not configure reasoning language or the host/project locale.
|
|
9
|
-
- If the user mixes languages, use the language that best matches the current request.
|
|
10
|
-
- Preserve code, identifiers, file paths, commands, protocol names, quotes, and user-requested wording in their original language when accuracy requires it.
|
|
11
|
-
- If the user explicitly asks for a different output language for a specific answer, follow that local request unless it conflicts with higher-priority instructions.
|
|
6
|
+
Follow the current user's explicit output-language request, then this Agent's captured locale when supplied, then applicable host guidance or the current request and conversation context. Preserve code, identifiers, paths, commands and quotations when accuracy requires it. This governs visible output only.
|
|
12
7
|
</dsmm-locale-guidance>
|
|
13
8
|
|
|
14
9
|
---
|
|
@@ -51,17 +46,6 @@
|
|
|
51
46
|
|
|
52
47
|
---
|
|
53
48
|
|
|
54
|
-
<dsmm-host-contract>
|
|
55
|
-
Use the current DSH 0.2.1-rc.2 catalog: read/glob/grep for files, web_search/web_fetch for external facts, write/edit and the actual bash/pwsh for authorized edits and execution, and native skill invocation for triggered skills. Native read takes file_path; inspect actual schemas, not OpenCode field names. Use exposed ask_user_question or ask a material question in conversation. Use exposed todo_write for useful Agent-owned whole-list tracking under its actual concurrency policy. Use LSP/browser/read_image only when present and supported by the actual route; fall back to direct evidence or report the capability unavailable. No Task/todowrite/compress/Context7 MCP API is assumed; host compaction is not a model-facing compression tool.
|
|
56
|
-
Logical source role names map to IDs dsmm-<name> (explore is only the code-search alias). Inspect this Agent's actual admitted tool inventory: per-role exposes individual role tools plus dsmm_category; parameterized exposes dsmm_role/dsmm_category and their permitted target enums. description/prompt are assignment inputs; optional level, route and run_in_background depend on the actual schema and captured admission. Omitted/normal retains the default route; low/high/max requires that target's configured complete route or effort-only override, with exact native preflight. route additionally needs deployment allowRouteOverride=true; no suffix role/tool or arbitrary effort is inferred. Layout/level never changes target/read-only/depth/ownership authority. A read-only planner returns complete Markdown for authorized coordinator persistence, never through file/shell writes or a child proxy.
|
|
57
|
-
One-shot defaults foreground and is never revived after settlement. When enabled and admitted, native jobs own one-shot background; a managed continuable configuration defaults background and returns a durable child ID, while explicit run_in_background:false starts a non-reusable one-shot. Existing continuable children use actual exposed send_message for running/idle/same-ID cold delivery and actual native user queue/steer; acceptance is not completion. Original child route/locale/authority remains captured and intersects current exact-parent authority, not parent-new-policy inheritance. Legacy conservative evidence permits useful proven capabilities and denies missing-evidence capabilities with reasons. A foreground handoff, only through an actually wired user control, moves the existing run to native-job ownership without another start; no static text declares a new tool or RPC. Managed delivery requires disabling the stock subagents row and binding the unique PUBLIC DSMM SubagentRuntime subclass at explicit startup, then restart. Stock cannot be hot-replaced. Background/capacity/depth/ownership/cancellation remain mandatory. Native continuation is not task_id/resume/retry.
|
|
58
|
-
The native main model picker, explicit user route and catalog are authoritative. Model guidance calibrates behavior only; it does not select a provider/model, grant permissions, declare external independence or change advertised effort. Oracle independence requires a different model was explicitly selected and verified in the actual route. Default inventory has no synthetic tiers or additional Oracle slots.
|
|
59
|
-
Follow the current user's explicit visible-output language request, then this Agent's immutable captured locale when supplied, then applicable host/user language guidance or current request/context. All DSMM roles/categories follow this priority even with common mode off. Preserve identifiers, code, paths, commands, protocol fields and exact quotes; child assignments retain explicit language requests. This contract copies no Root locale/configuration, promises no internal reasoning language and changes neither host UI nor project locale.
|
|
60
|
-
Role persona and access remain when Deepwork is explicitly off; common workflow and DSMM skills do not. Git/install/login/destructive actions need exact authorization regardless of mode. All delegation guidance is intersected with enabled roles, mounted capabilities, inherited permissions and native depth; runtime policy enforces those ceilings, not these static texts.
|
|
61
|
-
</dsmm-host-contract>
|
|
62
|
-
|
|
63
|
-
---
|
|
64
|
-
|
|
65
49
|
<dsmm-shell-command-safety>
|
|
66
50
|
# Shell Command Safety
|
|
67
51
|
|
|
@@ -3,12 +3,7 @@
|
|
|
3
3
|
config:
|
|
4
4
|
prefix: |-
|
|
5
5
|
<dsmm-locale-guidance>
|
|
6
|
-
|
|
7
|
-
- This shared resource supplies no configured locale; preserve this exact Agent's captured locale and applicable host/user language guidance when supplied.
|
|
8
|
-
- When neither captured locale nor applicable host/user language guidance is supplied, infer the preferred visible-output language from the current request and conversation context. This does not configure reasoning language or the host/project locale.
|
|
9
|
-
- If the user mixes languages, use the language that best matches the current request.
|
|
10
|
-
- Preserve code, identifiers, file paths, commands, protocol names, quotes, and user-requested wording in their original language when accuracy requires it.
|
|
11
|
-
- If the user explicitly asks for a different output language for a specific answer, follow that local request unless it conflicts with higher-priority instructions.
|
|
6
|
+
Follow the current user's explicit output-language request, then this Agent's captured locale when supplied, then applicable host guidance or the current request and conversation context. Preserve code, identifiers, paths, commands and quotations when accuracy requires it. This governs visible output only.
|
|
12
7
|
</dsmm-locale-guidance>
|
|
13
8
|
|
|
14
9
|
---
|
|
@@ -72,17 +67,6 @@
|
|
|
72
67
|
|
|
73
68
|
---
|
|
74
69
|
|
|
75
|
-
<dsmm-host-contract>
|
|
76
|
-
Use the current DSH 0.2.1-rc.2 catalog: read/glob/grep for files, web_search/web_fetch for external facts, write/edit and the actual bash/pwsh for authorized edits and execution, and native skill invocation for triggered skills. Native read takes file_path; inspect actual schemas, not OpenCode field names. Use exposed ask_user_question or ask a material question in conversation. Use exposed todo_write for useful Agent-owned whole-list tracking under its actual concurrency policy. Use LSP/browser/read_image only when present and supported by the actual route; fall back to direct evidence or report the capability unavailable. No Task/todowrite/compress/Context7 MCP API is assumed; host compaction is not a model-facing compression tool.
|
|
77
|
-
Logical source role names map to IDs dsmm-<name> (explore is only the code-search alias). Inspect this Agent's actual admitted tool inventory: per-role exposes individual role tools plus dsmm_category; parameterized exposes dsmm_role/dsmm_category and their permitted target enums. description/prompt are assignment inputs; optional level, route and run_in_background depend on the actual schema and captured admission. Omitted/normal retains the default route; low/high/max requires that target's configured complete route or effort-only override, with exact native preflight. route additionally needs deployment allowRouteOverride=true; no suffix role/tool or arbitrary effort is inferred. Layout/level never changes target/read-only/depth/ownership authority. A read-only planner returns complete Markdown for authorized coordinator persistence, never through file/shell writes or a child proxy.
|
|
78
|
-
One-shot defaults foreground and is never revived after settlement. When enabled and admitted, native jobs own one-shot background; a managed continuable configuration defaults background and returns a durable child ID, while explicit run_in_background:false starts a non-reusable one-shot. Existing continuable children use actual exposed send_message for running/idle/same-ID cold delivery and actual native user queue/steer; acceptance is not completion. Original child route/locale/authority remains captured and intersects current exact-parent authority, not parent-new-policy inheritance. Legacy conservative evidence permits useful proven capabilities and denies missing-evidence capabilities with reasons. A foreground handoff, only through an actually wired user control, moves the existing run to native-job ownership without another start; no static text declares a new tool or RPC. Managed delivery requires disabling the stock subagents row and binding the unique PUBLIC DSMM SubagentRuntime subclass at explicit startup, then restart. Stock cannot be hot-replaced. Background/capacity/depth/ownership/cancellation remain mandatory. Native continuation is not task_id/resume/retry.
|
|
79
|
-
The native main model picker, explicit user route and catalog are authoritative. Model guidance calibrates behavior only; it does not select a provider/model, grant permissions, declare external independence or change advertised effort. Oracle independence requires a different model was explicitly selected and verified in the actual route. Default inventory has no synthetic tiers or additional Oracle slots.
|
|
80
|
-
Follow the current user's explicit visible-output language request, then this Agent's immutable captured locale when supplied, then applicable host/user language guidance or current request/context. All DSMM roles/categories follow this priority even with common mode off. Preserve identifiers, code, paths, commands, protocol fields and exact quotes; child assignments retain explicit language requests. This contract copies no Root locale/configuration, promises no internal reasoning language and changes neither host UI nor project locale.
|
|
81
|
-
Role persona and access remain when Deepwork is explicitly off; common workflow and DSMM skills do not. Git/install/login/destructive actions need exact authorization regardless of mode. All delegation guidance is intersected with enabled roles, mounted capabilities, inherited permissions and native depth; runtime policy enforces those ceilings, not these static texts.
|
|
82
|
-
</dsmm-host-contract>
|
|
83
|
-
|
|
84
|
-
---
|
|
85
|
-
|
|
86
70
|
<dsmm-shell-command-safety>
|
|
87
71
|
# Shell Command Safety
|
|
88
72
|
|
|
@@ -3,12 +3,7 @@
|
|
|
3
3
|
config:
|
|
4
4
|
prefix: |-
|
|
5
5
|
<dsmm-locale-guidance>
|
|
6
|
-
|
|
7
|
-
- This shared resource supplies no configured locale; preserve this exact Agent's captured locale and applicable host/user language guidance when supplied.
|
|
8
|
-
- When neither captured locale nor applicable host/user language guidance is supplied, infer the preferred visible-output language from the current request and conversation context. This does not configure reasoning language or the host/project locale.
|
|
9
|
-
- If the user mixes languages, use the language that best matches the current request.
|
|
10
|
-
- Preserve code, identifiers, file paths, commands, protocol names, quotes, and user-requested wording in their original language when accuracy requires it.
|
|
11
|
-
- If the user explicitly asks for a different output language for a specific answer, follow that local request unless it conflicts with higher-priority instructions.
|
|
6
|
+
Follow the current user's explicit output-language request, then this Agent's captured locale when supplied, then applicable host guidance or the current request and conversation context. Preserve code, identifiers, paths, commands and quotations when accuracy requires it. This governs visible output only.
|
|
12
7
|
</dsmm-locale-guidance>
|
|
13
8
|
|
|
14
9
|
---
|
|
@@ -39,17 +34,6 @@
|
|
|
39
34
|
|
|
40
35
|
---
|
|
41
36
|
|
|
42
|
-
<dsmm-host-contract>
|
|
43
|
-
Use the current DSH 0.2.1-rc.2 catalog: read/glob/grep for files, web_search/web_fetch for external facts, write/edit and the actual bash/pwsh for authorized edits and execution, and native skill invocation for triggered skills. Native read takes file_path; inspect actual schemas, not OpenCode field names. Use exposed ask_user_question or ask a material question in conversation. Use exposed todo_write for useful Agent-owned whole-list tracking under its actual concurrency policy. Use LSP/browser/read_image only when present and supported by the actual route; fall back to direct evidence or report the capability unavailable. No Task/todowrite/compress/Context7 MCP API is assumed; host compaction is not a model-facing compression tool.
|
|
44
|
-
Logical source role names map to IDs dsmm-<name> (explore is only the code-search alias). Inspect this Agent's actual admitted tool inventory: per-role exposes individual role tools plus dsmm_category; parameterized exposes dsmm_role/dsmm_category and their permitted target enums. description/prompt are assignment inputs; optional level, route and run_in_background depend on the actual schema and captured admission. Omitted/normal retains the default route; low/high/max requires that target's configured complete route or effort-only override, with exact native preflight. route additionally needs deployment allowRouteOverride=true; no suffix role/tool or arbitrary effort is inferred. Layout/level never changes target/read-only/depth/ownership authority. A read-only planner returns complete Markdown for authorized coordinator persistence, never through file/shell writes or a child proxy.
|
|
45
|
-
One-shot defaults foreground and is never revived after settlement. When enabled and admitted, native jobs own one-shot background; a managed continuable configuration defaults background and returns a durable child ID, while explicit run_in_background:false starts a non-reusable one-shot. Existing continuable children use actual exposed send_message for running/idle/same-ID cold delivery and actual native user queue/steer; acceptance is not completion. Original child route/locale/authority remains captured and intersects current exact-parent authority, not parent-new-policy inheritance. Legacy conservative evidence permits useful proven capabilities and denies missing-evidence capabilities with reasons. A foreground handoff, only through an actually wired user control, moves the existing run to native-job ownership without another start; no static text declares a new tool or RPC. Managed delivery requires disabling the stock subagents row and binding the unique PUBLIC DSMM SubagentRuntime subclass at explicit startup, then restart. Stock cannot be hot-replaced. Background/capacity/depth/ownership/cancellation remain mandatory. Native continuation is not task_id/resume/retry.
|
|
46
|
-
The native main model picker, explicit user route and catalog are authoritative. Model guidance calibrates behavior only; it does not select a provider/model, grant permissions, declare external independence or change advertised effort. Oracle independence requires a different model was explicitly selected and verified in the actual route. Default inventory has no synthetic tiers or additional Oracle slots.
|
|
47
|
-
Follow the current user's explicit visible-output language request, then this Agent's immutable captured locale when supplied, then applicable host/user language guidance or current request/context. All DSMM roles/categories follow this priority even with common mode off. Preserve identifiers, code, paths, commands, protocol fields and exact quotes; child assignments retain explicit language requests. This contract copies no Root locale/configuration, promises no internal reasoning language and changes neither host UI nor project locale.
|
|
48
|
-
Role persona and access remain when Deepwork is explicitly off; common workflow and DSMM skills do not. Git/install/login/destructive actions need exact authorization regardless of mode. All delegation guidance is intersected with enabled roles, mounted capabilities, inherited permissions and native depth; runtime policy enforces those ceilings, not these static texts.
|
|
49
|
-
</dsmm-host-contract>
|
|
50
|
-
|
|
51
|
-
---
|
|
52
|
-
|
|
53
37
|
<dsmm-shell-command-safety>
|
|
54
38
|
# Shell Command Safety
|
|
55
39
|
|
package/cordis.patch.yml
CHANGED
package/docs/agent-presets.md
CHANGED
|
@@ -41,7 +41,7 @@ Actual per-role or parameterized tool names, target IDs and `level`/opt-in `rout
|
|
|
41
41
|
|
|
42
42
|
Waiting for the official activation result is the default (`delivery:'caller'`). Only `stopReason:'completed'` is normal completion. Native output, structured result, diagnostics and partial output retain their separate meanings; interrupted or failed activation isn't reported as success. Cancellation after publication uses the activation receipt's `dispose()` and waits for cleanup, including cancellation racing with receipt creation.
|
|
43
43
|
|
|
44
|
-
|
|
44
|
+
`subagents.enableRunInBackground` or `subagents.forceBackground` exposes `run_in_background`. Both default false. With `forceBackground:true`, every delegation uses native `delivery:'parent'` whether the argument is omitted, true or false, including when `enableRunInBackground:false`. Otherwise only `enableRunInBackground:true` with `run_in_background:true` selects background delivery. Background calls return accepted child/message information; the native activation notifies the parent on completion. Independent foreground calls in one model response run concurrently through the native scheduler and each waits for its own completed result. A legacy `backgroundMode` value isn't a selector for another execution owner or a promise of cold continuation. Omitted `maxDepth` delegates to the native limit; deployment depth/background settings aren't named-profile fields.
|
|
45
45
|
|
|
46
46
|
A running waiting call can't be handed to background. There is no restart-as-handoff, second child or DSMM RoleRun/job owner. Native activation owns execution, results and disposal.
|
|
47
47
|
|
package/docs/compatibility.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# DSMM compatibility and upgrade boundaries
|
|
2
2
|
|
|
3
|
-
**DSMM 0.3.
|
|
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 remain pinned to 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
|
|
|
@@ -28,6 +28,18 @@ Stores use separate CAS and atomic-write boundaries. Committed saves aren't roll
|
|
|
28
28
|
|
|
29
29
|
## Execution and recovery
|
|
30
30
|
|
|
31
|
+
### DSH 0.2.2 Host differences
|
|
32
|
+
|
|
33
|
+
DSMM runs identically on 0.2.1 and 0.2.2 Hosts except where 0.2.2 changed public contracts. Runtime capability detection (`agent.model.select` presence, provider-constructor shape) routes each surface; version strings are never consulted.
|
|
34
|
+
|
|
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
|
+
- **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
|
+
- **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.
|
|
38
|
+
- **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.
|
|
39
|
+
- **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.
|
|
40
|
+
- **Fake-IP web fetch loses answer-level enforcement.** 0.2.2's HTTP fetch provider neither resolves nor pins addresses (it dispatches through the process-wide proxy policy), so DSMM's Fake-IP adapter cannot validate DNS answers, NAT64-embedded destinations, or answer-level `denyCidrs`. With configured local denies, direct hostnames and native IPv6 literals fail closed where the resolved or translated destination cannot be checked; IPv4 and mapped IPv4 literals retain entry checks. Existing proxy restrictions remain enforced. DSMM never installs a global dispatcher — process transport policy stays Host-owned.
|
|
41
|
+
- **pi-ai image-offload bounds are supplied by DSMM** where 0.2.2 requires them (defaults mirroring upstream: `maxRequestImages` 50, `imageOffloadCountQuantum` min(10, max)). 0.2.1 profiles carry no such fields.
|
|
42
|
+
|
|
31
43
|
### Native history composition
|
|
32
44
|
|
|
33
45
|
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.
|
package/docs/maintenance.md
CHANGED
|
@@ -7,8 +7,9 @@ not read a parent or sibling repository.
|
|
|
7
7
|
## Toolchain
|
|
8
8
|
|
|
9
9
|
Use Node.js 24 for CI/release and pnpm 11.9.0. The package still supports Node.js
|
|
10
|
-
22 or later at runtime
|
|
11
|
-
|
|
10
|
+
22 or later at runtime. Supported Host versions are listed in
|
|
11
|
+
[compatibility](compatibility.md), with `0.2.1-rc.2` as the development dependency
|
|
12
|
+
baseline. Do not change the npm
|
|
12
13
|
name `@dsmm/dsmm`, package version, or DSH dependency line as part of routine
|
|
13
14
|
maintenance unless the release or compatibility scope explicitly requires it.
|
|
14
15
|
|
|
@@ -40,14 +41,41 @@ base Deepwork prompt, run `pnpm run generate:roles`. CI uses
|
|
|
40
41
|
`pnpm run check:roles` and fails if `agent-presets/` or `prompts/deepwork.md` is
|
|
41
42
|
stale. Generated assets are package resources, not an alternate source of truth.
|
|
42
43
|
|
|
43
|
-
Model guidance is subordinate to the selected role and
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
44
|
+
Model guidance is subordinate to the selected role and the current runtime's tools
|
|
45
|
+
and permissions. Role and workflow prompts contain usage guidance rather than a
|
|
46
|
+
static Host contract or duplicate skill/MCP inventories; availability comes from
|
|
47
|
+
the current runtime catalog.
|
|
48
|
+
Model identifiers and families select resources in code; calibration text, headings
|
|
49
|
+
and tags are model-neutral. Source filenames retain selector identities. Kimi
|
|
50
|
+
K3 and earlier, and names without a determinate version, use `deepwork/kimi.md`.
|
|
51
|
+
K3.1 and later numeric generations, including K3.2 and K4+, exclusively use
|
|
52
|
+
`deepwork/kimi-k3-1.md`. Prompt-only K aliases such as `k3p1` leave reasoning-family
|
|
53
|
+
classification unchanged. Existing `kimi-k27` names retain their K2.7 meaning
|
|
54
|
+
and the old calibration. Selection preserves the first model identity and keeps
|
|
55
|
+
structured provider metadata outside model matching. Gemini 4.x, including Argon,
|
|
56
|
+
receives the selected `gemini-4` additive layer. No injected self-identification
|
|
57
|
+
or textual model guard is needed. Prompt selection does not change provider,
|
|
58
|
+
effort, fallback chains or DSH model capabilities.
|
|
59
|
+
|
|
60
|
+
The K3.1+ scope-and-delivery calibration selectively adapts Senpi `2026.11.3-3`'s
|
|
61
|
+
`kimi-k3-1.ts` at published source `29eedcbe7c0cdf1c89eac7c94d4093b485925303`.
|
|
62
|
+
Its source embeds the complete MIT copyright and permission notice, retained in
|
|
63
|
+
the packaged resource. The additive guidance prioritizes current intent, bounded
|
|
64
|
+
action, complete outcomes, evidence reuse, and truthful handoff under the local
|
|
65
|
+
role and workflow contracts; it adds no effort lock or workflow gate.
|
|
66
|
+
|
|
67
|
+
Locale guidance is registered in the exact Agent scope independently of Deepwork
|
|
68
|
+
mode, the Deepwork module and subagent tools. It uses that Agent's captured
|
|
69
|
+
settings; a parent's later changes do not rewrite an existing child's locale.
|
|
70
|
+
Explicit user language requests take precedence. The setting governs visible
|
|
71
|
+
output, not internal reasoning or the Host UI. Role identity overrides use the
|
|
72
|
+
native scoped `harness:identity` section; provider-side hidden system instructions
|
|
73
|
+
are outside this registration boundary.
|
|
74
|
+
|
|
75
|
+
The invocation projection in the system prompt omits provider/model identifiers.
|
|
76
|
+
Actual request routes and native UI observations retain their original metadata.
|
|
77
|
+
|
|
78
|
+
Execution guidance requires direct user-facing conclusions, reasons and actions.
|
|
51
79
|
Use contrast or negation for an expressed misconception or a distinction that
|
|
52
80
|
changes the conclusion, action, safety or scope. State necessary conditions,
|
|
53
81
|
uncertainty and safety limits concretely and once; remove sentences that add no
|
|
@@ -70,6 +98,16 @@ calculations, quotations and translation meaning, without mandatory ledgers or
|
|
|
70
98
|
large-workflow requirements for simple questions. These local adaptations preserve
|
|
71
99
|
DSH ownership of tasks, lifecycle, permissions and persistence.
|
|
72
100
|
|
|
101
|
+
Test guidance chooses checks by observable requirements, credible regressions,
|
|
102
|
+
and existing owner coverage, without test-only production interfaces. Report
|
|
103
|
+
fidelity compares extracted or converted numbers with originals, retains
|
|
104
|
+
chart/header/footnote context, and discloses partially applied edits. Interaction
|
|
105
|
+
guidance uses stable content slots and checks affected WCAG 2.2 A/AA criteria
|
|
106
|
+
with their exceptions; scoped evidence is not whole-product conformance. These
|
|
107
|
+
principles are independently expressed for the local workflow after comparison
|
|
108
|
+
with OMO shared-skills at `ed3693483e`; no mutation tool, research ledger, frontend
|
|
109
|
+
detection SDK, or third-party resource-pin update is included.
|
|
110
|
+
|
|
73
111
|
The `report-fidelity` skill follows native metadata discovery, lazy body loading,
|
|
74
112
|
and the normal skill setting. Historical child captures without that setting keep
|
|
75
113
|
it disabled; new captures retain their captured value independently of later
|
package/docs/model-routing.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Providers, accounts and credentials remain native DSH configuration, never named-profile contents.
|
|
4
4
|
|
|
5
|
-
DSMM
|
|
5
|
+
DSMM supports the Host range declared in [compatibility](compatibility.md), including DSH `0.2.1-rc.2` and `0.2.2-rc.1`. 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
|
## Root policy and child defaults
|
|
8
8
|
|
|
@@ -13,7 +13,11 @@ DSMM 0.3.16 targets exactly DSH `0.2.1-rc.2`. Standard calls use native prepared
|
|
|
13
13
|
|
|
14
14
|
Global and native-profile configuration may set this policy; named profiles cannot override it. Clearing a native-profile override restores inheritance from Global. The policy applies to the deployment, not to a detected client: a Web session in the same configured deployment follows it too. A separate Desktop deployment retains the default `native` behavior. Saving desired configuration does not replace an existing Agent's immutable admission; use the existing admission lifecycle to adopt changes.
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
An explicit primary takes precedence over a picker selection; inherited routing still uses the native baseline. On DSH 0.2.1, configured routing changes the request without writing the picker. On DSH 0.2.2, the public `agent.model.select()` boundary makes the admitted route visible as the pending selection before preparation. Neither path writes the saved native model preference. Status distinguishes the admitted policy and actual route from a declared model.
|
|
17
|
+
|
|
18
|
+
On 0.2.2, admission and maintenance prepare the selection before a request. Configured roots also bind their cached route on running/inbox boundaries, including the next turn after an idle picker change or mode activation. A running picker can race the next snapshot; a conflicting request then fails before dispatch rather than using an incorrect route. Request-time routing never schedules a deferred correction or removes route parameters to satisfy the Host check. Native roots continue to follow native selection.
|
|
19
|
+
|
|
20
|
+
Selection/proposal effort is distinct from the effective adapter default. With passthrough OFF, a configured effort does not override defaults: the proposal can omit effort while `prepareCall` resolves the adapter's default for HTTP. Explicit native effort remains explicit. DSMM's plugin metadata associates only its own newly appended selection events with their exact routes; it is not admission or delegation authority.
|
|
17
21
|
|
|
18
22
|
`roleRouting` is keyed by canonical IDs such as `dsmm-reviewer`, not tool names or labels. Each entry accepts `primary`, ordered `fallbackRoutes`, `strategy`, bounded `rateLimit`, and `levels`. Omitted primary inherits the native parent route for a child. Explicit host options on new delegation retain their priority. Historical descriptor options are reconstruction defaults, not a new override of current DSMM routing. A cold child resolves its invocation again, taking its own explicit native selection before configured-route preparation; a configured model that will not be used is not a preflight dependency. Ancestor selections, labels and old request defaults are not child selection intent.
|
|
19
23
|
|
|
@@ -70,10 +74,18 @@ Saving or selecting a future default preserves route JSON without sending a comp
|
|
|
70
74
|
|
|
71
75
|
Additional route properties are bounded plain JSON. Their names, values and presence are preserved, including an ordinary property named `customParameters`. In the supported completions seam, `reasoningEffort` and raw `reasoning_effort` are mutually exclusive. So are `maxTokens`, `max_tokens`, `max_completion_tokens` and `max_output_tokens`. A raw token field must match the actual API/model field and native context budget; conflicts refuse before HTTP rather than rewriting values or selecting a fallback. Raw JSON can't override provider/model, messages, tools, authentication, endpoint, headers, signals, callbacks or authority fields. Native attribution remains authoritative.
|
|
72
76
|
|
|
73
|
-
Every fallback owns its full parameter set; primary-only properties never flow into it. Complete JSON values distinguish parameter-only changes at the same provider/model, while key order doesn't. Missing admission or an unsupported raw adapter must not silently fall through to native dispatch with parameters removed.
|
|
77
|
+
The initial matching candidate preserves downstream-only request controls, while its explicitly configured fields take precedence. Same-route retries retain the failed request's complete explicit parameters. Every fallback owns its full parameter set across later steps and turns; primary-only properties never flow into it. Complete JSON values distinguish parameter-only changes at the same provider/model, while key order doesn't. Missing admission or an unsupported raw adapter must not silently fall through to native dispatch with parameters removed.
|
|
74
78
|
|
|
75
79
|
The native Root model-selection API remains its separate provider/model/effort contract. Its capability and manual-intent checks are independent of unavailable live overlay Apply; it doesn't write a profile selection pointer.
|
|
76
80
|
|
|
81
|
+
## Native dynamic request headers
|
|
82
|
+
|
|
83
|
+
On DSH `0.2.2-rc.1`, DSMM-owned standard and raw Pi-AI adapters preserve the native synchronous `llm-pi-ai/request-headers` hook. Borrowed raw adapters use the original provider registration scope; borrowed standard adapters keep their native hook without a duplicate invocation. Configuration and ownership checks use rc.1's public effective configuration and canonical live Fiber, while rc.2 retains its effective `fiber.config` source. Configuration changes and retired registrations invalidate prepared raw calls.
|
|
84
|
+
|
|
85
|
+
Each inference dispatch receives fresh headers and native frozen request metadata (`provider`, `model`, `sessionId`, `purpose`, `baseURL`). Native attribution remains authoritative after the waterfall. A hook exception follows the native `REQUEST_HEADERS` error path before inference I/O; cancellation and adapter retirement still prevent submission. Model discovery does not acquire an inference-header hook.
|
|
86
|
+
|
|
87
|
+
DSMM adds no business headers or header configuration. Credentials remain native-owned, and route JSON cannot supply headers or authentication fields. DSH `0.2.1-rc.2` retains its existing adapter behavior without a synthetic replacement hook.
|
|
88
|
+
|
|
77
89
|
## Invocation selection
|
|
78
90
|
|
|
79
91
|
Calls default to `level:"normal"`, meaning primary or inherited routing. There is no `levels.normal` setting. `low`, `high` and `max` must be configured for that exact target; an unconfigured requested level refuses before a model request. Orchestrator isn't a child delegation target and doesn't accept level configuration. Levels don't synthesize suffixed personas or change workflow ownership.
|
|
@@ -106,6 +118,16 @@ Native cold restoration establishes a new exact-Agent admission from current con
|
|
|
106
118
|
|
|
107
119
|
The child report compares initial route from real `invocation-capture` with live route from that child's `own-native-request-header`. Neither substitutes for the other. Missing capture is `missing-invocation-capture`; live unknown reasons include `no-own-request-header`, `invalid-own-request-header` and `not-observed`. A root header, inherited history prefix or configured primary isn't proof of the child's own executed route. Compatibility invocation projections are labeled as such, not presented as this comparison.
|
|
108
120
|
|
|
121
|
+
Foreground tool cards subscribe through the native read-only Gateway stream before the result arrives. Observation carries only provider/model/effort, role/level and exact call/lifetime identity; additional execution parameters remain outside this DTO. Actual effort that the header does not report is shown as unreported. Disconnects or terminal authorization failures invalidate active actual evidence; settled observations stay frozen.
|
|
122
|
+
|
|
123
|
+
Provider call IDs can repeat across requests. Reuse never blocks delegation: ambiguous live card correlation is removed, while each final result retains its own child/run-bound comparison. Watching a child session requires verified live lineage and grants no additional prompt or interrupt authority. Closing observation leaves native execution and delivery ownership unchanged.
|
|
124
|
+
|
|
125
|
+
## Gemini 4 calibration
|
|
126
|
+
|
|
127
|
+
Models with an explicit Gemini 4 identity share the `gemini-4` additive calibration. Supported names include `gemini-4`, numerical minor versions, `gemini-4.x`/`gemini-4.x-pro`, compact `gemini4`/`gemini4.1`, and their `@default`/`:latest` suffixes. A wildcard name does not claim a precise numeric version. Bare `4.x` and a Gemini provider name alone do not select this calibration.
|
|
128
|
+
|
|
129
|
+
The first recognized model identity controls calibration. Role, planner and category prompt assembly retain their existing layer order and load the additive once; Deepwork-off behavior is unchanged.
|
|
130
|
+
|
|
109
131
|
## Generic model parameters
|
|
110
132
|
|
|
111
133
|
All providers use the same native capabilities, `modelParameters`, role primary/fallback/level settings and explicit invocation controls. Omitted effort remains native-owned; DSMM introduces no brand default or advertised-effort fallback. `deepseekV4ProCalibration`, `deepseekV4ProDefaultReasoningEffort`, `deepseekFlashCalibration`, `deepseekFlashDefaultReasoningEffort` and the retired MaxReasoningPresets fields reject configuration input with `deprecated-field`. Operators edit invalid configuration explicitly; historical child evidence is not rewritten.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Native permissions
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
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. See [compatibility](compatibility.md) for the supported Host range and version-specific limits.
|
|
4
4
|
|
|
5
5
|
## Permission architecture and extension target
|
|
6
6
|
|
|
@@ -14,7 +14,7 @@ Operator-created long-lived command/subcommand/path grants and model-proposed au
|
|
|
14
14
|
|
|
15
15
|
Full access means actual native effective standing `danger-full-access`, not a model argument, a requested escalation or a configured `permissionControl.nativeCommands` target. With that standing authority, DSMM doesn't add an ask, downgrade the sandbox, demand a path permit or refuse an unknown operation because classification facts are missing. The only DSMM restriction is a deterministically matched existing explicit deny blacklist, expressed as a native pre-approval decision. There's no additional inferred high-risk list.
|
|
16
16
|
|
|
17
|
-
A captured read-only child
|
|
17
|
+
A captured read-only child is restricted by the admitted read-tool allowlist; mutation tools remain excluded even when a native plugin registers an additional tool. Existing explicit restrictions on `write`, `edit`, `bash` and `pwsh` also remain effective. Standing Full access must not bypass the role/tool ceiling. Missing ordinary DSMM policy or classification facts do not by themselves establish a read-only role.
|
|
18
18
|
|
|
19
19
|
Actual DSH manual approval is final for the same call and approved scope. Older DSMM rules, a changed permission revision or epoch, and DSMM internal gates don't veto it afterward. A pending native approval isn't canceled merely because a permission source changes.
|
|
20
20
|
|
|
@@ -88,10 +88,26 @@ See [running-overlay and approval boundaries](deferred-native-approval-risk.md).
|
|
|
88
88
|
|
|
89
89
|
Outside-read and web policies apply to their native tool surfaces. They don't provide complete filesystem/network isolation for arbitrary shell commands or replace operating-system checks on the final inode and socket target.
|
|
90
90
|
|
|
91
|
+
### Native multi-file patches on DSH 0.2.2-rc.1
|
|
92
|
+
|
|
93
|
+
The native `tool-fs` plugin exposes `apply_patch` only when its `applyPatch` option is explicitly enabled. The default is `false`. Set the native profile composition row, including when it uses the DSMM `permission-fs` façade:
|
|
94
|
+
|
|
95
|
+
```yaml
|
|
96
|
+
- id: tool-fs
|
|
97
|
+
config:
|
|
98
|
+
applyPatch: true
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
Use this option only on a Host that supplies it; DSH `0.2.1-rc.2` has no DSMM replacement patch tool. Loading the native tool does not widen a captured Agent's role or inherited tool ceiling. Native approval, deny/never and cancellation retain ownership.
|
|
102
|
+
|
|
103
|
+
DSMM's bundle enables native `fs-observation-policy`. Existing-file updates, deletes and moves require the native observation/version checks; a later profile override that disables this plugin removes that protection. Patch preflight reads do not grant the model an observation record.
|
|
104
|
+
|
|
105
|
+
The native engine preflights the patch before committing. A syntax, hunk or observation preflight failure leaves files unchanged. Commit is sequential and can partially succeed when a later operation fails or is canceled; a move can write its destination before failing to delete its source. Inspect the returned per-operation results before continuing. Sandbox enforcement remains the responsibility of the effective filesystem provider; neither enabling the tool nor successful preflight grants an outside write.
|
|
106
|
+
|
|
91
107
|
### Workspace and system-temp modifications
|
|
92
108
|
|
|
93
|
-
DSMM does not add a path-range approval layer to native write/edit or ordinary shell modifications, including targets in workspace and system-temp subdirectories. Explicit command/Git rules, role/tool restrictions and native or third-party approval decisions remain effective. A temp path does not automatically approve an independent request.
|
|
109
|
+
DSMM does not add a path-range approval layer to native write/edit/apply_patch or ordinary shell modifications, including targets in workspace and system-temp subdirectories. Temporary-directory access follows the selected DSH mode/backend's full default allowance, without a separate dedicated `temp/dsh` restriction. Explicit command/Git rules, role/tool restrictions and native or third-party approval decisions remain effective. A temp path does not automatically approve an independent request or authorize deleting unrelated temporary files.
|
|
94
110
|
|
|
95
111
|
Native write/edit retain their FS intents, observation/version checks, atomic modification and backend-provided sandbox escalation. Shell execution retains the native executor, standing sandbox and explicit call-scoped escalation. DSMM does not infer every command's effects from its cwd, raise the sandbox mode because a temp path appears in its arguments, or automatically replay a denied command.
|
|
96
112
|
|
|
97
|
-
Actual write access remains backend-dependent: the
|
|
113
|
+
Actual write access remains backend-dependent: the Windows shell sandbox uses a private temp directory, while native sandboxed file providers enforce their declared writable roots, including their default temporary roots. The unsandboxed `LocalFileSystem` implementation does not itself enforce those scopes. DSMM neither changes system-temp ACLs nor supplies a replacement sandbox or FS isolation layer. Absence of an extra DSMM approval does not prove that a backend permits a write or requires approval for every outside write.
|
package/docs/releasing.md
CHANGED
|
@@ -48,6 +48,6 @@ after either surface is published is a partial release, not authorization to mov
|
|
|
48
48
|
or recreate the tag, republish the npm version, or replace an asset. Report the
|
|
49
49
|
exact workflow result and use a separately authorized new version/tag.
|
|
50
50
|
|
|
51
|
-
Publication does not install DSMM. Installation requires
|
|
52
|
-
|
|
53
|
-
history and unrelated configuration.
|
|
51
|
+
Publication does not install DSMM. Installation requires a supported Host listed
|
|
52
|
+
in [compatibility](compatibility.md) and separate authorization, and must preserve
|
|
53
|
+
accounts, credentials, history and unrelated configuration.
|