@v11g/agents-rock 1.0.7 → 1.0.8

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 (115) hide show
  1. package/package.json +1 -1
  2. package/plugins/reasoning/.claude-plugin/plugin.json +1 -1
  3. package/plugins/reasoning/evals/guardrail-unavailable-framework/graders/names-closest-available.md +5 -6
  4. package/plugins/reasoning/evals/guardrail-unavailable-framework/graders/no-improvised-levels.md +4 -6
  5. package/plugins/reasoning/evals/guardrail-unavailable-framework/graders/skill-fired.md +1 -1
  6. package/plugins/reasoning/evals/guardrail-unavailable-framework/graders/states-unavailable.md +4 -5
  7. package/plugins/reasoning/evals/guardrail-unavailable-framework/graders/systemic-design-fired.md +10 -0
  8. package/plugins/reasoning/evals/guardrail-unavailable-framework/prompt.md +2 -2
  9. package/plugins/reasoning/evals/ps-interview-first-question/graders/look-in-present.md +10 -0
  10. package/plugins/reasoning/evals/ps-interview-first-question/graders/no-fixed-exits.md +11 -0
  11. package/plugins/reasoning/evals/ps-interview-first-question/graders/options-from-input.md +15 -0
  12. package/plugins/reasoning/evals/ps-interview-first-question/graders/skill-fired.md +7 -0
  13. package/plugins/reasoning/evals/ps-interview-first-question/graders/source-hint.md +11 -0
  14. package/plugins/reasoning/evals/ps-interview-first-question/graders/targets-gap.md +13 -0
  15. package/plugins/reasoning/evals/ps-interview-first-question/prompt.md +8 -0
  16. package/plugins/reasoning/evals/ps-interview-five-whys/graders/look-in-present.md +10 -0
  17. package/plugins/reasoning/evals/ps-interview-five-whys/graders/no-fixed-exits.md +11 -0
  18. package/plugins/reasoning/evals/ps-interview-five-whys/graders/options-from-input.md +11 -0
  19. package/plugins/reasoning/evals/ps-interview-five-whys/graders/skill-fired.md +7 -0
  20. package/plugins/reasoning/evals/ps-interview-five-whys/graders/source-hint.md +11 -0
  21. package/plugins/reasoning/evals/ps-interview-five-whys/graders/targets-gap.md +15 -0
  22. package/plugins/reasoning/evals/ps-interview-five-whys/prompt.md +8 -0
  23. package/plugins/reasoning/evals/ps-router-handoff/graders/no-reselection.md +11 -0
  24. package/plugins/reasoning/evals/ps-router-handoff/graders/runs-rca.md +8 -0
  25. package/plugins/reasoning/evals/ps-router-handoff/graders/skill-fired.md +7 -0
  26. package/plugins/reasoning/evals/ps-router-handoff/prompt.md +11 -0
  27. package/plugins/reasoning/evals/routing-adaptive-discriminator/graders/confidence-single-word.md +10 -0
  28. package/plugins/reasoning/evals/routing-ambiguous-feature-request/graders/confidence-single-word.md +10 -0
  29. package/plugins/reasoning/evals/routing-classify-only/graders/confidence-single-word.md +10 -0
  30. package/plugins/reasoning/evals/routing-complex-adaptive-org-change/graders/confidence-single-word.md +10 -0
  31. package/plugins/reasoning/evals/routing-complex-adaptive-org-change/graders/no-unavailability-claim.md +10 -0
  32. package/plugins/reasoning/evals/routing-complex-delivery-slowdown/graders/confidence-single-word.md +10 -0
  33. package/plugins/reasoning/evals/routing-simple-null-pointer/graders/confidence-single-word.md +10 -0
  34. package/plugins/reasoning/evals/routing-thin-input-provisional/graders/confidence-single-word.md +10 -0
  35. package/plugins/reasoning/evals/sd-default-selection/graders/dates-traced.md +15 -0
  36. package/plugins/reasoning/evals/sd-default-selection/graders/interventions-cite-entries.md +12 -0
  37. package/plugins/reasoning/evals/sd-default-selection/graders/owners-from-input.md +8 -0
  38. package/plugins/reasoning/evals/sd-default-selection/graders/plan-steps-complete.md +21 -0
  39. package/plugins/reasoning/evals/sd-default-selection/graders/selects-systemic-design.md +12 -0
  40. package/plugins/reasoning/evals/sd-default-selection/graders/skill-fired.md +7 -0
  41. package/plugins/reasoning/evals/sd-default-selection/graders/systemic-design-fired.md +10 -0
  42. package/plugins/reasoning/evals/sd-default-selection/prompt.md +11 -0
  43. package/plugins/reasoning/evals/sd-named-framework-software/graders/names-no-skill.md +11 -0
  44. package/plugins/reasoning/evals/sd-named-framework-software/graders/no-systemic-block.md +10 -0
  45. package/plugins/reasoning/evals/sd-named-framework-software/graders/systemic-design-fired.md +10 -0
  46. package/plugins/reasoning/evals/sd-named-framework-software/prompt.md +8 -0
  47. package/plugins/reasoning/evals/sd-not-software/graders/no-systemic-block.md +10 -0
  48. package/plugins/reasoning/evals/sd-not-software/graders/says-out-of-scope.md +10 -0
  49. package/plugins/reasoning/evals/sd-not-software/prompt.md +8 -0
  50. package/plugins/reasoning/evals/sd-raw-input/graders/first-question-targets-model.md +11 -0
  51. package/plugins/reasoning/evals/sd-raw-input/graders/look-in-present.md +10 -0
  52. package/plugins/reasoning/evals/sd-raw-input/graders/model-gap-blocks-stop.md +14 -0
  53. package/plugins/reasoning/evals/sd-raw-input/graders/model-in-assumptions.md +13 -0
  54. package/plugins/reasoning/evals/sd-raw-input/graders/no-fixed-exits.md +11 -0
  55. package/plugins/reasoning/evals/sd-raw-input/graders/skill-fired.md +7 -0
  56. package/plugins/reasoning/evals/sd-raw-input/graders/systemic-design-fired.md +10 -0
  57. package/plugins/reasoning/evals/sd-raw-input/prompt.md +8 -0
  58. package/plugins/reasoning/evals/sd-theory-of-change/graders/links-carry-assumptions.md +9 -0
  59. package/plugins/reasoning/evals/sd-theory-of-change/graders/no-dates.md +8 -0
  60. package/plugins/reasoning/evals/sd-theory-of-change/graders/skill-fired.md +7 -0
  61. package/plugins/reasoning/evals/sd-theory-of-change/graders/systemic-design-fired.md +10 -0
  62. package/plugins/reasoning/evals/sd-theory-of-change/graders/toc-block.md +10 -0
  63. package/plugins/reasoning/evals/sd-theory-of-change/prompt.md +8 -0
  64. package/plugins/reasoning/evals/sd-three-horizons/graders/dates-are-assumptions.md +11 -0
  65. package/plugins/reasoning/evals/sd-three-horizons/graders/owners-are-roles.md +8 -0
  66. package/plugins/reasoning/evals/sd-three-horizons/graders/skill-fired.md +7 -0
  67. package/plugins/reasoning/evals/sd-three-horizons/graders/systemic-design-fired.md +10 -0
  68. package/plugins/reasoning/evals/sd-three-horizons/graders/three-horizons-block.md +10 -0
  69. package/plugins/reasoning/evals/sd-three-horizons/prompt.md +9 -0
  70. package/plugins/reasoning/evals/st-causal-loop-unclosed/graders/edges-carry-support-labels.md +2 -2
  71. package/plugins/reasoning/evals/st-causal-loop-unclosed/graders/no-invented-delays.md +7 -4
  72. package/plugins/reasoning/evals/st-interview-first-question/graders/look-in-present.md +10 -0
  73. package/plugins/reasoning/evals/st-interview-first-question/graders/no-fixed-exits.md +11 -0
  74. package/plugins/reasoning/evals/st-interview-first-question/graders/options-from-input.md +11 -0
  75. package/plugins/reasoning/evals/st-interview-first-question/graders/skill-fired.md +7 -0
  76. package/plugins/reasoning/evals/st-interview-first-question/graders/source-hint.md +11 -0
  77. package/plugins/reasoning/evals/st-interview-first-question/graders/targets-gap.md +13 -0
  78. package/plugins/reasoning/evals/st-interview-first-question/prompt.md +8 -0
  79. package/plugins/reasoning/evals/st-selection-boundary/graders/one-block-only.md +9 -6
  80. package/plugins/reasoning/skills/problem-router/SKILL.md +7 -11
  81. package/plugins/reasoning/skills/problem-router/references/contract.md +6 -0
  82. package/plugins/reasoning/skills/problem-solving/README.md +4 -0
  83. package/plugins/reasoning/skills/problem-solving/SKILL.md +13 -3
  84. package/plugins/reasoning/skills/problem-solving/references/contract.md +6 -0
  85. package/plugins/reasoning/skills/problem-solving/references/interview.md +66 -0
  86. package/plugins/reasoning/skills/systemic-design/README.md +42 -0
  87. package/plugins/reasoning/skills/systemic-design/SKILL.md +182 -0
  88. package/plugins/reasoning/skills/systemic-design/frameworks/systemic-design.md +39 -0
  89. package/plugins/reasoning/skills/systemic-design/frameworks/theory-of-change.md +34 -0
  90. package/plugins/reasoning/skills/systemic-design/frameworks/three-horizons.md +28 -0
  91. package/plugins/reasoning/skills/systemic-design/references/contract.md +110 -0
  92. package/plugins/reasoning/skills/systemic-design/references/interview.md +66 -0
  93. package/plugins/reasoning/skills/systems-thinking/README.md +10 -6
  94. package/plugins/reasoning/skills/systems-thinking/SKILL.md +16 -6
  95. package/plugins/reasoning/skills/systems-thinking/frameworks/causal-loop.md +5 -2
  96. package/plugins/reasoning/skills/systems-thinking/frameworks/leverage-points.md +1 -1
  97. package/plugins/reasoning/skills/systems-thinking/frameworks/system-map.md +4 -5
  98. package/plugins/reasoning/skills/systems-thinking/references/contract.md +6 -0
  99. package/plugins/reasoning/skills/systems-thinking/references/interview.md +66 -0
  100. package/plugins/solution-architect/skills/analyze-requirements/SKILL.md +3 -2
  101. package/plugins/solution-architect/skills/analyze-requirements/references/rewriting.md +108 -0
  102. package/plugins/solution-architect/skills/analyze-requirements/scripts/drift.mjs +64 -0
  103. package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/drift.mjs +31 -0
  104. package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/git-diff.mjs +27 -0
  105. package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/state.mjs +52 -0
  106. package/plugins/solution-architect/skills/analyze-requirements/scripts/record.mjs +87 -0
  107. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/drift-cli.test.mjs +178 -0
  108. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/drift.test.mjs +76 -0
  109. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/git-diff.test.mjs +62 -0
  110. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/record-cli.test.mjs +136 -0
  111. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/rerun-safety.test.mjs +53 -0
  112. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/rewriting.test.mjs +80 -0
  113. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/state.test.mjs +123 -0
  114. package/plugins/reasoning/evals/guardrail-unavailable-framework/graders/names-owning-skill.md +0 -9
  115. package/plugins/reasoning/evals/routing-complex-adaptive-org-change/graders/states-systemic-design-unavailable.md +0 -15
