@dsmm/dsmm 0.3.0 → 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 -40
- package/cordis.patch.yml +0 -13
- package/docs/agent-presets.md +26 -14
- package/docs/compatibility.md +19 -73
- 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 -280
- 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 +12 -2
- package/lib/child-capture.js +22 -5
- 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 +27 -52
- 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 +84 -24
- 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 +2713 -2361
- 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 +16 -20
- package/lib/index.js +130 -416
- 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/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 +33 -37
- 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 +104 -62
- 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 -269
- 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 -50
- package/lib/role-policy.js +136 -508
- package/lib/role-providers.d.ts +5 -8
- package/lib/role-providers.js +20 -86
- 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 +148 -106
- package/lib/runtime-integration.d.ts +5 -78
- package/lib/runtime-integration.js +11 -697
- package/lib/session-metadata.d.ts +13 -12
- package/lib/session-metadata.js +6 -31
- package/lib/session-scope.js +2 -1
- 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 +113 -103
- package/docs/research/deepseek-v4-pro.md +0 -74
- package/docs/research/oh-dsh.md +0 -96
- package/lib/agent-registry.d.ts +0 -36
- package/lib/agent-registry.js +0 -75
- package/lib/child-admission.d.ts +0 -40
- package/lib/child-admission.js +0 -151
- package/lib/delivery-authority.d.ts +0 -83
- package/lib/delivery-authority.js +0 -397
- package/lib/native-child-evidence.d.ts +0 -40
- package/lib/native-child-evidence.js +0 -104
- package/lib/role-runs.d.ts +0 -138
- package/lib/role-runs.js +0 -335
- package/lib/session-persistence.d.ts +0 -36
- package/lib/session-persistence.js +0 -304
- package/lib/subagent-runtime.d.ts +0 -57
- package/lib/subagent-runtime.js +0 -257
- package/prompts/deepseek-flash.md +0 -11
- package/prompts/deepseek-v4-pro.md +0 -14
package/docs/releasing.md
CHANGED
|
@@ -1,320 +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
|
-
The 0.3.
|
|
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
|
-
```powershell
|
|
18
|
-
node dsmm/scripts/check-dsmm-release-completion.mjs terminal --run-id <run> --run-attempt <attempt> --control-sha <released-commit> --receipt <new-030-terminal-receipt.json>
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
Only exit 0 with receipt outcome `COMPLETED` establishes completion. A workflow conclusion, producer boolean, local build, registry visibility, or browser receipt alone does not.
|
|
22
|
-
|
|
23
|
-
## Historical 0.2.2 stable native release contract
|
|
24
|
-
|
|
25
|
-
The reviewed source identity is **@dsmm/dsmm@0.2.2**, tag **dsmm-scoped-v0.2.2**, artifact **dsmm-dsmm-0.2.2.tgz**. The tag is permanently fixed to **dff1ac8ffd58316455256ef1c64c19d6e73e1293**. This is a distinct source and acceptance contract, not a relabelled 0.2.1 or 0.2.0 receipt or an inferred later-version override. Every historical tag, package, asset and receipt remains immutable. A working checkout or local smoke receipt is not release completion or publication authorization.
|
|
26
|
-
|
|
27
|
-
### Restricted unpublished recovery
|
|
28
|
-
|
|
29
|
-
The same trusted `.github/workflows/dsmm-release.yml` accepts only the explicit dispatch selector `recovery=unpublished-0.2.2` on `master` for recovery. An omitted or empty selector retains the frozen 0.1.2 bootstrap entry; unknown selectors or additional inputs fail closed. This is a new run with genuine new workflow/event/control identity, not a rerun of the original source-tag workflow. Only the recovery prepare/publish pair has `contents: write` for authenticated read-only draft-aware Release admission; the ordinary prepare/publish pair retains `contents: read`. OIDC write permission remains confined to the two mutually exclusive publishers.
|
|
30
|
-
|
|
31
|
-
`release-recovery-022.mjs` admits only original workflow ID **374825007**, run **38822000490**, current and fixed attempt **1**, terminal `prepare=failure` and the four other original jobs skipped, with no accepted artifact. At recovery entry and immediately before the sole irreversible publish, it rechecks that history, trusted master ancestry, the unchanged remote tag, exact npm version 404, and authenticated complete paginated absence of public or draft Releases. Network ambiguity, another attempt, an existing package/Release, incomplete pagination or partial publication stops without repair, overwrite or publish retry. Post-publication verification and terminal checks do not require absence.
|
|
32
|
-
|
|
33
|
-
Control is checked out at the actual new `github.workflow_sha`; product source is independently checked out at the fixed original commit. Runtime image context, SDK extraction, dependency installation, source tests, materialization, build, generation and the single pnpm pack all use **source**, not control. `assert-source`, `pack` and recovery `freeze` require `--source-root <independent-source-checkout>` as a per-job CLI argument. Guards bind real independent paths, original source HEAD/tag/version and clean `PACK_INPUTS`, plus the new control HEAD and required control files. Absolute checkout paths and dynamic absence observations are never persisted in cross-job context. Control script fixes and this document must not be copied into the original product package. Any native gate failure requiring product changes must stop and be reported.
|
|
34
|
-
|
|
35
|
-
Automatic OIDC provenance truthfully describes `.github/workflows/dsmm-release.yml@refs/heads/master`, its new control commit, actual `workflow_dispatch`, hosted builder and new run/attempt. The attestation's SHA512 subject must equal the frozen package. The receipt distinguishes `productSourceSha` from `attestedControlSha`; it does not claim that the original source tag is the attested workflow checkout. Fixed policy, source guards, artifact identity and independent remote-tag verification bind that product source. No GitHub environment identity or provenance is synthesized.
|
|
36
|
-
|
|
37
|
-
The parent-owned release invocation, after its integration gates and explicitly authorized Git delivery, is:
|
|
38
|
-
|
|
39
|
-
```powershell
|
|
40
|
-
gh workflow run dsmm-release.yml --repo hugefiver/ocmm --ref master -f recovery=unpublished-0.2.2
|
|
41
|
-
```
|
|
42
|
-
|
|
43
|
-
Dispatch is not completion. Preserve the original tag and any partially published package or assets on every failure; any subsequent same-identity rerun needs separate authorization.
|
|
44
|
-
|
|
45
|
-
### Stable delivery boundary
|
|
46
|
-
|
|
47
|
-
The sixteen public exports are `.`, `./preset-skills`, `./session-persistence`, `./subagent-runtime`, `./legacy-read-host`, `./managed-settings`, `./llm-runtime`, `./permission-bash`, `./permission-pwsh`, `./permission-fs`, `./permission-fs-search`, `./permission-web`, `./client`, `./package.json`, `./locale/en.json` and `./locale/zh.json`. The `./subagent-runtime` entry resolves to the real **Host-owned native plugin** `lib/runtime-integration.{js,d.ts}`, not the internal runtime class alone. `./legacy-read-host` exposes a **programmatic library factory**, not a Loader plugin or automatic migration facility. The seven managed-settings/LLM/permission entries resolve to their matching `lib/<entry>.{js,d.ts}` files. `permission-native-command` is a required internal compiled module, not a public export. Runtime JS and declarations, compiled client, packaged locales, skills, licenses and source provenance must all be present and match the frozen tarball and registry installation.
|
|
48
|
-
|
|
49
|
-
Stable acceptance covers configuration levels and topology, locale selection, Profiles draft/global-default/root-overlay/captured-child state, sanitized diagnostics, and native child controls. Saving a draft is not activation; global Apply affects future ordinary roots; current-session Apply is owner-authorized, idle-only and CAS-fenced; captured children retain their original immutable metadata and route. Read-only child policy, lifecycle ownership, before-inbox admission/delivery cutoffs, strict operator/Gateway authority and revision/epoch fences remain mandatory. Core stays mounted cold-off and exposes global/native-profile editors without creating sessions, remounting or silently restarting. A profile cannot bypass the global module master or startup substrate.
|
|
50
|
-
|
|
51
|
-
`experimentalLegacyRead` is **OFF unless explicitly configured through programmatic composition**. The removed `legacyRead` option is not consumed. Automatic legacy migration/rollout and the unfinished experimental legacy surface are not required release gates. The complete 375px/theme/Lighthouse matrix and production authenticated Web/Desktop activation are not claimed by the bounded first-usable browser acceptance.
|
|
52
|
-
|
|
53
|
-
The accepted native Allow/parent admission-epoch deferral is limited to the [documented approval scenario](deferred-native-approval-risk.md). It is not a fix or a waiver of other tests or release checks.
|
|
54
|
-
|
|
55
|
-
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).
|
|
56
|
-
|
|
57
|
-
### Explicit source and receipt APIs
|
|
58
|
-
|
|
59
|
-
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.
|
|
60
|
-
|
|
61
|
-
`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.
|
|
62
|
-
|
|
63
|
-
`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.
|
|
64
|
-
|
|
65
|
-
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.
|
|
66
|
-
|
|
67
|
-
### Explicit source-test application fixtures
|
|
68
|
-
|
|
69
|
-
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:
|
|
70
|
-
|
|
71
|
-
```powershell
|
|
72
|
-
$env:DSMM_COLD_PROFILE_SDK_ANCHOR = "<absolute path to the isolated rc.2 SDK package.json>"
|
|
73
|
-
$env:DSMM_COLD_PROFILE_GENUINE_SEED = "<new absolute task-owned temporary directory>"
|
|
74
|
-
node dsmm/test/prepare-cold-profile-genuine-seed.mjs --destination $env:DSMM_COLD_PROFILE_GENUINE_SEED
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
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.
|
|
78
|
-
|
|
79
|
-
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.
|
|
80
|
-
|
|
81
|
-
### Fresh frozen-byte CI acceptance
|
|
82
|
-
|
|
83
|
-
The required dedicated workflow sequence is:
|
|
84
|
-
|
|
85
|
-
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.
|
|
86
|
-
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.
|
|
87
|
-
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.
|
|
88
|
-
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.
|
|
89
|
-
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.
|
|
90
|
-
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.
|
|
91
|
-
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.
|
|
92
|
-
8. Run the DSMM-local terminal checker for the exact terminated run/attempt from the released checkout.
|
|
93
|
-
|
|
94
|
-
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.
|
|
95
|
-
|
|
96
|
-
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`, `profile-ui-harness-stable021{,-native}.mjs` and `native-preset-smoke.mjs`. Both prepare paths call the executable `release-native-gate.mjs` seam, which supplies and validates the complete explicit support set before invoking Docker. 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.
|
|
97
|
-
|
|
98
|
-
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.
|
|
99
|
-
|
|
100
|
-
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.
|
|
101
|
-
|
|
102
|
-
### Terminal authority and immutable failure handling
|
|
103
|
-
|
|
104
|
-
After the authorized matching workflow terminates, use the exact **new control HEAD** checkout and a new receipt path for recovery:
|
|
105
|
-
|
|
106
|
-
```powershell
|
|
107
|
-
node dsmm/scripts/check-dsmm-release-completion.mjs terminal --recovery unpublished-0.2.2 --run-id <new-run> --run-attempt <actual-attempt> --control-sha <new-control-head> --receipt <new-022-terminal-receipt.json>
|
|
108
|
-
```
|
|
109
|
-
|
|
110
|
-
Only exit **0** with receipt outcome **COMPLETED** proves release completion. New controls fix the topology to `split-recovery-022-v1` in a dedicated context field, separate from the standard workflow object. Exactly seven jobs are required: `import-bootstrap`, `prepare`, `publish`, `prepare-recovery-022`, `publish-recovery-022`, `verify`, `github-release`. Recovery requires the first three skipped and the last four successful; ordinary runs require the recovery pair skipped and the original mode-specific conclusions. The terminal checker pins topology from the exact trusted control HEAD, not an artifact's self-description or observed job count. Historical five-job validation and fixed published-continuation identities remain separate and unchanged. Ordinary new-control terminal invocations omit `--recovery`.
|
|
111
|
-
|
|
112
|
-
The product source/tag, genuine new control/event/ref, fixed new run/attempt, fresh complete Docker/native/UI/LSP acceptance, registry bytes/provenance, fresh native install, accepted/proof artifacts bound to `head_sha=<new-control>` and `head_branch=master`, and exactly three public Release assets with checksums must agree. `verify` and `github-release` directly depend on both pairs and explicitly accept only the selected pair's success with the other skipped. Accepted artifact ID selection rejects empty or dual outputs **before** download. 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.
|
|
113
|
-
|
|
114
|
-
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.
|
|
115
|
-
|
|
116
|
-
## Historical 0.2.1 source and proof authority
|
|
117
|
-
|
|
118
|
-
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.
|
|
119
|
-
|
|
120
|
-
## Historical 0.2.0 source and proof authority
|
|
121
|
-
|
|
122
|
-
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.
|
|
123
|
-
|
|
124
|
-
### 0.2.0 working-source authority
|
|
125
|
-
|
|
126
|
-
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.
|
|
127
|
-
|
|
128
|
-
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.
|
|
129
|
-
|
|
130
|
-
### Configuration, mode and captured state
|
|
131
|
-
|
|
132
|
-
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.
|
|
133
|
-
|
|
134
|
-
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.
|
|
135
|
-
|
|
136
|
-
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.
|
|
137
|
-
|
|
138
|
-
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).
|
|
139
|
-
|
|
140
|
-
### Cold tracked source and offline distribution checks
|
|
141
|
-
|
|
142
|
-
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.
|
|
143
|
-
|
|
144
|
-
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:
|
|
145
16
|
|
|
146
17
|
```powershell
|
|
147
18
|
node dsmm/scripts/materialize-frontend.mjs --sync
|
|
148
|
-
|
|
149
|
-
node --experimental-strip-types dsmm/scripts/check-source-assets.mjs
|
|
19
|
+
pnpm run build
|
|
150
20
|
pnpm --dir dsmm build
|
|
151
|
-
pnpm --dir dsmm
|
|
21
|
+
pnpm --dir dsmm generate:roles
|
|
152
22
|
```
|
|
153
23
|
|
|
154
|
-
`--sync`
|
|
155
|
-
|
|
156
|
-
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.
|
|
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.
|
|
157
25
|
|
|
158
|
-
|
|
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.
|
|
159
27
|
|
|
160
|
-
|
|
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.
|
|
161
29
|
|
|
162
|
-
|
|
30
|
+
## Current npm publication completion
|
|
163
31
|
|
|
164
|
-
|
|
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.
|
|
165
33
|
|
|
166
|
-
|
|
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.
|
|
167
35
|
|
|
168
|
-
|
|
169
|
-
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.
|
|
170
|
-
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.
|
|
171
|
-
|
|
172
|
-
### DSMM-local reviewed release controls
|
|
173
|
-
|
|
174
|
-
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.
|
|
175
|
-
|
|
176
|
-
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.
|
|
177
|
-
|
|
178
|
-
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.
|
|
179
|
-
|
|
180
|
-
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.
|
|
181
|
-
|
|
182
|
-
After the authorized tag's exact workflow run terminates, use the released checkout and a new receipt path:
|
|
36
|
+
After an authorized matching run terminates, use its trusted control checkout and a new receipt path:
|
|
183
37
|
|
|
184
38
|
```powershell
|
|
185
|
-
node dsmm/scripts/check-dsmm-release-completion.mjs terminal --run-id <
|
|
186
|
-
```
|
|
187
|
-
|
|
188
|
-
Only exit `0` with receipt outcome `COMPLETED` proves release completion. The fixed run/attempt, all five exact job conclusions (`import-bootstrap` skipped for the future lane), tagged source, accepted Docker/package bytes, fresh registry install, genuine provenance and public GitHub assets/checksums must all match. Workflow success alone is insufficient. Exit `1` (`FAILED`) or `2` (`UNRESOLVED`) preserves immutable partial publication: report it, never move/recreate the tag, repack, overwrite assets, adopt another run's receipt, or repair in place. No 0.2.0 publication, production login or Desktop execution is claimed by this source-readiness document.
|
|
189
|
-
|
|
190
|
-
## Historical release-only 0.1.9 proposal (not current authorization)
|
|
191
|
-
|
|
192
|
-
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.
|
|
193
|
-
|
|
194
|
-
This is a prospective procedure for the explicitly authorized 0.1.9 commit, new release and later local Desktop installation, not a completed-release receipt. The new identities are `@dsmm/dsmm@0.1.9`, tag `dsmm-scoped-v0.1.9`, and `dsmm-dsmm-0.1.9.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.
|
|
195
|
-
|
|
196
|
-
0.1.7 is already npm published and locally installed in Desktop, but not a completed GitHub Release. Preserve immutable `@dsmm/dsmm@0.1.7`, tag `dsmm-scoped-v0.1.7` and source `1ca0bf6e89916d17ddc663e1e06f6c15256cf453`. Original run `37312038470/1` failed verification, the GitHub job was skipped, and terminal evidence remained `UNRESOLVED`/`FAILED`. Do not move/delete/recreate that tag, overwrite package/assets, repair the release in place or relabel installation as completion. New 0.1.9 authority does not authorize a 0.1.7 continuation/rerun. Local Desktop upgrade waits for the new terminal completion; CLI/TUI 0.1.6 stays untouched.
|
|
197
|
-
|
|
198
|
-
0.1.8 is genuinely npm published, but not a completed GitHub Release. Its immutable `dsmm-scoped-v0.1.8` source is `569eb8398cd6082d2c59679a0adc0198aeeb883e`, with confirmed published tarball SHA256 `803117222bff06af977752a3a421f4975bc3a511a61e7914960219132e31e301`. Original run `37350981167/1` ended terminal `FAILED`, with GitHub skipped: the old shared 300-second visibility budget expired before npm's record `2026-10-05T18:01:24.500Z`, after the publication job at `17:52:09` on 2026-10-05. Preserve its tag, source, package, provenance, bytes and failed receipt; no old-tag mutation, republishing, rerun, receipt adoption or in-place repair is authorized. Desktop remains on 0.1.7 and CLI/TUI on 0.1.6, unchanged. The prospective 0.1.9 keeps the same plugin behavior as 0.1.8 and changes only release Action verification visibility/deadline controls; its Desktop rollout still waits for its own terminal `COMPLETED`.
|
|
199
|
-
|
|
200
|
-
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.9 must obtain its own fresh source, clean Linux build, packed bytes and receipt.
|
|
201
|
-
|
|
202
|
-
The completed 0.1.4 publication and its separately authorized continuation remain historical evidence: original run `37240470628/1` and continuation `37243216939/1` are not 0.1.9 proof. Their exact fourteen UI checks and nine installed compiled-file checks remain unchanged. The completed 0.1.5 publication and completed 0.1.6 publication/continuation, immutable packages/tags/accepted bytes and their own terminal completion evidence also remain historical; do not republish them or relabel their receipts as 0.1.9 acceptance. New proof requirements are version-gated, never retroactively applied to completed identities. The 0.1.6 SELECT receipt grammar remains valid for that historical identity, not for the new native-menu proof.
|
|
203
|
-
|
|
204
|
-
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.
|
|
205
|
-
|
|
206
|
-
### Preflight
|
|
207
|
-
|
|
208
|
-
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.
|
|
209
|
-
|
|
210
|
-
```powershell
|
|
211
|
-
git rev-parse HEAD
|
|
212
|
-
git status --short
|
|
213
|
-
pnpm --dir dsmm typecheck:test
|
|
214
|
-
pnpm --dir dsmm test
|
|
215
|
-
pnpm --dir dsmm build
|
|
216
|
-
node dsmm/scripts/generate-role-assets.mjs
|
|
217
|
-
pnpm --dir dsmm check:release
|
|
218
|
-
npm pack ".\dsmm" --dry-run --json
|
|
219
|
-
pnpm --dir dsmm smoke:docker
|
|
220
|
-
pnpm run typecheck
|
|
221
|
-
pnpm test
|
|
222
|
-
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>
|
|
223
40
|
```
|
|
224
41
|
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
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.
|
|
228
|
-
|
|
229
|
-
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.
|
|
230
|
-
|
|
231
|
-
### Phase 1: frozen artifact and independent Docker gate
|
|
232
|
-
|
|
233
|
-
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.
|
|
234
|
-
|
|
235
|
-
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.
|
|
236
|
-
|
|
237
|
-
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:
|
|
238
|
-
|
|
239
|
-
- 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.
|
|
240
|
-
- Actual enabled auxiliary delegation and native read-only denials, with exact role route/effort and aliased-parent `llm.resolveCallConfig` preflight against the fixture catalog.
|
|
241
|
-
- 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.
|
|
242
|
-
- 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.
|
|
243
|
-
- Existing native web/headless, session-persistence/history compatibility, LSP, sentinel and cleanup scenarios remain required; naming checks do not replace these runtime contracts.
|
|
244
|
-
|
|
245
|
-
Successor acceptance additionally requires the compiled structured editor's native catalog round-trip, comment/unrelated-setting preservation, ordered fallback controls, unlisted native-resolvable routes, and invalid raw retention. Exercise real current-session UI apply, two independent roots, sidecar CAS and fresh epochs, busy/maintenance/child refusal, old/new child isolation and same-revision reapply. Cold-resume the exact pinned sidecar after changing the global default, then compare stock native visible history and request headers. Place an owned regular profile lock **before** a second real native Loader starts; prove visible refusal and unchanged pointer/lock ownership, with a truthful observed root-roster disposition.
|
|
246
|
-
|
|
247
|
-
Actual native `followup/whenIdle` requests must prove primary/first-available startup locks, finite same-route rate-limit exhaustion, threshold-ordered rollover, same-profile/different-role and different-profile isolation, first-request unavailable versus partial/later refusal, and both strategies' partial-text/tool-fragment no-retry fences. Bind each real provider call to its native request header, live attempt ID, matching durable stream and settlement; successful outputs and terminal outcomes must agree. A competing native always-retry handler must remain unused and tools must not replay. The added native model-selection scenario must invoke strict public `session/selectModel`, demonstrate a route different from the Orchestrator profile primary, exact effort-only changes and subsequent-request retention, and validate the final native headers rather than an acknowledgement alone.
|
|
248
|
-
|
|
249
|
-
Ordinary roots remain native-owned in 0.1.9: their initial provider/model/exact effort remain authoritative even before any explicit model-selection event. Profile-role primary and fallback chains apply to genuinely owned delegated children, not silently to the root. Prove this with actual native request headers before and after explicit model/effort changes, profile reapply and cold resume; retain supported explicit child overrides and native read-only permissions. Startup failure evidence must identify the failed `installProfiles` child through its public parent-fiber ownership of the actual Loader entry, preserve the native failure exit, and observe absent runtime/zero request preparations/tools; never fabricate an outer Loader failure or accept a foreign failed fiber.
|
|
250
|
-
|
|
251
|
-
Exercise one icon-only native profile menu in sessionless, blank and active native conversation views, with one profile list and exactly one `@use-model` **Use profile model** action. Normal profile switching keeps the current model and native model default unchanged, with zero `session/selectModel` calls; successful profile CAS remains its authority. The independent model action reads the current admitted immutable profile's main model without reapplying a later saved draft revision, changing its epoch or writing a profile sidecar. It calls native `session/selectModel` and has the same native-default persistence consequence as the Models tab, with existing manual-model-intent race fencing. Prove later-draft isolation, missing profile primary, unconfirmed model changes and newer native choices, including effort-only/same-value intent, without undoing an admitted profile or silently overriding the newer choice. Successes use accessible live announcements only; visible errors are short sanitized codes/fields. Remove the old duplicate profile-model list and verbose normal-menu descriptions. Global-default Apply and draft Save retain their separate scopes. Owned component/endpoint proof does not establish authenticated Desktop or production model-picker interaction; retain explicit nonclaims for any unexercised surface.
|
|
252
|
-
|
|
253
|
-
Prove the **Deepwork** toggle on other native presets: official minimal mode defaults off without saved explicit `deepwork/mode`; saved intent wins over profile `defaultActive`, including explicit same-default choices that persist intent. Real native durable events, profile changes and fresh-process reopen must agree. Standing DW presets are locked enabled with a clear label, never an actionable off choice. Exercise sessionless/busy/unavailable refusals and preserve admission, model and mode on failed writes; no session creation or global-default change belongs to this action.
|
|
254
|
-
|
|
255
|
-
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.
|
|
256
|
-
|
|
257
|
-
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.
|
|
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.
|
|
258
43
|
|
|
259
|
-
|
|
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.
|
|
260
45
|
|
|
261
|
-
|
|
46
|
+
## Independent GitHub Release delivery
|
|
262
47
|
|
|
263
|
-
|
|
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`.
|
|
264
49
|
|
|
265
|
-
|
|
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.
|
|
266
51
|
|
|
267
|
-
|
|
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.
|
|
268
53
|
|
|
269
|
-
|
|
54
|
+
## Historical proof and restricted recovery
|
|
270
55
|
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
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.
|
|
274
|
-
|
|
275
|
-
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.
|
|
276
|
-
|
|
277
|
-
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.
|
|
278
|
-
|
|
279
|
-
```powershell
|
|
280
|
-
$env:DSH_HOME = "<fresh-task-owned-verification-home>"
|
|
281
|
-
dsh --profile dsmm-0.1.9-verify --from-default-profile headless --dump-config
|
|
282
|
-
dsh plugin --profile dsmm-0.1.9-verify add @dsmm/dsmm@0.1.9
|
|
283
|
-
dsh plugin --profile dsmm-0.1.9-verify list
|
|
284
|
-
dsh --profile dsmm-0.1.9-verify --dump-config
|
|
285
|
-
npm view @dsmm/dsmm@0.1.9 dist.integrity --registry "https://registry.npmjs.org/"
|
|
286
|
-
```
|
|
287
|
-
|
|
288
|
-
#### Published 0.1.6 continuation (separately authorized)
|
|
289
|
-
|
|
290
|
-
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.
|
|
291
|
-
|
|
292
|
-
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.
|
|
293
|
-
|
|
294
|
-
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.
|
|
295
|
-
|
|
296
|
-
After the dedicated run terminates, use its actual run/attempt/control SHA and a new receipt path:
|
|
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:
|
|
297
57
|
|
|
298
58
|
```powershell
|
|
299
|
-
node scripts/check-dsmm-release-completion.mjs terminal
|
|
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>
|
|
300
60
|
```
|
|
301
61
|
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
### Phase 3: official installed-carrier Desktop rollout
|
|
305
|
-
|
|
306
|
-
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.
|
|
307
|
-
|
|
308
|
-
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.
|
|
309
63
|
|
|
310
|
-
|
|
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.
|
|
311
65
|
|
|
312
|
-
|
|
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.
|
|
313
67
|
|
|
314
|
-
|
|
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`.
|
|
315
69
|
|
|
316
|
-
|
|
70
|
+
## Installation and rollback
|
|
317
71
|
|
|
318
|
-
|
|
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.
|
|
319
73
|
|
|
320
|
-
|
|
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.
|