@v11g/agents-rock 1.0.6 → 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 (249) hide show
  1. package/package.json +1 -1
  2. package/plugins/business-analyst/skills/business-analyst/evals/evals.json +54 -0
  3. package/plugins/business-analyst/skills/business-analyst/evals/fixtures/pre-fed-ai-contract-review/kestrel-discovery-call.md +137 -0
  4. package/plugins/business-analyst/skills/business-analyst/evals/fixtures/thin-warehouse-brief/havenridge-thread.md +75 -0
  5. package/plugins/reasoning/.claude-plugin/plugin.json +9 -0
  6. package/plugins/reasoning/evals/guardrail-no-fabricated-figures/graders/names-missing-data.md +10 -0
  7. package/plugins/reasoning/evals/guardrail-no-fabricated-figures/graders/no-invented-numbers.md +23 -0
  8. package/plugins/reasoning/evals/guardrail-no-fabricated-figures/graders/one-framework.md +12 -0
  9. package/plugins/reasoning/evals/guardrail-no-fabricated-figures/graders/skill-fired.md +7 -0
  10. package/plugins/reasoning/evals/guardrail-no-fabricated-figures/prompt.md +44 -0
  11. package/plugins/reasoning/evals/guardrail-no-over-analysis/graders/no-diagram.md +8 -0
  12. package/plugins/reasoning/evals/guardrail-no-over-analysis/graders/no-padding.md +12 -0
  13. package/plugins/reasoning/evals/guardrail-no-over-analysis/graders/no-systems-thinking-vocabulary.md +12 -0
  14. package/plugins/reasoning/evals/guardrail-no-over-analysis/graders/one-framework-block.md +7 -0
  15. package/plugins/reasoning/evals/guardrail-no-over-analysis/graders/skill-fired.md +7 -0
  16. package/plugins/reasoning/evals/guardrail-no-over-analysis/prompt.md +7 -0
  17. package/plugins/reasoning/evals/guardrail-no-unsupported-root-cause/graders/chain-stops-at-speculation.md +10 -0
  18. package/plugins/reasoning/evals/guardrail-no-unsupported-root-cause/graders/inferred-links-are-assumptions.md +10 -0
  19. package/plugins/reasoning/evals/guardrail-no-unsupported-root-cause/graders/root-candidate-not-asserted.md +11 -0
  20. package/plugins/reasoning/evals/guardrail-no-unsupported-root-cause/graders/six-core-fields.md +21 -0
  21. package/plugins/reasoning/evals/guardrail-no-unsupported-root-cause/graders/skill-fired.md +7 -0
  22. package/plugins/reasoning/evals/guardrail-no-unsupported-root-cause/graders/uncertainties-present.md +9 -0
  23. package/plugins/reasoning/evals/guardrail-no-unsupported-root-cause/prompt.md +7 -0
  24. package/plugins/reasoning/evals/guardrail-unavailable-framework/graders/names-closest-available.md +10 -0
  25. package/plugins/reasoning/evals/guardrail-unavailable-framework/graders/no-improvised-levels.md +9 -0
  26. package/plugins/reasoning/evals/guardrail-unavailable-framework/graders/skill-fired.md +7 -0
  27. package/plugins/reasoning/evals/guardrail-unavailable-framework/graders/states-unavailable.md +9 -0
  28. package/plugins/reasoning/evals/guardrail-unavailable-framework/graders/systemic-design-fired.md +10 -0
  29. package/plugins/reasoning/evals/guardrail-unavailable-framework/prompt.md +7 -0
  30. package/plugins/reasoning/evals/ps-interview-first-question/graders/look-in-present.md +10 -0
  31. package/plugins/reasoning/evals/ps-interview-first-question/graders/no-fixed-exits.md +11 -0
  32. package/plugins/reasoning/evals/ps-interview-first-question/graders/options-from-input.md +15 -0
  33. package/plugins/reasoning/evals/ps-interview-first-question/graders/skill-fired.md +7 -0
  34. package/plugins/reasoning/evals/ps-interview-first-question/graders/source-hint.md +11 -0
  35. package/plugins/reasoning/evals/ps-interview-first-question/graders/targets-gap.md +13 -0
  36. package/plugins/reasoning/evals/ps-interview-first-question/prompt.md +8 -0
  37. package/plugins/reasoning/evals/ps-interview-five-whys/graders/look-in-present.md +10 -0
  38. package/plugins/reasoning/evals/ps-interview-five-whys/graders/no-fixed-exits.md +11 -0
  39. package/plugins/reasoning/evals/ps-interview-five-whys/graders/options-from-input.md +11 -0
  40. package/plugins/reasoning/evals/ps-interview-five-whys/graders/skill-fired.md +7 -0
  41. package/plugins/reasoning/evals/ps-interview-five-whys/graders/source-hint.md +11 -0
  42. package/plugins/reasoning/evals/ps-interview-five-whys/graders/targets-gap.md +15 -0
  43. package/plugins/reasoning/evals/ps-interview-five-whys/prompt.md +8 -0
  44. package/plugins/reasoning/evals/ps-router-handoff/graders/no-reselection.md +11 -0
  45. package/plugins/reasoning/evals/ps-router-handoff/graders/runs-rca.md +8 -0
  46. package/plugins/reasoning/evals/ps-router-handoff/graders/skill-fired.md +7 -0
  47. package/plugins/reasoning/evals/ps-router-handoff/prompt.md +11 -0
  48. package/plugins/reasoning/evals/routing-adaptive-discriminator/graders/classifies-complex.md +13 -0
  49. package/plugins/reasoning/evals/routing-adaptive-discriminator/graders/confidence-single-word.md +10 -0
  50. package/plugins/reasoning/evals/routing-adaptive-discriminator/graders/names-the-test-applied.md +13 -0
  51. package/plugins/reasoning/evals/routing-adaptive-discriminator/graders/no-analysis.md +15 -0
  52. package/plugins/reasoning/evals/routing-adaptive-discriminator/graders/routes-to-systems-thinking.md +12 -0
  53. package/plugins/reasoning/evals/routing-adaptive-discriminator/graders/skill-fired.md +7 -0
  54. package/plugins/reasoning/evals/routing-adaptive-discriminator/prompt.md +15 -0
  55. package/plugins/reasoning/evals/routing-ambiguous-feature-request/graders/classifies-ambiguous.md +8 -0
  56. package/plugins/reasoning/evals/routing-ambiguous-feature-request/graders/confidence-single-word.md +10 -0
  57. package/plugins/reasoning/evals/routing-ambiguous-feature-request/graders/every-rejection-has-a-reason.md +8 -0
  58. package/plugins/reasoning/evals/routing-ambiguous-feature-request/graders/recommends-double-diamond.md +7 -0
  59. package/plugins/reasoning/evals/routing-ambiguous-feature-request/graders/rejects-rca-and-five-whys.md +10 -0
  60. package/plugins/reasoning/evals/routing-ambiguous-feature-request/graders/skill-fired.md +7 -0
  61. package/plugins/reasoning/evals/routing-ambiguous-feature-request/prompt.md +6 -0
  62. package/plugins/reasoning/evals/routing-classify-only/graders/classifies-without-recommending.md +10 -0
  63. package/plugins/reasoning/evals/routing-classify-only/graders/confidence-single-word.md +10 -0
  64. package/plugins/reasoning/evals/routing-classify-only/graders/no-diagnosis.md +9 -0
  65. package/plugins/reasoning/evals/routing-classify-only/graders/reason-drawn-from-prompt.md +10 -0
  66. package/plugins/reasoning/evals/routing-classify-only/graders/skill-fired.md +7 -0
  67. package/plugins/reasoning/evals/routing-classify-only/prompt.md +6 -0
  68. package/plugins/reasoning/evals/routing-complex-adaptive-org-change/graders/classifies-complex-adaptive.md +8 -0
  69. package/plugins/reasoning/evals/routing-complex-adaptive-org-change/graders/confidence-single-word.md +10 -0
  70. package/plugins/reasoning/evals/routing-complex-adaptive-org-change/graders/names-both-skills-in-order.md +18 -0
  71. package/plugins/reasoning/evals/routing-complex-adaptive-org-change/graders/no-downgrade.md +9 -0
  72. package/plugins/reasoning/evals/routing-complex-adaptive-org-change/graders/no-unavailability-claim.md +10 -0
  73. package/plugins/reasoning/evals/routing-complex-adaptive-org-change/graders/skill-fired.md +7 -0
  74. package/plugins/reasoning/evals/routing-complex-adaptive-org-change/prompt.md +6 -0
  75. package/plugins/reasoning/evals/routing-complex-delivery-slowdown/graders/classifies-complex-adaptive.md +14 -0
  76. package/plugins/reasoning/evals/routing-complex-delivery-slowdown/graders/confidence-single-word.md +10 -0
  77. package/plugins/reasoning/evals/routing-complex-delivery-slowdown/graders/no-analysis.md +23 -0
  78. package/plugins/reasoning/evals/routing-complex-delivery-slowdown/graders/no-fabricated-figures.md +13 -0
  79. package/plugins/reasoning/evals/routing-complex-delivery-slowdown/graders/no-hiring-remedy.md +9 -0
  80. package/plugins/reasoning/evals/routing-complex-delivery-slowdown/graders/routes-to-systems-thinking.md +14 -0
  81. package/plugins/reasoning/evals/routing-complex-delivery-slowdown/graders/skill-fired.md +7 -0
  82. package/plugins/reasoning/evals/routing-complex-delivery-slowdown/prompt.md +64 -0
  83. package/plugins/reasoning/evals/routing-simple-null-pointer/graders/classifies-simple.md +7 -0
  84. package/plugins/reasoning/evals/routing-simple-null-pointer/graders/confidence-single-word.md +10 -0
  85. package/plugins/reasoning/evals/routing-simple-null-pointer/graders/no-heavy-frameworks.md +9 -0
  86. package/plugins/reasoning/evals/routing-simple-null-pointer/graders/routing-discipline.md +12 -0
  87. package/plugins/reasoning/evals/routing-simple-null-pointer/graders/six-core-fields.md +21 -0
  88. package/plugins/reasoning/evals/routing-simple-null-pointer/graders/skill-fired.md +7 -0
  89. package/plugins/reasoning/evals/routing-simple-null-pointer/prompt.md +6 -0
  90. package/plugins/reasoning/evals/routing-thin-input-provisional/graders/at-most-three-class-changing-questions.md +9 -0
  91. package/plugins/reasoning/evals/routing-thin-input-provisional/graders/confidence-low.md +9 -0
  92. package/plugins/reasoning/evals/routing-thin-input-provisional/graders/confidence-single-word.md +10 -0
  93. package/plugins/reasoning/evals/routing-thin-input-provisional/graders/no-invented-detail.md +10 -0
  94. package/plugins/reasoning/evals/routing-thin-input-provisional/graders/skill-fired.md +7 -0
  95. package/plugins/reasoning/evals/routing-thin-input-provisional/graders/states-provisional.md +9 -0
  96. package/plugins/reasoning/evals/routing-thin-input-provisional/prompt.md +6 -0
  97. package/plugins/reasoning/evals/sd-default-selection/graders/dates-traced.md +15 -0
  98. package/plugins/reasoning/evals/sd-default-selection/graders/interventions-cite-entries.md +12 -0
  99. package/plugins/reasoning/evals/sd-default-selection/graders/owners-from-input.md +8 -0
  100. package/plugins/reasoning/evals/sd-default-selection/graders/plan-steps-complete.md +21 -0
  101. package/plugins/reasoning/evals/sd-default-selection/graders/selects-systemic-design.md +12 -0
  102. package/plugins/reasoning/evals/sd-default-selection/graders/skill-fired.md +7 -0
  103. package/plugins/reasoning/evals/sd-default-selection/graders/systemic-design-fired.md +10 -0
  104. package/plugins/reasoning/evals/sd-default-selection/prompt.md +11 -0
  105. package/plugins/reasoning/evals/sd-named-framework-software/graders/names-no-skill.md +11 -0
  106. package/plugins/reasoning/evals/sd-named-framework-software/graders/no-systemic-block.md +10 -0
  107. package/plugins/reasoning/evals/sd-named-framework-software/graders/systemic-design-fired.md +10 -0
  108. package/plugins/reasoning/evals/sd-named-framework-software/prompt.md +8 -0
  109. package/plugins/reasoning/evals/sd-not-software/graders/no-systemic-block.md +10 -0
  110. package/plugins/reasoning/evals/sd-not-software/graders/says-out-of-scope.md +10 -0
  111. package/plugins/reasoning/evals/sd-not-software/prompt.md +8 -0
  112. package/plugins/reasoning/evals/sd-raw-input/graders/first-question-targets-model.md +11 -0
  113. package/plugins/reasoning/evals/sd-raw-input/graders/look-in-present.md +10 -0
  114. package/plugins/reasoning/evals/sd-raw-input/graders/model-gap-blocks-stop.md +14 -0
  115. package/plugins/reasoning/evals/sd-raw-input/graders/model-in-assumptions.md +13 -0
  116. package/plugins/reasoning/evals/sd-raw-input/graders/no-fixed-exits.md +11 -0
  117. package/plugins/reasoning/evals/sd-raw-input/graders/skill-fired.md +7 -0
  118. package/plugins/reasoning/evals/sd-raw-input/graders/systemic-design-fired.md +10 -0
  119. package/plugins/reasoning/evals/sd-raw-input/prompt.md +8 -0
  120. package/plugins/reasoning/evals/sd-theory-of-change/graders/links-carry-assumptions.md +9 -0
  121. package/plugins/reasoning/evals/sd-theory-of-change/graders/no-dates.md +8 -0
  122. package/plugins/reasoning/evals/sd-theory-of-change/graders/skill-fired.md +7 -0
  123. package/plugins/reasoning/evals/sd-theory-of-change/graders/systemic-design-fired.md +10 -0
  124. package/plugins/reasoning/evals/sd-theory-of-change/graders/toc-block.md +10 -0
  125. package/plugins/reasoning/evals/sd-theory-of-change/prompt.md +8 -0
  126. package/plugins/reasoning/evals/sd-three-horizons/graders/dates-are-assumptions.md +11 -0
  127. package/plugins/reasoning/evals/sd-three-horizons/graders/owners-are-roles.md +8 -0
  128. package/plugins/reasoning/evals/sd-three-horizons/graders/skill-fired.md +7 -0
  129. package/plugins/reasoning/evals/sd-three-horizons/graders/systemic-design-fired.md +10 -0
  130. package/plugins/reasoning/evals/sd-three-horizons/graders/three-horizons-block.md +10 -0
  131. package/plugins/reasoning/evals/sd-three-horizons/prompt.md +9 -0
  132. package/plugins/reasoning/evals/st-causal-loop-unclosed/graders/diagram-present.md +10 -0
  133. package/plugins/reasoning/evals/st-causal-loop-unclosed/graders/edges-carry-support-labels.md +12 -0
  134. package/plugins/reasoning/evals/st-causal-loop-unclosed/graders/no-invented-delays.md +13 -0
  135. package/plugins/reasoning/evals/st-causal-loop-unclosed/graders/open-chain-not-called-a-loop.md +13 -0
  136. package/plugins/reasoning/evals/st-causal-loop-unclosed/graders/skill-fired.md +7 -0
  137. package/plugins/reasoning/evals/st-causal-loop-unclosed/prompt.md +14 -0
  138. package/plugins/reasoning/evals/st-iceberg-thin-input/graders/empty-level-is-honest.md +14 -0
  139. package/plugins/reasoning/evals/st-iceberg-thin-input/graders/no-diagram.md +11 -0
  140. package/plugins/reasoning/evals/st-iceberg-thin-input/graders/no-invented-mental-model.md +13 -0
  141. package/plugins/reasoning/evals/st-iceberg-thin-input/graders/six-core-fields.md +12 -0
  142. package/plugins/reasoning/evals/st-iceberg-thin-input/graders/skill-fired.md +7 -0
  143. package/plugins/reasoning/evals/st-iceberg-thin-input/prompt.md +9 -0
  144. package/plugins/reasoning/evals/st-interview-first-question/graders/look-in-present.md +10 -0
  145. package/plugins/reasoning/evals/st-interview-first-question/graders/no-fixed-exits.md +11 -0
  146. package/plugins/reasoning/evals/st-interview-first-question/graders/options-from-input.md +11 -0
  147. package/plugins/reasoning/evals/st-interview-first-question/graders/skill-fired.md +7 -0
  148. package/plugins/reasoning/evals/st-interview-first-question/graders/source-hint.md +11 -0
  149. package/plugins/reasoning/evals/st-interview-first-question/graders/targets-gap.md +13 -0
  150. package/plugins/reasoning/evals/st-interview-first-question/prompt.md +8 -0
  151. package/plugins/reasoning/evals/st-leverage-points-bound/graders/elements-carry-evidence-types.md +13 -0
  152. package/plugins/reasoning/evals/st-leverage-points-bound/graders/every-level-matches-an-element.md +13 -0
  153. package/plugins/reasoning/evals/st-leverage-points-bound/graders/no-adoption-plan.md +12 -0
  154. package/plugins/reasoning/evals/st-leverage-points-bound/graders/skill-fired.md +7 -0
  155. package/plugins/reasoning/evals/st-leverage-points-bound/graders/uncovered-kinds-are-stated.md +11 -0
  156. package/plugins/reasoning/evals/st-leverage-points-bound/prompt.md +11 -0
  157. package/plugins/reasoning/evals/st-selection-boundary/graders/first-match-wins.md +17 -0
  158. package/plugins/reasoning/evals/st-selection-boundary/graders/one-block-only.md +12 -0
  159. package/plugins/reasoning/evals/st-selection-boundary/graders/rejected-candidate-has-a-reason.md +11 -0
  160. package/plugins/reasoning/evals/st-selection-boundary/graders/six-core-fields.md +12 -0
  161. package/plugins/reasoning/evals/st-selection-boundary/graders/skill-fired.md +7 -0
  162. package/plugins/reasoning/evals/st-selection-boundary/prompt.md +13 -0
  163. package/plugins/reasoning/evals/st-system-map-boundary/graders/boundary-stated.md +9 -0
  164. package/plugins/reasoning/evals/st-system-map-boundary/graders/external-factors-hold-the-unconnected.md +15 -0
  165. package/plugins/reasoning/evals/st-system-map-boundary/graders/no-intervention-design.md +11 -0
  166. package/plugins/reasoning/evals/st-system-map-boundary/graders/no-invented-components.md +12 -0
  167. package/plugins/reasoning/evals/st-system-map-boundary/graders/skill-fired.md +7 -0
  168. package/plugins/reasoning/evals/st-system-map-boundary/prompt.md +15 -0
  169. package/plugins/reasoning/skills/problem-router/README.md +46 -0
  170. package/plugins/reasoning/skills/problem-router/SKILL.md +221 -0
  171. package/plugins/reasoning/skills/problem-router/references/contract.md +110 -0
  172. package/plugins/reasoning/skills/problem-solving/README.md +51 -0
  173. package/plugins/reasoning/skills/problem-solving/SKILL.md +204 -0
  174. package/plugins/reasoning/skills/problem-solving/frameworks/a3.md +46 -0
  175. package/plugins/reasoning/skills/problem-solving/frameworks/double-diamond.md +60 -0
  176. package/plugins/reasoning/skills/problem-solving/frameworks/five-whys.md +49 -0
  177. package/plugins/reasoning/skills/problem-solving/frameworks/pdca.md +46 -0
  178. package/plugins/reasoning/skills/problem-solving/frameworks/root-cause-analysis.md +59 -0
  179. package/plugins/reasoning/skills/problem-solving/references/contract.md +110 -0
  180. package/plugins/reasoning/skills/problem-solving/references/interview.md +66 -0
  181. package/plugins/reasoning/skills/systemic-design/README.md +42 -0
  182. package/plugins/reasoning/skills/systemic-design/SKILL.md +182 -0
  183. package/plugins/reasoning/skills/systemic-design/frameworks/systemic-design.md +39 -0
  184. package/plugins/reasoning/skills/systemic-design/frameworks/theory-of-change.md +34 -0
  185. package/plugins/reasoning/skills/systemic-design/frameworks/three-horizons.md +28 -0
  186. package/plugins/reasoning/skills/systemic-design/references/contract.md +110 -0
  187. package/plugins/reasoning/skills/systemic-design/references/interview.md +66 -0
  188. package/plugins/reasoning/skills/systems-thinking/README.md +43 -0
  189. package/plugins/reasoning/skills/systems-thinking/SKILL.md +216 -0
  190. package/plugins/reasoning/skills/systems-thinking/frameworks/causal-loop.md +61 -0
  191. package/plugins/reasoning/skills/systems-thinking/frameworks/iceberg.md +43 -0
  192. package/plugins/reasoning/skills/systems-thinking/frameworks/leverage-points.md +80 -0
  193. package/plugins/reasoning/skills/systems-thinking/frameworks/system-map.md +45 -0
  194. package/plugins/reasoning/skills/systems-thinking/references/contract.md +110 -0
  195. package/plugins/reasoning/skills/systems-thinking/references/interview.md +66 -0
  196. package/plugins/solution-architect/skills/analyze-requirements/SKILL.md +3 -2
  197. package/plugins/solution-architect/skills/analyze-requirements/evals/evals.json +66 -0
  198. package/plugins/solution-architect/skills/analyze-requirements/evals/fixtures/greenfield-llm-triage-spec/triage-service-spec.md +105 -0
  199. package/plugins/solution-architect/skills/analyze-requirements/references/rewriting.md +108 -0
  200. package/plugins/solution-architect/skills/analyze-requirements/scripts/drift.mjs +64 -0
  201. package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/drift.mjs +31 -0
  202. package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/git-diff.mjs +27 -0
  203. package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/state.mjs +52 -0
  204. package/plugins/solution-architect/skills/analyze-requirements/scripts/record.mjs +87 -0
  205. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/drift-cli.test.mjs +178 -0
  206. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/drift.test.mjs +76 -0
  207. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/git-diff.test.mjs +62 -0
  208. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/record-cli.test.mjs +136 -0
  209. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/rerun-safety.test.mjs +53 -0
  210. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/rewriting.test.mjs +80 -0
  211. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/state.test.mjs +123 -0
  212. package/plugins/solution-architect/skills/estimate/evals/evals.json +60 -0
  213. package/plugins/solution-architect/skills/estimate/evals/fixtures/gate-check-northgate/northgate-email.md +18 -0
  214. package/plugins/solution-architect/skills/estimate/evals/fixtures/pre-fed-agentic-halyard/measurements.jsonl +17 -0
  215. package/plugins/solution-architect/skills/estimate/evals/fixtures/pre-fed-agentic-halyard/requirements.json +62 -0
  216. package/plugins/solution-architect/skills/estimate/evals/fixtures/pre-fed-agentic-halyard/requirements.md +41 -0
  217. package/plugins/solution-architect/skills/estimate/evals/fixtures/pre-fed-traditional-trellis/ARCHITECTURE.md +71 -0
  218. package/plugins/solution-architect/skills/estimate/evals/fixtures/pre-fed-traditional-trellis/requirements.json +68 -0
  219. package/plugins/solution-architect/skills/estimate/evals/fixtures/pre-fed-traditional-trellis/requirements.md +43 -0
  220. package/plugins/solution-architect/skills/new-lead/evals/evals.json +66 -0
  221. package/plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/ARCHITECTURE.md +19 -0
  222. package/plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/brief.md +5 -0
  223. package/plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/dist/index.html +3 -0
  224. package/plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/estimation.json +10 -0
  225. package/plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/proposal.md +8 -0
  226. package/plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/harborline-logistics-tms/requirements.json +38 -0
  227. package/plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/sable-dental-booking/rfp.md +14 -0
  228. package/plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/vellum-books-checkout/ARCHITECTURE.md +18 -0
  229. package/plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads/vellum-books-checkout/rfp.md +7 -0
  230. package/plugins/solution-architect/skills/new-lead/evals/fixtures/existing-root-pipeline/leads.json +35 -0
  231. package/plugins/solution-architect/skills/new-lead/evals/fixtures/fresh-lead-northwind/rfp-northwind.md +28 -0
  232. package/plugins/solution-architect/skills/new-lead/evals/fixtures/skips-to-proposal/leads/meridian-freight-portal/rfp.md +14 -0
  233. package/plugins/solution-architect/skills/new-lead/evals/fixtures/skips-to-proposal/leads.json +15 -0
  234. package/plugins/solution-architect/skills/proposal/evals/evals.json +67 -0
  235. package/plugins/solution-architect/skills/proposal/evals/fixtures/gate-check-rivet-gym/ARCHITECTURE.md +53 -0
  236. package/plugins/solution-architect/skills/proposal/evals/fixtures/gate-check-rivet-gym/brief.md +23 -0
  237. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/ARCHITECTURE.md +65 -0
  238. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/brief.md +21 -0
  239. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/dist/mermaid.js +5 -0
  240. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/estimation-inputs.json +88 -0
  241. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/estimation.json +407 -0
  242. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/estimation.md +41 -0
  243. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-meridian-dental/ARCHITECTURE.md +68 -0
  244. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-meridian-dental/brief.md +24 -0
  245. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-meridian-dental/dist/mermaid.js +5 -0
  246. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-meridian-dental/estimation-inputs.json +87 -0
  247. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-meridian-dental/estimation.json +394 -0
  248. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-meridian-dental/estimation.md +44 -0
  249. package/src/cli/install.mjs +7 -1