@@ -0,0 +1,182 @@
1
+ ---
2
+ name: systemic-design
3
+ description: Plan how to change a system of people, incentives, and habits so a problem stops regenerating — using explore/reframe/create/catalyse, a theory of change, or three horizons. Use when a fix must survive people adapting to it: org or process transitions, "how do we get from today's way of working to a new one", or turning a systems-thinking map into steps, owners, dates, and success signals. Not for software architecture or technical system design. Recommends a framework and lets you choose; run it with a named framework to skip the choice.
4
+ ---
5
+
6
+ # systemic-design
7
+
8
+ You are executing the systemic-design skill. A problem has arrived whose
9
+ fixes get routed around — by people, incentives, or habits — and your job
10
+ is to plan the change: select or confirm a framework, run it to its own
11
+ stopping test, and emit the result. You do not carry out the plan, draft
12
+ its messages, or edit files.
13
+
14
+ ## Purpose
15
+
16
+ Answer one question: **how should the system be changed?**
17
+
18
+ Not what broke — that is `problem-solving`. Not why it keeps coming back —
19
+ that is `systems-thinking`. This skill takes a model of the system, or
20
+ builds a flagged one from raw input, and turns it into changes, an order,
21
+ owners, dates, and the signal that says each step worked.
22
+
23
+ ## When to use / When not to use
24
+
25
+ Use this for org or process transitions, for a change that has to survive
26
+ people adapting to it, or to turn a systems-thinking result into a plan.
27
+
28
+ Don't use this for software architecture — services, databases, scaling.
29
+ Don't use it for a bug or a one-off outage; that is `problem-solving`. If
30
+ the problem is still "why does this keep happening" and no model exists,
31
+ recommend `systems-thinking` first, and run here only if the human says so.
32
+
33
+ ## Inputs
34
+
35
+ - The problem text, raw or already reframed by `problem-router`.
36
+ - Optionally, a framework name as the first argument — `systemic_design`,
37
+ `theory_of_change`, or `three_horizons`.
38
+ - Whatever a `problem-router` or `systems-thinking` hand-off carries.
39
+ - A prior `systems-thinking` result, read through its six core fields and
40
+ its one block. Its `evidence` stays evidence; its `assumptions` keep
41
+ their status. Nothing is promoted on the way in.
42
+
43
+ ## Entry paths
44
+
45
+ ```
46
+ /reasoning:systemic-design "<problem>" skill recommends, human picks
47
+ /reasoning:systemic-design <framework> "<problem>" human has already chosen
48
+ hand-off after human confirmation router or systems-thinking recommended
49
+ ```
50
+
51
+ ## Framework selection
52
+
53
+ First match wins. Read top to bottom and stop at the first row that holds.
54
+
55
+ | Order | Test against the input | Framework |
56
+ | --- | --- | --- |
57
+ | 1 | The input names one chosen intervention and asks how it reaches an outcome. | `theory_of_change` |
58
+ | 2 | The input names a current state and a desired future state. | `three_horizons` |
59
+ | 3 | Otherwise — a system that needs changing, no path chosen yet. | `systemic_design` |
60
+
61
+ "We want product teams, so let's pilot one team" holds for rows 1 and 2;
62
+ row 1 wins because an intervention is already chosen.
63
+
64
+ See `frameworks/theory-of-change.md`, `frameworks/three-horizons.md`, and
65
+ `frameworks/systemic-design.md` for the process and stopping test of each.
66
+
67
+ Shortlist two candidates, name your pick with a one-line reason, and let
68
+ the human choose. When the human named a framework, that is the choice and
69
+ it runs — skip this section entirely, no confirmation step.
70
+
71
+ ## Process
72
+
73
+ 1. Establish the framing: the problem as stated, as `problem-router`
74
+ reframed it, or as a handed-in `systems-thinking` result models it. If
75
+ it is a software-design request, stop here per Failure modes — even
76
+ when a framework is named.
77
+ 2. Select the framework:
78
+ - Named already (human, or hand-off with confirmation) → that's the
79
+ choice, go to step 3.
80
+ - Not named → apply the first-match table above, shortlist it plus the
81
+ next-best candidate, and recommend the first with a one-line reason.
82
+ Then test, don't infer: is `AskUserQuestion` actually available in
83
+ this session? If yes, ask via `AskUserQuestion` and wait for the
84
+ answer. If no — the tool is unavailable, or the run is otherwise
85
+ non-interactive — you are headless: take your own recommendation,
86
+ record it agent-selected and unconfirmed, and go straight to step 3.
87
+ Naming the shortlist and stopping there, without asking and without
88
+ proceeding, is not a valid outcome on either branch.
89
+ 3. Open the matching file under `frameworks/` and follow its process
90
+ exactly.
91
+ 4. Stop at that file's own stopping test. Apply the test — see each file's
92
+ Stop when section.
93
+ 4b. If the stopping test has not passed, follow
94
+ `references/interview.md`. With a human present it returns you to
95
+ step 3 with new evidence; headless, it shapes the first open question.
96
+ Then continue to step 5.
97
+ 4c. Even when the stopping test passes, an actor, behaviour, or structure
98
+ the plan relies on that rests only on an `unverified` assumption is a
99
+ model gap. Pick the one the most interventions depend on and treat it
100
+ as the named gap for `references/interview.md`, with its trigger 1
101
+ counted as met. With a human present, ask before emitting; headless,
102
+ make it the first `open_questions` entry. The plan stays complete — do
103
+ not label it unfinished; never say no further evidence is needed.
104
+ 5. Emit the result per Output contract below.
105
+
106
+ ## Output contract
107
+
108
+ Emit the six core fields plus exactly one framework block, per
109
+ `references/contract.md` — the single source of truth for field names,
110
+ evidence types, assumption status, confidence, and rendering.
111
+
112
+ ## Guardrails
113
+
114
+ Each has a test — apply the test, not a judgment call.
115
+
116
+ - **Every change traces to the system.** Test: does each intervention,
117
+ move, or activity name the `evidence` or `assumptions` entry it targets?
118
+ No → cut it.
119
+ - **No invented system model.** Test: for each actor or structure the plan
120
+ relies on, did the input state it? No → `assumptions`, status
121
+ `unverified`, and it is a candidate gap for the interview.
122
+ - **Dates and owners come from the input.** Test: is each `when` and each
123
+ named person in the input? A `when` that is not → also an `assumptions`
124
+ entry, status `unverified`. An owner that is not → written as a role,
125
+ never an invented name.
126
+ - **A plan, not the doing.** Test: does the output draft a message, an org
127
+ chart, a file, or run a step? Yes → stop and hand the plan back.
128
+ - **One framework per run.** Test: has the first framework's stopping test
129
+ fired, and is there a stated reason a second adds something? Both must
130
+ be yes — and even then the second is a second run, never a second block.
131
+ - **Depth scales to the problem.** Test, sentence by sentence: does this
132
+ sentence name a specific fact, quote, figure, or `evidence` entry from
133
+ THIS input? If it would read as true no matter what the input said, cut
134
+ it or replace it with a plain "no evidence for this."
135
+
136
+ ## Failure modes
137
+
138
+ - **Software-design request** — services, databases, scaling, an
139
+ architecture style. Say this skill plans changes to systems of people
140
+ and practice, and a software design tool fits the request. Name no
141
+ specific skill. Run no framework — this holds even when the human named
142
+ one.
143
+ - **Bounded defect or one-off outage.** Hand to `problem-solving`.
144
+ - **"Why does this keep happening", no model.** Recommend
145
+ `systems-thinking` first; run here only if the human says so.
146
+ - **Framework named but unavailable** — from PRD §24's later set:
147
+ Transition Design, Service / Ecosystem Design. Say it isn't built yet,
148
+ and name the closest framework from the table above with the difference
149
+ stated. Don't improvise the framework.
150
+ - **Framework named that belongs to another skill** — say which skill owns
151
+ it and hand over.
152
+ - **Asking without naming the gap.** An interview question must fill a
153
+ specific field the stopping test is blocked on.
154
+ - **A source hint that names what to expect.** `Look in:` names where the
155
+ evidence lives, never what the human will find there.
156
+
157
+ ## Examples
158
+
159
+ **Agent-selected — no path chosen**
160
+
161
+ Input: "Our hospital's discharge process keeps backing up. Nurses wait on
162
+ pharmacy sign-off, pharmacy waits on doctors' notes, doctors write notes at
163
+ end of shift. Every local fix got bypassed within a month. The discharge
164
+ lead wants this fixed by the end of Q2."
165
+
166
+ Row 1 doesn't hold — no intervention is chosen. Row 2 doesn't hold — no
167
+ future state is described. Row 3: `systemic_design`, shortlisted against
168
+ `three_horizons`. Run `frameworks/systemic-design.md`. Why staff return to
169
+ old habits is not stated, so it goes in `assumptions` as `unverified`. The
170
+ plan's final step can use "end of Q2"; any earlier date is also an
171
+ assumption. The discharge lead is named, so that owner stays; other owners
172
+ are roles. Emit the six core fields plus one `systemic_design` block.
173
+
174
+ **Human-named**
175
+
176
+ Input: `/reasoning:systemic-design theory_of_change "Give each product
177
+ team its own on-call rota instead of central ops. We want fewer repeat
178
+ incidents."`
179
+
180
+ `theory_of_change` runs — no shortlist. Six stages, five links, each link
181
+ with its assumption, no dates. Emit the six core fields plus one
182
+ `theory_of_change` block.
@@ -0,0 +1,39 @@
1
+ # Systemic Design (explore → reframe → create → catalyse)
2
+
3
+ ## When it fits
4
+
5
+ A system needs changing and no path has been chosen yet.
6
+
7
+ ## Process
8
+
9
+ You are executing the Systemic Design framework within the systemic-design
10
+ skill. Four phases, in order. Each phase uses only what the earlier phases
11
+ and the input established.
12
+
13
+ 1. `explore` — actors, behaviours, structures, tensions, constraints. Each
14
+ entry cites an `evidence` entry or an `assumptions` entry. An actor or
15
+ structure the input did not state goes in `assumptions`, `unverified`.
16
+ 2. `reframe` — the challenge restated at the level of the system, the
17
+ boundary, the desired change, and the principles any intervention must
18
+ respect.
19
+ 3. `create` — interventions. Each names the `explore` entry it targets,
20
+ its dependencies, one unintended effect, and a small experiment that
21
+ would test it.
22
+ 4. `catalyse` — `plan`: a list of `{step, owner_role, when, signal}`, plus
23
+ the feedback mechanism and success measures. `owner_role` is a person
24
+ only if the input names one. A `when` the input did not give also goes
25
+ in `assumptions`, `unverified`. A `signal` is something someone can
26
+ observe.
27
+
28
+ ## Output block
29
+
30
+ Emit the `systemic_design` block from `references/contract.md`: `explore`,
31
+ `reframe`, `create`, `catalyse`. The plan is a sequence, not a cycle, so it
32
+ renders as a list.
33
+
34
+ ## Stop when
35
+
36
+ Every intervention targets a named `explore` entry, every plan step has all
37
+ four fields, and every `signal` is observable. An `explore` entry resting
38
+ only on an `unverified` assumption does not block the stop; it goes to the
39
+ interview per `SKILL.md` step 4c.
@@ -0,0 +1,34 @@
1
+ # Theory of Change
2
+
3
+ ## When it fits
4
+
5
+ One intervention is already chosen, and the question is how it reaches an
6
+ outcome.
7
+
8
+ ## Process
9
+
10
+ You are executing the Theory of Change framework within the systemic-design
11
+ skill. Six stages in a chain:
12
+
13
+ inputs → activities → outputs → short-term outcomes → long-term outcomes →
14
+ impact
15
+
16
+ 1. Fill each stage from the input. A stage the input does not support says
17
+ what evidence would fill it.
18
+ 2. For each of the five adjacent pairs, record a `links` entry:
19
+ `{from, to, assumption}` — what has to be true for the earlier stage to
20
+ produce the later one. Every link carries one.
21
+ 3. Each assumption also appears in the core `assumptions` field, status
22
+ `unverified` unless the human confirmed it.
23
+ 4. No dates. This is a causal chain, not a schedule.
24
+
25
+ ## Output block
26
+
27
+ Emit the `theory_of_change` block from `references/contract.md`: `inputs`,
28
+ `activities`, `outputs`, `short_term_outcomes`, `long_term_outcomes`,
29
+ `impact`, `links`. A chain is not a cycle; it renders as a list.
30
+
31
+ ## Stop when
32
+
33
+ All six stages have content or a stated evidence gap, and all five links
34
+ carry an assumption.
@@ -0,0 +1,28 @@
1
+ # Three Horizons
2
+
3
+ ## When it fits
4
+
5
+ The input names today's state and a desired future state.
6
+
7
+ ## Process
8
+
9
+ You are executing the Three Horizons framework within the systemic-design
10
+ skill.
11
+
12
+ 1. `h1` — today's dominant system, as the input describes it.
13
+ 2. `h3` — the desired future system, as the input describes it.
14
+ 3. `h2` — transition moves that grow the future inside the present: a list
15
+ of `{move, owner_role, when}`. Each move names the `h1` feature it
16
+ loosens or the `h3` feature it seeds. `owner_role` is a person only if
17
+ the input names one. A `when` the input did not give also goes in
18
+ `assumptions`, `unverified`.
19
+
20
+ ## Output block
21
+
22
+ Emit the `three_horizons` block from `references/contract.md`: `h1`, `h2`,
23
+ `h3`. Renders as prose or a list; there is no cycle.
24
+
25
+ ## Stop when
26
+
27
+ `h1` and `h3` each tie to evidence or an assumption, and `h2` has at least
28
+ one move with `owner_role` and `when` filled.
@@ -0,0 +1,110 @@
1
+ # Output contract
2
+
3
+ Every run emits six core fields, plus exactly one block named for the
4
+ framework that ran. Nothing else appears at the top level.
5
+
6
+ ## Core fields
7
+
8
+ | Field | Contents |
9
+ | ----- | -------- |
10
+ | `problem` | The problem as this skill understands it, restated in one or two sentences. |
11
+ | `framework_used` | The framework that ran. A `problem-router` run runs none — emit `router` there, naming the routing pass itself. |
12
+ | `framework_reason` | One line: why this framework, for this problem. |
13
+ | `evidence` | What the input actually supplied. Each entry names its type. |
14
+ | `assumptions` | Anything the input did not state. Each carries a status. |
15
+ | `open_questions` | What would change the analysis if answered. |
16
+
17
+ An empty `evidence` list is a finding, not an omission: it means nothing
18
+ in the input supports the analysis, and the output says so.
19
+
20
+ ## Framework blocks
21
+
22
+ | Block | Fields |
23
+ | ----- | ------ |
24
+ | `router` | `problem_class`, `reasoning_skill`, `recommended_framework`, `confidence`, `why`, `frameworks_rejected` |
25
+ | `double_diamond` | `discover`, `define`, `develop`, `deliver` |
26
+ | `rca` | `symptom`, `immediate`, `contributing`, `underlying`, `root`, `actions` |
27
+ | `five_whys` | `why_chain`, `root_candidate`, `uncertainties` |
28
+ | `a3` | `background`, `current`, `problem`, `target`, `causes`, `countermeasures`, `plan`, `follow_up` |
29
+ | `pdca` | `hypothesis`, `test`, `metric`, `expected`, `actual`, `next` |
30
+ | `iceberg` | `event`, `patterns`, `structures`, `mental_models` |
31
+ | `system_map` | `system_boundary`, `actors`, `components`, `relationships`, `dependencies`, `external_factors` |
32
+ | `causal_loop` | `variables`, `links`, `loops`, `delays` |
33
+ | `leverage_points` | `elements`, `points` |
34
+ | `systemic_design` | `explore`, `reframe`, `create`, `catalyse` |
35
+ | `theory_of_change` | `inputs`, `activities`, `outputs`, `short_term_outcomes`, `long_term_outcomes`, `impact`, `links` |
36
+ | `three_horizons` | `h1`, `h2`, `h3` |
37
+
38
+ Later skills add blocks. The core never changes — that is what lets one
39
+ skill consume another's result without knowing which framework produced
40
+ it.
41
+
42
+ ## Evidence types
43
+
44
+ `user-provided fact`, `document`, `log`, `metric`, `interview`,
45
+ `observation`, `external source`, `inferred`.
46
+
47
+ Anything `inferred` is never rendered as fact. If the input did not state
48
+ it, it belongs in `assumptions`, not `evidence`.
49
+
50
+ ## Assumption status
51
+
52
+ `unverified` — nothing has confirmed it.
53
+ `confirmed` — the human confirmed it during this run.
54
+
55
+ Default is `unverified`. An assumption is never silently promoted.
56
+
57
+ ## Confidence
58
+
59
+ `low` / `medium` / `high`. Numeric confidence is never emitted: `0.84`
60
+ implies a precision this reasoning does not have.
61
+
62
+ Confidence reflects evidence quantity, evidence quality, contradictions
63
+ in the input, and how many inferential steps separate the claim from the
64
+ evidence.
65
+
66
+ ## Rendering
67
+
68
+ In chat by default: markdown headings, one per core field, then the
69
+ framework block.
70
+
71
+ A structure containing a cycle gets a diagram; one without gets prose.
72
+ Prose renders a cycle as a list, and a list loses the closure — `A -> B ->
73
+ C -> A` read top to bottom does not show that it comes back.
74
+
75
+ On request: one file, `problem-analysis.md`, in the directory the human
76
+ names. Core fields and the framework block become YAML front-matter above
77
+ the markdown body. No second JSON file is written — it would be a
78
+ duplicate representation with nothing keeping the two in agreement.
79
+
80
+ Example saved file:
81
+
82
+ ```markdown
83
+ ---
84
+ problem: Deploys fail intermittently after the runner image update.
85
+ framework_used: five-whys
86
+ framework_reason: Narrow scope, causal chain looks linear.
87
+ evidence:
88
+ - type: log
89
+ ref: ci-run-4471
90
+ assumptions:
91
+ - statement: Staging mirrors production runner config.
92
+ status: unverified
93
+ open_questions:
94
+ - Who owns the runner image?
95
+ - |
96
+ Which runner pool failed — shared or dedicated?
97
+ Look in: the CI runner dashboard
98
+ five_whys:
99
+ why_chain:
100
+ - Deploys fail -> the runner cannot pull the base image
101
+ - It cannot pull -> the registry credential expired
102
+ root_candidate: Credential rotation is manual and undocumented.
103
+ uncertainties:
104
+ - Whether rotation was ever automated.
105
+ ---
106
+
107
+ # Problem analysis
108
+
109
+ ...
110
+ ```
@@ -0,0 +1,66 @@
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
+
53
+ | Situation | Handling |
54
+ | --------- | -------- |
55
+ | Answer contradicts existing evidence | Keep both, and name the contradiction in `open_questions`. |
56
+ | 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. |
57
+ | 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. |
58
+ | Human rejects the question to ask something | Answer in chat, then re-ask the same question. The round does not count. |
59
+ | Human rejects the question with no message | Treat as Stop. |
60
+
61
+ ## End
62
+
63
+ The loop ends when the stopping rule fires, no askable gap remains, the
64
+ human picks Stop, an answer meets another class's definition, or round 6
65
+ completes. Say in the output which one ended
66
+ it.
@@ -8,13 +8,13 @@ Answers: **what system is producing this?**
8
8
 
