@dsmm/dsmm 0.3.9 → 0.3.11
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 +9 -5
- package/agent-presets/dsmm-builder/agent.cordis.yml +6 -10
- package/agent-presets/dsmm-clarifier/agent.cordis.yml +10 -14
- package/agent-presets/dsmm-code-search/agent.cordis.yml +10 -14
- package/agent-presets/dsmm-coding/agent.cordis.yml +10 -14
- package/agent-presets/dsmm-complex/agent.cordis.yml +10 -14
- package/agent-presets/dsmm-creative/agent.cordis.yml +10 -14
- package/agent-presets/dsmm-cross-cutting/agent.cordis.yml +10 -14
- package/agent-presets/dsmm-deep/agent.cordis.yml +10 -14
- package/agent-presets/dsmm-doc-search/agent.cordis.yml +10 -14
- package/agent-presets/dsmm-documenting/agent.cordis.yml +10 -14
- package/agent-presets/dsmm-frontend/agent.cordis.yml +10 -14
- package/agent-presets/dsmm-hard-reasoning/agent.cordis.yml +10 -14
- package/agent-presets/dsmm-media-reader/agent.cordis.yml +10 -14
- package/agent-presets/dsmm-normal-task/agent.cordis.yml +10 -14
- package/agent-presets/dsmm-oracle/agent.cordis.yml +10 -14
- package/agent-presets/dsmm-oracle-2nd/agent.cordis.yml +10 -14
- package/agent-presets/dsmm-orchestrator/agent.cordis.yml +8 -12
- package/agent-presets/dsmm-plan-critic/agent.cordis.yml +10 -14
- package/agent-presets/dsmm-planner/agent.cordis.yml +10 -14
- package/agent-presets/dsmm-quick/agent.cordis.yml +10 -14
- package/agent-presets/dsmm-research/agent.cordis.yml +10 -14
- package/agent-presets/dsmm-reviewer/agent.cordis.yml +10 -14
- package/docs/agent-presets.md +3 -3
- package/docs/compatibility.md +2 -2
- package/docs/deferred-native-approval-risk.md +11 -1
- package/docs/design.md +1 -1
- package/docs/lsp.md +6 -2
- package/docs/maintenance.md +65 -0
- package/docs/model-routing.md +1 -1
- package/docs/native-permissions.md +23 -1
- package/docs/profiles.md +1 -1
- package/docs/releasing.md +51 -32
- package/docs/roadmap.md +3 -3
- package/docs/runtime-recovery.md +1 -1
- package/docs/safety-guards.md +23 -5
- package/docs/settings-status.md +1 -1
- package/lib/child-capture.js +5 -1
- package/lib/client/deployment-locales.js +1 -0
- package/lib/client/permission-locales.js +8 -8
- package/lib/client.js +18 -17
- package/lib/command-approval.d.ts +50 -0
- package/lib/command-approval.js +148 -0
- package/lib/core-permissions.d.ts +2 -1
- package/lib/core-permissions.js +6 -3
- package/lib/guards.d.ts +2 -1
- package/lib/guards.js +45 -8
- package/lib/index.d.ts +1 -1
- package/lib/index.js +4 -2
- package/lib/lsp.js +1 -1
- package/lib/permission-control.d.ts +5 -2
- package/lib/permission-control.js +46 -24
- package/lib/permission-controller.d.ts +2 -0
- package/lib/permission-controller.js +13 -8
- package/lib/permission-native-command.d.ts +2 -0
- package/lib/permission-native-command.js +9 -4
- package/lib/permission-native-rules.d.ts +2 -2
- package/lib/permission-native-rules.js +18 -13
- package/lib/permission-shell.d.ts +1 -1
- package/lib/permission-shell.js +2 -2
- package/lib/profile-diagnostics.js +1 -1
- package/lib/profiles.js +2 -1
- package/lib/prompt-content.js +2 -2
- package/lib/roles.js +2 -2
- package/lib/settings.d.ts +2 -0
- package/lib/settings.js +10 -0
- package/lib/shell-command.d.ts +16 -0
- package/lib/shell-command.js +443 -119
- package/package.json +38 -38
- package/patches/ocmm-lsp-mcp.example.cordis.patch.yml +1 -1
- package/prompts/deepwork.md +2 -2
- package/prompts/source/shared/dsh-host-contract.md +2 -2
- package/prompts/source/shared/locale.md +2 -2
- package/prompts/source/terminal/builder.md +2 -2
- package/prompts/source/terminal/clarifier.md +6 -6
- package/prompts/source/terminal/code-search.md +6 -6
- package/prompts/source/terminal/coding.md +6 -6
- package/prompts/source/terminal/complex.md +6 -6
- package/prompts/source/terminal/creative.md +6 -6
- package/prompts/source/terminal/cross-cutting.md +6 -6
- package/prompts/source/terminal/deep.md +6 -6
- package/prompts/source/terminal/doc-search.md +6 -6
- package/prompts/source/terminal/documenting.md +6 -6
- package/prompts/source/terminal/frontend.md +6 -6
- package/prompts/source/terminal/hard-reasoning.md +6 -6
- package/prompts/source/terminal/media-reader.md +6 -6
- package/prompts/source/terminal/normal-task.md +6 -6
- package/prompts/source/terminal/oracle-2nd.md +6 -6
- package/prompts/source/terminal/oracle.md +6 -6
- package/prompts/source/terminal/orchestrator.md +4 -4
- package/prompts/source/terminal/plan-critic.md +6 -6
- package/prompts/source/terminal/planner.md +6 -6
- package/prompts/source/terminal/quick.md +6 -6
- package/prompts/source/terminal/research.md +6 -6
- package/prompts/source/terminal/reviewer.md +6 -6
- package/skills/ast-grep/SKILL.md +3 -3
- package/skills/ast-grep/SOURCE +1 -1
- package/skills/ast-grep/install.ps1 +1 -1
- package/skills/ast-grep/install.sh +1 -1
- package/skills/ast-grep/scripts/ast_grep_helper.py +10 -10
- package/skills/ast-grep/tests/smoke.sh +11 -11
- package/skills/ast-grep/tests/test_resolver.py +4 -23
- package/skills/brainstorming/SKILL.md +3 -3
- package/skills/coding-agent-sessions/NOTICE.md +2 -2
- package/skills/coding-agent-sessions/SKILL.md +3 -3
- package/skills/debugging/SKILL.md +3 -3
- package/skills/debugging/references/methodology/03-flaky-triage.md +1 -1
- package/skills/debugging/references/scripts/dap.mjs +3 -3
- package/skills/debugging/references/tools/playwright-cli.md +3 -3
- package/skills/dispatching-parallel-agents/SKILL.md +3 -3
- package/skills/frontend/ATTRIBUTION.md +4 -4
- package/skills/frontend/SKILL.md +3 -3
- package/skills/frontend/references/perfection/README.md +4 -4
- package/skills/frontend/references/perfection/react-perf-tooling.md +4 -4
- package/skills/git-master/SKILL.md +3 -3
- package/skills/git-master/agents/openai.yaml +1 -1
- package/skills/init-deep/SKILL.md +3 -3
- package/skills/receiving-code-review/SKILL.md +3 -3
- package/skills/remove-ai-slops/SKILL.md +3 -3
- package/skills/requesting-code-review/SKILL.md +3 -3
- package/skills/subagent-driven-development/SKILL.md +3 -3
- package/skills/using-git-worktrees/SKILL.md +4 -4
- package/skills/writing-plans/SKILL.md +3 -3
- package/docs/migration-from-ocmm.md +0 -57
- package/docs/skill-sync.md +0 -94
- package/prompts/source/manifest.json +0 -3168
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<
|
|
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
|
-
</
|
|
9
|
+
</dsmm-shell-command-safety>
|
|
10
10
|
|
|
11
|
-
<
|
|
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.
|
|
@@ -27,15 +27,15 @@ This recommended proactive path applies only when every condition holds:
|
|
|
27
27
|
- The selected raw exploration range is closed and no longer needed verbatim.
|
|
28
28
|
- 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.
|
|
29
29
|
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.
|
|
30
|
-
</
|
|
30
|
+
</dsmm-subagent-compression-policy>
|
|
31
31
|
|
|
32
|
-
<
|
|
32
|
+
<dsmm-delegation-contract>
|
|
33
33
|
## Delegation Contract (Authoritative)
|
|
34
34
|
Use direct tools first. Delegate only when direct tools are insufficient or a separate bounded utility result materially improves completion.
|
|
35
35
|
Allowed utility targets: `quick`, `code-search`, `explore`, `doc-search`, `research`, `media-reader`.
|
|
36
36
|
Do not dispatch planning, review, coordination, or implementation workflow agents.
|
|
37
37
|
After local verification, return status and evidence to the caller. Formal planner dispatch, the `plan-critic` loop, review dispatch, and final acceptance review are orchestrator-owned.
|
|
38
38
|
This contract overrides any skill, model calibration, generated-adapter compatibility text, or other prompt layer that suggests broader delegation.
|
|
39
|
-
</
|
|
39
|
+
</dsmm-delegation-contract>
|
|
40
40
|
|
|
41
41
|
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.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<
|
|
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
|
-
</
|
|
9
|
+
</dsmm-shell-command-safety>
|
|
10
10
|
|
|
11
|
-
<
|
|
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.
|
|
@@ -27,15 +27,15 @@ This recommended proactive path applies only when every condition holds:
|
|
|
27
27
|
- The selected raw exploration range is closed and no longer needed verbatim.
|
|
28
28
|
- 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.
|
|
29
29
|
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.
|
|
30
|
-
</
|
|
30
|
+
</dsmm-subagent-compression-policy>
|
|
31
31
|
|
|
32
|
-
<
|
|
32
|
+
<dsmm-delegation-contract>
|
|
33
33
|
## Delegation Contract (Authoritative)
|
|
34
34
|
Use direct tools first. Delegate only when direct tools are insufficient or a separate bounded utility result materially improves completion.
|
|
35
35
|
Allowed utility targets: `quick`, `code-search`, `explore`, `doc-search`, `research`, `media-reader`.
|
|
36
36
|
Do not dispatch planning, review, coordination, or implementation workflow agents.
|
|
37
37
|
After local verification, return status and evidence to the caller. Formal planner dispatch, the `plan-critic` loop, review dispatch, and final acceptance review are orchestrator-owned.
|
|
38
38
|
This contract overrides any skill, model calibration, generated-adapter compatibility text, or other prompt layer that suggests broader delegation.
|
|
39
|
-
</
|
|
39
|
+
</dsmm-delegation-contract>
|
|
40
40
|
|
|
41
41
|
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.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<
|
|
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
|
-
</
|
|
9
|
+
</dsmm-shell-command-safety>
|
|
10
10
|
|
|
11
|
-
<
|
|
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.
|
|
@@ -27,13 +27,13 @@ This recommended proactive path applies only when every condition holds:
|
|
|
27
27
|
- The selected raw exploration range is closed and no longer needed verbatim.
|
|
28
28
|
- 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.
|
|
29
29
|
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.
|
|
30
|
-
</
|
|
30
|
+
</dsmm-subagent-compression-policy>
|
|
31
31
|
|
|
32
|
-
<
|
|
32
|
+
<dsmm-delegation-contract>
|
|
33
33
|
## Delegation Contract (Authoritative)
|
|
34
34
|
This role is a utility leaf agent. Do not dispatch any subagent.
|
|
35
35
|
Complete the bounded assignment with direct tools and return the result to the caller.
|
|
36
36
|
This contract overrides any skill, model calibration, generated-adapter compatibility text, or other prompt layer that suggests broader delegation.
|
|
37
|
-
</
|
|
37
|
+
</dsmm-delegation-contract>
|
|
38
38
|
|
|
39
39
|
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.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<
|
|
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
|
-
</
|
|
9
|
+
</dsmm-shell-command-safety>
|
|
10
10
|
|
|
11
|
-
<
|
|
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.
|
|
@@ -27,15 +27,15 @@ This recommended proactive path applies only when every condition holds:
|
|
|
27
27
|
- The selected raw exploration range is closed and no longer needed verbatim.
|
|
28
28
|
- 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.
|
|
29
29
|
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.
|
|
30
|
-
</
|
|
30
|
+
</dsmm-subagent-compression-policy>
|
|
31
31
|
|
|
32
|
-
<
|
|
32
|
+
<dsmm-delegation-contract>
|
|
33
33
|
## Delegation Contract (Authoritative)
|
|
34
34
|
Use direct tools first. Delegate only when direct tools are insufficient or a separate bounded utility result materially improves completion.
|
|
35
35
|
Allowed utility targets: `quick`, `code-search`, `explore`, `doc-search`, `research`, `media-reader`.
|
|
36
36
|
Do not dispatch planning, review, coordination, or implementation workflow agents.
|
|
37
37
|
After local verification, return status and evidence to the caller. Formal planner dispatch, the `plan-critic` loop, review dispatch, and final acceptance review are orchestrator-owned.
|
|
38
38
|
This contract overrides any skill, model calibration, generated-adapter compatibility text, or other prompt layer that suggests broader delegation.
|
|
39
|
-
</
|
|
39
|
+
</dsmm-delegation-contract>
|
|
40
40
|
|
|
41
41
|
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.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<
|
|
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
|
-
</
|
|
9
|
+
</dsmm-shell-command-safety>
|
|
10
10
|
|
|
11
|
-
<
|
|
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
|
-
</
|
|
42
|
+
</dsmm-subagent-compression-policy>
|
|
43
43
|
|
|
44
|
-
<
|
|
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
|
-
</
|
|
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.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<
|
|
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
|
-
</
|
|
9
|
+
</dsmm-shell-command-safety>
|
|
10
10
|
|
|
11
|
-
<
|
|
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
|
-
</
|
|
42
|
+
</dsmm-subagent-compression-policy>
|
|
43
43
|
|
|
44
|
-
<
|
|
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
|
-
</
|
|
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.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<
|
|
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
|
-
</
|
|
9
|
+
</dsmm-shell-command-safety>
|
|
10
10
|
|
|
11
|
-
<
|
|
11
|
+
<dsmm-review-session-efficiency-policy>
|
|
12
12
|
## Review Session Efficiency Policy
|
|
13
13
|
A review stage is one role, one authoritative artifact or decision target, and one review objective from initial dispatch through corrections until approval or receipt, abandonment, or handoff to another workflow phase.
|
|
14
14
|
Continue the same reviewer or plan-critic child only when it was started in native continuable mode, its returned child ID is valid, and the exposed send_message surface permits that follow-up. A one-shot result has no continuation handle: start a fresh permitted focused child with the correction context. Never send task_id, resume or retry fields. Native message acceptance is not review completion.
|
|
@@ -19,7 +19,7 @@ Do not fan out additional reviewers merely because profiles or tiers are configu
|
|
|
19
19
|
On continuation, supply the current authoritative artifact path/revision, the files changed since the previous pass, changed plan sections when applicable, and new or updated evidence. This focus manifest avoids repeated broad exploration but never excuses the reviewer or plan-critic from reading the current authoritative artifact required for its verdict.
|
|
20
20
|
Do not paste the whole accumulated conversation when the current artifact plus change manifest and evidence are sufficient.
|
|
21
21
|
A timeout, partial response, stale-revision receipt, or failed continuation is not approval.
|
|
22
|
-
</
|
|
22
|
+
</dsmm-review-session-efficiency-policy>
|
|
23
23
|
|
|
24
24
|
<dsmm-delegation-contract>
|
|
25
25
|
A trusted root/stage-owner orchestrator coordinates authorized work and owns formal planning, criticism, review dispatch and final acceptance. Root Builder is not a bounded worker. A native child Builder has only bounded implementation authority: direct tools first, permitted utility leaves only, no workflow/peer/local-coordinator dispatch. Do not self-promote from a persona or root preset name. Missing/conflicting trusted identity fails closed. Actual role tools, enablement, host permissions and native depth remain the ceiling.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<
|
|
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
|
-
</
|
|
9
|
+
</dsmm-shell-command-safety>
|
|
10
10
|
|
|
11
|
-
<
|
|
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.
|
|
@@ -27,15 +27,15 @@ This recommended proactive path applies only when every condition holds:
|
|
|
27
27
|
- The selected raw exploration range is closed and no longer needed verbatim.
|
|
28
28
|
- 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.
|
|
29
29
|
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.
|
|
30
|
-
</
|
|
30
|
+
</dsmm-subagent-compression-policy>
|
|
31
31
|
|
|
32
|
-
<
|
|
32
|
+
<dsmm-delegation-contract>
|
|
33
33
|
## Delegation Contract (Authoritative)
|
|
34
34
|
Use direct tools first. Delegate only when direct tools are insufficient and a separate bounded research result materially improves completion.
|
|
35
35
|
Allowed utility targets: `code-search`, `explore`, `doc-search`, `research`, `media-reader`.
|
|
36
36
|
`quick` is forbidden because this read-only role must not modify work by proxy. Planning, review, coordination, and implementation workflow agents are also forbidden.
|
|
37
37
|
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.
|
|
38
38
|
This contract overrides any skill, model calibration, generated-adapter compatibility text, or other prompt layer that suggests broader delegation.
|
|
39
|
-
</
|
|
39
|
+
</dsmm-delegation-contract>
|
|
40
40
|
|
|
41
41
|
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.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<
|
|
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
|
-
</
|
|
9
|
+
</dsmm-shell-command-safety>
|
|
10
10
|
|
|
11
|
-
<
|
|
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.
|
|
@@ -27,9 +27,9 @@ This recommended proactive path applies only when every condition holds:
|
|
|
27
27
|
- The selected raw exploration range is closed and no longer needed verbatim.
|
|
28
28
|
- 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.
|
|
29
29
|
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.
|
|
30
|
-
</
|
|
30
|
+
</dsmm-subagent-compression-policy>
|
|
31
31
|
|
|
32
|
-
<
|
|
32
|
+
<dsmm-delegation-contract>
|
|
33
33
|
## Delegation Contract (Authoritative)
|
|
34
34
|
Use direct tools first. Delegate only when direct tools are insufficient and a separate bounded research result materially improves completion.
|
|
35
35
|
Allowed utility targets: `code-search`, `explore`, `doc-search`, `research`, `media-reader`.
|
|
@@ -37,6 +37,6 @@ If repository evidence cannot settle a genuinely difficult decision, return the
|
|
|
37
37
|
`quick` is forbidden. Do not dispatch `plan-critic`, any Reviewer profile, any Oracle profile, implementation agents, decision agents, or routine review checks.
|
|
38
38
|
Return the completed plan to the caller. Difficult-decision routing, formal planner dispatch, the `plan-critic` loop, review dispatch, and final acceptance review are orchestrator-owned.
|
|
39
39
|
This contract overrides any skill, model calibration, generated-adapter compatibility text, or other prompt layer that suggests broader delegation.
|
|
40
|
-
</
|
|
40
|
+
</dsmm-delegation-contract>
|
|
41
41
|
|
|
42
42
|
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.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<
|
|
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
|
-
</
|
|
9
|
+
</dsmm-shell-command-safety>
|
|
10
10
|
|
|
11
|
-
<
|
|
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.
|
|
@@ -27,13 +27,13 @@ This recommended proactive path applies only when every condition holds:
|
|
|
27
27
|
- The selected raw exploration range is closed and no longer needed verbatim.
|
|
28
28
|
- 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.
|
|
29
29
|
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.
|
|
30
|
-
</
|
|
30
|
+
</dsmm-subagent-compression-policy>
|
|
31
31
|
|
|
32
|
-
<
|
|
32
|
+
<dsmm-delegation-contract>
|
|
33
33
|
## Delegation Contract (Authoritative)
|
|
34
34
|
This role is a utility leaf agent. Do not dispatch any subagent.
|
|
35
35
|
Complete the bounded assignment with direct tools and return the result to the caller.
|
|
36
36
|
This contract overrides any skill, model calibration, generated-adapter compatibility text, or other prompt layer that suggests broader delegation.
|
|
37
|
-
</
|
|
37
|
+
</dsmm-delegation-contract>
|
|
38
38
|
|
|
39
39
|
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.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<
|
|
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
|
-
</
|
|
9
|
+
</dsmm-shell-command-safety>
|
|
10
10
|
|
|
11
|
-
<
|
|
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.
|
|
@@ -27,13 +27,13 @@ This recommended proactive path applies only when every condition holds:
|
|
|
27
27
|
- The selected raw exploration range is closed and no longer needed verbatim.
|
|
28
28
|
- 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.
|
|
29
29
|
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.
|
|
30
|
-
</
|
|
30
|
+
</dsmm-subagent-compression-policy>
|
|
31
31
|
|
|
32
|
-
<
|
|
32
|
+
<dsmm-delegation-contract>
|
|
33
33
|
## Delegation Contract (Authoritative)
|
|
34
34
|
This role is a utility leaf agent. Do not dispatch any subagent.
|
|
35
35
|
Complete the bounded assignment with direct tools and return the result to the caller.
|
|
36
36
|
This contract overrides any skill, model calibration, generated-adapter compatibility text, or other prompt layer that suggests broader delegation.
|
|
37
|
-
</
|
|
37
|
+
</dsmm-delegation-contract>
|
|
38
38
|
|
|
39
39
|
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.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<
|
|
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
|
-
</
|
|
9
|
+
</dsmm-shell-command-safety>
|
|
10
10
|
|
|
11
|
-
<
|
|
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
|
-
</
|
|
42
|
+
</dsmm-subagent-compression-policy>
|
|
43
43
|
|
|
44
|
-
<
|
|
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
|
-
</
|
|
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.
|
package/skills/ast-grep/SKILL.md
CHANGED
|
@@ -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
|
|
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
|
|
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
|
|
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.
|
package/skills/ast-grep/SOURCE
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
upstream: https://github.com/code-yeongyu/ast-grep-skill @ 3148c69; fallback binary pin
|
|
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:
|
|
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="${
|
|
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
|
-
# ---
|
|
219
|
+
# --- DSMM runtime resolution (vendored patch) ---
|
|
220
220
|
|
|
221
|
-
def
|
|
222
|
-
raw_path = os.environ.get("
|
|
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
|
|
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
|
|
241
|
+
def dsmm_runtime_binary() -> Optional[Path]:
|
|
242
242
|
binary_name = "sg.exe" if sys.platform.startswith("win") else "sg"
|
|
243
|
-
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() / ".
|
|
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.
|
|
258
|
-
2.
|
|
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 (
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
123
|
-
grep -Fq "ast-grep binary: $FAKE_ENV_SG" "$OUTPUT_DIR/
|
|
124
|
-
pass "
|
|
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
|
|
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="$(
|
|
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/.
|
|
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=
|
|
137
|
-
grep -Fq "ast-grep binary: $FAKE_RUNTIME_SG" "$OUTPUT_DIR/
|
|
138
|
-
pass "
|
|
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.
|