@dsmm/dsmm 0.2.0 → 0.3.0
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/README.md +37 -67
- package/agent-presets/dsmm-builder/agent.cordis.yml +10 -2015
- package/agent-presets/dsmm-clarifier/agent.cordis.yml +24 -343
- package/agent-presets/dsmm-code-search/agent.cordis.yml +19 -6
- package/agent-presets/dsmm-coding/agent.cordis.yml +19 -438
- package/agent-presets/dsmm-complex/agent.cordis.yml +23 -1009
- package/agent-presets/dsmm-creative/agent.cordis.yml +25 -442
- package/agent-presets/dsmm-cross-cutting/agent.cordis.yml +29 -1013
- package/agent-presets/dsmm-deep/agent.cordis.yml +24 -1008
- package/agent-presets/dsmm-doc-search/agent.cordis.yml +19 -6
- package/agent-presets/dsmm-documenting/agent.cordis.yml +26 -439
- package/agent-presets/dsmm-frontend/agent.cordis.yml +21 -440
- package/agent-presets/dsmm-hard-reasoning/agent.cordis.yml +22 -441
- package/agent-presets/dsmm-media-reader/agent.cordis.yml +19 -6
- package/agent-presets/dsmm-normal-task/agent.cordis.yml +19 -438
- package/agent-presets/dsmm-oracle/agent.cordis.yml +25 -340
- package/agent-presets/dsmm-oracle-2nd/agent.cordis.yml +25 -340
- package/agent-presets/dsmm-orchestrator/agent.cordis.yml +29 -2025
- package/agent-presets/dsmm-plan-critic/agent.cordis.yml +24 -341
- package/agent-presets/dsmm-planner/agent.cordis.yml +14 -344
- package/agent-presets/dsmm-quick/agent.cordis.yml +19 -6
- package/agent-presets/dsmm-research/agent.cordis.yml +23 -8
- package/agent-presets/dsmm-reviewer/agent.cordis.yml +25 -340
- package/cordis.patch.yml +14 -0
- package/docs/agent-presets.md +36 -52
- package/docs/compatibility.md +47 -110
- package/docs/deferred-native-approval-risk.md +19 -0
- package/docs/design.md +2 -2
- package/docs/lsp.md +11 -21
- package/docs/migration-from-ocmm.md +2 -2
- package/docs/model-routing.md +84 -59
- package/docs/native-permissions.md +35 -0
- package/docs/profiles.md +40 -87
- package/docs/releasing.md +123 -2
- package/docs/roadmap.md +71 -17
- package/docs/settings-status.md +34 -169
- package/docs/skill-sync.md +52 -15
- package/lib/agent-registry.d.ts +36 -0
- package/lib/agent-registry.js +75 -0
- package/lib/child-admission-contract.d.ts +37 -0
- package/lib/child-admission-contract.js +2 -0
- package/lib/child-admission.d.ts +40 -0
- package/lib/child-admission.js +151 -0
- package/lib/child-capture.d.ts +85 -0
- package/lib/child-capture.js +205 -0
- package/lib/child-evidence.d.ts +17 -0
- package/lib/child-evidence.js +43 -0
- package/lib/client/ChildrenPanel.d.ts +43 -0
- package/lib/client/ChildrenPanel.js +82 -0
- package/lib/client/DeploymentPage.js +15 -8
- package/lib/client/EditableChoice.d.ts +17 -0
- package/lib/client/EditableChoice.js +49 -0
- package/lib/client/PermissionsPanel.d.ts +14 -0
- package/lib/client/PermissionsPanel.js +46 -0
- package/lib/client/ProfilesSection.js +30 -15
- package/lib/client/RoleAvailability.d.ts +7 -0
- package/lib/client/RoleAvailability.js +19 -0
- package/lib/client/SessionProfiles.js +27 -9
- package/lib/client/StructuredEditor.js +15 -7
- package/lib/client/children-controller.d.ts +98 -0
- package/lib/client/children-controller.js +296 -0
- package/lib/client/children-locales.d.ts +367 -0
- package/lib/client/children-locales.js +69 -0
- package/lib/client/controller.d.ts +6 -1
- package/lib/client/controller.js +14 -8
- package/lib/client/deployment-controller.js +1 -1
- package/lib/client/deployment-data.d.ts +2 -1
- package/lib/client/deployment-data.js +34 -5
- package/lib/client/deployment-locales.d.ts +4 -0
- package/lib/client/deployment-locales.js +11 -2
- package/lib/client/diagnostics.d.ts +14 -0
- package/lib/client/diagnostics.js +53 -0
- package/lib/client/index.d.ts +4 -0
- package/lib/client/index.js +96 -2
- package/lib/client/locales.d.ts +54 -0
- package/lib/client/locales.js +34 -16
- package/lib/client/permission-client.d.ts +16 -0
- package/lib/client/permission-client.js +38 -0
- package/lib/client/permission-controller.d.ts +62 -0
- package/lib/client/permission-controller.js +149 -0
- package/lib/client/permission-locales.d.ts +114 -0
- package/lib/client/permission-locales.js +75 -0
- package/lib/client/session-labels.js +4 -4
- package/lib/client/structured.js +19 -5
- package/lib/client/styles.d.ts +1 -1
- package/lib/client/styles.js +20 -0
- package/lib/client.js +5780 -1679
- package/lib/core-permission-authority.d.ts +18 -0
- package/lib/core-permission-authority.js +255 -0
- package/lib/core-permissions.d.ts +8 -0
- package/lib/core-permissions.js +33 -0
- package/lib/delivery-authority.d.ts +83 -0
- package/lib/delivery-authority.js +397 -0
- package/lib/deployment-config.d.ts +23 -0
- package/lib/deployment-config.js +61 -40
- package/lib/deployment-permission-rules.d.ts +55 -0
- package/lib/deployment-permission-rules.js +306 -0
- package/lib/dsh-types.d.ts +10 -4
- package/lib/guards.d.ts +1 -1
- package/lib/guards.js +29 -8
- package/lib/host-llm-startup.d.ts +41 -0
- package/lib/host-llm-startup.js +65 -0
- package/lib/host-llm.d.ts +92 -0
- package/lib/host-llm.js +325 -0
- package/lib/index.d.ts +15 -4
- package/lib/index.js +288 -48
- package/lib/live-pi-ai-owner.d.ts +18 -0
- package/lib/live-pi-ai-owner.js +144 -0
- package/lib/llm-runtime.d.ts +11 -0
- package/lib/llm-runtime.js +21 -0
- package/lib/managed-settings.d.ts +5 -0
- package/lib/managed-settings.js +14 -0
- package/lib/model-parameter-policy.d.ts +11 -0
- package/lib/model-parameter-policy.js +27 -0
- package/lib/model-routing.js +28 -17
- package/lib/modules.d.ts +13 -5
- package/lib/modules.js +17 -1
- package/lib/native-child-evidence.d.ts +40 -0
- package/lib/native-child-evidence.js +104 -0
- package/lib/native-pi-ai-wire.d.ts +37 -0
- package/lib/native-pi-ai-wire.js +261 -0
- package/lib/native-scope.js +1 -1
- package/lib/permission-bash.d.ts +6 -0
- package/lib/permission-bash.js +7 -0
- package/lib/permission-control.d.ts +73 -0
- package/lib/permission-control.js +205 -0
- package/lib/permission-controller.d.ts +68 -0
- package/lib/permission-controller.js +317 -0
- package/lib/permission-errors.d.ts +7 -0
- package/lib/permission-errors.js +21 -0
- package/lib/permission-fs-search.d.ts +5 -0
- package/lib/permission-fs-search.js +7 -0
- package/lib/permission-fs.d.ts +5 -0
- package/lib/permission-fs.js +7 -0
- package/lib/permission-native-access.d.ts +11 -0
- package/lib/permission-native-access.js +6 -0
- package/lib/permission-native-command.d.ts +10 -0
- package/lib/permission-native-command.js +93 -0
- package/lib/permission-native-rules.d.ts +75 -0
- package/lib/permission-native-rules.js +278 -0
- package/lib/permission-pwsh.d.ts +6 -0
- package/lib/permission-pwsh.js +7 -0
- package/lib/permission-remote.d.ts +26 -0
- package/lib/permission-remote.js +53 -0
- package/lib/permission-rpc.d.ts +29 -0
- package/lib/permission-rpc.js +152 -0
- package/lib/permission-rules.d.ts +115 -0
- package/lib/permission-rules.js +256 -0
- package/lib/permission-settings.d.ts +45 -0
- package/lib/permission-settings.js +48 -0
- package/lib/permission-shell.d.ts +38 -0
- package/lib/permission-shell.js +150 -0
- package/lib/permission-web.d.ts +5 -0
- package/lib/permission-web.js +7 -0
- package/lib/preset-registry.js +36 -25
- package/lib/profile-diagnostics.d.ts +45 -0
- package/lib/profile-diagnostics.js +148 -0
- package/lib/profile-locale.d.ts +3 -0
- package/lib/profile-locale.js +2 -0
- package/lib/profile-remote.d.ts +8 -0
- package/lib/profile-remote.js +163 -39
- package/lib/profile-rpc.d.ts +4 -3
- package/lib/profile-rpc.js +20 -16
- package/lib/profile-runtime.d.ts +40 -1
- package/lib/profile-runtime.js +368 -93
- package/lib/profile-store.d.ts +11 -0
- package/lib/profile-store.js +143 -11
- package/lib/profile-types.d.ts +70 -1
- package/lib/profile-types.js +1 -0
- package/lib/profiles.d.ts +16 -2
- package/lib/profiles.js +156 -79
- package/lib/prompt-content.js +1 -1
- package/lib/prompts.d.ts +37 -2
- package/lib/prompts.js +111 -9
- package/lib/recovery-policy.js +20 -7
- package/lib/role-control-remote.d.ts +38 -0
- package/lib/role-control-remote.js +211 -0
- package/lib/role-control-rpc.d.ts +51 -0
- package/lib/role-control-rpc.js +381 -0
- package/lib/role-control-types.d.ts +92 -0
- package/lib/role-control-types.js +8 -0
- package/lib/role-invocation.d.ts +47 -0
- package/lib/role-invocation.js +135 -0
- package/lib/role-llm-runtime.d.ts +17 -0
- package/lib/role-llm-runtime.js +62 -0
- package/lib/role-llm.d.ts +31 -0
- package/lib/role-llm.js +66 -0
- package/lib/role-policy.d.ts +46 -8
- package/lib/role-policy.js +421 -61
- package/lib/role-providers.d.ts +2 -2
- package/lib/role-providers.js +27 -72
- package/lib/role-routing.d.ts +11 -2
- package/lib/role-routing.js +42 -25
- package/lib/role-runs.d.ts +138 -0
- package/lib/role-runs.js +335 -0
- package/lib/role-subagents.d.ts +58 -3
- package/lib/role-subagents.js +179 -56
- package/lib/roles.d.ts +5 -6
- package/lib/roles.js +10 -39
- package/lib/route-json.d.ts +19 -0
- package/lib/route-json.js +129 -0
- package/lib/routing-policy.d.ts +2 -0
- package/lib/routing-policy.js +12 -2
- package/lib/runtime-integration.d.ts +81 -0
- package/lib/runtime-integration.js +702 -0
- package/lib/runtime-recovery.js +18 -8
- package/lib/session-persistence.d.ts +2 -1
- package/lib/session-persistence.js +1 -1
- package/lib/session-scope.js +4 -1
- package/lib/settings.d.ts +47 -13
- package/lib/settings.js +217 -82
- package/lib/skills.js +2 -2
- package/lib/status.d.ts +10 -1
- package/lib/status.js +11 -8
- package/lib/subagent-runtime.d.ts +57 -0
- package/lib/subagent-runtime.js +257 -0
- package/package.json +149 -89
- package/patches/subagent-runtime.yml +15 -0
- package/prompts/deepseek-flash.md +1 -1
- package/prompts/deepseek-v4-pro.md +2 -2
- package/prompts/deepwork.md +27 -18
- package/prompts/source/agents/clarifier.md +5 -3
- package/prompts/source/agents/orchestrator.md +18 -9
- package/prompts/source/agents/plan-critic.md +5 -1
- package/prompts/source/agents/planner.md +4 -2
- package/prompts/source/agents/reviewer.md +6 -0
- package/prompts/source/category/complex.md +4 -4
- package/prompts/source/category/creative.md +6 -4
- package/prompts/source/category/cross-cutting.md +10 -8
- package/prompts/source/category/deep.md +5 -3
- package/prompts/source/category/documenting.md +7 -1
- package/prompts/source/category/frontend.md +2 -2
- package/prompts/source/category/hard-reasoning.md +3 -3
- package/prompts/source/category/research.md +4 -2
- package/prompts/source/deepwork/claude-opus-5.md +2 -2
- package/prompts/source/deepwork/codex.md +1 -1
- package/prompts/source/deepwork/default.md +22 -15
- package/prompts/source/deepwork/gemini.md +23 -16
- package/prompts/source/deepwork/glm.md +21 -14
- package/prompts/source/deepwork/gpt.md +12 -6
- package/prompts/source/deepwork/planner.md +8 -5
- package/prompts/source/manifest.json +178 -63
- package/prompts/source/shared/dsh-host-contract.md +5 -3
- package/prompts/source/shared/locale.md +2 -2
- package/prompts/source/terminal/orchestrator.md +1 -1
- package/skills/ast-grep/SKILL.md +7 -4
- package/skills/brainstorming/SKILL.md +43 -22
- package/skills/coding-agent-sessions/SKILL.md +7 -4
- package/skills/coding-agent-sessions/scripts/agent_sessions/pi_family.py +46 -46
- package/skills/coding-agent-sessions/scripts/tests/test_pi_family_scanners.py +130 -130
- package/skills/debugging/SKILL.md +14 -9
- package/skills/debugging/references/methodology/00-setup.md +14 -62
- package/skills/debugging/references/methodology/02-investigate.md +4 -4
- package/skills/debugging/references/methodology/03-flaky-triage.md +3 -3
- package/skills/debugging/references/methodology/04-hard-reasoning-escalation.md +2 -14
- package/skills/debugging/references/methodology/06-fix.md +6 -6
- package/skills/debugging/references/methodology/08-qa.md +5 -5
- package/skills/debugging/references/methodology/09-cleanup.md +15 -153
- package/skills/debugging/references/methodology/partial-runtime-evidence.md +3 -16
- package/skills/debugging/references/runtimes/bundled-js-binary.md +1 -16
- package/skills/debugging/references/runtimes/native-binary.md +9 -54
- package/skills/debugging/references/runtimes/node.md +4 -15
- package/skills/debugging/references/runtimes/python.md +3 -15
- package/skills/debugging/references/runtimes/rust.md +2 -18
- package/skills/debugging/references/tools/dap.md +1 -1
- package/skills/debugging/references/tools/ghidra.md +4 -15
- package/skills/debugging/references/tools/playwright-cli.md +3 -15
- package/skills/debugging/references/tools/pwntools.md +4 -16
- package/skills/dispatching-parallel-agents/SKILL.md +18 -16
- package/skills/frontend/SKILL.md +7 -4
- package/skills/frontend/references/design/react-dev-tooling-skill.md +1 -1
- package/skills/git-master/SKILL.md +7 -4
- package/skills/init-deep/SKILL.md +7 -4
- package/skills/receiving-code-review/SKILL.md +17 -12
- package/skills/remove-ai-slops/SKILL.md +39 -38
- package/skills/requesting-code-review/SKILL.md +19 -17
- package/skills/requesting-code-review/code-reviewer.md +13 -1
- package/skills/subagent-driven-development/SKILL.md +29 -26
- package/skills/subagent-driven-development/implementer-prompt.md +29 -11
- package/skills/subagent-driven-development/spec-reviewer-prompt.md +6 -1
- package/skills/using-git-worktrees/SKILL.md +7 -4
- package/skills/writing-plans/SKILL.md +29 -24
- package/skills/writing-plans/plan-document-reviewer-prompt.md +10 -1
- package/scripts/repair-session-log.mjs +0 -476
- package/scripts/session-repair-native-verifier.mjs +0 -367
package/docs/agent-presets.md
CHANGED
|
@@ -1,78 +1,62 @@
|
|
|
1
|
-
# Deepwork
|
|
1
|
+
# Deepwork Agent presets and child control
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This guide describes built source behavior on the native DSH integration, not automatic availability in the published `@dsmm/dsmm@0.2.0` artifact. Native package composition and callable admission must both exist.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Roles and composition
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
The canonical inventory is 11 base roles and 11 categories. Base roles are orchestrator, builder, reviewer, oracle, oracle-2nd, doc-search, code-search, planner, clarifier, plan-critic and media-reader. Categories are frontend, creative, hard-reasoning, research, quick, coding, normal-task, complex, deep, documenting and cross-cutting. IDs are `dsmm-<source-name>`; `explore` is a code-search compatibility alias, not another role. Cross-cutting defaults disabled; other canonical items default enabled.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Only Orchestrator and Builder (`primary`) and Planner (`all`) are root-eligible. Planner root exposure additionally requires `presets.plannerRootEnabled: true`; it defaults false. This does not disable `roles.dsmm-planner` (default true), its native workflow provider, or its read-only delegation. Other roles are auxiliary-only (`subagent`), regardless of enablement. Native preset selection displays `DW …` labels under unchanged IDs. A role name is a responsibility, not a model choice or authority claim.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Native `agentPresets.register({id, plugins})` registers root compositions; DSH doesn't discover them by scanning exported directories. Generated `agent-presets/` mirrors are inspection/export resources. `presets.materialize` defaults off and never selects the Host default preset. Personas, read-only restrictions and host approvals remain when explicit Deepwork off hides common workflow and DSMM skills. Complete adapted source content and resources are described in [source synchronization](skill-sync.md).
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
| Utility leaves: quick, code-search, doc-search, research, media-reader | None; research remains strict leaf |
|
|
17
|
-
| Planner, clarifier, plan-critic, Reviewer/Oracle | Read-only code-search, doc-search, research, media-reader; never quick or workflow owners |
|
|
18
|
-
| coding, normal-task, frontend, creative, hard-reasoning, documenting | Bounded utility leaves only |
|
|
19
|
-
| deep, complex, cross-cutting | Utility leaves and coding/frontend/hard-reasoning/creative/documenting specialists; no workflow owners or local-coordinator peers |
|
|
20
|
-
| Bounded native child Builder | Bounded utility leaves only; never inherit stage ownership from persona or preset name |
|
|
13
|
+
The Planner root flag follows the existing deployment `presets` scope: Global config and the current DSH entry may set it; named/session overlays cannot. The complete `presets` group is startup-pinned. Saving desired changes neither migrates running Agents nor changes the standing registry; next-root settings report `restartRequired: ["presets"]` until an independent Host restart. After restart, disabled Planner roots are not registered for native picker, definition export or mounting, and forced native/API creation or root resume is refused before prompt/provider execution. Opting in still requires the enabled module, enabled role, usable native composition and current admission; it never grants writes. Original child captures do not contain `presets`: old captured workflow Planner children retain their original route, epoch and read-only ceiling without migration or current-parent permission reconstruction. Harness's native `/plan` and its plan-mode composition remain unchanged.
|
|
14
|
+
|
|
15
|
+
Standing Orchestrator/Builder compositions include native planning, compaction/pruning, question and todo rows. Planner includes planning, compaction/pruning and questions, but no todo writer. Coding/frontend/deep/complex/cross-cutting include compaction/pruning, questions and todo; other auxiliary roles add none of those rows. Native spawn can retain parent services, so this isn't a promise to strip every inherited row from short children. Effective filters and execution fences still decide access. Native `/plan` doesn't upgrade Planner permissions, and `/compact` remains a human native command.
|
|
21
16
|
|
|
22
|
-
|
|
17
|
+
## Delegation authority
|
|
23
18
|
|
|
24
|
-
|
|
19
|
+
| Admitted identity | Permitted logical children, intersected with native authority |
|
|
20
|
+
| --- | --- |
|
|
21
|
+
| Trusted root/stage-owner Orchestrator or Builder | Authorized workflow/execution roles; owns formal planning, criticism and acceptance |
|
|
22
|
+
| quick, code-search, doc-search, research, media-reader | None; research remains a leaf |
|
|
23
|
+
| Planner, clarifier, plan-critic, Reviewer/Oracle | Read-only code-search, doc-search, research, media-reader |
|
|
24
|
+
| coding, normal-task, frontend, creative, hard-reasoning, documenting | Bounded utility leaves |
|
|
25
|
+
| deep, complex, cross-cutting | Utility leaves and coding/frontend/hard-reasoning/creative/documenting specialists |
|
|
26
|
+
| Native child Builder | Bounded utility leaves, not stage ownership |
|
|
25
27
|
|
|
26
|
-
|
|
28
|
+
No child gains coordination authority from a preset label, persona or durable role string. The shared role policy checks exact live native ownership, original child capture, admitted epoch and provider/definition identity. Generic spawn can't bypass role admission in a DSMM-owned workflow. Unrelated ordinary off-mode native children retain Host behavior without acquiring DSMM delegation.
|
|
27
29
|
|
|
28
|
-
|
|
30
|
+
Read-only roles remain read-only independently of mode and optional guards. Planner returns complete Markdown for native review/handoff; an authorized coordinator persists it. There is no Planner writer. Native catalog visibility and role permission are separate: a schema or read-only catalog listing doesn't authorize invocation, and own-layer native schemas may remain visible even when mandatory execution fences deny them.
|
|
29
31
|
|
|
30
|
-
|
|
32
|
+
Descendants intersect parent allow-lists with requested restrictions and union deny-lists, using frozen captures. Existing native filters still execute. Reinstallation, direct aliases, continuable starts and cold resumes don't enlarge original authority. A named profile can narrow enabled roles but can't lift startup/deployment ceilings; required roles and conditional legacy review rules are covered in [profiles](profiles.md#inheritance-and-ceilings).
|
|
31
33
|
|
|
32
|
-
|
|
34
|
+
## Invocation and lifecycle
|
|
33
35
|
|
|
34
|
-
|
|
36
|
+
Actual per-role or parameterized tool names, target IDs and `level`/opt-in `route` parameters are documented in [model routing](model-routing.md#tool-topology-and-target-filters). Default level is normal; low/high/max require explicit target configuration. Root model selection stays native-owned. Children capture route, visible-output locale and authority at admission, not from a parent's later profile.
|
|
35
37
|
|
|
36
|
-
|
|
38
|
+
Foreground one-shot is the deployment default. A one-shot waits for useful native result/output and settles; its terminal child can't be revived as a continuable conversation. Structured result capture, cancellation, storage, capacity and teardown remain native-owned.
|
|
37
39
|
|
|
38
|
-
|
|
40
|
+
Explicit `enableRunInBackground` permits native jobs. With `backgroundMode:"one-shot"`, calls wait unless `run_in_background:true`. With opted-in `backgroundMode:"continuable"`, background continuation is the call default; `run_in_background:false` still waits for one-shot work. Continuable start requires a real native `prepareContinuable` method, not a capability flag alone. Omitted `maxDepth` delegates to the native limit; deployment depth/background settings aren't named-profile fields.
|
|
39
41
|
|
|
40
|
-
|
|
41
|
-
| --- | --- | --- | --- | --- |
|
|
42
|
-
| Orchestrator, Builder | Yes | Yes | Yes | Yes |
|
|
43
|
-
| Planner | Yes | Yes | Yes | No |
|
|
44
|
-
| coding, frontend, deep, complex, cross-cutting | No | Yes | Yes | Yes |
|
|
45
|
-
| Other auxiliary roles, including quick, searches, clarifier, media-reader, reviewers, Oracles and plan-critic | No additional group | No additional group | No additional row | No additional row |
|
|
42
|
+
A running foreground one-shot can be handed to background jobs using the exact published run, tool call, parent session and admission epoch. This transfers the same native run, not a restarted prompt or second child. The receipt reports `background`, `already-background`, `already-settled` or `cancelled`, with the same run ID and job ID where applicable. Starting, settled, cancelled, stale or unauthorized requests don't imply a new execution.
|
|
46
43
|
|
|
47
|
-
|
|
44
|
+
## Native child panel and report
|
|
48
45
|
|
|
49
|
-
|
|
46
|
+
The session-scoped Conversation child panel shows actual runs, direct children and a read-only descendant tree. IDs, activity, mode, admitted role/level, route comparison, original evidence and disabled reasons remain separate facts. Corrupt, unsupported or unavailable branches show diagnostics, not fabricated successful results. Descendant inspection doesn't grant control over non-direct children.
|
|
50
47
|
|
|
51
|
-
|
|
48
|
+
Route comparison uses the current version-3 `invocation-capture` and the child's latest `own-native-request-header`. Missing, invalid, old-version, or unobserved evidence remains unknown and refuses current resume; it is never inferred from the root route, current profile, role label, or compatibility projection.
|
|
52
49
|
|
|
53
|
-
|
|
50
|
+
Human messages target only an admitted direct continuable child with current parent authority and ready delivery fencing. Entries whose observed control projection is read-only remain inspection-only; this isn't the role's tool-level read-only policy. **Queue** accepts a distinct later turn; **Steer** targets the nearest step. Idle/cold continuation keeps the same durable child ID. Native attachment and model admission validate images separately.
|
|
54
51
|
|
|
55
|
-
|
|
52
|
+
An inbox receipt means **accepted**, not executed or completed. An interrupt acknowledgment isn't completion and doesn't claim queued work was removed. If transport leaves a send outcome unknown, the draft stays visible and automatic resend is disabled. Inspect the native child conversation before explicitly allowing a new message, which could duplicate an accepted one. Refresh and reconnection never imply automatic retry.
|
|
56
53
|
|
|
57
|
-
|
|
58
|
-
| --- | --- | --- |
|
|
59
|
-
| Source identity/delegation groups; research leaf; bounded child Builder; local specialists | `role-policy`, `role-subagents`, `role-providers`; native live registry ownership | `native-delegation`: mock LLM drives root → deep → coding → read and returns useful result; research/forbidden coordinators/forged Agent/generic spawn/same-layer execution bypass reject |
|
|
60
|
-
| Read-only roles independent of common/guard toggles | Native inherited restrictions plus role/definition/realm guard | Actual native FS planner writes refuse after plan exit; mutation and impersonated-read sentinels never execute. Five local mock ops are not whole native FS/job/web acceptance |
|
|
61
|
-
| Planner full Markdown and native review handoff | Native `exit_plan_mode`, authorized Builder native write | Actual Builder preset dispatches planner, native review receives complete Markdown, planner mutation refuses, Builder persists complete plan; blank preset rebind allows read-only utility and denies quick/write |
|
|
62
|
-
| One-shot foreground, caller filters, typed failure | Native spawn/result/dispose; alias preserves descriptor, filters and actual capability flags | Useful mock chain; original bounded Builder → quick deny-write reproduction now refuses before body dispatch, retains native read/result and narrower requested denies. Caller mutation does not erase admitted restriction; direct alias/continuable/cold durable resume share the same fence. Unknown filter pre-publication refusal, configured unsupported capability, failure/abort and no leaked children; structured output remains native API-owned, not a new DSMM capture |
|
|
63
|
-
| Background and continuable, message/interrupt, parent teardown | Native jobs controller and continuation manager | Actual native background useful output/foreign-owner deny/kill; per-parent capacity; default depth versus depth-3 legal deep→coding; same-child useful follow-up, natural release and same durable-ID cold resume. Parent owning-scope drain runs while exact parent is registered, preserves sibling trees |
|
|
64
|
-
| Explicit native picker/model/effort; omitted versus empty fallback | Model/role routing and exact native preflight | Native final headers/streams preserve explicit route/low effort, exact unsupported named max refuses without degrading stream; ordered/empty/inherited chains and native roots retain original contract |
|
|
65
|
-
| 429 versus generic retry owner; finite/no-output/epoch fencing | Existing recovery middleware and native loop | Native cancellation/stale frame/no-output/finite retry and cold-policy epoch tests retained; exact live registry checks fence late disposed evidence. No parallel retry controller/queue or synthesized parent task IDs |
|
|
66
|
-
| Desired/startup/admission/named overlay and CAS | C0 capture/store interfaces reused | Real busy-save old/future-child pinning, new root role/skill/recovery off/on, missing startup role restart-required, old idle overlay preserving deployment. Native volatile refs/CAS and readiness audits retained |
|
|
67
|
-
| Shell/Git/output/plan/question/todo/depth/interruption | Native pre/post/guard seams plus mandatory policy | Guard tests retain stronger deny/ask composition and canonical values. Protected plan edit is explicitly `unsupported-full-preview` fail-closed; zero reads/leak/body change regression GREEN. Actual complete writes, stale native CAS, ordinary match/replace-all preserved |
|
|
68
|
-
| Same-layer catalog versus execution | rc.2 public `restrict` only masks inherited registrations; schema providers accumulate | Public APIs cannot hide own-layer schemas. They may remain displayed; unadmitted/forbidden invocation is mandatory-denied, including re-registered safe-name definitions. No private view override or fake same-name filter |
|
|
69
|
-
| LSP startup/availability/read-only/cancel/exit | Optional host-anchor-resolved native MCP, installed server only | Actual installed MCP status/nine tool names/read-only refusal/cancel, desired off not remounting, owned process exit/tools withdrawn; sanitized unavailable diagnostics. **Protected Root cold-cache gate:** direct installed Root MCP without DSMM/SDK reproduces all three no-package-metadata groups. The final DSMM MCP operand is unchanged. Six independent direct-gopls cold controls return definition/reference results, including public/Root extended URIs, empty/per-item configuration replies and extended cwd. URI serialization alone is not the confirmed cause; the finer Root inner-launch/protocol failure remains unresolved. Single cold useful-symbol positive regression remains RED; no warmup, retry, pathname hack or Root modification |
|
|
70
|
-
| OpenCode-only hook events, Codex marketplace, private host auth migration | Not applicable to DSH native runtime | Not copied or emulated; no workflow/retry scheduler or private-file migration added |
|
|
54
|
+
## Explicit runtime and capture boundaries
|
|
71
55
|
|
|
72
|
-
|
|
56
|
+
Managed delivery uses the bundled explicit cold-start Agent registry/runtime/Main composition, not automatic replacement by the default bundle. Keep one provider in the same Host scope, preserve native spawn/fork/model/Gateway services, and retain explicit capacity/depth settings. Runtime binding, delivery readiness and restart requirement are observable separately. See [settings](settings-status.md#child-runtime-composition).
|
|
73
57
|
|
|
74
|
-
|
|
58
|
+
An old child without a valid version-3 capture is unsupported in 0.3.0 and remains untouched. The legacy-read adapter is not exported or composed; current parent settings cannot be treated as recovered history. See [compatibility](compatibility.md#retired-compatibility-surfaces).
|
|
75
59
|
|
|
76
|
-
|
|
60
|
+
Native Host commands, sessions, inbox, permissions, process/cwd/model selection and transports retain ownership. DSMM supplies role admission and bounded controls, not a replacement lifecycle scheduler, generic permission bypass or automatic retry system.
|
|
77
61
|
|
|
78
|
-
|
|
62
|
+
*Author's note: For a coordinator or DSH operator delegating work; inspect actual child admission and receipts before treating catalog visibility or accepted delivery as execution.*
|
package/docs/compatibility.md
CHANGED
|
@@ -1,118 +1,71 @@
|
|
|
1
|
-
# DSMM
|
|
1
|
+
# DSMM compatibility and upgrade boundaries
|
|
2
2
|
|
|
3
|
-
This document describes the
|
|
3
|
+
This document describes the **@dsmm/dsmm@0.3.0 source candidate**, not proof of a completed publication. It carries current 0.2.2 behavior onto exact DSH `0.2.1-rc.1` while retiring old DSH, capture/history-format, and Desktop/TUI migration compatibility. Evaluate the exact packed artifact; package checks, native/browser acceptance, registry verification, and terminal completion are distinct evidence.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Supported integration
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
The official `plugins.item`, `plugins.bundle.config` and `plugins.row.config` contracts mount the DSMM card/page and actual package/entry forms. Global control uses the fixed `dsmmConfig` service; the selected profile override uses the real Host `ConfigPageForm`, exact entry/namespace/base/user/revision checks and only sparse set/unset operations. The standalone item clearly marks a missing optional form unavailable. Both layers provide complete schema-bound feature editing, inheritance/default pins, independent saves, preserved invalid/dirty conflict state, sanitized feedback and keyboard focus. The existing named JSONC/model/session editor is independent, with legacy origin and immutable pins visible/read-only.
|
|
18
|
-
|
|
19
|
-
Fresh owned keyless Web Hosts proved actual native discovery and central-only versus profile-only writes, same-Home A/B inheritance/override/unset, unchanged refs/fiber, source/revision state, default pins, invalid-number retention, conflict refusal with dirty preservation, cold-off desired-on pending and user-independent restart to mounted-on. Busy-root native fixture proof covers role/skill/recovery changes: old parent/future child stay captured, new root adopts permitted changes, and saves do not cancel/reconcile/remount/respawn LSP. rc.2 emits native compatibility partial-dispose signals on profile patch; actual scope updates, disposal and request cancellation remain zero. Signals are not suppressed or represented as absent.
|
|
20
|
-
|
|
21
|
-
The installed SDK/runtime stays `0.2.0-rc.2` (official source `639ed015397290b3745d163aafe02ffee4aa3f84`). The separate latest official Desktop **source compatibility target** is `deepseek-ai/deepseek-harness` commit `5badb15009ae1756c3afe0ae0cef1faafc290ccc`, `dsh-v0.2.1-alpha.1`. Its shared PluginManager contracts retain `view: 'summary' | 'page'` and optional `form`; the Desktop carrier uses the shared Web Host, Host-issued cookie and `dsh-app://app` origin forwarding. This is source compatibility, not permission inferred from a loopback-looking URL. The actual invocation peer/operator, public bound host, Host writability and precommit owner/lifetime checks remain required.
|
|
22
|
-
|
|
23
|
-
No official Desktop executable is installed in this acceptance environment. No Electron activation is claimed and no Web screenshot substitutes for it. No SDK upgrade, package/audit tooling installation, account/sign-in, imported browser state or private profile migration occurred. Native host typography/tokens were verified at 375/768/1280 and native dark/light colors; Lighthouse/React audit packages are unavailable, so no audit scores are claimed. Publication, frozen Linux artifact acceptance and authorized Desktop execution remain later gates.
|
|
24
|
-
|
|
25
|
-
### C0 storage and lifecycle contract (source, not C/D completion)
|
|
26
|
-
|
|
27
|
-
The [native parity plan §3.3 and C0](../../docs/superpowers/plans/2026-10-07-dsmm-native-parity.md#33-settings--effective-state) governs the implemented foundation. Version remains 0.1.9. C's role graph/continuation and D's React Config pages/browser acceptance aren't completed by this checkpoint.
|
|
28
|
-
|
|
29
|
-
`src/dsh-home.ts` resolves public `resolveDshHome` through `createRequire` rooted at the declared `dsh-skill-filesystem` peer. Explicit trusted `profileContext.home` wins over `DSH_HOME`, then the official `~/.dsh` default. The fixed `<resolvedDshHome>/plugins/dsmm` directory is DSMM's convention, not an official mandated plugin layout. Missing peer capability fails explicitly; no global developer SDK path or profile-dir-derived home is substituted.
|
|
30
|
-
|
|
31
|
-
The global `config.json` is sparse JSON. Native active-entry/profile overrides use flat optional volatile transport via `DSMM_NATIVE_CONFIG_SCHEMA`; `DSMM_CONFIG_SCHEMA` remains the plain sparse public ABI. Full defaults and business validation are separate. Legacy raw flat input retains explicit values even when equal to defaults. Resolution is defaults → global → explicit native entry/profile → applied immutable named/session overlay. Plain objects merge recursively, arrays replace and unset removes only the current layer's key. Missing values inherit; unknown/prototype keys, non-JSON data and raw refs are rejected. Named overlays still reject roles/skills and startup-only fields.
|
|
32
|
-
|
|
33
|
-
Startup awaits complete global/profile validation before consumer mount and freezes its snapshot; late install doesn't reread desired. New ordinary roots await latest valid desired deployment and the applied immutable overlay. Old roots and their future children retain the full captured snapshot/epoch. An old idle root's explicit profile switch replaces only its runtime overlay on its old deployment baseline. `getSettings(agent)` remains authoritative, and no-argument `getSettings()` is the validated runtime named default, not desired. `modeName`, `promptOrder`, standing presets/materialization and LSP remain startup-scoped. Role policy intersects startup substrate and original permissions; absent startup capability is restart-required. There is no automatic queue, remount or cancellation on save.
|
|
34
|
-
|
|
35
|
-
`ProfileStore.fromCentral(home, profiledir, entryId)` shares central `profiles/` drafts/revisions while `.state/<sha256(canonical-profile-identity+actual-entry)>/` isolates default selections and session sidecars. All central writers share the documents lock. The old explicit `.../dsmm-profiles` public constructor is unchanged. If the current profile's exact old path exists, runtime compatibility is strictly read-only without locks/writes; full immutable pins and origin remain authoritative. Corruption refuses instead of using a central same-name draft. No reads create storage. Explicit non-destructive copy/import is fixture-verified only, not a production migration framework or completed private migration; auth and native sessionPersistence aren't moved.
|
|
36
|
-
|
|
37
|
-
The fixed `dsmmConfig` Remote `describe`/`save` backend accepts exact edits, not file/root/entry arguments. Both require the native invocation peer to equal `connection.operator`, public current `webServer.host === '127.0.0.1'` and `settings.writable === true`. Unknown/remote carriers are unavailable, client `isLoopback` isn't trusted, and reverse proxies/tunnels aren't automatically safe. Lifetime and connection are fenced again before commit. This is only for local writable control operators, not a model tool or anonymous endpoint.
|
|
38
|
-
|
|
39
|
-
Global writes use expected actual-byte SHA256 or absent CAS, cooperative locking, final revision recheck and temp-file rename. This doesn't promise a universal transaction against non-cooperating external editors. Global save never touches a native patch or invokes Loader patch/reload/dispose/cancel. Native profile save uses only volatile transport under native authorization/CAS. The layers have separate revisions and no cross-layer transaction. Invalid global edits block new admissions/writes, not old frozen Agents. See [settings/status](settings-status.md) and [profiles](profiles.md) for operational boundaries.
|
|
7
|
+
| Surface | Contract | Boundary |
|
|
8
|
+
| --- | --- | --- |
|
|
9
|
+
| Node.js | 22 or later | Required runtime |
|
|
10
|
+
| DSH SDK/component peers | exact `0.2.1-rc.1`; engine `>=0.2.1-rc.1 <0.3.0-0` | Trusted 0.3.0 integration target, not a future-version guarantee |
|
|
11
|
+
| Cordis / Schemastery | `~4.0.5` / `~3.18.5` | Declared package contracts |
|
|
12
|
+
| Native Web UI | Plugins item/bundle/row forms, Settings Profiles and Conversation controls | Actual Host identity and capabilities still required |
|
|
13
|
+
| Desktop/TUI migration | Not supplied by 0.3.0 | Old profiles and carriers are not read, rewritten, copied, or auto-migrated |
|
|
14
|
+
| CLI/headless | DSH `0.2.1-rc.1` native deployment configuration and delegation tools | Current data and permissions only; one-shot headless doesn't select Agent presets |
|
|
15
|
+
| Managed Agent/child runtime | Bundled explicit cold `./agent-registry` + `./subagent-runtime` composition | Restart required; no hot replacement or automatic runtime selection |
|
|
16
|
+
| DSMM-managed external LSP | Not enabled in this version; interfaces and original config retained | Automatic MCP mounting stays off even with `lsp.enabled:true`; DSMM settings UI hides LSP controls |
|
|
40
17
|
|
|
41
|
-
|
|
18
|
+
DSMM is the localized package/Core title; Deepwork names its optional module. Deepwork Profiles and `DW …` role labels don't rename package, Loader, command, role, provider or persistence IDs. Native metadata uses exported `locale/en.json` and `locale/zh.json`, not an invented manifest `displayName`.
|
|
42
19
|
|
|
43
|
-
The
|
|
20
|
+
The LSP restriction doesn't affect DSH's own LSP or independently configured MCP. The retained historical manual patch isn't a supported DSMM activation entry. Existing release checks still independently validate the retained LSP interface; they don't establish automatic integration availability. See [LSP boundary](lsp.md).
|
|
44
21
|
|
|
45
|
-
|
|
22
|
+
## Stable configuration and admission
|
|
46
23
|
|
|
47
|
-
|
|
24
|
+
Core settings remain available without a session and with Deepwork cold-off. Native Global and current-profile saves are independent: Global writes only central `config.json`; the exact native profile form writes only its own patch. Invalid or dirty input remains visible after refusal. There is no Save-all, second configuration store or implicit restart.
|
|
48
25
|
|
|
49
|
-
|
|
26
|
+
The sparse resolution order is defaults → global deployment → explicit native entry/profile → admitted immutable named overlay. Explicit same-default values remain overrides, objects merge, arrays replace, and unset removes only its own layer's key. Runtime profiles may narrow `roles` and select routing, topology and visible-output locale, but can't grant deployment-only route-override permission, mount services, change accounts or replace persistence. Required-role rules don't create missing startup capability. See [profiles](profiles.md) and [settings/status](settings-status.md).
|
|
50
27
|
|
|
51
|
-
|
|
28
|
+
Draft, saved revision, future-default pin and current admission are separate states. Save activates neither scope. Future-default changes leave existing Agents, including blank ones, unchanged. Current-session Apply requires an exact idle ordinary root, selection CAS and admission epoch; it commits only that root's immutable overlay on its existing deployment baseline. Current-format children retain their original captures, and later children inherit the new parent admission. Busy or stale targets aren't queued.
|
|
52
29
|
|
|
53
|
-
|
|
30
|
+
Global CAS uses actual-byte revision, cooperative locking, final recheck and atomic replacement. Native profile saves have separate native authorization/CAS, not a cross-layer transaction. These safeguards don't promise a universal transaction against non-cooperating external editors. Configuration RPC requires native invocation peer equal to the operator, public loopback bind, writable Host and owner/lifetime rechecks. Remote or unknown carriers refuse; a client `isLoopback` claim, tunnel or loopback-looking URL isn't authority.
|
|
54
31
|
|
|
55
|
-
|
|
32
|
+
Cold resume creates a new admission using valid current deployment data and the exact committed sidecar, or the scoped future default when no sidecar exists. Corrupt, unavailable, or old-format sidecars and profile libraries refuse without fallback. Clear/compact doesn't transfer choices through inferred lineage. Nothing is automatically copied, rewritten, repaired, or migrated.
|
|
56
33
|
|
|
57
|
-
|
|
34
|
+
## Models, roles and native controls
|
|
58
35
|
|
|
59
|
-
|
|
36
|
+
Ordinary roots preserve native provider/model/exact effort across activation, Save, profile Apply, later turns and cold resume. **Use profile model** is a separate explicit native action using the current admitted immutable revision. A newer manual selection wins. Locale is captured visible-output preference, subordinate to an explicit user language request, not a change to internal reasoning or technical identifiers.
|
|
60
37
|
|
|
61
|
-
|
|
38
|
+
Eligible child targets use normal by default; low/high/max require explicit exact-target levels. Unsupported effort refuses without downgrade. Per-role and parameterized topologies preserve canonical target filters, definition/provider identity, role matrix, depth and permission checks at execution. Disabled roles remain diagnosable and routing-editable without becoming callable. Orchestrator isn't a child target. `modelSelectionSettings:false` remains unchanged. See [model routing](model-routing.md).
|
|
62
39
|
|
|
63
|
-
|
|
40
|
+
Native child capture version 3 records delegation mode with the original role, invocation route, locale and authority. Descendants intersect parent allow-lists and accumulate deny-lists. A later parent profile doesn't rewrite child history, lift startup ceilings or recover missing or old-format capture. Current exact-parent authority is checked again for delivery, so a retained current capture isn't permission to bypass a newer cutoff. Route comparison uses initial invocation capture and that child's own request header; absent evidence stays unknown.
|
|
64
41
|
|
|
65
|
-
|
|
42
|
+
With background explicitly enabled and native jobs available, a published running foreground one-shot can transfer to background as the **same native run**. This doesn't replay a prompt, create a second child or revive settled work. Run receipts distinguish background, already-background, already-settled and cancelled outcomes.
|
|
66
43
|
|
|
67
|
-
|
|
44
|
+
Only an admitted direct continuable child with ready delivery fencing can accept Queue/Steer or interrupt. Descendant inspection is read-only and doesn't grant non-direct control. Idle/cold continuation keeps the durable child ID. Accepted inbox delivery isn't completion; interrupt acknowledgment isn't completion or proof queued work was removed. Unknown send outcomes retain the draft and disable automatic resend, including after refresh/reconnection. See [Agent presets and child control](agent-presets.md).
|
|
68
45
|
|
|
69
|
-
|
|
70
|
-
| --- | --- | --- |
|
|
71
|
-
| Node.js | `>=22` | required; final artifact check pending |
|
|
72
|
-
| DSH | `0.2.0-rc.2` | pinned authority; final native acceptance required |
|
|
73
|
-
| Cordis | `~4.0.4` | supported by contract |
|
|
74
|
-
| DSH component peers | `0.2.0-rc.2` | supported by contract |
|
|
75
|
-
| Linux container | `Node 22 Bookworm` | independent frozen-artifact gate required |
|
|
76
|
-
| Windows Desktop | official `0.2.1-alpha.1` fixed source target | shared contract compatibility only; executable absent, Electron unverified |
|
|
77
|
-
| macOS | `Node >=22` | supported by contract |
|
|
78
|
-
| Native Settings | additive Deepwork Profiles client and authenticated RPC | compiled UI/RPC/storage and actual Desktop are separate proofs |
|
|
79
|
-
| Headless | deployment config and native role tools | no Agent preset selection in the one-shot runner |
|
|
80
|
-
| TUI | `DSH 0.2.0-rc.2` | existing official 0.1.6 CLI/TUI installation verified; new 0.1.9 menu proof is Web/Desktop only |
|
|
81
|
-
| LSP/MCP | `external ocmm-lsp mcp` | optional |
|
|
82
|
-
| Runtime recovery | `process-local` | optional |
|
|
83
|
-
| Per-role model/effort/fallback policy | native request, subagent and descriptor seams | opt-in; exact configured capability required |
|
|
84
|
-
| C0 deployment layers | sparse central global base and explicit native entry/profile transport | backend storage/capture plus D real native Web form/CAS proof |
|
|
85
|
-
| Native Plugins | rc.2 item/bundle/row public slots and Host forms | real keyless Web acceptance; independent Global/profile saves and explicit restart |
|
|
86
|
-
| Runtime profiles | central shared drafts/revisions, scoped default/sidecars; strict read-only legacy origin | new-root defaults; explicit idle overlay epochs; origin-pinned cold resume |
|
|
87
|
-
| Durable DSMM metadata | deployment-only `sessionPersistence` on main DSMM entry | explicit startup integration; frozen-artifact/production acceptance pending |
|
|
88
|
-
| DeepSeek V4 Pro calibration | `deepseek-official/deepseek-v4-pro` | optional |
|
|
89
|
-
| DeepSeek V41 Flash calibration | `native DeepSeek providers/deepseek-flash` | optional |
|
|
46
|
+
`startup-lock` is the default role strategy; bounded `rate-limit-fallback` is explicit. Every retry or switch requires correlated positive no-output evidence. Partial text, reasoning or tool fragments forbid replay, even on the same route. Process-local retry state isn't revived from old headers and generic failures don't authorize hopping. Native lifecycle, model authentication and cancellation stay Host-owned. See [runtime recovery](runtime-recovery.md).
|
|
90
47
|
|
|
91
|
-
##
|
|
48
|
+
## Explicit managed runtime composition
|
|
92
49
|
|
|
93
|
-
|
|
50
|
+
The 0.3.0 `cordis.patch.yml` explicitly disables stock ID `agent` / `@deepseek-ai/dsh-agent` and stock ID `subagent` / `@deepseek-ai/dsh-subagent`, then inserts exactly one DSMM Agent registry, one DSMM subagent runtime, and Main. This is a cold-start composition and requires an independent Host restart.
|
|
94
51
|
|
|
95
|
-
|
|
52
|
+
`@dsmm/dsmm/agent-registry` must own the actual `agents` service as `DsmmAgentRegistry`; `@dsmm/dsmm/subagent-runtime` must own `subagents` as `DsmmSubagentRuntime`. Native `name` values assert target identity rather than renaming rows. Check settled Loader state and both live service owners, preserve spawn/fork/model/Gateway services and explicit capacity/depth policy, and keep one owner of each service. Missing or duplicate owners refuse; a running stock service is never hot-shadowed.
|
|
96
53
|
|
|
97
|
-
The
|
|
54
|
+
The public `./agent-registry` export maps to `lib/agent-registry.js`; `./subagent-runtime` maps to `lib/runtime-integration.js`, whose default remains the explicit Host-owned startup plugin. These are two of sixteen public 0.3.0 exports. A resolved module or configured row is not proof of Host ownership. Runtime projection separates `binding: stock | dsmm | unavailable`, `deliveryFenceReady` and `restartRequired`. Missing native history, providers or admission fencing cannot be replaced by an availability flag.
|
|
98
55
|
|
|
99
|
-
|
|
56
|
+
## Retired compatibility surfaces
|
|
100
57
|
|
|
101
|
-
|
|
58
|
+
0.3.0 does not export `./legacy-read-host` and does not package session-repair or cold-profile migration scripts. Its current capture reader accepts only version 3. Old captures, old profile libraries, and unmarked historical logs are left untouched and refuse current resume or mutation. A role label, current parent, same-name central document, or serializable assertion cannot reconstruct missing historical authority.
|
|
102
59
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
Trusted live, owned, zero-prefix native one-shot children preserve supported explicit provider/model/effort overrides through final request headers. The role primary supplies alias defaults; it is not an unconditional child override. Ordinary roots preserve their native initial and explicit provider/model/exact effort rather than profile-primary resolution, including later turns, profile reapply and cold resume. Delegated-child policies retain their separate ownership and request-preflight restrictions. `modelSelectionSettings:false` and native tool/permission/depth/cancellation limits are unchanged; this adds no model-visible model-selection authority. See [model routing](model-routing.md).
|
|
60
|
+
Historical package/tag validators retain their original byte and receipt rules; this release does not reinterpret them or adopt their artifacts. Any separately authorized forensic recovery must use a tool and immutable version chosen for that exact private target, outside the 0.3.0 package and release proof.
|
|
106
61
|
|
|
107
62
|
## Session persistence compatibility
|
|
108
63
|
|
|
109
|
-
DSH 0.2.
|
|
110
|
-
|
|
111
|
-
The companion validates and clones only `deepwork/mode` and `dsmm/role-policy` records with their exact supported envelope/payload shapes, adding `ignorable: true` for persistence. Other event types are unchanged; malformed DSMM metadata is rejected rather than broadly declared safe. DSMM-aware readers retain the metadata while stock readers can skip these two marked records. The main metadata guard refuses a DSMM custom append when an installed durable persistence provider is incompatible; an ephemeral Host with no persistence is allowed.
|
|
64
|
+
DSH `0.2.1-rc.1`'s stock session compatibility boundary retains the validated DSMM behavior: the public companion delegates to native JSONL in a separate Context and marks only validated `deepwork/mode` and `dsmm/role-policy` records. DSMM-aware readers retain them; stock readers can skip the marked records. Other event types and malformed metadata aren't broadly declared safe.
|
|
112
65
|
|
|
113
|
-
|
|
66
|
+
Use the **main** `@dsmm/dsmm` entry's deployment-only `sessionPersistence`. The `./session-persistence` export is a library building block, not a second Loader entry. Set the unchanged effective absolute root and effective `zstd` or `none` compression, disable the exact existing native provider at startup, and wait for the companion to become ready. No root is guessed, migrated or hot-replaced. Incompatible durable providers block custom DSMM appends; ephemeral Hosts without persistence remain allowed.
|
|
114
67
|
|
|
115
|
-
For
|
|
68
|
+
For a composition using the stock row below, this is a **partial template**, not a ready-to-copy replacement:
|
|
116
69
|
|
|
117
70
|
```yaml
|
|
118
71
|
- id: session-persistence-jsonl
|
|
@@ -121,40 +74,24 @@ For the proven stock base Web/headless/Desktop bundle row, the exact target is I
|
|
|
121
74
|
- id: dsmm
|
|
122
75
|
name: '@dsmm/dsmm'
|
|
123
76
|
config:
|
|
124
|
-
# Retain
|
|
77
|
+
# Retain every existing DSMM config value here.
|
|
125
78
|
sessionPersistence:
|
|
126
79
|
root: '<unchanged-effective-absolute-root>'
|
|
127
80
|
compression: '<unchanged-effective-zstd-or-none>'
|
|
128
81
|
```
|
|
129
82
|
|
|
130
|
-
Native
|
|
131
|
-
|
|
132
|
-
This startup contract is not a completed final Docker or global-release result. The frozen-artifact gate must still prove the binding, marked durable writes and native/stock read behavior before authorized rollout. Do not weaken the known-vocabulary guard or treat an export resolving as proof that the service owns durable persistence.
|
|
133
|
-
|
|
134
|
-
This prevents future unsafe DSMM writes but does not repair existing unmarked logs. Any repair needs explicit authorization, a targeted recoverable backup, validation and metadata-only changes. There is no automatic log rewriting, history deletion or general unknown-event bypass. Preserve existing logs and report a failed stock-reader restore instead of silently resetting the session.
|
|
135
|
-
|
|
136
|
-
## Upgrade limits before global rollout
|
|
137
|
-
|
|
138
|
-
DSMM runtime profiles are independent central JSONC drafts, not additional DSH deployment profiles. An existing current-profile legacy library retains its strict read-only origin and pins. Named overlays can't change roles/skills, preset composition, LSP, provider/account/install or `sessionPersistence`. Deployment roles/skills policy can be captured for new ordinary roots only within startup substrate; standing registrations and startup-only consumers require restart. Saving a draft never activates it or rewrites deployment configuration. Apply pins immutable bytes and updates only the scoped selection pointer. See [profiles](profiles.md).
|
|
139
|
-
|
|
140
|
-
Every existing live Agent, **including a blank Agent**, retains its admitted settings when desired deployment is saved or the scoped named default is applied/reset. Explicit current-session selection is separate: native idle maintenance and CAS/epoch checks commit only that ordinary root's sidecar before publishing its immutable admission on the old deployment baseline. Existing children keep their old epoch; later genuinely owned children inherit the new one. Cold resume uses the origin-pinned revision/baseline with current valid desired deployment in a new admission, not the old process's memory snapshot. Sessions without a sidecar keep scoped-global-current behavior. Corrupt/unavailable sidecars never silently fall back; native clear/compact doesn't transfer choices by inferred lineage.
|
|
141
|
-
|
|
142
|
-
Old profile documents remain loadable, but omitted strategy now means safer `startup-lock`: a legacy generic chain no longer causes later generic automatic hopping. `runtimeRecovery.enabled` remains parse-compatible and controls legacy continuation concerns, not the two role strategies. Explicitly opt in per role to bounded `rate-limit-fallback` where desired. Every DSMM retry, including same-route retry, requires correlated native no-output evidence; partial text, reasoning or tool fragments refuse terminally without invoking a competing always-retry owner. See [runtime recovery](runtime-recovery.md).
|
|
143
|
-
|
|
144
|
-
Older sessions directly selected into now-auxiliary roles can fail native cold resume because their root preset ID is no longer registered. This is a known native compatibility limitation, not permission to silently replace the persona, reset a session, or erase its history. Disclose it before rollout and preserve historical data; if restoring such sessions is required, stop and obtain direction rather than substituting a root. Package rollback does not authorize history or credential changes.
|
|
145
|
-
|
|
146
|
-
Global/system Desktop migration is the **third phase**: independent frozen-artifact Docker acceptance first, verified immutable npm/GitHub publication second, and only then authorized Desktop package/configuration changes. Preserve unrelated deployment rows, account/provider catalog, role policies (including disabled Builder), active mode, and UI preferences. Use the installation-owned carrier with the app fully quit; neither standalone CLI nor a renamed/copied Desktop profile is a supported substitute.
|
|
83
|
+
Native patch `config` replaces the whole object. Preserve all existing settings and unrelated rows; another provider ID or a provider-free composition requires its own exact check. Keep one main DSMM Loader source to avoid conflicting native client registrations. Binding, marked durable writes and native/stock read behavior need artifact verification; an export existing isn't proof of persistence ownership.
|
|
147
84
|
|
|
148
|
-
|
|
85
|
+
This prevents unsafe future writes but does not repair existing unmarked logs. 0.3.0 supplies no repair entrypoint. Don't bypass unknown-event guards, delete history, or silently reset a failed restore.
|
|
149
86
|
|
|
150
|
-
|
|
87
|
+
## Installing or upgrading a real Host
|
|
151
88
|
|
|
152
|
-
|
|
89
|
+
Use a checked exact 0.3.0 candidate artifact for evaluation, following the [isolated example](../README.md#use-a-local-artifact). Registry presence is not terminal completion. Publication follows separate [release controls](releasing.md); no automatic Desktop installation is claimed here.
|
|
153
90
|
|
|
154
|
-
|
|
91
|
+
Current CLI/headless evaluation must use a DSH `0.2.1-rc.1` installation-owned carrier, preserve unrelated Loader rows, provider/account catalogs, role policies and UI preferences, and follow explicit startup requirements. 0.3.0 does not supply an old Desktop/TUI migration path, and a renamed or copied profile is not supported activation. Confirm native inventory and actual UI only with authorization; don't use anonymous RPC as a shortcut.
|
|
155
92
|
|
|
156
|
-
|
|
93
|
+
Old `deepseekV4ProMaxReasoningPresets` and `deepseekFlashMaxReasoningPresets` fields fail with `deprecated-field`. Don't silently rewrite them; explicit levels need a deliberate configuration edit. Older sessions rooted directly in now-auxiliary roles can fail native cold resume because the root preset isn't registered. Preserve their history and obtain direction rather than substituting another persona. Rollback doesn't authorize credential or history changes.
|
|
157
94
|
|
|
158
|
-
|
|
95
|
+
No package operation here authorizes changing real Desktop/TUI configuration, accounts, credentials or history. Do not copy credentials for keyless artifact checks. Platform, packed-runtime, Web and Electron evidence aren't interchangeable; local source capability isn't a release-completion or installed-host certificate.
|
|
159
96
|
|
|
160
|
-
|
|
97
|
+
*Author's note: For a DSH operator upgrading an existing installation; check the exact artifact and Host composition, then authorize only the intended carrier and data-preserving changes.*
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# 原生审批期间切换准入配置:已接受的暂缓风险
|
|
2
|
+
|
|
3
|
+
**状态:风险已接受,暂缓修复;不代表功能已修复。** 当前验证目标为 DSH `0.2.1-rc.1`,仅豁免下述场景的阶段性验收,不豁免其他测试失败或发布检查。
|
|
4
|
+
|
|
5
|
+
## 触发条件与影响
|
|
6
|
+
|
|
7
|
+
DSMM one-shot 委托等待原生审批期间,父 Agent 成功切换 profile 并发布新的 admission epoch;随后用户点击 Allow,DSMM 仍可能因准入代次不一致返回 `UNAUTHORIZED`。
|
|
8
|
+
|
|
9
|
+
实际 SDK 集成测试已复现:Agent、owner、工具定义和 provider 注册保持不变,批准发生一次,但子任务模型 HTTP 请求尚未发出。该问题是条件触发的可用性及审批语义缺陷,并非所有审批必然失败。暂缓不改变运行时权限,不引入跨调用授权,也不放宽取消、归属或请求撤销保护。
|
|
10
|
+
|
|
11
|
+
临时使用时避免在审批等待期间切换父 Agent 的 profile。需要切换时,先取消待审批调用,再按当前配置重新发起委托;不要无条件重跑整个父任务。
|
|
12
|
+
|
|
13
|
+
## 保留的验证与修复条件
|
|
14
|
+
|
|
15
|
+
完整回归保留在 `test/native-core-review-regressions.test.mjs`,默认以明确原因跳过;设置 `DSMM_TEST_DEFERRED_APPROVAL=1` 可重新执行。测试跳过不能计作该场景通过。
|
|
16
|
+
|
|
17
|
+
修复须在当前原生审批与 Activation 接口下建立准确的单次调用关联,并经实际运行验证;不得将一次审批扩展为其他输入或后续调用的授权。
|
|
18
|
+
|
|
19
|
+
解除暂缓须验证:原调用在准入更新后获准并完成;采用原始调用对应的配置;后台延迟执行仍能准确关联;其他输入和后续调用不能继承豁免;取消、owner/realm、工具及 provider 身份、既有请求撤销和历史子 Agent 边界均保持有效。升级、安装、修改外部 SDK 或发布仍需单独授权。
|
package/docs/design.md
CHANGED
|
@@ -47,7 +47,7 @@ uninstalled/unverified here. Web screenshots are not Desktop acceptance.
|
|
|
47
47
|
|
|
48
48
|
Build `dsmm` as a dsh-native subtree project that brings ocmm's deepwork workflow, role prompts, skills, model calibration, and safety conventions to DeepSeek Harness without globally enabling them for every session.
|
|
49
49
|
|
|
50
|
-
The first deliverable is an MVP dsh bundle that installs into a profile, registers a `deepwork` mode through dsmm's own Host plugin, and makes the mode's behavior configurable. Later versions add full role/category coverage, guard hooks,
|
|
50
|
+
The first deliverable is an MVP dsh bundle that installs into a profile, registers a `deepwork` mode through dsmm's own Host plugin, and makes the mode's behavior configurable. Later versions add full role/category coverage, guard hooks, model routing, and runtime recovery. DSMM-managed external LSP isn't enabled in this version: the implementation, interfaces and original configuration remain, automatic MCP mounting stays off even with `lsp.enabled:true`, and DSMM's settings UI hides LSP controls. This doesn't affect DSH's own LSP or independently configured MCP. The retained manual patch isn't a supported DSMM activation entry; no LSP delivery is scheduled here.
|
|
51
51
|
|
|
52
52
|
## Non-goals
|
|
53
53
|
|
|
@@ -245,7 +245,7 @@ Every dsmm feature should have a clear control surface:
|
|
|
245
245
|
| workflow skills | on for MVP set | settings |
|
|
246
246
|
| role presets | on when dsh agent presets available | composition config |
|
|
247
247
|
| safety guards | staged, mostly off until implemented | settings |
|
|
248
|
-
|
|
|
248
|
+
| DSMM-managed external LSP | always off in this version | original configuration retained; settings UI hidden; no activation entry |
|
|
249
249
|
|
|
250
250
|
## Docker debugging strategy
|
|
251
251
|
|