9
9
  | Framework | Use it when |
10
10
  | --- | --- |
11
- | Iceberg Model | A symptom keeps returning and the layers under it are unexamined. |
12
- | System Map | Two or more actors, and the relationships between them are unclear. |
13
- | Causal Loop | The variables are known and suspected of feeding back on each other. |
14
11
  | Leverage Points | You need to know where to intervene. |
12
+ | Causal Loop | The variables are known and suspected of feeding back on each other. |
13
+ | System Map | Two or more actors, and the relationships between them are unclear. |
14
+ | Iceberg Model | A symptom keeps returning and the layers under it are unexamined. |
15
15
 
16
- Selection is first-match-wins in that reverse order — where-to-intervene
17
- first, iceberg last. The skill shortlists two and recommends one; you pick.
16
+ Selection is first-match-wins, top to bottom. The skill shortlists two
17
+ and recommends one; you pick.
18
18
 
19
19
  ## Usage
20
20
 
@@ -25,11 +25,15 @@ first, iceberg last. The skill shortlists two and recommends one; you pick.
25
25
 
26
26
  Or let `problem-router` classify the problem first and hand it over.
27
27
 
28
+ When the evidence runs out before the framework's stopping rule fires and
29
+ you're there to answer, it asks you for the missing piece — one question
30
+ at a time, each naming where to look — instead of stopping short.
31
+
28
32
  ## What it will not do
