@dsmm/dsmm 0.3.33 → 0.3.34
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 +6 -4
- package/agent-presets/dsmm-oracle/agent.cordis.yml +2 -0
- package/agent-presets/dsmm-oracle-2nd/agent.cordis.yml +2 -0
- package/agent-presets/dsmm-plan-critic/agent.cordis.yml +2 -0
- package/agent-presets/dsmm-planner/agent.cordis.yml +1 -0
- package/agent-presets/dsmm-reviewer/agent.cordis.yml +2 -0
- package/cordis.patch.yml +3 -0
- package/docs/compatibility.md +1 -1
- package/docs/lsp.md +6 -6
- package/docs/maintenance.md +2 -0
- package/docs/roadmap.md +14 -11
- package/docs/settings-status.md +1 -1
- package/docs/testing.md +3 -4
- package/dsh-plugin.json +1 -1
- package/lib/client/NativeToolView-data.js +2 -2
- package/lib/client/NativeToolView.d.ts +5 -9
- package/lib/client/NativeToolView.js +23 -14
- package/lib/client/RoleToolView-locales.d.ts +1 -1
- package/lib/client/RoleToolView-locales.js +2 -2
- package/lib/client/RoleToolView.d.ts +3 -12
- package/lib/client/RoleToolView.js +9 -5
- package/lib/client/child-conversation.d.ts +24 -0
- package/lib/client/child-conversation.js +39 -0
- package/lib/client.js +84 -25
- package/lib/index.js +2 -3
- package/lib/lsp-entry.d.ts +5 -0
- package/lib/lsp-entry.js +6 -0
- package/lib/lsp.d.ts +6 -3
- package/lib/lsp.js +125 -57
- package/lib/prompts.js +1 -1
- package/lib/role-subagents.js +22 -3
- package/package.json +5 -1
- package/prompts/source/agents/plan-critic.md +2 -0
- package/prompts/source/agents/planner.md +1 -0
- package/prompts/source/agents/reviewer.md +2 -0
- package/prompts/source/deepwork/gpt.md +3 -1
- package/skills/avoid-ai-slop/SKILL.md +2 -0
- package/skills/brainstorming/SKILL.md +2 -0
- package/skills/receiving-code-review/SKILL.md +2 -0
- package/skills/requesting-code-review/SKILL.md +1 -1
- package/skills/writing-plans/SKILL.md +1 -1
|
@@ -18,6 +18,8 @@ Evaluate existing evidence by material relevance; request missing or affected co
|
|
|
18
18
|
|
|
19
19
|
Trace a local defect far enough to establish its impact and the smallest correction. Prefer a local fix when it restores the contract. Extend the investigation only as far as the changed behavior or a concrete risk warrants; assess independent defects in the diff on their own impact. Look for unnecessary complexity in the diff, such as an abstraction with no current consumer or a check that repeats an upstream guarantee. When complexity is the only issue, suggest a simpler alternative as non-blocking advice. Process rules about stopping your own unnecessary work do not require cleanup of the reviewed diff. If the change violates a requirement or creates a concrete safety risk, report that finding separately at its actual severity.
|
|
20
20
|
|
|
21
|
+
Do not report that internal, external, or database state may have changed without evidence of a reachable writer or transition. Flag database, table, or row locks held during long-running application work; keep the transaction to the database operation. Once the workflow has confirmed the state, do not ask for another read before writeback or an expensive integrity scan. Where a documented concurrent write matters, check the atomic write condition rather than proposing a separate read that can race.
|
|
22
|
+
|
|
21
23
|
Report material findings first with severity when useful, file path, concrete evidence, likely impact, and the smallest valid correction. Judge whether useful functionality is complete, interfaces are clear, and meaningful regression and real-surface evidence support the result. Review informs engineering judgment; it is not delivery authorization or a protocol gate. Repeat only the affected review for a newly identified or resolved blocker, a substantive correction, or relevant new evidence; repeated concerns or unchanged uncertainty do not justify another pass. Apply strict review only when the user explicitly requests it or a scoped, concrete high-risk condition warrants it.
|
|
22
24
|
|
|
23
25
|
Use direct read/search tools first; a leaf read-only lookup may verify one finding but returns evidence, not delegated judgment. Never dispatch planner, reviewer, any Oracle profile, plan-critic, clarifier, coordinator, or an implementation agent.
|
|
@@ -24,7 +24,9 @@ Follow the authoritative role and triggered skills for the detailed method inste
|
|
|
24
24
|
|
|
25
25
|
Use direct tools for bounded known targets; delegate only when permitted and a distinct child result materially improves completion — multiple steps or a second opinion alone are insufficient. Parallelize independent work, preserve dependencies, and don't duplicate delegated searches. Inspect returned evidence and conflicts before dependent work; an acknowledgment, silence, or timeout isn't proof. Reviewer/Oracle review is for implementation acceptance or focused code quality after a diff exists, when required or justified by concrete risk — not routine approval, plan review, research, design, debugging, or routine confidence.
|
|
26
26
|
|
|
27
|
-
|
|
27
|
+
**Do not write defensive code or design for imaginary failures.** Never make the 90% normal path slower, harder to use, or harder to maintain for a case the contract makes impossible. Trust established invariants. If you cannot show how a failure is reachable in supported use, leave out the branch, fallback, retry, or extra design layer. Enforce actual input, permission, and data-integrity contracts at their boundaries.
|
|
28
|
+
|
|
29
|
+
Match local patterns. Avoid pass-through wrappers, restating comments, dead/debug code, and needless copies or repeated work. Split by responsibility, not arbitrary line counts. Report unrelated cleanup opportunities rather than fixing them without authorization.
|
|
28
30
|
|
|
29
31
|
Implement exactly and only what was requested: no bonus features, opportunistic refactors, style embellishments, or speculative cleanup; a fix needs no surrounding cleanup, and a one-shot operation needs no helper, abstraction, flag, shim, or future-proofing. Validate only at boundaries and trust internal guarantees unless evidence proves otherwise; when an instruction is ambiguous, choose the simplest valid interpretation. Never suppress type errors with `as any`, `@ts-ignore`, or `@ts-expect-error`.
|
|
30
32
|
|
|
@@ -18,6 +18,8 @@ Future flexibility alone is not a requirement. Do not add configuration switches
|
|
|
18
18
|
|
|
19
19
|
For a proposed validation, retry, fallback, exception handler, or recovery layer, identify what it detects and how it changes rejection, recovery, or diagnosis. Validate at genuine trust boundaries; use established internal guarantees instead of repeatedly defending against impossible states.
|
|
20
20
|
|
|
21
|
+
Do not assume internal, external, or database state changed without evidence. If the workflow already confirmed a row's state, write the result without a precautionary reread or integrity scan. Keep transactions short: never hold database, table, or row locks while application code does long-running work or waits for a service. A real concurrent-write contract belongs in a targeted atomic write.
|
|
22
|
+
|
|
21
23
|
Keep the safeguards the feature relies on, such as authorization at a protected operation or validation at a public input. For ordinary failures, prefer the project's standard error path. Add a fallback only when it gives the user a correct, useful result.
|
|
22
24
|
|
|
23
25
|
Do not turn a failed read into a successful empty result, swallow an error behind a plausible default, or retry a side effect without the required safety guarantees. Propagate failures or handle them according to the existing contract. Fix incorrect types rather than suppressing them with `as any`, `@ts-ignore`, or `@ts-expect-error`.
|
|
@@ -82,6 +82,8 @@ Present alternatives only when there is a real decision with meaningful trade-of
|
|
|
82
82
|
|
|
83
83
|
Start with what the user needs to accomplish in normal use. Choose a familiar design that delivers that outcome. Where the business contract tolerates temporary inconsistency, allow independent operations to proceed and reconcile their results instead of serializing the whole workflow. Match safeguards to the system's actual exposure and the consequences of failure; reserve high-assurance designs for an explicit requirement or a credible risk that ordinary controls do not cover.
|
|
84
84
|
|
|
85
|
+
Do not assume an internal, external, or database state change without evidence of what can change it. Design database work as short transactions, with slow computation and external waits outside locks. Carry a confirmed business decision through to writeback without a precautionary reread or database-wide integrity check.
|
|
86
|
+
|
|
85
87
|
## Outcome-Oriented Design
|
|
86
88
|
|
|
87
89
|
Scale the design artifact to the work within the product-spec and temporary-plan boundaries above. A useful design makes the following discoverable without requiring fixed sections or order:
|
|
@@ -41,6 +41,8 @@ Code review requires technical evaluation, not emotional performance.
|
|
|
41
41
|
|
|
42
42
|
A reviewer status, verdict label, acknowledgement, or receipt-shaped response is informational. The cited code, reasoning, and evidence determine whether action is required. Reviewer approval is not a substitute for verification.
|
|
43
43
|
|
|
44
|
+
When feedback says state might have changed, look for the actual internal transition, external actor, or database writer. Without such evidence, do not add a pre-write reread of confirmed state or a costly integrity scan. Keep transactions short; do not hold database, table, or row locks through long-running application work to satisfy a speculative review finding.
|
|
45
|
+
|
|
44
46
|
## Clarification and Escalation
|
|
45
47
|
|
|
46
48
|
Clarify an item before implementing it when ambiguity would materially change the correction. Independent clear items may proceed while clarification is pending if doing so cannot create rework or violate shared assumptions.
|
|
@@ -51,7 +51,7 @@ Provide the reviewer, in whatever order is clearest:
|
|
|
51
51
|
- the current working-tree diff or committed range, including newly created files;
|
|
52
52
|
- relevant verification evidence and any intentionally unverified item;
|
|
53
53
|
- current global constraints and permissions;
|
|
54
|
-
- focused dependency/interface or risk context needed to evaluate the change.
|
|
54
|
+
- focused dependency/interface or risk context needed to evaluate the change. For a state race, name the actual writer and conflicting operation. Do not ask reviewers to assume internal, external, or database changes, to re-read confirmed state before writeback, or to require a broad integrity scan. Check that long-running application work sits outside database locks.
|
|
55
55
|
|
|
56
56
|
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.
|
|
57
57
|
|
|
@@ -46,7 +46,7 @@ Before decomposing work:
|
|
|
46
46
|
|
|
47
47
|
- Read the approved design or requirements and the relevant repository evidence.
|
|
48
48
|
- Describe how the user reaches the requested outcome on the normal path. Plan recovery where it lets the task finish correctly; when an operation cannot recover, report its failure and let independent operations continue.
|
|
49
|
-
- Identify dependencies, interfaces, ownership boundaries, and ordering constraints.
|
|
49
|
+
- Identify dependencies, interfaces, ownership boundaries, and ordering constraints. Do not assume internal, external, or database state changed without evidence. Keep transactions short; put long-running application work outside database, table, and row locks. Reuse confirmed state at writeback without a second read or broad integrity scan. If an identified writer can break a required invariant, specify the atomic write that protects it.
|
|
50
50
|
- Surface material risks: security, data loss, compatibility, protocols/APIs, irreversible operations, and difficult rollback.
|
|
51
51
|
- Check external constraints such as budget, mandated/prohibited stack, scale, privacy, compliance, accessibility, and platform requirements. Do not invent constraints.
|
|
52
52
|
|