dsh-model-everything 0.6.0 → 0.6.1

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/lib/gate.js CHANGED
@@ -93,9 +93,9 @@ export function renderGateText(skills = shippedSkills(), extraGuidance = '') {
93
93
  const rows = skills.map((skill) => '| ' + (SKILL_ROWS[skill] ?? 'see its catalog line') + ' | `' + skill + '` |');
94
94
  const extra = extraGuidance.trim();
95
95
  return `<EXTREMELY_IMPORTANT>
96
- Before answering anything about code, a design or a diagram: load the skill whose row matches and let its tool decide. Do not answer from memory.
96
+ Before answering anything about code, a design or a diagram: load the matching skill and let its tool decide. Do not answer from memory.
97
97
 
98
- dsh-model-everything is active: it checks claims about designs and code - facts against the source, behaviour as a model, structure as a graph.
98
+ dsh-model-everything checks claims about designs and code: facts against the source, behaviour as a model, structure as a graph.
99
99
 
100
100
  **Unsure which row applies?** Load \`model-everything\` first: it owns the doctrine, the schema and the routing to its siblings.
101
101
 
@@ -105,17 +105,19 @@ ${rows.join('\n')}
105
105
 
106
106
  **Tools** (dsh):
107
107
 
108
- - \`model_verify\` — one state machine: structural checks, adversarial probes, budgets, deadlines, regression.
109
- - \`model_compose_verify\` — two or more machines: deadlock, a rendezvous that never fires, and - with \`shared\` + \`accesses\` - an unordered write (C4) or a non-atomic update (C5).
110
- - \`model_datamodel_verify\` — a data model and its migration: keys, domains, coverage, copy consistency, rollback symmetry.
111
- - \`model_design_review\` — a design against its own declarations: layering, boundaries, substitutability, interface width. Graph shape is reported, not judged.
112
- - \`model_interleaving_scan\` — finds claims about threads, async and interrupts, names the family and routes each to what decides it. It proves nothing itself.
113
- - \`model_export\` — UPPAAL, TLA+, PRISM or SPIN input from a model. It exports; it does not check the target.
114
- - \`uml_render\`, \`uml_parse\`, \`uml_review\` — draw a model, read a diagram into one, audit one. Round-trip fidelity is measured.
115
- - \`uml_explain_labels\` — the accepted label and comment forms for one notation.
116
- - \`uml_structure_verify\` — dependency review of a structure drawing, one level or several. It audits the drawing, not the code.
117
- - \`diagram_render\`, \`diagram_review\`, \`diagram_diff\` — draw, size and compare a Mermaid or PlantUML source. Undrawable lines are refused by number.
118
- - \`report_diff\` — baseline against current: what a change added, removed or changed.
108
+ - \`model_verify\` — a state machine: structural checks, adversarial probes, budgets, deadlines, regression.
109
+ - \`model_compose_verify\` — several machines: deadlock, a handshake that never fires, an unordered write (C4), a non-atomic update (C5).
110
+ - \`model_datamodel_verify\` — a data model and its migration: keys, domains, coverage, copy consistency, rollback.
111
+ - \`model_design_review\` — a design against its own declarations: layering, boundaries, substitutability, interface width.
112
+ - \`model_interleaving_scan\` — finds concurrency claims, names the family, routes each to what decides it. Proves nothing itself.
113
+ - \`model_export\` — UPPAAL, TLA+, PRISM or SPIN input from a model. It does not check the target.
114
+ - \`uml_render\`, \`uml_parse\`, \`uml_review\` — draw a model, read a diagram into one, audit one; round-trip measured.
115
+ - \`uml_explain_labels\` — the label and comment forms a notation accepts.
116
+ - \`uml_structure_verify\` — dependency review of a structure drawing. It audits the drawing, not the code.
117
+ - \`diagram_render\`, \`diagram_review\`, \`diagram_diff\` — draw, size, compare a Mermaid or PlantUML source. Undrawable lines are refused by number.
118
+ - \`model_automaton_verify\` — an automaton or two: what it accepts, trap states, language relation, with a witness word.
119
+ - \`model_edit\` — one named change to a model file plus the finding delta. Refuses an edit that leaves the model invalid.
120
+ - \`report_diff\` — baseline against current: findings added, removed or changed.
119
121
 
120
122
  **Read a report**: gate on \`verdict\`, never on \`ok\`. \`verdictReason\` says why and \`nextSteps\` says what to do. \`ran\` says whether it executed, \`checksRun\` how much it examined: a \`skip\` is not a \`pass\`, and a code ending \`_UNDECIDED\` means the search hit its limit and decided nothing. Keys starting with \`_\` are notes: ignored, and left out of the model hash.
121
123
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-model-everything",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "Modeling abstraction, architecture visualisation and automated review for designs and code, including a refactoring harness: draw a Mermaid or PlantUML source and measure its structure, executable verification of machines and protocols with before/after regression, data-model and migration checks, concurrency claim routing, export to external checkers, dependency-graph review, and report diffing. Native plugin for DeepSeek Harness (dsh).",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: model-everything
3
- description: "Use when a document claims something checkable about code: API names, paths, enums, feasibility, protocol behaviour, timing, 'always/never'. Enumerates the claims and verifies each with file:line evidence, then builds an executable model when behaviour or safety is at stake. Siblings: model-everything-diagram, -uml, -design, -interleaving, -datamodel, -structure.""
3
+ description: "Use when a document claims something checkable about code: API names, paths, enums, feasibility, protocol behaviour, timing, 'always/never'. Enumerates the claims and verifies each with file:line evidence, then builds an executable model when behaviour or safety is at stake. Siblings: model-everything-diagram, -uml, -design, -interleaving, -datamodel, -structure."
4
4
  ---
5
5
 
6
6
  # Model Everything
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: model-everything-diagram
3
- description: "Use when drawing a diagram from its source text, showing one to a reader, or checking its structure: Mermaid and PlantUML subsets, structure budgets, and containment diffs. Reach for it when an explanation is clearer shown than told - a layout, a flow, a change - and put the picture beside the explanation. Every line it cannot draw is refused by number. The drawing proves layout, not design. Doctrine: the model-everything skill.""
3
+ description: "Use when drawing a diagram from its source text, showing one to a reader, or checking its structure: Mermaid and PlantUML subsets, structure budgets, and containment diffs. Reach for it when an explanation is clearer shown than told - a layout, a flow, a change - and put the picture beside the explanation. Every line it cannot draw is refused by number. The drawing proves layout, not design. Doctrine: the model-everything skill."
4
4
  ---
5
5
 
6
6
  # Model Everything — Drawing
package/src/gate.ts CHANGED
@@ -111,9 +111,9 @@ export function renderGateText(skills: string[] = shippedSkills(), extraGuidance
111
111
  const rows = skills.map((skill) => '| ' + (SKILL_ROWS[skill] ?? 'see its catalog line') + ' | `' + skill + '` |')
112
112
  const extra = extraGuidance.trim()
113
113
  return `<EXTREMELY_IMPORTANT>
114
- Before answering anything about code, a design or a diagram: load the skill whose row matches and let its tool decide. Do not answer from memory.
114
+ Before answering anything about code, a design or a diagram: load the matching skill and let its tool decide. Do not answer from memory.
115
115
 
116
- dsh-model-everything is active: it checks claims about designs and code - facts against the source, behaviour as a model, structure as a graph.
116
+ dsh-model-everything checks claims about designs and code: facts against the source, behaviour as a model, structure as a graph.
117
117
 
118
118
  **Unsure which row applies?** Load \`model-everything\` first: it owns the doctrine, the schema and the routing to its siblings.
119
119
 
@@ -123,17 +123,19 @@ ${rows.join('\n')}
123
123
 
124
124
  **Tools** (dsh):
125
125
 
126
- - \`model_verify\` — one state machine: structural checks, adversarial probes, budgets, deadlines, regression.
127
- - \`model_compose_verify\` — two or more machines: deadlock, a rendezvous that never fires, and - with \`shared\` + \`accesses\` - an unordered write (C4) or a non-atomic update (C5).
128
- - \`model_datamodel_verify\` — a data model and its migration: keys, domains, coverage, copy consistency, rollback symmetry.
129
- - \`model_design_review\` — a design against its own declarations: layering, boundaries, substitutability, interface width. Graph shape is reported, not judged.
130
- - \`model_interleaving_scan\` — finds claims about threads, async and interrupts, names the family and routes each to what decides it. It proves nothing itself.
131
- - \`model_export\` — UPPAAL, TLA+, PRISM or SPIN input from a model. It exports; it does not check the target.
132
- - \`uml_render\`, \`uml_parse\`, \`uml_review\` — draw a model, read a diagram into one, audit one. Round-trip fidelity is measured.
133
- - \`uml_explain_labels\` — the accepted label and comment forms for one notation.
134
- - \`uml_structure_verify\` — dependency review of a structure drawing, one level or several. It audits the drawing, not the code.
135
- - \`diagram_render\`, \`diagram_review\`, \`diagram_diff\` — draw, size and compare a Mermaid or PlantUML source. Undrawable lines are refused by number.
136
- - \`report_diff\` — baseline against current: what a change added, removed or changed.
126
+ - \`model_verify\` — a state machine: structural checks, adversarial probes, budgets, deadlines, regression.
127
+ - \`model_compose_verify\` — several machines: deadlock, a handshake that never fires, an unordered write (C4), a non-atomic update (C5).
128
+ - \`model_datamodel_verify\` — a data model and its migration: keys, domains, coverage, copy consistency, rollback.
129
+ - \`model_design_review\` — a design against its own declarations: layering, boundaries, substitutability, interface width.
130
+ - \`model_interleaving_scan\` — finds concurrency claims, names the family, routes each to what decides it. Proves nothing itself.
131
+ - \`model_export\` — UPPAAL, TLA+, PRISM or SPIN input from a model. It does not check the target.
132
+ - \`uml_render\`, \`uml_parse\`, \`uml_review\` — draw a model, read a diagram into one, audit one; round-trip measured.
133
+ - \`uml_explain_labels\` — the label and comment forms a notation accepts.
134
+ - \`uml_structure_verify\` — dependency review of a structure drawing. It audits the drawing, not the code.
135
+ - \`diagram_render\`, \`diagram_review\`, \`diagram_diff\` — draw, size, compare a Mermaid or PlantUML source. Undrawable lines are refused by number.
136
+ - \`model_automaton_verify\` — an automaton or two: what it accepts, trap states, language relation, with a witness word.
137
+ - \`model_edit\` — one named change to a model file plus the finding delta. Refuses an edit that leaves the model invalid.
138
+ - \`report_diff\` — baseline against current: findings added, removed or changed.
137
139
 
138
140
  **Read a report**: gate on \`verdict\`, never on \`ok\`. \`verdictReason\` says why and \`nextSteps\` says what to do. \`ran\` says whether it executed, \`checksRun\` how much it examined: a \`skip\` is not a \`pass\`, and a code ending \`_UNDECIDED\` means the search hit its limit and decided nothing. Keys starting with \`_\` are notes: ignored, and left out of the model hash.
139
141