@@ -0,0 +1,80 @@
1
+ # Leverage Points
2
+
3
+ ## When it fits
4
+
5
+ The human asks where to intervene.
6
+
7
+ ## Process
8
+
9
+ You are executing the Leverage Points framework within the systems-thinking
10
+ skill. Its levels describe depths of a system model, so the model has to be
11
+ on the page. This framework builds its own — thin when the input is thin,
12
+ and visibly so.
13
+
14
+ 1. Build `elements`. Read the input (or a prior systems-thinking result
15
+ handed in as input) and record each element you can name, tagged with
16
+ one `kind`:
17
+
18
+ | `kind` | What it is |
19
+ | --- | --- |
20
+ | `parameter` | a setting or quantity that can be turned up or down |
21
+ | `information_flow` | who learns what, and when |
22
+ | `rule` | a policy or constraint someone enforces |
23
+ | `incentive` | what behaviour is rewarded or measured |
24
+ | `structure` | how the parts are arranged or work is routed |
25
+ | `goal` | what the system is trying to achieve |
26
+ | `mental_model` | a belief holding the rest in place |
27
+
28
+ Every row carries an evidence type from the contract. A row the input
29
+ did not state is `inferred`, and the output says so plainly rather than
30
+ presenting it as observed.
31
+
32
+ 2. Build `points`. For each element, ask whether intervening there would
33
+ change the behaviour. Record `intervention`, `level`, `expected_effect`,
34
+ `risks`, and `evidence`.
35
+
36
+ 3. `level` must match the `kind` of a row in `elements`. A level with no
37
+ matching row is an intervention into a part of the system you have not
38
+ established exists — remove it, or add the element with its evidence
39
+ type.
40
+
41
+ 4. Note depth without ranking mechanically: `parameter` interventions are
42
+ the shallowest and the easiest to reverse; `goal` and `mental_model`
43
+ interventions are the deepest and the slowest. Say which you are
44
+ proposing. Do not assert that a deeper intervention is better for this
45
+ problem unless the evidence supports it.
46
+
47
+ ## Output block
48
+
49
+ Emit the `leverage_points` block from `references/contract.md`: `elements`,
50
+ `points`.
51
+
52
+ ```yaml
53
+ leverage_points:
54
+ elements:
55
+ - element: "senior engineers triage all inbound requests"
56
+ kind: rule
57
+ evidence: user-provided fact
58
+ - element: "throughput is measured per-team"
59
+ kind: incentive
60
+ evidence: inferred
61
+ points:
62
+ - intervention: "route triage through a rota"
63
+ level: rule
64
+ expected_effect: "spreads interrupt load off the two named seniors"
65
+ risks: "triage quality drops while the rota ramps"
66
+ evidence: "user-provided fact: seniors are constantly interrupted"
67
+ ```
68
+
69
+ `elements` is a flat kind-tagged list. It is not a system map — no
70
+ boundary, no relationships, no dependencies. If the human needs those, the
71
+ framework they want is `system_map`.
72
+
73
+ ## Stop when
74
+
75
+ Every `kind` present in `elements` has either an intervention or an
76
+ explicit "none identified, because …".
77
+
78
+ Seven kinds, one pass. This framework names where to push, the expected
79
+ effect, and the risks. It does not produce an adoption plan, a sequence, or
80
+ an owner — that is `systemic-design`, the next run.
@@ -0,0 +1,45 @@
1
+ # System Map
2
+
3
+ ## When it fits
4
+
5
+ Two or more actors whose relationships to each other are unclear.
6
+
7
+ ## Process
8
+
9
+ You are executing the System Map framework within the systems-thinking
10
+ skill. The output is a bounded map, and the boundary is the whole point —
11
+ an unbounded map is a list of everything anyone has ever mentioned.
12
+
13
+ 1. Seed the map from the input alone: every actor, component, policy,
14
+ incentive, and information flow the input names.
15
+ 2. Record a `relationship` only between two seeded elements, and only where
16
+ the input states or directly evidences the connection.
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
+ `relationship` already recorded? If neither, it is outside the boundary
20
+ and goes in `external_factors` — the input naming something is not the
21
+ same as the input connecting it.
22
+ 4. State `system_boundary` explicitly as the set of elements that passed.
23
+ The boundary is closure over what the input stated — not a judgement
24
+ about what matters.
25
+
26
+ `dependencies` records where one element cannot function without another,
27
+ and only where the input says so. An inferred dependency is an
28
+ `assumptions` entry.
29
+
30
+ ## Output block
31
+
32
+ Emit the `system_map` block from `references/contract.md`:
33
+ `system_boundary`, `actors`, `components`, `relationships`, `dependencies`,
34
+ `external_factors`.
35
+
36
+ A map whose `relationships` contain a cycle gets a Mermaid diagram; one
37
+ without gets prose. See the contract's Rendering section.
38
+
39
+ ## Stop when
40
+
41
+ Every seeded node has been tested once under step 3.
42
+
43
+ That is the stopping condition in full. Do not keep expanding because the
44
+ map looks sparse — a sparse map over a thin input is accurate, and padding
45
+ it with plausible actors turns evidence into decoration.
@@ -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.
@@ -14,7 +14,8 @@ served on localhost for review.
14
14
  2. One home per fact — diagrams own topology, tables own properties, prose owns neither.
