@v11g/agents-rock 1.0.7 → 1.0.9

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.
Files changed (215) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/plugins/reasoning/.claude-plugin/plugin.json +1 -1
  4. package/plugins/reasoning/evals/format-handoff-folder/graders/folder-named.md +8 -0
  5. package/plugins/reasoning/evals/format-handoff-folder/graders/skill-fired.md +7 -0
  6. package/plugins/reasoning/evals/format-handoff-folder/prompt.md +9 -0
  7. package/plugins/reasoning/evals/format-ids-and-supports/graders/ids-in-chat.md +8 -0
  8. package/plugins/reasoning/evals/format-ids-and-supports/graders/skill-fired.md +7 -0
  9. package/plugins/reasoning/evals/format-ids-and-supports/graders/supports-resolve.md +11 -0
  10. package/plugins/reasoning/evals/format-ids-and-supports/prompt.md +8 -0
  11. package/plugins/reasoning/evals/format-root-candidate-status/graders/candidate-status.md +11 -0
  12. package/plugins/reasoning/evals/format-root-candidate-status/graders/skill-fired.md +7 -0
  13. package/plugins/reasoning/evals/format-root-candidate-status/prompt.md +8 -0
  14. package/plugins/reasoning/evals/format-unsaved-continues/graders/analysis-completes.md +9 -0
  15. package/plugins/reasoning/evals/format-unsaved-continues/graders/not-saved-stated.md +9 -0
  16. package/plugins/reasoning/evals/format-unsaved-continues/graders/skill-fired.md +7 -0
  17. package/plugins/reasoning/evals/format-unsaved-continues/prompt.md +8 -0
  18. package/plugins/reasoning/evals/guardrail-unavailable-framework/graders/names-closest-available.md +5 -6
  19. package/plugins/reasoning/evals/guardrail-unavailable-framework/graders/no-improvised-levels.md +4 -6
  20. package/plugins/reasoning/evals/guardrail-unavailable-framework/graders/skill-fired.md +1 -1
  21. package/plugins/reasoning/evals/guardrail-unavailable-framework/graders/states-unavailable.md +4 -5
  22. package/plugins/reasoning/evals/guardrail-unavailable-framework/graders/systemic-design-fired.md +10 -0
  23. package/plugins/reasoning/evals/guardrail-unavailable-framework/prompt.md +2 -2
  24. package/plugins/reasoning/evals/ps-interview-first-question/graders/look-in-present.md +10 -0
  25. package/plugins/reasoning/evals/ps-interview-first-question/graders/no-fixed-exits.md +11 -0
  26. package/plugins/reasoning/evals/ps-interview-first-question/graders/options-from-input.md +15 -0
  27. package/plugins/reasoning/evals/ps-interview-first-question/graders/skill-fired.md +7 -0
  28. package/plugins/reasoning/evals/ps-interview-first-question/graders/source-hint.md +11 -0
  29. package/plugins/reasoning/evals/ps-interview-first-question/graders/targets-gap.md +13 -0
  30. package/plugins/reasoning/evals/ps-interview-first-question/prompt.md +8 -0
  31. package/plugins/reasoning/evals/ps-interview-five-whys/graders/look-in-present.md +10 -0
  32. package/plugins/reasoning/evals/ps-interview-five-whys/graders/no-fixed-exits.md +11 -0
  33. package/plugins/reasoning/evals/ps-interview-five-whys/graders/options-from-input.md +11 -0
  34. package/plugins/reasoning/evals/ps-interview-five-whys/graders/skill-fired.md +7 -0
  35. package/plugins/reasoning/evals/ps-interview-five-whys/graders/source-hint.md +11 -0
  36. package/plugins/reasoning/evals/ps-interview-five-whys/graders/targets-gap.md +15 -0
  37. package/plugins/reasoning/evals/ps-interview-five-whys/prompt.md +8 -0
  38. package/plugins/reasoning/evals/ps-router-handoff/graders/no-reselection.md +11 -0
  39. package/plugins/reasoning/evals/ps-router-handoff/graders/runs-rca.md +8 -0
  40. package/plugins/reasoning/evals/ps-router-handoff/graders/skill-fired.md +7 -0
  41. package/plugins/reasoning/evals/ps-router-handoff/prompt.md +11 -0
  42. package/plugins/reasoning/evals/routing-adaptive-discriminator/graders/confidence-single-word.md +10 -0
  43. package/plugins/reasoning/evals/routing-ambiguous-feature-request/graders/confidence-single-word.md +10 -0
  44. package/plugins/reasoning/evals/routing-classify-only/graders/confidence-single-word.md +10 -0
  45. package/plugins/reasoning/evals/routing-complex-adaptive-org-change/graders/confidence-single-word.md +10 -0
  46. package/plugins/reasoning/evals/routing-complex-adaptive-org-change/graders/no-unavailability-claim.md +10 -0
  47. package/plugins/reasoning/evals/routing-complex-delivery-slowdown/graders/confidence-single-word.md +10 -0
  48. package/plugins/reasoning/evals/routing-simple-null-pointer/graders/confidence-single-word.md +10 -0
  49. package/plugins/reasoning/evals/routing-thin-input-provisional/graders/confidence-single-word.md +10 -0
  50. package/plugins/reasoning/evals/sd-default-selection/graders/dates-traced.md +15 -0
  51. package/plugins/reasoning/evals/sd-default-selection/graders/interventions-cite-entries.md +12 -0
  52. package/plugins/reasoning/evals/sd-default-selection/graders/owners-from-input.md +8 -0
  53. package/plugins/reasoning/evals/sd-default-selection/graders/plan-steps-complete.md +21 -0
  54. package/plugins/reasoning/evals/sd-default-selection/graders/selects-systemic-design.md +12 -0
  55. package/plugins/reasoning/evals/sd-default-selection/graders/skill-fired.md +7 -0
  56. package/plugins/reasoning/evals/sd-default-selection/graders/systemic-design-fired.md +10 -0
  57. package/plugins/reasoning/evals/sd-default-selection/prompt.md +11 -0
  58. package/plugins/reasoning/evals/sd-named-framework-software/graders/names-no-skill.md +11 -0
  59. package/plugins/reasoning/evals/sd-named-framework-software/graders/no-systemic-block.md +10 -0
  60. package/plugins/reasoning/evals/sd-named-framework-software/graders/systemic-design-fired.md +10 -0
  61. package/plugins/reasoning/evals/sd-named-framework-software/prompt.md +8 -0
  62. package/plugins/reasoning/evals/sd-not-software/graders/no-systemic-block.md +10 -0
  63. package/plugins/reasoning/evals/sd-not-software/graders/says-out-of-scope.md +10 -0
  64. package/plugins/reasoning/evals/sd-not-software/prompt.md +8 -0
  65. package/plugins/reasoning/evals/sd-raw-input/graders/first-question-targets-model.md +11 -0
  66. package/plugins/reasoning/evals/sd-raw-input/graders/look-in-present.md +10 -0
  67. package/plugins/reasoning/evals/sd-raw-input/graders/model-gap-blocks-stop.md +14 -0
  68. package/plugins/reasoning/evals/sd-raw-input/graders/model-in-assumptions.md +13 -0
  69. package/plugins/reasoning/evals/sd-raw-input/graders/no-fixed-exits.md +11 -0
  70. package/plugins/reasoning/evals/sd-raw-input/graders/skill-fired.md +7 -0
  71. package/plugins/reasoning/evals/sd-raw-input/graders/systemic-design-fired.md +10 -0
  72. package/plugins/reasoning/evals/sd-raw-input/prompt.md +8 -0
  73. package/plugins/reasoning/evals/sd-theory-of-change/graders/links-carry-assumptions.md +9 -0
  74. package/plugins/reasoning/evals/sd-theory-of-change/graders/no-dates.md +8 -0
  75. package/plugins/reasoning/evals/sd-theory-of-change/graders/skill-fired.md +7 -0
  76. package/plugins/reasoning/evals/sd-theory-of-change/graders/systemic-design-fired.md +10 -0
  77. package/plugins/reasoning/evals/sd-theory-of-change/graders/toc-block.md +10 -0
  78. package/plugins/reasoning/evals/sd-theory-of-change/prompt.md +8 -0
  79. package/plugins/reasoning/evals/sd-three-horizons/graders/dates-are-assumptions.md +11 -0
  80. package/plugins/reasoning/evals/sd-three-horizons/graders/owners-are-roles.md +8 -0
  81. package/plugins/reasoning/evals/sd-three-horizons/graders/skill-fired.md +7 -0
  82. package/plugins/reasoning/evals/sd-three-horizons/graders/systemic-design-fired.md +10 -0
  83. package/plugins/reasoning/evals/sd-three-horizons/graders/three-horizons-block.md +10 -0
  84. package/plugins/reasoning/evals/sd-three-horizons/prompt.md +9 -0
  85. package/plugins/reasoning/evals/st-causal-loop-unclosed/graders/edges-carry-support-labels.md +2 -2
  86. package/plugins/reasoning/evals/st-causal-loop-unclosed/graders/no-invented-delays.md +7 -4
  87. package/plugins/reasoning/evals/st-interview-first-question/graders/look-in-present.md +10 -0
  88. package/plugins/reasoning/evals/st-interview-first-question/graders/no-fixed-exits.md +11 -0
  89. package/plugins/reasoning/evals/st-interview-first-question/graders/options-from-input.md +11 -0
  90. package/plugins/reasoning/evals/st-interview-first-question/graders/skill-fired.md +7 -0
  91. package/plugins/reasoning/evals/st-interview-first-question/graders/source-hint.md +11 -0
  92. package/plugins/reasoning/evals/st-interview-first-question/graders/targets-gap.md +13 -0
  93. package/plugins/reasoning/evals/st-interview-first-question/prompt.md +8 -0
  94. package/plugins/reasoning/evals/st-selection-boundary/graders/one-block-only.md +9 -6
  95. package/plugins/reasoning/skills/problem-router/README.md +6 -0
  96. package/plugins/reasoning/skills/problem-router/SKILL.md +11 -11
  97. package/plugins/reasoning/skills/problem-router/references/contract.md +117 -16
  98. package/plugins/reasoning/skills/problem-solving/README.md +10 -0
  99. package/plugins/reasoning/skills/problem-solving/SKILL.md +15 -3
  100. package/plugins/reasoning/skills/problem-solving/references/contract.md +117 -16
  101. package/plugins/reasoning/skills/problem-solving/references/interview.md +68 -0
  102. package/plugins/reasoning/skills/systemic-design/README.md +45 -0
  103. package/plugins/reasoning/skills/systemic-design/SKILL.md +184 -0
  104. package/plugins/reasoning/skills/systemic-design/frameworks/systemic-design.md +39 -0
  105. package/plugins/reasoning/skills/systemic-design/frameworks/theory-of-change.md +34 -0
  106. package/plugins/reasoning/skills/systemic-design/frameworks/three-horizons.md +28 -0
  107. package/plugins/reasoning/skills/systemic-design/references/contract.md +205 -0
  108. package/plugins/reasoning/skills/systemic-design/references/interview.md +68 -0
  109. package/plugins/reasoning/skills/systems-thinking/README.md +13 -6
  110. package/plugins/reasoning/skills/systems-thinking/SKILL.md +18 -6
  111. package/plugins/reasoning/skills/systems-thinking/frameworks/causal-loop.md +5 -2
  112. package/plugins/reasoning/skills/systems-thinking/frameworks/leverage-points.md +16 -7
  113. package/plugins/reasoning/skills/systems-thinking/frameworks/system-map.md +4 -5
  114. package/plugins/reasoning/skills/systems-thinking/references/contract.md +117 -16
  115. package/plugins/reasoning/skills/systems-thinking/references/interview.md +68 -0
  116. package/plugins/solution-architect/.claude-plugin/plugin.json +1 -1
  117. package/plugins/solution-architect/skills/analyze-requirements/SKILL.md +3 -2
  118. package/plugins/solution-architect/skills/analyze-requirements/references/rewriting.md +108 -0
  119. package/plugins/solution-architect/skills/analyze-requirements/scripts/drift.mjs +64 -0
  120. package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/cdp.mjs +4 -1
  121. package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/drift.mjs +31 -0
  122. package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/git-diff.mjs +27 -0
  123. package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/quality-gate.mjs +16 -1
  124. package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/state.mjs +52 -0
  125. package/plugins/solution-architect/skills/analyze-requirements/scripts/record.mjs +87 -0
  126. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/drift-cli.test.mjs +178 -0
  127. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/drift.test.mjs +76 -0
  128. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/git-diff.test.mjs +62 -0
  129. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/quality-gate.test.mjs +9 -0
  130. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/record-cli.test.mjs +136 -0
  131. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/rerun-safety.test.mjs +53 -0
  132. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/rewriting.test.mjs +80 -0
  133. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/state.test.mjs +123 -0
  134. package/plugins/solution-architect/skills/estimate/README.md +20 -15
  135. package/plugins/solution-architect/skills/estimate/SKILL.md +10 -6
  136. package/plugins/solution-architect/skills/estimate/assets/estimate-template-agentic.html +111 -138
  137. package/plugins/solution-architect/skills/estimate/assets/estimate-template.html +361 -247
  138. package/plugins/solution-architect/skills/estimate/assets/scores-review-template.html +5 -4
  139. package/plugins/solution-architect/skills/estimate/evals/evals.json +7 -7
  140. package/plugins/solution-architect/skills/estimate/references/agentic-estimation.md +4 -2
  141. package/plugins/solution-architect/skills/estimate/references/ai-multipliers.md +38 -82
  142. package/plugins/solution-architect/skills/estimate/references/interview.md +56 -35
  143. package/plugins/solution-architect/skills/estimate/references/scoring-guide.md +40 -4
  144. package/plugins/solution-architect/skills/estimate/references/techniques.md +29 -21
  145. package/plugins/solution-architect/skills/estimate/references/writing.md +75 -43
  146. package/plugins/solution-architect/skills/estimate/scripts/lib/checks.mjs +37 -5
  147. package/plugins/solution-architect/skills/estimate/scripts/lib/context-schema.mjs +35 -0
  148. package/plugins/solution-architect/skills/estimate/scripts/lib/estimate-math.mjs +17 -75
  149. package/plugins/solution-architect/skills/estimate/scripts/lib/inline.mjs +5 -5
  150. package/plugins/solution-architect/skills/estimate/scripts/lib/pricing.mjs +78 -0
  151. package/plugins/solution-architect/skills/estimate/scripts/lib/project-price.mjs +96 -0
  152. package/plugins/solution-architect/skills/estimate/scripts/lib/redact.mjs +67 -19
  153. package/plugins/solution-architect/skills/estimate/scripts/lib/roadmap.mjs +4 -5
  154. package/plugins/solution-architect/skills/estimate/scripts/lib/rollup.mjs +48 -73
  155. package/plugins/solution-architect/skills/estimate/scripts/lib/schema.mjs +28 -13
  156. package/plugins/solution-architect/skills/estimate/scripts/lib/score-csv.mjs +2 -2
  157. package/plugins/solution-architect/skills/estimate/scripts/lib/score-html.mjs +1 -1
  158. package/plugins/solution-architect/skills/estimate/scripts/lib/scoring.mjs +2 -2
  159. package/plugins/solution-architect/skills/estimate/scripts/render.mjs +1 -1
  160. package/plugins/solution-architect/skills/estimate/scripts/score-review.mjs +1 -1
  161. package/plugins/solution-architect/skills/estimate/scripts/test/browser-agentic.test.mjs +143 -0
  162. package/plugins/solution-architect/skills/estimate/scripts/test/browser.test.mjs +209 -50
  163. package/plugins/solution-architect/skills/estimate/scripts/test/compute.test.mjs +57 -32
  164. package/plugins/solution-architect/skills/estimate/scripts/test/e2e.test.mjs +52 -0
  165. package/plugins/solution-architect/skills/estimate/scripts/test/estimate-math.test.mjs +25 -112
  166. package/plugins/solution-architect/skills/estimate/scripts/test/fixtures/agentic-estimation-fail.md +0 -10
  167. package/plugins/solution-architect/skills/estimate/scripts/test/fixtures/agentic-estimation-pass.md +0 -10
  168. package/plugins/solution-architect/skills/estimate/scripts/test/fixtures/agentic-inputs.json +1 -7
  169. package/plugins/solution-architect/skills/estimate/scripts/test/fixtures/booking-inputs.json +11 -10
  170. package/plugins/solution-architect/skills/estimate/scripts/test/fixtures/estimation-fail.md +6 -0
  171. package/plugins/solution-architect/skills/estimate/scripts/test/fixtures/estimation-pass.md +17 -21
  172. package/plugins/solution-architect/skills/estimate/scripts/test/pricing.test.mjs +88 -0
  173. package/plugins/solution-architect/skills/estimate/scripts/test/project-price.test.mjs +93 -0
  174. package/plugins/solution-architect/skills/estimate/scripts/test/references.test.mjs +86 -24
  175. package/plugins/solution-architect/skills/estimate/scripts/test/render.test.mjs +185 -31
  176. package/plugins/solution-architect/skills/estimate/scripts/test/schema.test.mjs +114 -61
  177. package/plugins/solution-architect/skills/estimate/scripts/test/score-review.test.mjs +34 -1
  178. package/plugins/solution-architect/skills/estimate/scripts/test/validate.test.mjs +103 -9
  179. package/plugins/solution-architect/skills/estimate/scripts/test/xlsx-export.test.mjs +292 -71
  180. package/plugins/solution-architect/skills/new-lead/SKILL.md +4 -3
  181. package/plugins/solution-architect/skills/proposal/README.md +9 -7
  182. package/plugins/solution-architect/skills/proposal/SKILL.md +10 -7
  183. package/plugins/solution-architect/skills/proposal/evals/evals.json +29 -11
  184. package/plugins/solution-architect/skills/proposal/evals/fixtures/gate-check-unpriced-harborline/ARCHITECTURE.md +65 -0
  185. package/plugins/solution-architect/skills/proposal/evals/fixtures/gate-check-unpriced-harborline/brief.md +21 -0
  186. package/plugins/solution-architect/skills/proposal/evals/fixtures/gate-check-unpriced-harborline/estimation-inputs.json +126 -0
  187. package/plugins/solution-architect/skills/proposal/evals/fixtures/gate-check-unpriced-harborline/estimation.json +215 -0
  188. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/estimation-inputs.json +224 -34
  189. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/estimation.json +103 -114
  190. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/estimation.md +48 -22
  191. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-meridian-dental/estimation-inputs.json +211 -33
  192. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-meridian-dental/estimation.json +102 -117
  193. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-meridian-dental/estimation.md +48 -25
  194. package/plugins/solution-architect/skills/proposal/references/interview.md +3 -6
  195. package/plugins/solution-architect/skills/proposal/references/review.md +5 -4
  196. package/plugins/solution-architect/skills/proposal/references/writing.md +33 -31
  197. package/plugins/solution-architect/skills/proposal/scripts/derive.mjs +1 -1
  198. package/plugins/solution-architect/skills/proposal/scripts/lib/checks-client.mjs +5 -22
  199. package/plugins/solution-architect/skills/proposal/scripts/lib/checks-doc.mjs +18 -8
  200. package/plugins/solution-architect/skills/proposal/scripts/lib/checks.mjs +6 -2
  201. package/plugins/solution-architect/skills/proposal/scripts/lib/figures.mjs +24 -33
  202. package/plugins/solution-architect/skills/proposal/scripts/lib/sections.mjs +1 -1
  203. package/plugins/solution-architect/skills/proposal/scripts/test/checks-client.test.mjs +50 -47
  204. package/plugins/solution-architect/skills/proposal/scripts/test/checks-doc.test.mjs +99 -40
  205. package/plugins/solution-architect/skills/proposal/scripts/test/docs.test.mjs +11 -5
  206. package/plugins/solution-architect/skills/proposal/scripts/test/e2e.test.mjs +1 -1
  207. package/plugins/solution-architect/skills/proposal/scripts/test/evals-fixtures.test.mjs +39 -0
  208. package/plugins/solution-architect/skills/proposal/scripts/test/figures.test.mjs +67 -54
  209. package/plugins/solution-architect/skills/proposal/scripts/test/fixtures/proposal-fail.md +6 -1
  210. package/plugins/solution-architect/skills/proposal/scripts/test/fixtures/proposal-pass.md +8 -12
  211. package/plugins/solution-architect/skills/proposal/scripts/test/render.test.mjs +1 -1
  212. package/plugins/solution-architect/skills/proposal/scripts/test/validate.test.mjs +3 -2
  213. package/plugins/reasoning/evals/guardrail-unavailable-framework/graders/names-owning-skill.md +0 -9
  214. package/plugins/reasoning/evals/routing-complex-adaptive-org-change/graders/states-systemic-design-unavailable.md +0 -15
  215. package/plugins/solution-architect/skills/estimate/scripts/lib/scenario-schema.mjs +0 -39
