@v11g/agents-rock 1.0.8 → 1.0.10

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 (314) hide show
  1. package/README.md +2 -1
  2. package/package.json +2 -2
  3. package/plugins/business-analyst/.claude-plugin/plugin.json +1 -1
  4. package/plugins/business-analyst/evals/ba-interview-conflict/graders/conflict-quoted.md +15 -0
  5. package/plugins/business-analyst/evals/ba-interview-conflict/graders/no-internal-ids.md +9 -0
  6. package/plugins/business-analyst/evals/ba-interview-conflict/graders/one-question.md +15 -0
  7. package/plugins/business-analyst/evals/ba-interview-conflict/graders/skill-fired.md +7 -0
  8. package/plugins/business-analyst/evals/ba-interview-conflict/prompt.md +31 -0
  9. package/plugins/business-analyst/evals/ba-interview-first-turn/graders/no-internal-ids.md +9 -0
  10. package/plugins/business-analyst/evals/ba-interview-first-turn/graders/no-setup-questions.md +16 -0
  11. package/plugins/business-analyst/evals/ba-interview-first-turn/graders/one-scope-question.md +19 -0
  12. package/plugins/business-analyst/evals/ba-interview-first-turn/graders/skill-fired.md +7 -0
  13. package/plugins/business-analyst/evals/ba-interview-first-turn/prompt.md +31 -0
  14. package/plugins/business-analyst/evals/ba-review-page/case.yaml +4 -0
  15. package/plugins/business-analyst/evals/ba-review-page/fixture.sh +12 -0
  16. package/plugins/business-analyst/evals/ba-review-page/graders/decide-in-interview.md +26 -0
  17. package/plugins/business-analyst/evals/ba-review-page/graders/skill-fired.md +7 -0
  18. package/plugins/business-analyst/evals/ba-review-page/prompt.md +9 -0
  19. package/plugins/business-analyst/skills/business-analyst/README.md +8 -0
  20. package/plugins/business-analyst/skills/business-analyst/SKILL.md +47 -16
  21. package/plugins/business-analyst/skills/business-analyst/assets/review-page.html +68 -0
  22. package/plugins/business-analyst/skills/business-analyst/evals/evals.json +1 -1
  23. package/plugins/business-analyst/skills/business-analyst/references/frameworks.md +3 -2
  24. package/plugins/business-analyst/skills/business-analyst/references/interview.md +156 -8
  25. package/plugins/business-analyst/skills/business-analyst/references/review.md +18 -4
  26. package/plugins/business-analyst/skills/business-analyst/references/writing.md +49 -8
  27. package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/review_data.cpython-312.pyc +0 -0
  28. package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/review_layout.cpython-312.pyc +0 -0
  29. package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/review_page.cpython-312.pyc +0 -0
  30. package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/scope_checks.cpython-312.pyc +0 -0
  31. package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/scope_render.cpython-312.pyc +0 -0
  32. package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/validate.cpython-312.pyc +0 -0
  33. package/plugins/business-analyst/skills/business-analyst/scripts/lib/checks.mjs +12 -6
  34. package/plugins/business-analyst/skills/business-analyst/scripts/lib/review-data.mjs +66 -0
  35. package/plugins/business-analyst/skills/business-analyst/scripts/lib/review-layout.mjs +53 -0
  36. package/plugins/business-analyst/skills/business-analyst/scripts/lib/review-page.mjs +78 -0
  37. package/plugins/business-analyst/skills/business-analyst/scripts/lib/scope-checks.mjs +73 -0
  38. package/plugins/business-analyst/skills/business-analyst/scripts/lib/scope-md.mjs +53 -0
  39. package/plugins/business-analyst/skills/business-analyst/scripts/lib/scope-render.mjs +72 -0
  40. package/plugins/business-analyst/skills/business-analyst/scripts/lib/scope-rules.mjs +90 -0
  41. package/plugins/business-analyst/skills/business-analyst/scripts/review.mjs +48 -0
  42. package/plugins/business-analyst/skills/business-analyst/scripts/review.py +60 -0
  43. package/plugins/business-analyst/skills/business-analyst/scripts/review_data.py +81 -0
  44. package/plugins/business-analyst/skills/business-analyst/scripts/review_layout.py +50 -0
  45. package/plugins/business-analyst/skills/business-analyst/scripts/review_page.py +115 -0
  46. package/plugins/business-analyst/skills/business-analyst/scripts/scope.mjs +24 -0
  47. package/plugins/business-analyst/skills/business-analyst/scripts/scope.py +35 -0
  48. package/plugins/business-analyst/skills/business-analyst/scripts/scope_checks.py +168 -0
  49. package/plugins/business-analyst/skills/business-analyst/scripts/scope_render.py +140 -0
  50. package/plugins/business-analyst/skills/business-analyst/scripts/test/checks.test.mjs +27 -0
  51. package/plugins/business-analyst/skills/business-analyst/scripts/test/fixtures/requirements-workflow-pass.json +78 -0
  52. package/plugins/business-analyst/skills/business-analyst/scripts/test/fixtures/requirements-workflow-pass.md +136 -0
  53. package/plugins/business-analyst/skills/business-analyst/scripts/test/python-parity.test.mjs +88 -0
  54. package/plugins/business-analyst/skills/business-analyst/scripts/test/quality-gates.test.mjs +26 -0
  55. package/plugins/business-analyst/skills/business-analyst/scripts/test/review-browser.test.mjs +106 -0
  56. package/plugins/business-analyst/skills/business-analyst/scripts/test/review-fixture.mjs +32 -0
  57. package/plugins/business-analyst/skills/business-analyst/scripts/test/review-page.test.mjs +340 -0
  58. package/plugins/business-analyst/skills/business-analyst/scripts/test/review-parity.test.mjs +79 -0
  59. package/plugins/business-analyst/skills/business-analyst/scripts/test/scope-cases.mjs +58 -0
  60. package/plugins/business-analyst/skills/business-analyst/scripts/test/scope-checks.test.mjs +31 -0
  61. package/plugins/business-analyst/skills/business-analyst/scripts/test/scope-md.test.mjs +140 -0
  62. package/plugins/business-analyst/skills/business-analyst/scripts/validate.mjs +1 -1
  63. package/plugins/business-analyst/skills/business-analyst/scripts/validate.py +17 -8
  64. package/plugins/reasoning/.claude-plugin/plugin.json +1 -1
  65. package/plugins/reasoning/evals/format-handoff-folder/graders/folder-named.md +8 -0
  66. package/plugins/reasoning/evals/format-handoff-folder/graders/skill-fired.md +7 -0
  67. package/plugins/reasoning/evals/format-handoff-folder/prompt.md +9 -0
  68. package/plugins/reasoning/evals/format-ids-and-supports/graders/ids-in-chat.md +8 -0
  69. package/plugins/reasoning/evals/format-ids-and-supports/graders/skill-fired.md +7 -0
  70. package/plugins/reasoning/evals/format-ids-and-supports/graders/supports-resolve.md +11 -0
  71. package/plugins/reasoning/evals/format-ids-and-supports/prompt.md +8 -0
  72. package/plugins/reasoning/evals/format-root-candidate-status/graders/candidate-status.md +11 -0
  73. package/plugins/reasoning/evals/format-root-candidate-status/graders/skill-fired.md +7 -0
  74. package/plugins/reasoning/evals/format-root-candidate-status/prompt.md +8 -0
  75. package/plugins/reasoning/evals/format-unsaved-continues/graders/analysis-completes.md +9 -0
  76. package/plugins/reasoning/evals/format-unsaved-continues/graders/not-saved-stated.md +9 -0
  77. package/plugins/reasoning/evals/format-unsaved-continues/graders/skill-fired.md +7 -0
  78. package/plugins/reasoning/evals/format-unsaved-continues/prompt.md +8 -0
  79. package/plugins/reasoning/skills/problem-router/README.md +6 -0
  80. package/plugins/reasoning/skills/problem-router/SKILL.md +4 -0
  81. package/plugins/reasoning/skills/problem-router/references/contract.md +114 -19
  82. package/plugins/reasoning/skills/problem-solving/README.md +6 -0
  83. package/plugins/reasoning/skills/problem-solving/SKILL.md +2 -0
  84. package/plugins/reasoning/skills/problem-solving/references/contract.md +114 -19
  85. package/plugins/reasoning/skills/problem-solving/references/interview.md +2 -0
  86. package/plugins/reasoning/skills/systemic-design/README.md +3 -0
  87. package/plugins/reasoning/skills/systemic-design/SKILL.md +2 -0
  88. package/plugins/reasoning/skills/systemic-design/references/contract.md +114 -19
  89. package/plugins/reasoning/skills/systemic-design/references/interview.md +2 -0
  90. package/plugins/reasoning/skills/systems-thinking/README.md +3 -0
  91. package/plugins/reasoning/skills/systems-thinking/SKILL.md +2 -0
  92. package/plugins/reasoning/skills/systems-thinking/frameworks/leverage-points.md +15 -6
  93. package/plugins/reasoning/skills/systems-thinking/references/contract.md +114 -19
  94. package/plugins/reasoning/skills/systems-thinking/references/interview.md +2 -0
  95. package/plugins/solution-architect/.claude-plugin/plugin.json +1 -1
  96. package/plugins/solution-architect/evals/proposal-workflow/case.yaml +6 -0
  97. package/plugins/solution-architect/evals/proposal-workflow/fixture.sh +6 -0
  98. package/plugins/solution-architect/evals/proposal-workflow/graders/inputs-written.md +23 -0
  99. package/plugins/solution-architect/evals/proposal-workflow/graders/no-proposal-md.md +7 -0
  100. package/plugins/solution-architect/evals/proposal-workflow/graders/skill-fired.md +7 -0
  101. package/plugins/solution-architect/evals/proposal-workflow/graders/validate-then-render.md +16 -0
  102. package/plugins/solution-architect/evals/proposal-workflow/prompt.md +10 -0
  103. package/plugins/solution-architect/evals/workflow-gate-no-architecture/case.yaml +4 -0
  104. package/plugins/solution-architect/evals/workflow-gate-no-architecture/fixture.sh +6 -0
  105. package/plugins/solution-architect/evals/workflow-gate-no-architecture/graders/no-classic-fallback.md +10 -0
  106. package/plugins/solution-architect/evals/workflow-gate-no-architecture/graders/nothing-written.md +7 -0
  107. package/plugins/solution-architect/evals/workflow-gate-no-architecture/graders/skill-fired.md +7 -0
  108. package/plugins/solution-architect/evals/workflow-gate-no-architecture/graders/stops-at-gate.md +11 -0
  109. package/plugins/solution-architect/evals/workflow-gate-no-architecture/prompt.md +7 -0
  110. package/plugins/solution-architect/evals/workflow-happy-path/case.yaml +4 -0
  111. package/plugins/solution-architect/evals/workflow-happy-path/fixture.sh +6 -0
  112. package/plugins/solution-architect/evals/workflow-happy-path/graders/no-estimation-md.md +7 -0
  113. package/plugins/solution-architect/evals/workflow-happy-path/graders/pages-or-stop.md +16 -0
  114. package/plugins/solution-architect/evals/workflow-happy-path/graders/routed-to-workflow.md +12 -0
  115. package/plugins/solution-architect/evals/workflow-happy-path/graders/skill-fired.md +7 -0
  116. package/plugins/solution-architect/evals/workflow-happy-path/graders/three-questions-max.md +14 -0
  117. package/plugins/solution-architect/evals/workflow-happy-path/graders/workflow-or-exact-stop.md +15 -0
  118. package/plugins/solution-architect/evals/workflow-happy-path/prompt.md +9 -0
  119. package/plugins/solution-architect/skills/analyze-requirements/assets/viewer-template.html +11 -1
  120. package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/cdp.mjs +4 -1
  121. package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/quality-gate.mjs +16 -1
  122. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/browser.test.mjs +27 -0
  123. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/quality-gate.test.mjs +9 -0
  124. package/plugins/solution-architect/skills/estimate/README.md +38 -18
  125. package/plugins/solution-architect/skills/estimate/SKILL.md +16 -69
  126. package/plugins/solution-architect/skills/estimate/classic/FLOW.md +77 -0
  127. package/plugins/solution-architect/skills/estimate/{assets → classic/assets}/estimate-template-agentic.html +111 -138
  128. package/plugins/solution-architect/skills/estimate/{assets → classic/assets}/estimate-template.html +219 -445
  129. package/plugins/solution-architect/skills/estimate/{assets → classic/assets}/scores-review-template.html +5 -4
  130. package/plugins/solution-architect/skills/estimate/{references → classic/references}/agentic-estimation.md +4 -2
  131. package/plugins/solution-architect/skills/estimate/classic/references/ai-multipliers.md +57 -0
  132. package/plugins/solution-architect/skills/estimate/{references → classic/references}/interview.md +56 -35
  133. package/plugins/solution-architect/skills/estimate/{references → classic/references}/scoring-guide.md +40 -4
  134. package/plugins/solution-architect/skills/estimate/{references → classic/references}/task-shapes.md +1 -1
  135. package/plugins/solution-architect/skills/estimate/{references → classic/references}/techniques.md +29 -21
  136. package/plugins/solution-architect/skills/estimate/{references → classic/references}/writing.md +77 -45
  137. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/compute.mjs +1 -1
  138. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/checks.mjs +38 -6
  139. package/plugins/solution-architect/skills/estimate/classic/scripts/lib/redact.mjs +112 -0
  140. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/roadmap.mjs +4 -5
  141. package/plugins/solution-architect/skills/estimate/classic/scripts/lib/rollup.mjs +129 -0
  142. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/schema.mjs +31 -38
  143. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/score-csv.mjs +3 -3
  144. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/score-html.mjs +3 -3
  145. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/render.mjs +9 -8
  146. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/score-review.mjs +3 -3
  147. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/baselines.test.mjs +3 -3
  148. package/plugins/solution-architect/skills/estimate/classic/scripts/test/browser-agentic.test.mjs +143 -0
  149. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/browser.test.mjs +211 -52
  150. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/compute.test.mjs +58 -33
  151. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/e2e.test.mjs +55 -3
  152. package/plugins/solution-architect/skills/estimate/classic/scripts/test/estimate-math.test.mjs +44 -0
  153. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/agentic-estimation-fail.md +0 -10
  154. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/agentic-estimation-pass.md +0 -10
  155. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/agentic-inputs.json +1 -7
  156. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/booking-inputs.json +11 -10
  157. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/estimation-fail.md +6 -0
  158. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/estimation-pass.md +17 -21
  159. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/measurements.test.mjs +1 -1
  160. package/plugins/solution-architect/skills/estimate/classic/scripts/test/pricing.test.mjs +88 -0
  161. package/plugins/solution-architect/skills/estimate/classic/scripts/test/project-price.test.mjs +93 -0
  162. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/quality-gates.test.mjs +7 -1
  163. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/references.test.mjs +88 -26
  164. package/plugins/solution-architect/skills/estimate/classic/scripts/test/render.test.mjs +405 -0
  165. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/schema.test.mjs +114 -61
  166. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/score-review.test.mjs +37 -4
  167. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/scoring.test.mjs +1 -1
  168. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/url-state.test.mjs +2 -2
  169. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/validate.test.mjs +104 -10
  170. package/plugins/solution-architect/skills/estimate/classic/scripts/test/xlsx-export.test.mjs +475 -0
  171. package/plugins/solution-architect/skills/estimate/classic/scripts/test/zip-store.test.mjs +26 -0
  172. package/plugins/solution-architect/skills/estimate/evals/evals.json +44 -9
  173. package/plugins/solution-architect/skills/estimate/evals/fixtures/workflow-sin-kowa-mini/ARCHITECTURE.md +28 -0
  174. package/plugins/solution-architect/skills/estimate/evals/fixtures/workflow-sin-kowa-mini/requirements.json +79 -0
  175. package/plugins/solution-architect/skills/estimate/evals/fixtures/workflow-sin-kowa-mini/requirements.md +141 -0
  176. package/plugins/solution-architect/skills/estimate/shared/assets/xlsx-export.js +336 -0
  177. package/plugins/solution-architect/skills/estimate/shared/lib/agentic-task-schema.mjs +24 -0
  178. package/plugins/solution-architect/skills/estimate/shared/lib/context-schema.mjs +35 -0
  179. package/plugins/solution-architect/skills/estimate/shared/lib/estimate-math.mjs +31 -0
  180. package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/inline.mjs +13 -5
  181. package/plugins/solution-architect/skills/estimate/shared/lib/pricing.mjs +78 -0
  182. package/plugins/solution-architect/skills/estimate/shared/lib/project-price.mjs +96 -0
  183. package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/scoring-schema.mjs +1 -1
  184. package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/scoring.mjs +3 -3
  185. package/plugins/solution-architect/skills/estimate/shared/lib/zip.mjs +60 -0
  186. package/plugins/solution-architect/skills/estimate/workflow-based/FLOW.md +91 -0
  187. package/plugins/solution-architect/skills/estimate/workflow-based/assets/estimate-components.html +994 -0
  188. package/plugins/solution-architect/skills/estimate/workflow-based/assets/estimate-template.html +440 -0
  189. package/plugins/solution-architect/skills/estimate/workflow-based/assets/estimator-system.xlsx +0 -0
  190. package/plugins/solution-architect/skills/estimate/workflow-based/assets/score-review.html +838 -0
  191. package/plugins/solution-architect/skills/estimate/workflow-based/references/hidden-work-by-type.md +429 -0
  192. package/plugins/solution-architect/skills/estimate/workflow-based/references/linking.md +59 -0
  193. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/build-components-template.mjs +80 -0
  194. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/build-template.mjs +60 -0
  195. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/build-workflow-template.mjs +51 -0
  196. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/build-xlsx-template.py +144 -0
  197. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/compute.mjs +32 -0
  198. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/page-html.mjs +44 -0
  199. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/page-view.mjs +71 -0
  200. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/pair-findings.mjs +19 -0
  201. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/requirements.mjs +33 -0
  202. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/rollup.mjs +66 -0
  203. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/schema-components.mjs +69 -0
  204. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/schema.mjs +70 -0
  205. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/score-diff.mjs +54 -0
  206. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/score-html.mjs +52 -0
  207. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/xlsx-rows.mjs +51 -0
  208. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/render.mjs +42 -0
  209. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/score-review.mjs +46 -0
  210. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/template/arch-link.js +9 -0
  211. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/template/click.js +28 -0
  212. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/template/prelude.js +4 -0
  213. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/template/view.js +63 -0
  214. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/browser.test.mjs +127 -0
  215. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/build-pages.test.mjs +43 -0
  216. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/build-template.test.mjs +18 -0
  217. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/cli.test.mjs +48 -0
  218. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/estimator-system.test.mjs +66 -0
  219. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/fixtures/ARCHITECTURE-mini.md +31 -0
  220. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/fixtures/feedback.json +19 -0
  221. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/fixtures/inputs-pass.json +80 -0
  222. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/fixtures/measurements.jsonl +0 -0
  223. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/fixtures/requirements.json +79 -0
  224. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/page-view.test.mjs +54 -0
  225. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/pages-browser.test.mjs +209 -0
  226. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/quality-gates.test.mjs +25 -0
  227. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/render.test.mjs +54 -0
  228. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/requirements.test.mjs +33 -0
  229. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/rollup.test.mjs +80 -0
  230. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/schema.test.mjs +61 -0
  231. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/score-review.test.mjs +108 -0
  232. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/stage.mjs +32 -0
  233. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/workflow-script.test.mjs +24 -0
  234. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/xlsx-rows.test.mjs +58 -0
  235. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/validate.mjs +19 -0
  236. package/plugins/solution-architect/skills/new-lead/SKILL.md +4 -3
  237. package/plugins/solution-architect/skills/proposal/README.md +22 -7
  238. package/plugins/solution-architect/skills/proposal/SKILL.md +18 -7
  239. package/plugins/solution-architect/skills/proposal/assets/proposal-workflow.html +143 -0
  240. package/plugins/solution-architect/skills/proposal/evals/evals.json +29 -11
  241. package/plugins/solution-architect/skills/proposal/evals/fixtures/gate-check-unpriced-harborline/ARCHITECTURE.md +65 -0
  242. package/plugins/solution-architect/skills/proposal/evals/fixtures/gate-check-unpriced-harborline/brief.md +21 -0
  243. package/plugins/solution-architect/skills/proposal/evals/fixtures/gate-check-unpriced-harborline/estimation-inputs.json +126 -0
  244. package/plugins/solution-architect/skills/proposal/evals/fixtures/gate-check-unpriced-harborline/estimation.json +215 -0
  245. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/estimation-inputs.json +224 -34
  246. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/estimation.json +103 -114
  247. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/estimation.md +48 -22
  248. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-meridian-dental/estimation-inputs.json +211 -33
  249. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-meridian-dental/estimation.json +102 -117
  250. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-meridian-dental/estimation.md +48 -25
  251. package/plugins/solution-architect/skills/proposal/evals/fixtures/workflow-sin-kowa-mini/ARCHITECTURE.md +31 -0
  252. package/plugins/solution-architect/skills/proposal/evals/fixtures/workflow-sin-kowa-mini/estimation-inputs.json +468 -0
  253. package/plugins/solution-architect/skills/proposal/evals/fixtures/workflow-sin-kowa-mini/estimation.json +773 -0
  254. package/plugins/solution-architect/skills/proposal/evals/fixtures/workflow-sin-kowa-mini/measurements.jsonl +0 -0
  255. package/plugins/solution-architect/skills/proposal/evals/fixtures/workflow-sin-kowa-mini/requirements.json +79 -0
  256. package/plugins/solution-architect/skills/proposal/references/interview.md +3 -6
  257. package/plugins/solution-architect/skills/proposal/references/review.md +16 -4
  258. package/plugins/solution-architect/skills/proposal/references/workflow.md +88 -0
  259. package/plugins/solution-architect/skills/proposal/references/writing.md +33 -31
  260. package/plugins/solution-architect/skills/proposal/scripts/derive.mjs +1 -1
  261. package/plugins/solution-architect/skills/proposal/scripts/lib/checks-client.mjs +5 -22
  262. package/plugins/solution-architect/skills/proposal/scripts/lib/checks-doc.mjs +18 -8
  263. package/plugins/solution-architect/skills/proposal/scripts/lib/checks.mjs +6 -2
  264. package/plugins/solution-architect/skills/proposal/scripts/lib/docx-body.mjs +42 -0
  265. package/plugins/solution-architect/skills/proposal/scripts/lib/docx-package.mjs +56 -0
  266. package/plugins/solution-architect/skills/proposal/scripts/lib/docx-xml.mjs +44 -0
  267. package/plugins/solution-architect/skills/proposal/scripts/lib/figures.mjs +24 -33
  268. package/plugins/solution-architect/skills/proposal/scripts/lib/sections.mjs +1 -1
  269. package/plugins/solution-architect/skills/proposal/scripts/lib/workflow-checks.mjs +71 -0
  270. package/plugins/solution-architect/skills/proposal/scripts/lib/workflow-cli.mjs +46 -0
  271. package/plugins/solution-architect/skills/proposal/scripts/lib/workflow-html.mjs +39 -0
  272. package/plugins/solution-architect/skills/proposal/scripts/lib/workflow-lead.mjs +45 -0
  273. package/plugins/solution-architect/skills/proposal/scripts/lib/workflow-page.mjs +30 -0
  274. package/plugins/solution-architect/skills/proposal/scripts/lib/workflow-view.mjs +80 -0
  275. package/plugins/solution-architect/skills/proposal/scripts/render.mjs +5 -1
  276. package/plugins/solution-architect/skills/proposal/scripts/test/checks-client.test.mjs +50 -47
  277. package/plugins/solution-architect/skills/proposal/scripts/test/checks-doc.test.mjs +99 -40
  278. package/plugins/solution-architect/skills/proposal/scripts/test/docs.test.mjs +11 -5
  279. package/plugins/solution-architect/skills/proposal/scripts/test/docx.test.mjs +68 -0
  280. package/plugins/solution-architect/skills/proposal/scripts/test/e2e.test.mjs +3 -3
  281. package/plugins/solution-architect/skills/proposal/scripts/test/evals-fixtures.test.mjs +46 -0
  282. package/plugins/solution-architect/skills/proposal/scripts/test/figures.test.mjs +67 -54
  283. package/plugins/solution-architect/skills/proposal/scripts/test/fixtures/proposal-fail.md +6 -1
  284. package/plugins/solution-architect/skills/proposal/scripts/test/fixtures/proposal-inputs-pass.json +17 -0
  285. package/plugins/solution-architect/skills/proposal/scripts/test/fixtures/proposal-pass.md +8 -12
  286. package/plugins/solution-architect/skills/proposal/scripts/test/render.test.mjs +3 -3
  287. package/plugins/solution-architect/skills/proposal/scripts/test/validate.test.mjs +5 -4
  288. package/plugins/solution-architect/skills/proposal/scripts/test/workflow-browser.test.mjs +96 -0
  289. package/plugins/solution-architect/skills/proposal/scripts/test/workflow-checks.test.mjs +98 -0
  290. package/plugins/solution-architect/skills/proposal/scripts/test/workflow-docs.test.mjs +25 -0
  291. package/plugins/solution-architect/skills/proposal/scripts/test/workflow-render.test.mjs +75 -0
  292. package/plugins/solution-architect/skills/proposal/scripts/test/workflow-stage.mjs +15 -0
  293. package/plugins/solution-architect/skills/proposal/scripts/test/workflow-view.test.mjs +78 -0
  294. package/plugins/solution-architect/skills/proposal/scripts/validate.mjs +4 -1
  295. package/plugins/solution-architect/workflows/review-links.js +61 -0
  296. package/plugins/solution-architect/skills/estimate/references/ai-multipliers.md +0 -101
  297. package/plugins/solution-architect/skills/estimate/scripts/lib/estimate-math.mjs +0 -89
  298. package/plugins/solution-architect/skills/estimate/scripts/lib/redact.mjs +0 -64
  299. package/plugins/solution-architect/skills/estimate/scripts/lib/rollup.mjs +0 -154
  300. package/plugins/solution-architect/skills/estimate/scripts/lib/scenario-schema.mjs +0 -39
  301. package/plugins/solution-architect/skills/estimate/scripts/test/estimate-math.test.mjs +0 -131
  302. package/plugins/solution-architect/skills/estimate/scripts/test/render.test.mjs +0 -251
  303. package/plugins/solution-architect/skills/estimate/scripts/test/xlsx-export.test.mjs +0 -254
  304. /package/plugins/solution-architect/skills/estimate/{references → classic/references}/slicing.md +0 -0
  305. /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/agentic-checks.mjs +0 -0
  306. /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/components.mjs +0 -0
  307. /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/md-tables.mjs +0 -0
  308. /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/scoring-checks.mjs +0 -0
  309. /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/measurements.jsonl +0 -0
  310. /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/zip.mjs +0 -0
  311. /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/validate.mjs +0 -0
  312. /package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/baselines.mjs +0 -0
  313. /package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/measurements.mjs +0 -0
  314. /package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/score-diff.mjs +0 -0
