@v11g/agents-rock 1.0.9 → 1.0.11

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 (347) hide show
  1. package/README.md +3 -1
  2. package/package.json +2 -2
  3. package/plugins/business-analyst/.claude-plugin/plugin.json +2 -2
  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/evals/draft-scope-rich/case.yaml +4 -0
  20. package/plugins/business-analyst/evals/draft-scope-rich/fixture.sh +5 -0
  21. package/plugins/business-analyst/evals/draft-scope-rich/graders/conflict-question.md +11 -0
  22. package/plugins/business-analyst/evals/draft-scope-rich/graders/keep-and-exclude.md +14 -0
  23. package/plugins/business-analyst/evals/draft-scope-rich/graders/noise-and-shape.md +13 -0
  24. package/plugins/business-analyst/evals/draft-scope-rich/graders/problem-not-solution.md +13 -0
  25. package/plugins/business-analyst/evals/draft-scope-rich/graders/share-kept.md +11 -0
  26. package/plugins/business-analyst/evals/draft-scope-rich/graders/skill-fired.md +7 -0
  27. package/plugins/business-analyst/evals/draft-scope-rich/graders/vague-word.md +13 -0
  28. package/plugins/business-analyst/evals/draft-scope-rich/inputs/C1.txt +10 -0
  29. package/plugins/business-analyst/evals/draft-scope-rich/inputs/E1.txt +5 -0
  30. package/plugins/business-analyst/evals/draft-scope-rich/inputs/E2.txt +5 -0
  31. package/plugins/business-analyst/evals/draft-scope-rich/inputs/E3.txt +5 -0
  32. package/plugins/business-analyst/evals/draft-scope-rich/prompt.md +9 -0
  33. package/plugins/business-analyst/evals/draft-scope-thin/case.yaml +4 -0
  34. package/plugins/business-analyst/evals/draft-scope-thin/fixture.sh +4 -0
  35. package/plugins/business-analyst/evals/draft-scope-thin/graders/no-invention.md +18 -0
  36. package/plugins/business-analyst/evals/draft-scope-thin/graders/skill-fired.md +7 -0
  37. package/plugins/business-analyst/evals/draft-scope-thin/inputs/E1.txt +5 -0
  38. package/plugins/business-analyst/evals/draft-scope-thin/prompt.md +8 -0
  39. package/plugins/business-analyst/skills/business-analyst/README.md +8 -0
  40. package/plugins/business-analyst/skills/business-analyst/SKILL.md +47 -16
  41. package/plugins/business-analyst/skills/business-analyst/assets/review-page.html +68 -0
  42. package/plugins/business-analyst/skills/business-analyst/evals/evals.json +1 -1
  43. package/plugins/business-analyst/skills/business-analyst/references/frameworks.md +3 -2
  44. package/plugins/business-analyst/skills/business-analyst/references/interview.md +156 -8
  45. package/plugins/business-analyst/skills/business-analyst/references/review.md +18 -4
  46. package/plugins/business-analyst/skills/business-analyst/references/writing.md +49 -8
  47. package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/review_data.cpython-312.pyc +0 -0
  48. package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/review_layout.cpython-312.pyc +0 -0
  49. package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/review_page.cpython-312.pyc +0 -0
  50. package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/scope_checks.cpython-312.pyc +0 -0
  51. package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/scope_render.cpython-312.pyc +0 -0
  52. package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/validate.cpython-312.pyc +0 -0
  53. package/plugins/business-analyst/skills/business-analyst/scripts/lib/checks.mjs +12 -6
  54. package/plugins/business-analyst/skills/business-analyst/scripts/lib/review-data.mjs +66 -0
  55. package/plugins/business-analyst/skills/business-analyst/scripts/lib/review-layout.mjs +53 -0
  56. package/plugins/business-analyst/skills/business-analyst/scripts/lib/review-page.mjs +78 -0
  57. package/plugins/business-analyst/skills/business-analyst/scripts/lib/scope-checks.mjs +73 -0
  58. package/plugins/business-analyst/skills/business-analyst/scripts/lib/scope-md.mjs +53 -0
  59. package/plugins/business-analyst/skills/business-analyst/scripts/lib/scope-render.mjs +72 -0
  60. package/plugins/business-analyst/skills/business-analyst/scripts/lib/scope-rules.mjs +90 -0
  61. package/plugins/business-analyst/skills/business-analyst/scripts/review.mjs +48 -0
  62. package/plugins/business-analyst/skills/business-analyst/scripts/review.py +60 -0
  63. package/plugins/business-analyst/skills/business-analyst/scripts/review_data.py +81 -0
  64. package/plugins/business-analyst/skills/business-analyst/scripts/review_layout.py +50 -0
  65. package/plugins/business-analyst/skills/business-analyst/scripts/review_page.py +115 -0
  66. package/plugins/business-analyst/skills/business-analyst/scripts/scope.mjs +24 -0
  67. package/plugins/business-analyst/skills/business-analyst/scripts/scope.py +35 -0
  68. package/plugins/business-analyst/skills/business-analyst/scripts/scope_checks.py +168 -0
  69. package/plugins/business-analyst/skills/business-analyst/scripts/scope_render.py +140 -0
  70. package/plugins/business-analyst/skills/business-analyst/scripts/test/checks.test.mjs +27 -0
  71. package/plugins/business-analyst/skills/business-analyst/scripts/test/fixtures/requirements-workflow-pass.json +78 -0
  72. package/plugins/business-analyst/skills/business-analyst/scripts/test/fixtures/requirements-workflow-pass.md +136 -0
  73. package/plugins/business-analyst/skills/business-analyst/scripts/test/python-parity.test.mjs +88 -0
  74. package/plugins/business-analyst/skills/business-analyst/scripts/test/quality-gates.test.mjs +26 -0
  75. package/plugins/business-analyst/skills/business-analyst/scripts/test/review-browser.test.mjs +106 -0
  76. package/plugins/business-analyst/skills/business-analyst/scripts/test/review-fixture.mjs +32 -0
  77. package/plugins/business-analyst/skills/business-analyst/scripts/test/review-page.test.mjs +340 -0
  78. package/plugins/business-analyst/skills/business-analyst/scripts/test/review-parity.test.mjs +79 -0
  79. package/plugins/business-analyst/skills/business-analyst/scripts/test/scope-cases.mjs +58 -0
  80. package/plugins/business-analyst/skills/business-analyst/scripts/test/scope-checks.test.mjs +31 -0
  81. package/plugins/business-analyst/skills/business-analyst/scripts/test/scope-md.test.mjs +140 -0
  82. package/plugins/business-analyst/skills/business-analyst/scripts/validate.mjs +1 -1
  83. package/plugins/business-analyst/skills/business-analyst/scripts/validate.py +17 -8
  84. package/plugins/business-analyst/skills/draft-scope/SKILL.md +46 -0
  85. package/plugins/business-analyst/skills/draft-scope/references/credits.md +12 -0
  86. package/plugins/business-analyst/skills/draft-scope/references/draft-schema.md +44 -0
  87. package/plugins/business-analyst/skills/draft-scope/references/rules.md +24 -0
  88. package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/docx_body.cpython-312.pyc +0 -0
  89. package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/docx_flow.cpython-312.pyc +0 -0
  90. package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/docx_package.cpython-312.pyc +0 -0
  91. package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/docx_xml.cpython-312.pyc +0 -0
  92. package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/draft_quotes.cpython-312.pyc +0 -0
  93. package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/draft_rules.cpython-312.pyc +0 -0
  94. package/plugins/business-analyst/skills/draft-scope/scripts/__pycache__/draft_schema.cpython-312.pyc +0 -0
  95. package/plugins/business-analyst/skills/draft-scope/scripts/build_docx.py +36 -0
  96. package/plugins/business-analyst/skills/draft-scope/scripts/check.py +53 -0
  97. package/plugins/business-analyst/skills/draft-scope/scripts/docx_body.py +58 -0
  98. package/plugins/business-analyst/skills/draft-scope/scripts/docx_flow.py +52 -0
  99. package/plugins/business-analyst/skills/draft-scope/scripts/docx_package.py +62 -0
  100. package/plugins/business-analyst/skills/draft-scope/scripts/docx_xml.py +44 -0
  101. package/plugins/business-analyst/skills/draft-scope/scripts/draft_quotes.py +49 -0
  102. package/plugins/business-analyst/skills/draft-scope/scripts/draft_rules.py +106 -0
  103. package/plugins/business-analyst/skills/draft-scope/scripts/draft_schema.py +87 -0
  104. package/plugins/business-analyst/skills/draft-scope/scripts/test/build-docx.test.mjs +76 -0
  105. package/plugins/business-analyst/skills/draft-scope/scripts/test/check-rules.test.mjs +131 -0
  106. package/plugins/business-analyst/skills/draft-scope/scripts/test/check-shape.test.mjs +70 -0
  107. package/plugins/business-analyst/skills/draft-scope/scripts/test/fixtures/draft-pass.json +40 -0
  108. package/plugins/business-analyst/skills/draft-scope/scripts/test/fixtures/sources/C1.txt +7 -0
  109. package/plugins/business-analyst/skills/draft-scope/scripts/test/fixtures/sources/E1.txt +5 -0
  110. package/plugins/business-analyst/skills/draft-scope/scripts/test/gates.test.mjs +39 -0
  111. package/plugins/business-analyst/skills/draft-scope/scripts/test/helpers.mjs +30 -0
  112. package/plugins/business-analyst/skills/draft-scope/scripts/test/skill-files.test.mjs +59 -0
  113. package/plugins/business-analyst/skills/draft-scope/steps/assumptions.md +24 -0
  114. package/plugins/business-analyst/skills/draft-scope/steps/check.md +24 -0
  115. package/plugins/business-analyst/skills/draft-scope/steps/discover.md +53 -0
  116. package/plugins/business-analyst/skills/draft-scope/steps/draft.md +64 -0
  117. package/plugins/solution-architect/.claude-plugin/plugin.json +1 -1
  118. package/plugins/solution-architect/evals/proposal-workflow/case.yaml +6 -0
  119. package/plugins/solution-architect/evals/proposal-workflow/fixture.sh +6 -0
  120. package/plugins/solution-architect/evals/proposal-workflow/graders/inputs-written.md +23 -0
  121. package/plugins/solution-architect/evals/proposal-workflow/graders/no-proposal-md.md +7 -0
  122. package/plugins/solution-architect/evals/proposal-workflow/graders/skill-fired.md +7 -0
  123. package/plugins/solution-architect/evals/proposal-workflow/graders/validate-then-render.md +16 -0
  124. package/plugins/solution-architect/evals/proposal-workflow/prompt.md +10 -0
  125. package/plugins/solution-architect/evals/workflow-gate-no-architecture/case.yaml +4 -0
  126. package/plugins/solution-architect/evals/workflow-gate-no-architecture/fixture.sh +6 -0
  127. package/plugins/solution-architect/evals/workflow-gate-no-architecture/graders/no-classic-fallback.md +10 -0
  128. package/plugins/solution-architect/evals/workflow-gate-no-architecture/graders/nothing-written.md +7 -0
  129. package/plugins/solution-architect/evals/workflow-gate-no-architecture/graders/skill-fired.md +7 -0
  130. package/plugins/solution-architect/evals/workflow-gate-no-architecture/graders/stops-at-gate.md +11 -0
  131. package/plugins/solution-architect/evals/workflow-gate-no-architecture/prompt.md +7 -0
  132. package/plugins/solution-architect/evals/workflow-happy-path/case.yaml +4 -0
  133. package/plugins/solution-architect/evals/workflow-happy-path/fixture.sh +6 -0
  134. package/plugins/solution-architect/evals/workflow-happy-path/graders/no-estimation-md.md +7 -0
  135. package/plugins/solution-architect/evals/workflow-happy-path/graders/pages-or-stop.md +16 -0
  136. package/plugins/solution-architect/evals/workflow-happy-path/graders/routed-to-workflow.md +12 -0
  137. package/plugins/solution-architect/evals/workflow-happy-path/graders/skill-fired.md +7 -0
  138. package/plugins/solution-architect/evals/workflow-happy-path/graders/three-questions-max.md +14 -0
  139. package/plugins/solution-architect/evals/workflow-happy-path/graders/workflow-or-exact-stop.md +15 -0
  140. package/plugins/solution-architect/evals/workflow-happy-path/prompt.md +9 -0
  141. package/plugins/solution-architect/skills/analyze-requirements/SKILL.md +8 -7
  142. package/plugins/solution-architect/skills/analyze-requirements/assets/section-help.json +5 -5
  143. package/plugins/solution-architect/skills/analyze-requirements/assets/viewer-template.html +26 -4
  144. package/plugins/solution-architect/skills/analyze-requirements/evals/evals.json +50 -6
  145. package/plugins/solution-architect/skills/analyze-requirements/evals/fixtures/ba-package-citations/requirements.json +31 -0
  146. package/plugins/solution-architect/skills/analyze-requirements/evals/fixtures/ba-package-citations/requirements.md +17 -0
  147. package/plugins/solution-architect/skills/analyze-requirements/evals/fixtures/transcript-citations/C1-kickoff-call.txt +16 -0
  148. package/plugins/solution-architect/skills/analyze-requirements/evals/fixtures/transcript-citations/E1-intro-email.md +9 -0
  149. package/plugins/solution-architect/skills/analyze-requirements/references/extract.md +108 -0
  150. package/plugins/solution-architect/skills/analyze-requirements/references/interview.md +39 -5
  151. package/plugins/solution-architect/skills/analyze-requirements/references/project-types.md +1 -1
  152. package/plugins/solution-architect/skills/analyze-requirements/references/quality-goals.md +84 -0
  153. package/plugins/solution-architect/skills/analyze-requirements/references/research.md +1 -1
  154. package/plugins/solution-architect/skills/analyze-requirements/references/rewriting.md +7 -2
  155. package/plugins/solution-architect/skills/analyze-requirements/references/viewer.md +10 -6
  156. package/plugins/solution-architect/skills/analyze-requirements/references/writing.md +45 -3
  157. package/plugins/solution-architect/skills/analyze-requirements/scripts/ba-facts.mjs +32 -0
  158. package/plugins/solution-architect/skills/analyze-requirements/scripts/check-quotes.mjs +39 -0
  159. package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/ba-package.mjs +75 -0
  160. package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/doc-links.mjs +19 -7
  161. package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/doc-routes.mjs +1 -1
  162. package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/inputs.mjs +42 -11
  163. package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/md-render.mjs +15 -4
  164. package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/section-help.mjs +1 -1
  165. package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/strategy-sections.mjs +30 -0
  166. package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/validate-provenance.mjs +14 -2
  167. package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/validate-quotes.mjs +55 -0
  168. package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/validate-strategy.mjs +65 -0
  169. package/plugins/solution-architect/skills/analyze-requirements/scripts/render.mjs +18 -5
  170. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/ba-facts-cli.test.mjs +55 -0
  171. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/ba-package-cli.test.mjs +101 -0
  172. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/ba-package.test.mjs +115 -0
  173. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/browser.test.mjs +77 -2
  174. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/check-quotes-cli.test.mjs +49 -0
  175. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/doc-links.test.mjs +49 -4
  176. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/extract-workflow.test.mjs +69 -0
  177. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/inputs.test.mjs +14 -0
  178. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/md-render.test.mjs +19 -5
  179. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/record-cli.test.mjs +1 -1
  180. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/render.test.mjs +69 -2
  181. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/rewriting.test.mjs +1 -1
  182. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/section-help.test.mjs +6 -0
  183. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/validate-provenance.test.mjs +19 -0
  184. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/validate-quotes-cli.test.mjs +58 -0
  185. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/validate-quotes.test.mjs +81 -0
  186. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/validate-strategy-cli.test.mjs +32 -0
  187. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/validate-strategy.test.mjs +118 -0
  188. package/plugins/solution-architect/skills/analyze-requirements/scripts/validate.mjs +17 -6
  189. package/plugins/solution-architect/skills/analyze-requirements/workflows/extract.js +51 -0
  190. package/plugins/solution-architect/skills/estimate/README.md +18 -3
  191. package/plugins/solution-architect/skills/estimate/SKILL.md +18 -75
  192. package/plugins/solution-architect/skills/estimate/classic/FLOW.md +77 -0
  193. package/plugins/solution-architect/skills/estimate/classic/assets/estimate-template.html +1337 -0
  194. package/plugins/solution-architect/skills/estimate/{references → classic/references}/task-shapes.md +1 -1
  195. package/plugins/solution-architect/skills/estimate/{references → classic/references}/writing.md +2 -2
  196. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/compute.mjs +1 -1
  197. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/checks.mjs +1 -1
  198. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/roadmap.mjs +1 -1
  199. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/rollup.mjs +5 -5
  200. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/schema.mjs +4 -26
  201. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/score-csv.mjs +2 -2
  202. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/score-html.mjs +2 -2
  203. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/render.mjs +8 -7
  204. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/score-review.mjs +3 -3
  205. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/baselines.test.mjs +3 -3
  206. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/browser-agentic.test.mjs +2 -2
  207. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/browser.test.mjs +2 -2
  208. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/compute.test.mjs +1 -1
  209. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/e2e.test.mjs +6 -6
  210. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/estimate-math.test.mjs +3 -3
  211. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/measurements.test.mjs +1 -1
  212. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/pricing.test.mjs +1 -1
  213. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/project-price.test.mjs +1 -1
  214. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/quality-gates.test.mjs +7 -1
  215. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/references.test.mjs +6 -6
  216. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/render.test.mjs +3 -3
  217. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/schema.test.mjs +1 -1
  218. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/score-review.test.mjs +6 -6
  219. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/scoring.test.mjs +1 -1
  220. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/url-state.test.mjs +2 -2
  221. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/validate.test.mjs +1 -1
  222. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/xlsx-export.test.mjs +3 -3
  223. package/plugins/solution-architect/skills/estimate/classic/scripts/test/zip-store.test.mjs +26 -0
  224. package/plugins/solution-architect/skills/estimate/evals/evals.json +37 -2
  225. package/plugins/solution-architect/skills/estimate/evals/fixtures/workflow-sin-kowa-mini/ARCHITECTURE.md +28 -0
  226. package/plugins/solution-architect/skills/estimate/evals/fixtures/workflow-sin-kowa-mini/requirements.json +79 -0
  227. package/plugins/solution-architect/skills/estimate/evals/fixtures/workflow-sin-kowa-mini/requirements.md +141 -0
  228. package/plugins/solution-architect/skills/estimate/shared/assets/xlsx-export.js +336 -0
  229. package/plugins/solution-architect/skills/estimate/shared/lib/agentic-task-schema.mjs +24 -0
  230. package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/context-schema.mjs +2 -2
  231. package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/inline.mjs +8 -0
  232. package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/scoring-schema.mjs +1 -1
  233. package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/scoring.mjs +1 -1
  234. package/plugins/solution-architect/skills/estimate/shared/lib/zip.mjs +60 -0
  235. package/plugins/solution-architect/skills/estimate/workflow-based/FLOW.md +91 -0
  236. package/plugins/solution-architect/skills/estimate/workflow-based/assets/estimate-components.html +994 -0
  237. package/plugins/solution-architect/skills/estimate/workflow-based/assets/estimate-template.html +440 -0
  238. package/plugins/solution-architect/skills/estimate/workflow-based/assets/estimator-system.xlsx +0 -0
  239. package/plugins/solution-architect/skills/estimate/workflow-based/assets/score-review.html +838 -0
  240. package/plugins/solution-architect/skills/estimate/workflow-based/references/hidden-work-by-type.md +429 -0
  241. package/plugins/solution-architect/skills/estimate/workflow-based/references/linking.md +59 -0
  242. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/build-components-template.mjs +80 -0
  243. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/build-template.mjs +60 -0
  244. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/build-workflow-template.mjs +51 -0
  245. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/build-xlsx-template.py +144 -0
  246. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/compute.mjs +32 -0
  247. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/page-html.mjs +44 -0
  248. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/page-view.mjs +71 -0
  249. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/pair-findings.mjs +19 -0
  250. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/requirements.mjs +33 -0
  251. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/rollup.mjs +66 -0
  252. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/schema-components.mjs +69 -0
  253. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/schema.mjs +70 -0
  254. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/score-diff.mjs +54 -0
  255. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/score-html.mjs +52 -0
  256. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/xlsx-rows.mjs +51 -0
  257. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/render.mjs +42 -0
  258. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/score-review.mjs +46 -0
  259. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/template/arch-link.js +9 -0
  260. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/template/click.js +28 -0
  261. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/template/prelude.js +4 -0
  262. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/template/view.js +63 -0
  263. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/browser.test.mjs +127 -0
  264. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/build-pages.test.mjs +43 -0
  265. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/build-template.test.mjs +18 -0
  266. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/cli.test.mjs +48 -0
  267. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/estimator-system.test.mjs +66 -0
  268. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/fixtures/ARCHITECTURE-mini.md +31 -0
  269. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/fixtures/feedback.json +19 -0
  270. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/fixtures/inputs-pass.json +80 -0
  271. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/fixtures/measurements.jsonl +0 -0
  272. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/fixtures/requirements.json +79 -0
  273. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/page-view.test.mjs +54 -0
  274. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/pages-browser.test.mjs +209 -0
  275. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/quality-gates.test.mjs +25 -0
  276. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/render.test.mjs +54 -0
  277. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/requirements.test.mjs +33 -0
  278. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/rollup.test.mjs +80 -0
  279. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/schema.test.mjs +61 -0
  280. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/score-review.test.mjs +108 -0
  281. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/stage.mjs +32 -0
  282. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/workflow-script.test.mjs +24 -0
  283. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/xlsx-rows.test.mjs +58 -0
  284. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/validate.mjs +19 -0
  285. package/plugins/solution-architect/skills/proposal/README.md +13 -0
  286. package/plugins/solution-architect/skills/proposal/SKILL.md +8 -0
  287. package/plugins/solution-architect/skills/proposal/assets/proposal-workflow.html +143 -0
  288. package/plugins/solution-architect/skills/proposal/evals/fixtures/workflow-sin-kowa-mini/ARCHITECTURE.md +31 -0
  289. package/plugins/solution-architect/skills/proposal/evals/fixtures/workflow-sin-kowa-mini/estimation-inputs.json +468 -0
  290. package/plugins/solution-architect/skills/proposal/evals/fixtures/workflow-sin-kowa-mini/estimation.json +773 -0
  291. package/plugins/solution-architect/skills/proposal/evals/fixtures/workflow-sin-kowa-mini/measurements.jsonl +0 -0
  292. package/plugins/solution-architect/skills/proposal/evals/fixtures/workflow-sin-kowa-mini/requirements.json +79 -0
  293. package/plugins/solution-architect/skills/proposal/references/review.md +11 -0
  294. package/plugins/solution-architect/skills/proposal/references/workflow.md +88 -0
  295. package/plugins/solution-architect/skills/proposal/scripts/lib/docx-body.mjs +42 -0
  296. package/plugins/solution-architect/skills/proposal/scripts/lib/docx-package.mjs +56 -0
  297. package/plugins/solution-architect/skills/proposal/scripts/lib/docx-xml.mjs +44 -0
  298. package/plugins/solution-architect/skills/proposal/scripts/lib/workflow-checks.mjs +71 -0
  299. package/plugins/solution-architect/skills/proposal/scripts/lib/workflow-cli.mjs +46 -0
  300. package/plugins/solution-architect/skills/proposal/scripts/lib/workflow-html.mjs +39 -0
  301. package/plugins/solution-architect/skills/proposal/scripts/lib/workflow-lead.mjs +45 -0
  302. package/plugins/solution-architect/skills/proposal/scripts/lib/workflow-page.mjs +30 -0
  303. package/plugins/solution-architect/skills/proposal/scripts/lib/workflow-view.mjs +80 -0
  304. package/plugins/solution-architect/skills/proposal/scripts/render.mjs +5 -1
  305. package/plugins/solution-architect/skills/proposal/scripts/test/docx.test.mjs +68 -0
  306. package/plugins/solution-architect/skills/proposal/scripts/test/e2e.test.mjs +2 -2
  307. package/plugins/solution-architect/skills/proposal/scripts/test/evals-fixtures.test.mjs +9 -2
  308. package/plugins/solution-architect/skills/proposal/scripts/test/fixtures/proposal-inputs-pass.json +17 -0
  309. package/plugins/solution-architect/skills/proposal/scripts/test/render.test.mjs +2 -2
  310. package/plugins/solution-architect/skills/proposal/scripts/test/validate.test.mjs +2 -2
  311. package/plugins/solution-architect/skills/proposal/scripts/test/workflow-browser.test.mjs +96 -0
  312. package/plugins/solution-architect/skills/proposal/scripts/test/workflow-checks.test.mjs +98 -0
  313. package/plugins/solution-architect/skills/proposal/scripts/test/workflow-docs.test.mjs +25 -0
  314. package/plugins/solution-architect/skills/proposal/scripts/test/workflow-render.test.mjs +75 -0
  315. package/plugins/solution-architect/skills/proposal/scripts/test/workflow-stage.mjs +15 -0
  316. package/plugins/solution-architect/skills/proposal/scripts/test/workflow-view.test.mjs +78 -0
  317. package/plugins/solution-architect/skills/proposal/scripts/validate.mjs +4 -1
  318. package/plugins/solution-architect/workflows/review-links.js +61 -0
  319. package/plugins/solution-architect/skills/estimate/assets/estimate-template.html +0 -1677
  320. /package/plugins/solution-architect/skills/estimate/{assets → classic/assets}/estimate-template-agentic.html +0 -0
  321. /package/plugins/solution-architect/skills/estimate/{assets → classic/assets}/scores-review-template.html +0 -0
  322. /package/plugins/solution-architect/skills/estimate/{references → classic/references}/agentic-estimation.md +0 -0
  323. /package/plugins/solution-architect/skills/estimate/{references → classic/references}/ai-multipliers.md +0 -0
  324. /package/plugins/solution-architect/skills/estimate/{references → classic/references}/interview.md +0 -0
  325. /package/plugins/solution-architect/skills/estimate/{references → classic/references}/scoring-guide.md +0 -0
  326. /package/plugins/solution-architect/skills/estimate/{references → classic/references}/slicing.md +0 -0
  327. /package/plugins/solution-architect/skills/estimate/{references → classic/references}/techniques.md +0 -0
  328. /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/agentic-checks.mjs +0 -0
  329. /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/components.mjs +0 -0
  330. /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/md-tables.mjs +0 -0
  331. /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/redact.mjs +0 -0
  332. /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/scoring-checks.mjs +0 -0
  333. /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/agentic-estimation-fail.md +0 -0
  334. /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/agentic-estimation-pass.md +0 -0
  335. /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/agentic-inputs.json +0 -0
  336. /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/booking-inputs.json +0 -0
  337. /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/estimation-fail.md +0 -0
  338. /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/estimation-pass.md +0 -0
  339. /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/measurements.jsonl +0 -0
  340. /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/zip.mjs +0 -0
  341. /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/validate.mjs +0 -0
  342. /package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/baselines.mjs +0 -0
  343. /package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/estimate-math.mjs +0 -0
  344. /package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/measurements.mjs +0 -0
  345. /package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/pricing.mjs +0 -0
  346. /package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/project-price.mjs +0 -0
  347. /package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/score-diff.mjs +0 -0