@@ -17,6 +17,46 @@ framework that ran. Nothing else appears at the top level.
17
17
  An empty `evidence` list is a finding, not an omission: it means nothing
18
18
  in the input supports the analysis, and the output says so.
19
19
 
20
+ ## Ids and links
21
+
22
+ Every entry carries an `id`, unique within the run:
23
+
24
+ | Entry | Prefix |
25
+ | ----- | ------ |
26
+ | `evidence` | `e` — `e1`, `e2`, … |
27
+ | `assumptions` | `a` |
28
+ | `open_questions` | `q` |
29
+ | any item inside the framework block | `c` |
30
+
31
+ Number in order of first appearance. An entry keeps its id when the
32
+ result is re-run after an interview answer; a new entry takes the next
33
+ free number. Never reuse an id within a run.
34
+
35
+ Framework block items follow one rule, for every block:
36
+
37
+ - An item that is a string becomes `{id, text}`.
38
+ - A single-value field that holds a claim (`rca.symptom`, `pdca.metric`,
39
+ …) is an item too. The router block's `problem_class`,
40
+ `reasoning_skill`, `recommended_framework` and `confidence` stay plain
41
+ values — they are routing labels, not claims. A `null` stays `null`.
42
+ - An item that is an object (`{step, owner_role, when, signal}`,
43
+ `{from, to, assumption}`, …) gains `id` and keeps its fields.
44
+ - A field that refers to another item (`links.from`, `links.to`, the
45
+ entry an intervention targets, the element a leverage point sits on)
46
+ holds that item's id, not its text.
47
+ - A cause labelled `root` or `root_candidate` carries the label as
48
+ `status`.
49
+
50
+ Links:
51
+
52
+ - `evidence` and `assumptions` entries carry `supports: [ids]` — the `c`
53
+ items they back. An empty list is a finding: the entry backs nothing.
54
+ - `open_questions` entries carry `blocks: [ids]` — the `c` items the
55
+ question holds back.
56
+
57
+ "Name the `evidence` entry that ties this cause to the symptom" is
58
+ answered by an id in that entry's `supports`.
59
+
20
60
  ## Framework blocks