@@ -22,9 +22,47 @@
22
22
  800
23
23
  ]
24
24
  },
25
- "overheadPct": 0.35,
26
25
  "verificationPct": 0.12,
27
26
  "exposeRatesToClient": false,
27
+ "contextLevels": {
28
+ "codebaseMaturity": 1,
29
+ "stackFamiliarity": 1,
30
+ "specQuality": 2,
31
+ "compliance": 1,
32
+ "clientDecisions": 2
33
+ },
34
+ "contextProvenance": {
35
+ "codebaseMaturity": {
36
+ "level": 1,
37
+ "anchor": "Greenfield",
38
+ "cite": "ARCHITECTURE.md §1: whiteboard and phone, no existing system",
39
+ "source": "derived"
40
+ },
41
+ "stackFamiliarity": {
42
+ "level": 1,
43
+ "anchor": "Core stack, done before",
44
+ "cite": "interview",
45
+ "source": "stated"
46
+ },
47
+ "specQuality": {
48
+ "level": 2,
49
+ "anchor": "clear written brief",
50
+ "cite": "ARCHITECTURE.md §1-§8 plus brief.md, no signed-off acceptance criteria",
51
+ "source": "derived"
52
+ },
53
+ "compliance": {
54
+ "level": 1,
55
+ "anchor": "None",
56
+ "cite": "ARCHITECTURE.md §12: tracking page exposes delivery status only",
57
+ "source": "derived"
58
+ },
59
+ "clientDecisions": {
60
+ "level": 2,
61
+ "anchor": "two or three",
62
+ "cite": "brief.md: Dale decides, the owner signs",
63
+ "source": "derived"
64
+ }
65
+ },
28
66
  "components": [
29
67
  {
30
68
  "id": "dispatch",
@@ -237,44 +275,7 @@
237
275
  "text": "one depot, one timezone",
238
276
  "impactIfWrong": "recompute board-api at logic category, +30%"
239
277
  }
240
- ],
241
- "scenarios": [
242
- {
243
- "id": "3eng-classic",
244
- "aiAssisted": false,
245
- "toolingCostPerSeat": null,
246
- "team": [
247
- {
248
- "seniority": "mid",
249
- "rate": 45
250
- },
251
- {
252
- "seniority": "mid",
253
- "rate": 45
254
- },
255
- {
256
- "seniority": "junior",
257
- "rate": 30
258
- }
259
- ]
260
- },
261
- {
262
- "id": "2eng-agentic",
263
- "aiAssisted": true,
264
- "toolingCostPerSeat": 100,
265
- "team": [
266
- {
267
- "seniority": "senior",
268
- "rate": 60
269
- },
270
- {
271
- "seniority": "mid",
272
- "rate": 45
273
- }
274
- ]
275
- }
276
- ],
277
- "recommendedScenario": "2eng-agentic"
278
+ ]
278
279
  },