@@ -0,0 +1,143 @@
1
+ <!DOCTYPE html>
2
+ <html lang="en">
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1">
6
+ <title><!-- slot:TITLE --></title>
7
+ <style>
8
+ <!-- slot:FONTS -->
9
+ :root {
10
+ --ink: #1a1d21; --muted: #5c6470; --line: #d9dde3;
11
+ --accent: #0f5c5a; --bg: #ffffff; --wash: #f6f7f9;
12
+ }
13
+ * { box-sizing: border-box; }
14
+ body {
15
+ margin: 0; background: var(--bg); color: var(--ink);
16
+ font: 16px/1.65 "IBM Plex Sans", system-ui, sans-serif;
17
+ }
18
+ nav {
19
+ position: fixed; top: 0; left: 0; bottom: 0; width: 230px;
20
+ padding: 2.5rem 1.5rem; border-right: 1px solid var(--line);
21
+ background: var(--wash); overflow-y: auto;
22
+ }
23
+ nav a {
24
+ display: block; color: var(--muted); text-decoration: none;
25
+ font-size: .85rem; padding: .3rem 0;
26
+ }
27
+ nav a:hover { color: var(--accent); }
28
+ main { max-width: 52rem; margin: 0 auto; padding: 3rem 2rem 5rem; }
29
+ @media (min-width: 980px) { main { margin-left: 270px; } }
30
+ @media (max-width: 979px) { nav { display: none; } }
31
+ .tools { display: flex; gap: .5rem; justify-content: flex-end; margin-bottom: 1rem; }
32
+ .tools button {
33
+ font: inherit; font-size: .85rem; color: var(--ink); background: var(--wash);
34
+ border: 1px solid var(--line); border-radius: .3rem; padding: .35rem .8rem; cursor: pointer;
35
+ }
36
+ .tools button:hover { border-color: var(--accent); color: var(--accent); }
37
+ h1 { font-size: 1.9rem; line-height: 1.25; letter-spacing: -.01em; margin: 0 0 .4rem; }
38
+ .byline { color: var(--muted); margin: 0 0 1.6rem; }
39
+ h2 {
40
+ font-size: 1.25rem; margin-top: 2.6rem; padding-top: 1.2rem;
41
+ border-top: 1px solid var(--line); color: var(--accent);
42
+ }
43
+ h2 .sysno { color: var(--muted); font-weight: 500; }
44
+ h3 {
45
+ font-size: .85rem; text-transform: uppercase; letter-spacing: .07em;
46
+ color: var(--muted); font-weight: 600; margin: 1.6rem 0 .3rem;
47
+ }
48
+ p { max-width: 68ch; }
49
+ table { border-collapse: collapse; width: 100%; margin: 1rem 0; }
50
+ th, td { text-align: left; padding: .5rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
51
+ th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
52
+ td:first-child { font-weight: 600; width: 34%; }
53
+ .flow-name { font-size: .85rem; font-weight: 600; color: var(--muted); margin: 1.2rem 0 .3rem; }
54
+ .diagram-shell { margin: 0 0 1rem; padding: 1rem; background: var(--wash); border-radius: 8px; overflow-x: auto; }
55
+ .mermaid-canvas { white-space: pre; font-size: .8rem; color: var(--muted); }
56
+ .mermaid-canvas svg { max-width: 100%; height: auto; }
57
+ .price { display: flex; flex-wrap: wrap; gap: 1rem; margin: .8rem 0 1rem; }
58
+ .price > div { flex: 1 1 14rem; background: var(--wash); border: 1px solid var(--line); border-radius: .3rem; padding: .8rem 1rem; }
59
+ .price span { display: block; font-size: .8rem; color: var(--muted); }
60
+ .price b { display: block; font-size: 1.5rem; font-weight: 600; margin: .15rem 0; font-variant-numeric: tabular-nums; }
61
+ @media print {
62
+ nav, .tools { display: none; }
63
+ main { margin: 0 auto; padding: 0; max-width: none; }
64
+ section.system { break-before: page; }
65
+ h2, h3, .flow-name { break-after: avoid; }
66
+ table, .diagram-shell, .price { break-inside: avoid; }
67
+ @page { size: A4; margin: 22mm 18mm; }
68
+ }
69
+ </style>
70
+ </head>
71
+ <body>
72
+ <nav aria-label="Sections">
73
+ <!-- slot:NAV -->
74
+ </nav>
75
+ <main>
76
+ <div class="tools"><button id="pdf" type="button">Download PDF</button><button id="docx" type="button">Download DOCX</button></div>
77
+ <!-- slot:CONTENT -->
78
+ </main>
79
+ <script type="application/json" id="proposal-data"><!-- slot:DATA --></script>
80
+ <script>
81
+ <!-- slot:MERMAID_BUNDLE -->
82
+ </script>
83
+ <script type="module">
84
+ // A module, so the inlined writer's names stay out of the page's global scope.
85
+ <!-- slot:DOCX -->
86
+ const PROPOSAL = JSON.parse(document.getElementById('proposal-data').textContent);
87
+ // Plain SVG text labels: a canvas refuses to export a drawing with HTML labels.
88
+ // No error picture: a diagram that fails stays empty and shows its steps instead.
89
+ mermaid.initialize({ startOnLoad: false, theme: 'neutral', htmlLabels: false, flowchart: { htmlLabels: false }, fontFamily: '"IBM Plex Sans", sans-serif', suppressErrorRendering: true });
90
+ const drawn = mermaid.run({ querySelector: '.mermaid-canvas' }).catch(() => null).then(() => {
91
+ const flows = PROPOSAL.systems.flatMap((s) => s.flows);
92
+ document.querySelectorAll('.mermaid-canvas').forEach((c, i) => { if (!c.querySelector('svg')) c.textContent = flows[i].steps; });
93
+ });
94
+
95
+ async function svgPng(svg) {
96
+ const { width, height } = svg.getBoundingClientRect();
97
+ const copy = svg.cloneNode(true);
98
+ copy.setAttribute('width', width);
99
+ copy.setAttribute('height', height);
100
+ const img = new Image();
101
+ img.src = `data:image/svg+xml;charset=utf-8,${encodeURIComponent(new XMLSerializer().serializeToString(copy))}`;
102
+ await img.decode();
103
+ const canvas = document.createElement('canvas');
104
+ canvas.width = Math.ceil(width * 2);
105
+ canvas.height = Math.ceil(height * 2);
106
+ const ctx = canvas.getContext('2d');
107
+ ctx.fillStyle = '#fff';
108
+ ctx.fillRect(0, 0, canvas.width, canvas.height);
109
+ ctx.drawImage(img, 0, 0, canvas.width, canvas.height);
110
+ const blob = await new Promise((ok) => canvas.toBlob(ok, 'image/png'));
111
+ return { bytes: new Uint8Array(await blob.arrayBuffer()), width: Math.round(width), height: Math.round(height) };
112
+ }
113
+
114
+ // One entry per workflow in page order; a diagram that did not draw is null
115
+ // and the DOCX writes its steps instead.
116
+ async function diagramImages() {
117
+ await drawn;
118
+ const canvases = [...document.querySelectorAll('.mermaid-canvas')];
119
+ return Promise.all(canvases.map((c) => {
120
+ const svg = c.querySelector('svg');
121
+ return svg ? svgPng(svg).catch(() => null) : null;
122
+ }));
123
+ }
124
+
125
+ const docxBytes = async () => buildDocx(PROPOSAL, await diagramImages());
126
+ window.__buildDocx = async () => {
127
+ const bytes = await docxBytes();
128
+ let s = '';
129
+ for (let i = 0; i < bytes.length; i += 0x8000) s += String.fromCharCode(...bytes.subarray(i, i + 0x8000));
130
+ return btoa(s);
131
+ };
132
+ document.getElementById('pdf').onclick = () => window.print();
133
+ document.getElementById('docx').onclick = async () => {
134
+ const blob = new Blob([await docxBytes()], { type: 'application/vnd.openxmlformats-officedocument.wordprocessingml.document' });
135
+ const a = document.createElement('a');
136
+ a.href = URL.createObjectURL(blob);
137
+ a.download = PROPOSAL.file;
138
+ a.click();
139
+ URL.revokeObjectURL(a.href);
140
+ };
141
+ </script>
142
+ </body>
143
+ </html>
@@ -0,0 +1,31 @@
1
+ # sin-kowa-mini — architecture (fixture)
2
+
3
+ Trimmed from the Sin Kowa v2 document for tests. Component ids match
4
+ `inputs-pass.json`.
5
+
6
+ ## 5 Architecture Model
7
+
8
+ | Container | Tech | Used by |
9
+ | --- | --- | --- |
10
+ | Core API (`api`) | NestJS | Office Web App, Background Worker |
11
+ | Office Web App (`office`) | React SPA | office staff |
12
+ | Background Worker (`worker`) | job runner | — |
13
+ | Operations Database (`ops`) | PostgreSQL | Core API |
14
+
15
+ ## 6 Core Components
16
+
17
+ | Component | Responsibility | Tech | Deploy unit | src |
18
+ | --- | --- | --- | --- | --- |
19
+ | Stage Engine (`api.stage`) | moves Orders through the stages; raises Short-Pack alerts | NestJS module | Core API | proposed |
20
+ | Orders and Quoting (`api.orders`) | Order, Quotation, pricing, Order Draft confirmation | NestJS module | Core API | proposed |
21
+ | Billing (`api.billing`) | Invoice from accepted packed quantities; issued invoices never edited | NestJS module | Core API | proposed |
22
+ | Office Web App (`office`) | orders, quotes, invoicing screens | React SPA | Office Web App | proposed |
23
+ | Notifier (`worker.notify`) | sends alerts to staff | job | Background Worker | proposed |
24
+ | Order Drafter (`worker.drafter`) | turns message text into an Order Draft | LLM job | Background Worker | proposed |
25
+ | Operations Database (`ops`) | system of record; one schema per module | PostgreSQL | RDS | proposed |
26
+
27
+ ## 9 External Integrations
28
+
29
+ | System | Used for | Component that integrates |
30
+ | --- | --- | --- |
31
+ | Mailbox | inbound order emails | Order Drafter |
@@ -0,0 +1,468 @@
1
+ {
2
+ "scopeMode": "workflow",
3
+ "requirements": "requirements.json",
4
+ "project": "sin-kowa-mini",
5
+ "currency": "USD",
6
+ "deliveryMode": "agentic",
7
+ "depth": "STANDARD",
8
+ "agentContext": {
9
+ "agent": "claude-code",
10
+ "model": "claude-opus-5-5"
11
+ },
12
+ "contextLevels": {
13
+ "codebaseMaturity": 1,
14
+ "stackFamiliarity": 1,
15
+ "specQuality": 3,
16
+ "compliance": 2,
17
+ "clientDecisions": 3
18
+ },
19
+ "contextProvenance": {
20
+ "codebaseMaturity": {
21
+ "level": 1,
22
+ "anchor": "Greenfield",
23
+ "cite": "ARCHITECTURE.md mode: greenfield",
24
+ "source": "derived"
25
+ },
26
+ "stackFamiliarity": {
27
+ "level": 1,
28
+ "anchor": "Core stack, done before",
29
+ "cite": "not assessed — adjust in the exported workbook",
30
+ "source": "derived"
31
+ },
32
+ "specQuality": {
33
+ "level": 3,
34
+ "anchor": "Outline or slide deck",
35
+ "cite": "BA readiness 62",
36
+ "source": "derived"
37
+ },
38
+ "compliance": {
39
+ "level": 2,
40
+ "anchor": "Handles PII",
41
+ "cite": "customer names on invoices",
42
+ "source": "derived"
43
+ },
44
+ "clientDecisions": {
45
+ "level": 3,
46
+ "anchor": "Committee sign-off",
47
+ "cite": "two directors approve",
48
+ "source": "derived"
49
+ }
50
+ },
51
+ "features": [
52
+ {
53
+ "id": "FEAT-001",
54
+ "scoreNote": "Five stages with task views per role; the heart of the warehouse app",
55
+ "scoreProvenance": "proposed",
56
+ "scores": {
57
+ "tech": {
58
+ "n": 3,
59
+ "anchor": "Custom business logic, moderate algorithm complexity, multiple states",
60
+ "cite": "five stages, role-scoped views"
61
+ },
62
+ "size": {
63
+ "n": 3,
64
+ "anchor": "Medium feature with multiple components and backend logic",
65
+ "cite": "engine + screens"
66
+ },
67
+ "deps": {
68
+ "n": 2,
69
+ "anchor": "One internal dependency (e.g. auth check)",
70
+ "cite": "reads roles"
71
+ },
72
+ "unc": {
73
+ "n": 3,
74
+ "anchor": "Some open questions, design decisions to be made during build",
75
+ "cite": "24h trigger rule open"
76
+ },
77
+ "risk": {
78
+ "n": 3,
79
+ "anchor": "Moderate impact if broken, requires testing, affects multiple users",
80
+ "cite": "every order passes through"
81
+ }
82
+ }
83
+ },
84
+ {
85
+ "id": "FEAT-002",
86
+ "scoreNote": "Flags a can't-fulfil item in time to act",
87
+ "scoreProvenance": "proposed",
88
+ "scores": {
89
+ "tech": {
90
+ "n": 3,
91
+ "anchor": "Custom business logic, moderate algorithm complexity, multiple states",
92
+ "cite": "exception branch"
93
+ },
94
+ "size": {
95
+ "n": 3,
96
+ "anchor": "Medium feature with multiple components and backend logic",
97
+ "cite": "alert + screen"
98
+ },
99
+ "deps": {
100
+ "n": 2,
101
+ "anchor": "One internal dependency (e.g. auth check)",
102
+ "cite": "stage engine event"
103
+ },
104
+ "unc": {
105
+ "n": 3,
106
+ "anchor": "Some open questions, design decisions to be made during build",
107
+ "cite": "who is alerted is open"
108
+ },
109
+ "risk": {
110
+ "n": 3,
111
+ "anchor": "Moderate impact if broken, requires testing, affects multiple users",
112
+ "cite": "missed alert delays invoicing"
113
+ }
114
+ }
115
+ },
116
+ {
117
+ "id": "FEAT-003",
118
+ "scoreNote": "Orders and quotes from email, phone and fax",
119
+ "scoreProvenance": "proposed",
120
+ "scores": {
121
+ "tech": {
122
+ "n": 3,
123
+ "anchor": "Custom business logic, moderate algorithm complexity, multiple states",
124
+ "cite": "catalog + cost-plus pricing"
125
+ },
126
+ "size": {
127
+ "n": 3,
128
+ "anchor": "Medium feature with multiple components and backend logic",
129
+ "cite": "intake + quote screens"
130
+ },
131
+ "deps": {
132
+ "n": 2,
133
+ "anchor": "One internal dependency (e.g. auth check)",
134
+ "cite": "item master"
135
+ },
136
+ "unc": {
137
+ "n": 3,
138
+ "anchor": "Some open questions, design decisions to be made during build",
139
+ "cite": "markup rule unconfirmed"
140
+ },
141
+ "risk": {
142
+ "n": 3,
143
+ "anchor": "Moderate impact if broken, requires testing, affects multiple users",
144
+ "cite": "wrong quote loses margin"
145
+ }
146
+ }
147
+ },
148
+ {
149
+ "id": "FEAT-004",
150
+ "scoreNote": "Drafts an order from an email for staff to confirm",
151
+ "scoreProvenance": "proposed",
152
+ "scores": {
153
+ "tech": {
154
+ "n": 3,
155
+ "anchor": "Custom business logic, moderate algorithm complexity, multiple states",
156
+ "cite": "LLM extraction + review"
157
+ },
158
+ "size": {
159
+ "n": 3,
160
+ "anchor": "Medium feature with multiple components and backend logic",
161
+ "cite": "job + review screen"
162
+ },
163
+ "deps": {
164
+ "n": 2,
165
+ "anchor": "One internal dependency (e.g. auth check)",
166
+ "cite": "mailbox"
167
+ },
168
+ "unc": {
169
+ "n": 3,
170
+ "anchor": "Some open questions, design decisions to be made during build",
171
+ "cite": "no sample emails yet"
172
+ },
173
+ "risk": {
174
+ "n": 3,
175
+ "anchor": "Moderate impact if broken, requires testing, affects multiple users",
176
+ "cite": "staff confirm every draft"
177
+ }
178
+ }
179
+ },
180
+ {
181
+ "id": "FEAT-005",
182
+ "scoreNote": "Invoice from packed quantities plus proof of delivery",
183
+ "scoreProvenance": "proposed",
184
+ "scores": {
185
+ "tech": {
186
+ "n": 3,
187
+ "anchor": "Custom business logic, moderate algorithm complexity, multiple states",
188
+ "cite": "three-way match"
189
+ },
190
+ "size": {
191
+ "n": 3,
192
+ "anchor": "Medium feature with multiple components and backend logic",
193
+ "cite": "match + documents + screens"
194
+ },
195
+ "deps": {
196
+ "n": 2,
197
+ "anchor": "One internal dependency (e.g. auth check)",
198
+ "cite": "reads packed quantities"
199
+ },
200
+ "unc": {
201
+ "n": 3,
202
+ "anchor": "Some open questions, design decisions to be made during build",
203
+ "cite": "credit note flow open"
204
+ },
205
+ "risk": {
206
+ "n": 3,
207
+ "anchor": "Moderate impact if broken, requires testing, affects multiple users",
208
+ "cite": "money"
209
+ }
210
+ }
211
+ }
212
+ ],
213
+ "components": [
214
+ {
215
+ "id": "api",
216
+ "name": "Core API"
217
+ },
218
+ {
219
+ "id": "api.stage",
220
+ "name": "Stage Engine",
221
+ "parent": "api",
222
+ "milestone": "M1 - Walking skeleton",
223
+ "builds": [
224
+ {
225
+ "feature": "FEAT-001",
226
+ "why": "moves Orders through the five stages"
227
+ },
228
+ {
229
+ "feature": "FEAT-002",
230
+ "why": "raises the Short-Pack alert on a can't-fulfil line"
231
+ }
232
+ ],
233
+ "tasks": [
234
+ {
235
+ "id": "stage-engine",
236
+ "name": "Stage transitions with audit",
237
+ "shape": "small_implementation",
238
+ "scope": {
239
+ "affectedFiles": 8,
240
+ "complexity": "medium"
241
+ },
242
+ "seedMinutes": {
243
+ "o": 90,
244
+ "m": 180,
245
+ "p": 360
246
+ },
247
+ "assumptions": [],
248
+ "provenance": "proposed"
249
+ },
250
+ {
251
+ "id": "stage-tests",
252
+ "name": "Transition tests",
253
+ "shape": "test_creation",
254
+ "scope": {
255
+ "affectedFiles": 3,
256
+ "complexity": "low"
257
+ },
258
+ "seedMinutes": {
259
+ "o": 30,
260
+ "m": 60,
261
+ "p": 120
262
+ },
263
+ "assumptions": [],
264
+ "provenance": "proposed"
265
+ }
266
+ ]
267
+ },
268
+ {
269
+ "id": "api.orders",
270
+ "name": "Orders and Quoting",
271
+ "parent": "api",
272
+ "milestone": "M1 - Walking skeleton",
273
+ "builds": [
274
+ {
275
+ "feature": "FEAT-003",
276
+ "why": "owns Order, Quotation and the cost-plus pricing rule"
277
+ }
278
+ ],
279
+ "tasks": [
280
+ {
281
+ "id": "orders-impl",
282
+ "name": "Order and quotation aggregate",
283
+ "shape": "small_implementation",
284
+ "scope": {
285
+ "affectedFiles": 10,
286
+ "complexity": "medium"
287
+ },
288
+ "seedMinutes": {
289
+ "o": 120,
290
+ "m": 240,
291
+ "p": 480
292
+ },
293
+ "assumptions": [],
294
+ "provenance": "proposed"
295
+ }
296
+ ]
297
+ },
298
+ {
299
+ "id": "api.billing",
300
+ "name": "Billing",
301
+ "parent": "api",
302
+ "milestone": "M2 - Money",
303
+ "builds": [
304
+ {
305
+ "feature": "FEAT-005",
306
+ "why": "invoice qty = accepted packed qty; issued invoices never edited"
307
+ }
308
+ ],
309
+ "tasks": [
310
+ {
311
+ "id": "billing-match",
312
+ "name": "Three-way match",
313
+ "shape": "small_implementation",
314
+ "scope": {
315
+ "affectedFiles": 6,
316
+ "complexity": "medium"
317
+ },
318
+ "seedMinutes": {
319
+ "o": 60,
320
+ "m": 120,
321
+ "p": 240
322
+ },
323
+ "assumptions": [],
324
+ "provenance": "proposed"
325
+ },
326
+ {
327
+ "id": "billing-docs",
328
+ "name": "Printable invoice",
329
+ "shape": "small_implementation",
330
+ "scope": {
331
+ "affectedFiles": 4,
332
+ "complexity": "low"
333
+ },
334
+ "seedMinutes": {
335
+ "o": 40,
336
+ "m": 80,
337
+ "p": 160
338
+ },
339
+ "assumptions": [],
340
+ "provenance": "proposed"
341
+ }
342
+ ]
343
+ },
344
+ {
345
+ "id": "office",
346
+ "name": "Office Web App",
347
+ "milestone": "M1 - Walking skeleton",
348
+ "builds": [
349
+ {
350
+ "feature": "FEAT-001",
351
+ "why": "stage board and task views"
352
+ },
353
+ {
354
+ "feature": "FEAT-003",
355
+ "why": "order intake and quote screens"
356
+ },
357
+ {
358
+ "feature": "FEAT-005",
359
+ "why": "invoice list, detail and release screens"
360
+ }
361
+ ],
362
+ "tasks": [
363
+ {
364
+ "id": "office-screens",
365
+ "name": "Orders, quotes and invoicing screens",
366
+ "shape": "ui_implementation",
367
+ "scope": {
368
+ "affectedFiles": 14,
369
+ "complexity": "medium"
370
+ },
371
+ "seedMinutes": {
372
+ "o": 180,
373
+ "m": 360,
374
+ "p": 720
375
+ },
376
+ "assumptions": [],
377
+ "provenance": "proposed"
378
+ }
379
+ ]
380
+ },
381
+ {
382
+ "id": "worker",
383
+ "name": "Background Worker"
384
+ },
385
+ {
386
+ "id": "worker.notify",
387
+ "name": "Notifier",
388
+ "parent": "worker",
389
+ "milestone": "M2 - Money",
390
+ "builds": [
391
+ {
392
+ "feature": "FEAT-002",
393
+ "why": "delivers the Short-Pack alert to ops and invoicing staff"
394
+ }
395
+ ],
396
+ "tasks": [
397
+ {
398
+ "id": "notify-impl",
399
+ "name": "Alert delivery",
400
+ "shape": "api_integration",
401
+ "scope": {
402
+ "affectedFiles": 3,
403
+ "complexity": "low"
404
+ },
405
+ "seedMinutes": {
406
+ "o": 30,
407
+ "m": 60,
408
+ "p": 120
409
+ },
410
+ "assumptions": [],
411
+ "provenance": "proposed"
412
+ }
413
+ ]
414
+ },
415
+ {
416
+ "id": "worker.drafter",
417
+ "name": "Order Drafter",
418
+ "parent": "worker",
419
+ "milestone": "M3 - Operations",
420
+ "builds": [
421
+ {
422
+ "feature": "FEAT-004",
423
+ "why": "turns message text into an Order Draft"
424
+ }
425
+ ],
426
+ "tasks": [
427
+ {
428
+ "id": "drafter-impl",
429
+ "name": "Email to draft extraction",
430
+ "shape": "api_integration",
431
+ "scope": {
432
+ "affectedFiles": 5,
433
+ "complexity": "medium"
434
+ },
435
+ "seedMinutes": {
436
+ "o": 90,
437
+ "m": 180,
438
+ "p": 360
439
+ },
440
+ "assumptions": [],
441
+ "provenance": "proposed"
442
+ }
443
+ ]
444
+ },
445
+ {
446
+ "id": "ops",
447
+ "name": "Operations Database",
448
+ "notEstimated": "one schema per module; no store-specific work in this scope"
449
+ }
450
+ ],
451
+ "risks": [],
452
+ "assumptions": [
453
+ {
454
+ "text": "InvoiceNow is a data model only, with no live connection",
455
+ "impactIfWrong": "a live Access Point link is a separate feature",
456
+ "source": "ASM-005"
457
+ },
458
+ {
459
+ "text": "Label printers accept ZPL over the LAN",
460
+ "impactIfWrong": "printer bridge work added",
461
+ "source": "new"
462
+ }
463
+ ],
464
+ "exclusions": [
465
+ "Hosting and third-party subscription fees"
466
+ ],
467
+ "measurementsPath": "measurements.jsonl"
468
+ }