21
61
 
22
62
  | Block | Fields |
@@ -31,6 +71,9 @@ in the input supports the analysis, and the output says so.
31
71
  | `system_map` | `system_boundary`, `actors`, `components`, `relationships`, `dependencies`, `external_factors` |
32
72
  | `causal_loop` | `variables`, `links`, `loops`, `delays` |
33
73
  | `leverage_points` | `elements`, `points` |
74
+ | `systemic_design` | `explore`, `reframe`, `create`, `catalyse` |
75
+ | `theory_of_change` | `inputs`, `activities`, `outputs`, `short_term_outcomes`, `long_term_outcomes`, `impact`, `links` |
76
+ | `three_horizons` | `h1`, `h2`, `h3` |
34
77
 
35
78
  Later skills add blocks. The core never changes — that is what lets one
36
79
  skill consume another's result without knowing which framework produced
@@ -62,40 +105,98 @@ evidence.
62
105
 
63
106
  ## Rendering
64
107
 
65
- In chat by default: markdown headings, one per core field, then the
66
- framework block.
108
+ In chat: markdown headings, one per core field, then the framework block.
109
+ Each entry's id renders as a tag after it — `[e1]`, `[c4]` — so the human
110
+ can refer to it. Its `supports` or `blocks` list renders right after the
111
+ tag as `-> [c1, c2]`; an empty list renders as `-> []`, never as prose in
112
+ its place.
67
113
 
