@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,136 @@
1
+ import { test } from 'node:test';
2
+ import assert from 'node:assert/strict';
3
+ import { spawnSync, execFileSync } from 'node:child_process';
4
+ import { mkdtempSync, mkdirSync, writeFileSync, readFileSync } from 'node:fs';
5
+ import { tmpdir } from 'node:os';
6
+ import { join } from 'node:path';
7
+
8
+ const BIN = 'plugins/solution-architect/skills/analyze-requirements/scripts';
9
+ const ARCH = `---
10
+ name: atlas
11
+ docVersion: 1.2.0
12
+ ---
13
+
14
+ # Atlas Architecture
15
+
16
+ ## 1 Goals and Scope
17
+
18
+ Assign jobs to drivers.
19
+
20
+ ## 13 Quality Requirements and SLOs
21
+
22
+ p99 under 200 ms.
23
+ `;
24
+ const ADR = '# ADR 0001: Use Stripe\n\n## Status\n\nAccepted\n\n## Context\n\nCheckout needs a processor.\n';
25
+ const FILES = ['ARCHITECTURE.md', 'docs/adr/0001-stripe.md'];
26
+
27
+ function run(script, args) {
28
+ const { status, stdout, stderr } = spawnSync('node', [`${BIN}/${script}`, ...args], {
29
+ encoding: 'utf8',
30
+ stdio: ['ignore', 'pipe', 'pipe'],
31
+ });
32
+ return { code: status, stdout, stderr };
33
+ }
34
+
35
+ // What step 5 leaves on disk: the package, and nothing recorded about it yet.
36
+ function packageDir() {
37
+ const dir = mkdtempSync(join(tmpdir(), 'rerun-safety-record-'));
38
+ mkdirSync(join(dir, 'docs', 'adr'), { recursive: true });
39
+ writeFileSync(join(dir, 'ARCHITECTURE.md'), ARCH);
40
+ writeFileSync(join(dir, 'docs', 'adr', '0001-stripe.md'), ADR);
41
+ return dir;
42
+ }
43
+
44
+ const record = (dir, files = FILES) => run('record.mjs', ['--state', join(dir, 'architecture-state.json'), '--files', ...files]);
45
+ const gate = (dir, files = FILES) => run('drift.mjs', ['--state', join(dir, 'architecture-state.json'), '--files', ...files]);
46
+ const stateOf = (dir) => JSON.parse(readFileSync(join(dir, 'architecture-state.json'), 'utf8'));
47
+
48
+ // The round trip the whole feature rests on: run 1 records, run 2 recognises
49
+ // its own output. Without the writer, run 2 sees no state at all.
50
+ test('a recorded package comes back unchanged', () => {
51
+ const dir = packageDir();
52
+ assert.equal(record(dir).code, 0);
53
+ const { code, stdout } = gate(dir, ['ARCHITECTURE.md']);
54
+ assert.equal(code, 0);
55
+ assert.match(stdout, /ARCHITECTURE\.md\s+unchanged/);
56
+ });
57
+
58
+ // The bug the branch exists for, with the writing end attached: before this
59
+ // script, run 1 recorded nothing and run 2 cleared the hand edit for overwrite.
60
+ test('recording is what makes a later hand edit report drifted', () => {
61
+ const dir = packageDir();
62
+ record(dir);
63
+ writeFileSync(join(dir, 'ARCHITECTURE.md'), ARCH.replace('200 ms', '150 ms'));
64
+ const { code, stdout } = gate(dir, ['ARCHITECTURE.md']);
65
+ assert.equal(code, 2);
66
+ assert.match(stdout, /ARCHITECTURE\.md\s+drifted/);
67
+ assert.match(stdout, /changed: §13/);
68
+ });
69
+
70
+ test('the record carries every field the next run reads', () => {
71
+ const dir = packageDir();
72
+ record(dir);
73
+ const state = stateOf(dir);
74
+ assert.match(state._generated, /do not edit/);
75
+ assert.equal(state.revision, 1);
76
+ assert.match(state.updated, /^\d{4}-\d{2}-\d{2}T[\d:.]+Z$/);
77
+ assert.equal(state.docVersion, '1.2.0');
78
+ assert.equal(state.gitCommit, null, 'outside a repository there is no commit');
79
+ assert.deepEqual(Object.keys(state.files), FILES);
80
+ assert.match(state.files['ARCHITECTURE.md'].hash, /^sha256:[0-9a-f]{64}$/);
81
+ assert.deepEqual(Object.keys(state.files['ARCHITECTURE.md'].sections), ['1', '13']);
82
+ });
83
+
84
+ // Only ARCHITECTURE.md has a spine to cut on; an ADR carries a status instead,
85
+ // and that status is what exempts it from being rewritten.
86
+ test('an ADR records the status its document declares', () => {
87
+ const dir = packageDir();
88
+ record(dir);
89
+ const entry = stateOf(dir).files['docs/adr/0001-stripe.md'];
90
+ assert.equal(entry.status, 'accepted');
91
+ assert.equal(entry.sections, undefined);
92
+ });
93
+
94
+ test('each run bumps the revision and keeps earlier files recorded', () => {
95
+ const dir = packageDir();
96
+ record(dir);
97
+ assert.equal(record(dir, ['ARCHITECTURE.md']).code, 0);
98
+ const state = stateOf(dir);
99
+ assert.equal(state.revision, 2);
100
+ assert.deepEqual(Object.keys(state.files), FILES);
101
+ });
102
+
103
+ test('inside a repository the commit is recorded', () => {
104
+ const dir = packageDir();
105
+ const git = (...args) => execFileSync('git', args, { cwd: dir, stdio: 'ignore' });
106
+ git('init', '-q');
107
+ git('config', 'user.email', 'test@example.com');
108
+ git('config', 'user.name', 'Test');
109
+ git('add', 'ARCHITECTURE.md');
110
+ git('commit', '-qm', 'seed');
111
+ record(dir);
112
+ assert.equal(stateOf(dir).gitCommit, execFileSync('git', ['rev-parse', 'HEAD'], { cwd: dir, encoding: 'utf8' }).trim());
113
+ });
114
+
115
+ // The one record of what the last run wrote. Renaming over it resets the
116
+ // revision and takes the bytes with it; drift.mjs already refuses to treat a
117
+ // corrupt file as absent-and-forgotten, and the writer is where that rule can
118
+ // be enforced in code rather than prose.
119
+ test('a corrupt state file is refused, not overwritten', () => {
120
+ const dir = packageDir();
121
+ const statePath = join(dir, 'architecture-state.json');
122
+ writeFileSync(statePath, '{ not json');
123
+ const { code, stderr } = record(dir);
124
+ assert.notEqual(code, 0);
125
+ assert.match(stderr, /unreadable/);
126
+ assert.equal(readFileSync(statePath, 'utf8'), '{ not json', 'never deleted');
127
+ });
128
+
129
+ test('recording nothing is a usage error', () => {
130
+ const dir = packageDir();
131
+ for (const argv of [['--files', 'ARCHITECTURE.md'], ['--state', join(dir, 'architecture-state.json')]]) {
132
+ const { code, stderr } = run('record.mjs', argv);
133
+ assert.equal(code, 1, argv.join(' '));
134
+ assert.match(stderr, /^usage:/m);
135
+ }
136
+ });
@@ -0,0 +1,53 @@
1
+ import { test } from 'node:test';
2
+ import assert from 'node:assert/strict';
3
+ import { execFileSync } from 'node:child_process';
4
+ import { mkdtempSync, writeFileSync, readFileSync } from 'node:fs';
5
+ import { tmpdir } from 'node:os';
6
+ import { join } from 'node:path';
7
+ import { hashText, sectionHashes, writeState } from '../lib/state.mjs';
8
+
9
+ const CLI = 'plugins/solution-architect/skills/analyze-requirements/scripts/drift.mjs';
10
+
11
+ const GENERATED = `## 1 Goals and Scope
12
+
13
+ Assign delivery jobs to drivers. \`stated\`
14
+
15
+ ## 7 Runtime Behaviour
16
+
17
+ Job created → row written ready → worker claims it. \`stated\`
18
+ `;
19
+
20
+ // The bug, end to end: run 1 writes and records, a person edits §7, run 2 must
21
+ // see it. Before this feature existed, run 2 overwrote it with no diff and no
22
+ // warning, and the edit was unrecoverable unless it had been committed.
23
+ test('a hand edit survives the next run', () => {
24
+ const dir = mkdtempSync(join(tmpdir(), 'rerun-safety-regression-'));
25
+ const arch = join(dir, 'ARCHITECTURE.md');
26
+ const statePath = join(dir, 'architecture-state.json');
27
+
28
+ // Run 1 — the skill writes the package and records what it wrote, last.
29
+ writeFileSync(arch, GENERATED);
30
+ writeState(statePath, {
31
+ revision: 1,
32
+ gitCommit: null,
33
+ files: { 'ARCHITECTURE.md': { hash: hashText(GENERATED), sections: sectionHashes(GENERATED) } },
34
+ });
35
+
36
+ // A person rewrites §7 by hand.
37
+ const edited = GENERATED.replace('worker claims it', 'worker claims it under a 60 s lease');
38
+ writeFileSync(arch, edited);
39
+
40
+ // Run 2 — the pre-write gate.
41
+ let code = 0;
42
+ let stdout = '';
43
+ try {
44
+ stdout = execFileSync('node', [CLI, '--state', statePath, '--files', 'ARCHITECTURE.md'], { encoding: 'utf8' });
45
+ } catch (err) {
46
+ code = err.status;
47
+ stdout = err.stdout;
48
+ }
49
+
50
+ assert.equal(code, 2, 'run 2 must stop rather than write');
51
+ assert.match(stdout, /changed: §7/);
52
+ assert.equal(readFileSync(arch, 'utf8'), edited, 'the edit must still be on disk');
53
+ });
@@ -0,0 +1,80 @@
1
+ import { test } from 'node:test';
2
+ import assert from 'node:assert/strict';
3
+ import { readFileSync } from 'node:fs';
4
+
5
+ const ref = (f) => readFileSync(new URL(`../../references/${f}`, import.meta.url), 'utf8');
6
+ const skill = () => readFileSync(new URL('../../SKILL.md', import.meta.url), 'utf8');
7
+
8
+ // The guarantee is the ordering: the question is asked before the first write,
9
+ // or not at all. A half-written package waiting on an answer is the failure
10
+ // this whole feature exists to prevent.
11
+ test('the discipline puts the question before the first write', () => {
12
+ const doc = ref('rewriting.md');
13
+ assert.match(doc, /before the first write/i);
14
+ assert.match(doc, /drift\.mjs/, 'the reference must name the script that reports drift');
15
+ assert.match(doc, /written last|write it last/i, 'the state file ordering must be stated');
16
+ });
17
+
18
+ // Nothing writes the state file on its own. Without an instruction naming the
19
+ // tool, run 1 records nothing and run 2 has nothing to compare disk against —
20
+ // the gate reports a first run and the hand edit goes.
21
+ test('the discipline tells the run to record what it wrote', () => {
22
+ const doc = ref('rewriting.md');
23
+ assert.match(doc, /record\.mjs/, 'the reference must name the script that writes the state');
24
+ assert.match(doc, /--files/, 'and say which files go into it');
25
+ assert.match(doc, /"revision"/, 'the state file shape belongs in the reference once');
26
+ });
27
+
28
+ test('the skill runs the recorder at the end of step 5', () => {
29
+ assert.match(skill(), /record\.mjs/);
30
+ });
31
+
32
+ // The first run is the one where `untracked` matters — it is what stops a run
33
+ // pointed at a hand-written package from overwriting it. Prose that makes the
34
+ // gate conditional on a state file existing puts that verdict back out of
35
+ // reach, whatever the code does.
36
+ test('the gate is never conditional on a state file existing', () => {
37
+ const doc = ref('rewriting.md');
38
+ assert.match(doc, /gate[^.]*\bevery run\b/i, 'the reference must say the gate runs every run');
39
+ assert.doesNotMatch(doc, /gate[^.]*after\s+the\s+first/i, 'never "the gate runs after the first run"');
40
+ assert.doesNotMatch(skill(), /after\s+the\s+first[^.]*drift\.mjs|drift\.mjs[^.]*after\s+the\s+first/i);
41
+ });
42
+
43
+ // The hard rules are what an agent reads first and leans on hardest, so an
44
+ // unqualified "no entry means not ours" there outranks the verdict table: no
45
+ // ADR or companion could ever be created after run 1. Only a file that is
46
+ // actually on disk is someone else's.
47
+ test('the hard rule does not forbid creating a file that does not exist', () => {
48
+ const rule = skill().split('\n').find((l) => /^5\. /.test(l) && l.includes('architecture-state.json'));
49
+ assert.ok(rule, 'hard rule 5 must still be the one about the state file');
50
+ assert.doesNotMatch(rule, /a file with no entry[^;]*is not ours/i, 'no entry alone does not mean not ours');
51
+ assert.match(rule, /creat/i, 'the rule must leave room to create a file that does not exist yet');
52
+ });
53
+
54
+ // A hash cannot identify an author, and a message that claims it can is a lie
55
+ // the reader will believe.
56
+ test('the discipline never claims to know who edited a file', () => {
57
+ const doc = ref('rewriting.md');
58
+ assert.match(doc, /changed since|not.*who/i);
59
+ assert.doesNotMatch(doc, /you edited|the user edited/i);
60
+ });
61
+
62
+ // Every verdict the gate can print needs a row, or the agent meets one with no
63
+ // instruction. `new` is the one that lets run 2 add a document at all.
64
+ test('the verdict table covers a file that does not exist yet', () => {
65
+ assert.match(ref('rewriting.md'), /\|\s*`new`\s*\|/);
66
+ });
67
+
68
+ test('an accepted ADR is named as exempt', () => {
69
+ const doc = ref('rewriting.md');
70
+ assert.match(doc, /accepted/);
71
+ assert.match(doc, /supersed/i);
72
+ });
73
+
74
+ test('the skill runs the gate before writing', () => {
75
+ assert.match(skill(), /drift\.mjs/, 'SKILL.md must call the gate in its flow');
76
+ });
77
+
78
+ test('the reference stays inside the file-length limit', () => {
79
+ assert.ok(ref('rewriting.md').split('\n').length <= 200);
80
+ });
@@ -0,0 +1,123 @@
1
+ import { test } from 'node:test';
2
+ import assert from 'node:assert/strict';
3
+ import { normalise, hashText, sectionHashes, readState, writeState } from '../lib/state.mjs';
4
+ import { mkdtempSync, writeFileSync, readFileSync, existsSync, readdirSync } from 'node:fs';
5
+ import { tmpdir } from 'node:os';
6
+ import { join } from 'node:path';
7
+
8
+ // Line endings, trailing spaces and how many newlines a file ends with are
9
+ // editor artefacts. If they changed the hash, every run would report drift on
10
+ // files nobody touched, and people would learn to answer "overwrite" without
11
+ // reading — which is worse than having no guard at all.
12
+ test('editor artefacts hash the same', () => {
13
+ const base = '# Title\n\nbody\n';
14
+ for (const variant of ['# Title\r\n\r\nbody\r\n', '# Title\n\nbody \n', '# Title\n\nbody\n\n\n']) {
15
+ assert.equal(hashText(variant), hashText(base), JSON.stringify(variant));
16
+ }
17
+ });
18
+
19
+ // The other half of the same rule: normalisation must not be so eager that a
20
+ // real edit hashes as unchanged. That is the failure that loses data silently.
21
+ test('a real edit hashes differently', () => {
22
+ assert.notEqual(hashText('# Title\n\nbody\n'), hashText('# Title\n\nBody\n'));
23
+ assert.notEqual(hashText('| a | b |\n'), hashText('| a | b |\n'));
24
+ });
25
+
26
+ test('normalise leaves exactly one trailing newline', () => {
27
+ assert.equal(normalise('a'), 'a\n');
28
+ assert.equal(normalise('a\n\n\n'), 'a\n');
29
+ });
30
+
31
+ test('a hash is labelled with its algorithm', () => {
32
+ assert.match(hashText('x'), /^sha256:[0-9a-f]{64}$/);
33
+ });
34
+
35
+ const ARCH = `---
36
+ name: atlas
37
+ ---
38
+
39
+ # Atlas Architecture
40
+
41
+ ## 1 Goals and Scope
42
+
43
+ Assign jobs to drivers.
44
+
45
+ ## 13 Quality Requirements and SLOs
46
+
47
+ | scenario | measure | target | priority | src |
48
+ |---|---|---|---|---|
49
+ | peak checkout | p99 | 200 ms | must | stated |
50
+
51
+ ## 16 Glossary
52
+
53
+ | term | meaning | src |
54
+ |---|---|---|
55
+ | job | one delivery | stated |
56
+ `;
57
+
58
+ test('sections are keyed by their spine number', () => {
59
+ assert.deepEqual(Object.keys(sectionHashes(ARCH)), ['1', '13', '16']);
60
+ });
61
+
62
+ // The point of hashing per section: editing one must not move the others, or
63
+ // the fallback report names every section and tells the reader nothing.
64
+ test('editing one section moves only that section', () => {
65
+ const before = sectionHashes(ARCH);
66
+ const after = sectionHashes(ARCH.replace('200 ms', '150 ms'));
67
+ assert.equal(after['1'], before['1']);
68
+ assert.equal(after['16'], before['16']);
69
+ assert.notEqual(after['13'], before['13']);
70
+ });
71
+
72
+ // Frontmatter and the H1 belong to no section. Folding them into section 1
73
+ // would report a driver change every time the document version is bumped.
74
+ test('content before the first numbered heading is in no section', () => {
75
+ const after = sectionHashes(ARCH.replace('name: atlas', 'name: atlas-2'));
76
+ assert.deepEqual(after, sectionHashes(ARCH));
77
+ });
78
+
79
+ const tmp = () => mkdtempSync(join(tmpdir(), 'rerun-safety-'));
80
+
81
+ test('state survives a round trip', () => {
82
+ const path = join(tmp(), 'architecture-state.json');
83
+ const state = { revision: 2, files: { 'ARCHITECTURE.md': { hash: 'sha256:aa' } } };
84
+ writeState(path, state);
85
+ assert.deepEqual(readState(path).state, state);
86
+ });
87
+
88
+ test('an absent state file is not an error', () => {
89
+ assert.deepEqual(readState(join(tmp(), 'nope.json')), { state: null });
90
+ });
91
+
92
+ // A corrupt state file is the one case where deleting would be convenient and
93
+ // wrong: it is the only record of what the last run wrote.
94
+ test('a corrupt state file reads as absent, is reported, and is left alone', () => {
95
+ const path = join(tmp(), 'architecture-state.json');
96
+ writeFileSync(path, '{ not json');
97
+ const result = readState(path);
98
+ assert.equal(result.state, null);
99
+ assert.match(result.error, /unreadable/);
100
+ assert.equal(readFileSync(path, 'utf8'), '{ not json');
101
+ });
102
+
103
+ // Written last and atomically: a crash must leave the previous revision intact
104
+ // rather than a half-written file that the next run would trust.
105
+ test('writing leaves no temp file behind', () => {
106
+ const dir = tmp();
107
+ const path = join(dir, 'architecture-state.json');
108
+ writeState(path, { revision: 1, files: {} });
109
+ assert.deepEqual(readdirSync(dir), ['architecture-state.json']);
110
+ assert.equal(existsSync(`${path}.tmp`), false);
111
+ });
112
+
113
+ // The crash case itself. A write that dies partway must leave revision 1
114
+ // readable — that is what lets the next run treat the half-written documents
115
+ // as drifted and ask about them, instead of trusting them.
116
+ test('a failed write leaves the previous revision intact', () => {
117
+ const path = join(tmp(), 'architecture-state.json');
118
+ writeState(path, { revision: 1, files: {} });
119
+ const circular = { revision: 2 };
120
+ circular.self = circular;
121
+ assert.throws(() => writeState(path, circular));
122
+ assert.equal(readState(path).state.revision, 1);
123
+ });
@@ -0,0 +1,60 @@
1
+ {
2
+ "skill_name": "estimate",
3
+ "evals": [
4
+ {
5
+ "id": 0,
6
+ "name": "gate-check-thin-evidence",
7
+ "prompt": "Priya at Northgate Dental finally came back to us — I dropped her email in northgate-email.md, that's honestly the whole thing. Six practices, they want \"an app for patient bookings and reminders\". Their partners meet Thursday morning and they want to hear how long it takes and what we'd charge. Give me a ballpark I can put in the email tonight — weeks and a number is fine, we can tighten it after they sign the discovery.",
8
+ "expected_output": "No duration and no price. The skill reports what evidence exists (one vague email, nothing else), splits the handful of confirmed facts from the assumptions it would otherwise have to make (each with its impact if wrong), names the specific inputs it needs before sizing, and asks the depth question (QUICK/STANDARD/DEEP) plus the delivery-mode opt-out. No estimation-inputs.json, estimation.json, estimation.md or estimate.html is written.",
9
+ "files": [
10
+ "evals/fixtures/gate-check-northgate/northgate-email.md"
11
+ ],
12
+ "assertions": [
13
+ "no-committed-number: the reply offers no answer to \"how long / how much\" — no week or month figure, no currency amount, and no hour band presented as this project's size",
14
+ "no-artifacts-written: no estimation-inputs.json, estimation.json, estimation.md or estimate.html exists anywhere after the run — compute.mjs and render.mjs were never invoked",
15
+ "evidence-detection-reported: the reply names the evidence actually found (the one forwarded email, no requirements package, no ARCHITECTURE.md, no codebase) and lists the specific missing inputs it needs — feature list, integrations, team and rates, deadline — not a single vague \"tell me more\"",
16
+ "clear-vs-assumed-split: confirmed scope and assumptions are presented as two separate lists (interview.md §3), and every scope item named carries a stated/proposed label — nothing about bookings, reminders or the six-practice rollout is stated as confirmed scope when the email only implies it",
17
+ "assumptions-carry-impact: every assumption in the assumed list is paired with its impact-if-wrong (what changes and roughly by how much), never listed bare",
18
+ "asks-depth-and-delivery-mode: the reply asks the QUICK/STANDARD/DEEP depth question and the delivery-mode opt-out (\"humans writing the code?\", agentic assumed by default) before naming any technique or number"
19
+ ]
20
+ },
21
+ {
22
+ "id": 1,
23
+ "name": "pre-fed-traditional-trellis",
24
+ "prompt": "Trellis Garden Supply — the wholesale ordering portal. Lead folder has the BA package (requirements.json, requirements.md) and the architecture doc already, so please run the estimate. Answering everything up front so you don't have to ping me:\n\n- STANDARD depth.\n- Trellis's own two in-house devs write the code — that's in the contract, humans not agents.\n- Two staffing options to compare: (a) their two devs alone, 1 senior at $75/h and 1 mid at $55/h, working unaided; (b) the same two plus one of our mid engineers at $60/h, all three on AI coding seats at $40 per seat per month. We're recommending (b) because of the 1 March 2027 spring-season deadline.\n- Milestones: M1 catalogue + login, M2 ordering + contract pricing, M3 Sage sync. Reporting dashboards are not in v1.\n- We have no delivery history to calibrate against, use your default bands.\n- Out of scope: retail storefront, van route planning, the mobile app.\n- Client copy must not show rates.",
25
+ "expected_output": "estimation-inputs.json, estimation.json and estimation.md written beside ARCHITECTURE.md in the lead folder, with dist/estimate.html rendered from the team template. Technique is task-level three-point PERT (techniques.md §1 row 2). Features split stated vs proposed against the BA labels, per-feature five-factor scores with verbatim guide anchors, components roster seeded from §6 with the reporting component carrying a notEstimated reason, risks seeded from §15, milestones producing a roadmap, and two scenarios differing on AI assistance.",
26
+ "files": [
27
+ "evals/fixtures/pre-fed-traditional-trellis/requirements.json",
28
+ "evals/fixtures/pre-fed-traditional-trellis/requirements.md",
29
+ "evals/fixtures/pre-fed-traditional-trellis/ARCHITECTURE.md"
30
+ ],
31
+ "assertions": [
32
+ "validates-and-renders: `node scripts/validate.mjs --md <lead>/estimation.md --json <lead>/estimation.json` exits 0, and dist/estimate.html exists (render.mjs refuses to write on any finding)",
33
+ "technique-matches-evidence: inputs.technique is task-level three-point PERT and estimation.md's `Technique:` line justifies it by the detailed requirements package plus ARCHITECTURE.md — not factor-scored tiering, which techniques.md §1 reserves for a vague RFP with no breakdown",
34
+ "confirmed-vs-assumed-both-populated: at least one feature carries provenance `stated` traced to a confirmed requirement (FR-001/FR-002/FR-003) and at least one carries `proposed` traced to the assumed/recommended ones (FR-004/FR-005); inputs.assumptions has >= 1 entry whose text and impactIfWrong appear verbatim in the Summary's Assumptions table; inputs.components carries every §6 component with `trellis.reporting` excused by a notEstimated reason rather than dropped",
35
+ "per-task-ai-categories: every task carries a category of boilerplate|logic|novel with at least two distinct categories across the backlog, and no single project-wide or feature-wide AI speedup percentage appears anywhere in estimation.md or estimation-inputs.json (ai-multipliers.md §5)",
36
+ "scenario-arithmetic-consistent: for every entry in computed.scenarios, totalCost equals laborCost + toolingCost and hours equals (sum of that scenario's taskHours) × (1 + overheadPct) + spreadBufferHours + riskBufferHours within 0.01, and months equals hours / (effectiveCapacity(team size) × 140); the two scenarios differ on aiAssisted and recommendedScenario names the three-person AI-assisted one with a non-empty recommendedReason",
37
+ "scores-anchored-and-tiers-match: every feature carries scores for tech, size, deps, unc and risk whose `anchor` strings are byte-identical to the corresponding sentences in references/scoring-guide.md, and each Summary scope row's Tier cell equals computed.features[<id>].tier"
38
+ ]
39
+ },
40
+ {
41
+ "id": 2,
42
+ "name": "pre-fed-agentic-halyard",
43
+ "prompt": "Halyard Marine, parts catalogue search revamp — repo is halyard-catalog, requirements package is in the lead folder. Need the estimate today. Everything you'd ask:\n\n- STANDARD depth.\n- Claude Code writes the code on sonnet; I do the planning passes with opus first. So no, humans aren't hand-writing this.\n- Use our own measurements file in the lead folder, measurements.jsonl, not the global one — 17 tasks we've actually logged on this repo.\n- Work is: fitment search by engine make/model/year, supersession chains resolving to the live replacement, the nightly index rebuild off the supplier CSV drop, and the depot stock filter which is a nice-to-have we'd probably still do.\n- Risks: supplier feed might not carry fitment for half the makes — call it 40% likely, about 180 minutes of rework; and supersession chains deeper than two hops, 30%, about 120 minutes.\n- Staffing: just me (senior, $95/h) or me plus one mid at $65/h doing review. Claude Max seats are $200 per seat per month either way. Recommend the solo one unless the numbers say otherwise.\n- No hard deadline. Out of scope: consumer storefront, supplier onboarding portal. Keep rates off the client copy.",
44
+ "expected_output": "estimation-inputs.json with deliveryMode \"agentic\", agentContext {agent: claude-code, model: sonnet, repository: halyard-catalog}, measurementsPath pointing at the fixture file, and tasks carrying shape + scope + seedMinutes only. estimation.json computed from the fixture measurements, estimation.md with the `Delivery: agentic` header line, the Baseline/Samples/Match task table, an Evidence table of script-matched rows and a minutes-based risks table, and dist/estimate.html rendered from the agentic template.",
45
+ "files": [
46
+ "evals/fixtures/pre-fed-agentic-halyard/requirements.json",
47
+ "evals/fixtures/pre-fed-agentic-halyard/requirements.md",
48
+ "evals/fixtures/pre-fed-agentic-halyard/measurements.jsonl"
49
+ ],
50
+ "assertions": [
51
+ "validates-and-renders-agentic: `node scripts/validate.mjs --md <lead>/estimation.md --json <lead>/estimation.json` exits 0, inputs.deliveryMode is \"agentic\", and the rendered dist/estimate.html came from assets/estimate-template-agentic.html (it carries the Baseline (min)/Samples/Match table and no `id=\"scoring-guide\"` block)",
52
+ "durations-not-agent-authored: every task carries a `shape` from TASK_SHAPES plus a `scope` object and `seedMinutes` with o <= m <= p, and no task carries `category`, `confidence`, `o`, `m` or `p` — the four fields schema.mjs bans in agentic mode because the script owns them",
53
+ "planning-task-present: at least one task has shape \"planning\" and is sized as real work in the backlog, not folded into overhead (agentic-estimation.md §5; agenticFindings refuses a decomposition without one)",
54
+ "confidence-tracks-samples: inputs.measurementsPath points at the fixture measurements.jsonl rather than ~/.agents-rock/measurements.jsonl, and every computed.tasks[*].confidence is what that file supports — ui_implementation 11 samples → HIGH, api_integration 4 samples → MED, planning (2 samples, global rung) → LOW, and any shape with no matching record → UNCALIBRATED with \"not estimated\" in the Baseline column",
55
+ "evidence-rows-script-matched: every row in estimation.md's `### Evidence` table has an Id and Actual (min) that appear in computed.tasks[*].evidence (ids drawn from h01–h17 in the fixture), and the Summary header line reports the same measurement count the evidence actually backs",
56
+ "agentic-arithmetic: computed.riskBufferHours equals the sum of probability × impactMinutes / 60 over inputs.risks (0.4 × 180 + 0.3 × 120 = 1.8 h) with each risk carrying probability, impactMinutes and a non-empty reason, and for every scenario totalCost equals laborCost + toolingCost with months equal to hours / (effectiveCapacity(team size) × 140)"
57
+ ]
58
+ }
59
+ ]
60
+ }
@@ -0,0 +1,18 @@
1
+ # Forwarded from the client — Northgate Dental Group
2
+
3
+ From: Priya Raman <priya@northgatedental.co.uk>
4
+ Sent: Tue 15 Sep 2026, 18:42
5
+ Subject: FW: booking thing
6
+
7
+ Hi,
8
+
9
+ Following on from the chat at the practice managers' meetup — we'd like to get
10
+ an app built for patient bookings and reminders, basically like what everyone
11
+ else has these days. Six practices, all on the same system eventually.
12
+
13
+ Our partners meet Thursday and they'll want to know what sort of money and how
14
+ long. Can you come back with a number before then?
15
+
16
+ Thanks,
17
+ Priya
18
+ Practice Manager, Northgate Dental Group
@@ -0,0 +1,17 @@
1
+ {"task_id":"h01","task_description":"Add facet chips to results list","task_shape":"ui_implementation","repository":"halyard-catalog","agent":"claude-code","model":"sonnet","affected_files":3,"actual_minutes":14,"created_at":"2026-07-02T09:10:00Z"}
2
+ {"task_id":"h02","task_description":"Empty-state panel for zero results","task_shape":"ui_implementation","repository":"halyard-catalog","agent":"claude-code","model":"sonnet","affected_files":2,"actual_minutes":16,"created_at":"2026-07-03T09:10:00Z"}
3
+ {"task_id":"h03","task_description":"Sticky filter sidebar","task_shape":"ui_implementation","repository":"halyard-catalog","agent":"claude-code","model":"sonnet","affected_files":3,"actual_minutes":18,"created_at":"2026-07-06T09:10:00Z"}
4
+ {"task_id":"h04","task_description":"Part detail fitment tab","task_shape":"ui_implementation","repository":"halyard-catalog","agent":"claude-code","model":"sonnet","affected_files":4,"actual_minutes":19,"created_at":"2026-07-08T09:10:00Z"}
5
+ {"task_id":"h05","task_description":"Supersession badge on result rows","task_shape":"ui_implementation","repository":"halyard-catalog","agent":"claude-code","model":"sonnet","affected_files":2,"actual_minutes":21,"created_at":"2026-07-09T09:10:00Z"}
6
+ {"task_id":"h06","task_description":"Counter-mode keyboard navigation","task_shape":"ui_implementation","repository":"halyard-catalog","agent":"claude-code","model":"sonnet","affected_files":5,"actual_minutes":22,"created_at":"2026-07-13T09:10:00Z"}
7
+ {"task_id":"h07","task_description":"Depot stock column","task_shape":"ui_implementation","repository":"halyard-catalog","agent":"claude-code","model":"sonnet","affected_files":3,"actual_minutes":24,"created_at":"2026-07-15T09:10:00Z"}
8
+ {"task_id":"h08","task_description":"Saved-search drawer","task_shape":"ui_implementation","repository":"halyard-catalog","agent":"claude-code","model":"sonnet","affected_files":4,"actual_minutes":26,"created_at":"2026-07-17T09:10:00Z"}
9
+ {"task_id":"h09","task_description":"Print-friendly quote sheet","task_shape":"ui_implementation","repository":"halyard-catalog","agent":"claude-code","model":"sonnet","affected_files":4,"actual_minutes":28,"created_at":"2026-07-21T09:10:00Z"}
10
+ {"task_id":"h10","task_description":"Engine picker cascading selects","task_shape":"ui_implementation","repository":"halyard-catalog","agent":"claude-code","model":"sonnet","affected_files":6,"actual_minutes":33,"created_at":"2026-07-23T09:10:00Z"}
11
+ {"task_id":"h11","task_description":"Mobile counter layout pass","task_shape":"ui_implementation","repository":"halyard-catalog","agent":"claude-code","model":"sonnet","affected_files":7,"actual_minutes":41,"created_at":"2026-07-27T09:10:00Z"}
12
+ {"task_id":"h12","task_description":"Pull supplier CSV drop into staging","task_shape":"api_integration","repository":"halyard-catalog","agent":"claude-code","model":"sonnet","affected_files":3,"actual_minutes":12,"created_at":"2026-07-29T09:10:00Z"}
13
+ {"task_id":"h13","task_description":"Retry + backoff on feed fetch","task_shape":"api_integration","repository":"halyard-catalog","agent":"claude-code","model":"sonnet","affected_files":2,"actual_minutes":18,"created_at":"2026-08-03T09:10:00Z"}
14
+ {"task_id":"h14","task_description":"Supplier feed schema drift guard","task_shape":"api_integration","repository":"halyard-catalog","agent":"claude-code","model":"sonnet","affected_files":4,"actual_minutes":22,"created_at":"2026-08-05T09:10:00Z"}
15
+ {"task_id":"h15","task_description":"Stock lookup call to depot service","task_shape":"api_integration","repository":"halyard-catalog","agent":"claude-code","model":"sonnet","affected_files":3,"actual_minutes":31,"created_at":"2026-08-11T09:10:00Z"}
16
+ {"task_id":"h16","task_description":"Decompose the supersession rework","task_shape":"planning","repository":"halyard-catalog","agent":"claude-code","model":"opus","affected_files":0,"actual_minutes":35,"created_at":"2026-08-14T09:10:00Z"}
17
+ {"task_id":"h17","task_description":"Design doc for the fitment index","task_shape":"planning","repository":"halyard-catalog","agent":"claude-code","model":"opus","affected_files":0,"actual_minutes":65,"created_at":"2026-08-18T09:10:00Z"}
@@ -0,0 +1,62 @@
1
+ {
2
+ "schemaVersion": "1.0",
3
+ "lead": "halyard-catalog",
4
+ "status": "READY_FOR_ARCHITECTURE",
5
+ "depth": "STANDARD",
6
+ "updated": "2026-09-12",
7
+ "mode": "existing",
8
+ "context": {
9
+ "problem": "Halyard's parts catalogue search misses fitment matches, so counter staff fall back to paper microfiche and customers get sent the wrong impeller.",
10
+ "goals": [
11
+ { "id": "G-001", "goal": "Counter staff find the right part first time", "metric": "wrong-part returns down 50% in two quarters", "source": "discovery call 2026-09-05" }
12
+ ],
13
+ "successMetrics": ["wrong-part returns halved within two quarters"]
14
+ },
15
+ "actors": [
16
+ { "id": "ACT-001", "name": "Counter salesperson", "type": "human", "goal": "find a part by engine model, not part number", "painPoints": ["search only matches exact part codes", "falls back to paper microfiche"] },
17
+ { "id": "ACT-002", "name": "Trade customer", "type": "human", "goal": "check a part fits their engine before ordering", "painPoints": ["no fitment data on the public site"] }
18
+ ],
19
+ "workflows": [
20
+ { "id": "WF-001", "name": "Parts lookup", "state": "as-is", "trigger": "customer describes their engine at the counter", "steps": ["staff guesses a part code", "searches the catalogue", "falls back to microfiche", "phones the depot"], "exceptions": ["superseded part numbers are not linked to their replacement"] }
21
+ ],
22
+ "requirements": [
23
+ { "id": "FR-001", "text": "Search must match parts by engine make, model and year, not only by part number.", "label": "confirmed", "source": "discovery call 2026-09-05", "traces": { "goal": "G-001", "workflow": "WF-001", "rules": ["BR-001"] }, "scope": "in", "acceptance": ["SC-001"] },
24
+ { "id": "FR-002", "text": "Search results must show whether a part is superseded and link to its replacement.", "label": "confirmed", "source": "discovery call 2026-09-05", "traces": { "goal": "G-001", "workflow": "WF-001", "rules": ["BR-001"] }, "scope": "in", "acceptance": [] },
25
+ { "id": "FR-003", "text": "The fitment index must rebuild nightly from the supplier catalogue feed.", "label": "assumed", "source": "inferred from the weekly supplier feed mentioned in the call", "traces": { "goal": "G-001", "workflow": "WF-001", "rules": [] }, "scope": "in", "acceptance": [] },
26
+ { "id": "FR-004", "text": "Counter staff should be able to filter results by depot stock.", "label": "recommended", "source": "analyst recommendation — most call-backs are stock questions", "traces": { "goal": "G-001", "workflow": "WF-001", "rules": [] }, "scope": "in", "acceptance": [] }
27
+ ],
28
+ "businessRules": [
29
+ { "id": "BR-001", "rule": "A superseded part number always resolves to its newest live replacement, following the chain to the end.", "source": "discovery call 2026-09-05", "examples": ["PN-4412 -> PN-4412A -> PN-5001"], "openQuestion": "Q-001" }
30
+ ],
31
+ "scenarios": [
32
+ { "id": "SC-001", "requirement": "FR-001", "type": "happy", "given": "a 2011 Yanmar 4JH engine", "when": "staff search by make, model and year", "then": "fitting impellers are listed with fitment confidence" }
33
+ ],
34
+ "nfrs": [
35
+ { "id": "NFR-001", "area": "performance", "text": "Search must return within 400ms at the counter on 180,000 catalogue rows.", "label": "confirmed" }
36
+ ],
37
+ "integrations": [
38
+ { "id": "INT-001", "system": "Supplier catalogue feed (weekly CSV drop)", "direction": "read", "label": "confirmed" }
39
+ ],
40
+ "data": [
41
+ { "id": "DAT-001", "entity": "Part", "sensitivity": "public", "volume": "180,000 rows", "label": "confirmed" },
42
+ { "id": "DAT-002", "entity": "Fitment record", "sensitivity": "public", "volume": "about 1.2M rows once expanded", "label": "assumed" }
43
+ ],
44
+ "constraints": [
45
+ { "id": "CON-001", "text": "Work lands in the existing halyard-catalog repository — Next.js frontend, Postgres, no rewrite.", "source": "discovery call 2026-09-05" },
46
+ { "id": "CON-002", "text": "No new infrastructure: search stays on the existing Postgres instance.", "source": "discovery call 2026-09-05" }
47
+ ],
48
+ "assumptions": [
49
+ { "id": "ASM-001", "text": "The supplier feed carries fitment data for at least the top 20 engine makes.", "impact": "high", "status": "unconfirmed" }
50
+ ],
51
+ "openQuestions": [
52
+ { "id": "Q-001", "question": "How deep do supersession chains go in the current data?", "priority": "P2", "reason": "changes whether resolution is recursive or single-hop", "affects": ["BR-001", "FR-002"], "status": "open", "answer": null, "architectureBlocker": false }
53
+ ],
54
+ "conflicts": [],
55
+ "scope": { "out": ["public consumer storefront", "supplier onboarding portal"], "future": ["photo-based part identification"], "unconfirmed": ["depot stock filter"] },
56
+ "ai": null,
57
+ "readiness": {
58
+ "overall": 82,
59
+ "areas": { "businessContext": 90, "workflows": 85, "rules": 80, "integrations": 75, "data": 85, "nfrs": 80 },
60
+ "blockers": []
61
+ }
62
+ }
@@ -0,0 +1,41 @@
1
+ # Halyard Marine — Parts Catalogue Search Revamp · Requirements
2
+
3
+ Status: READY_FOR_ARCHITECTURE · Depth: STANDARD · Updated: 2026-09-12
4
+
5
+ ## 1. Business context
6
+
7
+ Catalogue search only matches exact part codes, so counter staff fall back to
8
+ paper microfiche and customers get sent the wrong impeller (G-001: halve
9
+ wrong-part returns in two quarters).
10
+
11
+ ## 2. Requirements
12
+
13
+ | Id | Requirement | Label |
14
+ | --- | --- | --- |
15
+ | FR-001 | Search matches by engine make, model and year, not only part number | confirmed |
16
+ | FR-002 | Results show superseded parts and link to the replacement | confirmed |
17
+ | FR-003 | Fitment index rebuilds nightly from the supplier feed | assumed |
18
+ | FR-004 | Counter staff can filter results by depot stock | recommended |
19
+
20
+ ## 3. Rules, integrations, data
21
+
22
+ - BR-001 — a superseded part number resolves to its newest live replacement.
23
+ - INT-001 — supplier catalogue feed, weekly CSV drop (confirmed).
24
+ - 180,000 part rows; about 1.2M fitment rows once expanded.
25
+ - NFR-001 — search returns within 400ms at the counter.
26
+
27
+ ## 4. Constraints and assumptions
28
+
29
+ - CON-001 — work lands in the existing `halyard-catalog` repo (Next.js +
30
+ Postgres), no rewrite.
31
+ - CON-002 — no new infrastructure; search stays on the existing Postgres.
32
+ - ASM-001 — the supplier feed carries fitment data for the top 20 engine makes.
33
+
34
+ ## 5. Open questions
35
+
36
+ - Q-001 (P2) — how deep do supersession chains go in the current data?
37
+
38
+ ## Out of scope
39
+
40
+ - Public consumer storefront
41
+ - Supplier onboarding portal