29
33
 
30
34
  - Name a fix, or write one.
31
35
  - Produce an adoption plan, a sequence, or an owner — that is
32
- `systemic-design`, which is not built in this release.
36
+ `systemic-design`, the next run once the model exists.
33
37
  - Run on a bounded one-function defect. That is `problem-solving`.
34
38
 
35
39
  ## Output
@@ -16,8 +16,8 @@ write the fix, or edit files.
16
16
  Answer one question: **what system is producing this?**
17
17
 
18
18
  Not what the cause is and what to try next — that is `problem-solving`. Not
19
- how to change the system over time — that is `systemic-design`, which is
20
- not built in this release.
19
+ how to change the system over time — that is `systemic-design`, the next
20
+ run once this model exists.
21
21
 
22
22
  ## When to use / When not to use
23
23
 
@@ -97,6 +97,10 @@ runs — skip this section entirely, no confirmation step.
97
97
  because the problem feels straightforward.
98
98
  4. Stop at that file's own stopping test, not at a felt sense of
99
99
  completeness. Apply the test — see each file's Stop when section.
100
+ 4b. If the stopping test has not passed, 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.
100
104
  5. Emit the result per Output contract below.
101
105
 
102
106
  ## Output contract
@@ -148,9 +152,9 @@ not a judgment call.
148
152
  ## Failure modes
