@dsmm/dsmm 0.2.2 → 0.3.1
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 +26 -42
- package/cordis.patch.yml +1 -0
- package/docs/agent-presets.md +26 -14
- package/docs/compatibility.md +20 -79
- package/docs/deferred-native-approval-risk.md +8 -12
- package/docs/design.md +25 -254
- package/docs/lsp.md +2 -2
- package/docs/migration-from-ocmm.md +38 -51
- package/docs/model-routing.md +21 -21
- package/docs/native-permissions.md +17 -7
- package/docs/profiles.md +13 -9
- package/docs/releasing.md +34 -240
- package/docs/roadmap.md +23 -254
- package/docs/runtime-recovery.md +29 -91
- package/docs/safety-guards.md +19 -16
- package/docs/settings-status.md +23 -11
- package/docs/skill-sync.md +17 -17
- package/docs/web-fetch-fakeip.md +82 -0
- package/lib/child-capture.d.ts +16 -2
- package/lib/child-capture.js +29 -10
- package/lib/client/ChildrenPanel.d.ts +1 -4
- package/lib/client/ChildrenPanel.js +4 -16
- package/lib/client/DeploymentFields.d.ts +28 -0
- package/lib/client/DeploymentFields.js +68 -0
- package/lib/client/DeploymentPage.d.ts +17 -5
- package/lib/client/DeploymentPage.js +79 -112
- package/lib/client/NativeCommandEntries.d.ts +17 -0
- package/lib/client/NativeCommandEntries.js +68 -0
- package/lib/client/PermissionsPanel.d.ts +1 -1
- package/lib/client/PermissionsPanel.js +8 -8
- package/lib/client/ProfilesSection.js +7 -5
- package/lib/client/RoleToolView-data.d.ts +35 -0
- package/lib/client/RoleToolView-data.js +52 -0
- package/lib/client/RoleToolView-locales.d.ts +36 -0
- package/lib/client/RoleToolView-locales.js +20 -0
- package/lib/client/RoleToolView.d.ts +10 -0
- package/lib/client/RoleToolView.js +47 -0
- package/lib/client/SessionProfiles.js +39 -15
- package/lib/client/children-controller.d.ts +2 -8
- package/lib/client/children-controller.js +1 -26
- package/lib/client/children-locales.d.ts +26 -51
- package/lib/client/children-locales.js +8 -12
- package/lib/client/configuration-display.d.ts +5 -0
- package/lib/client/configuration-display.js +11 -0
- package/lib/client/controller.d.ts +1 -0
- package/lib/client/controller.js +20 -13
- package/lib/client/deployment-controller.d.ts +13 -1
- package/lib/client/deployment-controller.js +85 -25
- package/lib/client/deployment-data.d.ts +1 -0
- package/lib/client/deployment-data.js +4 -1
- package/lib/client/deployment-locales.d.ts +43 -0
- package/lib/client/deployment-locales.js +35 -9
- package/lib/client/deployment-modules.d.ts +9 -0
- package/lib/client/deployment-modules.js +24 -0
- package/lib/client/deployment-workspace.d.ts +48 -0
- package/lib/client/deployment-workspace.js +123 -0
- package/lib/client/index.js +11 -74
- package/lib/client/locales.d.ts +7 -0
- package/lib/client/locales.js +12 -6
- package/lib/client/permission-controller.d.ts +1 -0
- package/lib/client/permission-controller.js +3 -2
- package/lib/client/permission-locales.d.ts +25 -0
- package/lib/client/permission-locales.js +24 -4
- package/lib/client/session-labels.js +4 -3
- package/lib/client/styles.d.ts +1 -1
- package/lib/client/styles.js +9 -8
- package/lib/client.js +2716 -2364
- package/lib/commands.js +2 -0
- package/lib/config-file-store.d.ts +3 -0
- package/lib/config-file-store.js +4 -2
- package/lib/config-revision.d.ts +5 -0
- package/lib/config-revision.js +11 -0
- package/lib/core-permission-authority.js +11 -41
- package/lib/deployment-config.d.ts +9 -2
- package/lib/deployment-config.js +35 -8
- package/lib/deployment-permission-rules.js +19 -7
- package/lib/dsh-types.d.ts +1 -1
- package/lib/host-llm-startup.js +3 -3
- package/lib/host-llm.d.ts +9 -3
- package/lib/host-llm.js +48 -8
- package/lib/index.d.ts +17 -21
- package/lib/index.js +131 -430
- package/lib/lifetime.d.ts +4 -0
- package/lib/lifetime.js +22 -0
- package/lib/live-pi-ai-owner.d.ts +1 -0
- package/lib/live-pi-ai-owner.js +8 -4
- package/lib/mode.d.ts +3 -2
- package/lib/mode.js +28 -41
- package/lib/model-routing.d.ts +2 -8
- package/lib/model-routing.js +59 -175
- package/lib/native-admission.d.ts +56 -0
- package/lib/native-admission.js +313 -0
- package/lib/native-pi-ai-wire.d.ts +3 -1
- package/lib/native-pi-ai-wire.js +47 -13
- package/lib/permission-control.d.ts +0 -3
- package/lib/permission-rpc.js +3 -3
- package/lib/preset-registry.js +3 -2
- package/lib/preset-skills.d.ts +3 -12
- package/lib/preset-skills.js +28 -58
- package/lib/profile-diagnostics.d.ts +1 -1
- package/lib/profile-diagnostics.js +2 -2
- package/lib/profile-remote.js +61 -22
- package/lib/profile-rpc.d.ts +4 -3
- package/lib/profile-rpc.js +39 -41
- package/lib/profile-runtime.d.ts +31 -74
- package/lib/profile-runtime.js +224 -639
- package/lib/profile-store.d.ts +18 -6
- package/lib/profile-store.js +106 -64
- package/lib/profile-types.d.ts +18 -4
- package/lib/profiles.d.ts +3 -1
- package/lib/profiles.js +9 -7
- package/lib/prompt-content.d.ts +1 -0
- package/lib/prompt-content.js +4 -1
- package/lib/prompts.d.ts +2 -12
- package/lib/prompts.js +11 -66
- package/lib/role-control-remote.d.ts +1 -4
- package/lib/role-control-remote.js +8 -36
- package/lib/role-control-rpc.d.ts +10 -36
- package/lib/role-control-rpc.js +112 -265
- package/lib/role-control-types.d.ts +3 -26
- package/lib/role-control-types.js +3 -4
- package/lib/role-identity.d.ts +5 -0
- package/lib/role-identity.js +10 -0
- package/lib/role-invocation.d.ts +2 -2
- package/lib/role-llm-runtime.js +5 -11
- package/lib/role-policy.d.ts +19 -53
- package/lib/role-policy.js +136 -525
- package/lib/role-providers.d.ts +5 -8
- package/lib/role-providers.js +20 -126
- package/lib/role-routing.d.ts +1 -3
- package/lib/role-routing.js +24 -34
- package/lib/role-subagents.d.ts +5 -14
- package/lib/role-subagents.js +149 -97
- package/lib/runtime-integration.d.ts +5 -109
- package/lib/runtime-integration.js +11 -779
- package/lib/session-metadata.d.ts +13 -12
- package/lib/session-metadata.js +6 -31
- package/lib/session-scope.js +6 -2
- package/lib/settings.d.ts +5 -18
- package/lib/settings.js +19 -43
- package/lib/state.d.ts +3 -2
- package/lib/state.js +26 -10
- package/lib/status.d.ts +1 -9
- package/lib/status.js +3 -55
- package/lib/web-fetch-address-policy.d.ts +24 -0
- package/lib/web-fetch-address-policy.js +189 -0
- package/lib/web-fetch-fakeip.d.ts +25 -0
- package/lib/web-fetch-fakeip.js +107 -0
- package/package.json +133 -113
- package/docs/research/deepseek-v4-pro.md +0 -74
- package/docs/research/oh-dsh.md +0 -96
- package/lib/child-admission.d.ts +0 -42
- package/lib/child-admission.js +0 -162
- package/lib/delivery-authority.d.ts +0 -68
- package/lib/delivery-authority.js +0 -260
- package/lib/legacy-child-policy.d.ts +0 -51
- package/lib/legacy-child-policy.js +0 -123
- package/lib/legacy-read-composition.d.ts +0 -20
- package/lib/legacy-read-composition.js +0 -144
- package/lib/legacy-read-contracts.d.ts +0 -157
- package/lib/legacy-read-contracts.js +0 -39
- package/lib/legacy-read-host.d.ts +0 -19
- package/lib/legacy-read-host.js +0 -67
- package/lib/legacy-read-integration.d.ts +0 -121
- package/lib/legacy-read-integration.js +0 -522
- package/lib/legacy-read-proxy.d.ts +0 -26
- package/lib/legacy-read-proxy.js +0 -237
- package/lib/native-child-evidence.d.ts +0 -42
- package/lib/native-child-evidence.js +0 -133
- package/lib/role-runs.d.ts +0 -135
- package/lib/role-runs.js +0 -304
- package/lib/session-persistence.d.ts +0 -35
- package/lib/session-persistence.js +0 -304
- package/lib/subagent-runtime.d.ts +0 -45
- package/lib/subagent-runtime.js +0 -131
- package/prompts/deepseek-flash.md +0 -11
- package/prompts/deepseek-v4-pro.md +0 -14
- package/scripts/cold-profile-composition.mjs +0 -329
- package/scripts/cold-profile-sources.mjs +0 -238
- package/scripts/migrate-cold-profile.mjs +0 -315
- package/scripts/repair-session-log.mjs +0 -476
- package/scripts/session-repair-native-verifier.mjs +0 -367
package/docs/releasing.md
CHANGED
|
@@ -1,280 +1,74 @@
|
|
|
1
|
-
# DSMM
|
|
1
|
+
# DSMM source readiness and release
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
DSMM uses `.github/workflows/dsmm-release.yml` and the controls under `dsmm/scripts/`. The root ocmm completion checker is not its completion authority. This document defines the current working-source contract; it does not authorize a commit, push, tag, workflow dispatch, publication or installation.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Source and package boundary
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
`@dsmm/dsmm@0.3.1` targets exactly DSH `0.2.1-rc.2`, tag `dsmm-scoped-v0.3.1` and archive `dsmm-dsmm-0.3.1.tgz`. Its runtime composition uses the official `@deepseek-ai/dsh-agent`, `@deepseek-ai/dsh-subagent` and `@deepseek-ai/dsh-session-persistence-jsonl` packages at that exact version. The published `0.3.0` tag, archive and release policy retain their original rc.1 identity and custom-owner acceptance grammar; they are historical evidence, not a policy fallback for 0.3.1. Public runtime requires Node.js 22 or later.
|
|
8
8
|
|
|
9
|
-
The
|
|
9
|
+
The 0.3.1 release contract does not freeze a guessed compiled-file inventory. It requires the main, client, preset-skill, package metadata and locale resources, validates every declared public module/resource target against the packed archive, and follows relative module imports to delivered targets. Additional public entries are admitted only through this resolvable manifest contract. Retired custom-owner entries (`./agent-registry`, `./subagent-runtime`, `./session-persistence` and `./legacy-read-host`) are not valid 0.3.1 public entries. Historical release metadata and compiled inventories remain version-bound.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
## Build-only release preparation
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
The exact 0.3.1 release lane builds and packs without running test suites, test typechecks, source-content comparisons, Docker/browser acceptance or fresh-install tests. Compilation and resource generation remain required. This exception is not a future-version range: unreviewed versions remain rejected. Use the existing approved toolchain and platform-matching dependencies; do not change root ocmm/LSP versions or the unrelated Codex adapter for a DSMM release.
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
DSMM-managed external LSP stays off in this version, including with `lsp.enabled:true`, and its settings controls are hidden. The retained implementation, original configuration and historical manual patch aren't a supported activation entry. DSH's own LSP and independently configured MCP remain unaffected. The current `dsmm-release.mjs` validator still requires a completed `receipt.lsp` with `directNativeDiagnosticsAndFormat` and `nativeDshMcpClient`; `docker-smoke.mjs` independently exercises the retained interface. These requirements apply to the current release contract, not only historical versions. The unresolved Windows workspace-path diagnosis isn't a prerequisite for implementing this version's features and doesn't waive release validation. See [LSP boundary](lsp.md).
|
|
18
|
-
|
|
19
|
-
### Explicit source and receipt APIs
|
|
20
|
-
|
|
21
|
-
The DSMM-local `release-contract.mjs` exposes exact `isSource022`, `sourceContractForVersion`, `startupProfileContract`, `COMPILED_NAMES_022`, `PUBLIC_RUNTIME_EXPORTS_022` and `STABLE_UI_CHECKS_022` policies. `startupProfileContract("0.2.2", {sourceContract: "0.2.2"})` selects **`stable-native-first-022`**. It does not select the 0.2.0 central startup proof or the old menu/mode grammar. An omitted source contract retains the historical default interpretation; an explicit mismatched or unreviewed source contract fails closed. Historical picker/session-profile producers refuse explicit stable native identities rather than fabricate old UI proof. Only exact reviewed versions enter release validators; unknown future versions are refused, never admitted through a SemVer range.
|
|
22
|
-
|
|
23
|
-
`dsmm-release.mjs` selects the shared six-check stable UI grammar only for exact reviewed 0.2.1/0.2.2 identities and binds it to installed version, artifact SHA256, genuine native Gateway/operator, observed RPC/stream activity, actual native bootstrap and cleanup. The 0.2.2 browser receipt kind is `native-client-stable-first-022`; Core, Web and headless native proofs must carry the actual `sourceContract`, installed `packageVersion` and frozen artifact SHA256. `dsmm-registry-install-probe.mjs` selects sixteen exports for 0.2.2 and nine for 0.2.1, with each version's own compiled inventory. `COMPILED_NAMES_022` adds `llm-runtime`, `managed-settings`, `permission-bash`, `permission-pwsh`, `permission-native-command`, `permission-fs`, `permission-fs-search` and `permission-web` JS/declaration pairs. Exact executable skill-resource white lists include packaged helpers and self-tests such as `dap.test.mjs` and `pi_family.py`; unlisted executable skill resources remain refused. `check-dsmm-release-completion.mjs` consumes these local validators; Root controls and all historical metadata, roles, mode, startup, receipt and default interpretations remain unchanged. The 0.2.2 exports and compiled additions do not expand historical inventories. Shared behavior never permits adopting or relabelling another version's proof, digest, commit, run or attempt.
|
|
24
|
-
|
|
25
|
-
`COLD_PROFILE_SCRIPTS_022` requires `scripts/migrate-cold-profile.mjs`, `scripts/cold-profile-composition.mjs` and `scripts/cold-profile-sources.mjs` in the 0.2.2 tarball, in addition to the existing repair-session scripts. The registry probe verifies their installed bytes and requires its `coldMigrationResources` check. These are exact 0.2.2 resources, not additions to the 0.2.1/0.2.0 script white lists. Their delivery does not authorize running a migration or installing into a user profile.
|
|
26
|
-
|
|
27
|
-
The source `check:release` command invokes `check-release-readiness.mjs` for exact 0.2.2. It requires the manifest's sixteen-export and package-files contracts, offline frontend resources, every source-derived compiled JS/declaration pair, required resource trees and operator scripts, including the three cold-profile scripts. It also requires `docs/native-permissions.md` and `docs/deferred-native-approval-risk.md`, license parity, DSMM locale metadata, native client registration and the profile deployment boundary, using a script-free npm pack preview. This source readiness receipt is not frozen-artifact acceptance, registry installation or terminal completion; the dedicated release validator's exact tarball whitelist must also accept the complete package.
|
|
28
|
-
|
|
29
|
-
### Explicit source-test application fixtures
|
|
30
|
-
|
|
31
|
-
Cold-profile source tests require an explicit `DSMM_COLD_PROFILE_SDK_ANCHOR` pointing to the fixed rc.2 SDK manifest and `DSMM_COLD_PROFILE_GENUINE_SEED` pointing to a prepared, platform-matching application seed. Prepare that seed once in a new task-owned temporary directory:
|
|
32
|
-
|
|
33
|
-
```powershell
|
|
34
|
-
$env:DSMM_COLD_PROFILE_SDK_ANCHOR = "<absolute path to the isolated rc.2 SDK package.json>"
|
|
35
|
-
$env:DSMM_COLD_PROFILE_GENUINE_SEED = "<new absolute task-owned temporary directory>"
|
|
36
|
-
node dsmm/test/prepare-cold-profile-genuine-seed.mjs --destination $env:DSMM_COLD_PROFILE_GENUINE_SEED
|
|
37
|
-
```
|
|
38
|
-
|
|
39
|
-
This explicit preparation installs TUI `0.13.0` in an isolated profile and verifies the fixed Desktop source against its Git blob identities. It requires separately authorized network/package provisioning, refuses an existing destination and does not install into user profiles. Source-test consumption is offline: each case receives a physical, independently writable copy of the read-only seed. Missing or invalid inputs fail rather than falling back to a host SDK, downloading implicitly or skipping genuine application checks. Desktop tests invoke its actual `createPluginProfile`; they do not establish Electron activation.
|
|
40
|
-
|
|
41
|
-
CI extracts the fixed SDK into task storage, exposes the same manifest through `DSMM_TEST_DSH_ENTRY` and `DSMM_COLD_PROFILE_SDK_ANCHOR`, prepares one native-platform seed before source tests, and supplies `DSMM_COLD_PROFILE_GENUINE_SEED`. A Windows seed is not a Linux dependency closure. These fixtures do not replace frozen-artifact installation or native browser acceptance.
|
|
42
|
-
|
|
43
|
-
### Fresh frozen-byte CI acceptance
|
|
44
|
-
|
|
45
|
-
The required dedicated workflow sequence is:
|
|
46
|
-
|
|
47
|
-
1. Resolve the exact tag, peeled source, workflow/control commit, event, fixed run/attempt and trusted default-branch ancestry. Verify source inputs in a fresh cold checkout with the fixed offline source snapshot; no old-Root fallback, skip or developer-cache substitution is accepted.
|
|
48
|
-
2. Run source checks and build. Materialize only the explicitly authorized fixed third-party resources before build-bearing commands. Preserve unchanged Root package/lock/dependency policy; missing SDK/native/language-server tools fail and require reporting, not workstation installation.
|
|
49
|
-
3. Pack **once with pinned pnpm**, between pre/post `assert-source` guards. Freeze the exact `dsmm-dsmm-0.2.2.tgz` bytes. Only the checked generated outputs and fixed materialized resources may accompany tracked tagged inputs.
|
|
50
|
-
4. Independently install the frozen artifact into fresh native Web/headless homes. Bind the tarball and every trusted acceptance/support script read-only. No checkout import, repack, receipt adoption or fake callback-only UI is acceptance.
|
|
51
|
-
5. Recheck cold Core, native readonly/persistence/history/lifecycle gates, retained LSP interface smoke checks and real stable browser behavior. The cold public native composition must load base/web/DSMM bundles, explicitly disable stock subagent, load exactly one custom Host-owned runtime and Main, observe binding `dsmm`, `deliveryFenceReady: true`, `restartRequired: false`, and experimental legacy unconfigured/unavailable. Independent LSP smoke isn't activation of DSMM's automatic integration.
|
|
52
|
-
6. Publish those unchanged accepted bytes through GitHub Actions OIDC with genuine CI provenance. No local publish token/static-auth fallback, publish retry or overwrite is permitted.
|
|
53
|
-
7. Verify public registry digests, genuine provenance, exact registry bytes and a fresh profile-owned native headless installation; only then finalize non-overwriting public GitHub assets/checksums.
|
|
54
|
-
8. Run the DSMM-local terminal checker for the exact terminated run/attempt from the released checkout.
|
|
55
|
-
|
|
56
|
-
The real compiled browser gate uses the native Renderer and supported composition-owned operator/Gateway at **1280×900**, with a local deterministic SDK provider and no online account, credentials or quota. Its exact six checks are `publicNativeCapturedChild`, `browserEditSaveWarning`, `browserFutureApplyAndStaleCas`, `browserCurrentApplyAndStaleCas`, `browserChildrenNativeInboxReceipt` and `browserChildrenNativeMessage`. The same receipt also requires a browser-triggered foreground-to-background transition for the exact published native run/child, one idempotent native job, actual job completion/output, read-only child denials and no-event/no-model-call cutoff refusals. Page errors and external requests must be empty; the producer must observe genuine native child message delivery and captured metadata, not merely return completion callbacks. No pre-CI local smoke receipt satisfies this gate: each new frozen CI tarball must exercise these surfaces again.
|
|
57
|
-
|
|
58
|
-
The required read-only hook support set is `profile-ui-harness-{server,browser,native}.mjs`, `native-picker-{harness,browser,proof}.mjs`, `release-contract.mjs`, `stable-native-acceptance.mjs` and `profile-ui-harness-stable021{,-native}.mjs`. The stable021-named files are shared behavior producers, not fixed receipt identities: exact 0.2.2 dispatches to `runStableNativeAcceptance` with `sourceContract: "0.2.2"`, checks the installed manifest and passes that identity into the native browser producer. The historical hook remains available for its own identities. The owned shell renders actual installed Profiles/Children contributions using the native Renderer and native UiSession scope, without replacing vendor bundles or manufacturing a session binding.
|
|
59
|
-
|
|
60
|
-
The owned native root uses the supported `standard` preset composition, including a Jobs controller serving its actual owner scope. Captured child identity binds the native session ID, admission epoch, route and immutable capture; start-count evidence compares the native child catalog. Background request-count evidence binds the original child model and fixture invocation, while native parent completion handling retains the parent's model authority.
|
|
61
|
-
|
|
62
|
-
The 0.2.2 registry visibility budget is **120,000 ms** by default, with at most **300,000 ms** explicitly permitted. Metadata, archive and provenance share one deadline; only post-publication HTTP 404 reads may wait. The special 20-minute policy remains exclusive to historical 0.1.9. Wrong bytes/provenance/identities and non-404 transport failures fail closed; publisher absence checks stay single-shot.
|
|
63
|
-
|
|
64
|
-
### Terminal authority and immutable failure handling
|
|
65
|
-
|
|
66
|
-
After the authorized matching workflow terminates, use the released checkout and a new receipt path:
|
|
67
|
-
|
|
68
|
-
```powershell
|
|
69
|
-
node dsmm/scripts/check-dsmm-release-completion.mjs terminal --run-id <actual-run> --run-attempt <actual-attempt> --control-sha <tagged-control-sha> --receipt <new-022-terminal-receipt.json>
|
|
70
|
-
```
|
|
71
|
-
|
|
72
|
-
Only exit **0** with receipt outcome **COMPLETED** proves release completion. The five exact jobs (`import-bootstrap` skipped/NOT_APPLICABLE on the future lane), source/tag/control, fixed run/attempt, fresh Docker acceptance, registry install/provenance and public assets/checksums must agree. Workflow success, source tests, local packed smoke or an installed package alone are insufficient. Exit 1/FAILED or 2/UNRESOLVED preserves partial publication: report it, do not move/delete/recreate the tag, adopt another run's proof, repack, overwrite packages/assets or repair in place. A new version or same-identity rerun needs its applicable separate authorization.
|
|
73
|
-
|
|
74
|
-
Actual production login and Electron/Desktop activation remain unexercised; local installation or global/session migration is not authorized by the release proof. Rollback uses supported carrier operations and reviewed immutable versions with CAS/ownership checks, never credential/session restoration or overwriting later user changes.
|
|
75
|
-
|
|
76
|
-
## Historical 0.2.1 source and proof authority
|
|
77
|
-
|
|
78
|
-
The exact **@dsmm/dsmm@0.2.1**, **dsmm-scoped-v0.2.1**, **dsmm-dsmm-0.2.1.tgz** identity retains its first-usable stable native interpretation. Its explicit `isSource021`, `COMPILED_NAMES_021`, `PUBLIC_RUNTIME_EXPORTS_021` and `STABLE_UI_CHECKS_021` policies select `stable-native-first-021` and browser receipt kind `native-client-stable-first-021`. The nine exports, six browser checks, Host-owned runtime, cold Core, CAS/captured-child/readonly/cutoff/background/bootstrap gates, OIDC/frozen-byte/registry/provenance and terminal requirements above apply to its own bytes and identity. Its native subproof interpretation and historical omitted-selector defaults remain unchanged; the 0.2.2 native version/digest fields are not retroactive requirements on old 0.2.1 receipts. The default visibility deadline remains 120,000 ms with a 300,000 ms maximum. `runStable021Acceptance` remains an exact 0.2.1 producer and refuses a 0.2.2 installation. No 0.2.1 artifact or receipt establishes 0.2.2 acceptance or completion.
|
|
79
|
-
|
|
80
|
-
## Historical 0.2.0 source and proof authority
|
|
81
|
-
|
|
82
|
-
The following exact 0.2.0 contract retains its own metadata, catalog, mode/startup and receipt interpretation. It does not define 0.2.1 acceptance or authorize reuse of 0.2.0 bytes.
|
|
83
|
-
|
|
84
|
-
### 0.2.0 working-source authority
|
|
85
|
-
|
|
86
|
-
The reviewed source candidate is **@dsmm/dsmm@0.2.0**, tag **dsmm-scoped-v0.2.0**, artifact **dsmm-dsmm-0.2.0.tgz**. Native parity stages A/B/C0/C/D0/D change the working source; this is not the earlier release-only/menu-visibility candidate. Source readiness is not publication or installation completion. Only separately authorized parent-owned commit/push/tag/release operations may publish these bytes; installation waits for terminal completion. The historical proposal below preserves old identities, installed-state facts and proof contracts; it is not the current product specification or an executable release checklist for these changed bytes.
|
|
87
|
-
|
|
88
|
-
Current native metadata is `{meta: {title: "DSMM", description: <localized nonempty text>}}` in both exported locales. Package `@dsmm/dsmm`, Loader row `dsmm`, commands, public exports and technical role IDs are unchanged. Deepwork is the module/mode name, not the package/Core title. The catalog contains 22 canonical roles/categories (11 base roles and 11 categories) and fourteen configurable Agent-scoped native skills with metadata discovery and lazy resource/body loading. DW Orchestrator, DW Builder and DW Planner are eligible standing roots when enabled; the other 19 are auxiliary, and cross-cutting defaults off. Availability must be established by the actual native catalog/substrate, not template files.
|
|
89
|
-
|
|
90
|
-
### Configuration, mode and captured state
|
|
91
|
-
|
|
92
|
-
The global-only `modules.deepwork.enabled` master defaults `true`; ordinary session mode defaults `false`. A profile's `defaultActive` is not the global master and cannot bypass it. Saved explicit `deepwork/mode` intent wins over the profile mode default, including same-default intent. DW presets default on but are not locked: explicit off retains persona, read-only and Git/Host permissions. Module availability, mode intent and profile selection are separate state, not interchangeable switches.
|
|
93
|
-
|
|
94
|
-
Core stays mounted when Deepwork is cold-off: official native **Plugins → DSMM**, the real bundle/entry Config page and the fixed `dsmmConfig` RPC remain available without creating a session. **Save Global DSMM** edits only central sparse `config.json`; **Save current DSH profile override** edits only the exact entry's native volatile form/patch under Host authorization and revision checks. Named JSONC **Deepwork Profiles** is independent, not a replacement deployment store. `DSMM_CONFIG_SCHEMA` remains the plain/sparse public interface; optional volatile `DSMM_NATIVE_CONFIG_SCHEMA` is separate native transport, not expanded business defaults.
|
|
95
|
-
|
|
96
|
-
Inspection projects schema-allowlisted safe desired/startup/next-root/captured state; arbitrary raw config, paths, provider errors and credentials are not status output. The authorized configuration editor is the explicit raw-editor exception, not a model capability. Every Core RPC still requires actual invocation peer identity equal to `connection.operator`, public `webServer.host === '127.0.0.1'`, Host writability and final owner/lifetime checks; a loopback-looking client URL is not authority. Reads create no files or locks.
|
|
97
|
-
|
|
98
|
-
Saves do not restart, remount, cancel, reapply a named profile or fake a hot switch. Existing busy/blank parents and their future children keep captured deployment/epoch. A new ordinary root admits current valid desired values only within the startup substrate and original permission intersection. An explicit idle session-profile Apply changes only that old root's overlay; existing children remain old. Startup-only or absent module capability is **restart-required**. Desired-on after cold-off remains pending until an independent supported restart; profiles cannot overcome the master ceiling. See [settings/status](settings-status.md), [profiles](profiles.md) and [compatibility](compatibility.md).
|
|
99
|
-
|
|
100
|
-
### Cold tracked source and offline distribution checks
|
|
101
|
-
|
|
102
|
-
A cold tracked checkout has the authored OCMM source inputs, DSMM source-sync assets and generated role presets, but not the gitignored third-party frontend bodies/data/Python or provenance inventory. Default build, source check and readiness remain offline and fail closed until those fixed resources exist. Missing-resource refusal is expected cold-source evidence, not permission for a build to download implicitly.
|
|
103
|
-
|
|
104
|
-
From the repository root, after dependencies have been separately provisioned, run the one explicit source-materialization operation before **any** DSMM build (including `typecheck:test` and `test`, which build internally):
|
|
15
|
+
A cold checkout may lack ignored frontend resources. Explicitly authorized preparation uses:
|
|
105
16
|
|
|
106
17
|
```powershell
|
|
107
18
|
node dsmm/scripts/materialize-frontend.mjs --sync
|
|
108
|
-
|
|
109
|
-
node --experimental-strip-types dsmm/scripts/check-source-assets.mjs
|
|
19
|
+
pnpm run build
|
|
110
20
|
pnpm --dir dsmm build
|
|
111
|
-
pnpm --dir dsmm
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
`--sync` alone permits network access to declared immutable GitHub trees/blobs and LICENSE texts at the three commits in `scripts/frontend-recipe.mjs`. It validates exact mapped paths and Git blob bytes before writing; no third-party Python/script is executed, HEAD substituted or missing path dropped. Offline readiness covers all **118** frontend resources plus provenance, **158** source-sync records and **47** generated role assets. A second sync of a ready tree reports zero requests and zero differences. Keep original Root prompts/skills available for the source validator; do not hand-write generated assets or substitute existing repo caches for cold-source evidence.
|
|
115
|
-
|
|
116
|
-
For byte-preserving tracked-snapshot QA on Windows, use command-local `git -c core.autocrlf=false archive --format=tar --output <owned-snapshot.tar> HEAD`, then extract into a fresh marked directory. This does not change Git configuration. A default archive can apply checkout CRLF conversion even when HEAD's fixed LICENSE blobs are correct; such non-verbatim unowned bytes are deliberately refused by the materializer. Do not normalize or delete a license to bypass that guard. Neither this exact-blob snapshot nor read-only access to already installed dependencies proves a clean Linux `pnpm install`/`allowBuilds` path.
|
|
117
|
-
|
|
118
|
-
The future-source CI step now explicitly runs `node dsmm/scripts/materialize-frontend.mjs --sync` before DSMM build-bearing commands. All normal build/check commands remain offline. This source preparation changes no fixed tag/control identity, publish authentication, retry/deadline, cache, job conclusion, registry lane or immutable receipt policy; it is not evidence that CI or publication is green.
|
|
119
|
-
|
|
120
|
-
Linux source tests require a native Linux dependency closure from the unchanged frozen Root lock and the built Root `dist/bin/ocmm-lsp`. The POSIX session verifier dynamically imports the real `@deepseek-ai/node-addon-system/flock` wrapper, holds its native writer lease, and checks Linux `/proc` for carrier quiescence. A Windows `node_modules` bind is not that closure. CI builds the required frozen-artifact runtime first, records its immutable image ID, and copies its already-installed `@deepseek-ai/dsh@0.2.0-rc.2` directory from a never-started extraction container into fresh `RUNNER_TEMP` storage. The extractor validates SDK identity and contained native preset inputs, removes exactly its created container, and supplies the real manifest through the test-only `DSMM_TEST_DSH_ENTRY` resolver. Source fixtures retain their own scoped registry identity and all source tests run on the host with its normal Linux dependencies, built LSP and independently verified Go and `gopls` executables. The cold-cache Go definition/references test requires both tools; a cached Go SDK alone is not the language-server closure. Additional software provisioning requires separate explicit authorization. No second npm installation, Root manifest/lock change or local diagnostic hook is used. The frozen-artifact gate reuses the same immutable runtime image; workflow-owned tag cleanup is required before the prepare job succeeds. Missing native-addon/platform or language-server tools must remain failures; do not skip tests, forge writer exclusion or relax quiescence. Source SDK/container diagnostics are separate from acceptance of the fixed frozen artifact.
|
|
121
|
-
|
|
122
|
-
Source-validation software provisioning is authorized only for task-owned Docker/CI environments: Go **1.27.2** and gopls **v0.23.0**. CI keeps the toolchain, GOBIN, GOPATH, module/build caches and temporary Go files under a dedicated `RUNNER_TEMP` prefix, disables shared cache restoration and automatic toolchain switching, verifies both exact versions, and adds only the task-owned gopls directory to the job's PATH. No local installation, global Go configuration or Root lock mutation is authorized by this provision.
|
|
123
|
-
|
|
124
|
-
Development distribution acceptance additionally requires script-free `npm pack --dry-run --json --ignore-scripts` and a **real** `npm pack --json --ignore-scripts --pack-destination <marked-temporary-directory>` from the same built source, followed by unpacking and exact path/byte comparison with the preview. The current set is **459 files**, including compiled client/Core outputs, seven public exports, locales, complete skills/vendor resources, attribution/licenses and provenance. Resolve exports and exercise the unpacked module through real pinned rc.2 Cordis Loader, Settings and Gateway lifecycle in a keyless owned fixture: Core read/save/status remains usable cold-off, desired-on is pending, and no model request/job/install occurs. A preview, exports alone or importing checkout runtime does not prove standalone packed behavior. This development npm pack is not the release publisher's frozen pnpm artifact or installed-registry proof.
|
|
125
|
-
|
|
126
|
-
### Three distinct native evidence surfaces
|
|
127
|
-
|
|
128
|
-
1. **Actual Windows rc.2 Web**: real official native Config/Main entry paths and two isolated same-Home profile cases establish native Plugins discovery, independent saves, safe inspection and captured/restart behavior. Stable D evidence may be reused when those inputs are unchanged. A community tab is not the official primary entry point.
|
|
129
|
-
2. **Official Desktop fixed source**: `deepseek-ai/deepseek-harness@5badb15009ae1756c3afe0ae0cef1faafc290ccc` (`0.2.1-alpha.1`) is a shared-contract compatibility target, not an installed SDK upgrade or actual Desktop execution.
|
|
130
|
-
3. **Actual Electron/Desktop**: no executable is installed or run in this acceptance environment. Web/component/packed Loader evidence does not establish Electron activation, private profile migration or production installation.
|
|
131
|
-
|
|
132
|
-
### DSMM-local reviewed release controls
|
|
133
|
-
|
|
134
|
-
The Root controls remain unchanged historical authorities. `.github/workflows/dsmm-release.yml` invokes the source-owned `dsmm/scripts/dsmm-release.mjs`, `dsmm/scripts/check-dsmm-release-completion.mjs`, and `dsmm/scripts/dsmm-registry-install-probe.mjs`. These local controls preserve the original identity checks, frozen bootstrap policy, exact assets/checksums, registry/provenance checks, static-auth refusal, OIDC-only publishing, no repack/retry/overwrite policy and terminal five-job gate. An explicit **0.2.0** contract selects DSMM locale/native metadata, the exact 22-role catalog, current Core compiled outputs and mutable standing DW mode proof; no later version inherits this grammar without review. Shared picker helpers require the DSMM-local caller's `sourceContract: "0.2.0"` argument bound to that exact trusted package version. Default Root consumers reject 0.2.0 picker proof rather than infer the new grammar from a version or receipt flag; default mode-step validation retains the historical eight-scenario grammar. Historical 0.1.x titles, compiled inventories, locked-mode receipts and continuation identities remain valid only for their own identities. Never relabel old receipts as new acceptance.
|
|
135
|
-
|
|
136
|
-
CI packs once with pinned pnpm between local `assert-source` guards from the exact tracked tagged checkout after source/build checks. HEAD, peeled tag, event, workflow/control SHA, package version and trusted default-branch ancestry must agree before and after packing. Dirty tracked DSMM bytes (including a local roadmap edit), nonignored untracked package files, or dirty Root build manifests/lock/workspace/TypeScript configuration refuse packing. The Root inputs are read-only authority checks, not permission to edit them. Build outputs and verified materialized resources are the only generated package surfaces. Do not pack the concurrently edited developer checkout for publication; a fresh tagged Actions checkout includes only the committed roadmap version. Leave unrelated Root work and local plans/journals outside the release artifact.
|
|
137
|
-
|
|
138
|
-
The independent frozen-artifact Docker lane installs the unchanged tarball in fresh native Web/headless homes and drives actual delegation, read-only denials, profile CAS/epoch/history/recovery/model-selection and installed native metadata. The browser menu contract is `native-menu-mode-020`: retain every prior native picker/menu race, geometry, cleanup and authentication nonclaim, plus actual persisted **standing DW off/on** writes. The old locked label is not 0.2.0 proof. A separate cold-off real native Core Host proves strict operator-owned `dsmmConfig`, native entry SettingsForms, independent global/profile saves, no remount/session creation from saves, desired-on restart-required state and the master ceiling. Source tests or a boolean completion label cannot replace this native proof.
|
|
139
|
-
|
|
140
|
-
For 0.2.0, retain the default **120,000 ms** post-publication metadata visibility policy and **300,000 ms maximum** permitted override; the special shared 20-minute visibility policy remains exclusive to historical 0.1.9. Publisher absence checks remain single-shot and no visibility wait authorizes a publish retry. Wrong bytes, identities, provenance or install evidence fail closed. Do not extend budgets or skip proof because CI failed.
|
|
141
|
-
|
|
142
|
-
After the authorized tag's exact workflow run terminates, use the released checkout and a new receipt path:
|
|
143
|
-
|
|
144
|
-
```powershell
|
|
145
|
-
node dsmm/scripts/check-dsmm-release-completion.mjs terminal --run-id <actual-run> --run-attempt <actual-attempt> --control-sha <tagged-control-sha> --receipt <new-020-terminal-receipt.json>
|
|
21
|
+
pnpm --dir dsmm generate:roles
|
|
146
22
|
```
|
|
147
23
|
|
|
148
|
-
Only
|
|
149
|
-
|
|
150
|
-
## Historical release-only 0.1.9 proposal (not current authorization)
|
|
151
|
-
|
|
152
|
-
The following procedure and historical facts are retained for audit. References to Deepwork metadata, twelve roles and standing DW locked mode belong to the old proof contract, **not** the current DSMM product above. They must not be applied to new changed bytes or adopted as current completion evidence.
|
|
24
|
+
Only explicit `--sync` fetches declared immutable upstream resources and verifies their provenance. Existing local resource bodies are not locked by file-content hashes. Normal build/check commands remain offline. [Source synchronization](skill-sync.md) describes presence, closure, attribution and path-safety requirements. Build output is not runtime verification.
|
|
153
25
|
|
|
154
|
-
|
|
26
|
+
Release preparation resolves the trusted tag, peeled product source, workflow/control commit, event and fixed run/attempt. Pack once from the selected source checkout with pinned pnpm between the source guards. Freeze that exact tarball; never substitute a development package, repack accepted bytes or adopt another run's receipt.
|
|
155
27
|
|
|
156
|
-
0.1
|
|
28
|
+
For exact 0.3.1, `freeze` does not require a native `--receipt`. It produces an `artifact-integrity-only` receipt from the actual package bytes, recording `sourceChecks`, native acceptance and fresh installation as `NOT_RUN_RELEASE_POLICY`. The existing receipt asset filename is a transport identity, not a claim that Docker tests ran. Package digests, tag/run identity, official runtime dependency pins, genuine provenance and non-overwrite protection remain mandatory. Exact 0.3.0 retains its own historical build-only identity; earlier versions retain their native acceptance requirements.
|
|
157
29
|
|
|
158
|
-
|
|
30
|
+
## Current npm publication completion
|
|
159
31
|
|
|
160
|
-
The `
|
|
32
|
+
The working-source topology `split-publication-v1` has six jobs: `import-bootstrap`, `prepare`, `publish`, `prepare-recovery-022`, `publish-recovery-022` and `github-release`. The selected prepare/publish pair must succeed and the other pair must be skipped. Bootstrap import succeeds only for bootstrap and is otherwise skipped. Missing or duplicate jobs, wrong identity, cancelled workflow or an unsuccessful selected publisher cannot complete.
|
|
161
33
|
|
|
162
|
-
The
|
|
34
|
+
The guarded publisher uses the unchanged accepted tarball, ignored lifecycle scripts, GitHub Actions OIDC and genuine provenance. Static-token fallback, forged CI identity, implicit publish retry and package overwrite are forbidden.
|
|
163
35
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
### Preflight
|
|
167
|
-
|
|
168
|
-
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.
|
|
36
|
+
After an authorized matching run terminates, use its trusted control checkout and a new receipt path:
|
|
169
37
|
|
|
170
38
|
```powershell
|
|
171
|
-
|
|
172
|
-
git status --short
|
|
173
|
-
pnpm --dir dsmm typecheck:test
|
|
174
|
-
pnpm --dir dsmm test
|
|
175
|
-
pnpm --dir dsmm build
|
|
176
|
-
node dsmm/scripts/generate-role-assets.mjs
|
|
177
|
-
pnpm --dir dsmm check:release
|
|
178
|
-
npm pack ".\dsmm" --dry-run --json
|
|
179
|
-
pnpm --dir dsmm smoke:docker
|
|
180
|
-
pnpm run typecheck
|
|
181
|
-
pnpm test
|
|
182
|
-
pnpm run build
|
|
39
|
+
node dsmm/scripts/check-dsmm-release-completion.mjs terminal-publication --run-id <run> --run-attempt <attempt> --control-sha <trusted-control-head> --receipt <new-publication-receipt.json>
|
|
183
40
|
```
|
|
184
41
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
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.
|
|
188
|
-
|
|
189
|
-
For 0.1.9, 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.
|
|
190
|
-
|
|
191
|
-
### Phase 1: frozen artifact and independent Docker gate
|
|
192
|
-
|
|
193
|
-
Use the dedicated `.github/workflows/dsmm-release.yml` **future tag path** for the authorized `dsmm-scoped-v0.1.9` 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.9.tgz`, record its actual size/SHA256/SHA1/SHA512 integrity, and freeze it. Never reuse the old 0.1.2 hash/receipt/artifact or any completed successor's bytes.
|
|
194
|
-
|
|
195
|
-
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.
|
|
42
|
+
Only exit 0 with `mode: npm-publication` and `outcome: COMPLETED` proves npm publication complete. The checker binds repository, workflow ID/path, trusted ancestry, event/ref, package/tag/peeled source, accepted bytes and checksums to the successful selected publisher. Ordinary source equals control; fixed recovery keeps separate product and control identities.
|
|
196
43
|
|
|
197
|
-
|
|
44
|
+
This topology has no post-publication `verify` job, registry-proof artifact, registry readback or fresh registry reinstall. It records workflow and `github-release` conclusions separately. Successful npm publication does not imply a complete public GitHub Release or passing functional tests.
|
|
198
45
|
|
|
199
|
-
|
|
200
|
-
- Actual enabled auxiliary delegation and native read-only denials, with exact role route/effort and aliased-parent `llm.resolveCallConfig` preflight against the fixture catalog.
|
|
201
|
-
- 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.
|
|
202
|
-
- 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.
|
|
203
|
-
- Existing native web/headless, session-persistence/history compatibility, LSP, sentinel and cleanup scenarios remain required; naming checks do not replace these runtime contracts.
|
|
46
|
+
## Independent GitHub Release delivery
|
|
204
47
|
|
|
205
|
-
|
|
48
|
+
`github-release` depends on both prepare/publish pairs with cancellation and selected-success/other-skipped guards. Empty or dual accepted-artifact outputs refuse before download. Transport creates only an absent draft and uploads the original tarball, integrity/acceptance receipt and `SHA256SUMS.txt`.
|
|
206
49
|
|
|
207
|
-
|
|
50
|
+
`transport --output <new-file>` records the draft and asset IDs created by that invocation. `finalize --transport <file>` binds those IDs to accepted source/control/run/attempt and package digests, validates all three assets/checksums and the remote tag, then makes only that draft public. It cannot adopt another Release, overwrite assets or repair partial delivery. The fixed historical bootstrap draft is the sole policy exception.
|
|
208
51
|
|
|
209
|
-
|
|
52
|
+
Exit 1 (`FAILED`) or 2 (`UNRESOLVED`) requires reporting the partial or unknown state. Preserve tags, packages, assets and receipts. Do not move/delete/recreate a tag, repack, overwrite, adopt another run's proof or repair in place. A new version or same-identity rerun requires separate authorization. Report GitHub delivery failure independently of npm publication.
|
|
210
53
|
|
|
211
|
-
|
|
54
|
+
## Historical proof and restricted recovery
|
|
212
55
|
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
The trusted artifact version alone chooses the proof contract: historical 0.1.6 SELECT and 0.1.7 native-menu grammars remain unchanged; compact-menu/mode proof is version-gated to reviewed 0.1.8 and 0.1.9 only, never applied retroactively. The 0.1.9 successor requires its own fresh identity-bound evidence for that unchanged plugin contract; 0.1.8 bytes or receipts are not adopted. Later versions require their own explicitly reviewed proof contract and fail closed until reviewed. Reject a relabelled old receipt, SELECT-only/old-slot evidence, missing states or mismatched digest/version; retain every native request/header/projection, CAS-ordering, race, busy, partial-model-failure, no-model and cleanup check. Use the installed native `Menu` through pointer and keyboard open/close/focus/arrow actions and refresh/session withdrawal. At widths 375, 768 and 1280, require one visible icon trigger, zero header SELECTs, one profile list, exactly one model action, bounded focus/header geometry, readable long labels/errors in a viewport-contained portal, and sessionless/blank coverage before any request. Pending CAS and refusals preserve admission/model and show only allowlisted codes/fields with refresh/retry guidance, never arbitrary wire messages, provider/credential identifiers or paths. Successful actions must have accessible live announcements without visible success prose.
|
|
216
|
-
|
|
217
|
-
Bind the hook and every trusted support module explicitly, including `profile-ui-harness-server.mjs`, `profile-ui-harness-browser.mjs`, `profile-ui-harness-native.mjs` and the `native-picker-{harness,browser,proof}.mjs` modules. The successor receipt's exact check and installed compiled-file inventories are version-gated; historical receipt grammars are not expanded. CI source/pack/publish/installed verification uses Node 24 / pnpm 11.9.0; the independent borrowed Docker runtime uses its recorded Node 22 / pnpm 12.8.1 environment. These are distinct evidence surfaces, not interchangeable build claims. Use supported native artifact installation and normal public dependency provisioning in owned Docker homes; offline exploratory A–F startup limitations are not the final gate or native browser proof.
|
|
218
|
-
|
|
219
|
-
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.
|
|
220
|
-
|
|
221
|
-
### Phase 2: authorized immutable publication
|
|
222
|
-
|
|
223
|
-
Publication requires explicit authorization for the new identity. Recheck `@dsmm/dsmm@0.1.9` and `dsmm-scoped-v0.1.9` 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.
|
|
224
|
-
|
|
225
|
-
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 parent-owned commit/push/tag/npm/GitHub actions for 0.1.9 only, not rewriting prior publications, the old 0.1.2 draft, app upgrades, global package-manager changes or authentication workarounds. The separately authorized official-carrier Desktop DSMM upgrade still waits for terminal completion of this exact new identity; the already verified official CLI/TUI 0.1.6 installation is not unfinished rollout work.
|
|
226
|
-
|
|
227
|
-
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`.
|
|
228
|
-
|
|
229
|
-
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.
|
|
230
|
-
|
|
231
|
-
#### Publication identity verification
|
|
232
|
-
|
|
233
|
-
The prospective 0.1.9 release Action verifier gives public metadata, the exact tarball URL and genuine provenance one shared 20-minute (1,200-second / `1200000` ms) visibility deadline, with the `verify` job bounded to 45 minutes. The visibility budget is shared across all three read surfaces, never reset for each stage. Only HTTP 404 reads may wait within that budget; transport failures, other HTTP statuses, wrong bytes, altered source/run identities and invalid provenance still fail closed. This never retries publishing or weakens publisher absence checks. Failures expose only finite stage/code/HTTP-status diagnostics, never raw credentials or provider errors. The old 0.1.8 300-second budget and failed receipt stay immutable; the new controls apply only to the separately authorized new 0.1.9 identity. The original 0.1.7 CI cause remains unproven; this visibility hardening does not repair or reinterpret its failed receipt.
|
|
234
|
-
|
|
235
|
-
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.
|
|
236
|
-
|
|
237
|
-
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.
|
|
56
|
+
Historical five-job and seven-job `split-recovery-022-v1` runs keep their own `terminal` completion requirements, including their original verification surfaces. Use the exact released checkout and run identity:
|
|
238
57
|
|
|
239
58
|
```powershell
|
|
240
|
-
|
|
241
|
-
dsh --profile dsmm-0.1.9-verify --from-default-profile headless --dump-config
|
|
242
|
-
dsh plugin --profile dsmm-0.1.9-verify add @dsmm/dsmm@0.1.9
|
|
243
|
-
dsh plugin --profile dsmm-0.1.9-verify list
|
|
244
|
-
dsh --profile dsmm-0.1.9-verify --dump-config
|
|
245
|
-
npm view @dsmm/dsmm@0.1.9 dist.integrity --registry "https://registry.npmjs.org/"
|
|
59
|
+
node dsmm/scripts/check-dsmm-release-completion.mjs terminal --run-id <run> --run-attempt <attempt> --control-sha <released-control-head> --receipt <new-terminal-receipt.json>
|
|
246
60
|
```
|
|
247
61
|
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
Historical audit reference only: this completed 0.1.6 publication/continuation remains immutable. Do not dispatch it again, republish its package or substitute its completion for the prospective 0.1.9 gate. The preserved identities and original failed history below belong only to 0.1.6.
|
|
251
|
-
|
|
252
|
-
The original `dsmm-scoped-v0.1.6` publication run `37281521750/1` published the immutable npm bytes but failed its verify job; its GitHub Release job was skipped. Preserve that failed history, original source/tag at `d2e499b3a61ef76033d417efbec3402a4739a8fe`, and original npm provenance. Supplemental verification does not rerun that workflow or republish npm.
|
|
253
|
-
|
|
254
|
-
Only the dedicated no-input `.github/workflows/dsmm-published-continuation-016.yml` may continue this separately authorized identity. Its fixed `--origin-version 0.1.6` policy binds accepted artifact `11332299033`, archive size `359262`, archive digest `sha256:3fedc92c35a88f0a75fdfc6ac8ef9a37ef138d902e5698f90ac969f66f6f4eb9`, and tarball SHA256 `b7b36fc69e892fb22b06a2428d360181d33bd95526ee2bc403c04b6307ed6c35`. The two jobs independently reload original acceptance and verify current registry bytes/provenance plus a fresh isolated Linux/Node 24 native install, then create/finalize only the missing original-byte GitHub Release. Any existing public Release or partial draft stops without adoption, repair, overwrite or deletion. No source pack/build, npm publisher/OIDC, tag mutation, full-workflow rerun or global install belongs to this continuation.
|
|
255
|
-
|
|
256
|
-
After the dedicated run terminates, use its actual run/attempt/control SHA and a new receipt path:
|
|
257
|
-
|
|
258
|
-
```powershell
|
|
259
|
-
node scripts/check-dsmm-release-completion.mjs terminal-continuation --origin-version 0.1.6 --run-id <actual-continuation-run> --run-attempt <actual-attempt> --control-sha <trusted-continuation-control-sha> --receipt <new-016-continuation-receipt.json>
|
|
260
|
-
```
|
|
261
|
-
|
|
262
|
-
Only exit `0` with `COMPLETED` establishes that historical two-run terminal proof for 0.1.6, not permission for the new 0.1.9 rollout below. A green supplemental run alone is insufficient; `FAILED`/`UNRESOLVED` preserve immutable partial state. The omitted-selector APIs/CLI and old continuation workflow remain fixed to historical 0.1.4; neither that receipt nor its archive/provenance can establish 0.1.6 completion.
|
|
263
|
-
|
|
264
|
-
### Phase 3: official installed-carrier Desktop rollout
|
|
265
|
-
|
|
266
|
-
Only after terminal 0.1.9 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.9`. 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. Preserve the enabled state and do not repeat unrelated CLI/TUI installation.
|
|
267
|
-
|
|
268
|
-
Preserve base/web bundles, deployment roles/skills, all 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 committed-sidecar versus absent-sidecar cold resume and the unknown removed auxiliary-root ID limitation in [compatibility](compatibility.md) before rollout. Do not silently substitute personas or delete history.
|
|
62
|
+
New six-job controls cannot retrospectively reinterpret an earlier run. Historical metadata, exports, native receipt grammars, provenance, assets and job identities remain version-bound. Existing 0.3.0 and new 0.3.1 integrity-only receipts never establish native or browser execution.
|
|
269
63
|
|
|
270
|
-
|
|
64
|
+
The restricted `recovery=unpublished-0.2.2` selector binds original workflow `374825007`, run `38822000490`, attempt `1`, failed prepare, skipped other jobs and no accepted artifact. It requires the original immutable tag/source and complete authenticated absence of npm and public/draft Release publication at entry and immediately before publish. **An already published version is ineligible.** Unknown selectors or extra inputs refuse; omitted/empty dispatch retains the frozen bootstrap policy.
|
|
271
65
|
|
|
272
|
-
|
|
66
|
+
Recovery uses independent control and original-product checkouts. `assert-source`, `pack` and recovery `freeze` require `--source-root`. Provenance names the actual new dispatch/control commit, while the receipt separately binds `productSourceSha` and `attestedControlSha`. No control repair is copied into the fixed product artifact.
|
|
273
67
|
|
|
274
|
-
|
|
68
|
+
Independent registry verification is reserved for historical or explicitly requested checks. Metadata, archive and provenance share the version's deadline: normally 120,000 ms, at most 300,000 ms explicitly; historical 0.1.9 alone permits twenty minutes. Only post-publication HTTP 404 reads may wait. Other transport, byte, provenance or identity failures refuse. Absence checks remain single-shot. Legacy finalization requires `--verification`.
|
|
275
69
|
|
|
276
|
-
|
|
70
|
+
## Installation and rollback
|
|
277
71
|
|
|
278
|
-
|
|
72
|
+
Publication does not authorize installation, migration, login or session repair. Desktop and CLI/TUI profiles are independent. Separately authorized installation uses the target carrier/profile and preserves providers, accounts, native model/effort, unrelated Loader rows, roles, UI preferences and history. Package installation is not proof of Electron activation.
|
|
279
73
|
|
|
280
|
-
|
|
74
|
+
Runtime rollback explicitly selects a reviewed prior configuration under revision and ownership checks. Package rollback uses supported carrier operations and an exact immutable version. Neither operation may overwrite later drafts, restore credentials, sign out, delete sessions or perform broad cleanup. Scoped and old unscoped bundles must not compete for the same `dsmm` entry. Clean only exact task-owned temporary resources.
|