@dsmm/dsmm 0.3.8 → 0.3.10

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.
Files changed (124) hide show
  1. package/README.md +9 -5
  2. package/agent-presets/dsmm-builder/agent.cordis.yml +6 -6
  3. package/agent-presets/dsmm-clarifier/agent.cordis.yml +10 -10
  4. package/agent-presets/dsmm-code-search/agent.cordis.yml +10 -10
  5. package/agent-presets/dsmm-coding/agent.cordis.yml +10 -10
  6. package/agent-presets/dsmm-complex/agent.cordis.yml +10 -10
  7. package/agent-presets/dsmm-creative/agent.cordis.yml +10 -10
  8. package/agent-presets/dsmm-cross-cutting/agent.cordis.yml +10 -10
  9. package/agent-presets/dsmm-deep/agent.cordis.yml +10 -10
  10. package/agent-presets/dsmm-doc-search/agent.cordis.yml +10 -10
  11. package/agent-presets/dsmm-documenting/agent.cordis.yml +10 -10
  12. package/agent-presets/dsmm-frontend/agent.cordis.yml +10 -10
  13. package/agent-presets/dsmm-hard-reasoning/agent.cordis.yml +10 -10
  14. package/agent-presets/dsmm-media-reader/agent.cordis.yml +10 -10
  15. package/agent-presets/dsmm-normal-task/agent.cordis.yml +10 -10
  16. package/agent-presets/dsmm-oracle/agent.cordis.yml +10 -10
  17. package/agent-presets/dsmm-oracle-2nd/agent.cordis.yml +10 -10
  18. package/agent-presets/dsmm-orchestrator/agent.cordis.yml +8 -8
  19. package/agent-presets/dsmm-plan-critic/agent.cordis.yml +10 -10
  20. package/agent-presets/dsmm-planner/agent.cordis.yml +10 -10
  21. package/agent-presets/dsmm-quick/agent.cordis.yml +10 -10
  22. package/agent-presets/dsmm-research/agent.cordis.yml +10 -10
  23. package/agent-presets/dsmm-reviewer/agent.cordis.yml +10 -10
  24. package/docs/agent-presets.md +2 -2
  25. package/docs/compatibility.md +2 -2
  26. package/docs/deferred-native-approval-risk.md +1 -1
  27. package/docs/design.md +1 -1
  28. package/docs/lsp.md +6 -2
  29. package/docs/maintenance.md +65 -0
  30. package/docs/model-routing.md +1 -1
  31. package/docs/native-permissions.md +25 -7
  32. package/docs/profiles.md +1 -1
  33. package/docs/releasing.md +51 -32
  34. package/docs/roadmap.md +3 -3
  35. package/docs/runtime-recovery.md +1 -1
  36. package/docs/safety-guards.md +1 -1
  37. package/docs/settings-status.md +3 -1
  38. package/lib/client/DeploymentFields.js +9 -6
  39. package/lib/client/NativeCommandEntries.d.ts +6 -6
  40. package/lib/client/NativeCommandEntries.js +38 -37
  41. package/lib/client/PermissionRuleEntries.js +3 -1
  42. package/lib/client/children-locales.d.ts +1 -1
  43. package/lib/client/deployment-locales.d.ts +2 -0
  44. package/lib/client/deployment-locales.js +2 -0
  45. package/lib/client/permission-locales.d.ts +4 -0
  46. package/lib/client/permission-locales.js +12 -10
  47. package/lib/client/styles.d.ts +1 -1
  48. package/lib/client/styles.js +11 -0
  49. package/lib/client.js +179 -132
  50. package/lib/guards.d.ts +1 -1
  51. package/lib/guards.js +12 -21
  52. package/lib/lsp.js +1 -1
  53. package/lib/permission-control.d.ts +8 -2
  54. package/lib/permission-control.js +48 -14
  55. package/lib/permission-controller.d.ts +4 -0
  56. package/lib/permission-controller.js +142 -7
  57. package/lib/permission-native-command.d.ts +5 -1
  58. package/lib/permission-native-command.js +35 -5
  59. package/lib/permission-native-rules.d.ts +3 -2
  60. package/lib/permission-native-rules.js +9 -4
  61. package/lib/permission-settings.d.ts +31 -1
  62. package/lib/permission-settings.js +24 -3
  63. package/lib/permission-shell.d.ts +1 -1
  64. package/lib/permission-shell.js +2 -2
  65. package/lib/roles.js +2 -2
  66. package/lib/settings.js +2 -2
  67. package/package.json +38 -38
  68. package/patches/ocmm-lsp-mcp.example.cordis.patch.yml +1 -1
  69. package/prompts/deepwork.md +2 -2
  70. package/prompts/source/shared/dsh-host-contract.md +2 -2
  71. package/prompts/source/shared/locale.md +2 -2
  72. package/prompts/source/terminal/builder.md +2 -2
  73. package/prompts/source/terminal/clarifier.md +6 -6
  74. package/prompts/source/terminal/code-search.md +6 -6
  75. package/prompts/source/terminal/coding.md +6 -6
  76. package/prompts/source/terminal/complex.md +6 -6
  77. package/prompts/source/terminal/creative.md +6 -6
  78. package/prompts/source/terminal/cross-cutting.md +6 -6
  79. package/prompts/source/terminal/deep.md +6 -6
  80. package/prompts/source/terminal/doc-search.md +6 -6
  81. package/prompts/source/terminal/documenting.md +6 -6
  82. package/prompts/source/terminal/frontend.md +6 -6
  83. package/prompts/source/terminal/hard-reasoning.md +6 -6
  84. package/prompts/source/terminal/media-reader.md +6 -6
  85. package/prompts/source/terminal/normal-task.md +6 -6
  86. package/prompts/source/terminal/oracle-2nd.md +6 -6
  87. package/prompts/source/terminal/oracle.md +6 -6
  88. package/prompts/source/terminal/orchestrator.md +4 -4
  89. package/prompts/source/terminal/plan-critic.md +6 -6
  90. package/prompts/source/terminal/planner.md +6 -6
  91. package/prompts/source/terminal/quick.md +6 -6
  92. package/prompts/source/terminal/research.md +6 -6
  93. package/prompts/source/terminal/reviewer.md +6 -6
  94. package/skills/ast-grep/SKILL.md +3 -3
  95. package/skills/ast-grep/SOURCE +1 -1
  96. package/skills/ast-grep/install.ps1 +1 -1
  97. package/skills/ast-grep/install.sh +1 -1
  98. package/skills/ast-grep/scripts/ast_grep_helper.py +10 -10
  99. package/skills/ast-grep/tests/smoke.sh +11 -11
  100. package/skills/ast-grep/tests/test_resolver.py +4 -23
  101. package/skills/brainstorming/SKILL.md +3 -3
  102. package/skills/coding-agent-sessions/NOTICE.md +2 -2
  103. package/skills/coding-agent-sessions/SKILL.md +3 -3
  104. package/skills/debugging/SKILL.md +3 -3
  105. package/skills/debugging/references/methodology/03-flaky-triage.md +1 -1
  106. package/skills/debugging/references/scripts/dap.mjs +3 -3
  107. package/skills/debugging/references/tools/playwright-cli.md +3 -3
  108. package/skills/dispatching-parallel-agents/SKILL.md +3 -3
  109. package/skills/frontend/ATTRIBUTION.md +4 -4
  110. package/skills/frontend/SKILL.md +3 -3
  111. package/skills/frontend/references/perfection/README.md +4 -4
  112. package/skills/frontend/references/perfection/react-perf-tooling.md +4 -4
  113. package/skills/git-master/SKILL.md +3 -3
  114. package/skills/git-master/agents/openai.yaml +1 -1
  115. package/skills/init-deep/SKILL.md +3 -3
  116. package/skills/receiving-code-review/SKILL.md +3 -3
  117. package/skills/remove-ai-slops/SKILL.md +3 -3
  118. package/skills/requesting-code-review/SKILL.md +3 -3
  119. package/skills/subagent-driven-development/SKILL.md +3 -3
  120. package/skills/using-git-worktrees/SKILL.md +4 -4
  121. package/skills/writing-plans/SKILL.md +3 -3
  122. package/docs/migration-from-ocmm.md +0 -57
  123. package/docs/skill-sync.md +0 -94
  124. package/prompts/source/manifest.json +0 -3168
@@ -1,4 +1,4 @@
1
- <ocmm-shell-command-safety>
1
+ <dsmm-shell-command-safety>
2
2
  # Shell Command Safety
3
3
 
4
4
  - 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.
@@ -6,9 +6,9 @@
6
6
  - 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.
7
7
  - 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.
8
8
  - 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.
9
- </ocmm-shell-command-safety>
9
+ </dsmm-shell-command-safety>
10
10
 
11
- <ocmm-subagent-compression-policy>
11
+ <dsmm-subagent-compression-policy>
12
12
  ## Subagent Compression Policy
13
13
  Apply this policy only when the current execution is a subagent session and a `compress` tool is available.
14
14
  If `compress` is unavailable, do not propose, simulate, or attempt compression.
@@ -39,15 +39,15 @@ This additional path is available only when every condition holds:
39
39
  - 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.