149
153
 
150
154
  - **Framework named that belongs to another skill** — theory of change,
151
- three horizons, explore/reframe/create/catalyse. Say `systemic-design`
152
- owns it and that the skill isn't built in this release. Don't improvise
153
- the framework here.
155
+ three horizons, explore/reframe/create/catalyse. That skill is built:
156
+ say `systemic-design` owns the framework and hand the problem over.
157
+ Don't run the framework here, and don't refuse it.
154
158
  - **Framework named but unavailable** — from PRD §17's later set: Stock and
155
159
  Flow, Rich Picture. Say it isn't built yet, and name the closest available
156
160
  framework from the table above with the difference stated, rather than
@@ -158,6 +162,12 @@ not a judgment call.
158
162
  - **Running this on a bounded defect.** One function, one service,
159
163
  reproducible — that's `problem-solving`. Say so and hand it back rather
160
164
  than producing an iceberg over a stack trace.
165
+ - **Asking without naming the gap.** An interview question must fill a
166
+ specific field, layer, or link the stopping rule is blocked on. A
167
+ question that fills nothing named is an open-ended interview — cut it.
168
+ - **A source hint that names what to expect.** `Look in:` names where the
169
+ evidence lives. Naming what the human will find there previews a cause
170
+ the evidence hasn't supported.
161
171
 