279
280
  "computed": {
280
281
  "tasks": {
@@ -305,21 +306,36 @@
305
306
  "low": 50,
306
307
  "high": 125,
307
308
  "scoreTotal": 11,
308
- "tier": "S"
309
+ "tier": "S",
310
+ "point": 1423.08,
311
+ "spread": 0.25,
312
+ "priceLow": 1067.31,
313
+ "priceHigh": 1778.85,
314
+ "flag": ""
309
315
  },
310
316
  "dispatch-board": {
311
317
  "hours": 266.67,
312
318
  "low": 170,
313
319
  "high": 410,
314
320
  "scoreTotal": 14,
315
- "tier": "M"
321
+ "tier": "M",
322
+ "point": 2541.67,
323
+ "spread": 0.35,
324
+ "priceLow": 1652.08,
325
+ "priceHigh": 3431.25,
326
+ "flag": ""
316
327
  },
317
328
  "driver-checkin": {
318
329
  "hours": 145,
319
330
  "low": 90,
320
331
  "high": 220,
321
- "scoreTotal": 12,
322
- "tier": "M"
332
+ "scoreTotal": 11.5,
333
+ "tier": "M",
334
+ "point": 1500,
335
+ "spread": 0.28,
336
+ "priceLow": 1080,
337
+ "priceHigh": 1920,
338
+ "flag": ""
323
339
  }
324
340
  },
