@dsmm/dsmm 0.2.0 → 0.3.0
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 +37 -67
- package/agent-presets/dsmm-builder/agent.cordis.yml +10 -2015
- package/agent-presets/dsmm-clarifier/agent.cordis.yml +24 -343
- package/agent-presets/dsmm-code-search/agent.cordis.yml +19 -6
- package/agent-presets/dsmm-coding/agent.cordis.yml +19 -438
- package/agent-presets/dsmm-complex/agent.cordis.yml +23 -1009
- package/agent-presets/dsmm-creative/agent.cordis.yml +25 -442
- package/agent-presets/dsmm-cross-cutting/agent.cordis.yml +29 -1013
- package/agent-presets/dsmm-deep/agent.cordis.yml +24 -1008
- package/agent-presets/dsmm-doc-search/agent.cordis.yml +19 -6
- package/agent-presets/dsmm-documenting/agent.cordis.yml +26 -439
- package/agent-presets/dsmm-frontend/agent.cordis.yml +21 -440
- package/agent-presets/dsmm-hard-reasoning/agent.cordis.yml +22 -441
- package/agent-presets/dsmm-media-reader/agent.cordis.yml +19 -6
- package/agent-presets/dsmm-normal-task/agent.cordis.yml +19 -438
- package/agent-presets/dsmm-oracle/agent.cordis.yml +25 -340
- package/agent-presets/dsmm-oracle-2nd/agent.cordis.yml +25 -340
- package/agent-presets/dsmm-orchestrator/agent.cordis.yml +29 -2025
- package/agent-presets/dsmm-plan-critic/agent.cordis.yml +24 -341
- package/agent-presets/dsmm-planner/agent.cordis.yml +14 -344
- package/agent-presets/dsmm-quick/agent.cordis.yml +19 -6
- package/agent-presets/dsmm-research/agent.cordis.yml +23 -8
- package/agent-presets/dsmm-reviewer/agent.cordis.yml +25 -340
- package/cordis.patch.yml +14 -0
- package/docs/agent-presets.md +36 -52
- package/docs/compatibility.md +47 -110
- package/docs/deferred-native-approval-risk.md +19 -0
- package/docs/design.md +2 -2
- package/docs/lsp.md +11 -21
- package/docs/migration-from-ocmm.md +2 -2
- package/docs/model-routing.md +84 -59
- package/docs/native-permissions.md +35 -0
- package/docs/profiles.md +40 -87
- package/docs/releasing.md +123 -2
- package/docs/roadmap.md +71 -17
- package/docs/settings-status.md +34 -169
- package/docs/skill-sync.md +52 -15
- package/lib/agent-registry.d.ts +36 -0
- package/lib/agent-registry.js +75 -0
- package/lib/child-admission-contract.d.ts +37 -0
- package/lib/child-admission-contract.js +2 -0
- package/lib/child-admission.d.ts +40 -0
- package/lib/child-admission.js +151 -0
- package/lib/child-capture.d.ts +85 -0
- package/lib/child-capture.js +205 -0
- package/lib/child-evidence.d.ts +17 -0
- package/lib/child-evidence.js +43 -0
- package/lib/client/ChildrenPanel.d.ts +43 -0
- package/lib/client/ChildrenPanel.js +82 -0
- package/lib/client/DeploymentPage.js +15 -8
- package/lib/client/EditableChoice.d.ts +17 -0
- package/lib/client/EditableChoice.js +49 -0
- package/lib/client/PermissionsPanel.d.ts +14 -0
- package/lib/client/PermissionsPanel.js +46 -0
- package/lib/client/ProfilesSection.js +30 -15
- package/lib/client/RoleAvailability.d.ts +7 -0
- package/lib/client/RoleAvailability.js +19 -0
- package/lib/client/SessionProfiles.js +27 -9
- package/lib/client/StructuredEditor.js +15 -7
- package/lib/client/children-controller.d.ts +98 -0
- package/lib/client/children-controller.js +296 -0
- package/lib/client/children-locales.d.ts +367 -0
- package/lib/client/children-locales.js +69 -0
- package/lib/client/controller.d.ts +6 -1
- package/lib/client/controller.js +14 -8
- package/lib/client/deployment-controller.js +1 -1
- package/lib/client/deployment-data.d.ts +2 -1
- package/lib/client/deployment-data.js +34 -5
- package/lib/client/deployment-locales.d.ts +4 -0
- package/lib/client/deployment-locales.js +11 -2
- package/lib/client/diagnostics.d.ts +14 -0
- package/lib/client/diagnostics.js +53 -0
- package/lib/client/index.d.ts +4 -0
- package/lib/client/index.js +96 -2
- package/lib/client/locales.d.ts +54 -0
- package/lib/client/locales.js +34 -16
- package/lib/client/permission-client.d.ts +16 -0
- package/lib/client/permission-client.js +38 -0
- package/lib/client/permission-controller.d.ts +62 -0
- package/lib/client/permission-controller.js +149 -0
- package/lib/client/permission-locales.d.ts +114 -0
- package/lib/client/permission-locales.js +75 -0
- package/lib/client/session-labels.js +4 -4
- package/lib/client/structured.js +19 -5
- package/lib/client/styles.d.ts +1 -1
- package/lib/client/styles.js +20 -0
- package/lib/client.js +5780 -1679
- package/lib/core-permission-authority.d.ts +18 -0
- package/lib/core-permission-authority.js +255 -0
- package/lib/core-permissions.d.ts +8 -0
- package/lib/core-permissions.js +33 -0
- package/lib/delivery-authority.d.ts +83 -0
- package/lib/delivery-authority.js +397 -0
- package/lib/deployment-config.d.ts +23 -0
- package/lib/deployment-config.js +61 -40
- package/lib/deployment-permission-rules.d.ts +55 -0
- package/lib/deployment-permission-rules.js +306 -0
- package/lib/dsh-types.d.ts +10 -4
- package/lib/guards.d.ts +1 -1
- package/lib/guards.js +29 -8
- package/lib/host-llm-startup.d.ts +41 -0
- package/lib/host-llm-startup.js +65 -0
- package/lib/host-llm.d.ts +92 -0
- package/lib/host-llm.js +325 -0
- package/lib/index.d.ts +15 -4
- package/lib/index.js +288 -48
- package/lib/live-pi-ai-owner.d.ts +18 -0
- package/lib/live-pi-ai-owner.js +144 -0
- package/lib/llm-runtime.d.ts +11 -0
- package/lib/llm-runtime.js +21 -0
- package/lib/managed-settings.d.ts +5 -0
- package/lib/managed-settings.js +14 -0
- package/lib/model-parameter-policy.d.ts +11 -0
- package/lib/model-parameter-policy.js +27 -0
- package/lib/model-routing.js +28 -17
- package/lib/modules.d.ts +13 -5
- package/lib/modules.js +17 -1
- package/lib/native-child-evidence.d.ts +40 -0
- package/lib/native-child-evidence.js +104 -0
- package/lib/native-pi-ai-wire.d.ts +37 -0
- package/lib/native-pi-ai-wire.js +261 -0
- package/lib/native-scope.js +1 -1
- package/lib/permission-bash.d.ts +6 -0
- package/lib/permission-bash.js +7 -0
- package/lib/permission-control.d.ts +73 -0
- package/lib/permission-control.js +205 -0
- package/lib/permission-controller.d.ts +68 -0
- package/lib/permission-controller.js +317 -0
- package/lib/permission-errors.d.ts +7 -0
- package/lib/permission-errors.js +21 -0
- package/lib/permission-fs-search.d.ts +5 -0
- package/lib/permission-fs-search.js +7 -0
- package/lib/permission-fs.d.ts +5 -0
- package/lib/permission-fs.js +7 -0
- package/lib/permission-native-access.d.ts +11 -0
- package/lib/permission-native-access.js +6 -0
- package/lib/permission-native-command.d.ts +10 -0
- package/lib/permission-native-command.js +93 -0
- package/lib/permission-native-rules.d.ts +75 -0
- package/lib/permission-native-rules.js +278 -0
- package/lib/permission-pwsh.d.ts +6 -0
- package/lib/permission-pwsh.js +7 -0
- package/lib/permission-remote.d.ts +26 -0
- package/lib/permission-remote.js +53 -0
- package/lib/permission-rpc.d.ts +29 -0
- package/lib/permission-rpc.js +152 -0
- package/lib/permission-rules.d.ts +115 -0
- package/lib/permission-rules.js +256 -0
- package/lib/permission-settings.d.ts +45 -0
- package/lib/permission-settings.js +48 -0
- package/lib/permission-shell.d.ts +38 -0
- package/lib/permission-shell.js +150 -0
- package/lib/permission-web.d.ts +5 -0
- package/lib/permission-web.js +7 -0
- package/lib/preset-registry.js +36 -25
- package/lib/profile-diagnostics.d.ts +45 -0
- package/lib/profile-diagnostics.js +148 -0
- package/lib/profile-locale.d.ts +3 -0
- package/lib/profile-locale.js +2 -0
- package/lib/profile-remote.d.ts +8 -0
- package/lib/profile-remote.js +163 -39
- package/lib/profile-rpc.d.ts +4 -3
- package/lib/profile-rpc.js +20 -16
- package/lib/profile-runtime.d.ts +40 -1
- package/lib/profile-runtime.js +368 -93
- package/lib/profile-store.d.ts +11 -0
- package/lib/profile-store.js +143 -11
- package/lib/profile-types.d.ts +70 -1
- package/lib/profile-types.js +1 -0
- package/lib/profiles.d.ts +16 -2
- package/lib/profiles.js +156 -79
- package/lib/prompt-content.js +1 -1
- package/lib/prompts.d.ts +37 -2
- package/lib/prompts.js +111 -9
- package/lib/recovery-policy.js +20 -7
- package/lib/role-control-remote.d.ts +38 -0
- package/lib/role-control-remote.js +211 -0
- package/lib/role-control-rpc.d.ts +51 -0
- package/lib/role-control-rpc.js +381 -0
- package/lib/role-control-types.d.ts +92 -0
- package/lib/role-control-types.js +8 -0
- package/lib/role-invocation.d.ts +47 -0
- package/lib/role-invocation.js +135 -0
- package/lib/role-llm-runtime.d.ts +17 -0
- package/lib/role-llm-runtime.js +62 -0
- package/lib/role-llm.d.ts +31 -0
- package/lib/role-llm.js +66 -0
- package/lib/role-policy.d.ts +46 -8
- package/lib/role-policy.js +421 -61
- package/lib/role-providers.d.ts +2 -2
- package/lib/role-providers.js +27 -72
- package/lib/role-routing.d.ts +11 -2
- package/lib/role-routing.js +42 -25
- package/lib/role-runs.d.ts +138 -0
- package/lib/role-runs.js +335 -0
- package/lib/role-subagents.d.ts +58 -3
- package/lib/role-subagents.js +179 -56
- package/lib/roles.d.ts +5 -6
- package/lib/roles.js +10 -39
- package/lib/route-json.d.ts +19 -0
- package/lib/route-json.js +129 -0
- package/lib/routing-policy.d.ts +2 -0
- package/lib/routing-policy.js +12 -2
- package/lib/runtime-integration.d.ts +81 -0
- package/lib/runtime-integration.js +702 -0
- package/lib/runtime-recovery.js +18 -8
- package/lib/session-persistence.d.ts +2 -1
- package/lib/session-persistence.js +1 -1
- package/lib/session-scope.js +4 -1
- package/lib/settings.d.ts +47 -13
- package/lib/settings.js +217 -82
- package/lib/skills.js +2 -2
- package/lib/status.d.ts +10 -1
- package/lib/status.js +11 -8
- package/lib/subagent-runtime.d.ts +57 -0
- package/lib/subagent-runtime.js +257 -0
- package/package.json +149 -89
- package/patches/subagent-runtime.yml +15 -0
- package/prompts/deepseek-flash.md +1 -1
- package/prompts/deepseek-v4-pro.md +2 -2
- package/prompts/deepwork.md +27 -18
- package/prompts/source/agents/clarifier.md +5 -3
- package/prompts/source/agents/orchestrator.md +18 -9
- package/prompts/source/agents/plan-critic.md +5 -1
- package/prompts/source/agents/planner.md +4 -2
- package/prompts/source/agents/reviewer.md +6 -0
- package/prompts/source/category/complex.md +4 -4
- package/prompts/source/category/creative.md +6 -4
- package/prompts/source/category/cross-cutting.md +10 -8
- package/prompts/source/category/deep.md +5 -3
- package/prompts/source/category/documenting.md +7 -1
- package/prompts/source/category/frontend.md +2 -2
- package/prompts/source/category/hard-reasoning.md +3 -3
- package/prompts/source/category/research.md +4 -2
- package/prompts/source/deepwork/claude-opus-5.md +2 -2
- package/prompts/source/deepwork/codex.md +1 -1
- package/prompts/source/deepwork/default.md +22 -15
- package/prompts/source/deepwork/gemini.md +23 -16
- package/prompts/source/deepwork/glm.md +21 -14
- package/prompts/source/deepwork/gpt.md +12 -6
- package/prompts/source/deepwork/planner.md +8 -5
- package/prompts/source/manifest.json +178 -63
- package/prompts/source/shared/dsh-host-contract.md +5 -3
- package/prompts/source/shared/locale.md +2 -2
- package/prompts/source/terminal/orchestrator.md +1 -1
- package/skills/ast-grep/SKILL.md +7 -4
- package/skills/brainstorming/SKILL.md +43 -22
- package/skills/coding-agent-sessions/SKILL.md +7 -4
- package/skills/coding-agent-sessions/scripts/agent_sessions/pi_family.py +46 -46
- package/skills/coding-agent-sessions/scripts/tests/test_pi_family_scanners.py +130 -130
- package/skills/debugging/SKILL.md +14 -9
- package/skills/debugging/references/methodology/00-setup.md +14 -62
- package/skills/debugging/references/methodology/02-investigate.md +4 -4
- package/skills/debugging/references/methodology/03-flaky-triage.md +3 -3
- package/skills/debugging/references/methodology/04-hard-reasoning-escalation.md +2 -14
- package/skills/debugging/references/methodology/06-fix.md +6 -6
- package/skills/debugging/references/methodology/08-qa.md +5 -5
- package/skills/debugging/references/methodology/09-cleanup.md +15 -153
- package/skills/debugging/references/methodology/partial-runtime-evidence.md +3 -16
- package/skills/debugging/references/runtimes/bundled-js-binary.md +1 -16
- package/skills/debugging/references/runtimes/native-binary.md +9 -54
- package/skills/debugging/references/runtimes/node.md +4 -15
- package/skills/debugging/references/runtimes/python.md +3 -15
- package/skills/debugging/references/runtimes/rust.md +2 -18
- package/skills/debugging/references/tools/dap.md +1 -1
- package/skills/debugging/references/tools/ghidra.md +4 -15
- package/skills/debugging/references/tools/playwright-cli.md +3 -15
- package/skills/debugging/references/tools/pwntools.md +4 -16
- package/skills/dispatching-parallel-agents/SKILL.md +18 -16
- package/skills/frontend/SKILL.md +7 -4
- package/skills/frontend/references/design/react-dev-tooling-skill.md +1 -1
- package/skills/git-master/SKILL.md +7 -4
- package/skills/init-deep/SKILL.md +7 -4
- package/skills/receiving-code-review/SKILL.md +17 -12
- package/skills/remove-ai-slops/SKILL.md +39 -38
- package/skills/requesting-code-review/SKILL.md +19 -17
- package/skills/requesting-code-review/code-reviewer.md +13 -1
- package/skills/subagent-driven-development/SKILL.md +29 -26
- package/skills/subagent-driven-development/implementer-prompt.md +29 -11
- package/skills/subagent-driven-development/spec-reviewer-prompt.md +6 -1
- package/skills/using-git-worktrees/SKILL.md +7 -4
- package/skills/writing-plans/SKILL.md +29 -24
- package/skills/writing-plans/plan-document-reviewer-prompt.md +10 -1
- package/scripts/repair-session-log.mjs +0 -476
- package/scripts/session-repair-native-verifier.mjs +0 -367
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: remove-ai-slops
|
|
3
|
-
description: "Remove AI-generated code slop from branch changes or an explicit file list.
|
|
3
|
+
description: "Remove AI-generated code slop from branch changes or an explicit file list. Establishes regression coverage for final valid requirements, then runs categorized cleanup with bounded permitted work and verifies with quality gates. Covers 10 slop categories. MUST USE when the user asks to \"remove slop\", \"clean AI code\", \"deslop\", \"clean up AI-generated code\", \"remove AI slop\", or wants to clean up AI-generated patterns."
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
## DSH resource and authority contract
|
|
@@ -8,10 +8,13 @@ description: "Remove AI-generated code slop from branch changes or an explicit f
|
|
|
8
8
|
This is a full OCMM source adaptation for DSH 0.2.0-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.
|
|
9
9
|
|
|
10
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.
|
|
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.
|
|
12
|
-
- Source role names are logical assignments: code-search/explore maps to dsmm-code-search, and other canonical roles/categories map to dsmm-<name>.
|
|
13
|
-
- Templates describe assignment content, not
|
|
14
|
-
-
|
|
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
|
+
- 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
|
+
- 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
|
+
- 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
|
+
- 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.
|
|
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.
|
|
15
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.
|
|
16
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.
|
|
17
20
|
|
|
@@ -24,15 +27,15 @@ This is a full OCMM source adaptation for DSH 0.2.0-rc.2, not an OpenCode or Cod
|
|
|
24
27
|
|
|
25
28
|
## What this skill does
|
|
26
29
|
|
|
27
|
-
Cleans AI-generated slop from a bounded set of changed files while
|
|
30
|
+
Cleans AI-generated slop from a bounded set of changed files while preserving final valid requirements and committed contracts. Establishes relevant regression coverage first, then runs a categorized multi-pass cleanup and verifies with applicable quality gates and self-review. Correct only task-owned edits when verification fails.
|
|
28
31
|
|
|
29
|
-
The
|
|
32
|
+
The safety invariant: **relevant functional and external-interface requirements have passing regression evidence before cleanup**. Don't lock uncommitted intermediate behavior or descriptive text merely because it exists. Git commits are the compatibility boundary; existing committed contracts still bind files with uncommitted edits. Public API/protocol, security, data, permission, and irreversible-operation changes require their applicable authorization.
|
|
30
33
|
|
|
31
34
|
## 10 Slop Categories
|
|
32
35
|
|
|
33
36
|
### Stylistic
|
|
34
37
|
|
|
35
|
-
1. **Obvious comments
|
|
38
|
+
1. **Obvious comments**: Comments that restate what the code does, useless TODOs, commented-out code. KEEP: current design reasons and meaningful BDD markers, not development or decision history.
|
|
36
39
|
2. **Over-defensive code** — Null checks on guaranteed values, try/catch around code that cannot throw, instanceof/type guards on statically-typed params, multi-layer redundant validation, broad catch-all (catch Exception / empty catch). REFACTOR: narrow exceptions, add type narrowing.
|
|
37
40
|
3. **Excessive complexity** — Deep nesting (>3 levels), nested ternaries, complex boolean (4+ predicates), long parameter lists (>5), god functions (>50 lines), if/elif variant chains (should be exhaustive pattern matching), `any`/`object` type annotations (should be interfaces/generics/unions).
|
|
38
41
|
|
|
@@ -49,7 +52,7 @@ The core safety invariant: **behavior is locked by green tests before a single l
|
|
|
49
52
|
|
|
50
53
|
### Behavior coverage
|
|
51
54
|
|
|
52
|
-
9. **Missing tests
|
|
55
|
+
9. **Missing tests**: Valid functional or external-interface requirements lack regression coverage. Add the narrowest meaningful test, not a lock for every changed file or intermediate behavior.
|
|
53
56
|
|
|
54
57
|
### Structural
|
|
55
58
|
|
|
@@ -57,9 +60,9 @@ The core safety invariant: **behavior is locked by green tests before a single l
|
|
|
57
60
|
|
|
58
61
|
## 6-Phase Flow
|
|
59
62
|
|
|
60
|
-
### Phase 0:
|
|
63
|
+
### Phase 0: Size the work
|
|
61
64
|
|
|
62
|
-
|
|
65
|
+
Use session-level coordination only when it helps. An exposed native todo_write tool can track the owning Agent's complete content/status list under its actual parallel policy; otherwise use a concise response. No TodoWrite, workspace ledger or automatic plan file is assumed. Non-product routine docs or maintenance cleanup does not require planner/critic/review dispatch or a plan/report/evidence file; resolve it directly or ask/delegate a bounded task when needed. Complex product behavior implementation retains its applicable planning policy, and explicit process requirements or concrete major safety risks retain necessary verification.
|
|
63
66
|
|
|
64
67
|
### Phase 1: Determine scope
|
|
65
68
|
|
|
@@ -69,37 +72,39 @@ git diff $(git merge-base main HEAD)..HEAD --name-only
|
|
|
69
72
|
|
|
70
73
|
Filter out: deleted files, binary files, generated files.
|
|
71
74
|
|
|
72
|
-
### Phase 2:
|
|
75
|
+
### Phase 2: Establish valid regression coverage (NON-NEGOTIABLE)
|
|
73
76
|
|
|
74
|
-
For each in-scope file:
|
|
75
|
-
1. Identify
|
|
77
|
+
For each in-scope behavior-bearing file:
|
|
78
|
+
1. Identify final valid functional requirements and committed public/observable contracts.
|
|
76
79
|
2. Check if existing tests cover it.
|
|
77
|
-
3. If
|
|
80
|
+
3. If a meaningful regression seam lacks coverage, write the narrowest test for that requirement.
|
|
78
81
|
4. Tests must be GREEN before cleanup starts.
|
|
79
82
|
|
|
80
|
-
If you
|
|
83
|
+
If you can't establish passing evidence for a required functional contract, stop cleanup of that behavior. Documentation-only edits use semantic review and applicable loading/delivery checks, not invented text-lock tests.
|
|
84
|
+
|
|
85
|
+
Don't add string, regex, snapshot, or parsed-content locks for documentation, commit messages, package information, or error/log wording without functional or system-boundary significance. Don't test decision counterexamples or removed components' absence. Update corresponding tests when requirements change; delete tests dedicated to removed modules, helpers, tools, or subsystems. Valid negative safety, protocol, and input-handling tests remain appropriate. Documentation and comments state the concise final design, not the cleanup history.
|
|
81
86
|
|
|
82
87
|
### Phase 3: Cleanup plan
|
|
83
88
|
|
|
84
|
-
|
|
89
|
+
Keep the categories, cleanup order, and material risks needed for current execution in session, not a per-file workspace ledger.
|
|
85
90
|
|
|
86
91
|
Safety order (safe → dangerous):
|
|
87
92
|
comments → dead code → defensive → duplication → complexity → abstraction/boundary → performance → tests → oversized-modules
|
|
88
93
|
|
|
89
94
|
### Phase 4: Bounded slop removal
|
|
90
95
|
|
|
91
|
-
Use direct edits
|
|
96
|
+
Use direct edits for resolvable non-product docs or maintenance cleanup. Delegate independent product cleanup only when an actually callable permitted native role owns a useful bounded deliverable; respect file ownership, inherited authority and depth. Choose concurrency from actual dependencies and capacity, not a batch quota. Pass run_in_background only when the admitted schema exposes it and useful independent parent work remains; otherwise keep result-gated cleanup foreground. Integrate results before dependent work.
|
|
92
97
|
|
|
93
98
|
Each file gets a detailed prompt containing:
|
|
94
99
|
- The category checklist for that file
|
|
95
100
|
- The cleanup order
|
|
96
|
-
- Hard constraints:
|
|
101
|
+
- Hard constraints: final valid requirements and committed contracts must be preserved; no unauthorized public API changes, no deleting type annotations, no introducing new abstractions, minimal diff. Don't preserve uncommitted transition behavior or add descriptive-text, decision-counterexample, or removed-component absence tests.
|
|
97
102
|
|
|
98
103
|
An acknowledgment, partial output or wait timeout is not completion evidence. Inspect the actual result, failed checks and unresolved blockers; do not require status tokens or invented polling APIs.
|
|
99
104
|
|
|
100
|
-
### Phase 5:
|
|
105
|
+
### Phase 5: Applicable quality gates + self-review
|
|
101
106
|
|
|
102
|
-
|
|
107
|
+
Select the meaningful available gates for the changed surface and concrete risk; reuse sufficient unchanged evidence rather than repeating all gates after each correction. Report necessary unavailable tooling/evidence instead of installing it implicitly or claiming a pass:
|
|
103
108
|
1. Regression tests still green
|
|
104
109
|
2. Lint clean
|
|
105
110
|
3. Typecheck clean
|
|
@@ -107,8 +112,8 @@ Applicable quality gates (reuse unchanged passing evidence; do not duplicate equ
|
|
|
107
112
|
5. Static security scan clean (if applicable)
|
|
108
113
|
|
|
109
114
|
3 review checklists:
|
|
110
|
-
- **Safety**: No
|
|
111
|
-
- **Behavior**:
|
|
115
|
+
- **Safety**: No unauthorized contract change, no security regression, no data loss risk.
|
|
116
|
+
- **Behavior**: Final valid functional and external-interface requirements are covered; committed contracts remain intact.
|
|
112
117
|
- **Quality**: No new slop introduced, diff is minimal, naming is consistent.
|
|
113
118
|
|
|
114
119
|
### Phase 6: Fix issues
|
|
@@ -116,26 +121,25 @@ Applicable quality gates (reuse unchanged passing evidence; do not duplicate equ
|
|
|
116
121
|
If a gate fails:
|
|
117
122
|
1. Identify the change that caused the failure.
|
|
118
123
|
2. Explain why.
|
|
119
|
-
3.
|
|
124
|
+
3. Inspect the current diff and use an exposed authorized edit tool to correct only this task's problematic hunk; never discard existing user edits or perform unauthorized Git writes. A destructive Git restore requires separate exact authorization.
|
|
120
125
|
4. Direct-edit to re-apply only the provably-safe changes.
|
|
121
|
-
5. Re-run gates
|
|
126
|
+
5. Re-run affected gates and reassess the relevant safety/behavior/quality concern, not every unchanged check.
|
|
122
127
|
|
|
123
128
|
Stop and escalate when evidence exposes a material blocker, unsafe equivalence, or an authorization decision; do not impose an arbitrary attempt quota.
|
|
124
129
|
|
|
125
130
|
## Output Format
|
|
126
131
|
|
|
132
|
+
Return this report in conversation; don't create a workspace report or evidence file unless explicitly requested as a deliverable.
|
|
133
|
+
|
|
127
134
|
```
|
|
128
135
|
## Scope
|
|
129
136
|
<files in scope>
|
|
130
137
|
|
|
131
|
-
##
|
|
132
|
-
<
|
|
138
|
+
## Delivered Result
|
|
139
|
+
<current implementation and changed files>
|
|
133
140
|
|
|
134
|
-
##
|
|
135
|
-
<
|
|
136
|
-
|
|
137
|
-
## Per-File Results
|
|
138
|
-
<file: what was removed/changed>
|
|
141
|
+
## Regression Coverage
|
|
142
|
+
<valid requirements covered, green baseline status>
|
|
139
143
|
|
|
140
144
|
## Quality Gates
|
|
141
145
|
<gates: PASS/FAIL/N/A + evidence>
|
|
@@ -143,9 +147,6 @@ Stop and escalate when evidence exposes a material blocker, unsafe equivalence,
|
|
|
143
147
|
## Critical Review
|
|
144
148
|
<Safety/Behavior/Quality findings>
|
|
145
149
|
|
|
146
|
-
## Issues Found & Fixed
|
|
147
|
-
<problems + fixes>
|
|
148
|
-
|
|
149
150
|
## Remaining Risks
|
|
150
151
|
<slop noticed but out of scope, concerns>
|
|
151
152
|
|
|
@@ -155,11 +156,11 @@ CLEAN | ISSUES FIXED | REQUIRES ATTENTION
|
|
|
155
156
|
|
|
156
157
|
## Core Principles
|
|
157
158
|
|
|
158
|
-
- **
|
|
159
|
+
- **Valid regression coverage first**: Protect final functional requirements and external contracts, not intermediate implementations. Phase 2 is non-negotiable.
|
|
159
160
|
- **Don't bundle unrelated refactors**: A single cleanup commit containing dead code + abstraction + performance is unreviewable and unbisectable. Stay in slop scope.
|
|
160
161
|
- **Algorithm changes are NOT slop fixes**: If equivalence requires proof, it's a refactor, not a slop fix. It belongs in a separate change.
|
|
161
162
|
- **Don't silently skip**: If a gate is N/A, say N/A and why. If it fails, say it fails.
|
|
162
|
-
- **
|
|
163
|
+
- **Keep current design reasons**: Remove restating comments and development/decision histories; retain explanations needed to maintain the final design.
|
|
163
164
|
- **Don't touch out-of-scope files**: If you notice slop elsewhere, report it in Remaining Risks only.
|
|
164
165
|
- **When in doubt, SKIP**: Don't guess. Skip and report.
|
|
165
|
-
- **Useful concurrency only**:
|
|
166
|
+
- **Useful concurrency only**: Choose concurrency from actual independence, ownership and native capacity; don't fill a batch or delegate resolvable non-product cleanup. Passing evidence protects final valid requirements and committed contracts, not uncommitted transition behavior or descriptive text.
|
|
@@ -8,24 +8,24 @@ description: Use when an implemented change benefits from independent review bef
|
|
|
8
8
|
This is a full OCMM source adaptation for DSH 0.2.0-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.
|
|
9
9
|
|
|
10
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.
|
|
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.
|
|
12
|
-
- Source role names are logical assignments: code-search/explore maps to dsmm-code-search, and other canonical roles/categories map to dsmm-<name>.
|
|
13
|
-
- Templates describe assignment content, not
|
|
14
|
-
-
|
|
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
|
+
- 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
|
+
- 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
|
+
- 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
|
+
- 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.
|
|
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.
|
|
15
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.
|
|
16
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.
|
|
17
20
|
|
|
18
|
-
<!--
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
without fixed packet fields, receipts, or verdict formats.
|
|
23
|
-
Reviewer-seat discipline remains: reviewers do not spawn additional review
|
|
24
|
-
seats. See docs/v1-maintenance.md for sync rules. -->
|
|
21
|
+
<!-- Local fork of obra/superpowers/requesting-code-review v6.3.0.
|
|
22
|
+
Risk/evidence-driven implementation review of current changes and contracts.
|
|
23
|
+
Reviewers don't spawn additional review seats.
|
|
24
|
+
Source and maintenance contract: docs/v1-maintenance.md. -->
|
|
25
25
|
|
|
26
26
|
# Requesting Code Review
|
|
27
27
|
|
|
28
|
-
Request independent code review when it provides useful evidence about an implemented change. Give the reviewer the work product and
|
|
28
|
+
Request independent code review when it provides useful evidence about an implemented change. Give the reviewer the current work product, requirements, constraints, and evidence, not a decision history or session transcript.
|
|
29
29
|
|
|
30
30
|
**Core principle:** Review current implemented code against the approved outcome. Reviewer and Oracle profiles are not research, ideation, architecture-design, root-cause debugging, plan review, or implementation workers.
|
|
31
31
|
|
|
@@ -49,23 +49,23 @@ Provide the reviewer, in whatever order is clearest:
|
|
|
49
49
|
- acceptance criteria;
|
|
50
50
|
- the current working-tree diff or committed range, including newly created files;
|
|
51
51
|
- relevant verification evidence and any intentionally unverified item;
|
|
52
|
-
- global constraints
|
|
52
|
+
- current global constraints and permissions;
|
|
53
53
|
- focused dependency/interface or risk context needed to evaluate the change.
|
|
54
54
|
|
|
55
55
|
Use the actual current diff or range rather than a prose-only summary. If output is large or sensitive, provide a safe reviewable artifact or focused slices plus a complete file manifest, without omitting changes material to the criteria.
|
|
56
56
|
|
|
57
57
|
Do not require a fixed packet schema, first-line verdict, receipt, or transcript. Do not paste accumulated conversation history. Do not tell the reviewer what conclusion to reach or add open-ended directions unrelated to the change.
|
|
58
58
|
|
|
59
|
-
The reviewer evaluates supplied evidence and
|
|
59
|
+
The reviewer evaluates supplied evidence by material relevance and requests missing or affected coverage, not blanket reruns for unrelated code, dependency, or environment changes. The orchestrator coordinates consolidated global/heavy checks; reviewers do not duplicate them or dispatch other reviewers, workers, or evidence-gathering subagents. Required safety, release, pre-commit, and user checks remain binding.
|
|
60
60
|
|
|
61
61
|
## Reviewer Selection
|
|
62
62
|
|
|
63
63
|
Select only the lanes that add useful independent evidence. Available profiles do not cause automatic fan-out.
|
|
64
64
|
|
|
65
65
|
- `reviewer` is the primary-model or primary-lane self-review profile.
|
|
66
|
-
- Oracle
|
|
66
|
+
- Oracle roles are cross-check choices in order: dsmm-oracle, then dsmm-oracle-2nd only when enabled, permitted and useful. Verify different actual native routes before claiming external-model independence; this inventory supplies no later slots.
|
|
67
67
|
- Later Oracle slots indicate selection order, not greater capability.
|
|
68
|
-
-
|
|
68
|
+
- Keep one canonical native role identity. Omitted/normal preserves its default route; low/high/max can be selected only when listed in the actual target's configured roleRouting levels and exposed schema. Levels are complete routes or exact supported effort-only choices, never suffix tools or guaranteed model effort. Arbitrary route overrides need deployment opt-in, exposed parameters and exact preflight. All levels retain review rigor and authority ceilings.
|
|
69
69
|
- Explicit user model configuration and effective routing policy remain authoritative.
|
|
70
70
|
|
|
71
71
|
Typical choices:
|
|
@@ -76,6 +76,8 @@ Typical choices:
|
|
|
76
76
|
|
|
77
77
|
Review roles inspect implementation; they do not approve plans or decide unapproved product scope.
|
|
78
78
|
|
|
79
|
+
Review against final valid requirements and committed contracts, not uncommitted intermediate behavior. Documents, code/comments, tests, and commit messages state only the concise final design and behavior. Tests must protect functionality and external interfaces, not lock descriptive documentation, commit messages, package information, or non-contractual error/log wording through strings, regex, snapshots, or parsed content. Don't require decision-counterexample or removed-component absence tests. Changed requirements update tests; removed components lose their dedicated tests. API, security, data, permission, and irreversible-operation authorization still applies.
|
|
80
|
+
|
|
79
81
|
## Interpret the Result
|
|
80
82
|
|
|
81
83
|
Read the reviewer's analysis, cited code, and evidence. A status label, acknowledgement, dispatch success, or unsupported approval/rejection is informational rather than proof.
|
|
@@ -100,4 +102,4 @@ Review does not require a commit. A working-tree diff plus new files is valid re
|
|
|
100
102
|
|
|
101
103
|
Git writes require authorization for the specific operation. A clear user request can authorize that exact operation without re-asking, but implement/fix does not mean commit, and commit does not mean push, tag, rebase, or release. Authorization never expands to a different operation or repository.
|
|
102
104
|
|
|
103
|
-
See template at:
|
|
105
|
+
See template at: `./code-reviewer.md`
|
|
@@ -19,7 +19,7 @@ Assignment content (not a tool-call schema; send through a permitted callable na
|
|
|
19
19
|
- acceptance criteria;
|
|
20
20
|
- current working-tree diff or committed range, including new files;
|
|
21
21
|
- relevant verification evidence and intentionally unverified items;
|
|
22
|
-
- global constraints
|
|
22
|
+
- current global constraints and permissions;
|
|
23
23
|
- focused dependency, interface, or risk context when needed.
|
|
24
24
|
|
|
25
25
|
Inspect the actual change rather than relying on an implementer summary or
|
|
@@ -28,11 +28,23 @@ Assignment content (not a tool-call schema; send through a permitted callable na
|
|
|
28
28
|
security, performance, data, compatibility, protocol/API, migration, release,
|
|
29
29
|
or irreversible-operation risks.
|
|
30
30
|
|
|
31
|
+
Assess existing evidence by material relevance. Request missing or affected
|
|
32
|
+
coverage; don't duplicate global/heavy checks coordinated by the controller.
|
|
33
|
+
Unrelated code, dependency, or environment changes aren't automatic invalidation.
|
|
34
|
+
Keep required safety, release, pre-commit, and explicit user checks intact.
|
|
35
|
+
|
|
31
36
|
Allow minimal evidence-based equivalent implementations when they preserve the
|
|
32
37
|
approved goal, constraints, permissions, and acceptance criteria. Flag a
|
|
33
38
|
proposed change to approved scope or behavior as a decision for the controller,
|
|
34
39
|
not an automatic fix.
|
|
35
40
|
|
|
41
|
+
Review final valid requirements and committed contracts, not uncommitted
|
|
42
|
+
intermediate behavior or decision history. Reject descriptive-text locks,
|
|
43
|
+
decision-counterexample tests, and tests asserting removed components are
|
|
44
|
+
absent. Requirements changes update corresponding tests; removed components
|
|
45
|
+
lose their dedicated tests. Keep valid safety, protocol, and input-handling
|
|
46
|
+
negatives and the applicable API/security/data/permission authorization.
|
|
47
|
+
|
|
36
48
|
Report concrete findings with severity, file/line location when available,
|
|
37
49
|
impact, supporting evidence, and a practical correction when useful. Separate
|
|
38
50
|
product defects from missing evidence. Mention specific strengths only when
|
|
@@ -8,21 +8,20 @@ description: Use when executing implementation plans with independent tasks in t
|
|
|
8
8
|
This is a full OCMM source adaptation for DSH 0.2.0-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.
|
|
9
9
|
|
|
10
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.
|
|
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.
|
|
12
|
-
- Source role names are logical assignments: code-search/explore maps to dsmm-code-search, and other canonical roles/categories map to dsmm-<name>.
|
|
13
|
-
- Templates describe assignment content, not
|
|
14
|
-
-
|
|
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
|
+
- 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
|
+
- 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
|
+
- 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
|
+
- 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.
|
|
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.
|
|
15
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.
|
|
16
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.
|
|
17
20
|
|
|
18
|
-
<!--
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
mandatory per-task or final gates. Workers may make bounded evidence-based
|
|
23
|
-
equivalent changes while preserving approved outcomes. Existing background
|
|
24
|
-
waiting and no-ledger/no-automatic-cleanup boundaries remain. See
|
|
25
|
-
docs/v1-maintenance.md for sync rules. -->
|
|
21
|
+
<!-- Local fork of obra/superpowers/subagent-driven-development v6.3.0.
|
|
22
|
+
Optional delegation after applicable planning; current outcomes and evidence.
|
|
23
|
+
Worker permissions, ownership, and host continuation remain bounded.
|
|
24
|
+
Source and maintenance contract: docs/v1-maintenance.md. -->
|
|
26
25
|
|
|
27
26
|
# Subagent-Driven Development
|
|
28
27
|
|
|
@@ -32,11 +31,11 @@ Use focused workers when delegation materially improves implementation of an app
|
|
|
32
31
|
|
|
33
32
|
Delegation is optional. Direct execution is valid when a task is small, tightly coupled to controller context, or cheaper to complete than to brief and reconcile. When delegation helps, give each worker self-contained context rather than session history.
|
|
34
33
|
|
|
35
|
-
This skill begins at implementation. For complex business or behavior
|
|
34
|
+
This skill begins at implementation. For complex implementation of product business logic or behavior, the orchestrator must first complete the `planner` → `plan-critic` sequence and resolve every substantive plan blocker. An exception applies only to a limited, simple, low-risk, clearly bounded change or an explicit user request. Non-product routine operations, docs, maintenance, and release preparation do not inherit that sequence: execute directly when resolvable, otherwise ask or delegate a bounded `complex`/specialist task. Explicit process requirements and concrete major safety verification still apply. Direct execution does not bypass required product planning.
|
|
36
35
|
|
|
37
36
|
**Continuous execution:** Do not pause between ordinary tasks merely to ask whether to continue. Stop for a decision that changes scope or acceptance, weakens security or data guarantees, changes a public API/protocol, expands permissions, requires an irreversible/destructive operation, triggers an external side effect requiring authorization, or leaves only pure guesses. Otherwise make a bounded ruling and continue.
|
|
38
37
|
|
|
39
|
-
**
|
|
38
|
+
**Bounded execution:** Resolve non-material plan defects or ambiguities from approved requirements and repository evidence. Carry only current constraints, necessary assumptions, unresolved risks, and evidence into coordination and reports. Don't create a ruling ledger or preserve decision history.
|
|
40
39
|
|
|
41
40
|
**Narration discipline:** Between tool calls, keep narration brief. Use prose for decisions, blockers, and questions rather than duplicating tool output.
|
|
42
41
|
|
|
@@ -51,26 +50,26 @@ For two or more independent tasks with no shared state or overlapping files, con
|
|
|
51
50
|
## Outcome-Oriented Process
|
|
52
51
|
|
|
53
52
|
1. Understand the goal, ideal end state, acceptance criteria, dependencies/interfaces, relevant evidence, and global constraints.
|
|
54
|
-
2. Scan planned file/interface overlaps and material risks.
|
|
53
|
+
2. Scan planned file/interface overlaps, current constraints, and material risks.
|
|
55
54
|
3. Choose direct execution or a useful worker boundary for each task or wave.
|
|
56
|
-
4. After work returns, inspect the actual changes and evidence
|
|
55
|
+
4. After work returns, inspect the actual changes and evidence and resolve integration issues. Keep short-lived coordination in session; synchronize useful results at delivery or major phase boundaries, not every checklist update.
|
|
57
56
|
5. Request focused or whole-change review only when risk, uncertainty, change shape, or user instruction makes independent review useful.
|
|
58
|
-
6.
|
|
57
|
+
6. Coordinate integrated/global verification, consolidating necessary heavy checks at task completion or important phase boundaries; report any unverified item.
|
|
59
58
|
|
|
60
|
-
The plan is guidance, not an immutable script. A worker may use a minimal evidence-based equivalent when repository reality makes a planned detail unnecessary or inferior, provided the approved goal, constraints, permissions, and acceptance criteria remain unchanged.
|
|
59
|
+
The plan is guidance, not an immutable script. A worker may use a minimal evidence-based equivalent when repository reality makes a planned detail unnecessary or inferior, provided the approved goal, constraints, permissions, and acceptance criteria remain unchanged. Describe the resulting current implementation and any unresolved risk, not a deviation history. Decisions in the stop classes above return to the controller or user.
|
|
61
60
|
|
|
62
61
|
## Worker Briefs
|
|
63
62
|
|
|
64
|
-
|
|
63
|
+
Explain only what the worker needs to act safely toward the outcome; these are useful prompts, not required fields or an exhaustive inventory:
|
|
65
64
|
|
|
66
65
|
- the task/wave goal and ideal end state;
|
|
67
66
|
- acceptance criteria and useful evidence;
|
|
68
67
|
- relevant current state, dependencies, and interfaces;
|
|
69
|
-
-
|
|
68
|
+
- material scope and ownership boundaries;
|
|
70
69
|
- global constraints and permissions;
|
|
71
|
-
-
|
|
70
|
+
- current constraints, authorization boundaries, or known risks.
|
|
72
71
|
|
|
73
|
-
Do not make a worker read an entire plan when a
|
|
72
|
+
Workers may discover corresponding resources within the authorized scope; the brief need not name every file, revision, hash, or receipt. Discovery does not expand permissions or bypass ownership, irreversible-operation, or protocol-identity boundaries. Do not make a worker read an entire plan when a clear bounded brief is sufficient. Do not prescribe fixed report fields, a first-line status, test transcript, scenario count, commit, or reviewer approval. Ask for the resulting implementation, changed files, local verification evidence/results, and material risks or unverified coverage needed for integration.
|
|
74
73
|
|
|
75
74
|
### Recommended Executor Decision
|
|
76
75
|
|
|
@@ -90,7 +89,7 @@ A clear user request can authorize the exact Git operation without a redundant c
|
|
|
90
89
|
|
|
91
90
|
## Local Workflow Boundaries
|
|
92
91
|
|
|
93
|
-
No automatic workspace or ledger scripts, automatic cleanup, routine full review after each task or wave, or default worker Git write is permitted.
|
|
92
|
+
No automatic workspace or ledger scripts, automatic cleanup, routine full review after each task or wave, or default worker Git write is permitted. Return worker reports in conversation, not workspace plan/report/evidence files unless explicitly requested as deliverables. Use session-level coordination for short-lived state without repeated stability/hash checks or completion writes before deleting disposable checklists; safe ownership cleanup and authorization remain binding. Product specs/plans describe only final product deliverables; other tasks never write to the superpowers directories.
|
|
94
93
|
|
|
95
94
|
## Plan and Integration Scan
|
|
96
95
|
|
|
@@ -101,11 +100,11 @@ Before work that spans tasks or waves:
|
|
|
101
100
|
- Confirm planned evidence relates to observable acceptance criteria.
|
|
102
101
|
- Keep security, data-loss, protocol/API, compatibility, and irreversible-operation safeguards intact.
|
|
103
102
|
|
|
104
|
-
|
|
103
|
+
Resolve non-material conflicts from evidence and proceed with the resulting current constraints. Escalate when resolving a conflict would change scope, acceptance, safety, data guarantees, public interfaces/protocols, permissions, irreversible effects, or would be a pure guess.
|
|
105
104
|
|
|
106
105
|
## Batch Small Same-Shape Work
|
|
107
106
|
|
|
108
|
-
Several independent, low-judgment edits of the same kind may share one brief.
|
|
107
|
+
Several independent, low-judgment edits of the same kind may share one brief. State the shared outcome and material scope/ownership boundaries; workers can discover corresponding resources inside them without an exhaustive file list or per-item identity lock. Inspect actual changes against that scope. Keep separate work where judgment, dependencies, tests, or integration risk differ.
|
|
109
108
|
|
|
110
109
|
## Corrections and Changed Inputs
|
|
111
110
|
|
|
@@ -138,8 +137,12 @@ Do not poll aggressively, sleep, or repeatedly ask for status. While you have lo
|
|
|
138
137
|
|
|
139
138
|
Choose evidence that can demonstrate the requested behavior or invariant. Depending on the change, this can include focused deterministic tests, existing regression tests, typechecks, builds, runtime probes, inspection of generated output, or protocol/security checks.
|
|
140
139
|
|
|
140
|
+
Workers run lightweight local checks for their substantive changes; the controller owns integration and consolidated global/heavy verification, not a full-suite run per small task. Apply brainstorming's material-relevance reuse rule: unrelated code, dependency, or environment changes don't invalidate passing evidence; changes affecting tested behavior or interfaces require only affected checks and explicit coverage gaps. Required safety, release, pre-commit, and user-mandated checks remain binding.
|
|
141
|
+
|
|
141
142
|
Do not impose a universal RED gate, test transcript, scenario count, or full-suite run for every task. Add or run tests where a plausible deterministic regression seam warrants them. Never weaken real safeguards or substitute an acknowledgement for evidence.
|
|
142
143
|
|
|
144
|
+
Tests protect final valid requirements, functionality, and external interfaces. Don't lock descriptive documentation, commit messages, package information, or non-contractual error/log wording through string, regex, snapshot, or parsed-content assertions. Don't test decision counterexamples or the absence of removed components. Update tests with requirements and delete tests dedicated to removed components. Uncommitted intermediate behavior needn't be preserved; committed contracts and authorization boundaries still apply.
|
|
145
|
+
|
|
143
146
|
## Completion and Integration Check
|
|
144
147
|
|
|
145
148
|
For each worker result or direct-execution wave:
|
|
@@ -148,7 +151,7 @@ For each worker result or direct-execution wave:
|
|
|
148
151
|
- compare the result to the goal and acceptance criteria;
|
|
149
152
|
- evaluate the reported evidence and run additional targeted checks when needed;
|
|
150
153
|
- check shared interfaces and assumptions against other work;
|
|
151
|
-
-
|
|
154
|
+
- report current constraints, unresolved risks, and intentionally unverified items.
|
|
152
155
|
|
|
153
156
|
This is outcome verification, not a mandatory full reviewer pass after each task or wave.
|
|
154
157
|
|
|
@@ -10,14 +10,15 @@ Assignment content (not a tool-call schema; send through a permitted callable na
|
|
|
10
10
|
prompt: |
|
|
11
11
|
Implement the supplied task or wave toward its approved ideal end state.
|
|
12
12
|
|
|
13
|
-
Provide
|
|
13
|
+
Provide only the context needed for safe execution; these are prompts, not
|
|
14
|
+
required fields or an exhaustive resource list:
|
|
14
15
|
- goal and acceptance criteria;
|
|
15
16
|
- relevant current state and context;
|
|
16
17
|
- dependencies and interfaces;
|
|
17
|
-
-
|
|
18
|
-
- useful verification evidence;
|
|
18
|
+
- material scope and ownership boundaries;
|
|
19
|
+
- useful lightweight local verification evidence;
|
|
19
20
|
- global constraints and permissions;
|
|
20
|
-
-
|
|
21
|
+
- current constraints, authorization boundaries, or known risks.
|
|
21
22
|
|
|
22
23
|
Work from: [directory]
|
|
23
24
|
|
|
@@ -28,8 +29,13 @@ Assignment content (not a tool-call schema; send through a permitted callable na
|
|
|
28
29
|
detail when repository evidence supports it, but do not change the approved
|
|
29
30
|
goal, constraints, permissions, or acceptance criteria.
|
|
30
31
|
|
|
31
|
-
|
|
32
|
-
|
|
32
|
+
Discover relevant files, tests, docs, and resources within that authorized scope.
|
|
33
|
+
No exhaustive file list or per-item revision/hash/receipt lock is required.
|
|
34
|
+
Resource discovery does not expand permissions; honor material ownership,
|
|
35
|
+
irreversible-operation, and required protocol/integrity identity boundaries.
|
|
36
|
+
|
|
37
|
+
Report the resulting implementation, current constraints, unresolved risks,
|
|
38
|
+
and evidence, not a ruling or development history. Escalate when a decision
|
|
33
39
|
changes scope or acceptance, weakens security or data guarantees, changes a
|
|
34
40
|
public API/protocol, expands permissions, requires an irreversible action, or
|
|
35
41
|
would otherwise be a pure guess.
|
|
@@ -53,17 +59,29 @@ Assignment content (not a tool-call schema; send through a permitted callable na
|
|
|
53
59
|
Follow established local patterns and keep changes within scope. Preserve real
|
|
54
60
|
security, data-loss, protocol/API, compatibility, and irreversible-operation
|
|
55
61
|
safeguards. Add or run deterministic tests where a plausible regression seam
|
|
56
|
-
warrants them;
|
|
57
|
-
|
|
62
|
+
warrants them; run lightweight local checks relevant to your substantive changes.
|
|
63
|
+
The controller owns integration and consolidated global/heavy checks; do not run
|
|
64
|
+
a full suite per small task. Reuse still-applicable evidence under brainstorming's
|
|
65
|
+
material-relevance rule and rerun only affected or missing checks. Required safety,
|
|
66
|
+
release, pre-commit, and explicit user checks remain binding.
|
|
58
67
|
|
|
59
68
|
There is no universal RED gate, transcript, scenario count, per-task reviewer,
|
|
60
69
|
or commit requirement. Verification must demonstrate the relevant behavior or
|
|
61
70
|
invariant rather than merely report that a command ran.
|
|
62
71
|
|
|
72
|
+
Documents, code/comments, tests, and commit messages describe only concise final
|
|
73
|
+
requirements, design, and behavior. Update intermediate text directly. Tests
|
|
74
|
+
protect valid requirements and functional/external contracts, not descriptive
|
|
75
|
+
text, decision counterexamples, or the absence of removed components. Update
|
|
76
|
+
tests with requirements and delete tests dedicated to removed components.
|
|
77
|
+
Uncommitted intermediate behavior may change incompatibly for final requirements;
|
|
78
|
+
existing committed contracts and API/security/data/permission authorization remain.
|
|
79
|
+
|
|
63
80
|
## Return
|
|
64
81
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
82
|
+
Return the implemented outcome, changed and new files, local evidence/results,
|
|
83
|
+
current constraints, material risks and unverified coverage in conversation, not workspace
|
|
84
|
+
plan/report/evidence files unless explicitly requested as deliverables.
|
|
85
|
+
Status labels such as DONE, DONE_WITH_CONCERNS, BLOCKED, or NEEDS_CONTEXT are optional and
|
|
68
86
|
informational; an acknowledgement or label alone is not evidence.
|
|
69
87
|
```
|
|
@@ -15,7 +15,7 @@ Assignment content (not a tool-call schema; send through a permitted callable na
|
|
|
15
15
|
|
|
16
16
|
Supply the goal, acceptance criteria, current diff or committed range including
|
|
17
17
|
new files, relevant verification evidence, and global constraints. Add only the
|
|
18
|
-
context needed to understand dependencies, interfaces, and
|
|
18
|
+
context needed to understand dependencies, interfaces, and current constraints.
|
|
19
19
|
No fixed field order is required.
|
|
20
20
|
|
|
21
21
|
Compare the actual code and new files to the criteria. Identify missing behavior,
|
|
@@ -24,6 +24,11 @@ Assignment content (not a tool-call schema; send through a permitted callable na
|
|
|
24
24
|
implementations that preserve the approved goal, constraints, permissions, and
|
|
25
25
|
acceptance criteria.
|
|
26
26
|
|
|
27
|
+
Evaluate final valid requirements and committed contracts, not intermediate
|
|
28
|
+
behavior or decision history. Tests cover functionality and external interfaces,
|
|
29
|
+
not descriptive-text locks, decision counterexamples, or removed-component
|
|
30
|
+
absence. Update tests with requirements and delete removed components' tests.
|
|
31
|
+
|
|
27
32
|
Report concrete findings and supporting evidence. Do not rely on an implementer
|
|
28
33
|
status or acknowledgement, and do not require a fixed first-line verdict or
|
|
29
34
|
receipt. If the supplied material is insufficient, identify the missing evidence.
|