68
114
  A structure containing a cycle gets a diagram; one without gets prose.
69
115
  Prose renders a cycle as a list, and a list loses the closure — `A -> B ->
70
116
  C -> A` read top to bottom does not show that it comes back.
71
117
 
72
- On request: one file, `problem-analysis.md`, in the directory the human
73
- names. Core fields and the framework block become YAML front-matter above
74
- the markdown body. No second JSON file is written — it would be a
75
- duplicate representation with nothing keeping the two in agreement.
118
+ ## Saving
119
+
120
+ Every run is saved to one file:
121
+
122
+ ```
123
+ ~/.reasoning/problems/<YYYY-MM-DD>-<slug>/<NN>-<skill>.md
124
+ ```
125
+
126
+ Resolve `~` to the absolute home directory before writing.
127
+
128
+ - `<YYYY-MM-DD>` — today's date, when the problem folder is created.
129
+ - `<slug>` — the problem in 2–5 lowercase kebab-case words. If that folder
130
+ already exists and this run did not start from a hand-off, append `-2`,
131
+ `-3`, …. List `~/.reasoning/problems/` to check.
132
+ - `<NN>` — `01`, `02`, …: the next free number in the folder. List the
133
+ folder to find it.
134
+ - `<skill>` — `problem-router`, `problem-solving`, `systems-thinking`, or
135
+ `systemic-design`.
136
+
137
+ | Event | Write |
138
+ | ----- | ----- |
139
+ | A run starts with no hand-off | create a new problem folder |
140
+ | A run starts from a hand-off | use the folder the hand-off names |
141
+ | The framework's first pass completes, before any interview round | write `<NN>-<skill>.md` |
142
+ | An interview answer changes the result | rewrite the same file, ids kept |
143
+ | The human re-runs a skill on the same problem | the next `<NN>`; the old file stays |
144
+ | The result is emitted | rewrite the same file, ids kept |
145
+
146
+ Every hand-off names the problem folder path, so the receiving skill
147
+ writes into it. Name it even when this run's write failed; the receiving
148
+ skill creates the folder if it is missing.
149
+
150
+ If a write is refused or fails, continue in chat, say once "not saved:
151
+ <reason>", and do not retry within the run.
152
+
153
+ The file holds the core fields and the framework block as YAML
154
+ front-matter above the markdown body chat showed. No second JSON file is
155
+ written — it would be a duplicate representation with nothing keeping the
156
+ two in agreement.
157
+
158
+ Double-quote every free-text value, or use `|` for multi-line text — a
159
+ colon followed by a space inside an unquoted value breaks the YAML.
76
160
 