15
15
  3. Unknowns render as honest absences (`Not applicable — <reason>`, `not estimated`, `Not provided`) — never placeholders, never `[TODO]`, never `0`.
16
16
  4. Validation blocks rendering: `node scripts/validate.mjs` must exit 0 before the viewer is generated.
17
- 5. mattpocock files (`CONTEXT.md`, `CONTEXT-MAP.md`, `docs/adr/`) are written into their existing formats — never restructured. Invoke the `domain-modeling` skill for term work.
17
+ 5. Never overwrite what this skill did not write. A file already on disk with no entry in `architecture-state.json` is not ours and is never overwritten, while one with no entry and no file yet is this run's to create; a file whose hash moved has changed since the last run, and is asked about before anything is written (`references/rewriting.md`).
18
+ 6. mattpocock files (`CONTEXT.md`, `CONTEXT-MAP.md`, `docs/adr/`) are written into their existing formats — never restructured. Invoke the `domain-modeling` skill for term work.
18
19
 
19
20
  ## Flow
20
21
 
@@ -22,7 +23,7 @@ served on localhost for review.
22
23
  2. **Scan** (brownfield): `index_repository` if needed, then `get_architecture` — clusters seed §6 Core Components. Read `manage_adr` if present; never write it.
23
24
  3. **Interview**: follow `references/interview.md`. Detect project type per `references/project-types.md`.
