@v11g/agents-rock 1.0.8 → 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.
- package/README.md +1 -1
- package/package.json +1 -1
- package/plugins/reasoning/.claude-plugin/plugin.json +1 -1
- package/plugins/reasoning/evals/format-handoff-folder/graders/folder-named.md +8 -0
- package/plugins/reasoning/evals/format-handoff-folder/graders/skill-fired.md +7 -0
- package/plugins/reasoning/evals/format-handoff-folder/prompt.md +9 -0
- package/plugins/reasoning/evals/format-ids-and-supports/graders/ids-in-chat.md +8 -0
- package/plugins/reasoning/evals/format-ids-and-supports/graders/skill-fired.md +7 -0
- package/plugins/reasoning/evals/format-ids-and-supports/graders/supports-resolve.md +11 -0
- package/plugins/reasoning/evals/format-ids-and-supports/prompt.md +8 -0
- package/plugins/reasoning/evals/format-root-candidate-status/graders/candidate-status.md +11 -0
- package/plugins/reasoning/evals/format-root-candidate-status/graders/skill-fired.md +7 -0
- package/plugins/reasoning/evals/format-root-candidate-status/prompt.md +8 -0
- package/plugins/reasoning/evals/format-unsaved-continues/graders/analysis-completes.md +9 -0
- package/plugins/reasoning/evals/format-unsaved-continues/graders/not-saved-stated.md +9 -0
- package/plugins/reasoning/evals/format-unsaved-continues/graders/skill-fired.md +7 -0
- package/plugins/reasoning/evals/format-unsaved-continues/prompt.md +8 -0
- package/plugins/reasoning/skills/problem-router/README.md +6 -0
- package/plugins/reasoning/skills/problem-router/SKILL.md +4 -0
- package/plugins/reasoning/skills/problem-router/references/contract.md +114 -19
- package/plugins/reasoning/skills/problem-solving/README.md +6 -0
- package/plugins/reasoning/skills/problem-solving/SKILL.md +2 -0
- package/plugins/reasoning/skills/problem-solving/references/contract.md +114 -19
- package/plugins/reasoning/skills/problem-solving/references/interview.md +2 -0
- package/plugins/reasoning/skills/systemic-design/README.md +3 -0
- package/plugins/reasoning/skills/systemic-design/SKILL.md +2 -0
- package/plugins/reasoning/skills/systemic-design/references/contract.md +114 -19
- package/plugins/reasoning/skills/systemic-design/references/interview.md +2 -0
- package/plugins/reasoning/skills/systems-thinking/README.md +3 -0
- package/plugins/reasoning/skills/systems-thinking/SKILL.md +2 -0
- package/plugins/reasoning/skills/systems-thinking/frameworks/leverage-points.md +15 -6
- package/plugins/reasoning/skills/systems-thinking/references/contract.md +114 -19
- package/plugins/reasoning/skills/systems-thinking/references/interview.md +2 -0
- package/plugins/solution-architect/.claude-plugin/plugin.json +1 -1
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/cdp.mjs +4 -1
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/quality-gate.mjs +16 -1
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/quality-gate.test.mjs +9 -0
- package/plugins/solution-architect/skills/estimate/README.md +20 -15
- package/plugins/solution-architect/skills/estimate/SKILL.md +10 -6
- package/plugins/solution-architect/skills/estimate/assets/estimate-template-agentic.html +111 -138
- package/plugins/solution-architect/skills/estimate/assets/estimate-template.html +361 -247
- package/plugins/solution-architect/skills/estimate/assets/scores-review-template.html +5 -4
- package/plugins/solution-architect/skills/estimate/evals/evals.json +7 -7
- package/plugins/solution-architect/skills/estimate/references/agentic-estimation.md +4 -2
- package/plugins/solution-architect/skills/estimate/references/ai-multipliers.md +38 -82
- package/plugins/solution-architect/skills/estimate/references/interview.md +56 -35
- package/plugins/solution-architect/skills/estimate/references/scoring-guide.md +40 -4
- package/plugins/solution-architect/skills/estimate/references/techniques.md +29 -21
- package/plugins/solution-architect/skills/estimate/references/writing.md +75 -43
- package/plugins/solution-architect/skills/estimate/scripts/lib/checks.mjs +37 -5
- package/plugins/solution-architect/skills/estimate/scripts/lib/context-schema.mjs +35 -0
- package/plugins/solution-architect/skills/estimate/scripts/lib/estimate-math.mjs +17 -75
- package/plugins/solution-architect/skills/estimate/scripts/lib/inline.mjs +5 -5
- package/plugins/solution-architect/skills/estimate/scripts/lib/pricing.mjs +78 -0
- package/plugins/solution-architect/skills/estimate/scripts/lib/project-price.mjs +96 -0
- package/plugins/solution-architect/skills/estimate/scripts/lib/redact.mjs +67 -19
- package/plugins/solution-architect/skills/estimate/scripts/lib/roadmap.mjs +4 -5
- package/plugins/solution-architect/skills/estimate/scripts/lib/rollup.mjs +48 -73
- package/plugins/solution-architect/skills/estimate/scripts/lib/schema.mjs +28 -13
- package/plugins/solution-architect/skills/estimate/scripts/lib/score-csv.mjs +2 -2
- package/plugins/solution-architect/skills/estimate/scripts/lib/score-html.mjs +1 -1
- package/plugins/solution-architect/skills/estimate/scripts/lib/scoring.mjs +2 -2
- package/plugins/solution-architect/skills/estimate/scripts/render.mjs +1 -1
- package/plugins/solution-architect/skills/estimate/scripts/score-review.mjs +1 -1
- package/plugins/solution-architect/skills/estimate/scripts/test/browser-agentic.test.mjs +143 -0
- package/plugins/solution-architect/skills/estimate/scripts/test/browser.test.mjs +209 -50
- package/plugins/solution-architect/skills/estimate/scripts/test/compute.test.mjs +57 -32
- package/plugins/solution-architect/skills/estimate/scripts/test/e2e.test.mjs +52 -0
- package/plugins/solution-architect/skills/estimate/scripts/test/estimate-math.test.mjs +25 -112
- package/plugins/solution-architect/skills/estimate/scripts/test/fixtures/agentic-estimation-fail.md +0 -10
- package/plugins/solution-architect/skills/estimate/scripts/test/fixtures/agentic-estimation-pass.md +0 -10
- package/plugins/solution-architect/skills/estimate/scripts/test/fixtures/agentic-inputs.json +1 -7
- package/plugins/solution-architect/skills/estimate/scripts/test/fixtures/booking-inputs.json +11 -10
- package/plugins/solution-architect/skills/estimate/scripts/test/fixtures/estimation-fail.md +6 -0
- package/plugins/solution-architect/skills/estimate/scripts/test/fixtures/estimation-pass.md +17 -21
- package/plugins/solution-architect/skills/estimate/scripts/test/pricing.test.mjs +88 -0
- package/plugins/solution-architect/skills/estimate/scripts/test/project-price.test.mjs +93 -0
- package/plugins/solution-architect/skills/estimate/scripts/test/references.test.mjs +86 -24
- package/plugins/solution-architect/skills/estimate/scripts/test/render.test.mjs +185 -31
- package/plugins/solution-architect/skills/estimate/scripts/test/schema.test.mjs +114 -61
- package/plugins/solution-architect/skills/estimate/scripts/test/score-review.test.mjs +34 -1
- package/plugins/solution-architect/skills/estimate/scripts/test/validate.test.mjs +103 -9
- package/plugins/solution-architect/skills/estimate/scripts/test/xlsx-export.test.mjs +292 -71
- package/plugins/solution-architect/skills/new-lead/SKILL.md +4 -3
- package/plugins/solution-architect/skills/proposal/README.md +9 -7
- package/plugins/solution-architect/skills/proposal/SKILL.md +10 -7
- package/plugins/solution-architect/skills/proposal/evals/evals.json +29 -11
- package/plugins/solution-architect/skills/proposal/evals/fixtures/gate-check-unpriced-harborline/ARCHITECTURE.md +65 -0
- package/plugins/solution-architect/skills/proposal/evals/fixtures/gate-check-unpriced-harborline/brief.md +21 -0
- package/plugins/solution-architect/skills/proposal/evals/fixtures/gate-check-unpriced-harborline/estimation-inputs.json +126 -0
- package/plugins/solution-architect/skills/proposal/evals/fixtures/gate-check-unpriced-harborline/estimation.json +215 -0
- package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/estimation-inputs.json +224 -34
- package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/estimation.json +103 -114
- package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/estimation.md +48 -22
- package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-meridian-dental/estimation-inputs.json +211 -33
- package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-meridian-dental/estimation.json +102 -117
- package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-meridian-dental/estimation.md +48 -25
- package/plugins/solution-architect/skills/proposal/references/interview.md +3 -6
- package/plugins/solution-architect/skills/proposal/references/review.md +5 -4
- package/plugins/solution-architect/skills/proposal/references/writing.md +33 -31
- package/plugins/solution-architect/skills/proposal/scripts/derive.mjs +1 -1
- package/plugins/solution-architect/skills/proposal/scripts/lib/checks-client.mjs +5 -22
- package/plugins/solution-architect/skills/proposal/scripts/lib/checks-doc.mjs +18 -8
- package/plugins/solution-architect/skills/proposal/scripts/lib/checks.mjs +6 -2
- package/plugins/solution-architect/skills/proposal/scripts/lib/figures.mjs +24 -33
- package/plugins/solution-architect/skills/proposal/scripts/lib/sections.mjs +1 -1
- package/plugins/solution-architect/skills/proposal/scripts/test/checks-client.test.mjs +50 -47
- package/plugins/solution-architect/skills/proposal/scripts/test/checks-doc.test.mjs +99 -40
- package/plugins/solution-architect/skills/proposal/scripts/test/docs.test.mjs +11 -5
- package/plugins/solution-architect/skills/proposal/scripts/test/e2e.test.mjs +1 -1
- package/plugins/solution-architect/skills/proposal/scripts/test/evals-fixtures.test.mjs +39 -0
- package/plugins/solution-architect/skills/proposal/scripts/test/figures.test.mjs +67 -54
- package/plugins/solution-architect/skills/proposal/scripts/test/fixtures/proposal-fail.md +6 -1
- package/plugins/solution-architect/skills/proposal/scripts/test/fixtures/proposal-pass.md +8 -12
- package/plugins/solution-architect/skills/proposal/scripts/test/render.test.mjs +1 -1
- package/plugins/solution-architect/skills/proposal/scripts/test/validate.test.mjs +3 -2
- package/plugins/solution-architect/skills/estimate/scripts/lib/scenario-schema.mjs +0 -39
package/README.md
CHANGED
|
@@ -82,7 +82,7 @@ rather than a hang.
|
|
|
82
82
|
| Plugin | Description | Version |
|
|
83
83
|
| -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
|
|
84
84
|
| `business-analyst` | Business-analysis toolkit: interview-driven requirements discovery that turns raw client input into a validated, traceable requirements package ready for solution architecture. | 0.2.0 |
|
|
85
|
-
| `solution-architect` | Solution-architecture toolkit: interview-driven architecture documentation with interactive diagrams and provenance-tagged facts, AI-aware project estimation, and client-ready proposals. |
|
|
85
|
+
| `solution-architect` | Solution-architecture toolkit: interview-driven architecture documentation with interactive diagrams and provenance-tagged facts, AI-aware project estimation, and client-ready proposals. | 3.0.1 |
|
|
86
86
|
| `lmk` | Terminal-native visual explainer: explains the current topic with cheap diagrams (flowcharts, sequences, timelines, tables) rendered directly in the terminal via a bundled Mermaid renderer. | 0.1.0 |
|
|
87
87
|
|
|
88
88
|
## Skills
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "reasoning",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "Reasoning toolkit: classify a problem, pick a fitting framework, and work it to a testable next step — with evidence and assumptions kept apart.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Truong Vu",
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
max_turns: 10
|
|
3
|
+
allowed_tools: [Read, Glob, Grep, Skill]
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Use the problem-router skill on this: every quarter the same onboarding
|
|
7
|
+
delays come back. We fix the handoff between sales and provisioning, it
|
|
8
|
+
holds for a few weeks, then a different team hits the same wall. Three
|
|
9
|
+
fixes in two years.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: llm
|
|
3
|
+
weight: 1
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
PASS if every `evidence` entry shows an id (`e1`, `e2`, …) and a
|
|
7
|
+
`supports` list, and every id in those lists names a `c`-prefixed item
|
|
8
|
+
that appears in the `five_whys` block.
|
|
9
|
+
FAIL if any evidence entry has no id, has no `supports` list, or lists an
|
|
10
|
+
id that no framework item carries.
|
|
11
|
+
An empty list `[]` counts as a list and passes.
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: llm
|
|
3
|
+
weight: 1
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
The input gives no evidence for any cause.
|
|
7
|
+
|
|
8
|
+
PASS if the deepest cause in the `rca` block has a `c`-prefixed id and
|
|
9
|
+
carries `status: root_candidate` (or renders the status `root_candidate`
|
|
10
|
+
next to it).
|
|
11
|
+
FAIL if any cause carries `status: root`, or if the cause has no id.
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
---
|
|
2
|
+
max_turns: 10
|
|
3
|
+
allowed_tools: [Read, Glob, Grep, Skill]
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Use the problem-solving skill with rca on this: the checkout page times
|
|
7
|
+
out for some users since Tuesday. The team suspects Tuesday's payment SDK
|
|
8
|
+
upgrade, but nobody has checked. No logs are available yet.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
type: llm
|
|
3
|
+
weight: 1
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
PASS if the response contains the six core fields and one `iceberg`
|
|
7
|
+
block, and says the file was not saved exactly once.
|
|
8
|
+
FAIL if the analysis stops or is cut short because of the save, if the
|
|
9
|
+
save is retried, or if "not saved" is repeated.
|
|
@@ -44,3 +44,9 @@ for classification only.
|
|
|
44
44
|
because `systems-thinking` and `systemic-design` aren't built yet — it
|
|
45
45
|
says so and offers the closest available option with its limitation named.
|
|
46
46
|
- Doesn't emit numeric confidence — only `low` / `medium` / `high`.
|
|
47
|
+
|
|
48
|
+
## Output
|
|
49
|
+
|
|
50
|
+
Every run is also saved under `~/.reasoning/problems/`, one folder per
|
|
51
|
+
problem and one file per run. If Claude Code isn't allowed to write
|
|
52
|
+
there, the run says "not saved" and carries on.
|
|
@@ -142,6 +142,10 @@ evidence types, assumption status, and confidence rules. Don't guess at
|
|
|
142
142
|
any of it here; the contract is the single source of truth for the field
|
|
143
143
|
set.
|
|
144
144
|
|
|
145
|
+
Save the run per `references/contract.md` Saving. When you recommend a
|
|
146
|
+
skill, name the problem folder path in the hand-off so that skill writes
|
|
147
|
+
into it. If this run started from a hand-off that names a folder, use it.
|
|
148
|
+
|
|
145
149
|
## Degradation
|
|
146
150
|
|
|
147
151
|
`complex` routes to `systems-thinking`, which is built. Route to it
|
|
@@ -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 |
|
|
@@ -65,43 +105,98 @@ evidence.
|
|
|
65
105
|
|
|
66
106
|
## Rendering
|
|
67
107
|
|
|
68
|
-
In chat
|
|
69
|
-
|
|
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.
|
|
70
113
|
|
|
71
114
|
A structure containing a cycle gets a diagram; one without gets prose.
|
|
72
115
|
Prose renders a cycle as a list, and a list loses the closure — `A -> B ->
|
|
73
116
|
C -> A` read top to bottom does not show that it comes back.
|
|
74
117
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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.
|
|
79
160
|
|
|
80
161
|
Example saved file:
|
|
81
162
|
|
|
82
163
|
```markdown
|
|
83
164
|
---
|
|
84
|
-
problem: Deploys fail intermittently after the runner image update.
|
|
165
|
+
problem: "Deploys fail intermittently after the runner image update."
|
|
85
166
|
framework_used: five-whys
|
|
86
|
-
framework_reason: Narrow scope, causal chain looks linear.
|
|
167
|
+
framework_reason: "Narrow scope, causal chain looks linear."
|
|
87
168
|
evidence:
|
|
88
|
-
-
|
|
89
|
-
|
|
169
|
+
- id: e1
|
|
170
|
+
type: log
|
|
171
|
+
ref: "ci-run-4471"
|
|
172
|
+
supports: [c1, c2]
|
|
90
173
|
assumptions:
|
|
91
|
-
-
|
|
174
|
+
- id: a1
|
|
175
|
+
statement: "Staging mirrors production runner config."
|
|
92
176
|
status: unverified
|
|
177
|
+
supports: [c2]
|
|
93
178
|
open_questions:
|
|
94
|
-
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
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]
|
|
98
187
|
five_whys:
|
|
99
188
|
why_chain:
|
|
100
|
-
-
|
|
101
|
-
|
|
102
|
-
|
|
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
|
|
103
197
|
uncertainties:
|
|
104
|
-
-
|
|
198
|
+
- id: c4
|
|
199
|
+
text: "Whether rotation was ever automated."
|
|
105
200
|
---
|
|
106
201
|
|
|
107
202
|
# Problem analysis
|
|
@@ -49,3 +49,9 @@ block, sized to what a two-line problem with one log actually supports.
|
|
|
49
49
|
- Doesn't pad a small problem out to fill every section of a framework —
|
|
50
50
|
length scales to the evidence, not to the template.
|
|
51
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
|
|
|
@@ -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 |
|
|
@@ -65,43 +105,98 @@ evidence.
|
|
|
65
105
|
|
|
66
106
|
## Rendering
|
|
67
107
|
|
|
68
|
-
In chat
|
|
69
|
-
|
|
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.
|
|
70
113
|
|
|
71
114
|
A structure containing a cycle gets a diagram; one without gets prose.
|
|
72
115
|
Prose renders a cycle as a list, and a list loses the closure — `A -> B ->
|
|
73
116
|
C -> A` read top to bottom does not show that it comes back.
|
|
74
117
|
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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.
|
|
79
160
|
|
|
80
161
|
Example saved file:
|
|
81
162
|
|
|
82
163
|
```markdown
|
|
83
164
|
---
|
|
84
|
-
problem: Deploys fail intermittently after the runner image update.
|
|
165
|
+
problem: "Deploys fail intermittently after the runner image update."
|
|
85
166
|
framework_used: five-whys
|
|
86
|
-
framework_reason: Narrow scope, causal chain looks linear.
|
|
167
|
+
framework_reason: "Narrow scope, causal chain looks linear."
|
|
87
168
|
evidence:
|
|
88
|
-
-
|
|
89
|
-
|
|
169
|
+
- id: e1
|
|
170
|
+
type: log
|
|
171
|
+
ref: "ci-run-4471"
|
|
172
|
+
supports: [c1, c2]
|
|
90
173
|
assumptions:
|
|
91
|
-
-
|
|
174
|
+
- id: a1
|
|
175
|
+
statement: "Staging mirrors production runner config."
|
|
92
176
|
status: unverified
|
|
177
|
+
supports: [c2]
|
|
93
178
|
open_questions:
|
|
94
|
-
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
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]
|
|
98
187
|
five_whys:
|
|
99
188
|
why_chain:
|
|
100
|
-
-
|
|
101
|
-
|
|
102
|
-
|
|
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
|
|
103
197
|
uncertainties:
|
|
104
|
-
-
|
|
198
|
+
- id: c4
|
|
199
|
+
text: "Whether rotation was ever automated."
|
|
105
200
|
---
|
|
106
201
|
|
|
107
202
|
# Problem analysis
|
|
@@ -49,6 +49,8 @@ Ask exactly one question with `AskUserQuestion`.
|
|
|
49
49
|
| Stop | nothing | emit now, stating "stopped on request" |
|
|
50
50
|
|
|
51
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.
|
|
52
54
|
|
|
53
55
|
| Situation | Handling |
|
|
54
56
|
| --------- | -------- |
|
|
@@ -40,3 +40,6 @@ it asks you for it — one question at a time, each naming where to look.
|
|
|
40
40
|
|
|
41
41
|
Six core fields plus exactly one framework block, per the shared contract
|
|
42
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.
|
|
@@ -39,6 +39,8 @@ recommend `systems-thinking` first, and run here only if the human says so.
|
|
|
39
39
|
- A prior `systems-thinking` result, read through its six core fields and
|
|
40
40
|
its one block. Its `evidence` stays evidence; its `assumptions` keep
|
|
41
41
|
their status. Nothing is promoted on the way in.
|
|
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
|
|