162
172
  ## Examples
163
173
 
@@ -179,7 +189,7 @@ the recurrence, but the immediate gap is who connects to whom). Recommend
179
189
  Run `frameworks/system-map.md`: seed sales, provisioning, and the named
180
190
  downstream teams; record only the handoff relationships the input states.
181
191
  "Three different fixes" is evidence of recurrence but names no new node, so
182
- nothing is added for it. Candidate nodes like "the CRM" are mentioned
192
+ nothing is added for it. Seeded nodes like "the CRM" are mentioned
183
193
  nowhere and break no recorded relationship — `external_factors`. The
184
194
  recorded relationships form no cycle, so the output is prose, not Mermaid.
185
195
  Emit the six core fields plus one `system_map` block.
@@ -28,8 +28,11 @@ not earned.
28
28
  5. For each loop, state whether it is reinforcing (the effect feeds the
29
29
  cause) or balancing (the effect dampens the cause), and name the link
30
30
  that makes it so.
31
- 6. Record a `delays` entry only where the input states a lag. An inferred
32
- delay is an `assumptions` entry, not a `delays` entry.
31
+ 6. Record a `delays` entry only where the input states a lag: a duration
32
+ ("about six weeks later") or an explicit "after a delay". A dated
33
+ sequence ("prices rose in March, churn rose in April") is not a stated
34
+ lag. An inferred delay, including one read off dates, is an
35
+ `assumptions` entry, not a `delays` entry.
33
36
 
