@dsmm/dsmm 0.1.1 → 0.1.4
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 +24 -13
- package/agent-presets/dsmm-builder/agent.cordis.yml +14 -12
- package/agent-presets/dsmm-builder/preset.yml +1 -1
- package/agent-presets/dsmm-clarifier/agent.cordis.yml +4 -2
- package/agent-presets/dsmm-clarifier/preset.yml +1 -1
- package/agent-presets/dsmm-code-search/agent.cordis.yml +4 -2
- package/agent-presets/dsmm-code-search/preset.yml +1 -1
- package/agent-presets/dsmm-creative/agent.cordis.yml +3 -1
- package/agent-presets/dsmm-creative/preset.yml +1 -1
- package/agent-presets/dsmm-doc-search/agent.cordis.yml +4 -2
- package/agent-presets/dsmm-doc-search/preset.yml +1 -1
- package/agent-presets/dsmm-media-reader/agent.cordis.yml +4 -2
- package/agent-presets/dsmm-media-reader/preset.yml +1 -1
- package/agent-presets/dsmm-oracle/agent.cordis.yml +3 -1
- package/agent-presets/dsmm-oracle/preset.yml +1 -1
- package/agent-presets/dsmm-oracle-2nd/agent.cordis.yml +3 -1
- package/agent-presets/dsmm-oracle-2nd/preset.yml +1 -1
- package/agent-presets/dsmm-orchestrator/agent.cordis.yml +15 -13
- package/agent-presets/dsmm-orchestrator/preset.yml +2 -2
- package/agent-presets/dsmm-plan-critic/agent.cordis.yml +4 -2
- package/agent-presets/dsmm-plan-critic/preset.yml +1 -1
- package/agent-presets/dsmm-planner/agent.cordis.yml +4 -2
- package/agent-presets/dsmm-planner/preset.yml +1 -1
- package/agent-presets/dsmm-reviewer/agent.cordis.yml +4 -2
- package/agent-presets/dsmm-reviewer/preset.yml +1 -1
- package/docs/agent-presets.md +15 -5
- package/docs/compatibility.md +64 -11
- package/docs/model-routing.md +10 -6
- package/docs/profiles.md +83 -0
- package/docs/releasing.md +58 -19
- package/docs/settings-status.md +13 -5
- package/lib/client/ProfilesSection.d.ts +11 -0
- package/lib/client/ProfilesSection.js +62 -0
- package/lib/client/controller.d.ts +77 -0
- package/lib/client/controller.js +198 -0
- package/lib/client/index.d.ts +11 -0
- package/lib/client/index.js +34 -0
- package/lib/client/locales.d.ts +56 -0
- package/lib/client/locales.js +48 -0
- package/lib/client/styles.d.ts +3 -0
- package/lib/client/styles.js +25 -0
- package/lib/client.js +1930 -0
- package/lib/commands.d.ts +3 -3
- package/lib/commands.js +4 -4
- package/lib/dsh-types.d.ts +4 -0
- package/lib/guards.d.ts +2 -2
- package/lib/guards.js +3 -2
- package/lib/index.d.ts +12 -4
- package/lib/index.js +72 -20
- package/lib/mode.d.ts +2 -2
- package/lib/mode.js +1 -1
- package/lib/model-routing.d.ts +2 -2
- package/lib/model-routing.js +17 -2
- package/lib/preset-registry.js +5 -3
- package/lib/profile-remote.d.ts +31 -0
- package/lib/profile-remote.js +106 -0
- package/lib/profile-rpc.d.ts +27 -0
- package/lib/profile-rpc.js +90 -0
- package/lib/profile-runtime.d.ts +44 -0
- package/lib/profile-runtime.js +159 -0
- package/lib/profile-store.d.ts +42 -0
- package/lib/profile-store.js +478 -0
- package/lib/profile-types.d.ts +40 -0
- package/lib/profile-types.js +2 -0
- package/lib/profiles.d.ts +26 -0
- package/lib/profiles.js +237 -0
- package/lib/prompts.d.ts +2 -2
- package/lib/prompts.js +4 -4
- package/lib/role-providers.d.ts +2 -2
- package/lib/role-providers.js +39 -6
- package/lib/role-routing.d.ts +2 -2
- package/lib/role-routing.js +4 -1
- package/lib/role-subagents.d.ts +2 -2
- package/lib/role-subagents.js +6 -4
- package/lib/roles.d.ts +4 -0
- package/lib/roles.js +43 -27
- package/lib/runtime-recovery.d.ts +2 -2
- package/lib/runtime-recovery.js +3 -3
- package/lib/session-metadata.d.ts +13 -0
- package/lib/session-metadata.js +34 -0
- package/lib/session-persistence.d.ts +35 -0
- package/lib/session-persistence.js +304 -0
- package/lib/settings.d.ts +8 -1
- package/lib/settings.js +4 -0
- package/lib/state.d.ts +1 -0
- package/lib/state.js +4 -0
- package/lib/status.js +6 -5
- package/locale/en.json +6 -0
- package/locale/zh.json +6 -0
- package/package.json +62 -15
- package/patches/agent-presets-root.example.cordis.patch.yml +6 -10
- package/prompts/deepseek-v4-pro.md +1 -1
- package/prompts/deepwork.md +3 -3
- package/scripts/repair-session-log.mjs +476 -0
- package/scripts/session-repair-native-verifier.mjs +367 -0
package/docs/agent-presets.md
CHANGED
|
@@ -1,19 +1,29 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Deepwork roles on DSH 0.2
|
|
2
2
|
|
|
3
3
|
DSMM defines twelve unsuffixed normal roles: orchestrator, planner, plan-critic, builder, reviewer, oracle, oracle-2nd, creative, code-search, doc-search, clarifier and media-reader (each prefixed `dsmm-`). A role name is a persona and tool policy, not a model-selection claim. Reviewer is primary-model self-review; an Oracle is an external-model cross-check only when the caller explicitly selects a distinct model offered by the current DSH catalog. The second slot is priority order, not greater capability.
|
|
4
4
|
|
|
5
|
+
The DW display names introduced in the 0.1.3 source contract are `DW Orchestrator`, `DW Planner`, `DW Plan Critic`, `DW Builder`, `DW Reviewer`, `DW Oracle`, `DW Oracle 2nd`, `DW Creative`, `DW Code Search`, `DW Doc Search`, `DW Clarifier`, and `DW Media Reader`. Their native preset IDs, callable tool/provider identities and permissions are unchanged. Persona introductions use the DW role label while retaining the exact `dsmm-*` technical role ID; no display label is a callable-ID rename.
|
|
6
|
+
|
|
5
7
|
## Runtime surfaces
|
|
6
8
|
|
|
7
|
-
|
|
9
|
+
The 0.1.4 source contract distinguishes root eligibility from delegation enablement. Only enabled roles whose mode is `primary` or `all` are registered as native root presets: `dsmm-orchestrator`, `dsmm-builder`, and `dsmm-planner`, displayed as DW Orchestrator, DW Builder and DW Planner. If Builder is disabled in deployment configuration, only Orchestrator and Planner enter the root selector, and Builder has no child tool. Planner remains read-only; read-only access does not imply auxiliary-only status.
|
|
10
|
+
|
|
11
|
+
The nine auxiliary-only roles are `dsmm-plan-critic`, `dsmm-reviewer`, `dsmm-oracle`, `dsmm-oracle-2nd`, `dsmm-creative`, `dsmm-code-search`, `dsmm-doc-search`, `dsmm-clarifier`, and `dsmm-media-reader`. Enabled auxiliary roles remain native delegation tools; they are not broken or missing roots. Runtime profile selection never changes either inventory.
|
|
12
|
+
|
|
13
|
+
DSH 0.2's `agentPresets.register({ id, plugins })` is the native preset registry. When the host composes `agentPresets` (such as Web/Desktop), DSMM registers eligible roots as complete plugin compositions: persona, instructions, filesystem/search/web tools, seven bundled workflow skills, on-demand debugging, and role-specific subagent tools where appropriate. The native loading correction uses `persona.prefix` and `agent-instructions.maxBytes: 65536`; a directory or manifest alone cannot prove that the host successfully mounts the composition. Read-only compositions receive Agent-scoped native `tools.restrict({ deny: ['write', 'edit'] })`; shell tools are not composed into them. Orchestrator and Builder include native `@deepseek-ai/dsh-tool-subagent` instances whose `persona` and `toolFilter` actually shape each child. Read-only child filters allow repository reads/search, with web tools for doc/media roles; media image reading is available only when that tool exists in the host catalog. The provider must support persona, tool filtering and the host's depth/permission limits.
|
|
8
14
|
|
|
9
15
|
The DSH headless one-shot runner does **not** mount or select agent presets. When its startup bundle includes `@deepseek-ai/dsh-headless`, DSMM instead mounts the same role-specific subagent instances on each root Agent's tool plane. The tools remain schema-stable for DeepSeek Flash's addition-only tool catalog, but DSMM's monotonic guard rejects owned role-tool calls unless deepwork is active or a DSMM role preset is selected. Without configured role routing, native model inheritance and the DSMM opt-in boundary are unchanged.
|
|
10
16
|
|
|
11
|
-
|
|
17
|
+
`roleRouting` supplies role policies without adding dynamic model-selection permission. The aliased native provider derives defaults from its parent's admitted runtime snapshot, merges supported explicit native child options, and preflights the result through the parent's native `llm.resolveCallConfig` before native spawn; profile routes are not baked into standing preset/tool rows. For a trusted live, owned, zero-prefix one-shot child, the accepted explicit provider/model/effort survives through final request headers. Root, cold/unowned child and parent-seeded fork requests retain profile-primary resolution. Native spawn aliases retain trusted role identity in the child's durable descriptor, so two children inheriting the same parent preset can still have different routes and fallback chains. A missing or unknown child identity is not guessed from persona text, and a durable descriptor alone does not prove live ownership. DSH's standing `modelSelectionSettings` would re-register subagent tools in each child's own scope, bypassing its inherited-tool filter; DSMM therefore keeps it false. Changing a model never enables extra tools. DSH controls approval, sandbox, cancellation and child depth; DSMM never bypasses those controls. See [model routing](model-routing.md).
|
|
12
18
|
|
|
13
|
-
Only enabled
|
|
19
|
+
Only enabled root-eligible IDs are registered in the root selector. All enabled role IDs remain eligible for DSMM-owned materialized exports and role-specific child tools where the parent permits delegation. The canonical role has no suffix; no high/low/max suffix presets are generated by default. A separately authored native composition must preserve its canonical persona and restrictions, and is not a DSMM runtime file profile. Inspect the running tool schema or preset registry diagnostic rather than treating a file as callable proof.
|
|
14
20
|
|
|
15
21
|
## Optional static mirror
|
|
16
22
|
|
|
17
|
-
`agent-presets/`
|
|
23
|
+
`agent-presets/` keeps twelve renderer-checked static role directories for inspection or native composition authors, **not** a directory scanned by the DSH 0.2 registry. Auxiliary templates do not become roots. The example deployment patch enables DSMM defaults only; it is not a scan-root declaration. `presets.materialize` defaults to false. If enabled, `presets.root` writes only DSMM-owned enabled role directories; adding that path to an obsolete `agent-presets.roots` config does not enable native discovery. In the source repository, regenerate snapshots with `node dsmm/scripts/generate-role-assets.mjs` after the TypeScript build; the development generator is not included in the published package.
|
|
18
24
|
|
|
19
25
|
Materialization keeps the role-bound `.dsmm-managed-preset` marker. Foreign, mismatched, malformed or linked directories/files are never claimed. A current marker with unexpected entries fails closed; only an exact legacy `managed by dsmm` directory with the three expected regular files is updated. Disabling an enabled role removes only its owned directory. No role becomes the host default by installing DSMM.
|
|
26
|
+
|
|
27
|
+
## Upgrade and evidence boundary
|
|
28
|
+
|
|
29
|
+
Older sessions selected directly into a now-auxiliary preset retain their history, but native cold resume may reject the removed root preset ID as unknown. This limitation must be disclosed before global rollout; DSMM must not silently substitute another persona or erase session history. See [compatibility](compatibility.md) for the upgrade procedure. Healthy Docker root audits, actual blank-session role selection with DW display names and read-only child denials are required for 0.1.4 acceptance; actual Desktop selector verification is a separate post-publication check.
|
package/docs/compatibility.md
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Deepwork 0.1.4 Compatibility and Upgrade
|
|
2
|
+
|
|
3
|
+
This document describes the 0.1.4 source contract and required acceptance evidence. It does not claim that the final 0.1.4 artifact has passed Docker, been published, or been activated in Desktop. Historical 0.1.1 checks and the stopped 0.1.2 frozen draft are not substitute evidence for this update; the old 0.1.2 tag/artifact/draft stay untouched and unpublished.
|
|
4
|
+
|
|
5
|
+
The immutable 0.1.3 tag at `2bdea4b` is also preserved. Its run `37235817488` failed before pack/publish on pnpm 11's ignored esbuild/koffi build scripts, so it provides no accepted release artifact. The 0.1.4 gate requires fresh clean Linux installation/build evidence; existing compiled output is not a substitute.
|
|
6
|
+
|
|
7
|
+
Deepwork is the native plugin title in both exported metadata locales, with localized descriptions. Profiles are displayed as **Deepwork Profiles** / **Deepwork 配置档**, and twelve roles as `DW …`. Package `@dsmm/dsmm`, Loader `dsmm`, role/tool/provider IDs, commands, schemas and persistence vocabulary remain compatible. Native metadata-reader and actual UI evidence must prove the display names; a manifest `displayName` is not a supported substitute.
|
|
2
8
|
|
|
3
9
|
## Compatibility authority
|
|
4
10
|
|
|
@@ -12,38 +18,85 @@ The installation contracts include `@deepseek-ai/cordis@~4.0.4`, `@deepseek-ai/s
|
|
|
12
18
|
|
|
13
19
|
| Surface | Fixed version or boundary | Evidence level |
|
|
14
20
|
| --- | --- | --- |
|
|
15
|
-
| Node.js | `>=22` |
|
|
16
|
-
| DSH | `0.2.0-rc.2` |
|
|
21
|
+
| Node.js | `>=22` | required; final artifact check pending |
|
|
22
|
+
| DSH | `0.2.0-rc.2` | pinned authority; final native acceptance required |
|
|
17
23
|
| Cordis | `~4.0.4` | supported by contract |
|
|
18
24
|
| DSH component peers | `0.2.0-rc.2` | supported by contract |
|
|
19
|
-
| Linux container | `Node 22 Bookworm` |
|
|
20
|
-
| Windows |
|
|
25
|
+
| Linux container | `Node 22 Bookworm` | independent frozen-artifact gate required |
|
|
26
|
+
| Windows Desktop | installed official `0.2.0-rc.2` carrier/host | post-publication native check required |
|
|
21
27
|
| macOS | `Node >=22` | supported by contract |
|
|
22
|
-
|
|
|
23
|
-
| Headless |
|
|
28
|
+
| Native Settings | additive Deepwork Profiles client and authenticated RPC | compiled UI/RPC/storage and actual Desktop are separate proofs |
|
|
29
|
+
| Headless | deployment config and native role tools | no Agent preset selection in the one-shot runner |
|
|
24
30
|
| TUI | `DSH 0.2.0-rc.2` | unavailable |
|
|
25
31
|
| LSP/MCP | `external ocmm-lsp mcp` | optional |
|
|
26
32
|
| Runtime recovery | `process-local` | optional |
|
|
27
33
|
| Per-role model/effort/fallback policy | native request, subagent and descriptor seams | opt-in; exact configured capability required |
|
|
34
|
+
| Runtime profiles | independent drafts, immutable revisions, minimal pointer | new-Agent application; no historical snapshot guarantee after restart |
|
|
35
|
+
| Durable DSMM metadata | deployment-only `sessionPersistence` on main DSMM entry | explicit startup integration; frozen-artifact/production acceptance pending |
|
|
28
36
|
| DeepSeek V4 Pro calibration | `deepseek-official/deepseek-v4-pro` | optional |
|
|
29
37
|
| DeepSeek V41 Flash calibration | `native DeepSeek providers/deepseek-flash` | optional |
|
|
30
38
|
|
|
31
39
|
## Command and runtime boundaries
|
|
32
40
|
|
|
33
|
-
`/deepwork` and `/dsmm-status` are host-adapter commands, not headless task-text commands.
|
|
41
|
+
`/deepwork` and `/dsmm-status` are host-adapter commands, not headless task-text commands. The current native client provides Settings → Deepwork Profiles without replacing native navigation, provider/account UI, or the Agent preset selector. There are no model-visible profile-management tools or anonymous file endpoints.
|
|
34
42
|
|
|
35
43
|
Headless uses profile `cordis.patch.yml` plus `--dump-config`; real task execution requires a separately configured provider and uses `dsmm.defaultActive: true`. Old `$DSH_HOME/settings.yaml` namespaces must be migrated explicitly; DSMM does not mutate that file.
|
|
36
44
|
|
|
37
|
-
The old directory discovery `roots/includeUserRoot` no longer configures the native preset registry. DSMM
|
|
45
|
+
The old directory discovery `roots/includeUserRoot` no longer configures the native preset registry. DSMM registers only enabled `primary`/`all` roots: Orchestrator, Builder and Planner. Disabled Builder is absent from both selector and child tools. The other nine roles remain auxiliary delegation roles; all twelve static `agent-presets/` directories are inspection templates, not scan roots. The loading correction is native `persona.prefix` plus instructions `maxBytes: 65536`.
|
|
46
|
+
|
|
47
|
+
DSH's headless one-shot runner does not select or compose Agent presets: headless role delegation must use native role tools, not a registry default. Native preset selection must be tested through a preset-capable host with a blank session. The managed preset-directory materializer remains an opt-in export facility, not discovery evidence.
|
|
48
|
+
|
|
49
|
+
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. Roots, cold/unowned children and parent-seeded forks retain profile-primary resolution. `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).
|
|
50
|
+
|
|
51
|
+
## Session persistence compatibility
|
|
52
|
+
|
|
53
|
+
DSH 0.2.0-rc.2's native `Session.append` cannot attach the `ignorable` envelope marker required for stock readers to skip unknown custom event types. DSMM's source update provides a public persistence Service companion that delegates to the native JSONL provider in a separate Context instead of patching the vendor reader or redefining its known event vocabulary. The `@dsmm/dsmm/session-persistence` export is a **library building block**, not a separate Loader package entry alongside the main client-bearing package. Multiple active Loader sources from this package can conflict in native client registration.
|
|
54
|
+
|
|
55
|
+
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.
|
|
56
|
+
|
|
57
|
+
The approved source integration uses only the main `@dsmm/dsmm` Loader entry with deployment-only `config.sessionPersistence`. Its `root` must be the unchanged **effective absolute root** of the existing native JSONL provider; its `compression` preserves the effective `zstd` or `none` choice. DSMM mounts the class internally and waits for readiness before runtime hooks. Installation/default bundles remain unchanged until an operator explicitly opts in; no custom root is guessed or silently migrated. Disable the exact existing provider at startup first. If a persistence service is already active, DSMM refuses hot replacement.
|
|
58
|
+
|
|
59
|
+
For the proven stock base Web/headless/Desktop bundle row, the exact target is ID `session-persistence-jsonl` with name `@deepseek-ai/dsh-session-persistence-jsonl`. This is a **conceptual partial patch**, not a ready-to-copy replacement: substitute the actual effective root/compression and include every existing DSMM config value under `config` before use.
|
|
60
|
+
|
|
61
|
+
```yaml
|
|
62
|
+
- id: session-persistence-jsonl
|
|
63
|
+
name: '@deepseek-ai/dsh-session-persistence-jsonl'
|
|
64
|
+
disabled: true
|
|
65
|
+
- id: dsmm
|
|
66
|
+
name: '@dsmm/dsmm'
|
|
67
|
+
config:
|
|
68
|
+
# Retain ALL existing DSMM config values here.
|
|
69
|
+
sessionPersistence:
|
|
70
|
+
root: '<unchanged-effective-absolute-root>'
|
|
71
|
+
compression: '<unchanged-effective-zstd-or-none>'
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
Native `name` is a target identity assertion, **not a rename**. Native patch `config` replaces the whole config object; adding only the field above would erase prior DSMM settings. Keep one active main DSMM entry, preserve unrelated Loader rows and do not add a second `./session-persistence` entry. Minimal SDK compositions may use another persistence row ID such as `sessions`, or no provider; those variants are not automatically covered by the stock patch and require exact native composition verification.
|
|
75
|
+
|
|
76
|
+
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.
|
|
77
|
+
|
|
78
|
+
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.
|
|
79
|
+
|
|
80
|
+
## Upgrade limits before global rollout
|
|
81
|
+
|
|
82
|
+
DSMM runtime profiles are independent JSONC drafts beneath the native `profileContext.dir`, not additional DSH deployment profiles. Deployment roles/skills/preset composition/LSP/provider/account/install and `sessionPersistence` settings remain restart-scoped and cannot be changed by a runtime profile. Supported runtime values can be saved into a draft explicitly; save alone never activates it or rewrites deployment configuration. Apply pins immutable bytes and updates only the minimal selection pointer. See [profiles](profiles.md).
|
|
83
|
+
|
|
84
|
+
Every existing live Agent, **including a blank Agent**, retains its admitted runtime settings when a profile is applied/reset. Children and recovery inherit the parent snapshot. Retention ends with the live Host: after restart, cold-resumed sessions use the current selected revision and native current definition. There is no cross-restart historical profile snapshot guarantee.
|
|
85
|
+
|
|
86
|
+
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.
|
|
87
|
+
|
|
88
|
+
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.
|
|
38
89
|
|
|
39
90
|
## Evidence limits
|
|
40
91
|
|
|
41
92
|
The Linux packed-lifecycle smoke pins pnpm `12.8.1` and retains DSH's native `nodeLinker: hoisted` profile layout. On Linux Node 22, pnpm `11.9.0` with that layout and DSMM's auto-installed peer graph can print `Done` after removal without exiting; the same failure was reproduced directly without DSH, while `12.8.1` returned normally. A printed `Done` is not uninstall completion. This does not claim the same failure on Windows or modify a user's existing package manager or profile. The smoke enforces a bounded fail-closed timeout and checks actual remove/reinstall exits and profile state.
|
|
42
93
|
|
|
43
|
-
The matrix separates
|
|
94
|
+
The matrix separates required 0.1.4 evidence from historical CLI/configuration, source-contract and credentialed model evidence. A version string or unit test alone establishes neither native preset health nor UI/runtime behavior. Windows, Linux, Web, and macOS evidence are not interchangeable.
|
|
95
|
+
|
|
96
|
+
The independent Docker gate installs the exact frozen tarball into a fresh pinned native runtime/home and verifies root selection, actual read-only child denials, aliased-parent route preflight, runtime snapshot behavior, and the **same compiled DSMM UI** using native client/slots/RPC and real profile storage. A supported composition-owned in-process operator/Gateway carrier and test-owned browser bridge provide no-credential native component/RPC/storage proof. No user login, copied cookie, launcher token, browser state, Desktop data, account records or authentication bypass is permitted. This proof is not authenticated Desktop/Web-launch proof; actual Desktop mounting and authorized operations remain the later check.
|
|
44
97
|
|
|
45
98
|
LSP/MCP and runtime recovery are disabled by default. V4 Pro calibration remains limited to the exact `deepseek-official/deepseek-v4-pro` route. V41 Flash calibration recognizes only `deepseek-official/deepseek-flash` and `deepseek-account/deepseek-flash`, whose native DSH catalog label is `DeepSeek-V41-Flash`; similarly named third-party models do not match.
|
|
46
99
|
|
|
47
|
-
A credentialed smoke must prove the actual selected request route, DSMM prompt, successful tools, and subsequent model response without substituting another model. Account and API-key authentication are distinct; an AAPI key is not assumed valid for the official endpoint.
|
|
100
|
+
A separately authorized credentialed smoke must prove the actual selected request route, DSMM prompt, successful tools, and subsequent model response without substituting another model. Account and API-key authentication are distinct; an AAPI key is not assumed valid for the official endpoint. Paid chat cannot replace the no-credential Docker/UI gate, and no publication, browser/UI, untested OS, or future-release claim follows from it.
|
|
48
101
|
|
|
49
102
|
Desktop package management uses the installation-owned `dsh.cmd` only while the app is fully quit. Even that carrier cannot boot or dump the reserved Desktop profile. Installation/manifest checks and isolated native model tests do not prove actual Electron-host activation: use an authorized native inventory or the desktop UI, never an anonymous RPC workaround.
|
package/docs/model-routing.md
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
# Model routing
|
|
2
2
|
|
|
3
|
-
## Explicit role policies
|
|
3
|
+
## Explicit role policies
|
|
4
4
|
|
|
5
|
-
`roleRouting` is a
|
|
5
|
+
`roleRouting` is a map keyed by canonical DSMM role ID. It defaults to `{}`; role names alone do not select a model. It can be supplied by deployment configuration or, under the 0.1.2 source contract, a selected [runtime profile](profiles.md). Provider authentication and the provider/model catalog remain native DSH deployment configuration, never profile-file contents. The following is a deployment baseline example:
|
|
6
6
|
|
|
7
7
|
```yaml
|
|
8
8
|
- id: dsmm
|
|
@@ -33,15 +33,19 @@
|
|
|
33
33
|
enabled: false
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
A `primary` is
|
|
36
|
+
A `primary` is role policy for directly selected roots and active top-level deepwork sessions as orchestrator when no DSMM preset is selected. For a trusted native one-shot role alias it supplies the default route, not an unconditional overwrite of explicit native child options. Supported explicit provider/model/effort overrides win only for a live child owned by a native parent with zero inherited event prefix. Root, cold/unowned child and parent-seeded fork requests still resolve the profile primary rather than claiming this live-child exception. Unconfigured/disabled roles, unrecognized children, and out-of-scope sessions do not acquire another role's policy. Disabled-role configuration may be retained but does not create a callable role. Auxiliary role policies apply through delegation, not additional root presets.
|
|
37
37
|
|
|
38
|
-
|
|
38
|
+
Settings resolve from built-in defaults, then deployment configuration, then the selected immutable runtime revision. Profile apply affects newly created Agents only; it does not reroute existing live Agents, including blank ones. Children and recovery use the parent's admitted snapshot. After Host restart, cold resume uses the current selected revision. Changing a draft alone changes none of these policies; see [profiles](profiles.md). Explicit empty fallback lists remain empty instead of inheriting an omitted global chain.
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
Each configured route requires a nonempty provider and model together. An optional named `reasoningEffort` is a native adapter ID, not an OpenCode variant translation. The exact configured effort must be supported; unsupported `max` fails rather than being substituted with `high`. A changed route without effort clears incompatible inherited effort and lets the native adapter resolve its default. For a native child override that changes provider/model without supplying effort, the alias likewise clears the profile-primary effort rather than carrying it onto the new route. Existing DeepSeek calibration cannot override the admitted explicit role/child effort.
|
|
41
|
+
|
|
42
|
+
Native child options keep `modelSelectionSettings:false`: this correction introduces no new model-visible selection permission or tool. DSMM's aliased native provider merges profile-primary defaults from the admitted parent snapshot with explicit native child options, then invokes the parent's native `llm.resolveCallConfig` preflight before native spawn. The trusted live-child path preserves that accepted route/effort through the final request headers instead of reapplying the profile primary. Standing preset/tool rows do not capture per-profile routes. The path preserves native persona/tool filters, depth, permissions, cancellation, and one-shot lifecycle. Child identity comes from its own durable native subagent descriptor, not a parent preset, persona text, or a model-visible role label. Descriptor identity can be reconstructed after reload; it does not prove live ownership or make terminal one-shot children resumable.
|
|
41
43
|
|
|
42
44
|
Primary selection does not reset an admitted fallback or a host-owned durable route change. Final native request headers are authoritative, not an intermediate middleware snapshot. See [runtime recovery](runtime-recovery.md) for role/global chain precedence and retry fences.
|
|
43
45
|
|
|
44
|
-
DSMM records a model-hidden `dsmm/role-policy` metadata epoch for explicit routing. Unchanged policies retain accepted routes across turns
|
|
46
|
+
DSMM records a model-hidden `dsmm/role-policy` metadata epoch for explicit routing. Unchanged admitted policies retain accepted routes across turns; on cold resume an epoch is evaluated against the current admitted policy. A changed primary effort or fallback policy invalidates the prior selection and applies the new primary. Profile apply does not change a live Agent's admitted policy. Child epochs are read only from child-owned history, never an inherited ancestor. This metadata does not add model-visible prompt text, create a resumable child lifecycle, or promise cross-restart historical profile retention.
|
|
47
|
+
|
|
48
|
+
On DSH 0.2.0-rc.2, durable custom metadata requires explicit deployment-only `sessionPersistence: {root, compression}` on the main DSMM Loader entry. DSMM mounts its native JSONL companion and awaits readiness before installing runtime hooks. The public `@dsmm/dsmm/session-persistence` export is a library building block, not a second package Loader source. An incompatible durable provider is rejected before DSMM appends its custom event; ephemeral Hosts without persistence remain allowed. Native `Session.append` cannot set the stock-reader `ignorable` marker itself. See [persistence compatibility](compatibility.md#session-persistence-compatibility) for preserving the effective storage settings, disabling the exact stock provider at startup, and old-log repair limits. Final frozen-artifact/production acceptance remains pending; source contracts are not release proof.
|
|
45
49
|
|
|
46
50
|
## Legacy exact-route calibration
|
|
47
51
|
|
package/docs/profiles.md
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# Deepwork runtime profiles (0.1.4 source contract)
|
|
2
|
+
|
|
3
|
+
This guide describes the 0.1.4 source contract. It is not evidence of a published package or completed Docker/Desktop acceptance; see [releasing](releasing.md). Deepwork is the display name; package, storage and configuration IDs retain `dsmm` for compatibility.
|
|
4
|
+
|
|
5
|
+
A Deepwork runtime profile is a named file containing runtime policy, not a native deployment profile or an Agent role preset. Native Settings → **Deepwork Profiles** / **Deepwork 配置档** provides create/read/edit/save, explicit apply, and reset to the deployment baseline. The native Agent preset selector remains a separate role selector, displaying `DW …` names under unchanged `dsmm-*` IDs.
|
|
6
|
+
|
|
7
|
+
## Files and document format
|
|
8
|
+
|
|
9
|
+
The native `profileContext.dir` is the only storage authority. No guessed user-home fallback or inline `profiles` object in plugin config is used.
|
|
10
|
+
|
|
11
|
+
| File | Purpose |
|
|
12
|
+
| --- | --- |
|
|
13
|
+
| `<profileContext.dir>/dsmm-profiles/<id>.jsonc` | Editable named draft |
|
|
14
|
+
| `<profileContext.dir>/dsmm-profiles/.revisions/<sha256>.jsonc` | Immutable exact bytes pinned by an explicit apply |
|
|
15
|
+
| `<profileContext.dir>/dsmm-profiles/.selection.json` | Minimal selection pointer: `{version: 1, id, revision}` |
|
|
16
|
+
|
|
17
|
+
IDs are filename-safe identifiers, not paths; reserved names, case collisions and link traversal are rejected. A document has exactly `version: 1`, `id`, optional `label`, and `settings`. For example, a draft named `careful.jsonc` may contain:
|
|
18
|
+
|
|
19
|
+
```jsonc
|
|
20
|
+
{
|
|
21
|
+
"version": 1,
|
|
22
|
+
"id": "careful",
|
|
23
|
+
"label": "Careful review",
|
|
24
|
+
"settings": {
|
|
25
|
+
// Saving preserves this comment; apply pins these exact bytes.
|
|
26
|
+
"defaultActive": true,
|
|
27
|
+
"workflow": { "policy": "risk-based" },
|
|
28
|
+
"roleRouting": {
|
|
29
|
+
"dsmm-reviewer": {
|
|
30
|
+
"primary": {
|
|
31
|
+
"provider": "my-existing-provider",
|
|
32
|
+
"model": "my-existing-model",
|
|
33
|
+
"reasoningEffort": "high"
|
|
34
|
+
},
|
|
35
|
+
"fallbackRoutes": []
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"runtimeRecovery": { "enabled": false }
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
The example provider/model must already exist in the native catalog and advertise the specified effort. It introduces no provider, account or credential. Explicit `fallbackRoutes: []` disables that role's fallback chain; it is not equivalent to omitting the key and inheriting a global chain.
|
|
44
|
+
|
|
45
|
+
## Supported settings and precedence
|
|
46
|
+
|
|
47
|
+
The exact top-level `settings` allowlist is:
|
|
48
|
+
|
|
49
|
+
- `defaultActive`
|
|
50
|
+
- `roleRouting`
|
|
51
|
+
- `workflow`
|
|
52
|
+
- `guards`
|
|
53
|
+
- `runtimeRecovery`
|
|
54
|
+
- `deepseekV4ProCalibration`, `deepseekV4ProDefaultReasoningEffort`, `deepseekV4ProMaxReasoningPresets`
|
|
55
|
+
- `deepseekFlashCalibration`, `deepseekFlashDefaultReasoningEffort`, `deepseekFlashMaxReasoningPresets`
|
|
56
|
+
|
|
57
|
+
Existing nested validation and finite bounds still apply. Profiles reject deployment-only `roles`, `skills`, `modeName`, `promptOrder`, `section`, `presets`, `lsp`, and `sessionPersistence`, as well as embedded profiles, native provider/account/auth/header/env/install fields, arbitrary Cordis rows, and unknown fields. Structural changes belong in deployment configuration and require restart. A guard setting cannot enable tools forbidden by a canonical read-only role composition.
|
|
58
|
+
|
|
59
|
+
Effective settings resolve in this order: **built-in DSMM defaults → deployment DSMM configuration → selected immutable runtime revision**. Structural settings always come from deployment configuration. No selection means the unchanged deployment baseline, not a synthetic default profile. Omitted fallback policy and explicit empty policy remain distinct through resolution. See [model routing](model-routing.md) and [settings/status](settings-status.md).
|
|
60
|
+
|
|
61
|
+
## Save versus apply
|
|
62
|
+
|
|
63
|
+
Create or open a draft in native Settings, edit its JSONC, and save. Saving validates the draft and preserves the edited raw JSONC/comments, but does not activate it—even if the same ID is currently selected. Unsaved edits must be saved or explicitly discarded before switching away.
|
|
64
|
+
|
|
65
|
+
**Apply** is a separate operation. It checks the expected draft revision, validates runtime fields and native route/effort semantics, pins the draft's exact bytes in `.revisions`, and atomically commits `.selection.json`. Only after the pointer commit succeeds may the current in-memory selection change. The UI distinguishes the editable draft, selected immutable revision for future Agents, and an existing Agent's admitted snapshot. **Reset to baseline** clears the runtime selection for future Agents; it does not delete drafts or mutate an existing Agent.
|
|
66
|
+
|
|
67
|
+
Save/apply requests use expected revisions. A concurrent UI save or external file edit produces a conflict instead of overwriting later bytes; reread and reconcile. Validation, missing file, revision conflict, lock/IO, authorization, or activation failures must be visible, not reported as success. Invalid/missing/linked files and digest mismatches never silently select another profile or model. Pointer failure retains the prior disk selection and current settings; an unused immutable revision may remain.
|
|
68
|
+
|
|
69
|
+
Storage uses bounded validated content, containment/link checks under a cross-process writer lock, and same-directory atomic replacement. Lock timeouts are errors; stale-looking locks are not stolen. Immutable revision files are never overwritten or hand-edited. Operations accept stable IDs, not arbitrary filesystem paths. Profile summaries do not expose credentials or deployment configuration.
|
|
70
|
+
|
|
71
|
+
## Agent lifetime and restart
|
|
72
|
+
|
|
73
|
+
Applying or resetting affects **new Agents only**. Every existing live Agent, including a blank one, retains its admitted immutable runtime snapshot. Native children inherit their parent's snapshot, and in-flight recovery stays within that same policy. Profile selection does not re-register presets, change role enablement, alter tool/skill composition, or update an existing session's persona.
|
|
74
|
+
|
|
75
|
+
This retention is **live-Host-only**. After a Host restart, cold-resumed sessions admit the currently selected immutable revision and native current definition, not their old historical profile. A later edit to the draft cannot change the pinned revision used after restart. There is no cross-restart historical per-session settings guarantee.
|
|
76
|
+
|
|
77
|
+
Older sessions whose selected root ID is now auxiliary-only may fail native cold resume with an unknown preset ID. Read [compatibility](compatibility.md) before upgrading; never silently switch their persona or erase history.
|
|
78
|
+
|
|
79
|
+
## Migration, authority and rollback
|
|
80
|
+
|
|
81
|
+
Migration from 0.1.1 is explicit: save supported runtime values as a named draft, preserve deployment roles/skills/provider/account/UI rows, inspect the draft, then apply separately. No operation rewrites `cordis.patch.yml` or migrates credentials. Native RPC authorization applies on the backend as well as the UI. There are no model-visible profile-management tools, child write capabilities, anonymous endpoints or authentication bypasses.
|
|
82
|
+
|
|
83
|
+
For policy rollback, reset to the deployment baseline or explicitly apply a reviewed prior configuration. Never overwrite an immutable revision or restore draft bytes over a later user edit. Existing live Agents remain unchanged. Package rollback is separate and uses an exact known immutable package through the official carrier; see [releasing](releasing.md).
|
package/docs/releasing.md
CHANGED
|
@@ -1,15 +1,22 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Deepwork 0.1.4 Release and Rollback
|
|
2
|
+
|
|
3
|
+
This is a future procedure for 0.1.4, not a completed-release receipt. The new identities are `@dsmm/dsmm@0.1.4`, tag `dsmm-scoped-v0.1.4`, and `dsmm-dsmm-0.1.4.tgz`. Deepwork/DW display names do not rename package or protocol IDs. Existing 0.1.1 and older releases remain immutable. The stopped 0.1.2 tag, frozen artifact and draft Release remain untouched and unpublished: do not dispatch its bootstrap publisher, finalize its draft, overwrite its bytes or move/delete/recreate its tag.
|
|
4
|
+
|
|
5
|
+
The `dsmm-scoped-v0.1.3` tag at `2bdea4b` is immutable too. Run `37235817488` failed **before pack/publish** because pnpm 11 ignored esbuild/koffi build scripts. Preserve that tag and its historical plan; do not reroute it to the successor. 0.1.4 must obtain its own fresh source, clean Linux build, packed bytes and receipt.
|
|
6
|
+
|
|
7
|
+
The mandatory sequence is **fresh CI pack → independent frozen-byte Docker acceptance → verified OIDC npm/GitHub publication and terminal completion → authorized official-carrier Desktop rollout**. No global/system DSH, Desktop configuration, account/provider, credential, or real-session writes may occur before terminal verified publication. Local readiness alone does not authorize publication or migration.
|
|
2
8
|
|
|
3
9
|
## Preflight
|
|
4
10
|
|
|
5
|
-
Run these
|
|
11
|
+
Run these checks from the exact source selected for review; they are readiness evidence, not publication steps. Confirm pinned DSH 0.2.0-rc.2 package/CLI identity, seven exact public exports, both metadata locale resources, peer/client exports, license parity and the exact packed file set. Recheck scoped npm authority and absence of the new version/tag before authorized publication; a registry lookup cannot reserve ownership. Do not change root ocmm/LSP versions or regenerate the unrelated Codex adapter.
|
|
6
12
|
|
|
7
13
|
```powershell
|
|
8
14
|
git rev-parse HEAD
|
|
9
15
|
git status --short
|
|
10
|
-
|
|
16
|
+
pnpm --dir dsmm typecheck:test
|
|
17
|
+
pnpm --dir dsmm test
|
|
11
18
|
pnpm --dir dsmm build
|
|
12
|
-
|
|
19
|
+
node dsmm/scripts/generate-role-assets.mjs
|
|
13
20
|
pnpm --dir dsmm check:release
|
|
14
21
|
npm pack ".\dsmm" --dry-run --json
|
|
15
22
|
pnpm --dir dsmm smoke:docker
|
|
@@ -18,35 +25,67 @@ pnpm test
|
|
|
18
25
|
pnpm run build
|
|
19
26
|
```
|
|
20
27
|
|
|
21
|
-
The
|
|
28
|
+
The root typecheck, test and build must pass before committing. Build before generating static role assets, then verify generation is idempotent and the committed assets match. Inspect the preview for client/profile assets and exported `locale/en.json` / `locale/zh.json` with `{meta: {title: "Deepwork", description: <localized nonempty text>}}`; exclude secrets, test homes, tests, plans, sourcemaps and nested tarballs. Prove native `readPluginMeta` consumes the installed resources and all twelve DW display labels preserve IDs, mode, access and tool restrictions.
|
|
29
|
+
|
|
30
|
+
Use pnpm for actual install/build/test/**pack/publish**. The `npm pack --dry-run --json` above is only the existing read-only, size-rich metadata diagnostic, not release packaging. Do not blindly substitute pnpm's differently shaped preview JSON or fabricate missing size fields. Source-checkout Docker runs are development evidence; final acceptance must use the CI-frozen artifact and expected SHA256 without building or repacking. A checker or successful install is not runtime, UI, publication or Desktop proof.
|
|
31
|
+
|
|
32
|
+
For 0.1.4, clean Linux install/build verification must exercise the reviewed pnpm `allowBuilds` policy for exactly `esbuild@0.25.12` and `koffi@3.1.1`, with `strictDepBuilds: true`. A cached native binary or pre-existing `lib` tree cannot establish that the ignored-script failure is repaired. This is distinct from the deliberately script-free metadata dry-run above; do not weaken that diagnostic's lifecycle-script protection or approve all dependency scripts.
|
|
33
|
+
|
|
34
|
+
## Phase 1: frozen artifact and independent Docker gate
|
|
35
|
+
|
|
36
|
+
Use the dedicated `.github/workflows/dsmm-release.yml` **future tag path** for the authorized `dsmm-scoped-v0.1.4` push, not the old bootstrap dispatch. Tag/version, peeled source commit, control commit and event identity must agree. CI uses pinned Node 24 / pnpm 11.9.0, checks/builds the exact source, verifies generated assets, and packs **one new actual tarball** with pnpm. Inspect `dsmm-dsmm-0.1.4.tgz`, record its actual size/SHA256/SHA1/SHA512 integrity, and freeze it. Never reuse the old 0.1.2 hash/receipt/artifact.
|
|
37
|
+
|
|
38
|
+
Run the full independent Docker runner with that **explicit artifact path and expected SHA256**, required compiled-UI hook and trusted support files. It must fail closed if required inputs are missing/mismatched and must not build, repack, or silently choose another tarball. The new completed receipt's `packedSha256` must match the fresh frozen file and its run/attempt/source identity. Only these accepted unchanged bytes may proceed to publish.
|
|
39
|
+
|
|
40
|
+
Use a fresh image/process/home and exact pinned DSH, installing the packed package rather than importing checkout code. Do not mount or copy Desktop/global configuration, sessions, credentials, account records, browser storage or user authentication. A deterministic test-owned no-auth model fixture may drive actual runtime operations; paid chat and schema inventories alone cannot replace these scenarios:
|
|
22
41
|
|
|
23
|
-
|
|
42
|
+
- Native metadata reader yields Deepwork from both packaged locales; all twelve DW display names and unchanged technical IDs are correct; settled healthy root audit includes enabled DW Orchestrator/Builder/Planner only, disabled Builder absent, auxiliary roles excluded; actual blank-session Agent preset selection.
|
|
43
|
+
- Actual enabled auxiliary delegation and native read-only denials, with exact role route/effort and aliased-parent `llm.resolveCallConfig` preflight against the fixture catalog.
|
|
44
|
+
- Same packaged compiled Deepwork Profiles UI through native client/slots and supported in-process operator/Gateway RPC into real profile storage: create/read/edit/save/apply/reset, explicit deployment-only validation errors, revision conflict, pointer failure, and exact draft/immutable-revision/pointer bytes.
|
|
45
|
+
- Save without activation; new-Agent-only apply; existing even-blank Agent retention; inherited child/recovery settings; fresh-process pinned current selection despite a subsequently edited draft; truthful cold-resume/removed auxiliary-root limitations.
|
|
46
|
+
- Existing native web/headless, session-persistence/history compatibility, LSP, sentinel and cleanup scenarios remain required; naming checks do not replace these runtime contracts.
|
|
24
47
|
|
|
25
|
-
The
|
|
48
|
+
The native component/RPC/storage test uses a supported composition-owned in-process carrier, not an anonymous production route or copied login. It is distinct from authenticated Desktop activation. Preserve sanitized scenario evidence and inspect the full intended diff before parent-owned authorized release operations. If any required scenario fails or the frozen bytes change, stop before publication/global migration.
|
|
26
49
|
|
|
27
|
-
|
|
50
|
+
## Phase 2: authorized immutable publication
|
|
28
51
|
|
|
29
|
-
|
|
52
|
+
Publication requires explicit authorization for the new identity. Recheck `@dsmm/dsmm@0.1.4` and `dsmm-scoped-v0.1.4` are absent. Confirm the one-time npm Trusted Publisher registration for repository `hugefiver/ocmm`, workflow filename `dsmm-release.yml`, with direct publish allowed. If supported setup/MFA is still missing, request that step; do not add a static token fallback or recurring manual release gate. The main ocmm workflow/checker does not cover DSMM: its dedicated workflow and DSMM terminal checker do.
|
|
53
|
+
|
|
54
|
+
The earlier unscoped `dsmm-v0.1.0` GitHub release, scoped 0.1.0 release and scoped 0.1.1 release stay intact. A new-release authorization covers ordinary commit/push/tag/npm/GitHub actions for 0.1.4 only, not rewriting prior publications, the old 0.1.2 draft, app upgrades, global package-manager changes or authentication workarounds.
|
|
55
|
+
|
|
56
|
+
The future publish job revalidates the accepted run/attempt-bound bytes and publishes **that exact tarball with native pnpm**, public npmjs access, lifecycle scripts ignored, OIDC and genuine provenance enabled. Do not forge GitHub identity variables, use the old bootstrap's `provenance=false`, or repack after acceptance. Preserve non-canceling package-wide publication concurrency and least-permission separated jobs. Registry byte/integrity and fresh installed-package verification precede non-overwriting public GitHub finalization with the same tarball and `SHA256SUMS.txt`.
|
|
30
57
|
|
|
31
58
|
Treat both identities as immutable: never overwrite an npm version and never move, delete, or recreate an immutable tag. Readiness documentation and a local tarball do not authorize a publish.
|
|
32
59
|
|
|
33
|
-
|
|
60
|
+
### Publication identity verification
|
|
34
61
|
|
|
35
|
-
|
|
62
|
+
Verify the tag's peeled commit, exact npm name/version and `dist.integrity`, genuine provenance, downloaded registry archive bytes, GitHub asset bytes and checksum list against the frozen artifact. Use a fresh isolated `DSH_HOME` for exact registry installation. Check all seven exports, including both metadata JSON resources, resolve and match bytes from the **installed registry package**, never the checkout. Native `readPluginMeta` must yield Deepwork; JSON resources are metadata, not executable code. The Loader row remains `id: dsmm`. Initialize a fresh headless deployment profile first; `/deepwork` and `/dsmm-status` are not headless task text.
|
|
36
63
|
|
|
37
|
-
|
|
64
|
+
After the matching workflow terminates, run `scripts/check-dsmm-release-completion.mjs` for its exact run ID, attempt and control SHA. It must bind source/Docker proof, tag/commit, frozen bytes, registry/provenance/install evidence, GitHub assets/checksums and every required job. The future path has `import-bootstrap` **skipped / NOT_APPLICABLE**, `bootstrapImport: null` and no bootstrap import artifact; this is not missing evidence. Only terminal outcome `COMPLETED` authorizes later rollout. Workflow success alone is insufficient. Preserve any partial or ambiguous publication; do not overwrite assets, move/delete/recreate the tag, implicitly retry uploads or repair in place.
|
|
38
65
|
|
|
39
66
|
```powershell
|
|
40
|
-
$env:DSH_HOME = "
|
|
41
|
-
dsh --profile dsmm-0.1.
|
|
42
|
-
dsh plugin --profile dsmm-0.1.
|
|
43
|
-
dsh plugin --profile dsmm-0.1.
|
|
44
|
-
dsh --profile dsmm-0.1.
|
|
45
|
-
npm view @dsmm/dsmm@0.1.
|
|
67
|
+
$env:DSH_HOME = "<fresh-task-owned-verification-home>"
|
|
68
|
+
dsh --profile dsmm-0.1.4-verify --from-default-profile headless --dump-config
|
|
69
|
+
dsh plugin --profile dsmm-0.1.4-verify add @dsmm/dsmm@0.1.4
|
|
70
|
+
dsh plugin --profile dsmm-0.1.4-verify list
|
|
71
|
+
dsh --profile dsmm-0.1.4-verify --dump-config
|
|
72
|
+
npm view @dsmm/dsmm@0.1.4 dist.integrity --registry "https://registry.npmjs.org/"
|
|
46
73
|
```
|
|
47
74
|
|
|
75
|
+
## Phase 3: official installed-carrier Desktop rollout
|
|
76
|
+
|
|
77
|
+
Only after terminal 0.1.4 completion may authorized global migration begin. First perform the separately bounded isolated real-model/tool check against the exact registry package. Coordinate a fully quit Desktop, recheck concurrent edits, and preserve a recoverable local snapshot of only task-changed package-manager/DSMM-owned files—not the entire credential or session store. Use the exact installed official Desktop carrier to install `@dsmm/dsmm@0.1.4`. It may manage packages while the app is quit; it may **not** boot/dump the reserved Desktop profile. Never substitute standalone npm DSH, a renamed/copied profile, checkout imports, `app.asar` patches, global PATH/pnpm changes, or auth bypasses.
|
|
78
|
+
|
|
79
|
+
Preserve base/web bundles, deployment roles/skills, nine configured policies, disabled Builder, active mode, provider/model catalog, account state and UI preferences. Saving supported baseline settings as a runtime draft is explicit and reversible; it does not change structural configuration. Disclose current-selection cold resume and the unknown removed auxiliary-root ID limitation in [compatibility](compatibility.md) before rollout. Do not silently substitute personas or delete history.
|
|
80
|
+
|
|
81
|
+
Any old unmarked-log repair remains a separately authorized exact private target, native-lease-held, same-directory backup-first, metadata-only operation with concurrency checks and actual installed-reader parity. The naming release does not itself authorize session edits, and an old observed digest is not permission to overwrite newer history.
|
|
82
|
+
|
|
83
|
+
After a supported restart, verify actual Desktop package 0.1.4 activation, native Deepwork metadata, healthy selectable DW root names, retained auxiliary delegation/read-only denial, and actual Deepwork Profiles UI create/edit/save/apply/reset with independent file/pointer bytes. Verify live even-blank Agents remain unchanged on apply and current pinned selection persists across restart. Check unrelated deployment/provider/account/UI state remained intact. If authenticated native Desktop behavior cannot be observed, report that pending boundary; disk files, native metadata reads, headless tests and Docker component proof alone are insufficient for complete integration.
|
|
84
|
+
|
|
48
85
|
## Rollback
|
|
49
86
|
|
|
50
|
-
|
|
87
|
+
Runtime rollback resets to the deployment baseline or explicitly reapplies a reviewed prior configuration with concurrency/revision checks. Never mutate immutable files or restore drafts over later user edits. Existing live Agents retain their snapshots.
|
|
88
|
+
|
|
89
|
+
For package rollback, use the official carrier to remove `@dsmm/dsmm`, add an exact known immutable version and restart through the supported path. Keep runtime drafts/revisions and unrelated settings. An old unscoped bundle must not coexist with the scoped bundle using the same `id: dsmm`. Desktop requires the installed carrier with the app fully quit; boot/dump remains unsupported. Do not restore credential files, sign out, delete sessions, remove old releases or perform broad recursive cleanup. Remove only exact task-owned temporary material when safe and retain release/recovery evidence.
|
|
51
90
|
|
|
52
91
|
Never overwrite an npm version or rewrite a tag to repair a publication. Preserve the immutable evidence and select a new, authorized version instead.
|
package/docs/settings-status.md
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Deepwork settings and status
|
|
2
2
|
|
|
3
3
|
## Commands and inspection
|
|
4
4
|
|
|
5
5
|
`/deepwork [off|message]` changes the receiving session's mode. `/dsmm-status` reports bounded normalized state; `/dsmm-status json` returns a defensive JSON snapshot with version 1. Other input returns `Usage: /dsmm-status [json]`.
|
|
6
6
|
|
|
7
|
+
Human-facing status/mode copy uses Deepwork. The technical commands, JSON fields, namespace and configurable `modeName` remain unchanged in 0.1.4.
|
|
8
|
+
|
|
7
9
|
Commands belong to the native command adapter. Headless task text is not a slash-command invocation.
|
|
8
10
|
|
|
9
|
-
## DSH 0.2 configuration
|
|
11
|
+
## DSH 0.2 deployment configuration
|
|
10
12
|
|
|
11
|
-
|
|
13
|
+
The Loader plugin entry remains the deployment baseline. Structural fields are **restart-scoped**; the 0.1.4 source contract includes runtime-only file overlays for newly admitted Agents. The removed `settings.register()` service and old `$DSH_HOME/settings.yaml` namespace are not used by DSH 0.2. Copy deployment values into the profile's `cordis.patch.yml`, restart, and inspect `--dump-config` and status:
|
|
12
14
|
|
|
13
15
|
```yaml
|
|
14
16
|
- id: dsmm
|
|
@@ -28,7 +30,9 @@ DSMM's configuration remains **restart-scoped** and is resolved from the Loader
|
|
|
28
30
|
enabled: false
|
|
29
31
|
```
|
|
30
32
|
|
|
31
|
-
|
|
33
|
+
The 0.1.4 source contract includes the additive native Settings **Deepwork Profiles** / **Deepwork 配置档** section through the native client/authorized RPC surface. It is not a volatile SettingsForms projection and does not turn structural fields into live references. Create/read/edit/save/apply/reset operate on independent files under `<profileContext.dir>/dsmm-profiles/`; neither a Settings schema nor these docs prove completed Desktop activation. See [runtime profiles](profiles.md) for the exact allowlist, file formats and pending acceptance boundary.
|
|
34
|
+
|
|
35
|
+
Save changes only the draft. Explicit apply pins an immutable revision and changes settings for **new Agents only**; existing live Agents, including blank Agents, retain their admitted snapshots. Children and recovery inherit the parent snapshot. After restart, cold-resumed sessions use the current selection, not historical per-session settings. Reset restores the deployment baseline for future Agents and leaves drafts intact.
|
|
32
36
|
|
|
33
37
|
## Workflow compatibility
|
|
34
38
|
|
|
@@ -38,10 +42,12 @@ Risk-based behavior scales discovery, planning, and review to uncertainty and in
|
|
|
38
42
|
|
|
39
43
|
## Other settings
|
|
40
44
|
|
|
41
|
-
`roleRouting` defaults to an empty
|
|
45
|
+
`roleRouting` defaults to an empty map, configured in the deployment baseline or a selected runtime profile. Each canonical role accepts an optional fixed `primary` and an optional ordered `fallbackRoutes` list of `{provider, model, reasoningEffort?}`. It is separate from the deployment-only boolean `roles` enable map. Unknown role keys and malformed explicit routes fail closed; omitted chains and explicit empty chains have different meanings. See [model routing](model-routing.md) and [runtime recovery](runtime-recovery.md).
|
|
42
46
|
|
|
43
47
|
The public schema and exported `DEFAULT_DSMM_SETTINGS` are the complete defaults. Seven core skill toggles and all twelve role toggles default on; effective application is scoped to active mode or a selected DSMM role, not global task policy. Managed preset-directory materialization remains off by default and is an export facility rather than native discovery.
|
|
44
48
|
|
|
49
|
+
Runtime overlays allow only `defaultActive`, `roleRouting`, `workflow`, `guards`, `runtimeRecovery`, and both `deepseekV4Pro*`/`deepseekFlash*` Calibration, DefaultReasoningEffort and MaxReasoningPresets fields. `roles`, `skills`, `modeName`, `promptOrder`, `section`, `presets`, `lsp`, `sessionPersistence`, native provider/account/install controls, embedded profiles and unknown fields are rejected. Defaults resolve before deployment settings, then the selected immutable overlay. A missing selection leaves the deployment baseline unchanged.
|
|
50
|
+
|
|
45
51
|
Existing `deepseekV4ProCalibration`, `deepseekV4ProDefaultReasoningEffort`, and `deepseekV4ProMaxReasoningPresets` remain compatible. Flash has independent corresponding `deepseekFlash*` settings; calibration modes are off/auto/strict. Auto preserves explicit effort, strict chooses supported policy effort, and unsupported capabilities never justify guessed parameters.
|
|
46
52
|
|
|
47
53
|
Guard scope defaults to `deepwork-or-dsmm-agent`; shell safety and helpers remain enabled and Git writes require host approval. LSP and runtime recovery default off. Recovery caps are finite; an empty fallback list does not enable automatic model discovery or substitution.
|
|
@@ -53,3 +59,5 @@ The snapshot reports `mode`, `route`, `calibration`, `runtimeRecovery`, and `eff
|
|
|
53
59
|
Status does not perform capability/network queries, expose credentials or provider errors, or report process-local pending retries. Model calibration is enforced in the actual request waterfall, not by status or prompt text.
|
|
54
60
|
|
|
55
61
|
Configured role policy/chain and the actual persisted current route are distinct facts. The normalized settings snapshot defensively copies nested role routes and lists; configuration presence is not a claim of successful provider authentication or a completed fallback.
|
|
62
|
+
|
|
63
|
+
Status describes the receiving Agent's admitted settings; the profile UI's current selection describes future Agents. These can intentionally differ. `--dump-config` shows deployment composition, not proof of runtime-profile application or authenticated UI behavior.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { InjectFace, PropsLocale } from "@deepseek-ai/dsh-client-ui-slots";
|
|
2
|
+
import type { ProfilesActions, ProfilesController } from "./controller.js";
|
|
3
|
+
export type ProfilesInjected = ProfilesActions & {
|
|
4
|
+
hooks: {
|
|
5
|
+
profiles: ProfilesController["store"];
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
export type ProfilesSectionProps = InjectFace<ProfilesInjected> & PropsLocale<"settings.dsmm-profiles">;
|
|
9
|
+
/** One native settings.section; policy selection is never coupled to browsing. */
|
|
10
|
+
export declare function ProfilesSection(props: ProfilesSectionProps): import("react").JSX.Element;
|
|
11
|
+
//# sourceMappingURL=ProfilesSection.d.ts.map
|