@dsmm/dsmm 0.1.9 → 0.2.2
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 +46 -58
- package/agent-presets/dsmm-builder/agent.cordis.yml +91 -186
- package/agent-presets/dsmm-builder/preset.yml +1 -1
- package/agent-presets/dsmm-clarifier/agent.cordis.yml +120 -17
- package/agent-presets/dsmm-clarifier/preset.yml +1 -1
- package/agent-presets/dsmm-code-search/agent.cordis.yml +72 -17
- package/agent-presets/dsmm-code-search/preset.yml +1 -1
- package/agent-presets/dsmm-coding/agent.cordis.yml +169 -0
- package/agent-presets/dsmm-coding/preset.yml +3 -0
- package/agent-presets/dsmm-complex/agent.cordis.yml +154 -0
- package/agent-presets/dsmm-complex/preset.yml +3 -0
- package/agent-presets/dsmm-creative/agent.cordis.yml +122 -15
- package/agent-presets/dsmm-creative/preset.yml +1 -1
- package/agent-presets/dsmm-cross-cutting/agent.cordis.yml +179 -0
- package/agent-presets/dsmm-cross-cutting/preset.yml +3 -0
- package/agent-presets/dsmm-deep/agent.cordis.yml +189 -0
- package/agent-presets/dsmm-deep/preset.yml +3 -0
- package/agent-presets/dsmm-doc-search/agent.cordis.yml +72 -17
- package/agent-presets/dsmm-doc-search/preset.yml +1 -1
- package/agent-presets/dsmm-documenting/agent.cordis.yml +168 -0
- package/agent-presets/dsmm-documenting/preset.yml +3 -0
- package/agent-presets/dsmm-frontend/agent.cordis.yml +161 -0
- package/agent-presets/dsmm-frontend/preset.yml +3 -0
- package/agent-presets/dsmm-hard-reasoning/agent.cordis.yml +153 -0
- package/agent-presets/dsmm-hard-reasoning/preset.yml +3 -0
- package/agent-presets/dsmm-media-reader/agent.cordis.yml +72 -17
- package/agent-presets/dsmm-media-reader/preset.yml +1 -1
- package/agent-presets/dsmm-normal-task/agent.cordis.yml +127 -0
- package/agent-presets/dsmm-normal-task/preset.yml +3 -0
- package/agent-presets/dsmm-oracle/agent.cordis.yml +109 -15
- package/agent-presets/dsmm-oracle/preset.yml +1 -1
- package/agent-presets/dsmm-oracle-2nd/agent.cordis.yml +109 -15
- package/agent-presets/dsmm-oracle-2nd/preset.yml +1 -1
- package/agent-presets/dsmm-orchestrator/agent.cordis.yml +174 -190
- package/agent-presets/dsmm-orchestrator/preset.yml +1 -1
- package/agent-presets/dsmm-plan-critic/agent.cordis.yml +102 -16
- package/agent-presets/dsmm-plan-critic/preset.yml +1 -1
- package/agent-presets/dsmm-planner/agent.cordis.yml +134 -15
- package/agent-presets/dsmm-planner/preset.yml +1 -1
- package/agent-presets/dsmm-quick/agent.cordis.yml +132 -0
- package/agent-presets/dsmm-quick/preset.yml +3 -0
- package/agent-presets/dsmm-research/agent.cordis.yml +156 -0
- package/agent-presets/dsmm-research/preset.yml +3 -0
- package/agent-presets/dsmm-reviewer/agent.cordis.yml +108 -16
- package/agent-presets/dsmm-reviewer/preset.yml +1 -1
- package/cordis.patch.yml +1 -5
- package/docs/agent-presets.md +48 -15
- package/docs/compatibility.md +58 -68
- package/docs/deferred-native-approval-risk.md +19 -0
- package/docs/design.md +43 -2
- package/docs/lsp.md +12 -12
- package/docs/migration-from-ocmm.md +10 -2
- package/docs/model-routing.md +84 -59
- package/docs/native-permissions.md +35 -0
- package/docs/profiles.md +43 -64
- package/docs/releasing.md +159 -8
- package/docs/roadmap.md +77 -17
- package/docs/runtime-recovery.md +12 -0
- package/docs/safety-guards.md +7 -3
- package/docs/settings-status.md +46 -40
- package/docs/skill-sync.md +89 -14
- package/lib/child-admission-contract.d.ts +37 -0
- package/lib/child-admission-contract.js +2 -0
- package/lib/child-admission.d.ts +42 -0
- package/lib/child-admission.js +162 -0
- package/lib/child-capture.d.ts +81 -0
- package/lib/child-capture.js +203 -0
- package/lib/child-evidence.d.ts +17 -0
- package/lib/child-evidence.js +43 -0
- package/lib/client/ChildrenPanel.d.ts +43 -0
- package/lib/client/ChildrenPanel.js +82 -0
- package/lib/client/DeploymentPage.d.ts +18 -0
- package/lib/client/DeploymentPage.js +127 -0
- package/lib/client/EditableChoice.d.ts +17 -0
- package/lib/client/EditableChoice.js +49 -0
- package/lib/client/PermissionsPanel.d.ts +14 -0
- package/lib/client/PermissionsPanel.js +46 -0
- package/lib/client/ProfilesSection.js +32 -15
- package/lib/client/RoleAvailability.d.ts +7 -0
- package/lib/client/RoleAvailability.js +19 -0
- package/lib/client/SessionProfiles.js +27 -9
- package/lib/client/StructuredEditor.js +15 -7
- package/lib/client/children-controller.d.ts +98 -0
- package/lib/client/children-controller.js +296 -0
- package/lib/client/children-locales.d.ts +367 -0
- package/lib/client/children-locales.js +69 -0
- package/lib/client/controller.d.ts +6 -1
- package/lib/client/controller.js +14 -8
- package/lib/client/deployment-controller.d.ts +50 -0
- package/lib/client/deployment-controller.js +193 -0
- package/lib/client/deployment-data.d.ts +17 -0
- package/lib/client/deployment-data.js +138 -0
- package/lib/client/deployment-locales.d.ts +70 -0
- package/lib/client/deployment-locales.js +81 -0
- package/lib/client/diagnostics.d.ts +14 -0
- package/lib/client/diagnostics.js +53 -0
- package/lib/client/index.d.ts +4 -0
- package/lib/client/index.js +145 -1
- package/lib/client/locales.d.ts +58 -0
- package/lib/client/locales.js +38 -18
- package/lib/client/permission-client.d.ts +16 -0
- package/lib/client/permission-client.js +38 -0
- package/lib/client/permission-controller.d.ts +62 -0
- package/lib/client/permission-controller.js +149 -0
- package/lib/client/permission-locales.d.ts +114 -0
- package/lib/client/permission-locales.js +75 -0
- package/lib/client/plugins-contract.d.ts +27 -0
- package/lib/client/plugins-contract.js +2 -0
- package/lib/client/session-labels.js +4 -4
- package/lib/client/structured.js +19 -5
- package/lib/client/styles.d.ts +1 -1
- package/lib/client/styles.js +36 -0
- package/lib/client.js +6724 -1604
- package/lib/commands.js +3 -0
- package/lib/config-file-store.d.ts +23 -0
- package/lib/config-file-store.js +67 -0
- package/lib/core-permission-authority.d.ts +18 -0
- package/lib/core-permission-authority.js +255 -0
- package/lib/core-permissions.d.ts +8 -0
- package/lib/core-permissions.js +33 -0
- package/lib/delivery-authority.d.ts +68 -0
- package/lib/delivery-authority.js +260 -0
- package/lib/deployment-config.d.ts +60 -0
- package/lib/deployment-config.js +205 -0
- package/lib/deployment-permission-rules.d.ts +55 -0
- package/lib/deployment-permission-rules.js +306 -0
- package/lib/dsh-home.d.ts +3 -0
- package/lib/dsh-home.js +10 -0
- package/lib/dsh-types.d.ts +22 -69
- package/lib/guards.d.ts +3 -2
- package/lib/guards.js +44 -6
- package/lib/host-llm-startup.d.ts +41 -0
- package/lib/host-llm-startup.js +65 -0
- package/lib/host-llm.d.ts +92 -0
- package/lib/host-llm.js +325 -0
- package/lib/index.d.ts +23 -5
- package/lib/index.js +383 -40
- package/lib/legacy-child-policy.d.ts +51 -0
- package/lib/legacy-child-policy.js +123 -0
- package/lib/legacy-read-composition.d.ts +20 -0
- package/lib/legacy-read-composition.js +144 -0
- package/lib/legacy-read-contracts.d.ts +157 -0
- package/lib/legacy-read-contracts.js +39 -0
- package/lib/legacy-read-host.d.ts +19 -0
- package/lib/legacy-read-host.js +67 -0
- package/lib/legacy-read-integration.d.ts +121 -0
- package/lib/legacy-read-integration.js +522 -0
- package/lib/legacy-read-proxy.d.ts +26 -0
- package/lib/legacy-read-proxy.js +237 -0
- package/lib/live-pi-ai-owner.d.ts +18 -0
- package/lib/live-pi-ai-owner.js +144 -0
- package/lib/llm-runtime.d.ts +11 -0
- package/lib/llm-runtime.js +21 -0
- package/lib/lsp.d.ts +13 -0
- package/lib/lsp.js +60 -0
- package/lib/managed-settings.d.ts +5 -0
- package/lib/managed-settings.js +14 -0
- package/lib/mode.js +42 -47
- package/lib/model-parameter-policy.d.ts +11 -0
- package/lib/model-parameter-policy.js +27 -0
- package/lib/model-routing.js +33 -19
- package/lib/modules.d.ts +35 -0
- package/lib/modules.js +37 -0
- package/lib/native-child-evidence.d.ts +42 -0
- package/lib/native-child-evidence.js +133 -0
- package/lib/native-pi-ai-wire.d.ts +37 -0
- package/lib/native-pi-ai-wire.js +261 -0
- package/lib/native-scope.d.ts +9 -0
- package/lib/native-scope.js +20 -0
- package/lib/permission-bash.d.ts +6 -0
- package/lib/permission-bash.js +7 -0
- package/lib/permission-control.d.ts +73 -0
- package/lib/permission-control.js +205 -0
- package/lib/permission-controller.d.ts +68 -0
- package/lib/permission-controller.js +317 -0
- package/lib/permission-errors.d.ts +7 -0
- package/lib/permission-errors.js +21 -0
- package/lib/permission-fs-search.d.ts +5 -0
- package/lib/permission-fs-search.js +7 -0
- package/lib/permission-fs.d.ts +5 -0
- package/lib/permission-fs.js +7 -0
- package/lib/permission-native-access.d.ts +11 -0
- package/lib/permission-native-access.js +6 -0
- package/lib/permission-native-command.d.ts +10 -0
- package/lib/permission-native-command.js +93 -0
- package/lib/permission-native-rules.d.ts +75 -0
- package/lib/permission-native-rules.js +278 -0
- package/lib/permission-pwsh.d.ts +6 -0
- package/lib/permission-pwsh.js +7 -0
- package/lib/permission-remote.d.ts +26 -0
- package/lib/permission-remote.js +53 -0
- package/lib/permission-rpc.d.ts +29 -0
- package/lib/permission-rpc.js +152 -0
- package/lib/permission-rules.d.ts +115 -0
- package/lib/permission-rules.js +256 -0
- package/lib/permission-settings.d.ts +45 -0
- package/lib/permission-settings.js +48 -0
- package/lib/permission-shell.d.ts +38 -0
- package/lib/permission-shell.js +150 -0
- package/lib/permission-web.d.ts +5 -0
- package/lib/permission-web.js +7 -0
- package/lib/plan-validation.js +6 -44
- package/lib/preset-materializer.js +2 -0
- package/lib/preset-registry.d.ts +1 -1
- package/lib/preset-registry.js +38 -24
- package/lib/preset-skills.d.ts +4 -1
- package/lib/preset-skills.js +60 -19
- package/lib/profile-diagnostics.d.ts +45 -0
- package/lib/profile-diagnostics.js +148 -0
- package/lib/profile-locale.d.ts +3 -0
- package/lib/profile-locale.js +2 -0
- package/lib/profile-remote.d.ts +22 -0
- package/lib/profile-remote.js +344 -27
- package/lib/profile-rpc.d.ts +25 -1
- package/lib/profile-rpc.js +143 -3
- package/lib/profile-runtime.d.ts +63 -0
- package/lib/profile-runtime.js +496 -77
- package/lib/profile-store.d.ts +56 -1
- package/lib/profile-store.js +377 -111
- package/lib/profile-types.d.ts +125 -1
- package/lib/profile-types.js +1 -0
- package/lib/profiles.d.ts +16 -2
- package/lib/profiles.js +156 -79
- package/lib/prompt-content.d.ts +25 -0
- package/lib/prompt-content.js +27 -0
- package/lib/prompts.d.ts +45 -4
- package/lib/prompts.js +157 -43
- package/lib/recovery-policy.js +20 -7
- package/lib/role-control-remote.d.ts +38 -0
- package/lib/role-control-remote.js +211 -0
- package/lib/role-control-rpc.d.ts +51 -0
- package/lib/role-control-rpc.js +377 -0
- package/lib/role-control-types.d.ts +92 -0
- package/lib/role-control-types.js +8 -0
- package/lib/role-invocation.d.ts +47 -0
- package/lib/role-invocation.js +135 -0
- package/lib/role-llm-runtime.d.ts +17 -0
- package/lib/role-llm-runtime.js +62 -0
- package/lib/role-llm.d.ts +31 -0
- package/lib/role-llm.js +66 -0
- package/lib/role-policy.d.ts +92 -0
- package/lib/role-policy.js +601 -0
- package/lib/role-providers.d.ts +7 -3
- package/lib/role-providers.js +74 -46
- package/lib/role-routing.d.ts +11 -2
- package/lib/role-routing.js +42 -25
- package/lib/role-runs.d.ts +135 -0
- package/lib/role-runs.js +304 -0
- package/lib/role-subagents.d.ts +63 -4
- package/lib/role-subagents.js +299 -47
- package/lib/roles.d.ts +20 -9
- package/lib/roles.js +87 -216
- package/lib/route-json.d.ts +19 -0
- package/lib/route-json.js +129 -0
- package/lib/routing-policy.d.ts +2 -0
- package/lib/routing-policy.js +12 -2
- package/lib/runtime-integration.d.ts +112 -0
- package/lib/runtime-integration.js +784 -0
- package/lib/runtime-recovery.js +34 -13
- package/lib/session-scope.js +2 -0
- package/lib/settings.d.ts +116 -14
- package/lib/settings.js +455 -149
- package/lib/skills.d.ts +24 -9
- package/lib/skills.js +114 -35
- package/lib/state.d.ts +10 -6
- package/lib/state.js +48 -49
- package/lib/status.d.ts +35 -1
- package/lib/status.js +58 -17
- package/lib/subagent-runtime.d.ts +45 -0
- package/lib/subagent-runtime.js +131 -0
- package/locale/en.json +2 -2
- package/locale/zh.json +2 -2
- package/package.json +112 -45
- package/patches/subagent-runtime.yml +15 -0
- package/prompts/deepseek-flash.md +1 -1
- package/prompts/deepseek-v4-pro.md +2 -2
- package/prompts/deepwork.md +153 -20
- package/prompts/source/agents/clarifier.md +47 -0
- package/prompts/source/agents/orchestrator.md +72 -0
- package/prompts/source/agents/plan-critic.md +29 -0
- package/prompts/source/agents/planner.md +21 -0
- package/prompts/source/agents/reviewer.md +23 -0
- package/prompts/source/catalog.json +548 -0
- package/prompts/source/category/coding.md +46 -0
- package/prompts/source/category/complex.md +29 -0
- package/prompts/source/category/creative.md +40 -0
- package/prompts/source/category/cross-cutting.md +54 -0
- package/prompts/source/category/deep.md +64 -0
- package/prompts/source/category/documenting.md +68 -0
- package/prompts/source/category/frontend.md +38 -0
- package/prompts/source/category/hard-reasoning.md +53 -0
- package/prompts/source/category/normal-task.md +27 -0
- package/prompts/source/category/quick.md +34 -0
- package/prompts/source/category/research.md +58 -0
- package/prompts/source/deepwork/claude-opus-5.md +28 -0
- package/prompts/source/deepwork/codex.md +9 -0
- package/prompts/source/deepwork/default.md +136 -0
- package/prompts/source/deepwork/gemini.md +191 -0
- package/prompts/source/deepwork/glm.md +263 -0
- package/prompts/source/deepwork/gpt.md +49 -0
- package/prompts/source/deepwork/kimi-k27.md +13 -0
- package/prompts/source/deepwork/planner.md +44 -0
- package/prompts/source/deepwork/swe-2.md +13 -0
- package/prompts/source/manifest.json +3233 -0
- package/prompts/source/shared/dsh-host-contract.md +8 -0
- package/prompts/source/shared/locale.md +8 -0
- package/prompts/source/shared/shell-safety.md +7 -0
- package/prompts/source/terminal/builder.md +13 -0
- package/prompts/source/terminal/clarifier.md +41 -0
- package/prompts/source/terminal/code-search.md +39 -0
- package/prompts/source/terminal/coding.md +41 -0
- package/prompts/source/terminal/complex.md +43 -0
- package/prompts/source/terminal/creative.md +41 -0
- package/prompts/source/terminal/cross-cutting.md +43 -0
- package/prompts/source/terminal/deep.md +43 -0
- package/prompts/source/terminal/doc-search.md +39 -0
- package/prompts/source/terminal/documenting.md +41 -0
- package/prompts/source/terminal/frontend.md +41 -0
- package/prompts/source/terminal/hard-reasoning.md +41 -0
- package/prompts/source/terminal/media-reader.md +39 -0
- package/prompts/source/terminal/normal-task.md +41 -0
- package/prompts/source/terminal/oracle-2nd.md +53 -0
- package/prompts/source/terminal/oracle.md +53 -0
- package/prompts/source/terminal/orchestrator.md +26 -0
- package/prompts/source/terminal/plan-critic.md +41 -0
- package/prompts/source/terminal/planner.md +42 -0
- package/prompts/source/terminal/quick.md +39 -0
- package/prompts/source/terminal/research.md +39 -0
- package/prompts/source/terminal/reviewer.md +53 -0
- package/scripts/cold-profile-composition.mjs +329 -0
- package/scripts/cold-profile-sources.mjs +238 -0
- package/scripts/migrate-cold-profile.mjs +315 -0
- package/skills/ast-grep/LICENSE +21 -0
- package/skills/ast-grep/README.md +138 -0
- package/skills/ast-grep/SKILL.md +287 -0
- package/skills/ast-grep/SOURCE +1 -0
- package/skills/ast-grep/install.ps1 +235 -0
- package/skills/ast-grep/install.sh +286 -0
- package/skills/ast-grep/references/cli.md +233 -0
- package/skills/ast-grep/references/install.md +168 -0
- package/skills/ast-grep/references/patterns.md +149 -0
- package/skills/ast-grep/references/pitfalls.md +305 -0
- package/skills/ast-grep/references/recipes.md +404 -0
- package/skills/ast-grep/references/sgconfig.md +250 -0
- package/skills/ast-grep/references/yaml-rules.md +511 -0
- package/skills/ast-grep/scripts/ast_grep_helper.py +760 -0
- package/skills/ast-grep/tests/smoke.ps1 +129 -0
- package/skills/ast-grep/tests/smoke.sh +212 -0
- package/skills/ast-grep/tests/test_resolver.py +154 -0
- package/skills/brainstorming/SKILL.md +123 -9
- package/skills/coding-agent-sessions/LICENSE-UPSTREAM.md +82 -0
- package/skills/coding-agent-sessions/NOTICE.md +24 -0
- package/skills/coding-agent-sessions/SKILL.md +147 -0
- package/skills/coding-agent-sessions/agents/openai.yaml +4 -0
- package/skills/coding-agent-sessions/pyrightconfig.json +5 -0
- package/skills/coding-agent-sessions/references/all-platforms.md +77 -0
- package/skills/coding-agent-sessions/references/claude.md +34 -0
- package/skills/coding-agent-sessions/references/codex.md +32 -0
- package/skills/coding-agent-sessions/references/opencode.md +45 -0
- package/skills/coding-agent-sessions/references/senpi.md +29 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/__init__.py +1 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/aside_scanner.py +140 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/claude.py +66 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/cli.py +283 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/codex.py +105 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/file_scanners.py +275 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/jsonio.py +55 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/kiro_scanner.py +91 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/opencode.py +289 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/pi_family.py +46 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/scanners.py +104 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/sqlite_optional_scanners.py +203 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/sqlite_scanners.py +177 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/timeparse.py +51 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/transcript.py +149 -0
- package/skills/coding-agent-sessions/scripts/agent_sessions/types.py +57 -0
- package/skills/coding-agent-sessions/scripts/find-agent-sessions.py +19 -0
- package/skills/coding-agent-sessions/scripts/tests/test_agent_sessions.py +322 -0
- package/skills/coding-agent-sessions/scripts/tests/test_aside_scanner.py +131 -0
- package/skills/coding-agent-sessions/scripts/tests/test_cli_contract.py +126 -0
- package/skills/coding-agent-sessions/scripts/tests/test_extended_scanners.py +262 -0
- package/skills/coding-agent-sessions/scripts/tests/test_optional_sqlite_scanners.py +79 -0
- package/skills/coding-agent-sessions/scripts/tests/test_pi_family_scanners.py +130 -0
- package/skills/debugging/SKILL.md +130 -4
- package/skills/debugging/references/logging.md +2 -0
- package/skills/debugging/references/methodology/00-setup.md +16 -62
- package/skills/debugging/references/methodology/02-investigate.md +11 -5
- package/skills/debugging/references/methodology/03-flaky-triage.md +6 -4
- package/skills/debugging/references/methodology/04-hard-reasoning-escalation.md +6 -16
- package/skills/debugging/references/methodology/05-escalate.md +2 -0
- package/skills/debugging/references/methodology/06-fix.md +8 -6
- package/skills/debugging/references/methodology/08-qa.md +7 -5
- package/skills/debugging/references/methodology/09-cleanup.md +16 -152
- package/skills/debugging/references/methodology/partial-runtime-evidence.md +7 -18
- package/skills/debugging/references/runtimes/bundled-js-binary.md +3 -16
- package/skills/debugging/references/runtimes/go.md +2 -0
- package/skills/debugging/references/runtimes/native-binary.md +11 -54
- package/skills/debugging/references/runtimes/node.md +6 -15
- package/skills/debugging/references/runtimes/python.md +5 -15
- package/skills/debugging/references/runtimes/rust.md +4 -18
- package/skills/debugging/references/scripts/dap.test.mjs +539 -0
- package/skills/debugging/references/scripts/fixture-adapter.mjs +164 -0
- package/skills/debugging/references/tools/dap.md +4 -2
- package/skills/debugging/references/tools/ghidra.md +6 -15
- package/skills/debugging/references/tools/playwright-cli.md +5 -15
- package/skills/debugging/references/tools/pwndbg.md +2 -0
- package/skills/debugging/references/tools/pwntools.md +6 -16
- package/skills/dispatching-parallel-agents/SKILL.md +96 -7
- package/skills/frontend/.frontend-materialized.json +856 -0
- package/skills/frontend/ATTRIBUTION.md +37 -0
- package/skills/frontend/LICENSE-Apache-2.0.txt +201 -0
- package/skills/frontend/LICENSE-taste-skill.txt +21 -0
- package/skills/frontend/LICENSE-ui-ux-pro-max.txt +21 -0
- package/skills/frontend/SKILL.md +145 -0
- package/skills/frontend/references/design/README.md +256 -0
- package/skills/frontend/references/design/_INDEX.md +206 -0
- package/skills/frontend/references/design/airbnb.md +393 -0
- package/skills/frontend/references/design/airtable.md +92 -0
- package/skills/frontend/references/design/apple.md +250 -0
- package/skills/frontend/references/design/aside.md +211 -0
- package/skills/frontend/references/design/binance.md +348 -0
- package/skills/frontend/references/design/bmw.md +183 -0
- package/skills/frontend/references/design/brutalist-skill.md +92 -0
- package/skills/frontend/references/design/bugatti.md +271 -0
- package/skills/frontend/references/design/cal.md +262 -0
- package/skills/frontend/references/design/claude.md +315 -0
- package/skills/frontend/references/design/clay.md +307 -0
- package/skills/frontend/references/design/clickhouse.md +284 -0
- package/skills/frontend/references/design/clone-from-url.md +69 -0
- package/skills/frontend/references/design/cohere.md +269 -0
- package/skills/frontend/references/design/coinbase.md +132 -0
- package/skills/frontend/references/design/composio.md +310 -0
- package/skills/frontend/references/design/cursor.md +312 -0
- package/skills/frontend/references/design/design-system-architecture.md +250 -0
- package/skills/frontend/references/design/elevenlabs.md +268 -0
- package/skills/frontend/references/design/expo.md +284 -0
- package/skills/frontend/references/design/ferrari.md +317 -0
- package/skills/frontend/references/design/figma.md +223 -0
- package/skills/frontend/references/design/framer.md +249 -0
- package/skills/frontend/references/design/gpt-tasteskill.md +74 -0
- package/skills/frontend/references/design/hashicorp.md +281 -0
- package/skills/frontend/references/design/ibm.md +335 -0
- package/skills/frontend/references/design/image-to-code-skill.md +1228 -0
- package/skills/frontend/references/design/imagegen-brandkit.md +798 -0
- package/skills/frontend/references/design/imagegen-frontend-mobile.md +1465 -0
- package/skills/frontend/references/design/imagegen-frontend-web.md +987 -0
- package/skills/frontend/references/design/interaction-skill.md +52 -0
- package/skills/frontend/references/design/intercom.md +149 -0
- package/skills/frontend/references/design/kraken.md +128 -0
- package/skills/frontend/references/design/lamborghini.md +291 -0
- package/skills/frontend/references/design/linear.app.md +370 -0
- package/skills/frontend/references/design/lovable.md +301 -0
- package/skills/frontend/references/design/mastercard.md +368 -0
- package/skills/frontend/references/design/meta.md +369 -0
- package/skills/frontend/references/design/minimalist-skill.md +85 -0
- package/skills/frontend/references/design/minimax.md +260 -0
- package/skills/frontend/references/design/mintlify.md +329 -0
- package/skills/frontend/references/design/miro.md +111 -0
- package/skills/frontend/references/design/mistral.ai.md +264 -0
- package/skills/frontend/references/design/mongodb.md +269 -0
- package/skills/frontend/references/design/nike.md +366 -0
- package/skills/frontend/references/design/notion.md +312 -0
- package/skills/frontend/references/design/nvidia.md +296 -0
- package/skills/frontend/references/design/ollama.md +270 -0
- package/skills/frontend/references/design/opencode.ai.md +284 -0
- package/skills/frontend/references/design/output-skill.md +49 -0
- package/skills/frontend/references/design/pinterest.md +233 -0
- package/skills/frontend/references/design/playstation.md +367 -0
- package/skills/frontend/references/design/posthog.md +259 -0
- package/skills/frontend/references/design/raycast.md +271 -0
- package/skills/frontend/references/design/react-dev-tooling-skill.md +232 -0
- package/skills/frontend/references/design/redesign-skill.md +178 -0
- package/skills/frontend/references/design/renault.md +314 -0
- package/skills/frontend/references/design/replicate.md +264 -0
- package/skills/frontend/references/design/resend.md +306 -0
- package/skills/frontend/references/design/revolut.md +188 -0
- package/skills/frontend/references/design/runwayml.md +247 -0
- package/skills/frontend/references/design/sanity.md +360 -0
- package/skills/frontend/references/design/sentry.md +265 -0
- package/skills/frontend/references/design/shopify.md +353 -0
- package/skills/frontend/references/design/soft-skill.md +98 -0
- package/skills/frontend/references/design/spacex.md +197 -0
- package/skills/frontend/references/design/spotify.md +249 -0
- package/skills/frontend/references/design/starbucks.md +583 -0
- package/skills/frontend/references/design/stitch-design-example.md +121 -0
- package/skills/frontend/references/design/stitch-skill.md +184 -0
- package/skills/frontend/references/design/stripe.md +325 -0
- package/skills/frontend/references/design/supabase.md +258 -0
- package/skills/frontend/references/design/superhuman.md +255 -0
- package/skills/frontend/references/design/taste-skill.md +1206 -0
- package/skills/frontend/references/design/tesla.md +289 -0
- package/skills/frontend/references/design/theverge.md +342 -0
- package/skills/frontend/references/design/together.ai.md +266 -0
- package/skills/frontend/references/design/uber.md +298 -0
- package/skills/frontend/references/design/vercel.md +313 -0
- package/skills/frontend/references/design/vodafone.md +426 -0
- package/skills/frontend/references/design/voltagent.md +326 -0
- package/skills/frontend/references/design/warp.md +256 -0
- package/skills/frontend/references/design/webflow.md +95 -0
- package/skills/frontend/references/design/wired.md +281 -0
- package/skills/frontend/references/design/wise.md +176 -0
- package/skills/frontend/references/design/x.ai.md +260 -0
- package/skills/frontend/references/design/zapier.md +331 -0
- package/skills/frontend/references/perfection/README.md +264 -0
- package/skills/frontend/references/perfection/react-perf-tooling.md +234 -0
- package/skills/frontend/references/ui-ux-db/README.md +659 -0
- package/skills/frontend/references/ui-ux-db/data/app-interface.csv +31 -0
- package/skills/frontend/references/ui-ux-db/data/charts.csv +26 -0
- package/skills/frontend/references/ui-ux-db/data/colors.csv +162 -0
- package/skills/frontend/references/ui-ux-db/data/google-fonts.csv +1924 -0
- package/skills/frontend/references/ui-ux-db/data/icons.csv +106 -0
- package/skills/frontend/references/ui-ux-db/data/landing.csv +35 -0
- package/skills/frontend/references/ui-ux-db/data/products.csv +162 -0
- package/skills/frontend/references/ui-ux-db/data/react-performance.csv +45 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/angular.csv +51 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/astro.csv +54 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/flutter.csv +53 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/html-tailwind.csv +56 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/jetpack-compose.csv +53 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/laravel.csv +51 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/nextjs.csv +53 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/nuxt-ui.csv +51 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/nuxtjs.csv +59 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/react-native.csv +52 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/react.csv +54 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/shadcn.csv +61 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/svelte.csv +54 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/swiftui.csv +51 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/threejs.csv +54 -0
- package/skills/frontend/references/ui-ux-db/data/stacks/vue.csv +50 -0
- package/skills/frontend/references/ui-ux-db/data/styles.csv +85 -0
- package/skills/frontend/references/ui-ux-db/data/typography.csv +74 -0
- package/skills/frontend/references/ui-ux-db/data/ui-reasoning.csv +162 -0
- package/skills/frontend/references/ui-ux-db/data/ux-guidelines.csv +100 -0
- package/skills/frontend/references/ui-ux-db/data/web-interface.csv +31 -0
- package/skills/frontend/references/ui-ux-db/scripts/core.py +262 -0
- package/skills/frontend/references/ui-ux-db/scripts/design_system.py +1148 -0
- package/skills/frontend/references/ui-ux-db/scripts/search.py +114 -0
- package/skills/frontend/scripts/perfection/lighthouse-audit.py +201 -0
- package/skills/git-master/SKILL.md +115 -0
- package/skills/git-master/agents/openai.yaml +13 -0
- package/skills/init-deep/SKILL.md +282 -0
- package/skills/receiving-code-review/SKILL.md +117 -7
- package/skills/remove-ai-slops/SKILL.md +160 -8
- package/skills/requesting-code-review/SKILL.md +98 -3
- package/skills/requesting-code-review/code-reviewer.md +59 -0
- package/skills/subagent-driven-development/SKILL.md +179 -6
- package/skills/subagent-driven-development/code-quality-reviewer-prompt.md +23 -0
- package/skills/subagent-driven-development/implementer-prompt.md +87 -0
- package/skills/subagent-driven-development/spec-reviewer-prompt.md +37 -0
- package/skills/using-git-worktrees/SKILL.md +144 -0
- package/skills/writing-plans/SKILL.md +126 -7
- package/skills/writing-plans/plan-document-reviewer-prompt.md +47 -0
|
@@ -2,34 +2,126 @@
|
|
|
2
2
|
name: '@deepseek-ai/dsh-persona'
|
|
3
3
|
config:
|
|
4
4
|
prefix: |-
|
|
5
|
-
You are DW Reviewer (role ID: dsmm-reviewer)
|
|
6
|
-
|
|
5
|
+
You are DW Reviewer (role ID: dsmm-reviewer).
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
9
|
+
<ocmm-locale-guidance>
|
|
10
|
+
Language and locale:
|
|
11
|
+
- This shared resource supplies no configured locale; preserve this exact Agent's captured locale and applicable host/user language guidance when supplied.
|
|
12
|
+
- When neither captured locale nor applicable host/user language guidance is supplied, infer the preferred visible-output language from the current request and conversation context. This does not configure reasoning language or the host/project locale.
|
|
13
|
+
- If the user mixes languages, use the language that best matches the current request.
|
|
14
|
+
- Preserve code, identifiers, file paths, commands, protocol names, quotes, and user-requested wording in their original language when accuracy requires it.
|
|
15
|
+
- If the user explicitly asks for a different output language for a specific answer, follow that local request unless it conflicts with higher-priority instructions.
|
|
16
|
+
</ocmm-locale-guidance>
|
|
17
|
+
|
|
18
|
+
---
|
|
19
|
+
|
|
20
|
+
<agent-role name="reviewer">
|
|
21
|
+
|
|
22
|
+
# Agent Role: implementation reviewer
|
|
23
|
+
|
|
24
|
+
You are a read-only implementation and focused code-quality reviewer. The `reviewer` is the primary-model or primary-lane self-review; Oracle profiles are external-model cross-checks. Explicit user model configuration remains authoritative.
|
|
25
|
+
|
|
26
|
+
## Review boundary
|
|
27
|
+
|
|
28
|
+
Review the stated goal and acceptance criteria against the current committed range or working-tree/staged diff, including relevant new files, available verification, and constraints. Inputs need no prescribed labels or order. Review only that implementation; do not edit, execute product work, or turn unrelated observations into blockers.
|
|
29
|
+
|
|
30
|
+
Never use this role for research, ideation, architecture design before implementation, root-cause debugging, general answer validation, or routine confidence. Ground every claim in supplied or directly observed paths, symbols, diffs, tests, logs, or requirements. Distinguish implementation defects from proof gaps in clear prose; labels are optional.
|
|
31
|
+
|
|
32
|
+
Judge documents, code/comments, tests, and commit messages against final effective requirements and design, not development narratives, decision histories, rejected alternatives, or assumption rationale/cost records. Only strictly chronological documents such as roadmaps/changelogs retain history. Product spec/plan directories describe final product deliverables only, with separate plans for changed requirements; non-product coordination stays in conversation or task-owned temporary plans outside `docs/superpowers/specs/` and `docs/superpowers/plans/`.
|
|
33
|
+
|
|
34
|
+
Tests cover valid requirements, functionality, and external interfaces. Reject string, regex, snapshot, or parsed-content locks for documentation, commit messages, package descriptions, or non-boundary error/log wording. Changed requirements update tests; removed components lose their dedicated tests, not gain absence tests. Preserve valid safety/protocol/input-handling coverage. Git commits bound compatibility: uncommitted intermediate behavior may change incompatibly for final requirements, but an uncommitted edit does not erase committed contracts or expand API/security/data/permission/irreversible-action authorization. Report actual defects, current risks, unresolved authorization, and unverified evidence.
|
|
35
|
+
|
|
36
|
+
Evaluate existing evidence by material relevance; request missing or affected coverage instead of blanket reruns for unrelated code, dependency, or environment changes. The orchestrator coordinates global/heavy verification; don't duplicate it or waive required safety, release, pre-commit, or user checks.
|
|
37
|
+
|
|
38
|
+
Report material findings first with severity when useful, file path, concrete evidence, likely impact, and the smallest valid correction. Judge whether useful functionality is complete, interfaces are clear, and meaningful regression and real-surface evidence support the result. Review informs engineering judgment; it is not delivery authorization or a protocol gate. After a substantive correction, repeat only the affected review when further review is warranted. Apply strict review only when the user explicitly requests it or a scoped, concrete high-risk condition warrants it.
|
|
39
|
+
|
|
40
|
+
Use direct read/search tools first; a leaf read-only lookup may verify one finding but returns evidence, not delegated judgment. Never dispatch planner, reviewer, any Oracle profile, plan-critic, clarifier, coordinator, or an implementation agent.
|
|
41
|
+
|
|
42
|
+
</agent-role>
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
<dsmm-host-contract>
|
|
47
|
+
Use the current DSH 0.2.0-rc.2 catalog: read/glob/grep for files, web_search/web_fetch for external facts, write/edit and the actual bash/pwsh for authorized edits and execution, and native skill invocation for triggered skills. Native read takes file_path; inspect actual schemas, not OpenCode field names. Use exposed ask_user_question or ask a material question in conversation. Use exposed todo_write for useful Agent-owned whole-list tracking under its actual concurrency policy. Use LSP/browser/read_image only when present and supported by the actual route; fall back to direct evidence or report the capability unavailable. No Task/todowrite/compress/Context7 MCP API is assumed; host compaction is not an OCMM compression tool.
|
|
48
|
+
Logical source role names map to IDs dsmm-<name> (explore is only the code-search alias). Inspect this Agent's actual admitted tool inventory: per-role exposes individual role tools plus dsmm_category; parameterized exposes dsmm_role/dsmm_category and their permitted target enums. description/prompt are assignment inputs; optional level, route and run_in_background depend on the actual schema and captured admission. Omitted/normal retains the default route; low/high/max requires that target's configured complete route or effort-only override, with exact native preflight. route additionally needs deployment allowRouteOverride=true; no suffix role/tool or arbitrary effort is inferred. Layout/level never changes target/read-only/depth/ownership authority. A read-only planner returns complete Markdown for authorized coordinator persistence, never through file/shell writes or a child proxy.
|
|
49
|
+
One-shot defaults foreground and is never revived after settlement. When enabled and admitted, native jobs own one-shot background; a managed continuable configuration defaults background and returns a durable child ID, while explicit run_in_background:false starts a non-reusable one-shot. Existing continuable children use actual exposed send_message for running/idle/same-ID cold delivery and actual native user queue/steer; acceptance is not completion. Original child route/locale/authority remains captured and intersects current exact-parent authority, not parent-new-policy inheritance. Legacy conservative evidence permits useful proven capabilities and denies missing-evidence capabilities with reasons. A foreground handoff, only through an actually wired user control, moves the existing run to native-job ownership without another start; no static text declares a new tool or RPC. Managed delivery requires disabling the stock subagents row and binding the unique PUBLIC DSMM SubagentRuntime subclass at explicit startup, then restart. Stock cannot be hot-replaced. Background/capacity/depth/ownership/cancellation remain mandatory. Native continuation is not task_id/resume/retry.
|
|
50
|
+
The native main model picker, explicit user route and catalog are authoritative. Model guidance calibrates behavior only; it does not select an OCMM provider/model, grant permissions, declare external independence or change advertised effort. Oracle independence requires a different model was explicitly selected and verified in the actual route. Default inventory has no synthetic tiers or additional Oracle slots.
|
|
51
|
+
Follow the current user's explicit visible-output language request, then this Agent's immutable captured locale when supplied, then applicable host/user language guidance or current request/context. All DSMM roles/categories follow this priority even with common mode off. Preserve identifiers, code, paths, commands, protocol fields and exact quotes; child assignments retain explicit language requests. This contract copies no Root locale/configuration, promises no internal reasoning language and changes neither host UI nor project locale.
|
|
52
|
+
Role persona and access remain when Deepwork is explicitly off; common workflow and DSMM skills do not. Git/install/login/destructive actions need exact authorization regardless of mode. All delegation guidance is intersected with enabled roles, mounted capabilities, inherited permissions and native depth; runtime policy enforces those ceilings, not these static texts.
|
|
53
|
+
</dsmm-host-contract>
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
<ocmm-shell-command-safety>
|
|
58
|
+
# Shell Command Safety
|
|
59
|
+
|
|
60
|
+
- Keep terminal commands short and inspectable. Do not combine unrelated setup, validation, execution, and cleanup into one complex invocation, especially when filesystem changes are involved.
|
|
61
|
+
- Avoid hard-to-audit complex shell commands, nested scripts, and large inline Node.js, Python, or other-language programs; prefer dedicated files or structured tools and short, inspectable single-purpose commands. Simple `node -e`/`python -c` probes and proportionate scripts are fine. When complex logic needs a script, give it a clear purpose in a standalone file and run it directly; temporary-script cleanup may remove only files created for the current task.
|
|
62
|
+
- In PowerShell, do not use `$home` or any case variant as a custom variable: variable names are case-insensitive and `$HOME` is an automatic variable. Use a specific, purpose-named variable instead.
|
|
63
|
+
- Treat recursive or batch deletion as a fail-closed operation. Prefer an exact literal target. If a variable is unavoidable, require it to be explicitly assigned and non-empty in the current command, resolve and inspect the target immediately before deletion, and abort unless it is exactly the intended path.
|
|
64
|
+
- Never recursively or batch-delete a filesystem root, the user home, the workspace, an ancestor of the workspace, or an unexpected parent directory. Keep destructive cleanup separate from setup and execution so the target can be reviewed again before it runs.
|
|
65
|
+
</ocmm-shell-command-safety>
|
|
66
|
+
|
|
67
|
+
<ocmm-subagent-compression-policy>
|
|
68
|
+
## Subagent Compression Policy
|
|
69
|
+
Apply this policy only when the current execution is a subagent session and a `compress` tool is available.
|
|
70
|
+
If `compress` is unavailable, do not propose, simulate, or attempt compression.
|
|
71
|
+
A long conversation, a high message count, one large tool result, or a stage boundary is not sufficient.
|
|
72
|
+
Trustworthy capacity or size information alone is insufficient: do not proactively compress.
|
|
73
|
+
When no trustworthy capacity signal or size estimate exists, do not compress proactively.
|
|
74
|
+
Emergency compression is allowed only when an explicit capacity warning, context-budget signal, or concrete evidence shows the next bounded task cannot fit. Remove only the smallest closed range needed to continue safely.
|
|
75
|
+
Preserve the task goal, constraints, current state, pending work, decisions, paths, interfaces, and necessary evidence.
|
|
76
|
+
Never compress the active phase, unresolved errors, or source material still needed for exact quotation or verification.
|
|
77
|
+
|
|
78
|
+
### Completed large-exploration recommendation
|
|
79
|
+
This recommended proactive path applies only when every condition holds:
|
|
80
|
+
- The exploration is completely finished; no file, search branch, or evidence question from that batch remains open.
|
|
81
|
+
- A trustworthy estimate shows that the completed exploration introduced more than 100k tokens of source material into the current context.
|
|
82
|
+
- Required findings, paths, decisions, constraints, and exact evidence that must survive have been materialized in the response or a durable note.
|
|
83
|
+
- The selected raw exploration range is closed and no longer needed verbatim.
|
|
84
|
+
- The same subagent will continue into a subsequent synthesis, planning, implementation, or review phase within the same assignment. If exploration completes the assignment and the subagent will return immediately, do not compress.
|
|
85
|
+
This is a recommendation, not a mandatory tool call. If the token estimate is unavailable, do not invent it. Never compress during an active exploration, even if cumulative reads appear large.
|
|
86
|
+
|
|
87
|
+
### Additional continued Reviewer/Oracle proactive exception (~130k guardrail)
|
|
88
|
+
The common emergency and completed >100k exploration paths remain independently available. This is an additional path only for other closed review material.
|
|
89
|
+
This additional path is available only when every condition holds:
|
|
90
|
+
- The caller explicitly continued this same review session inside the current review stage rather than starting a fresh consultation or crossing a stage boundary.
|
|
91
|
+
- A substantial phase has closed, such as a large read/search batch with recorded findings or a review pass with stable conclusions.
|
|
92
|
+
- Those conclusions have been materialized in a response or durable note.
|
|
93
|
+
- The selected range is closed and is no longer needed verbatim by the active review.
|
|
94
|
+
- The same session is expected to continue; stage-ending compression with no expected follow-up is forbidden.
|
|
95
|
+
- Trustworthy estimates indicate approximately 130k or more current context, at least 50k removable closed context, and either a real capacity signal or about ten additional model turns.
|
|
96
|
+
These constraints do not prohibit a bounded follow-up under either common path when its own conditions are met.
|
|
97
|
+
If any estimate is unavailable, do not invent it; only this additional path becomes unavailable, while the common paths (the emergency and completed >100k exploration paths) remain independently available under their own conditions. A single completed tool call is not a phase boundary.
|
|
98
|
+
</ocmm-subagent-compression-policy>
|
|
99
|
+
|
|
100
|
+
<ocmm-delegation-contract>
|
|
101
|
+
## Delegation Contract (Authoritative)
|
|
102
|
+
Use direct tools first. Delegate only when direct tools are insufficient and a separate bounded research result materially improves completion.
|
|
103
|
+
Allowed utility targets: `code-search`, `explore`, `doc-search`, `research`, `media-reader`.
|
|
104
|
+
`quick` is forbidden because this read-only role must not modify work by proxy. Planning, review, coordination, and implementation workflow agents are also forbidden.
|
|
105
|
+
Return the completed plan or findings to the caller. Formal planner dispatch, the `plan-critic` loop, review dispatch, and final acceptance review are orchestrator-owned.
|
|
106
|
+
This contract overrides any skill, model calibration, generated-adapter compatibility text, or other prompt layer that suggests broader delegation.
|
|
107
|
+
</ocmm-delegation-contract>
|
|
108
|
+
|
|
109
|
+
The source delegation allowance is conditional on actual native callability and the caller's inherited authority; formal workflow stages belong to the trusted root/stage owner. No static text grants a tool or overrides an execution restriction.
|
|
7
110
|
- id: agent-instructions
|
|
8
111
|
name: '@deepseek-ai/dsh-agent-instructions'
|
|
9
112
|
config:
|
|
10
113
|
maxBytes: 65536
|
|
11
114
|
- id: tool-fs
|
|
12
|
-
name: '@
|
|
115
|
+
name: '@dsmm/dsmm/permission-fs'
|
|
13
116
|
- id: tool-fs-search
|
|
14
|
-
name: '@
|
|
117
|
+
name: '@dsmm/dsmm/permission-fs-search'
|
|
15
118
|
config:
|
|
16
119
|
sampleOverCapGlobResults: false
|
|
17
120
|
- id: tool-web
|
|
18
|
-
name: '@
|
|
121
|
+
name: '@dsmm/dsmm/permission-web'
|
|
19
122
|
config:
|
|
20
123
|
fetch: true
|
|
21
124
|
- id: skill-filesystem
|
|
22
125
|
name: '@deepseek-ai/dsh-skill-filesystem'
|
|
23
126
|
- id: tool-skill
|
|
24
127
|
name: '@deepseek-ai/dsh-tool-skill'
|
|
25
|
-
- id: dsmm-preset-skills
|
|
26
|
-
name: '@dsmm/dsmm/preset-skills'
|
|
27
|
-
config:
|
|
28
|
-
skills:
|
|
29
|
-
- 'brainstorming'
|
|
30
|
-
- 'writing-plans'
|
|
31
|
-
- 'requesting-code-review'
|
|
32
|
-
- 'receiving-code-review'
|
|
33
|
-
- 'subagent-driven-development'
|
|
34
|
-
- 'dispatching-parallel-agents'
|
|
35
|
-
- 'remove-ai-slops'
|
package/cordis.patch.yml
CHANGED
package/docs/agent-presets.md
CHANGED
|
@@ -1,29 +1,62 @@
|
|
|
1
|
-
# Deepwork
|
|
1
|
+
# Deepwork Agent presets and child control
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This guide describes built source behavior on the native DSH integration, not automatic availability in the published `@dsmm/dsmm@0.2.0` artifact. Native package composition and callable admission must both exist.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Roles and composition
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
The canonical inventory is 11 base roles and 11 categories. Base roles are orchestrator, builder, reviewer, oracle, oracle-2nd, doc-search, code-search, planner, clarifier, plan-critic and media-reader. Categories are frontend, creative, hard-reasoning, research, quick, coding, normal-task, complex, deep, documenting and cross-cutting. IDs are `dsmm-<source-name>`; `explore` is a code-search compatibility alias, not another role. Cross-cutting defaults disabled; other canonical items default enabled.
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
Only Orchestrator and Builder (`primary`) and Planner (`all`) are root-eligible. Planner root exposure additionally requires `presets.plannerRootEnabled: true`; it defaults false. This does not disable `roles.dsmm-planner` (default true), its native workflow provider, or its read-only delegation. Other roles are auxiliary-only (`subagent`), regardless of enablement. Native preset selection displays `DW …` labels under unchanged IDs. A role name is a responsibility, not a model choice or authority claim.
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Native `agentPresets.register({id, plugins})` registers root compositions; DSH doesn't discover them by scanning exported directories. Generated `agent-presets/` mirrors are inspection/export resources. `presets.materialize` defaults off and never selects the Host default preset. Personas, read-only restrictions and host approvals remain when explicit Deepwork off hides common workflow and DSMM skills. Complete adapted source content and resources are described in [source synchronization](skill-sync.md).
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
The Planner root flag follows the existing deployment `presets` scope: Global config and the current DSH entry may set it; named/session overlays cannot. The complete `presets` group is startup-pinned. Saving desired changes neither migrates running Agents nor changes the standing registry; next-root settings report `restartRequired: ["presets"]` until an independent Host restart. After restart, disabled Planner roots are not registered for native picker, definition export or mounting, and forced native/API creation or root resume is refused before prompt/provider execution. Opting in still requires the enabled module, enabled role, usable native composition and current admission; it never grants writes. Original child captures do not contain `presets`: old captured workflow Planner children retain their original route, epoch and read-only ceiling without migration or current-parent permission reconstruction. Harness's native `/plan` and its plan-mode composition remain unchanged.
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
Standing Orchestrator/Builder compositions include native planning, compaction/pruning, question and todo rows. Planner includes planning, compaction/pruning and questions, but no todo writer. Coding/frontend/deep/complex/cross-cutting include compaction/pruning, questions and todo; other auxiliary roles add none of those rows. Native spawn can retain parent services, so this isn't a promise to strip every inherited row from short children. Effective filters and execution fences still decide access. Native `/plan` doesn't upgrade Planner permissions, and `/compact` remains a human native command.
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
## Delegation authority
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
| Admitted identity | Permitted logical children, intersected with native authority |
|
|
20
|
+
| --- | --- |
|
|
21
|
+
| Trusted root/stage-owner Orchestrator or Builder | Authorized workflow/execution roles; owns formal planning, criticism and acceptance |
|
|
22
|
+
| quick, code-search, doc-search, research, media-reader | None; research remains a leaf |
|
|
23
|
+
| Planner, clarifier, plan-critic, Reviewer/Oracle | Read-only code-search, doc-search, research, media-reader |
|
|
24
|
+
| coding, normal-task, frontend, creative, hard-reasoning, documenting | Bounded utility leaves |
|
|
25
|
+
| deep, complex, cross-cutting | Utility leaves and coding/frontend/hard-reasoning/creative/documenting specialists |
|
|
26
|
+
| Native child Builder | Bounded utility leaves, not stage ownership |
|
|
20
27
|
|
|
21
|
-
|
|
28
|
+
No child gains coordination authority from a preset label, persona or durable role string. The shared role policy checks exact live native ownership, original child capture, admitted epoch and provider/definition identity. Generic spawn can't bypass role admission in a DSMM-owned workflow. Unrelated ordinary off-mode native children retain Host behavior without acquiring DSMM delegation.
|
|
22
29
|
|
|
23
|
-
|
|
30
|
+
Read-only roles remain read-only independently of mode and optional guards. Planner returns complete Markdown for native review/handoff; an authorized coordinator persists it. There is no Planner writer. Native catalog visibility and role permission are separate: a schema or read-only catalog listing doesn't authorize invocation, and own-layer native schemas may remain visible even when mandatory execution fences deny them.
|
|
24
31
|
|
|
25
|
-
|
|
32
|
+
Descendants intersect parent allow-lists with requested restrictions and union deny-lists, using frozen captures. Existing native filters still execute. Reinstallation, direct aliases, continuable starts and cold resumes don't enlarge original authority. A named profile can narrow enabled roles but can't lift startup/deployment ceilings; required roles and conditional legacy review rules are covered in [profiles](profiles.md#inheritance-and-ceilings).
|
|
26
33
|
|
|
27
|
-
##
|
|
34
|
+
## Invocation and lifecycle
|
|
28
35
|
|
|
29
|
-
|
|
36
|
+
Actual per-role or parameterized tool names, target IDs and `level`/opt-in `route` parameters are documented in [model routing](model-routing.md#tool-topology-and-target-filters). Default level is normal; low/high/max require explicit target configuration. Root model selection stays native-owned. Children capture route, visible-output locale and authority at admission, not from a parent's later profile.
|
|
37
|
+
|
|
38
|
+
Foreground one-shot is the deployment default. A one-shot waits for useful native result/output and settles; its terminal child can't be revived as a continuable conversation. Structured result capture, cancellation, storage, capacity and teardown remain native-owned.
|
|
39
|
+
|
|
40
|
+
Explicit `enableRunInBackground` permits native jobs. With `backgroundMode:"one-shot"`, calls wait unless `run_in_background:true`. With opted-in `backgroundMode:"continuable"`, background continuation is the call default; `run_in_background:false` still waits for one-shot work. Continuable start requires a real native `prepareContinuable` method, not a capability flag alone. Omitted `maxDepth` delegates to the native limit; deployment depth/background settings aren't named-profile fields.
|
|
41
|
+
|
|
42
|
+
A running foreground one-shot can be handed to background jobs using the exact published run, tool call, parent session and admission epoch. This transfers the same native run, not a restarted prompt or second child. The receipt reports `background`, `already-background`, `already-settled` or `cancelled`, with the same run ID and job ID where applicable. Starting, settled, cancelled, stale or unauthorized requests don't imply a new execution.
|
|
43
|
+
|
|
44
|
+
## Native child panel and report
|
|
45
|
+
|
|
46
|
+
The session-scoped Conversation child panel shows actual runs, direct children and a read-only descendant tree. IDs, activity, mode, admitted role/level, route comparison, original evidence and disabled reasons remain separate facts. Corrupt, unsupported or unavailable branches show diagnostics, not fabricated successful results. Descendant inspection doesn't grant control over non-direct children.
|
|
47
|
+
|
|
48
|
+
Route comparison uses real initial `invocation-capture` and the child's latest `own-native-request-header`. Missing/invalid/unobserved evidence remains unknown, never inferred from the root route, current profile or compatibility invocation projection. Original capture evidence and conservative legacy evidence expose `provenFields` and limitations; neither a role label nor an empty limitation list proves full old-configuration recovery.
|
|
49
|
+
|
|
50
|
+
Human messages target only an admitted direct continuable child with current parent authority and ready delivery fencing. Entries whose observed control projection is read-only remain inspection-only; this isn't the role's tool-level read-only policy. **Queue** accepts a distinct later turn; **Steer** targets the nearest step. Idle/cold continuation keeps the same durable child ID. Native attachment and model admission validate images separately.
|
|
51
|
+
|
|
52
|
+
An inbox receipt means **accepted**, not executed or completed. An interrupt acknowledgment isn't completion and doesn't claim queued work was removed. If transport leaves a send outcome unknown, the draft stays visible and automatic resend is disabled. Inspect the native child conversation before explicitly allowing a new message, which could duplicate an accepted one. Refresh and reconnection never imply automatic retry.
|
|
53
|
+
|
|
54
|
+
## Explicit runtime and legacy boundaries
|
|
55
|
+
|
|
56
|
+
Managed delivery uses explicit cold-start `@dsmm/dsmm/subagent-runtime` composition and the optional [runtime patch](../patches/subagent-runtime.yml), not automatic replacement by the default bundle. Keep one provider in the same Host scope, preserve native spawn/fork/model/Gateway services, and retain explicit stock capacity/depth settings. Runtime binding, delivery readiness and restart requirement are observable separately. See [settings](settings-status.md#child-runtime-composition).
|
|
57
|
+
|
|
58
|
+
An old child without complete original capture uses conservative evidence and per-field limitations, not the current parent's settings as recovered history. The separate legacy read adapter remains default off and requires explicit trusted Host composition. Its compatibility boundary doesn't grant arbitrary writes, invented approvals or durable guarantees. See [compatibility](compatibility.md); named legacy storage and old-child admission evidence aren't the same mechanism.
|
|
59
|
+
|
|
60
|
+
Native Host commands, sessions, inbox, permissions, process/cwd/model selection and transports retain ownership. DSMM supplies role admission and bounded controls, not a replacement lifecycle scheduler, generic permission bypass or automatic retry system.
|
|
61
|
+
|
|
62
|
+
*Author's note: For a coordinator or DSH operator delegating work; inspect actual child admission and receipts before treating catalog visibility or accepted delivery as execution.*
|
package/docs/compatibility.md
CHANGED
|
@@ -1,70 +1,76 @@
|
|
|
1
|
-
#
|
|
1
|
+
# DSMM compatibility and upgrade boundaries
|
|
2
2
|
|
|
3
|
-
This document describes the
|
|
3
|
+
This document describes the **local source candidate**, not a newly published release. The manifest remains `@dsmm/dsmm@0.2.0`, which is an existing registry version; that version string doesn't prove the registry artifact contains these source features. Evaluate the actual local packed artifact. Formal package/smoke checks and authorized installed-host acceptance are separate evidence, and neither is declared complete here.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
## Supported integration
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
| Surface | Contract | Boundary |
|
|
8
|
+
| --- | --- | --- |
|
|
9
|
+
| Node.js | 22 or later | Required runtime |
|
|
10
|
+
| DSH SDK/component peers | `0.2.0-rc.2` | Current native integration target, not a future-version guarantee |
|
|
11
|
+
| Cordis / Schemastery | `~4.0.4` / `~3.18.4` | Declared package contracts |
|
|
12
|
+
| Native Web UI | Plugins item/bundle/row forms, Settings Profiles and Conversation controls | Actual Host identity and capabilities still required |
|
|
13
|
+
| Desktop source | Official `0.2.1-alpha.1` shared PluginManager/Web Host contracts | Source compatibility only, not executable/Electron activation |
|
|
14
|
+
| CLI/headless | Native deployment configuration and delegation tools | One-shot headless doesn't select Agent presets |
|
|
15
|
+
| TUI | Independent native deployment profile | Package installation doesn't prove every Web client control is exposed in TUI |
|
|
16
|
+
| Managed child runtime | Explicit cold `./subagent-runtime` composition | Not installed by the default bundle |
|
|
17
|
+
| DSMM-managed external LSP | Not enabled in this version; interfaces and original config retained | Automatic MCP mounting stays off even with `lsp.enabled:true`; DSMM settings UI hides LSP controls |
|
|
8
18
|
|
|
9
|
-
|
|
19
|
+
DSMM is the localized package/Core title; Deepwork names its optional module. Deepwork Profiles and `DW …` role labels don't rename package, Loader, command, role, provider or persistence IDs. Native metadata uses exported `locale/en.json` and `locale/zh.json`, not an invented manifest `displayName`.
|
|
10
20
|
|
|
11
|
-
|
|
21
|
+
The LSP restriction doesn't affect DSH's own LSP or independently configured MCP. The retained historical manual patch isn't a supported DSMM activation entry. Existing release checks still independently validate the retained LSP interface; they don't establish automatic integration availability. See [LSP boundary](lsp.md).
|
|
12
22
|
|
|
13
|
-
##
|
|
23
|
+
## Stable configuration and admission
|
|
14
24
|
|
|
15
|
-
|
|
25
|
+
Core settings remain available without a session and with Deepwork cold-off. Native Global and current-profile saves are independent: Global writes only central `config.json`; the exact native profile form writes only its own patch. Invalid or dirty input remains visible after refusal. There is no Save-all, second configuration store or implicit restart.
|
|
16
26
|
|
|
17
|
-
|
|
27
|
+
The sparse resolution order is defaults → global deployment → explicit native entry/profile → admitted immutable named overlay. Explicit same-default values remain overrides, objects merge, arrays replace, and unset removes only its own layer's key. Runtime profiles may narrow `roles` and select routing, topology and visible-output locale, but can't grant deployment-only route-override permission, mount services, change accounts or replace persistence. Required-role rules don't create missing startup capability. See [profiles](profiles.md) and [settings/status](settings-status.md).
|
|
18
28
|
|
|
19
|
-
|
|
29
|
+
Draft, saved revision, future-default pin and current admission are separate states. Save activates neither scope. Future-default changes leave existing Agents, including blank ones, unchanged. Current-session Apply requires an exact idle ordinary root, selection CAS and admission epoch; it commits only that root's immutable overlay on its existing deployment baseline. Existing children retain their original captures, and later children inherit the new parent admission. Busy or stale targets aren't queued.
|
|
20
30
|
|
|
21
|
-
|
|
31
|
+
Global CAS uses actual-byte revision, cooperative locking, final recheck and atomic replacement. Native profile saves have separate native authorization/CAS, not a cross-layer transaction. These safeguards don't promise a universal transaction against non-cooperating external editors. Configuration RPC requires native invocation peer equal to the operator, public loopback bind, writable Host and owner/lifetime rechecks. Remote or unknown carriers refuse; a client `isLoopback` claim, tunnel or loopback-looking URL isn't authority.
|
|
22
32
|
|
|
23
|
-
|
|
24
|
-
| --- | --- | --- |
|
|
25
|
-
| Node.js | `>=22` | required; final artifact check pending |
|
|
26
|
-
| DSH | `0.2.0-rc.2` | pinned authority; final native acceptance required |
|
|
27
|
-
| Cordis | `~4.0.4` | supported by contract |
|
|
28
|
-
| DSH component peers | `0.2.0-rc.2` | supported by contract |
|
|
29
|
-
| Linux container | `Node 22 Bookworm` | independent frozen-artifact gate required |
|
|
30
|
-
| Windows Desktop | installed official `0.2.0-rc.2` carrier/host | post-publication native check required |
|
|
31
|
-
| macOS | `Node >=22` | supported by contract |
|
|
32
|
-
| Native Settings | additive Deepwork Profiles client and authenticated RPC | compiled UI/RPC/storage and actual Desktop are separate proofs |
|
|
33
|
-
| Headless | deployment config and native role tools | no Agent preset selection in the one-shot runner |
|
|
34
|
-
| TUI | `DSH 0.2.0-rc.2` | existing official 0.1.6 CLI/TUI installation verified; new 0.1.9 menu proof is Web/Desktop only |
|
|
35
|
-
| LSP/MCP | `external ocmm-lsp mcp` | optional |
|
|
36
|
-
| Runtime recovery | `process-local` | optional |
|
|
37
|
-
| Per-role model/effort/fallback policy | native request, subagent and descriptor seams | opt-in; exact configured capability required |
|
|
38
|
-
| Runtime profiles | independent drafts, immutable revisions, global pointer and scoped CAS sidecars | global new-Agent defaults; explicit idle session epochs; cold sidecar retention |
|
|
39
|
-
| Durable DSMM metadata | deployment-only `sessionPersistence` on main DSMM entry | explicit startup integration; frozen-artifact/production acceptance pending |
|
|
40
|
-
| DeepSeek V4 Pro calibration | `deepseek-official/deepseek-v4-pro` | optional |
|
|
41
|
-
| DeepSeek V41 Flash calibration | `native DeepSeek providers/deepseek-flash` | optional |
|
|
33
|
+
Cold resume creates a new admission using valid deployment and the exact committed sidecar, or the scoped future default when no sidecar exists. Corrupt/unavailable sidecars don't silently fall back. Clear/compact doesn't transfer choices through inferred lineage. An exact old `<profileContext.dir>/dsmm-profiles` library remains strictly read-only with its original immutable pins; central same-name documents aren't substitutes. Nothing is automatically copied or migrated.
|
|
42
34
|
|
|
43
|
-
##
|
|
35
|
+
## Models, roles and native controls
|
|
44
36
|
|
|
45
|
-
|
|
37
|
+
Ordinary roots preserve native provider/model/exact effort across activation, Save, profile Apply, later turns and cold resume. **Use profile model** is a separate explicit native action using the current admitted immutable revision. A newer manual selection wins. Locale is captured visible-output preference, subordinate to an explicit user language request, not a change to internal reasoning or technical identifiers.
|
|
46
38
|
|
|
47
|
-
|
|
39
|
+
Eligible child targets use normal by default; low/high/max require explicit exact-target levels. Unsupported effort refuses without downgrade. Per-role and parameterized topologies preserve canonical target filters, definition/provider identity, role matrix, depth and permission checks at execution. Disabled roles remain diagnosable and routing-editable without becoming callable. Orchestrator isn't a child target. `modelSelectionSettings:false` remains unchanged. See [model routing](model-routing.md).
|
|
48
40
|
|
|
49
|
-
|
|
41
|
+
Native child capture records original role, invocation route, locale and authority. Descendants intersect parent allow-lists and accumulate deny-lists. A later parent profile doesn't rewrite child history, lift startup ceilings or recover missing capture. Current exact-parent authority is checked again for delivery, so a retained child capture isn't permission to bypass a newer cutoff. Route comparison uses initial invocation capture and that child's own request header; absent evidence stays unknown.
|
|
50
42
|
|
|
51
|
-
|
|
43
|
+
With background explicitly enabled and native jobs available, a published running foreground one-shot can transfer to background as the **same native run**. This doesn't replay a prompt, create a second child or revive settled work. Run receipts distinguish background, already-background, already-settled and cancelled outcomes.
|
|
52
44
|
|
|
53
|
-
|
|
45
|
+
Only an admitted direct continuable child with ready delivery fencing can accept Queue/Steer or interrupt. Descendant inspection is read-only and doesn't grant non-direct control. Idle/cold continuation keeps the durable child ID. Accepted inbox delivery isn't completion; interrupt acknowledgment isn't completion or proof queued work was removed. Unknown send outcomes retain the draft and disable automatic resend, including after refresh/reconnection. See [Agent presets and child control](agent-presets.md).
|
|
54
46
|
|
|
55
|
-
|
|
47
|
+
`startup-lock` is the default role strategy; bounded `rate-limit-fallback` is explicit. Every retry or switch requires correlated positive no-output evidence. Partial text, reasoning or tool fragments forbid replay, even on the same route. Process-local retry state isn't revived from old headers and generic failures don't authorize hopping. Native lifecycle, model authentication and cancellation stay Host-owned. See [runtime recovery](runtime-recovery.md).
|
|
56
48
|
|
|
57
|
-
|
|
49
|
+
## Explicit managed runtime composition
|
|
58
50
|
|
|
59
|
-
|
|
51
|
+
The default `cordis.patch.yml` is unchanged and adds only the main DSMM entry. It doesn't replace the stock `subagents` service. Managed delivery needs the explicit cold overlay [patches/subagent-runtime.yml](../patches/subagent-runtime.yml) and an independent restart.
|
|
52
|
+
|
|
53
|
+
The patch targets stock ID `subagent` with name `@deepseek-ai/dsh-subagent`, disables that row, adds `@dsmm/dsmm/subagent-runtime`, and makes the main DSMM entry depend on `subagents`. Native `name` asserts the target identity; it isn't a rename. Check the actual Host composition before applying it. Preserve spawn/fork/model/Gateway services in the same scope and copy explicit stock capacity/depth configuration into the new runtime row. Keep one active runtime; don't hot-shadow or replace a running stock service.
|
|
54
|
+
|
|
55
|
+
The public `./subagent-runtime` export maps to `lib/runtime-integration.js`. Its default export is `subagentRuntimePlugin`, the Host-owned startup entry that constructs the public DSMM runtime subclass. A separately constructed class isn't proof of Host admission ownership. Runtime projection separates `binding: stock | dsmm | unavailable`, `deliveryFenceReady` and `restartRequired`. Missing native history, providers or admission fencing can't be replaced by an availability flag. Core stays usable, while unavailable controls return a refusal rather than a successful-looking receipt.
|
|
60
56
|
|
|
61
|
-
|
|
57
|
+
## Experimental legacy read
|
|
62
58
|
|
|
63
|
-
|
|
59
|
+
Old children without complete original capture expose conservative evidence, `provenFields` and per-field limitations. Neither the current parent's settings nor a role label proves their old configuration. Legacy child evidence and read-only legacy profile storage are separate mechanisms.
|
|
60
|
+
|
|
61
|
+
The legacy read adapter is **default off**. The consumed programmatic interface is `DsmmHostStartupOptions.experimentalLegacyRead`, passed to the main package's `createDsmmHostPlugin(startup)` or named `apply(ctx, config, hostStartup)` third argument. The old `legacyRead` option isn't consumed. It isn't a deployment/profile YAML field or an RPC switch.
|
|
62
|
+
|
|
63
|
+
Cold composition requires actual closed Host callbacks for composition capture, read bindings, call context, audit/retirement fault reporting and revocation. The constructor checks those collaborators; serializable assertions aren't a substitute for real Host operation/approval/audit ownership. Export resolution alone doesn't certify that a carrier supplies them.
|
|
64
|
+
|
|
65
|
+
Cross-process **known-retained-owner cleanup**, **B await/pre-drain ordering** and **published replay** aren't fully verified. This adapter isn't a stable general legacy-execution or cross-process guarantee. An unproven capability remains unavailable, never supplied by a fabricated attestation, inferred approval or permissive fallback. Keep it off for the stable captured-child path; don't weaken existing Core saves, CAS, model intent or permission cutoffs to accommodate it.
|
|
66
|
+
|
|
67
|
+
## Session persistence compatibility
|
|
64
68
|
|
|
65
|
-
|
|
69
|
+
DSH `0.2.0-rc.2`'s stock `Session.append` can't attach the `ignorable` envelope marker needed for unknown custom events. DSMM's public companion delegates to native JSONL in a separate Context and marks only validated `deepwork/mode` and `dsmm/role-policy` records. DSMM-aware readers retain them; stock readers can skip the marked records. Other event types and malformed metadata aren't broadly declared safe.
|
|
66
70
|
|
|
67
|
-
|
|
71
|
+
Use the **main** `@dsmm/dsmm` entry's deployment-only `sessionPersistence`. The `./session-persistence` export is a library building block, not a second Loader entry. Set the unchanged effective absolute root and effective `zstd` or `none` compression, disable the exact existing native provider at startup, and wait for the companion to become ready. No root is guessed, migrated or hot-replaced. Incompatible durable providers block custom DSMM appends; ephemeral Hosts without persistence remain allowed.
|
|
72
|
+
|
|
73
|
+
For a composition using the stock row below, this is a **partial template**, not a ready-to-copy replacement:
|
|
68
74
|
|
|
69
75
|
```yaml
|
|
70
76
|
- id: session-persistence-jsonl
|
|
@@ -73,40 +79,24 @@ For the proven stock base Web/headless/Desktop bundle row, the exact target is I
|
|
|
73
79
|
- id: dsmm
|
|
74
80
|
name: '@dsmm/dsmm'
|
|
75
81
|
config:
|
|
76
|
-
# Retain
|
|
82
|
+
# Retain every existing DSMM config value here.
|
|
77
83
|
sessionPersistence:
|
|
78
84
|
root: '<unchanged-effective-absolute-root>'
|
|
79
85
|
compression: '<unchanged-effective-zstd-or-none>'
|
|
80
86
|
```
|
|
81
87
|
|
|
82
|
-
Native
|
|
83
|
-
|
|
84
|
-
This startup contract is not a completed final Docker or global-release result. The frozen-artifact gate must still prove the binding, marked durable writes and native/stock read behavior before authorized rollout. Do not weaken the known-vocabulary guard or treat an export resolving as proof that the service owns durable persistence.
|
|
85
|
-
|
|
86
|
-
This prevents future unsafe DSMM writes but does not repair existing unmarked logs. Any repair needs explicit authorization, a targeted recoverable backup, validation and metadata-only changes. There is no automatic log rewriting, history deletion or general unknown-event bypass. Preserve existing logs and report a failed stock-reader restore instead of silently resetting the session.
|
|
87
|
-
|
|
88
|
-
## Upgrade limits before global rollout
|
|
89
|
-
|
|
90
|
-
DSMM runtime profiles are independent JSONC drafts beneath the native `profileContext.dir`, not additional DSH deployment profiles. Deployment roles/skills/preset composition/LSP/provider/account/install and `sessionPersistence` settings remain restart-scoped and cannot be changed by a runtime profile. Supported runtime values can be saved into a draft explicitly; save alone never activates it or rewrites deployment configuration. Apply pins immutable bytes and updates only the minimal selection pointer. See [profiles](profiles.md).
|
|
91
|
-
|
|
92
|
-
Every existing live Agent, **including a blank Agent**, retains its admitted settings when the global default is applied/reset. Explicit current-session selection is separate: native idle maintenance and CAS/epoch checks commit only that ordinary root's sidecar before publishing its immutable admission. Existing children keep their old epoch; later genuinely owned children inherit the new one. Sidecar cold resume retains the exact pinned revision/baseline even after draft/global changes. Sessions without a sidecar keep the old global-current behavior. Corrupt/unavailable sidecars never silently fall back; native clear/compact does not transfer choices by inferred lineage.
|
|
93
|
-
|
|
94
|
-
Old profile documents remain loadable, but omitted strategy now means safer `startup-lock`: a legacy generic chain no longer causes later generic automatic hopping. `runtimeRecovery.enabled` remains parse-compatible and controls legacy continuation concerns, not the two role strategies. Explicitly opt in per role to bounded `rate-limit-fallback` where desired. Every DSMM retry, including same-route retry, requires correlated native no-output evidence; partial text, reasoning or tool fragments refuse terminally without invoking a competing always-retry owner. See [runtime recovery](runtime-recovery.md).
|
|
95
|
-
|
|
96
|
-
Older sessions directly selected into now-auxiliary roles can fail native cold resume because their root preset ID is no longer registered. This is a known native compatibility limitation, not permission to silently replace the persona, reset a session, or erase its history. Disclose it before rollout and preserve historical data; if restoring such sessions is required, stop and obtain direction rather than substituting a root. Package rollback does not authorize history or credential changes.
|
|
97
|
-
|
|
98
|
-
Global/system Desktop migration is the **third phase**: independent frozen-artifact Docker acceptance first, verified immutable npm/GitHub publication second, and only then authorized Desktop package/configuration changes. Preserve unrelated deployment rows, account/provider catalog, role policies (including disabled Builder), active mode, and UI preferences. Use the installation-owned carrier with the app fully quit; neither standalone CLI nor a renamed/copied Desktop profile is a supported substitute.
|
|
88
|
+
Native patch `config` replaces the whole object. Preserve all existing settings and unrelated rows; another provider ID or a provider-free composition requires its own exact check. Keep one main DSMM Loader source to avoid conflicting native client registrations. Binding, marked durable writes and native/stock read behavior need artifact verification; an export existing isn't proof of persistence ownership.
|
|
99
89
|
|
|
100
|
-
|
|
90
|
+
This prevents unsafe future writes but doesn't repair existing unmarked logs. Any metadata-only repair needs separate authorization, a recoverable targeted backup and validation. Don't bypass unknown-event guards, delete history or silently reset a failed restore.
|
|
101
91
|
|
|
102
|
-
|
|
92
|
+
## Installing or upgrading a real Host
|
|
103
93
|
|
|
104
|
-
|
|
94
|
+
Use a checked local candidate artifact for evaluation, following the [isolated example](../README.md#use-a-local-artifact). Installing registry `0.2.0` isn't a way to obtain these new source interfaces. Publication follows separate [release controls](releasing.md); no new npm publication or automatic Desktop installation is claimed here.
|
|
105
95
|
|
|
106
|
-
|
|
96
|
+
Desktop and CLI/TUI use independent native deployment profiles. A separately authorized real installation must use the correct installation-owned carrier, preserve unrelated Loader rows, provider/account catalogs, role policies and UI preferences, and follow explicit startup requirements. Desktop must be fully quit for package handling. Neither a standalone CLI nor a renamed/copied Desktop profile proves supported Desktop activation. Confirm native inventory and actual UI only with authorization; don't use anonymous RPC as a shortcut.
|
|
107
97
|
|
|
108
|
-
|
|
98
|
+
Old `deepseekV4ProMaxReasoningPresets` and `deepseekFlashMaxReasoningPresets` fields fail with `deprecated-field`. Don't silently rewrite them; explicit levels need a deliberate configuration edit. Older sessions rooted directly in now-auxiliary roles can fail native cold resume because the root preset isn't registered. Preserve their history and obtain direction rather than substituting another persona. Rollback doesn't authorize credential or history changes.
|
|
109
99
|
|
|
110
|
-
|
|
100
|
+
No package operation here authorizes changing real Desktop/TUI configuration, accounts, credentials or history. Do not copy credentials for keyless artifact checks. Platform, packed-runtime, Web and Electron evidence aren't interchangeable; local source capability isn't a release-completion or installed-host certificate.
|
|
111
101
|
|
|
112
|
-
|
|
102
|
+
*Author's note: For a DSH operator upgrading an existing installation; check the exact artifact and Host composition, then authorize only the intended carrier and data-preserving changes.*
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# 原生审批期间切换准入配置:已接受的暂缓风险
|
|
2
|
+
|
|
3
|
+
**状态:风险已接受,暂缓修复;不代表功能已修复。** 适用基线为 DSH `0.2.0-rc.2`,仅豁免下述场景的阶段性验收,不豁免其他测试失败或发布检查。
|
|
4
|
+
|
|
5
|
+
## 触发条件与影响
|
|
6
|
+
|
|
7
|
+
DSMM one-shot 委托等待原生审批期间,父 Agent 成功切换 profile 并发布新的 admission epoch;随后用户点击 Allow,DSMM 仍可能因准入代次不一致返回 `UNAUTHORIZED`。
|
|
8
|
+
|
|
9
|
+
实际 SDK 集成测试已复现:Agent、owner、工具定义和 provider 注册保持不变,批准发生一次,但子任务模型 HTTP 请求尚未发出。该问题是条件触发的可用性及审批语义缺陷,并非所有审批必然失败。暂缓不改变运行时权限,不引入跨调用授权,也不放宽取消、归属或请求撤销保护。
|
|
10
|
+
|
|
11
|
+
临时使用时避免在审批等待期间切换父 Agent 的 profile。需要切换时,先取消待审批调用,再按当前配置重新发起委托;不要无条件重跑整个父任务。
|
|
12
|
+
|
|
13
|
+
## 保留的验证与修复条件
|
|
14
|
+
|
|
15
|
+
完整回归保留在 `test/native-core-review-regressions.test.mjs`,默认以明确原因跳过;设置 `DSMM_TEST_DEFERRED_APPROVAL=1` 可重新执行。测试跳过不能计作该场景通过。
|
|
16
|
+
|
|
17
|
+
当前 one-shot 接口不公开可用于准确关联初始输入与本次启动的消息身份或 dispatch 回执。后续 DSH 版本若提供此类公开接口,或其他可验证的等效机制,应重新评估 DSMM 内部修复,优先不修改外部代码。
|
|
18
|
+
|
|
19
|
+
解除暂缓须验证:原调用在准入更新后获准并完成;采用原始调用对应的配置;后台延迟执行仍能准确关联;其他输入和后续调用不能继承豁免;取消、owner/realm、工具及 provider 身份、既有请求撤销和历史子 Agent 边界均保持有效。升级、安装、修改外部 SDK 或发布仍需单独授权。
|