34
37
  ## Output block
35
38
 
@@ -77,4 +77,4 @@ explicit "none identified, because …".
77
77
 
78
78
  Seven kinds, one pass. This framework names where to push, the expected
79
79
  effect, and the risks. It does not produce an adoption plan, a sequence, or
80
- an owner — that is `systemic-design`, which is not built in this release.
80
+ an owner — that is `systemic-design`, the next run.
@@ -14,13 +14,12 @@ an unbounded map is a list of everything anyone has ever mentioned.
14
14
  incentive, and information flow the input names.
15
15
  2. Record a `relationship` only between two seeded elements, and only where
16
16
  the input states or directly evidences the connection.
17
- 3. Test each seeded node: does the input state a relationship between it
18
- and another node already in the map, **or** does removing it break a
17
+ 3. Test each seeded node once: does the input state a relationship between
18
+ it and another seeded node, **or** does removing it break a
19
19
  `relationship` already recorded? If neither, it is outside the boundary
20
20
  and goes in `external_factors` — the input naming something is not the
21
21
  same as the input connecting it.
22
- 4. Repeat step 3 until no remaining candidate passes.
23
- 5. State `system_boundary` explicitly as the set of elements that passed.
22
+ 4. State `system_boundary` explicitly as the set of elements that passed.
24
23
  The boundary is closure over what the input stated — not a judgement