40
40
  These constraints do not prohibit a bounded follow-up under either common path when its own conditions are met.
41
41
  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.
42
- </ocmm-subagent-compression-policy>
42
+ </dsmm-subagent-compression-policy>
43
43
 
44
- <ocmm-delegation-contract>
44
+ <dsmm-delegation-contract>
45
45
  ## Delegation Contract (Authoritative)
46
46
  Use direct tools first. Delegate only when direct tools are insufficient and a separate bounded research result materially improves completion.
47
47
  Allowed utility targets: `code-search`, `explore`, `doc-search`, `research`, `media-reader`.
48
48
  `quick` is forbidden because this read-only role must not modify work by proxy. Planning, review, coordination, and implementation workflow agents are also forbidden.
49
49
  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.
50
50
  This contract overrides any skill, model calibration, generated-adapter compatibility text, or other prompt layer that suggests broader delegation.
51
- </ocmm-delegation-contract>
51
+ </dsmm-delegation-contract>
52
52
 
53
53
  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.
@@ -5,15 +5,15 @@ description: "Use ast-grep (sg) only when the task explicitly requires exact syn
5
5
 
6
6
  ## DSH resource and authority contract
7
7
 
8
- This is a full OCMM source adaptation for DSH 0.2.1-rc.2, not an OpenCode or Codex runtime. Source product names in transcript formats, examples, paths and attribution remain descriptive; they are not a host switch.
8
+ This is a DSMM-maintained native skill for DSH 0.2.1-rc.2, not an OpenCode or Codex runtime. Product names in transcript formats, examples, paths and attribution remain descriptive; they are not a host switch.
9
9
 
10
- - Load this skill through the native skill tool only when its trigger matches. Resolve every relative reference/script/asset from the directory resourceBase returned with this skill, not from the project cwd or an OCMM checkout. Use available read/glob/grep to inspect resources; use write/edit and the active bash or pwsh only within the actual role and host permissions.
10
+ - Load this skill through the native skill tool only when its trigger matches. Resolve every relative reference/script/asset from the directory resourceBase returned with this skill, not from the project cwd or a sibling repository checkout. Use available read/glob/grep to inspect resources; use write/edit and the active bash or pwsh only within the actual role and host permissions.
11
11
  - External documentation uses actual web_search/web_fetch or an available documentation service. Context7, GitHub MCP, browser, image and LSP tools are optional catalog capabilities, not bundled calls. Use a real available equivalent or report unavailable evidence; never invent an MCP, Task, todo or compression API. Native read uses file_path, not OpenCode filePath; inspect every actual schema before calling it. Use read_image only when exposed and the actual route supports its image result.
12
12
  - Source role names are logical assignments: code-search/explore maps to role ID dsmm-code-search, and other canonical roles/categories map to dsmm-<name>. Use this Agent's observed admitted inventory: per-role topology has individual role tools (for example dsmm_plan_critic) plus dsmm_category; parameterized topology has dsmm_role and dsmm_category with their actual role/category enums. Never derive callability from generated files, names or templates. Both layouts preserve target, caller, read-only, inherited tool and depth ceilings; a missing required formal role returns to the stage owner, not a planning bypass.
13
13
  - Templates describe assignment content, not callable schemas. Actual delegation takes description/prompt, an exposed level, a deployment-authorized exposed route, and an exposed run_in_background only. Omitted/normal retains the default; low/high/max must be configured at roleRouting.<id>.levels as a complete route or exact supported effort, never synthetic suffix roles or fixed max effort. A complete invocation route needs paired provider/model and cannot silently fall back; effort-only needs exact native preflight. Level/layout never change permissions or verification rigor. Reviewer/Oracle independence requires different observed native routes, not names.
14
14
  - One-shot defaults foreground; permitted one-shot background is native-job-owned. A managed admitted continuable configuration defaults background; explicit run_in_background:false creates a non-reusable one-shot. Use only exposed job_output/job_list/job_kill or send_message/interrupt_agent and returned identities. Existing continuable children can receive nearest-step running messages, idle next turns or same-ID cold continuation; receipts mean inbox acceptance, not completion. Exposed native child-to-parent reporting retains exact-sender/adjacency semantics, not new parent-to-child authority. Settled one-shots never revive; reuse never reselects role/level/route or copies a parent's newer policy into the original child capture. Do not send OpenCode task_id/subagent_type/background/resume/retry or guessed control fields.
15
15
  - Host observations alone establish lifecycle controls. Managed delivery requires explicit startup composition: disable the stock subagents row, bind the unique PUBLIC DSMM SubagentRuntime subclass and restart; never hot-replace/drain stock or add a shadow runtime. When actually wired and authorized, a user foreground handoff transfers the existing same run to native jobs without a second start; native user queue/steer follows its operator/connection/session/epoch gate. Do not announce unconnected tools/RPCs. Background enablement, capacity, ownership, depth, cancellation and provider support always gate execution. Legacy conservative evidence may permit useful proven capabilities under the same durable child ID; missing evidence denies that capability with a reason, not all legacy children and not an inheritance of current parent policy.
16
- - When exposed, native todo_write replaces the owning Agent's whole list of content/status items; its schema and allowParallelInProgress policy govern updates. Otherwise use concise session coordination or an authorized plan. ask_user_question is conditional on exposure; otherwise ask in conversation. Native host compaction is not OCMM compress, and no model-facing compression call is assumed. A read-only planner returns complete Markdown; an authorized coordinator persists it, never the planner through shell or a proxy. Role responsibilities, explicit-off common/skill visibility, and the terminal delegation contract override broader examples in a resource.
16
+ - When exposed, native todo_write replaces the owning Agent's whole list of content/status items; its schema and allowParallelInProgress policy govern updates. Otherwise use concise session coordination or an authorized plan. ask_user_question is conditional on exposure; otherwise ask in conversation. Native host compaction is not a model-facing compression tool. A read-only planner returns complete Markdown; an authorized coordinator persists it, never the planner through shell or a proxy. Role responsibilities, explicit-off common/skill visibility, and the terminal delegation contract override broader examples in a resource.
17
17
  - Follow the current user's explicit output-language request, otherwise this Agent's immutable captured DSMM locale when supplied, then applicable host/user language guidance or the current request/context. Supported configured locales are en/zh-Hans/zh-Hant/ja/ko/de/fr/es/pt-BR/ru; omission inherits, not an English default. Preserve code, identifiers, paths, commands, protocol fields and exact quotes, and pass explicit language instructions in child assignments. This resource imports no Root session preference, promises neither internal reasoning language nor UI translation, and never changes host/project locale. A later parent Apply does not rewrite a child's captured locale.
18
18
  - Installation, package-manager bootstrap, downloads, authentication/login, credential/profile access, Git writes and destructive actions require explicit authorization for the exact action. Reference commands are not automatic operations. Worktree consent does not authorize dependency installation or later branch deletion. Read before changing an existing file; preserve unrelated user work. Never silently restore/reset a working tree to repair a failed cleanup.
19
19
  - Browser/debug QA uses run-owned isolated state, no imported credentials or browser profile, and only already available software unless separately authorized. Keep commands in the active shell dialect. Report unverified surfaces honestly.
