@dsmm/dsmm 0.3.19 → 0.3.21
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 +4 -4
- package/agent-presets/dsmm-clarifier/agent.cordis.yml +2 -2
- package/agent-presets/dsmm-oracle/agent.cordis.yml +2 -2
- package/agent-presets/dsmm-oracle-2nd/agent.cordis.yml +2 -2
- package/agent-presets/dsmm-orchestrator/agent.cordis.yml +3 -3
- package/agent-presets/dsmm-plan-critic/agent.cordis.yml +2 -2
- package/agent-presets/dsmm-planner/agent.cordis.yml +2 -2
- package/agent-presets/dsmm-reviewer/agent.cordis.yml +2 -2
- package/docs/maintenance.md +26 -0
- package/docs/native-permissions.md +11 -1
- package/docs/safety-guards.md +6 -0
- package/lib/core-permissions.d.ts +2 -2
- package/lib/core-permissions.js +2 -2
- package/lib/guards.d.ts +3 -0
- package/lib/guards.js +8 -0
- package/lib/index.js +2 -2
- package/lib/permission-controller.d.ts +4 -1
- package/lib/permission-controller.js +78 -12
- package/lib/permission-linear-script.d.ts +10 -0
- package/lib/permission-linear-script.js +91 -0
- package/lib/permission-native-command.d.ts +1 -0
- package/lib/permission-native-command.js +5 -0
- package/lib/permission-native-rules.d.ts +13 -1
- package/lib/permission-native-rules.js +109 -96
- package/package.json +1 -1
- package/prompts/deepwork.md +4 -4
- package/prompts/source/agents/clarifier.md +2 -2
- package/prompts/source/agents/orchestrator.md +3 -3
- package/prompts/source/agents/plan-critic.md +2 -2
- package/prompts/source/agents/planner.md +2 -2
- package/prompts/source/agents/reviewer.md +2 -2
- package/prompts/source/deepwork/default.md +4 -4
- package/prompts/source/deepwork/planner.md +3 -3
- package/skills/brainstorming/LICENSE +21 -0
- package/skills/brainstorming/SKILL.md +8 -21
- package/skills/brainstorming/references/artifacts-and-evidence.md +21 -0
- package/skills/requesting-code-review/LICENSE +21 -0
- package/skills/requesting-code-review/SKILL.md +5 -2
- package/skills/requesting-code-review/code-reviewer.md +9 -1
- package/skills/subagent-driven-development/LICENSE +21 -0
- package/skills/subagent-driven-development/SKILL.md +7 -63
- package/skills/subagent-driven-development/code-quality-reviewer-prompt.md +2 -2
- package/skills/subagent-driven-development/references/worker-return-and-review.md +72 -0
- package/skills/subagent-driven-development/spec-reviewer-prompt.md +5 -2
- package/skills/writing-plans/LICENSE +21 -0
- package/skills/writing-plans/SKILL.md +9 -6
- package/skills/writing-plans/plan-document-reviewer-prompt.md +10 -4
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Jesse Vincent
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -18,10 +18,11 @@ This is a DSMM-maintained native skill for DSH 0.2.1-rc.2, not an OpenCode or Co
|
|
|
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.
|
|
20
20
|
|
|
21
|
-
<!--
|
|
21
|
+
<!-- Selectively adapted from obra/superpowers/requesting-code-review v7.0.1.
|
|
22
22
|
Risk/evidence-driven implementation review of current changes and contracts.
|
|
23
23
|
Reviewers don't spawn additional review seats.
|
|
24
|
-
Source and maintenance contract: docs/
|
|
24
|
+
Source and maintenance contract: ../../docs/maintenance.md.
|
|
25
|
+
Upstream MIT license: ./LICENSE. -->
|
|
25
26
|
|
|
26
27
|
# Requesting Code Review
|
|
27
28
|
|
|
@@ -58,6 +59,8 @@ Do not require a fixed packet schema, first-line verdict, receipt, or transcript
|
|
|
58
59
|
|
|
59
60
|
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
61
|
|
|
62
|
+
The approved requirements define the outcome but may not enumerate every valid input class, environment, or failure condition. Review reasonable behavior implied by that outcome and the surrounding committed contracts when a concrete user impact or regression risk supports it; specification silence is not permission to break expected behavior. This does not authorize new features, preferences, or speculative scope. If an important behavior was considered but cannot be judged from the supplied change and evidence, name it, explain why it remains unjudged, and identify the missing evidence. No fixed heading, list, or item count is required.
|
|
63
|
+
|
|
61
64
|
## Reviewer Selection
|
|
62
65
|
|
|
63
66
|
Select only the lanes that add useful independent evidence. Available profiles do not cause automatic fan-out.
|
|
@@ -28,6 +28,12 @@ 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
|
+
Requirements describe the approved outcome but may not enumerate every valid
|
|
32
|
+
input class, environment, or failure condition. Check reasonable behavior
|
|
33
|
+
implied by that outcome and surrounding committed contracts when concrete
|
|
34
|
+
user impact or regression risk supports it. Do not turn silence into a new
|
|
35
|
+
feature, preference, or speculative scope.
|
|
36
|
+
|
|
31
37
|
Assess existing evidence by material relevance. Request missing or affected
|
|
32
38
|
coverage; don't duplicate global/heavy checks coordinated by the controller.
|
|
33
39
|
Unrelated code, dependency, or environment changes aren't automatic invalidation.
|
|
@@ -48,7 +54,9 @@ Assignment content (not a tool-call schema; send through a permitted callable na
|
|
|
48
54
|
Report concrete findings with severity, file/line location when available,
|
|
49
55
|
impact, supporting evidence, and a practical correction when useful. Separate
|
|
50
56
|
product defects from missing evidence. Mention specific strengths only when
|
|
51
|
-
informative.
|
|
57
|
+
informative. Explicitly name any important behavior you considered but could
|
|
58
|
+
not judge, why it remains unjudged, and what evidence is missing. Do not force
|
|
59
|
+
a dedicated heading, list, or quota.
|
|
52
60
|
|
|
53
61
|
No fixed first line, section order, verdict token, receipt, or status
|
|
54
62
|
format is required. An acknowledgement or unsupported conclusion is not review
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Jesse Vincent
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -18,10 +18,11 @@ This is a DSMM-maintained native skill for DSH 0.2.1-rc.2, not an OpenCode or Co
|
|
|
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.
|
|
20
20
|
|
|
21
|
-
<!--
|
|
21
|
+
<!-- Selectively adapted from obra/superpowers/subagent-driven-development v7.0.1.
|
|
22
22
|
Optional delegation after applicable planning; current outcomes and evidence.
|
|
23
23
|
Worker permissions, ownership, and host continuation remain bounded.
|
|
24
|
-
Source and maintenance contract: docs/
|
|
24
|
+
Source and maintenance contract: ../../docs/maintenance.md.
|
|
25
|
+
Upstream MIT license: ./LICENSE. -->
|
|
25
26
|
|
|
26
27
|
# Subagent-Driven Development
|
|
27
28
|
|
|
@@ -106,74 +107,17 @@ Resolve non-material conflicts from evidence and proceed with the resulting curr
|
|
|
106
107
|
|
|
107
108
|
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.
|
|
108
109
|
|
|
109
|
-
## Corrections and Changed Inputs
|
|
110
|
-
|
|
111
|
-
Continue the same worker session for a bounded correction to the same goal when the host exposes a continuation handle and its context remains valid. Otherwise start a fresh worker with the necessary correction context.
|
|
112
|
-
|
|
113
|
-
After a correction, rerun only affected checks or reviews plus any integration check whose substantive input changed. A newly identified or resolved blocker or relevant new evidence can justify another affected pass; formatting, narration, status wording, repeated doubts, or unchanged uncertainty cannot. When the same check fails consecutively for the same reason and no new diagnostic basis exists, stop blind retries, identify whether the failure belongs to the product or the harness/tool/environment, and state the unmet requirement and needed input or capability. Continue independent authorized work only when it does not depend on the blocker.
|
|
114
|
-
|
|
115
110
|
## Model Selection
|
|
116
111
|
|
|
117
112
|
Use the least costly currently available profile likely to complete the task reliably. Turn count and context handoff cost matter more than nominal token price. Scale capability to integration judgment, diff size, uncertainty, and risk; do not use a reviewer or Oracle as an implementation or architecture worker.
|
|
118
113
|
|
|
119
|
-
##
|
|
120
|
-
|
|
121
|
-
Status labels such as `DONE`, `DONE_WITH_CONCERNS`, `BLOCKED`, or `NEEDS_CONTEXT` are informational. Read the actual changed files, reasoning, evidence, and concerns. An acknowledgement, dispatch success, or label alone is not completion evidence.
|
|
122
|
-
|
|
123
|
-
Likewise, an optional or redundant child that is unavailable, times out, returns only an acknowledgement, or fails to add evidence does not block a result already proven by sufficient current evidence. Required work remains required; do not use this rule to bypass a real unresolved security, data-loss, protocol/API, compatibility, or irreversible-operation risk.
|
|
124
|
-
|
|
125
|
-
When a worker raises a concern:
|
|
126
|
-
|
|
127
|
-
- resolve correctness or scope concerns from code and requirements before relying on the result;
|
|
128
|
-
- provide missing context when that is the blocker;
|
|
129
|
-
- change model or task boundary when the work genuinely exceeds the worker;
|
|
130
|
-
- escalate decisions in the stop classes rather than forcing a guess.
|
|
131
|
-
|
|
132
|
-
### Waiting on Dispatched Subagents
|
|
133
|
-
|
|
134
|
-
Do not poll aggressively, sleep, or repeatedly ask for status. While you have local work — preparing the next dispatch, inspecting returned diffs, updating todos, or packaging review input — keep working. If the host exposes background completion, let it notify you. If a wait surface exists and you are genuinely idle, wait in bounded stretches rather than short loops, then reconcile outstanding children once per stretch. A continuation handle continues a child session; it is not a polling job ID.
|
|
135
|
-
|
|
136
|
-
## Verification
|
|
137
|
-
|
|
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.
|
|
139
|
-
|
|
140
|
-
Keep product failures separate from harness, tool, fixture, and environment failures. If the harness did not exercise the product behavior, report the evidence gap; do not change product behavior or weaken a valid check merely to obtain green output. An unresolved required failure remains incomplete even when other authorized work can proceed independently.
|
|
141
|
-
|
|
142
|
-
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.
|
|
143
|
-
|
|
144
|
-
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.
|
|
145
|
-
|
|
146
|
-
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.
|
|
147
|
-
|
|
148
|
-
## Completion and Integration Check
|
|
149
|
-
|
|
150
|
-
For each worker result or direct-execution wave:
|
|
151
|
-
|
|
152
|
-
- inspect the actual changed and newly created files or current diff;
|
|
153
|
-
- compare the result to the goal and acceptance criteria;
|
|
154
|
-
- evaluate the reported evidence and run additional targeted checks when needed;
|
|
155
|
-
- check shared interfaces and assumptions against other work;
|
|
156
|
-
- report current constraints, unresolved risks, and intentionally unverified items.
|
|
157
|
-
|
|
158
|
-
This is outcome verification, not a mandatory full reviewer pass after each task or wave.
|
|
159
|
-
|
|
160
|
-
## Constructing Review Requests
|
|
161
|
-
|
|
162
|
-
When independent review is useful, provide the reviewer with the goal, acceptance criteria, current diff or committed range including new files, relevant verification evidence, and global constraints. Add focused context for a known concern without pre-judging the conclusion. Do not paste accumulated session history or require a fixed packet schema, receipt, or first-line verdict.
|
|
163
|
-
|
|
164
|
-
Reviewers inspect the actual change and evidence; they should not rerun expensive checks without a reason. Treat their findings according to technical merit. Re-request only the affected review for a newly identified or resolved blocker, a substantive correction, or relevant new evidence or constraints. An editorial prompt change, repeated concern, or unchanged uncertainty does not stale otherwise applicable review analysis.
|
|
165
|
-
|
|
166
|
-
## When Review Is Useful
|
|
167
|
-
|
|
168
|
-
Consider focused review for a high-risk implementation concern, uncertain complex fix, meaningful cross-module integration, security/data/protocol/compatibility/release risk, or explicit user request. Consider a whole-change review before merge or delivery when the size or risk benefits from independent scrutiny.
|
|
169
|
-
|
|
170
|
-
Review is not unconditional. A proven low-risk result need not wait for an optional or redundant reviewer, and reviewer approval is not a substitute for evidence. When review is required by the user or a governing release/safety process, satisfy that requirement and resolve substantive blockers before completion.
|
|
114
|
+
## Returns, Corrections, Verification, and Review
|
|
171
115
|
|
|
172
|
-
|
|
116
|
+
Before waiting on a worker, correcting returned work, evaluating completion evidence, constructing an independent review request, or handling findings, read `./references/worker-return-and-review.md` from this skill's resourceBase. That reference contains the conditional operating details; this entry remains authoritative for permission, ownership, workflow, and escalation boundaries.
|
|
173
117
|
|
|
174
|
-
|
|
118
|
+
Worker labels and acknowledgements are not evidence. Inspect actual changes and current evidence against the goal, interfaces, and acceptance criteria. Stop blind retries when the same failure recurs without a new diagnostic basis; distinguish product defects from harness/tool/environment gaps, keep dependent work incomplete, and continue only independent authorized work. Escalate rather than guess when a correction or finding would change scope or acceptance, weaken security or data guarantees, change a public API/protocol, expand permissions, require an irreversible action, or cross another stop class above.
|
|
175
119
|
|
|
176
|
-
|
|
120
|
+
Independent review is conditional on concrete value or an explicit requirement, never an automatic per-task gate. The orchestrator owns review dispatch and integration/global verification. Do not introduce a ledger, fixed packet or report format, scenario quota, universal RED/TDD gate, nested reviewer/controller, or Git write.
|
|
177
121
|
|
|
178
122
|
## Prompt Templates
|
|
179
123
|
|
|
@@ -18,6 +18,6 @@ Assignment content (not a tool-call schema; send through a permitted callable na
|
|
|
18
18
|
- focused dependency, interface, or maintainability context when material.
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
The reviewer does the review directly and does not dispatch subagents or second-opinion reviewers. Evaluate the change's contribution rather than penalizing unrelated pre-existing structure. Check boundaries, interfaces, local conventions, unnecessary complexity, error behavior, and whether the supplied evidence supports the relevant claims.
|
|
21
|
+
The reviewer does the review directly and does not dispatch subagents or second-opinion reviewers. Evaluate the change's contribution rather than penalizing unrelated pre-existing structure. Check boundaries, interfaces, local conventions, unnecessary complexity, error behavior, valid input classes or failure conditions implied by the approved behavior and committed contracts, and whether the supplied evidence supports the relevant claims. Do not expand scope from speculation.
|
|
22
22
|
|
|
23
|
-
Report concrete findings with severity, location, impact, and supporting evidence. No fixed first-line verdict, field order, or receipt is required. Rerun only when substantive review input changes.
|
|
23
|
+
Report concrete findings with severity, location, impact, and supporting evidence. Name any important behavior left unjudged, why, and the missing evidence, without requiring a dedicated heading, list, or quota. No fixed first-line verdict, field order, or receipt is required. Rerun only when substantive review input changes.
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
> DSH adapter boundary: resolve this reference from the loaded skill's directory resourceBase. It grants no tools, permissions, workflow authority, or Git authorization; the entry skill and active role remain authoritative.
|
|
2
|
+
|
|
3
|
+
# Worker Return, Correction, Verification, and Review
|
|
4
|
+
|
|
5
|
+
Read this reference only when a dispatched worker is pending or has returned, a correction is needed, completion evidence must be integrated, or independent implementation review is useful or required.
|
|
6
|
+
|
|
7
|
+
## Corrections and Changed Inputs
|
|
8
|
+
|
|
9
|
+
Continue the same worker session for a bounded correction to the same goal when the host exposes a continuation handle and its context remains valid. Otherwise start a fresh worker with the necessary correction context.
|
|
10
|
+
|
|
11
|
+
After a correction, rerun only affected checks or reviews plus any integration check whose substantive input changed. A newly identified or resolved blocker or relevant new evidence can justify another affected pass; formatting, narration, status wording, repeated doubts, or unchanged uncertainty cannot. When the same check fails consecutively for the same reason and no new diagnostic basis exists, stop blind retries, identify whether the failure belongs to the product or the harness/tool/environment, and state the unmet requirement and needed input or capability. Continue independent authorized work only when it does not depend on the blocker.
|
|
12
|
+
|
|
13
|
+
## Worker Results Are Evidence, Not Gates
|
|
14
|
+
|
|
15
|
+
Status labels such as `DONE`, `DONE_WITH_CONCERNS`, `BLOCKED`, or `NEEDS_CONTEXT` are informational. Read the actual changed files, reasoning, evidence, and concerns. An acknowledgement, dispatch success, or label alone is not completion evidence.
|
|
16
|
+
|
|
17
|
+
Likewise, an optional or redundant child that is unavailable, times out, returns only an acknowledgement, or fails to add evidence does not block a result already proven by sufficient current evidence. Required work remains required; do not use this rule to bypass a real unresolved security, data-loss, protocol/API, compatibility, or irreversible-operation risk.
|
|
18
|
+
|
|
19
|
+
When a worker raises a concern:
|
|
20
|
+
|
|
21
|
+
- resolve correctness or scope concerns from code and requirements before relying on the result;
|
|
22
|
+
- provide missing context when that is the blocker;
|
|
23
|
+
- change model or task boundary when the work genuinely exceeds the worker;
|
|
24
|
+
- escalate decisions in the entry skill's stop classes rather than forcing a guess.
|
|
25
|
+
|
|
26
|
+
### Waiting on Dispatched Workers
|
|
27
|
+
|
|
28
|
+
Do not poll aggressively, sleep, or repeatedly ask for status. While local coordination or inspection work remains, keep working. If the host exposes background completion, let it notify you. If a wait surface exists and you are genuinely idle, wait in bounded stretches rather than short loops, then reconcile outstanding children once per stretch. A continuation handle continues a child session; it is not a polling job ID.
|
|
29
|
+
|
|
30
|
+
## Verification
|
|
31
|
+
|
|
32
|
+
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.
|
|
33
|
+
|
|
34
|
+
Keep product failures separate from harness, tool, fixture, and environment failures. If the harness did not exercise the product behavior, report the evidence gap; do not change product behavior or weaken a valid check merely to obtain green output. An unresolved required failure remains incomplete even when other authorized work can proceed independently.
|
|
35
|
+
|
|
36
|
+
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.
|
|
37
|
+
|
|
38
|
+
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.
|
|
39
|
+
|
|
40
|
+
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.
|
|
41
|
+
|
|
42
|
+
## Completion and Integration Check
|
|
43
|
+
|
|
44
|
+
For each worker result or direct-execution wave:
|
|
45
|
+
|
|
46
|
+
- inspect the actual changed and newly created files or current diff;
|
|
47
|
+
- compare the result to the goal and acceptance criteria;
|
|
48
|
+
- evaluate the reported evidence and run additional targeted checks when needed;
|
|
49
|
+
- check shared interfaces and assumptions against other work;
|
|
50
|
+
- report current constraints, unresolved risks, and intentionally unverified items.
|
|
51
|
+
|
|
52
|
+
This is outcome verification, not a mandatory full reviewer pass after each task or wave.
|
|
53
|
+
|
|
54
|
+
## Constructing Review Requests
|
|
55
|
+
|
|
56
|
+
When independent review is useful, provide the reviewer with the goal, acceptance criteria, current diff or committed range including new files, relevant verification evidence, and global constraints. Add focused context for a known concern without pre-judging the conclusion. Do not paste accumulated session history or require a fixed packet schema, receipt, or first-line verdict.
|
|
57
|
+
|
|
58
|
+
Reviewers inspect the actual change and evidence; they should not rerun expensive checks without a reason. They consider material input classes and failure conditions implied by approved behavior and local contracts without inventing new product scope. Any important behavior they cannot judge must be named with the reason and missing evidence; no fixed heading, list, or count is required.
|
|
59
|
+
|
|
60
|
+
Treat findings according to technical merit. Re-request only the affected review for a newly identified or resolved blocker, a substantive correction, or relevant new evidence or constraints. An editorial prompt change, repeated concern, or unchanged uncertainty does not stale otherwise applicable review analysis.
|
|
61
|
+
|
|
62
|
+
## When Review Is Useful
|
|
63
|
+
|
|
64
|
+
Consider focused review for a high-risk implementation concern, uncertain complex fix, meaningful cross-module integration, security/data/protocol/compatibility/release risk, or explicit user request. Consider a whole-change review before merge or delivery when the size or risk benefits from independent scrutiny.
|
|
65
|
+
|
|
66
|
+
Review is not unconditional. A proven low-risk result need not wait for an optional or redundant reviewer, and reviewer approval is not a substitute for evidence. When review is required by the user or a governing release/safety process, satisfy that requirement and resolve substantive blockers before completion.
|
|
67
|
+
|
|
68
|
+
## Handling Findings
|
|
69
|
+
|
|
70
|
+
Use the `receiving-code-review` skill. Fix validated blocking defects or missing required evidence. Group related findings into a coherent correction rather than spawning one worker per comment. Push back with code, requirements, or evidence when a finding is incorrect or would change approved intent.
|
|
71
|
+
|
|
72
|
+
After a substantive fix, rerun affected evidence and any review whose blocker or supporting evidence changed. Do not rerun unaffected reviews. Preserve the approved goal and constraints; escalate feedback that would change scope, acceptance, safety/data guarantees, public APIs/protocols, permissions, or irreversible behavior.
|
|
@@ -22,7 +22,9 @@ Assignment content (not a tool-call schema; send through a permitted callable na
|
|
|
22
22
|
unjustified scope, incompatible assumptions, or evidence gaps with file/line
|
|
23
23
|
references and technical impact. Allow minimal evidence-based equivalent
|
|
24
24
|
implementations that preserve the approved goal, constraints, permissions, and
|
|
25
|
-
acceptance criteria.
|
|
25
|
+
acceptance criteria. Consider valid input classes, environments, and failure
|
|
26
|
+
conditions reasonably implied by the approved behavior and committed contracts;
|
|
27
|
+
do not invent new features, preferences, or speculative scope.
|
|
26
28
|
|
|
27
29
|
Evaluate final valid requirements and committed contracts, not intermediate
|
|
28
30
|
behavior or decision history. Tests cover functionality and external interfaces,
|
|
@@ -31,7 +33,8 @@ Assignment content (not a tool-call schema; send through a permitted callable na
|
|
|
31
33
|
|
|
32
34
|
Report concrete findings and supporting evidence. Do not rely on an implementer
|
|
33
35
|
status or acknowledgement, and do not require a fixed first-line verdict or
|
|
34
|
-
receipt.
|
|
36
|
+
receipt. Explicitly name any important behavior you cannot judge, why, and the
|
|
37
|
+
missing evidence. No dedicated heading, list, or item count is required.
|
|
35
38
|
```
|
|
36
39
|
|
|
37
40
|
Rerun only if substantive implementation, criteria, constraints, or evidence relevant to this review changes.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Jesse Vincent
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -18,16 +18,17 @@ This is a DSMM-maintained native skill for DSH 0.2.1-rc.2, not an OpenCode or Co
|
|
|
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.
|
|
20
20
|
|
|
21
|
-
<!--
|
|
21
|
+
<!-- Selectively adapted from obra/superpowers/writing-plans v7.0.1.
|
|
22
22
|
Outcome-oriented final product plans; temporary coordination for other work.
|
|
23
23
|
Complex implementation receives orchestrator-owned blocker-focused criticism.
|
|
24
|
-
Source and maintenance contract: docs/
|
|
24
|
+
Source and maintenance contract: ../../docs/maintenance.md.
|
|
25
|
+
Upstream MIT license: ./LICENSE. -->
|
|
25
26
|
|
|
26
27
|
# Writing Plans
|
|
27
28
|
|
|
28
29
|
## Overview
|
|
29
30
|
|
|
30
|
-
Produce an implementation plan that lets a capable engineer reach the approved outcome without rediscovering important context. A native read-only planner returns complete Markdown; an authorized coordinator writes any required artifact within its own permissions. Capture the goal, ideal end state, dependencies, interfaces, risks, constraints, and evidence that would demonstrate success. Prefer useful decision support over procedural ceremony.
|
|
31
|
+
Produce an implementation plan that lets a capable engineer reach the approved outcome without rediscovering important context. A native read-only planner returns complete Markdown; an authorized coordinator writes any required artifact within its own permissions. Capture the goal, ideal end state, dependencies, interfaces, risks, constraints, and evidence that would demonstrate success. Record the implementation decisions the engineer cannot safely infer: exact paths and names, necessary interface signatures and types, requirement-fixed values, and the test names/assertions or observable results that pin required behavior. Prefer useful decision support over procedural ceremony.
|
|
31
32
|
|
|
32
33
|
Assume the engineer is skilled but unfamiliar with this codebase and problem domain. Explain local conventions or non-obvious constraints that materially affect the work; do not prescribe details that repository evidence leaves safely open.
|
|
33
34
|
|
|
@@ -65,7 +66,9 @@ Use the structure that best explains the work. A useful plan normally makes thes
|
|
|
65
66
|
- Waves or tasks with clear outcome boundaries
|
|
66
67
|
- Useful acceptance evidence for each wave and for the integrated result
|
|
67
68
|
|
|
68
|
-
Describe the concise final requirements, design, and behavior. Update intermediate text directly; don't retain development history, rejected alternatives, or decision counterexamples. Include commands, code sketches, file paths, or
|
|
69
|
+
Describe the concise final requirements, design, and behavior. Update intermediate text directly; don't retain development history, rejected alternatives, or decision counterexamples. Include commands, code sketches, file paths, signatures, fixed values, or test assertions when they prevent ambiguity; omit them when repository patterns and acceptance criteria already make the implementation obvious. The plan records decisions, not a transcript of the implementation: omit function bodies when signatures, required values, and assertions determine the work, and include an algorithm or exact body only when the requirement itself fixes it or ambiguity would remain.
|
|
70
|
+
|
|
71
|
+
Review focus is part of planning evidence, not a mandatory document section. Consider valid input classes, environments, and failure conditions implied by the approved behavior and local contracts even when the source requirement does not enumerate them. Attach concrete regression coverage to the task that owns the behavior when a plausible failure warrants it. If an important behavior cannot yet be judged or covered, identify the behavior, why it remains unresolved, and the evidence needed. Do not impose a heading, fixed list or item count, expand product scope, or turn a speculative possibility into a requirement.
|
|
69
72
|
|
|
70
73
|
## Waves and Tasks
|
|
71
74
|
|
|
@@ -112,13 +115,13 @@ Review the completed plan against its source:
|
|
|
112
115
|
|
|
113
116
|
1. **Outcome coverage:** Does the ideal end state satisfy every approved requirement?
|
|
114
117
|
2. **Dependency consistency:** Do ordering, interfaces, files, and ownership assumptions agree?
|
|
115
|
-
3. **Evidence quality:** Would the proposed evidence demonstrate the behavior or invariant that matters?
|
|
118
|
+
3. **Evidence quality:** Would the proposed evidence demonstrate the behavior or invariant that matters, including material implied inputs and failure conditions? Are important unjudged items explicit with their reason and missing evidence?
|
|
116
119
|
4. **Risk discipline:** Are material security, data, compatibility, protocol, and irreversible risks handled without speculative scope?
|
|
117
120
|
5. **Executability:** Can an engineer act without placeholders or pure guesses while retaining discretion over incidental mechanics?
|
|
118
121
|
|
|
119
122
|
Fix issues inline. Do not require a second review simply because wording or formatting changed.
|
|
120
123
|
|
|
121
|
-
Tests cover valid requirements, functionality, and external interfaces, not descriptive-text locks or decision counterexamples. Don't lock documentation, commit messages, package information, or non-contractual error/log wording through strings, regex, snapshots, or parsed content. Changed requirements update their tests; removed components lose their dedicated tests, with no replacement absence tests. Keep valid negative safety, protocol, and input-handling tests.
|
|
124
|
+
Tests cover valid requirements, functionality, and external interfaces, not descriptive-text locks or decision counterexamples. State test names and decisive assertions or observable outputs; do not write full test implementations unless an exact fixture or algorithm is itself required to remove material ambiguity. Don't lock documentation, commit messages, package information, or non-contractual error/log wording through strings, regex, snapshots, or parsed content. Changed requirements update their tests; removed components lose their dedicated tests, with no replacement absence tests. Keep valid negative safety, protocol, and input-handling tests.
|
|
122
125
|
|
|
123
126
|
## Blocker-Focused Plan Review
|
|
124
127
|
|
|
@@ -23,10 +23,16 @@ Assignment content (not a tool-call schema; send through a permitted callable na
|
|
|
23
23
|
|
|
24
24
|
Evaluate outcome coverage, dependencies and interfaces, task/wave boundaries,
|
|
25
25
|
material risks, executability, and whether the proposed evidence can actually
|
|
26
|
-
demonstrate success.
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
demonstrate success. Check that the plan records necessary paths, signatures,
|
|
27
|
+
requirement-fixed values, and decisive test assertions without transcribing
|
|
28
|
+
implementation bodies that an engineer can derive. Consider material input
|
|
29
|
+
classes and failure conditions implied by the approved behavior and local
|
|
30
|
+
contracts. Identify any important behavior the plan cannot judge, why, and the
|
|
31
|
+
missing evidence. Distinguish blockers from optional improvements. Do not require
|
|
32
|
+
fixed headings, review-focus lists or quotas, tiny scripted steps, a RED transcript,
|
|
33
|
+
scenario counts, per-task reviews, commits, or a particular implementation when
|
|
34
|
+
an evidence-based equivalent preserves the approved goal, constraints,
|
|
35
|
+
permissions, and acceptance. Do not expand scope from speculation.
|
|
30
36
|
|
|
31
37
|
Check that the plan describes only its final deliverable, not development or
|
|
32
38
|
decision history. Superpowers specs/plans are only for final product requirements;
|