25
24
  about what matters.
26
25
 
@@ -39,7 +38,7 @@ without gets prose. See the contract's Rendering section.
39
38
 
40
39
  ## Stop when
41
40
 
42
- No remaining candidate node passes the step 3 test.
41
+ Every seeded node has been tested once under step 3.
43
42
 
44
43
  That is the stopping condition in full. Do not keep expanding because the
45
44
  map looks sparse — a sparse map over a thin input is accurate, and padding
@@ -31,6 +31,9 @@ in the input supports the analysis, and the output says so.
31
31
  | `system_map` | `system_boundary`, `actors`, `components`, `relationships`, `dependencies`, `external_factors` |
32
32
  | `causal_loop` | `variables`, `links`, `loops`, `delays` |
33
33
  | `leverage_points` | `elements`, `points` |
34
+ | `systemic_design` | `explore`, `reframe`, `create`, `catalyse` |
35
+ | `theory_of_change` | `inputs`, `activities`, `outputs`, `short_term_outcomes`, `long_term_outcomes`, `impact`, `links` |
36
+ | `three_horizons` | `h1`, `h2`, `h3` |
34
37
 
35
38
  Later skills add blocks. The core never changes — that is what lets one
36
39
  skill consume another's result without knowing which framework produced
@@ -89,6 +92,9 @@ assumptions:
89
92
  status: unverified
90
93
  open_questions:
91
94
  - Who owns the runner image?
95
+ - |
96
+ Which runner pool failed — shared or dedicated?
97
+ Look in: the CI runner dashboard
92
98
  five_whys:
93
99
  why_chain:
94
100
  - Deploys fail -> the runner cannot pull the base image