325
341
  "components": {
@@ -328,79 +344,52 @@
328
344
  "driver": 145,
329
345
  "tracking": 79.17
330
346
  },
331
- "devHours": 490.83,
332
- "overheadHours": 171.79,
333
- "spreadBufferHours": 35.33,
334
- "riskBufferHours": 12,
335
- "scenarios": {
336
- "2eng-agentic": {
337
- "taskHours": {
338
- "board-api": 49.74,
339
- "board-ui": 111.86,
340
- "checkin-mobile": 70.21,
341
- "checkin-photos": 21.1,
342
- "tracking-page": 56.53
343
- },
344
- "hours": 465.07,
345
- "months": 1.85,
346
- "laborCost": 27129.05,
347
- "toolingCost": 369.1,
348
- "totalCost": 27498.15,
349
- "notes": [],
350
- "roadmap": [
351
- {
352
- "milestone": "M1 - Dispatch core",
353
- "features": [
354
- "dispatch-board",
355
- "driver-checkin"
356
- ],
357
- "startMonths": 0,
358
- "endMonths": 1.51
359
- },
360
- {
361
- "milestone": "M2 - Customer tracking",
362
- "features": [
363
- "customer-tracking"
364
- ],
365
- "startMonths": 1.51,
366
- "endMonths": 1.85
367
- }
368
- ]
347
+ "roadmap": [
348
+ {
349
+ "milestone": "M1 - Dispatch core",
350
+ "features": [
351
+ "dispatch-board",
352
+ "driver-checkin"
353
+ ],
354
+ "share": 0.84
369
355
  },
370
- "3eng-classic": {
371
- "taskHours": {
372
- "board-api": 110,
373
- "board-ui": 156.67,
374
- "checkin-mobile": 98.33,
375
- "checkin-photos": 46.67,
376
- "tracking-page": 79.17
377
- },
378
- "hours": 709.95,
379
- "months": 2.11,
380
- "laborCost": 35497.54,
381
- "toolingCost": 0,
382
- "totalCost": 35497.54,
383
- "notes": [],
384
- "roadmap": [
385
- {
386
- "milestone": "M1 - Dispatch core",
387
- "features": [
388
- "dispatch-board",
389
- "driver-checkin"
390
- ],
391
- "startMonths": 0,
392
- "endMonths": 1.77
393
- },
394
- {
395
- "milestone": "M2 - Customer tracking",
396
- "features": [
397
- "customer-tracking"
398
- ],
399
- "startMonths": 1.77,
400
- "endMonths": 2.11
401
- }
402
- ]
356
+ {
357
+ "milestone": "M2 - Customer tracking",
358
+ "features": [
359
+ "customer-tracking"
360
+ ],
361
+ "share": 0.16
403
362
  }
363
+ ],
364
+ "price": {
365
+ "featurePoints": 5464.74,
366
+ "contextMultiplier": 1.1,
367
+ "adjustedBase": 6011.22,
368
+ "overheads": {
369
+ "lines": {
370
+ "foundation": 0.12,
371
+ "discovery": 0.06,
372
+ "ux": 0.08,
373
+ "qa": 0.08,
374
+ "devops": 0.05,
375
+ "docs": 0.03,
376
+ "pm": 0.1,
377
+ "integration": 0.06
378
+ },
379
+ "totalPct": 0.5800000000000001,
380
+ "amount": 3486.51
381
+ },
382
+ "contingencyRate": 0.15,
383
+ "contingencyAmount": 1424.66,
384
+ "p50": 10922.38,
385
+ "sigma": 2090.84,
386
+ "p20": 9166.07,
387
+ "p80": 12678.69,
388
+ "p95": 14361.82,
389
+ "presentLow": 11000,
390
+ "presentHigh": 14500,
391
+ "singleNumber": 13000,
392
+ "impliedAccuracy": 0.19
404
393
  },
405
394
  "projectConfidence": "MED"
406
395
  }
@@ -1,41 +1,67 @@
1
- # Harborline Dispatch Portal — Estimation (internal)
1
+ # Harborline Dispatch Portal — Estimation
2
2
 
3
- Computed from `estimation-inputs.json` by the estimate skill. Internal document:
4
- rates, scenario comparison and the risk register never reach the client.
3
+ ## Summary
5
4
 
6
- ## Scenarios
5
+ | Feature | Tier | Range (h) | src |
6
+ | --- | --- | --- | --- |
7
+ | Dispatcher assigns jobs on a live board | M | 170–410 | stated |
8
+ | Drivers check in and out from their phone | M | 90–220 | stated |
9
+ | Customers see where their delivery is | S | 50–125 | proposed |
7
10
 
8
- | Scenario | Team | Hours | Months | Total cost |
9
- |---|---|---|---|---|
10
- | `2eng-agentic` | senior + mid, AI-assisted | 465.07 | 1.85 | $27,498.15 |
11
- | `3eng-classic` | mid + mid + junior | 709.95 | 2.11 | $35,497.54 |
11
+ ### Roadmap
12
12
 
13
- Recommended: `2eng-agentic`.
13
+ | Milestone | Features | Share |
14
+ | --- | --- | --- |
15
+ | M1 - Dispatch core | Dispatcher assigns jobs on a live board, Drivers check in and out from their phone | 84% |
16
+ | M2 - Customer tracking | Customers see where their delivery is | 16% |
14
17
 
15
- ## Milestones (2eng-agentic)
18
+ Bands are relative shares of total effort, not durations. This estimate
19
+ produces no timeline. Ordering: stated.
16
20
 
17
- | Milestone | Features | Start → end (months) |
18
- |---|---|---|
19
- | M1 - Dispatch core | dispatch-board, driver-checkin | 0 → 1.51 |
20
- | M2 - Customer tracking | customer-tracking | 1.51 → 1.85 |
21
+ ### Assumptions
21
22
 
22
- ## Exclusions
23
+ | Assumption | Impact if wrong |
24
+ | --- | --- |
25
+ | one depot, one timezone | recompute board-api at logic category, +30% |
26
+ | proof-of-delivery photos are kept for 12 months | longer retention adds storage cost, not build effort |
27
+ | the map provider for the tracking page is already chosen | recompute tracking-page at logic category, +20% |
28
+
29
+ ### Out of scope
23
30
 
24
31
  - Billing and invoicing integration — phase 2, the client keeps its current desk.
25
32
  - iOS support for the driver screen — company phones are Android.
26
33
  - Route optimisation or automatic job assignment — dispatchers assign by hand.
27
34
  - Multi-depot support — one depot in v1.
28
35
 
29
- ## Assumptions
36
+ ## Estimation detail
37
+
38
+ Technique: three-point PERT — detailed requirements and architecture available.
39
+
40
+ | Task | Category | O/M/P | E (h) | Confidence | Assumptions | src |
41
+ | --- | --- | --- | --- | --- | --- | --- |
42
+ | Job and assignment service | boilerplate | 70/105/170 | 110 | HIGH | one depot, one timezone | stated |
43
+ | Live dispatch board screen | logic | 100/150/240 | 156.67 | MED | desktop browser only | stated |
44
+ | Driver check-in screens | logic | 60/95/150 | 98.33 | MED | company-issued phones only | stated |
45
+ | Proof-of-delivery photo upload | boilerplate | 30/45/70 | 46.67 | HIGH | photos kept for 12 months | stated |
46
+ | Public delivery tracking page | logic | 50/75/125 | 79.17 | MED | map provider already chosen | proposed |
30
47
 
31
- - One depot, one timezone. If wrong: recompute `board-api` at logic category, +30%.
32
- - Proof-of-delivery photos are retained 12 months.
33
- - The map provider for the tracking page is already chosen.
48
+ ### Price
34
49
 
35
- ## Risk register (internal)
50
+ | Figure | Value |
51
+ | --- | --- |
52
+ | Presented range | $11,000 – $14,500 |
53
+ | If a single number is required | $13,000 |
54
+ | Contingency rate | 15% |
55
+ | Implied accuracy | 19% |
56
+
57
+ ### Risk register (internal)
36
58
 
37
59
  | Risk | Probability | Impact (hours) |
38
- |---|---|---|
60
+ | --- | --- | --- |
39
61
  | depot wifi blackspots delay driver rollout | 0.3 | 40 |
40
62
 
41
- Project confidence: MED.
63
+ ### Calibration
64
+
65
+ No delivery history was supplied, so the bands are the defaults;
66
+ recalibrate them against actuals roughly twice a year. Whatever AI leverage
67
+ the team has is priced into the bands already and stays as margin.
@@ -3,15 +3,83 @@
3
3
  "currency": "USD",
4
4
  "technique": "three-point-pert",
5
5
  "depth": "STANDARD",
6
- "calibration": { "S": [20, 60], "M": [60, 160], "L": [160, 400], "XL": [400, 800] },
7
- "overheadPct": 0.35,
6
+ "calibration": {
7
+ "S": [
8
+ 20,
9
+ 60
10
+ ],
11
+ "M": [
12
+ 60,
13
+ 160
14
+ ],
15
+ "L": [
16
+ 160,
17
+ 400
18
+ ],
19
+ "XL": [
20
+ 400,
21
+ 800
22
+ ]
23
+ },
8
24
  "verificationPct": 0.12,
9
25
  "exposeRatesToClient": false,
26
+ "contextLevels": {
27
+ "codebaseMaturity": 1,
28
+ "stackFamiliarity": 1,
29
+ "specQuality": 2,
30
+ "compliance": 2,
31
+ "clientDecisions": 3
32
+ },
33
+ "contextProvenance": {
34
+ "codebaseMaturity": {
35
+ "level": 1,
36
+ "anchor": "Greenfield",
37
+ "cite": "ARCHITECTURE.md §2: new portal reading a nightly export",
38
+ "source": "derived"
39
+ },
40
+ "stackFamiliarity": {
41
+ "level": 1,
42
+ "anchor": "Core stack, done before",
43
+ "cite": "interview",
44
+ "source": "stated"
45
+ },
46
+ "specQuality": {
47
+ "level": 2,
48
+ "anchor": "clear written brief",
49
+ "cite": "ARCHITECTURE.md §1-§8 plus brief.md, guardian access still open",
50
+ "source": "derived"
51
+ },
52
+ "compliance": {
53
+ "level": 2,
54
+ "anchor": "handles PII",
55
+ "cite": "ARCHITECTURE.md §2/§12: patient records, audited access, no named regulation",
56
+ "source": "derived"
57
+ },
58
+ "clientDecisions": {
59
+ "level": 3,
60
+ "anchor": "committee sign-off",
61
+ "cite": "brief.md: three partners sign off together",
62
+ "source": "derived"
63
+ }
64
+ },
10
65
  "components": [
11
- { "id": "portal", "name": "Patient Portal" },
12
- { "id": "records", "name": "Records Store" },
13
- { "id": "recall", "name": "Recall Reminders" },
14
- { "id": "insurance", "name": "Insurance Claims", "notEstimated": "phase 2, practice keeps its current claims desk" }
66
+ {
67
+ "id": "portal",
68
+ "name": "Patient Portal"
69
+ },
70
+ {
71
+ "id": "records",
72
+ "name": "Records Store"
73
+ },
74
+ {
75
+ "id": "recall",
76
+ "name": "Recall Reminders"
77
+ },
78
+ {
79
+ "id": "insurance",
80
+ "name": "Insurance Claims",
81
+ "notEstimated": "phase 2, practice keeps its current claims desk"
82
+ }
15
83
  ],
16
84
  "features": [
17
85
  {
@@ -21,17 +89,61 @@
21
89
  "component": "portal",
22
90
  "milestone": "M1 - Secure portal",
23
91
  "scores": {
24
- "tech": { "n": 3, "anchor": "Custom business logic, moderate algorithm complexity, multiple states", "cite": "identity checks plus consent states" },
25
- "size": { "n": 3, "anchor": "Medium feature with multiple components and backend logic", "cite": "sign-in screens plus access rules" },
26
- "deps": { "n": 2, "anchor": "One internal dependency (e.g. auth check)", "cite": "reads the practice staff directory" },
27
- "unc": { "n": 2, "anchor": "Minor ambiguities, can be resolved with one clarifying question", "cite": "guardian access rule to confirm" },
28
- "risk": { "n": 4, "anchor": "Payments, auth, data migrations, or PII — high business impact", "cite": "patient health records are protected data" }
92
+ "tech": {
93
+ "n": 3,
94
+ "anchor": "Custom business logic, moderate algorithm complexity, multiple states",
95
+ "cite": "identity checks plus consent states"
96
+ },
97
+ "size": {
98
+ "n": 3,
99
+ "anchor": "Medium feature with multiple components and backend logic",
100
+ "cite": "sign-in screens plus access rules"
101
+ },
102
+ "deps": {
103
+ "n": 2,
104
+ "anchor": "One internal dependency (e.g. auth check)",
105
+ "cite": "reads the practice staff directory"
106
+ },
107
+ "unc": {
108
+ "n": 2,
109
+ "anchor": "Minor ambiguities, can be resolved with one clarifying question",
110
+ "cite": "guardian access rule to confirm"
111
+ },
112
+ "risk": {
113
+ "n": 4,
114
+ "anchor": "Payments, auth, data migrations, or PII — high business impact",
115
+ "cite": "patient health records are protected data"
116
+ }
29
117
  },
30
118
  "scoreNote": "The sign-in that keeps each patient's records visible only to them.",
31
119
  "scoreProvenance": "stated",
32
120
  "tasks": [
33
- { "id": "login-identity", "name": "Patient sign-in and identity checks", "category": "boilerplate", "o": 40, "m": 60, "p": 100, "confidence": "HIGH", "assumptions": ["email and date of birth identify a patient"], "provenance": "stated" },
34
- { "id": "login-access-rules", "name": "Record access and audit rules", "category": "logic", "o": 55, "m": 88, "p": 150, "confidence": "MED", "assumptions": ["every record view is logged for seven years"], "provenance": "stated" }
121
+ {
122
+ "id": "login-identity",
123
+ "name": "Patient sign-in and identity checks",
124
+ "category": "boilerplate",
125
+ "o": 40,
126
+ "m": 60,
127
+ "p": 100,
128
+ "confidence": "HIGH",
129
+ "assumptions": [
130
+ "email and date of birth identify a patient"
131
+ ],
132
+ "provenance": "stated"
133
+ },
134
+ {
135
+ "id": "login-access-rules",
136
+ "name": "Record access and audit rules",
137
+ "category": "logic",
138
+ "o": 55,
139
+ "m": 88,
140
+ "p": 150,
141
+ "confidence": "MED",
142
+ "assumptions": [
143
+ "every record view is logged for seven years"
144
+ ],
145
+ "provenance": "stated"
146
+ }
35
147
  ]
36
148
  },
37
149
  {
@@ -41,16 +153,48 @@
41
153
  "component": "records",
42
154
  "milestone": "M1 - Secure portal",
43
155
  "scores": {
44
- "tech": { "n": 2, "anchor": "Minor customisation of standard patterns, simple state management", "cite": "read-only screens over existing data" },
45
- "size": { "n": 2, "anchor": "Small self-contained feature, simple form or display component", "cite": "two display screens" },
46
- "deps": { "n": 3, "anchor": "2–3 internal services or one third-party API", "cite": "reads the existing practice management export" },
47
- "unc": { "n": 2, "anchor": "Minor ambiguities, can be resolved with one clarifying question", "cite": "export refresh frequency to confirm" },
48
- "risk": { "n": 3, "anchor": "Moderate impact if broken, requires testing, affects multiple users", "cite": "a wrong record shown to a patient is a reportable incident" }
156
+ "tech": {
157
+ "n": 2,
158
+ "anchor": "Minor customisation of standard patterns, simple state management",
159
+ "cite": "read-only screens over existing data"
160
+ },
161
+ "size": {
162
+ "n": 2,
163
+ "anchor": "Small self-contained feature, simple form or display component",
164
+ "cite": "two display screens"
165
+ },
166
+ "deps": {
167
+ "n": 3,
168
+ "anchor": "2–3 internal services or one third-party API",
169
+ "cite": "reads the existing practice management export"
170
+ },
171
+ "unc": {
172
+ "n": 2,
173
+ "anchor": "Minor ambiguities, can be resolved with one clarifying question",
174
+ "cite": "export refresh frequency to confirm"
175
+ },
176
+ "risk": {
177
+ "n": 3,
178
+ "anchor": "Moderate impact if broken, requires testing, affects multiple users",
179
+ "cite": "a wrong record shown to a patient is a reportable incident"
180
+ }
49
181
  },
50
182
  "scoreNote": "The screens where a patient reads their own treatment history.",
51
183
  "scoreProvenance": "stated",
52
184
  "tasks": [
53
- { "id": "records-screens", "name": "Treatment history and billing screens", "category": "logic", "o": 42, "m": 64, "p": 105, "confidence": "MED", "assumptions": ["nightly export from the practice system"], "provenance": "stated" }
185
+ {
186
+ "id": "records-screens",
187
+ "name": "Treatment history and billing screens",
188
+ "category": "logic",
189
+ "o": 42,
190
+ "m": 64,
191
+ "p": 105,
192
+ "confidence": "MED",
193
+ "assumptions": [
194
+ "nightly export from the practice system"
195
+ ],
196
+ "provenance": "stated"
197
+ }
54
198
  ]
55
199
  },
56
200
  {
@@ -60,28 +204,62 @@
60
204
  "component": "recall",
61
205
  "milestone": "M2 - Recall reminders",
62
206
  "scores": {
63
- "tech": { "n": 2, "anchor": "Minor customisation of standard patterns, simple state management", "cite": "scheduled job plus message template" },
64
- "size": { "n": 2, "anchor": "Small self-contained feature, simple form or display component", "cite": "one job, two templates" },
65
- "deps": { "n": 3, "anchor": "2–3 internal services or one third-party API", "cite": "email and text message provider" },
66
- "unc": { "n": 2, "anchor": "Minor ambiguities, can be resolved with one clarifying question", "cite": "opt-out wording to confirm" },
67
- "risk": { "n": 2, "anchor": "Low stakes, easy rollback, minimal user impact", "cite": "a missed reminder is recoverable" }
207
+ "tech": {
208
+ "n": 2,
209
+ "anchor": "Minor customisation of standard patterns, simple state management",
210
+ "cite": "scheduled job plus message template"
211
+ },
212
+ "size": {
213
+ "n": 2,
214
+ "anchor": "Small self-contained feature, simple form or display component",
215
+ "cite": "one job, two templates"
216
+ },
217
+ "deps": {
218
+ "n": 3,
219
+ "anchor": "2–3 internal services or one third-party API",
220
+ "cite": "email and text message provider"
221
+ },
222
+ "unc": {
223
+ "n": 2,
224
+ "anchor": "Minor ambiguities, can be resolved with one clarifying question",
225
+ "cite": "opt-out wording to confirm"
226
+ },
227
+ "risk": {
228
+ "n": 2,
229
+ "anchor": "Low stakes, easy rollback, minimal user impact",
230
+ "cite": "a missed reminder is recoverable"
231
+ }
68
232
  },
69
233
  "scoreNote": "The automatic six-month reminder that brings patients back in.",
70
234
  "scoreProvenance": "proposed",
71
235
  "tasks": [
72
- { "id": "recall-jobs", "name": "Scheduled recall messages", "category": "logic", "o": 25, "m": 40, "p": 70, "confidence": "MED", "assumptions": ["messaging provider already chosen"], "provenance": "proposed" }
236
+ {
237
+ "id": "recall-jobs",
238
+ "name": "Scheduled recall messages",
239
+ "category": "logic",
240
+ "o": 25,
241
+ "m": 40,
242
+ "p": 70,
243
+ "confidence": "MED",
244
+ "assumptions": [
245
+ "messaging provider already chosen"
246
+ ],
247
+ "provenance": "proposed"
248
+ }
73
249
  ]
74
250
  }
75
251
  ],
76
252
  "risks": [
77
- { "name": "practice management export format is undocumented", "probability": 0.4, "impactHours": 32 }
253
+ {
254
+ "name": "practice management export format is undocumented",
255
+ "probability": 0.4,
256
+ "impactHours": 32
257
+ }
78
258
  ],
79
259
  "assumptions": [
80
- { "text": "nightly export from the practice system", "impactIfWrong": "recompute records-screens at logic category, +40%" }
81
- ],
82
- "scenarios": [
83
- { "id": "lean-2eng", "aiAssisted": true, "toolingCostPerSeat": 100, "team": [{ "seniority": "senior", "rate": 60 }, { "seniority": "mid", "rate": 45 }] },
84
- { "id": "full-4eng", "aiAssisted": false, "toolingCostPerSeat": null, "team": [{ "seniority": "senior", "rate": 60 }, { "seniority": "mid", "rate": 45 }, { "seniority": "mid", "rate": 45 }, { "seniority": "junior", "rate": 30 }] }
85
- ],
86
- "recommendedScenario": "lean-2eng"
260
+ {
261
+ "text": "nightly export from the practice system",
262
+ "impactIfWrong": "recompute records-screens at logic category, +40%"
263
+ }
264
+ ]
87
265
  }