24
25
  4. **Research**: run `workflows/research.js` per `references/research.md`. Surface dropped items before writing.
25
- 5. **Write**: model first (`references/likec4.md`), then ARCHITECTURE.md and companions (`references/writing.md`).
26
+ 5. **Write**: on every run, `node scripts/drift.mjs` gates this step — before the first write, never after (`references/rewriting.md`). Then the model (`references/likec4.md`), then ARCHITECTURE.md and companions (`references/writing.md`). Last, once every document is on disk, record what was written: `node scripts/record.mjs --state ... --files ...`.
26
27
  6. **Validate**: export the model with `node scripts/likec4-export.mjs --dir ... --out ...`, then `node scripts/validate.mjs --arch ... --model ...` (add `--mode brownfield --clusters ...` when applicable). Fix findings; re-run until clean.
27
28
  7. **Render + serve**: follow `references/viewer.md`; report the URL.
28
29
 
@@ -0,0 +1,66 @@
1
+ {
2
+ "skill_name": "analyze-requirements",
3
+ "evals": [
4
+ {
5
+ "id": 0,
6
+ "name": "unknowns-gate-interview",
7
+ "prompt": "we've got a compliance audit in three weeks and the auditors want \"architecture documentation\" for our internal expense reimbursement tool. I don't have the repo checked out on this machine and I'm not going to get VPN access before Thursday. can you write the architecture doc - C4 diagrams, ADRs, the whole set? it's a Node app, about four years old, and the dev who originally built it left last year.",
8
+ "expected_output": "The skill stops before writing. It states the detected mode (greenfield/no source available, overridable) and the Node >= 20 + npx likec4 dependency up front, then asks the human the unknowables via AskUserQuestion cards - at minimum the deployment target, the quality attribute + measurable target, and the availability/RPO-RTO questions the interview bank marks as never-skippable. No ARCHITECTURE.md, no .c4 model, no ADRs are written in this turn, and no component, datastore or cloud service is asserted as a fact about this system.",
9
+ "files": [],
10
+ "assertions": [
11
+ "no-artifacts-written-before-answers: no ARCHITECTURE.md, no docs/architecture/model/*.c4, no docs/adr/*.md and no threat-model.md exists on disk after this turn - the skill stopped at the interview instead of writing",
12
+ "no-invented-components: the response names zero concrete components, datastores, queues or cloud services as belonging to this system (no 'Postgres', 'Redis', 'API Gateway', 'S3', 'Express API' etc. stated as fact); any technology mentioned appears only inside an explicit question or an option the user must confirm",
13
+ "asks-the-never-skippable-questions: the questions put to the user include the target deployment environment AND at least two of {primary quality attribute with a measurable target, availability target, RPO/RTO} - the rows interview.md marks 'never' skippable",
14
+ "asks-about-data-sensitivity-or-tags-it: the PII/data-sensitivity of reimbursement data is either asked about, or any statement made about it is explicitly tagged 'stated'/'proposed' or rendered as 'Not provided - <reason>' - never asserted bare",
15
+ "mode-and-dependency-stated: the response states the detected mode (brownfield vs greenfield) as overridable AND states the Node >= 20 / npx likec4 dependency before proposing to write anything",
16
+ "question-budget-respected: the interview stays within 12 questions total, delivered as AskUserQuestion cards with at most 4 options per card and at most 3 cards per call"
17
+ ]
18
+ },
19
+ {
20
+ "id": 1,
21
+ "name": "brownfield-cli-installer",
22
+ "prompt": "document the installer CLI in src/cli/ for me - that's the whole thing, the npx entry point is bin/agents-rock.mjs and there's nothing else to it. answering the usual questions up front so you don't have to ask me any:\n\n- goal: let a developer install agents-rock plugin skills into Claude Code or Codex with one npx command. users are devs running `npx @v11g/agents-rock`.\n- constraints: node >=18.3, no build step at all, exactly two runtime deps (@clack/prompts, picocolors), and it has to keep working when it's run straight from npx with no install.\n- the quality attribute I care about: a failed or interrupted install must never leave a half-written target directory. target is zero partial installs across 100 consecutive interrupted runs.\n- availability target: n/a, it's a CLI, there's nothing to keep up.\n- RPO/RTO: n/a, same reason.\n- project type is CLI/library, don't ask me to confirm it.\n- I own it - truong.\n- no effort estimates, don't bother with estimation.md.\n\nput ARCHITECTURE.md at the repo root and the ADRs under docs/adr/. don't start the viewer server, I just want the files on disk.",
23
+ "expected_output": "ARCHITECTURE.md at the repo root carrying the full 16-heading spine including §3 Project Structure (brownfield), a LikeC4 model under docs/architecture/model/ with index/containers/components-* views, and ADRs under docs/adr/. Every table row carries a src column valued observed/stated/researched [source]/proposed; components are drawn from the real src/cli modules and their key paths point at files that exist. §10 renders the CLI/library variant 'Not applicable - no deployment: distributed as a binary/package'. node scripts/validate.mjs --mode brownfield exits 0. No server started.",
24
+ "files": [
25
+ "bin/agents-rock.mjs",
26
+ "package.json",
27
+ "src/cli/main.mjs",
28
+ "src/cli/args.mjs",
29
+ "src/cli/registry.mjs",
30
+ "src/cli/flow.mjs",
31
+ "src/cli/prompts.mjs",
32
+ "src/cli/scope.mjs",
33
+ "src/cli/targets.mjs",
34
+ "src/cli/agents.mjs",
35
+ "src/cli/install.mjs",
36
+ "src/cli/uninstall.mjs",
37
+ "src/cli/report.mjs"
38
+ ],
39
+ "assertions": [
40
+ "arch-md-16-section-spine: ARCHITECTURE.md exists at the repo root and contains all 16 spine headings in order (Goals and Scope through Glossary), with §3 Project Structure populated with a real tree because this run is brownfield",
41
+ "no-invented-components: every component named in §6 Core Components and every path in its 'key paths' column resolves to a file or directory that actually exists under src/cli/ or bin/ - no module, service or datastore is named that is not in the supplied tree",
42
+ "provenance-on-every-row: every table in ARCHITECTURE.md except the §14 Decisions and §16 Glossary indexes has 'src' as its last column header, and every row's src value is exactly one of observed / stated / researched [<source>] / proposed - the pre-fed interview answers (SLO, constraints, owner) are 'stated', the code-derived rows are 'observed'",
43
+ "deployment-not-applicable-cli: §10 Deployment and Infrastructure renders the CLI/library variant as an honest absence ('Not applicable - no deployment: distributed as a binary/package') and does NOT invent containers, environments or a CI/CD pipeline table for this package",
44
+ "elections-frontmatter-complete: ARCHITECTURE.md frontmatter has electedDocs as a one-line JSON array with all four entries (threat-model, interface-contract, estimation, domain-overview), each with a boolean 'elected' and a non-empty 'reason' when false - estimation is elected:false because the user declined estimates",
45
+ "likec4-model-and-embed-markers: docs/architecture/model/ contains .c4 source declaring views named index, containers and components-<container>; §5/§7/§10 embed them via '<!-- likec4:view <id> -->' markers, and any mermaid appears only in §8 (ER) and §12 (DFD) - never a hand-drawn mermaid stand-in for a modeled C4 view"
46
+ ]
47
+ },
48
+ {
49
+ "id": 2,
50
+ "name": "greenfield-llm-triage-spec",
51
+ "prompt": "greenfield one - we're building a support-ticket triage service that runs inbound customer email through an LLM and routes it into a Zendesk queue. no repo yet, nothing written. the spec is in triage-service-spec.md and it's been through Legal and SRE already, so the SLOs, the deployment target and the data-sensitivity call are all in there - you shouldn't need to ask me anything.\n\ndesign the architecture and write the whole doc set. ARCHITECTURE.md and the model under docs/architecture/, ADRs under docs/adr/. we definitely want the threat model. no effort estimates. team is the Platform squad. skip the localhost viewer for now - write the files and validate them, that's it.",
52
+ "expected_output": "ARCHITECTURE.md under docs/architecture/ with the 16-heading spine, §3 Project Structure rendered 'Not applicable - <reason>' because there is no repo yet, a LikeC4 model (index/containers/components-*/deployment views) covering the ECS Fargate + SQS + RDS topology the spec fixes, ADRs under docs/adr/, and threat-model.md framed on OWASP LLM Top 10 2025 with a DFD, trust boundaries, a threat list and a mitigation per threat. Every fact from the spec is tagged 'stated', every design choice the skill made itself is 'proposed', nothing is 'observed'. node scripts/validate.mjs exits 0. No server started.",
53
+ "files": [
54
+ "plugins/solution-architect/skills/analyze-requirements/evals/fixtures/greenfield-llm-triage-spec/triage-service-spec.md"
55
+ ],
56
+ "assertions": [
57
+ "no-observed-provenance-in-greenfield: no table row or prose tag anywhere in the doc set carries provenance 'observed' - there is no code to observe - and §3 Project Structure renders exactly one 'Not applicable - <reason>' line rather than an invented directory tree",
58
+ "no-invented-components: every component, datastore, queue and external system named in §6/§8/§9/§10 traces to an entity the spec fixture actually names (Postmark inbound webhook, Zendesk Tickets API, Anthropic Messages API, audit-log gRPC service, SQS + DLQ, RDS PostgreSQL 16, ECS Fargate, ALB, Secrets Manager, KMS) or is tagged 'proposed' - no unclaimed vendor, service or table is presented as decided",
59
+ "stated-vs-proposed-split: facts lifted from the spec (the 45s p99, 99.5% availability, 5min RPO / 4h RTO, eu-central-1, the $1,400/month ceiling, the 0.72 confidence floor, the 30-day body retention) are tagged 'stated'; every design decision the skill originated is tagged 'proposed'; any 'researched' row is followed by a bracketed source",
60
+ "threat-model-llm-variant: threat-model.md exists, is framed on OWASP LLM Top 10 2025 (not generic STRIDE) as project-types.md prescribes for an AI/LLM app, and contains all four parts - a DFD, named trust boundaries, a threat list including prompt injection from the email body, and a mitigation per threat",
61
+ "mermaid-er-parses-and-matches: §8's ```mermaid erDiagram block parses as valid mermaid and every entity name in it appears as a row in the §8 Data Stores table (and vice versa); §12's DFD is likewise a parsing mermaid block - neither section uses a LikeC4 view marker",
62
+ "elections-recorded-with-reasons: frontmatter electedDocs is a one-line JSON array with all four companions; threat-model is elected:true, estimation is elected:false with a reason naming the user's declining it, and every other elected:false entry carries a non-empty reason"
63
+ ]
64
+ }
65
+ ]
66
+ }
@@ -0,0 +1,105 @@
1
+ # Triage Service — build spec v0.4
2
+
3
+ Status: approved for build. Nothing here is implemented yet — there is no repo.
4
+ Owner: Platform squad. Reviewed by Legal (2026-08-11) and SRE (2026-08-19).
5
+
6
+ ## 1. What it does
7
+
8
+ Inbound customer support email lands in a shared mailbox. Today two humans read
9
+ every message and drag it into a queue in Zendesk. The Triage Service replaces
10
+ the reading step: it classifies each message into a queue, assigns a priority,
11
+ extracts the customer's order reference if one is present, and writes the result
12
+ back to Zendesk as a ticket with tags. A human still owns every reply.
13
+
14
+ Out of scope for v1: drafting replies, closing tickets, any outbound email,
15
+ non-English messages (they route to `queue-manual` untouched).
16
+
17
+ ## 2. Actors
18
+
19
+ | Actor | What they do |
20
+ |---|---|
21
+ | Customer | Sends the inbound email. Never interacts with this service directly. |
22
+ | Support agent | Works the queues in Zendesk. Sees our tags and priority. |
23
+ | Triage reviewer | A support agent on rotation who audits the daily sample of low-confidence classifications. |
24
+ | Platform on-call | Gets paged when the service drops messages. |
25
+
26
+ ## 3. Vocabulary
27
+
28
+ - **Message** — one inbound email, as delivered by the mail provider webhook.
29
+ - **Classification** — one model output: queue, priority, confidence, extracted
30
+ order reference. Immutable once written.
31
+ - **Queue** — one of six fixed destinations: billing, shipping, returns,
32
+ technical, abuse, manual. Not configurable at runtime.
33
+ - **Confidence floor** — 0.72. Below it the classification is still stored but
34
+ the ticket is created in `queue-manual` and flagged for the daily audit.
35
+ - **Replay** — re-running classification for a message we already stored, after
36
+ a prompt or model change. Produces a new Classification; never mutates the old.
37
+
38
+ ## 4. Interfaces we consume and expose
39
+
40
+ | Interface | Direction | Notes |
41
+ |---|---|---|
42
+ | Mail provider webhook (Postmark inbound) | inbound | HTTPS POST, JSON, signed with a shared secret in the `X-Postmark-Signature` header. At-least-once: duplicates are expected and must be idempotent on `MessageID`. |
43
+ | Zendesk Tickets API | outbound | REST, OAuth2 client credentials. Rate limit 700 requests/minute on our plan. |
44
+ | Anthropic Messages API | outbound | Classification. Model pinned per deploy, never "latest". |
45
+ | Internal admin HTTP API | exposed | Used only by the reviewer UI: list low-confidence classifications, trigger a replay. Behind the corporate SSO proxy, no public route. |
46
+
47
+ ## 5. Data and sensitivity
48
+
49
+ Inbound email bodies contain customer PII: names, postal addresses, order
50
+ references, and occasionally card last-four digits pasted by the customer.
51
+ Legal's ruling (2026-08-11):
52
+
53
+ - Message bodies are **personal data under GDPR**. Store in eu-central-1 only.
54
+ - Retention: raw message body 30 days, then hard delete. Classification rows
55
+ (no body, no address) retained 24 months for model-quality analysis.
56
+ - The card last-four is redacted before the body is sent to the model or stored.
57
+ Redaction failures fail the message closed — the message routes to
58
+ `queue-manual` and the body is not persisted.
59
+ - Right-to-erasure requests must delete every row for a customer email within
60
+ 72 hours.
61
+ - No customer data may leave the EU. The model vendor must be called through an
62
+ EU endpoint or the design must state the residency gap explicitly.
63
+
64
+ ## 6. Deployment target
65
+
66
+ Decided, not open for discussion:
67
+
68
+ - AWS, `eu-central-1`, single region. No multi-region for v1.
69
+ - ECS Fargate, two services behind one ALB: the webhook receiver and the
70
+ classification worker. Worker scales on queue depth.
71
+ - Amazon SQS between them, with a dead-letter queue after 5 receives.
72
+ - Amazon RDS for PostgreSQL 16, Multi-AZ, encrypted at rest with a customer-
73
+ managed KMS key.
74
+ - Secrets in AWS Secrets Manager. No secret in an environment variable or image.
75
+ - CI/CD is GitHub Actions → ECR → ECS rolling deploy. Two environments, staging
76
+ and production. No manual deploys.
77
+
78
+ ## 7. Quality requirements
79
+
80
+ | Attribute | Target | Why this number |
81
+ |---|---|---|
82
+ | Durability of inbound messages | Zero dropped messages. Every accepted webhook is either classified or in the DLQ. | This is the one thing we cannot be wrong about — a dropped message is a customer who never got an answer. |
83
+ | Latency | p99 under 45 seconds from webhook accept to Zendesk ticket created. | Agents start their shift at 08:00 and want the overnight queue already sorted. |
84
+ | Availability | 99.5% monthly for the webhook receiver. | The mail provider retries for 12 hours, so a short receiver outage is recoverable. |
85
+ | RPO | 5 minutes (RDS automated backups + SQS retention cover this). | |
86
+ | RTO | 4 hours. | Manual triage is the fallback and it works; it is just slow. |
87
+ | Classification accuracy | ≥ 88% agreement with the reviewer on the daily sample. | Below that, agents stop trusting the tags and the service is worse than nothing. |
88
+
89
+ ## 8. Constraints
90
+
91
+ - Budget ceiling: $1,400/month all-in for production at 40k messages/month.
92
+ - Team: three engineers, no dedicated SRE. Anything that needs a human at 03:00
93
+ will not get one.
94
+ - Must ship a first production message by 2026-11-30.
95
+ - Company standard is TypeScript on Node 22. Python is not approved for
96
+ production services here.
97
+ - Mandated: every LLM call and its output is logged to the existing audit log
98
+ service (`audit-log`, already running, gRPC, owned by the Security team).
99
+
100
+ ## 9. Known risks flagged by the reviewers
101
+
102
+ - Prompt injection from the email body. An attacker controls the entire input.
103
+ - Model vendor residency: unresolved at spec time, see §5.
104
+ - Zendesk rate limit during a morning burst after an overnight outage.
105
+ - Cost drift if message volume grows past 40k/month.
@@ -0,0 +1,108 @@
1
+ # Rewriting — what is already on disk
2
+
3
+ Read before step 5 writes anything. The gate (§3) runs on every run, before the
4
+ first write; the recording (§5) closes every run. Only what they find differs —
5
+ a first run has no record to compare against, and the documents it finds
6
+ already on disk are, by that fact, not ours.
7
+
8
+ ## 1. The rule
9
+
10
+ **Ask before the first write, or not at all.** A package half-written while a
11
+ question waits is worse than either answer: the reader cannot tell which
12
+ sections are theirs and which are ours.
13
+
14
+ ## 2. What the state file knows, and what it does not
15
+
16
+ `architecture-state.json` sits beside `ARCHITECTURE.md` and records a hash per
17
+ generated file, plus a hash per spine section for `ARCHITECTURE.md`. It is
18
+ **written last**, after every document is on disk, through a temp file and a
19
+ rename — so a crash leaves it pointing at the previous consistent revision.
20
+
21
+ A hash says a file **changed since the last run**. It cannot say who changed
22
+ it: a formatter, a merge, a `git checkout`, another agent and a person all look
23
+ identical, and a hash cannot tell them apart — so what the run reports must
24
+ never claim to know an author. Write "this changed since the last run", not a
25
+ claim about who did it.
26
+
27
+ ## 3. The gate
28
+
29
+ Before writing, run:
30
+
31
+ node scripts/drift.mjs --state <package>/architecture-state.json \
32
+ --files ARCHITECTURE.md docs/architecture/validation-plan.md …
33
+
34
+ List every file this run intends to write. Paths are relative to the state
35
+ file. Exit codes: `0` nothing drifted, `2` something drifted, `1` usage error.
36
+
37
+ | verdict | meaning | what to do |
38
+ |---|---|---|
39
+ | `unchanged` | matches what we wrote | write it |
40
+ | `new` | we have never written it and it is not on disk | write it — nobody has one |
41
+ | `untracked` | we have never written it, but a file is there | **never write it** — it is not ours |
42
+ | `missing` | we wrote it, it is gone now | report it; never silently recreate it |
43
+ | `locked` | an ADR whose `## Status` on disk reads accepted | never rewrite; a new decision is a new ADR with `supersedes` |
44
+ | `drifted` | changed since we wrote it | ask, before writing anything |
45
+
46
+ ## 4. Asking
47
+
48
+ One question, covering every drifted file at once, before the first write.
49
+ Show what the gate printed — the diff where git supplied one, the changed
50
+ section numbers where it did not. For each file offer exactly three answers:
51
+
52
+ - **keep the file on disk** — skip it; the rest of the run proceeds
53
+ - **overwrite it with the new revision** — the edit is lost, and they have been
54
+ shown what they are discarding
55
+ - **stop the run** — nothing is written, the state file is untouched
56
+
57
+ No merge. No three-way resolution. Detect, show, ask which wins, obey.
58
+
59
+ ## 5. Recording what you wrote
60
+
61
+ The gate can only compare against a record, and nothing writes that record on
62
+ its own. **The last thing step 5 does**, once every document is on disk:
63
+
64
+ node scripts/record.mjs --state <package>/architecture-state.json \
65
+ --files ARCHITECTURE.md docs/architecture/validation-plan.md docs/adr/0001-….md
66
+
67
+ `--files` is every file this run actually wrote: the list the gate was given,
68
+ minus any file a drift answer told you to keep and minus anything the run
69
+ skipped. Paths are relative to the state file, as they are for the gate. A file
70
+ left out keeps whatever entry it already had.
71
+
72
+ `docVersion` is read from `ARCHITECTURE.md`'s frontmatter. Pass
73
+ `--doc-version <v>` only on a run that did not write that document.
74
+
75
+ The script hashes each file, adds a hash per spine section for
76
+ `ARCHITECTURE.md`, reads each ADR's `## Status`, and writes:
77
+
78
+ ```json
79
+ {
80
+ "_generated": "written by analyze-requirements — do not edit",
81
+ "revision": 3,
82
+ "updated": "2026-09-23T10:11:00.000Z",
83
+ "docVersion": "1.2.0",
84
+ "gitCommit": "3dcac90…",
85
+ "files": {
86
+ "ARCHITECTURE.md": { "hash": "sha256:9f2a…", "sections": { "1": "sha256:aa…" } },
87
+ "docs/adr/0001-postgres-job-queue.md": { "hash": "sha256:e4…", "status": "accepted" }
88
+ }
89
+ }
90
+ ```
91
+
92
+ Never hand-write or hand-edit that file. A record that disagrees with what is
93
+ on disk is worse than no record at all: it reports drift nobody caused, and
94
+ people learn to answer "overwrite" without reading.
95
+
96
+ ## 6. First runs and broken states
97
+
98
+ No state file means a first run: every file is still judged — untracked where
99
+ one is already on disk, `new` where none is — nothing is blocked, and the state
100
+ is written at the end.
101
+
102
+ A state file that will not parse is treated as absent, said out loud, and
103
+ **never deleted** — it is the only record of what the last run wrote. It is not
104
+ a first run, though: the file's existence says tracked documents are on disk,
105
+ and its corruption is what stops us telling which of them moved. Nothing on
106
+ disk can be verified against it, so nothing in that run is cleared for writing.
107
+ `record.mjs` refuses to run against one, because writing would rename over the
108
+ only record of the last run. Rename it by hand if you mean to start fresh.