77
161
  Example saved file:
78
162
 
79
163
  ```markdown
80
164
  ---
81
- problem: Deploys fail intermittently after the runner image update.
165
+ problem: "Deploys fail intermittently after the runner image update."
82
166
  framework_used: five-whys
83
- framework_reason: Narrow scope, causal chain looks linear.
167
+ framework_reason: "Narrow scope, causal chain looks linear."
84
168
  evidence:
85
- - type: log
86
- ref: ci-run-4471
169
+ - id: e1
170
+ type: log
171
+ ref: "ci-run-4471"
172
+ supports: [c1, c2]
87
173
  assumptions:
88
- - statement: Staging mirrors production runner config.
174
+ - id: a1
175
+ statement: "Staging mirrors production runner config."
89
176
  status: unverified
177
+ supports: [c2]
90
178
  open_questions:
91
- - Who owns the runner image?
179
+ - id: q1
180
+ text: "Who owns the runner image?"
181
+ blocks: [c3]
182
+ - id: q2
183
+ text: |
184
+ Which runner pool failed — shared or dedicated?
185
+ Look in: the CI runner dashboard
186
+ blocks: [c2]
92
187
  five_whys:
93
188
  why_chain:
94
- - Deploys fail -> the runner cannot pull the base image
95
- - It cannot pull -> the registry credential expired
96
- root_candidate: Credential rotation is manual and undocumented.
189
+ - id: c1
190
+ text: "Deploys fail -> the runner cannot pull the base image"
191
+ - id: c2
192
+ text: "It cannot pull -> the registry credential expired"
193
+ root_candidate:
194
+ id: c3
195
+ text: "Credential rotation is manual and undocumented."
196
+ status: root_candidate
97
197
  uncertainties:
98
- - Whether rotation was ever automated.
198
+ - id: c4
199
+ text: "Whether rotation was ever automated."
99
200
  ---
100
201
 
101
202
  # Problem analysis
@@ -11,6 +11,10 @@ Run `/reasoning:problem-solving "<problem>"` to get a recommendation, or
11
11
  chosen framework. It also accepts a hand-off from `problem-router` once the
12
12
  human has confirmed the route.
13
13
 
14
+ When the evidence runs out before the framework's stopping rule fires and
15
+ you're there to answer, it asks you for the missing piece — one question
16
+ at a time, each naming where to look — instead of stopping short.
17
+
14
18
  ## When to reach for it
15
19
 
16
20
  - A problem needs analysis, not a direct answer — recurring failures,
@@ -45,3 +49,9 @@ block, sized to what a two-line problem with one log actually supports.
45
49
  - Doesn't pad a small problem out to fill every section of a framework —
46
50
  length scales to the evidence, not to the template.
47
51
  - Doesn't emit numeric confidence — only `low` / `medium` / `high`.
52
+
53
+ ## Output
54
+
55
+ Every run is also saved under `~/.reasoning/problems/`, one folder per
56
+ problem and one file per run. If Claude Code isn't allowed to write
57
+ there, the run says "not saved" and carries on.
@@ -39,6 +39,8 @@ see Guardrails.
39
39
  `double_diamond`, `a3`, or `pdca`.
40
40
  - Whatever the `problem-router` hand-off carries: its classification,
41
41
  recommended framework, and reasoning, when this run started there.
42
+ - The problem folder a hand-off names, per `references/contract.md`
43
+ Saving. Write this run's file there.
42
44
 
43
45
  ## Entry paths
44
46
 
@@ -95,6 +97,10 @@ proceed.
95
97
  4. Stop at that file's own stopping rule, not a fixed depth or section
96
98
  count. Apply the rule's test, not an impression of whether it feels
97
99
  done — see each file's Stop when section.
100
+ 4b. If the stopping rule has not fired, follow
101
+ `references/interview.md`. With a human present it returns you to
102
+ step 3 with new evidence; headless, it shapes the first open question.
103
+ Then continue to step 5.
98
104
  5. Emit the result per Output contract below.
99
105
 
100
106
  ## Output contract
@@ -148,13 +154,19 @@ test, not a judgment call.
148
154
  framework and hand the problem over. Don't run the framework here, and
149
155
  don't refuse it.
150
156
  - **Framework named that belongs to `systemic-design`** — theory of change,
151
- three horizons, explore/reframe/create/catalyse. Say which skill owns it
152
- and that the skill isn't built in this release. Don't improvise the
153
- framework here.
157
+ three horizons, explore/reframe/create/catalyse. That skill is built:
158
+ say it owns the framework and hand the problem over. Don't run the
159
+ framework here, and don't refuse it.
154
160
  - **Framework named but unavailable** — from PRD §10.2's later set: DMAIC,
155
161
  OODA, TRIZ, Design Sprint. Say it isn't built yet, and name the closest
156
162
  available framework from the table above with the difference stated,
157
163
  rather than silently substituting it.
164
+ - **Asking without naming the gap.** An interview question must fill a
165
+ specific field, layer, or link the stopping rule is blocked on. A
166
+ question that fills nothing named is an open-ended interview — cut it.
167
+ - **A source hint that names what to expect.** `Look in:` names where the
168
+ evidence lives. Naming what the human will find there previews a cause
169
+ the evidence hasn't supported.
158
170
 
159
171
  ## Examples
160
172
 
@@ -17,6 +17,46 @@ framework that ran. Nothing else appears at the top level.
17
17
  An empty `evidence` list is a finding, not an omission: it means nothing
18
18
  in the input supports the analysis, and the output says so.
19
19
 
20
+ ## Ids and links
21
+
22
+ Every entry carries an `id`, unique within the run:
23
+
24
+ | Entry | Prefix |
25
+ | ----- | ------ |
26
+ | `evidence` | `e` — `e1`, `e2`, … |
27
+ | `assumptions` | `a` |
28
+ | `open_questions` | `q` |
29
+ | any item inside the framework block | `c` |
30
+
31
+ Number in order of first appearance. An entry keeps its id when the
32
+ result is re-run after an interview answer; a new entry takes the next
33
+ free number. Never reuse an id within a run.
34
+
35
+ Framework block items follow one rule, for every block:
36
+
37
+ - An item that is a string becomes `{id, text}`.
38
+ - A single-value field that holds a claim (`rca.symptom`, `pdca.metric`,
39
+ …) is an item too. The router block's `problem_class`,
40
+ `reasoning_skill`, `recommended_framework` and `confidence` stay plain
41
+ values — they are routing labels, not claims. A `null` stays `null`.
42
+ - An item that is an object (`{step, owner_role, when, signal}`,
43
+ `{from, to, assumption}`, …) gains `id` and keeps its fields.
44
+ - A field that refers to another item (`links.from`, `links.to`, the
45
+ entry an intervention targets, the element a leverage point sits on)
46
+ holds that item's id, not its text.
47
+ - A cause labelled `root` or `root_candidate` carries the label as
48
+ `status`.
49
+
50
+ Links:
51
+
52
+ - `evidence` and `assumptions` entries carry `supports: [ids]` — the `c`
53
+ items they back. An empty list is a finding: the entry backs nothing.
54
+ - `open_questions` entries carry `blocks: [ids]` — the `c` items the
55
+ question holds back.
56
+
57
+ "Name the `evidence` entry that ties this cause to the symptom" is
58
+ answered by an id in that entry's `supports`.
59
+
20
60
  ## Framework blocks
21
61
 
22
62
  | Block | Fields |
@@ -31,6 +71,9 @@ in the input supports the analysis, and the output says so.
31
71
  | `system_map` | `system_boundary`, `actors`, `components`, `relationships`, `dependencies`, `external_factors` |
32
72
  | `causal_loop` | `variables`, `links`, `loops`, `delays` |
33
73
  | `leverage_points` | `elements`, `points` |
74
+ | `systemic_design` | `explore`, `reframe`, `create`, `catalyse` |
75
+ | `theory_of_change` | `inputs`, `activities`, `outputs`, `short_term_outcomes`, `long_term_outcomes`, `impact`, `links` |
76
+ | `three_horizons` | `h1`, `h2`, `h3` |
34
77
 
35
78
  Later skills add blocks. The core never changes — that is what lets one
36
79
  skill consume another's result without knowing which framework produced
@@ -62,40 +105,98 @@ evidence.
62
105
 
63
106
  ## Rendering
64
107
 
65
- In chat by default: markdown headings, one per core field, then the
66
- framework block.
108
+ In chat: markdown headings, one per core field, then the framework block.
109
+ Each entry's id renders as a tag after it — `[e1]`, `[c4]` — so the human
110
+ can refer to it. Its `supports` or `blocks` list renders right after the
111
+ tag as `-> [c1, c2]`; an empty list renders as `-> []`, never as prose in
112
+ its place.
67
113
 
68
114
  A structure containing a cycle gets a diagram; one without gets prose.
69
115
  Prose renders a cycle as a list, and a list loses the closure — `A -> B ->