@@ -1 +1 @@
1
- upstream: https://github.com/code-yeongyu/ast-grep-skill @ 3148c69; fallback binary pin synced to ast-grep 0.45.0 for ocmm 0.6.11. Vendored as a sync; do not fork-drift.
1
+ upstream: https://github.com/code-yeongyu/ast-grep-skill @ 3148c69; fallback binary pin is ast-grep 0.45.0. Vendored as a sync; do not fork-drift.
@@ -44,7 +44,7 @@ param(
44
44
 
45
45
  $ErrorActionPreference = 'Stop'
46
46
  $ScriptDir = Split-Path -Parent $MyInvocation.MyCommand.Path
47
- $CacheBinDir = if ($env:OCMM_AST_GREP_BIN_DIR) { $env:OCMM_AST_GREP_BIN_DIR } else { Join-Path $ScriptDir "bin" }
47
+ $CacheBinDir = if ($env:DSMM_AST_GREP_BIN_DIR) { $env:DSMM_AST_GREP_BIN_DIR } else { Join-Path $ScriptDir "bin" }
48
48
 
49
49
  function Log([string]$msg) {
50
50
  if (-not $Quiet) {
@@ -31,7 +31,7 @@ set -euo pipefail
31
31
 
32
32
  SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
33
33
  SKILL_ROOT="$SCRIPT_DIR"
34
- CACHE_BIN_DIR="${OCMM_AST_GREP_BIN_DIR:-$SKILL_ROOT/bin}"
34
+ CACHE_BIN_DIR="${DSMM_AST_GREP_BIN_DIR:-$SKILL_ROOT/bin}"
35
35
 
36
36
  PINNED_VERSION="0.45.0"
37
37
  FORCED_METHOD=""
@@ -216,16 +216,16 @@ def homebrew_binary() -> Optional[Path]:
216
216
  return _first_valid_candidate(tuple(candidates))
217
217
 
218
218
 
219
- # --- ocmm runtime resolution (vendored patch) ---
219
+ # --- DSMM runtime resolution (vendored patch) ---
220
220
 
221
- def ocmm_env_binary() -> Optional[Path]:
222
- raw_path = os.environ.get("OCMM_AST_GREP_SG_PATH")
221
+ def dsmm_env_binary() -> Optional[Path]:
222
+ raw_path = os.environ.get("DSMM_AST_GREP_SG_PATH")
223
223
  if not raw_path:
224
224
  return None
225
225
  return _first_valid_candidate((Path(raw_path).expanduser(),))
226
226
 
227
227
 
228
- def ocmm_runtime_slug() -> str:
228
+ def dsmm_runtime_slug() -> str:
229
229
  if sys.platform.startswith("win"):
230
230
  os_slug = "win32"
231
231
  elif sys.platform == "darwin":
@@ -238,15 +238,15 @@ def ocmm_runtime_slug() -> str:
238
238
  return f"{os_slug}-{arch_slug}"
239
239
 
240
240
 
241
- def ocmm_runtime_binary() -> Optional[Path]:
241
+ def dsmm_runtime_binary() -> Optional[Path]:
242
242
  binary_name = "sg.exe" if sys.platform.startswith("win") else "sg"
243
- slug = ocmm_runtime_slug()
243
+ slug = dsmm_runtime_slug()
244
244
  candidates: list[Path] = []
245
245
 
246
246
  codex_home = os.environ.get("CODEX_HOME")
247
247
  if codex_home:
248
248
  candidates.append(Path(codex_home) / "runtime" / "ast-grep" / slug / binary_name)
249
- candidates.append(Path.home() / ".ocmm" / "runtime" / "ast-grep" / slug / binary_name)
249
+ candidates.append(Path.home() / ".dsmm" / "runtime" / "ast-grep" / slug / binary_name)
250
250
 
251
251
  return _first_valid_candidate(tuple(candidates))
252
252
 
@@ -254,8 +254,8 @@ def ocmm_runtime_binary() -> Optional[Path]:
254
254
  def resolve_binary() -> Optional[Path]:
255
255
  """Resolve the ast-grep binary in priority order.
256
256
 
257
- 1. OCMM_AST_GREP_SG_PATH override
258
- 2. ocmm runtime dirs
257
+ 1. DSMM_AST_GREP_SG_PATH override
258
+ 2. DSMM runtime dirs
259
259
  3. Cached binary in <skill>/bin/
260
260
  4. PATH (via shutil.which)
261
261
  5. Homebrew default paths
@@ -264,7 +264,7 @@ def resolve_binary() -> Optional[Path]:
264
264
  candidate is discarded and resolution continues without changing PATH,
265
265
  downloading, installing, or caching the failed result.
266
266
  """
267
- for fn in (ocmm_env_binary, ocmm_runtime_binary, cached_binary, which_binary, homebrew_binary):
267
+ for fn in (dsmm_env_binary, dsmm_runtime_binary, cached_binary, which_binary, homebrew_binary):
268
268
  result = fn()
269
269
  if result:
270
270
  return result
@@ -28,7 +28,7 @@ trap 'rm -rf "$OUTPUT_DIR"' EXIT
28
28
  fail() { echo "FAIL: $*" >&2; exit 1; }
29
29
  pass() { echo "PASS: $*"; }
30
30
 
31
- ocmm_runtime_slug() {
31
+ dsmm_runtime_slug() {
32
32
  case "$(uname -s)" in
33
33
  Darwin) local os_slug="darwin" ;;
34
34
  MINGW*|MSYS*|CYGWIN*) local os_slug="win32" ;;
@@ -115,27 +115,27 @@ $HELPER doctor > "$OUTPUT_DIR/doc.out" 2>&1 || true
115
115
  grep -q "ast-grep-helper" "$OUTPUT_DIR/doc.out" || fail "doctor missing helper version line"
116
116
  pass "doctor produces output"
117
117
 
118
- # Given OCMM_AST_GREP_SG_PATH points at a fake executable.
118
+ # Given DSMM_AST_GREP_SG_PATH points at a fake executable.
119
119
  # When doctor resolves ast-grep, then it reports that exact path.
120
120
  FAKE_ENV_SG="$OUTPUT_DIR/fake-env/sg"
121
121
  fake_sg "$FAKE_ENV_SG"
122
- OCMM_AST_GREP_SG_PATH="$FAKE_ENV_SG" $HELPER doctor > "$OUTPUT_DIR/ocmm-env.out" 2>&1
123
- grep -Fq "ast-grep binary: $FAKE_ENV_SG" "$OUTPUT_DIR/ocmm-env.out" || fail "OCMM_AST_GREP_SG_PATH was not preferred: $(cat "$OUTPUT_DIR/ocmm-env.out")"
124
- pass "OCMM_AST_GREP_SG_PATH resolves first"
122
+ DSMM_AST_GREP_SG_PATH="$FAKE_ENV_SG" $HELPER doctor > "$OUTPUT_DIR/dsmm-env.out" 2>&1
123
+ grep -Fq "ast-grep binary: $FAKE_ENV_SG" "$OUTPUT_DIR/dsmm-env.out" || fail "DSMM_AST_GREP_SG_PATH was not preferred: $(cat "$OUTPUT_DIR/dsmm-env.out")"
124
+ pass "DSMM_AST_GREP_SG_PATH resolves first"
125
125
 
126
- # Given HOME has an ocmm runtime sg executable.
126
+ # Given HOME has a DSMM runtime sg executable.
127
127
  # When doctor resolves ast-grep, then it reports the HOME runtime path.
128
128
  RUNTIME_HOME="$OUTPUT_DIR/home"
129
- RUNTIME_SLUG="$(ocmm_runtime_slug)"
129
+ RUNTIME_SLUG="$(dsmm_runtime_slug)"
130
130
  RUNTIME_BIN="sg"
131
131
  case "$RUNTIME_SLUG" in
132
132
  win32-*) RUNTIME_BIN="sg.exe" ;;
133
133
  esac
134
- FAKE_RUNTIME_SG="$RUNTIME_HOME/.ocmm/runtime/ast-grep/$RUNTIME_SLUG/$RUNTIME_BIN"
134
+ FAKE_RUNTIME_SG="$RUNTIME_HOME/.dsmm/runtime/ast-grep/$RUNTIME_SLUG/$RUNTIME_BIN"
135
135
  fake_sg "$FAKE_RUNTIME_SG"
136
- HOME="$RUNTIME_HOME" CODEX_HOME= OCMM_AST_GREP_SG_PATH= $HELPER doctor > "$OUTPUT_DIR/ocmm-runtime.out" 2>&1
137
- grep -Fq "ast-grep binary: $FAKE_RUNTIME_SG" "$OUTPUT_DIR/ocmm-runtime.out" || fail "ocmm HOME runtime was not resolved: $(cat "$OUTPUT_DIR/ocmm-runtime.out")"
138
- pass "ocmm HOME runtime resolves before standalone fallback"
136
+ HOME="$RUNTIME_HOME" CODEX_HOME= DSMM_AST_GREP_SG_PATH= $HELPER doctor > "$OUTPUT_DIR/dsmm-runtime.out" 2>&1
137
+ grep -Fq "ast-grep binary: $FAKE_RUNTIME_SG" "$OUTPUT_DIR/dsmm-runtime.out" || fail "DSMM HOME runtime was not resolved: $(cat "$OUTPUT_DIR/dsmm-runtime.out")"
138
+ pass "DSMM HOME runtime resolves before standalone fallback"
139
139
 
140
140
  # 9. search w/o binary => either runs successfully (binary found) OR exits 3 with hint
141
141
  # The CI may or may not have ast-grep installed; both are valid.
@@ -14,7 +14,6 @@ from unittest.mock import patch
14
14
 
15
15
  SKILL_ROOT = Path(__file__).resolve().parents[1]
16
16
  HELPER_PATH = SKILL_ROOT / "scripts" / "ast_grep_helper.py"
17
- INIT_DEEP_SKILL_PATH = SKILL_ROOT.parent / "init-deep" / "SKILL.md"
18
17
 
19
18
 
20
19
  def load_helper():
@@ -100,9 +99,9 @@ class ResolverFallbackTests(unittest.TestCase):
100
99
  def test_invalid_env_candidate_falls_through_runtime_cache_to_path(self) -> None:
101
100
  expected = Path("C:/tools/ast-grep.exe")
102
101
  with (
103
- patch.dict(os.environ, {"OCMM_AST_GREP_SG_PATH": "C:/invalid/sg.exe"}),
102
+ patch.dict(os.environ, {"DSMM_AST_GREP_SG_PATH": "C:/invalid/sg.exe"}),
104
103
  patch.object(HELPER, "probe_ast_grep_candidate", return_value=None) as probe,
105
- patch.object(HELPER, "ocmm_runtime_binary", return_value=None) as runtime,
104
+ patch.object(HELPER, "dsmm_runtime_binary", return_value=None) as runtime,
106
105
  patch.object(HELPER, "cached_binary", return_value=None) as cached,
107
106
  patch.object(HELPER, "which_binary", return_value=expected) as path,
108
107
  patch.object(HELPER, "homebrew_binary") as homebrew,
@@ -121,8 +120,8 @@ class ResolverFallbackTests(unittest.TestCase):
121
120
  helper_end = source.index("\ndef cached_binary(", helper_start)
122
121
  self.assertIn("probe_ast_grep_candidate", source[helper_start:helper_end])
123
122
  for function_name in (
124
- "ocmm_env_binary",
125
- "ocmm_runtime_binary",
123
+ "dsmm_env_binary",
124
+ "dsmm_runtime_binary",
126
125
  "cached_binary",
127
126
  "which_binary",
128
127
  "homebrew_binary",
@@ -132,23 +131,5 @@ class ResolverFallbackTests(unittest.TestCase):
132
131
  body = source[start:next_function if next_function != -1 else None]
133
132
  self.assertIn("_first_valid_candidate", body, function_name)
134
133
 
135
-
136
- class InitDeepSourceContractTests(unittest.TestCase):
137
- def test_normal_discovery_uses_lsp_codegraph_rg_not_an_ast_baseline(self) -> None:
138
- source = INIT_DEEP_SKILL_PATH.read_text(encoding="utf-8")
139
-
140
- self.assertNotIn("AST-shaped first probe (exactly once)", source)
141
- self.assertNotIn("ast-grep structural probe: unmeasured", source)
142
- self.assertIn("Treat `codegraph_*` tools as optional", source)
143
- self.assertIn("LSP tools and `rg` as the normal fallback evidence path", source)
144
- self.assertIn("Do not run ast-grep as a baseline substitute", source)
145
-
146
- def test_ast_grep_escalates_only_for_specific_unanswerable_syntax_questions(self) -> None:
147
- source = INIT_DEEP_SKILL_PATH.read_text(encoding="utf-8")
148
-
149
- self.assertIn("specific exact syntax-tree question", source)
150
- self.assertIn("simpler evidence cannot answer reliably", source)
151
-
152
-
153
134
  if __name__ == "__main__":
154
135
  unittest.main()
@@ -5,15 +5,15 @@ description: "Use before creative or materially ambiguous work to clarify outcom
5
5
 
6
6
  ## DSH resource and authority contract
7
7
 
8
- This is a full OCMM source adaptation for DSH 0.2.1-rc.2, not an OpenCode or Codex runtime. Source product names in transcript formats, examples, paths and attribution remain descriptive; they are not a host switch.
8
+ This is a DSMM-maintained native skill for DSH 0.2.1-rc.2, not an OpenCode or Codex runtime. Product names in transcript formats, examples, paths and attribution remain descriptive; they are not a host switch.
9
9
 
10
- - Load this skill through the native skill tool only when its trigger matches. Resolve every relative reference/script/asset from the directory resourceBase returned with this skill, not from the project cwd or an OCMM checkout. Use available read/glob/grep to inspect resources; use write/edit and the active bash or pwsh only within the actual role and host permissions.
10
+ - Load this skill through the native skill tool only when its trigger matches. Resolve every relative reference/script/asset from the directory resourceBase returned with this skill, not from the project cwd or a sibling repository checkout. Use available read/glob/grep to inspect resources; use write/edit and the active bash or pwsh only within the actual role and host permissions.
11
11
  - External documentation uses actual web_search/web_fetch or an available documentation service. Context7, GitHub MCP, browser, image and LSP tools are optional catalog capabilities, not bundled calls. Use a real available equivalent or report unavailable evidence; never invent an MCP, Task, todo or compression API. Native read uses file_path, not OpenCode filePath; inspect every actual schema before calling it. Use read_image only when exposed and the actual route supports its image result.
12
12
  - Source role names are logical assignments: code-search/explore maps to role ID dsmm-code-search, and other canonical roles/categories map to dsmm-<name>. Use this Agent's observed admitted inventory: per-role topology has individual role tools (for example dsmm_plan_critic) plus dsmm_category; parameterized topology has dsmm_role and dsmm_category with their actual role/category enums. Never derive callability from generated files, names or templates. Both layouts preserve target, caller, read-only, inherited tool and depth ceilings; a missing required formal role returns to the stage owner, not a planning bypass.
13
13
  - Templates describe assignment content, not callable schemas. Actual delegation takes description/prompt, an exposed level, a deployment-authorized exposed route, and an exposed run_in_background only. Omitted/normal retains the default; low/high/max must be configured at roleRouting.<id>.levels as a complete route or exact supported effort, never synthetic suffix roles or fixed max effort. A complete invocation route needs paired provider/model and cannot silently fall back; effort-only needs exact native preflight. Level/layout never change permissions or verification rigor. Reviewer/Oracle independence requires different observed native routes, not names.
14
14
  - One-shot defaults foreground; permitted one-shot background is native-job-owned. A managed admitted continuable configuration defaults background; explicit run_in_background:false creates a non-reusable one-shot. Use only exposed job_output/job_list/job_kill or send_message/interrupt_agent and returned identities. Existing continuable children can receive nearest-step running messages, idle next turns or same-ID cold continuation; receipts mean inbox acceptance, not completion. Exposed native child-to-parent reporting retains exact-sender/adjacency semantics, not new parent-to-child authority. Settled one-shots never revive; reuse never reselects role/level/route or copies a parent's newer policy into the original child capture. Do not send OpenCode task_id/subagent_type/background/resume/retry or guessed control fields.
15
15
  - Host observations alone establish lifecycle controls. Managed delivery requires explicit startup composition: disable the stock subagents row, bind the unique PUBLIC DSMM SubagentRuntime subclass and restart; never hot-replace/drain stock or add a shadow runtime. When actually wired and authorized, a user foreground handoff transfers the existing same run to native jobs without a second start; native user queue/steer follows its operator/connection/session/epoch gate. Do not announce unconnected tools/RPCs. Background enablement, capacity, ownership, depth, cancellation and provider support always gate execution. Legacy conservative evidence may permit useful proven capabilities under the same durable child ID; missing evidence denies that capability with a reason, not all legacy children and not an inheritance of current parent policy.
16
- - When exposed, native todo_write replaces the owning Agent's whole list of content/status items; its schema and allowParallelInProgress policy govern updates. Otherwise use concise session coordination or an authorized plan. ask_user_question is conditional on exposure; otherwise ask in conversation. Native host compaction is not OCMM compress, and no model-facing compression call is assumed. A read-only planner returns complete Markdown; an authorized coordinator persists it, never the planner through shell or a proxy. Role responsibilities, explicit-off common/skill visibility, and the terminal delegation contract override broader examples in a resource.
16
+ - When exposed, native todo_write replaces the owning Agent's whole list of content/status items; its schema and allowParallelInProgress policy govern updates. Otherwise use concise session coordination or an authorized plan. ask_user_question is conditional on exposure; otherwise ask in conversation. Native host compaction is not a model-facing compression tool. A read-only planner returns complete Markdown; an authorized coordinator persists it, never the planner through shell or a proxy. Role responsibilities, explicit-off common/skill visibility, and the terminal delegation contract override broader examples in a resource.
17
17
  - Follow the current user's explicit output-language request, otherwise this Agent's immutable captured DSMM locale when supplied, then applicable host/user language guidance or the current request/context. Supported configured locales are en/zh-Hans/zh-Hant/ja/ko/de/fr/es/pt-BR/ru; omission inherits, not an English default. Preserve code, identifiers, paths, commands, protocol fields and exact quotes, and pass explicit language instructions in child assignments. This resource imports no Root session preference, promises neither internal reasoning language nor UI translation, and never changes host/project locale. A later parent Apply does not rewrite a child's captured locale.
18
18
  - Installation, package-manager bootstrap, downloads, authentication/login, credential/profile access, Git writes and destructive actions require explicit authorization for the exact action. Reference commands are not automatic operations. Worktree consent does not authorize dependency installation or later branch deletion. Read before changing an existing file; preserve unrelated user work. Never silently restore/reset a working tree to repair a failed cleanup.
19
19
  - Browser/debug QA uses run-owned isolated state, no imported credentials or browser profile, and only already available software unless separately authorized. Keep commands in the active shell dialect. Report unverified surfaces honestly.
@@ -16,9 +16,9 @@ The Sustainable Use License 1.0 is reproduced in
16
16
  [LICENSE-UPSTREAM.md](LICENSE-UPSTREAM.md).
17
17
 
18
18
  The imported upstream files are raw-byte preserved in this source tree. The
19
- ocmm additions are this notice and the license copy; later distribution
19
+ DSMM additions are this notice and the license copy; later distribution
20
20
  filtering may omit development-only files from generated or package artifacts.
21
21
 
22
22
  This subtree remains governed by [LICENSE-UPSTREAM.md](LICENSE-UPSTREAM.md).
23
- It does not change the AAAPL licensing of the rest of ocmm, and ocmm makes no
23
+ It does not change the AAAPL licensing of the rest of DSMM, and DSMM makes no
24
24
  claim to relicense the upstream files.
@@ -5,15 +5,15 @@ description: "MUST USE when asked to find, read, list, search, inspect, fetch, e
5
5
 
6
6
  ## DSH resource and authority contract
7
7
 
8
- This is a full OCMM source adaptation for DSH 0.2.1-rc.2, not an OpenCode or Codex runtime. Source product names in transcript formats, examples, paths and attribution remain descriptive; they are not a host switch.
8
+ This is a DSMM-maintained native skill for DSH 0.2.1-rc.2, not an OpenCode or Codex runtime. Product names in transcript formats, examples, paths and attribution remain descriptive; they are not a host switch.
9
9
 
10
- - Load this skill through the native skill tool only when its trigger matches. Resolve every relative reference/script/asset from the directory resourceBase returned with this skill, not from the project cwd or an OCMM checkout. Use available read/glob/grep to inspect resources; use write/edit and the active bash or pwsh only within the actual role and host permissions.
10
+ - Load this skill through the native skill tool only when its trigger matches. Resolve every relative reference/script/asset from the directory resourceBase returned with this skill, not from the project cwd or a sibling repository checkout. Use available read/glob/grep to inspect resources; use write/edit and the active bash or pwsh only within the actual role and host permissions.
11
11
  - External documentation uses actual web_search/web_fetch or an available documentation service. Context7, GitHub MCP, browser, image and LSP tools are optional catalog capabilities, not bundled calls. Use a real available equivalent or report unavailable evidence; never invent an MCP, Task, todo or compression API. Native read uses file_path, not OpenCode filePath; inspect every actual schema before calling it. Use read_image only when exposed and the actual route supports its image result.
12
12
  - Source role names are logical assignments: code-search/explore maps to role ID dsmm-code-search, and other canonical roles/categories map to dsmm-<name>. Use this Agent's observed admitted inventory: per-role topology has individual role tools (for example dsmm_plan_critic) plus dsmm_category; parameterized topology has dsmm_role and dsmm_category with their actual role/category enums. Never derive callability from generated files, names or templates. Both layouts preserve target, caller, read-only, inherited tool and depth ceilings; a missing required formal role returns to the stage owner, not a planning bypass.
13
13
  - Templates describe assignment content, not callable schemas. Actual delegation takes description/prompt, an exposed level, a deployment-authorized exposed route, and an exposed run_in_background only. Omitted/normal retains the default; low/high/max must be configured at roleRouting.<id>.levels as a complete route or exact supported effort, never synthetic suffix roles or fixed max effort. A complete invocation route needs paired provider/model and cannot silently fall back; effort-only needs exact native preflight. Level/layout never change permissions or verification rigor. Reviewer/Oracle independence requires different observed native routes, not names.
14
14
  - One-shot defaults foreground; permitted one-shot background is native-job-owned. A managed admitted continuable configuration defaults background; explicit run_in_background:false creates a non-reusable one-shot. Use only exposed job_output/job_list/job_kill or send_message/interrupt_agent and returned identities. Existing continuable children can receive nearest-step running messages, idle next turns or same-ID cold continuation; receipts mean inbox acceptance, not completion. Exposed native child-to-parent reporting retains exact-sender/adjacency semantics, not new parent-to-child authority. Settled one-shots never revive; reuse never reselects role/level/route or copies a parent's newer policy into the original child capture. Do not send OpenCode task_id/subagent_type/background/resume/retry or guessed control fields.
15
15
  - Host observations alone establish lifecycle controls. Managed delivery requires explicit startup composition: disable the stock subagents row, bind the unique PUBLIC DSMM SubagentRuntime subclass and restart; never hot-replace/drain stock or add a shadow runtime. When actually wired and authorized, a user foreground handoff transfers the existing same run to native jobs without a second start; native user queue/steer follows its operator/connection/session/epoch gate. Do not announce unconnected tools/RPCs. Background enablement, capacity, ownership, depth, cancellation and provider support always gate execution. Legacy conservative evidence may permit useful proven capabilities under the same durable child ID; missing evidence denies that capability with a reason, not all legacy children and not an inheritance of current parent policy.
16
- - When exposed, native todo_write replaces the owning Agent's whole list of content/status items; its schema and allowParallelInProgress policy govern updates. Otherwise use concise session coordination or an authorized plan. ask_user_question is conditional on exposure; otherwise ask in conversation. Native host compaction is not OCMM compress, and no model-facing compression call is assumed. A read-only planner returns complete Markdown; an authorized coordinator persists it, never the planner through shell or a proxy. Role responsibilities, explicit-off common/skill visibility, and the terminal delegation contract override broader examples in a resource.
16
+ - When exposed, native todo_write replaces the owning Agent's whole list of content/status items; its schema and allowParallelInProgress policy govern updates. Otherwise use concise session coordination or an authorized plan. ask_user_question is conditional on exposure; otherwise ask in conversation. Native host compaction is not a model-facing compression tool. A read-only planner returns complete Markdown; an authorized coordinator persists it, never the planner through shell or a proxy. Role responsibilities, explicit-off common/skill visibility, and the terminal delegation contract override broader examples in a resource.
17
17
  - Follow the current user's explicit output-language request, otherwise this Agent's immutable captured DSMM locale when supplied, then applicable host/user language guidance or the current request/context. Supported configured locales are en/zh-Hans/zh-Hant/ja/ko/de/fr/es/pt-BR/ru; omission inherits, not an English default. Preserve code, identifiers, paths, commands, protocol fields and exact quotes, and pass explicit language instructions in child assignments. This resource imports no Root session preference, promises neither internal reasoning language nor UI translation, and never changes host/project locale. A later parent Apply does not rewrite a child's captured locale.
18
18
  - Installation, package-manager bootstrap, downloads, authentication/login, credential/profile access, Git writes and destructive actions require explicit authorization for the exact action. Reference commands are not automatic operations. Worktree consent does not authorize dependency installation or later branch deletion. Read before changing an existing file; preserve unrelated user work. Never silently restore/reset a working tree to repair a failed cleanup.
19
19
  - Browser/debug QA uses run-owned isolated state, no imported credentials or browser profile, and only already available software unless separately authorized. Keep commands in the active shell dialect. Report unverified surfaces honestly.
@@ -5,15 +5,15 @@ description: "MUST USE for any real runtime debugging across ANY language or bin
5
5
 
6
6
  ## DSH resource and authority contract
7
7
 
8
- This is a full OCMM source adaptation for DSH 0.2.1-rc.2, not an OpenCode or Codex runtime. Source product names in transcript formats, examples, paths and attribution remain descriptive; they are not a host switch.
8
+ This is a DSMM-maintained native skill for DSH 0.2.1-rc.2, not an OpenCode or Codex runtime. Product names in transcript formats, examples, paths and attribution remain descriptive; they are not a host switch.
9
9
 
10
- - Load this skill through the native skill tool only when its trigger matches. Resolve every relative reference/script/asset from the directory resourceBase returned with this skill, not from the project cwd or an OCMM checkout. Use available read/glob/grep to inspect resources; use write/edit and the active bash or pwsh only within the actual role and host permissions.
10
+ - Load this skill through the native skill tool only when its trigger matches. Resolve every relative reference/script/asset from the directory resourceBase returned with this skill, not from the project cwd or a sibling repository checkout. Use available read/glob/grep to inspect resources; use write/edit and the active bash or pwsh only within the actual role and host permissions.
11
11
  - External documentation uses actual web_search/web_fetch or an available documentation service. Context7, GitHub MCP, browser, image and LSP tools are optional catalog capabilities, not bundled calls. Use a real available equivalent or report unavailable evidence; never invent an MCP, Task, todo or compression API. Native read uses file_path, not OpenCode filePath; inspect every actual schema before calling it. Use read_image only when exposed and the actual route supports its image result.
12
12
  - Source role names are logical assignments: code-search/explore maps to role ID dsmm-code-search, and other canonical roles/categories map to dsmm-<name>. Use this Agent's observed admitted inventory: per-role topology has individual role tools (for example dsmm_plan_critic) plus dsmm_category; parameterized topology has dsmm_role and dsmm_category with their actual role/category enums. Never derive callability from generated files, names or templates. Both layouts preserve target, caller, read-only, inherited tool and depth ceilings; a missing required formal role returns to the stage owner, not a planning bypass.
13
13
  - Templates describe assignment content, not callable schemas. Actual delegation takes description/prompt, an exposed level, a deployment-authorized exposed route, and an exposed run_in_background only. Omitted/normal retains the default; low/high/max must be configured at roleRouting.<id>.levels as a complete route or exact supported effort, never synthetic suffix roles or fixed max effort. A complete invocation route needs paired provider/model and cannot silently fall back; effort-only needs exact native preflight. Level/layout never change permissions or verification rigor. Reviewer/Oracle independence requires different observed native routes, not names.
14
14
  - One-shot defaults foreground; permitted one-shot background is native-job-owned. A managed admitted continuable configuration defaults background; explicit run_in_background:false creates a non-reusable one-shot. Use only exposed job_output/job_list/job_kill or send_message/interrupt_agent and returned identities. Existing continuable children can receive nearest-step running messages, idle next turns or same-ID cold continuation; receipts mean inbox acceptance, not completion. Exposed native child-to-parent reporting retains exact-sender/adjacency semantics, not new parent-to-child authority. Settled one-shots never revive; reuse never reselects role/level/route or copies a parent's newer policy into the original child capture. Do not send OpenCode task_id/subagent_type/background/resume/retry or guessed control fields.
15
15
  - Host observations alone establish lifecycle controls. Managed delivery requires explicit startup composition: disable the stock subagents row, bind the unique PUBLIC DSMM SubagentRuntime subclass and restart; never hot-replace/drain stock or add a shadow runtime. When actually wired and authorized, a user foreground handoff transfers the existing same run to native jobs without a second start; native user queue/steer follows its operator/connection/session/epoch gate. Do not announce unconnected tools/RPCs. Background enablement, capacity, ownership, depth, cancellation and provider support always gate execution. Legacy conservative evidence may permit useful proven capabilities under the same durable child ID; missing evidence denies that capability with a reason, not all legacy children and not an inheritance of current parent policy.
16
- - When exposed, native todo_write replaces the owning Agent's whole list of content/status items; its schema and allowParallelInProgress policy govern updates. Otherwise use concise session coordination or an authorized plan. ask_user_question is conditional on exposure; otherwise ask in conversation. Native host compaction is not OCMM compress, and no model-facing compression call is assumed. A read-only planner returns complete Markdown; an authorized coordinator persists it, never the planner through shell or a proxy. Role responsibilities, explicit-off common/skill visibility, and the terminal delegation contract override broader examples in a resource.
16
+ - When exposed, native todo_write replaces the owning Agent's whole list of content/status items; its schema and allowParallelInProgress policy govern updates. Otherwise use concise session coordination or an authorized plan. ask_user_question is conditional on exposure; otherwise ask in conversation. Native host compaction is not a model-facing compression tool. A read-only planner returns complete Markdown; an authorized coordinator persists it, never the planner through shell or a proxy. Role responsibilities, explicit-off common/skill visibility, and the terminal delegation contract override broader examples in a resource.
17
17
  - Follow the current user's explicit output-language request, otherwise this Agent's immutable captured DSMM locale when supplied, then applicable host/user language guidance or the current request/context. Supported configured locales are en/zh-Hans/zh-Hant/ja/ko/de/fr/es/pt-BR/ru; omission inherits, not an English default. Preserve code, identifiers, paths, commands, protocol fields and exact quotes, and pass explicit language instructions in child assignments. This resource imports no Root session preference, promises neither internal reasoning language nor UI translation, and never changes host/project locale. A later parent Apply does not rewrite a child's captured locale.
18
18
  - Installation, package-manager bootstrap, downloads, authentication/login, credential/profile access, Git writes and destructive actions require explicit authorization for the exact action. Reference commands are not automatic operations. Worktree consent does not authorize dependency installation or later branch deletion. Read before changing an existing file; preserve unrelated user work. Never silently restore/reset a working tree to repair a failed cleanup.
19
19
  - Browser/debug QA uses run-owned isolated state, no imported credentials or browser profile, and only already available software unless separately authorized. Keep commands in the active shell dialect. Report unverified surfaces honestly.
@@ -37,7 +37,7 @@ Use the example for the active shell. These are paired alternatives, not instruc
37
37
  **Bash — unique run root and optional listener inspection**
38
38
 
39
39
  ```bash
40
- run_root="$(mktemp -d "${TMPDIR:-/tmp}/ocmm-flaky.XXXXXX")"
40
+ run_root="$(mktemp -d "${TMPDIR:-/tmp}/dsmm-flaky.XXXXXX")"
41
41
  TEST_TMPDIR="$run_root" pnpm test -- --test-name-pattern "affected test"
42
42
 
43
43
  # Inspect only when ss is already installed; do not install an inspector.
@@ -353,7 +353,7 @@ function adapterIdFor(spec) {
353
353
  if (base.includes("dlv") || base.includes("delve")) return "dlv";
354
354
  if (base.includes("js-debug")) return "js-debug";
355
355
  if (base.includes("gdb")) return "gdb";
356
- return "ocmm";
356
+ return "dsmm";
357
357
  }
358
358
 
359
359
  async function confirmLldbLaunch() {
@@ -374,7 +374,7 @@ async function launch(adapter, program, args) {
374
374
  await startAdapter(adapter);
375
375
  throwIfSetupTerminated();
376
376
  const adapterID = adapterIdFor(adapter);
377
- await request("initialize", { clientID: "ocmm-dap", adapterID, linesStartAt1: true, columnsStartAt1: true, pathFormat: "path" });
377
+ await request("initialize", { clientID: "dsmm-dap", adapterID, linesStartAt1: true, columnsStartAt1: true, pathFormat: "path" });
378
378
  throwIfSetupTerminated();
379
379
  // Send launch BEFORE awaiting `initialized`: debugpy's adapter defers/flushes the
380
380
  // initialized event until further client activity, so waiting for it first
@@ -456,7 +456,7 @@ async function command(input) {
456
456
  try {
457
457
  await startAdapter(endpoint);
458
458
  throwIfSetupTerminated();
459
- await request("initialize", { clientID: "ocmm-dap", adapterID: "debugpy", linesStartAt1: true, columnsStartAt1: true, pathFormat: "path" });
459
+ await request("initialize", { clientID: "dsmm-dap", adapterID: "debugpy", linesStartAt1: true, columnsStartAt1: true, pathFormat: "path" });
460
460
  throwIfSetupTerminated();
461
461
  await request("attach", { justMyCode: false });
462
462
  throwIfSetupTerminated();
@@ -194,11 +194,11 @@ Create the run-owned directories without referring to any existing browser data:
194
194
  ```powershell
195
195
  if (-not (Test-Path -LiteralPath $env:TEMP)) { throw "Temporary directory was not found" }
196
196
 
197
- $runRoot = Join-Path $env:TEMP ("ocmm-playwright-" + [guid]::NewGuid().ToString("N"))
197
+ $runRoot = Join-Path $env:TEMP ("dsmm-playwright-" + [guid]::NewGuid().ToString("N"))
198
198
  $userDataDir = Join-Path $runRoot "user-data"
199
199
  $logsDir = Join-Path $runRoot "logs"
200
200
  $ownershipToken = [guid]::NewGuid().ToString("N")
201
- $ownershipMarker = Join-Path $runRoot ".ocmm-run-owner"
201
+ $ownershipMarker = Join-Path $runRoot ".dsmm-run-owner"
202
202
  New-Item -ItemType Directory -Path $runRoot -ErrorAction Stop | Out-Null
203
203
  New-Item -ItemType Directory -Path $userDataDir -ErrorAction Stop | Out-Null
204
204
  New-Item -ItemType Directory -Path $logsDir -ErrorAction Stop | Out-Null
@@ -270,7 +270,7 @@ $runRootName = [IO.Path]::GetFileName($resolvedRunRoot)
270
270
  if (
271
271
  $null -eq $runRootParent -or
272
272
  $runRootParent.FullName -ne $resolvedTempRoot -or
273
- $runRootName -notmatch '^ocmm-playwright-[0-9a-f]{32}$'
273
+ $runRootName -notmatch '^dsmm-playwright-[0-9a-f]{32}$'
274
274
  ) {
275
275
  throw "Refusing to remove a non-run-owned profile"
276
276
  }
@@ -5,15 +5,15 @@ description: Use when facing 2+ independent tasks that can be worked on without
5
5
 
6
6
  ## DSH resource and authority contract
7
7
 
8
- This is a full OCMM source adaptation for DSH 0.2.1-rc.2, not an OpenCode or Codex runtime. Source product names in transcript formats, examples, paths and attribution remain descriptive; they are not a host switch.
8
+ This is a DSMM-maintained native skill for DSH 0.2.1-rc.2, not an OpenCode or Codex runtime. Product names in transcript formats, examples, paths and attribution remain descriptive; they are not a host switch.
9
9
 
10
- - Load this skill through the native skill tool only when its trigger matches. Resolve every relative reference/script/asset from the directory resourceBase returned with this skill, not from the project cwd or an OCMM checkout. Use available read/glob/grep to inspect resources; use write/edit and the active bash or pwsh only within the actual role and host permissions.
10
+ - Load this skill through the native skill tool only when its trigger matches. Resolve every relative reference/script/asset from the directory resourceBase returned with this skill, not from the project cwd or a sibling repository checkout. Use available read/glob/grep to inspect resources; use write/edit and the active bash or pwsh only within the actual role and host permissions.
11
11
  - External documentation uses actual web_search/web_fetch or an available documentation service. Context7, GitHub MCP, browser, image and LSP tools are optional catalog capabilities, not bundled calls. Use a real available equivalent or report unavailable evidence; never invent an MCP, Task, todo or compression API. Native read uses file_path, not OpenCode filePath; inspect every actual schema before calling it. Use read_image only when exposed and the actual route supports its image result.
12
12
  - Source role names are logical assignments: code-search/explore maps to role ID dsmm-code-search, and other canonical roles/categories map to dsmm-<name>. Use this Agent's observed admitted inventory: per-role topology has individual role tools (for example dsmm_plan_critic) plus dsmm_category; parameterized topology has dsmm_role and dsmm_category with their actual role/category enums. Never derive callability from generated files, names or templates. Both layouts preserve target, caller, read-only, inherited tool and depth ceilings; a missing required formal role returns to the stage owner, not a planning bypass.
13
13
  - Templates describe assignment content, not callable schemas. Actual delegation takes description/prompt, an exposed level, a deployment-authorized exposed route, and an exposed run_in_background only. Omitted/normal retains the default; low/high/max must be configured at roleRouting.<id>.levels as a complete route or exact supported effort, never synthetic suffix roles or fixed max effort. A complete invocation route needs paired provider/model and cannot silently fall back; effort-only needs exact native preflight. Level/layout never change permissions or verification rigor. Reviewer/Oracle independence requires different observed native routes, not names.
14
14
  - One-shot defaults foreground; permitted one-shot background is native-job-owned. A managed admitted continuable configuration defaults background; explicit run_in_background:false creates a non-reusable one-shot. Use only exposed job_output/job_list/job_kill or send_message/interrupt_agent and returned identities. Existing continuable children can receive nearest-step running messages, idle next turns or same-ID cold continuation; receipts mean inbox acceptance, not completion. Exposed native child-to-parent reporting retains exact-sender/adjacency semantics, not new parent-to-child authority. Settled one-shots never revive; reuse never reselects role/level/route or copies a parent's newer policy into the original child capture. Do not send OpenCode task_id/subagent_type/background/resume/retry or guessed control fields.
15
15
  - Host observations alone establish lifecycle controls. Managed delivery requires explicit startup composition: disable the stock subagents row, bind the unique PUBLIC DSMM SubagentRuntime subclass and restart; never hot-replace/drain stock or add a shadow runtime. When actually wired and authorized, a user foreground handoff transfers the existing same run to native jobs without a second start; native user queue/steer follows its operator/connection/session/epoch gate. Do not announce unconnected tools/RPCs. Background enablement, capacity, ownership, depth, cancellation and provider support always gate execution. Legacy conservative evidence may permit useful proven capabilities under the same durable child ID; missing evidence denies that capability with a reason, not all legacy children and not an inheritance of current parent policy.
16
- - When exposed, native todo_write replaces the owning Agent's whole list of content/status items; its schema and allowParallelInProgress policy govern updates. Otherwise use concise session coordination or an authorized plan. ask_user_question is conditional on exposure; otherwise ask in conversation. Native host compaction is not OCMM compress, and no model-facing compression call is assumed. A read-only planner returns complete Markdown; an authorized coordinator persists it, never the planner through shell or a proxy. Role responsibilities, explicit-off common/skill visibility, and the terminal delegation contract override broader examples in a resource.
16
+ - When exposed, native todo_write replaces the owning Agent's whole list of content/status items; its schema and allowParallelInProgress policy govern updates. Otherwise use concise session coordination or an authorized plan. ask_user_question is conditional on exposure; otherwise ask in conversation. Native host compaction is not a model-facing compression tool. A read-only planner returns complete Markdown; an authorized coordinator persists it, never the planner through shell or a proxy. Role responsibilities, explicit-off common/skill visibility, and the terminal delegation contract override broader examples in a resource.
17
17
  - Follow the current user's explicit output-language request, otherwise this Agent's immutable captured DSMM locale when supplied, then applicable host/user language guidance or the current request/context. Supported configured locales are en/zh-Hans/zh-Hant/ja/ko/de/fr/es/pt-BR/ru; omission inherits, not an English default. Preserve code, identifiers, paths, commands, protocol fields and exact quotes, and pass explicit language instructions in child assignments. This resource imports no Root session preference, promises neither internal reasoning language nor UI translation, and never changes host/project locale. A later parent Apply does not rewrite a child's captured locale.
18
18
  - Installation, package-manager bootstrap, downloads, authentication/login, credential/profile access, Git writes and destructive actions require explicit authorization for the exact action. Reference commands are not automatic operations. Worktree consent does not authorize dependency installation or later branch deletion. Read before changing an existing file; preserve unrelated user work. Never silently restore/reset a working tree to repair a failed cleanup.
19
19
  - Browser/debug QA uses run-owned isolated state, no imported credentials or browser profile, and only already available software unless separately authorized. Keep commands in the active shell dialect. Report unverified surfaces honestly.
@@ -1,17 +1,17 @@
1
1
  # Frontend attribution and materialization notice
2
2
 
3
- This DSMM frontend skill adapts OCMM's declared frontend library. OCMM project-original text and DSMM modifications remain under the package's complete LicenseRef-AAAPL LICENSE. The separable third-party files below retain their original licenses/notices; they are not represented as AAAPL-only or relicensed.
3
+ The DSMM-maintained frontend router, index, guidance and modifications remain under the package's complete LicenseRef-AAAPL LICENSE. The separable third-party files below retain their original licenses/notices; they are not represented as AAAPL-only or relicensed.
4
4
 
5
5
  ## Exact source recipe
6
6
 
7
- The maintainer recipe is scripts/frontend-recipe.mjs, based on OCMM root skills/frontend/ATTRIBUTION.md and the complete root design _INDEX.md. There is no packages/shared-skills checkout or submodule assumption in DSMM. Run the explicitly authorized pnpm run sync:frontend command to fetch immutable GitHub content; ordinary build/check is offline and refuses missing or changed resources. Third-party body/data/Python files are gitignored, but the complete materialized tree and integrity/provenance inventory must ship in the package. Ignored status is not permission to omit distribution resources.
7
+ The standalone maintainer recipe is scripts/frontend-recipe.mjs together with this skill's complete references/design/_INDEX.md and .frontend-materialized.json inventory. Run the explicitly authorized pnpm run sync:frontend command to fetch missing immutable GitHub content; ordinary build/check is offline and refuses missing or changed resources. The complete materialized tree and integrity/provenance inventory are maintained and shipped with the project.
8
8
 
9
9
  ### Open Design
10
10
 
11
11
  - Source: https://github.com/nexu-io/open-design
12
12
  - Exact commit: 6afe7eae156bfa29251a51fd0636649c257f7444
13
13
  - Copyright 2026 Open Design contributors; Apache-2.0, full fixed-pin text in LICENSE-Apache-2.0.txt.
14
- - Each brand named in the index's Layer B table maps from design-systems/<brand>/DESIGN.md, replacing dots with dashes in the upstream directory name. aside.md is OCMM project-original and is never overwritten by an upstream file.
14
+ - Each brand named in the index's Layer B table maps from design-systems/<brand>/DESIGN.md, replacing dots with dashes in the upstream directory name. The project-maintained aside.md is never overwritten by an upstream file.
15
15
  - No root NOTICE exists in this fixed tree (the parent's official API check returned 404); no notice is fabricated. Applicable notices in copied source files are retained.
16
16
  - The index's historical VoltAgent/awesome-design-md attribution is preserved as lineage, not falsely declared the fetched vendor. This distribution's actual brand source is the fixed Open Design commit above.
17
17
 
@@ -32,6 +32,6 @@ The maintainer recipe is scripts/frontend-recipe.mjs, based on OCMM root skills/
32
32
 
33
33
  ## Modifications and authority
34
34
 
35
- Third-party body/data/Python/license bytes are copied verbatim; path mapping and the app-interface/web-interface alias are the only resource layout changes. OCMM/DSMM's project-original router, index and authority notes explain native DSH usage without rewriting third-party source. Source host/tool/platform names in a reference are not evidence that those tools or models are installed in DSH. Use actual native catalog capabilities and the resourceBase from native skill loading; software installation, downloads outside this explicit materialization operation, login, Git writes and destructive actions require exact authorization. No referenced code is executed by the materializer.
35
+ Third-party body/data/Python/license bytes are copied verbatim; path mapping and the app-interface/web-interface alias are the only resource layout changes. DSMM's maintained router, index and authority notes explain native DSH usage without rewriting third-party source. Source host/tool/platform names in a reference are not evidence that those tools or models are installed in DSH. Use actual native catalog capabilities and the resourceBase from native skill loading; software installation, downloads outside this explicit materialization operation, login, Git writes and destructive actions require exact authorization. No referenced code is executed by the materializer.
36
36
 
37
37
  Product names, brands, typefaces and trademarks remain their owners' property. These references grant no trademark, font-binary, logo or proprietary-asset rights, and do not imply affiliation or endorsement. Fixed LICENSE texts were inspected for redistribution permission; this is not a comprehensive legal review, non-infringement opinion or DMCA guarantee.
@@ -5,15 +5,15 @@ description: "MUST USE for ANY frontend, web UI, UX, or visual work — building
5
5
 
6
6
  ## DSH resource and authority contract
7
7
 
8
- This is a full OCMM source adaptation for DSH 0.2.1-rc.2, not an OpenCode or Codex runtime. Source product names in transcript formats, examples, paths and attribution remain descriptive; they are not a host switch.
8
+ This is a DSMM-maintained native skill for DSH 0.2.1-rc.2, not an OpenCode or Codex runtime. Product names in transcript formats, examples, paths and attribution remain descriptive; they are not a host switch.
9
9
 
10
- - Load this skill through the native skill tool only when its trigger matches. Resolve every relative reference/script/asset from the directory resourceBase returned with this skill, not from the project cwd or an OCMM checkout. Use available read/glob/grep to inspect resources; use write/edit and the active bash or pwsh only within the actual role and host permissions.
10
+ - Load this skill through the native skill tool only when its trigger matches. Resolve every relative reference/script/asset from the directory resourceBase returned with this skill, not from the project cwd or a sibling repository checkout. Use available read/glob/grep to inspect resources; use write/edit and the active bash or pwsh only within the actual role and host permissions.
11
11
  - External documentation uses actual web_search/web_fetch or an available documentation service. Context7, GitHub MCP, browser, image and LSP tools are optional catalog capabilities, not bundled calls. Use a real available equivalent or report unavailable evidence; never invent an MCP, Task, todo or compression API. Native read uses file_path, not OpenCode filePath; inspect every actual schema before calling it. Use read_image only when exposed and the actual route supports its image result.
12
12
  - Source role names are logical assignments: code-search/explore maps to role ID dsmm-code-search, and other canonical roles/categories map to dsmm-<name>. Use this Agent's observed admitted inventory: per-role topology has individual role tools (for example dsmm_plan_critic) plus dsmm_category; parameterized topology has dsmm_role and dsmm_category with their actual role/category enums. Never derive callability from generated files, names or templates. Both layouts preserve target, caller, read-only, inherited tool and depth ceilings; a missing required formal role returns to the stage owner, not a planning bypass.
13
13
  - Templates describe assignment content, not callable schemas. Actual delegation takes description/prompt, an exposed level, a deployment-authorized exposed route, and an exposed run_in_background only. Omitted/normal retains the default; low/high/max must be configured at roleRouting.<id>.levels as a complete route or exact supported effort, never synthetic suffix roles or fixed max effort. A complete invocation route needs paired provider/model and cannot silently fall back; effort-only needs exact native preflight. Level/layout never change permissions or verification rigor. Reviewer/Oracle independence requires different observed native routes, not names.
14
14
  - One-shot defaults foreground; permitted one-shot background is native-job-owned. A managed admitted continuable configuration defaults background; explicit run_in_background:false creates a non-reusable one-shot. Use only exposed job_output/job_list/job_kill or send_message/interrupt_agent and returned identities. Existing continuable children can receive nearest-step running messages, idle next turns or same-ID cold continuation; receipts mean inbox acceptance, not completion. Exposed native child-to-parent reporting retains exact-sender/adjacency semantics, not new parent-to-child authority. Settled one-shots never revive; reuse never reselects role/level/route or copies a parent's newer policy into the original child capture. Do not send OpenCode task_id/subagent_type/background/resume/retry or guessed control fields.
15
15
  - Host observations alone establish lifecycle controls. Managed delivery requires explicit startup composition: disable the stock subagents row, bind the unique PUBLIC DSMM SubagentRuntime subclass and restart; never hot-replace/drain stock or add a shadow runtime. When actually wired and authorized, a user foreground handoff transfers the existing same run to native jobs without a second start; native user queue/steer follows its operator/connection/session/epoch gate. Do not announce unconnected tools/RPCs. Background enablement, capacity, ownership, depth, cancellation and provider support always gate execution. Legacy conservative evidence may permit useful proven capabilities under the same durable child ID; missing evidence denies that capability with a reason, not all legacy children and not an inheritance of current parent policy.
16
- - When exposed, native todo_write replaces the owning Agent's whole list of content/status items; its schema and allowParallelInProgress policy govern updates. Otherwise use concise session coordination or an authorized plan. ask_user_question is conditional on exposure; otherwise ask in conversation. Native host compaction is not OCMM compress, and no model-facing compression call is assumed. A read-only planner returns complete Markdown; an authorized coordinator persists it, never the planner through shell or a proxy. Role responsibilities, explicit-off common/skill visibility, and the terminal delegation contract override broader examples in a resource.
16
+ - When exposed, native todo_write replaces the owning Agent's whole list of content/status items; its schema and allowParallelInProgress policy govern updates. Otherwise use concise session coordination or an authorized plan. ask_user_question is conditional on exposure; otherwise ask in conversation. Native host compaction is not a model-facing compression tool. A read-only planner returns complete Markdown; an authorized coordinator persists it, never the planner through shell or a proxy. Role responsibilities, explicit-off common/skill visibility, and the terminal delegation contract override broader examples in a resource.
17
17
  - Follow the current user's explicit output-language request, otherwise this Agent's immutable captured DSMM locale when supplied, then applicable host/user language guidance or the current request/context. Supported configured locales are en/zh-Hans/zh-Hant/ja/ko/de/fr/es/pt-BR/ru; omission inherits, not an English default. Preserve code, identifiers, paths, commands, protocol fields and exact quotes, and pass explicit language instructions in child assignments. This resource imports no Root session preference, promises neither internal reasoning language nor UI translation, and never changes host/project locale. A later parent Apply does not rewrite a child's captured locale.
18
18
  - Installation, package-manager bootstrap, downloads, authentication/login, credential/profile access, Git writes and destructive actions require explicit authorization for the exact action. Reference commands are not automatic operations. Worktree consent does not authorize dependency installation or later branch deletion. Read before changing an existing file; preserve unrelated user work. Never silently restore/reset a working tree to repair a failed cleanup.
19
19
  - Browser/debug QA uses run-owned isolated state, no imported credentials or browser profile, and only already available software unless separately authorized. Keep commands in the active shell dialect. Report unverified surfaces honestly.
@@ -110,10 +110,10 @@ type OwnedAuditBrowser = {
110
110
 
111
111
  async function removeOwnedRunRoot(runRoot: string, ownershipToken: string): Promise<void> {
112
112
  const [resolvedTempRoot, resolvedRunRoot] = await Promise.all([realpath(tmpdir()), realpath(runRoot)]);
113
- const ownershipMarker = join(resolvedRunRoot, ".ocmm-run-owner");
113
+ const ownershipMarker = join(resolvedRunRoot, ".dsmm-run-owner");
114
114
  if (
115
115
  dirname(resolvedRunRoot) !== resolvedTempRoot ||
116
- !/^ocmm-lighthouse-[A-Za-z0-9_-]+$/.test(basename(resolvedRunRoot)) ||
116
+ !/^dsmm-lighthouse-[A-Za-z0-9_-]+$/.test(basename(resolvedRunRoot)) ||
117
117
  (await readFile(ownershipMarker, "utf8")) !== ownershipToken
118
118
  ) {
119
119
  throw new Error("Refusing to remove a Lighthouse run root without exact ownership evidence");
@@ -163,9 +163,9 @@ async function readOwnedCdpPort(userDataDir: string, launchStartedAt: number): P
163
163
 
164
164
  async function launchOwnedAuditBrowser(): Promise<OwnedAuditBrowser> {
165
165
  const resolvedTempRoot = await realpath(tmpdir());
166
- const runRoot = await mkdtemp(join(resolvedTempRoot, "ocmm-lighthouse-"));
166
+ const runRoot = await mkdtemp(join(resolvedTempRoot, "dsmm-lighthouse-"));
167
167
  const ownershipToken = randomUUID();
168
- const ownershipMarker = join(runRoot, ".ocmm-run-owner");
168
+ const ownershipMarker = join(runRoot, ".dsmm-run-owner");
169
169
  const userDataDir = join(runRoot, "user-data");
170
170
  await writeFile(ownershipMarker, ownershipToken, { flag: "wx" });
171
171
  await mkdir(userDataDir);
@@ -38,10 +38,10 @@ type OwnedAuditBrowser = {
38
38
 
39
39
  async function removeOwnedRunRoot(runRoot: string, ownershipToken: string): Promise<void> {
40
40
  const [resolvedTempRoot, resolvedRunRoot] = await Promise.all([realpath(tmpdir()), realpath(runRoot)]);
41
- const ownershipMarker = join(resolvedRunRoot, ".ocmm-run-owner");
41
+ const ownershipMarker = join(resolvedRunRoot, ".dsmm-run-owner");
42
42
  if (
43
43
  dirname(resolvedRunRoot) !== resolvedTempRoot ||
44
- !/^ocmm-lighthouse-[A-Za-z0-9_-]+$/.test(basename(resolvedRunRoot)) ||
44
+ !/^dsmm-lighthouse-[A-Za-z0-9_-]+$/.test(basename(resolvedRunRoot)) ||
45
45
  (await readFile(ownershipMarker, "utf8")) !== ownershipToken
46
46
  ) {
47
47
  throw new Error("Refusing to remove a Lighthouse run root without exact ownership evidence");
@@ -91,9 +91,9 @@ async function readOwnedCdpPort(userDataDir: string, launchStartedAt: number): P
91
91
 
92
92
  async function launchOwnedAuditBrowser(): Promise<OwnedAuditBrowser> {
93
93
  const resolvedTempRoot = await realpath(tmpdir());
94
- const runRoot = await mkdtemp(join(resolvedTempRoot, "ocmm-lighthouse-"));
94
+ const runRoot = await mkdtemp(join(resolvedTempRoot, "dsmm-lighthouse-"));
95
95
  const ownershipToken = randomUUID();
96
- const ownershipMarker = join(runRoot, ".ocmm-run-owner");
96
+ const ownershipMarker = join(runRoot, ".dsmm-run-owner");
97
97
  const userDataDir = join(runRoot, "user-data");
98
98
  await writeFile(ownershipMarker, ownershipToken, { flag: "wx" });
99
99
  await mkdir(userDataDir);