70
116
  C -> A` read top to bottom does not show that it comes back.
71
117
 
72
- On request: one file, `problem-analysis.md`, in the directory the human
73
- names. Core fields and the framework block become YAML front-matter above
74
- the markdown body. No second JSON file is written — it would be a
75
- duplicate representation with nothing keeping the two in agreement.
118
+ ## Saving
119
+
120
+ Every run is saved to one file:
121
+
122
+ ```
123
+ ~/.reasoning/problems/<YYYY-MM-DD>-<slug>/<NN>-<skill>.md
124
+ ```
125
+
126
+ Resolve `~` to the absolute home directory before writing.
127
+
128
+ - `<YYYY-MM-DD>` — today's date, when the problem folder is created.
129
+ - `<slug>` — the problem in 2–5 lowercase kebab-case words. If that folder
130
+ already exists and this run did not start from a hand-off, append `-2`,
131
+ `-3`, …. List `~/.reasoning/problems/` to check.
132
+ - `<NN>` — `01`, `02`, …: the next free number in the folder. List the
133
+ folder to find it.
134
+ - `<skill>` — `problem-router`, `problem-solving`, `systems-thinking`, or
135
+ `systemic-design`.
136
+
137
+ | Event | Write |
138
+ | ----- | ----- |
139
+ | A run starts with no hand-off | create a new problem folder |
140
+ | A run starts from a hand-off | use the folder the hand-off names |
141
+ | The framework's first pass completes, before any interview round | write `<NN>-<skill>.md` |
142
+ | An interview answer changes the result | rewrite the same file, ids kept |
143
+ | The human re-runs a skill on the same problem | the next `<NN>`; the old file stays |
144
+ | The result is emitted | rewrite the same file, ids kept |
145
+
146
+ Every hand-off names the problem folder path, so the receiving skill
147
+ writes into it. Name it even when this run's write failed; the receiving
148
+ skill creates the folder if it is missing.
149
+
150
+ If a write is refused or fails, continue in chat, say once "not saved:
151
+ <reason>", and do not retry within the run.
152
+
153
+ The file holds the core fields and the framework block as YAML
154
+ front-matter above the markdown body chat showed. No second JSON file is
155
+ written — it would be a duplicate representation with nothing keeping the
156
+ two in agreement.
157
+
158
+ Double-quote every free-text value, or use `|` for multi-line text — a
159
+ colon followed by a space inside an unquoted value breaks the YAML.
76
160
 
77
161
  Example saved file:
78
162
 
79
163
  ```markdown
80
164
  ---
81
- problem: Deploys fail intermittently after the runner image update.
165
+ problem: "Deploys fail intermittently after the runner image update."
82
166
  framework_used: five-whys
83
- framework_reason: Narrow scope, causal chain looks linear.
167
+ framework_reason: "Narrow scope, causal chain looks linear."
84
168
  evidence:
85
- - type: log
86
- ref: ci-run-4471
169
+ - id: e1
170
+ type: log
171
+ ref: "ci-run-4471"
172
+ supports: [c1, c2]
87
173
  assumptions:
88
- - statement: Staging mirrors production runner config.
174
+ - id: a1
175
+ statement: "Staging mirrors production runner config."
89
176
  status: unverified
177
+ supports: [c2]
90
178
  open_questions:
91
- - Who owns the runner image?
179
+ - id: q1
180
+ text: "Who owns the runner image?"
181
+ blocks: [c3]
182
+ - id: q2
183
+ text: |
184
+ Which runner pool failed — shared or dedicated?
185
+ Look in: the CI runner dashboard
186
+ blocks: [c2]
92
187
  five_whys:
93
188
  why_chain:
94
- - Deploys fail -> the runner cannot pull the base image
95
- - It cannot pull -> the registry credential expired
96
- root_candidate: Credential rotation is manual and undocumented.
189
+ - id: c1
190
+ text: "Deploys fail -> the runner cannot pull the base image"
191
+ - id: c2
192
+ text: "It cannot pull -> the registry credential expired"
193
+ root_candidate:
194
+ id: c3
195
+ text: "Credential rotation is manual and undocumented."
196
+ status: root_candidate
97
197
  uncertainties:
98
- - Whether rotation was ever automated.
198
+ - id: c4
199
+ text: "Whether rotation was ever automated."
99
200
  ---
100
201
 
101
202
  # Problem analysis
@@ -0,0 +1,68 @@
1
+ # Evidence interview
2
+
3
+ When a framework's stopping rule does not fire, the evidence a human holds
4
+ is often what's missing. Ask for it before stopping short.
5
+
6
+ ## Trigger
7
+
8
+ All three must hold for the interview to run.
9
+
10
+ 1. The framework has run and its stopping rule (or test) has not fired,
11
+ or fired only by naming missing evidence — an empty level, an
12
+ unevidenced link, a `root_candidate`, a chain that stopped short.
13
+ 2. You can name the specific gap blocking that rule — a field, layer, or
14
+ link, e.g. "`rca.contributing` is empty".
15
+ 3. `AskUserQuestion` is available — the same test step 2 applies before
16
+ asking the human to pick a framework. If a call errors, the run is
17
+ headless from that point.
18
+
19
+ **Headless.** If 1 and 2 hold but 3 does not, stop short, and make the
20
+ first `open_questions` entry the question round 1 would have asked — the
21
+ question, its `Look in:` line, and its two options, without the fixed
22
+ exits. If 1 or 2 does not hold, emit as before.
23
+
24
+ ## One round
25
+
26
+ Ask exactly one question with `AskUserQuestion`.
27
+
28
+ - **Question** — aimed at the one named gap, using this problem's details:
29
+ its figures, times, components. Not generic wording.
30
+ - **Source hint** — the question text's second line, `Look in: …`, naming
31
+ where the evidence lives: a log, dashboard, trace, ticket, or the person
32
+ who owns it. Never what to expect there. "Look in: the gateway access
33
+ log" passes. "Check whether the DB pool is exhausted" fails — it asserts
34
+ a cause.
35
+ - **Options** — two concrete options drawn from the input: dimensions to
36
+ discriminate along (transaction type, node, region), not guessed causes.
37
+ Then two fixed exits: `Don't know` and `Stop, analyze now`. Free text and
38
+ pasted logs arrive through the tool's built-in Other.
39
+
40
+ ## Answers
41
+
42
+ | Answer | Record as | Then |
43
+ | ------ | --------- | ---- |
44
+ | Content | `evidence`, type `interview`, ref `round N` | re-run the framework from step 3 |
45
+ | Pasted log or figures | `evidence`, type `log` or `metric` | re-run |
46
+ | Picked option | `evidence`, type `interview`, ref `round N` | re-run |
47
+ | Confirms an assumption | that assumption's status becomes `confirmed` | re-run |
48
+ | Don't know | `open_questions` | never ask about that gap again |
49
+ | Stop | nothing | emit now, stating "stopped on request" |
50
+
51
+ A re-run is the same framework over more evidence, not a second framework.
52
+ After each re-run, rewrite the saved file per `references/contract.md`
53
+ Saving, keeping every existing id.
54
+
55
+ | Situation | Handling |
56
+ | --------- | -------- |
57
+ | Answer contradicts existing evidence | Keep both, and name the contradiction in `open_questions`. |
58
+ | Answer meets another class's definition in `problem-router` — in `problem-solving`, recurrence (`complex`) or an actor adapting to fixes (`complex-adaptive`); in `systems-thinking`, only `complex-adaptive`; in `systemic-design`, `simple` or `ambiguous` | End the interview and emit. In `systems-thinking`, name `systemic-design` as the next run; elsewhere, recommend re-running `problem-router`. Do not start a second framework. |
59
+ | Human asserts "the cause is X" | Record as `interview` evidence: "the human believes X". It supports a cause only if an observation ties X to the symptom. |
60
+ | Human rejects the question to ask something | Answer in chat, then re-ask the same question. The round does not count. |
61
+ | Human rejects the question with no message | Treat as Stop. |
62
+
63
+ ## End
64
+
65
+ The loop ends when the stopping rule fires, no askable gap remains, the
66
+ human picks Stop, an answer meets another class's definition, or round 6
67
+ completes. Say in the output which one ended
68
+ it.
@@ -0,0 +1,45 @@
1
+ # systemic-design
2
+
3
+ Plans how to change a system of people, incentives, and habits so a
4
+ problem stops coming back.
5
+
6
+ Answers: **how should the system be changed?**
7
+
8
+ ## Frameworks
9
+
10
+ | Framework | Use it when |
11
+ | --- | --- |
12
+ | Theory of Change | One change is chosen; trace it from action to impact. |
13
+ | Three Horizons | You know today's state and the future you want. |
14
+ | Systemic Design | Otherwise: explore, reframe, create, catalyse. |
15
+
16
+ Selection is first-match-wins, top to bottom. The skill shortlists two
17
+ and recommends one; you pick.
18
+
19
+ ## Usage
20
+
21
+ ```
22
+ /reasoning:systemic-design "<problem>"
23
+ /reasoning:systemic-design three_horizons "<problem>"
24
+ ```
25
+
26
+ Or hand it a `systems-thinking` result, or let `problem-router` route
27
+ there.
28
+
29
+ When a piece of the system model is missing and you're there to answer,
30
+ it asks you for it — one question at a time, each naming where to look.
31
+
32
+ ## What it will not do
33
+
34
+ - Software architecture. Use a software design tool.
35
+ - Carry out the plan, draft its messages, or edit files.
36
+ - Invent dates or owners. A date you didn't give is marked as an
37
+ assumption; an owner you didn't name is written as a role.
38
+
39
+ ## Output
40
+
41
+ Six core fields plus exactly one framework block, per the shared contract
42
+ in `references/contract.md`.
43
+ Every run is also saved under `~/.reasoning/problems/`, one folder per
44
+ problem and one file per run. If Claude Code isn't allowed to write
45
+ there, the run says "not saved" and carries on.