@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
@@ -29,7 +29,7 @@
29
29
  "evals/fixtures/pre-fed-traditional-trellis/ARCHITECTURE.md"
30
30
  ],
31
31
  "assertions": [
32
- "validates-and-renders: `node scripts/validate.mjs --md <lead>/estimation.md --json <lead>/estimation.json` exits 0, and dist/estimate.html exists (render.mjs refuses to write on any finding)",
32
+ "validates-and-renders: `node classic/scripts/validate.mjs --md <lead>/estimation.md --json <lead>/estimation.json` exits 0, and dist/estimate.html exists (render.mjs refuses to write on any finding)",
33
33
  "technique-matches-evidence: inputs.technique is task-level three-point PERT and estimation.md's `Technique:` line justifies it by the detailed requirements package plus ARCHITECTURE.md — not factor-scored tiering, which techniques.md §1 reserves for a vague RFP with no breakdown",
34
34
  "confirmed-vs-assumed-both-populated: at least one feature carries provenance `stated` traced to a confirmed requirement (FR-001/FR-002/FR-003) and at least one carries `proposed` traced to the assumed/recommended ones (FR-004/FR-005); inputs.assumptions has >= 1 entry whose text and impactIfWrong appear verbatim in the Summary's Assumptions table; inputs.components carries every §6 component with `trellis.reporting` excused by a notEstimated reason rather than dropped",
35
35
  "per-task-ai-categories: every task carries a category of boilerplate|logic|novel with at least two distinct categories across the backlog, and no single project-wide or feature-wide AI speedup percentage appears anywhere in estimation.md or estimation-inputs.json (ai-multipliers.md §5)",
@@ -48,13 +48,48 @@
48
48
  "evals/fixtures/pre-fed-agentic-halyard/measurements.jsonl"
49
49
  ],
50
50
  "assertions": [
51
- "validates-and-renders-agentic: `node scripts/validate.mjs --md <lead>/estimation.md --json <lead>/estimation.json` exits 0, inputs.deliveryMode is \"agentic\", and the rendered dist/estimate.html came from assets/estimate-template-agentic.html (it carries the Baseline (min)/Samples/Match table and no `id=\"scoring-guide\"` block)",
51
+ "validates-and-renders-agentic: `node classic/scripts/validate.mjs --md <lead>/estimation.md --json <lead>/estimation.json` exits 0, inputs.deliveryMode is \"agentic\", and the rendered dist/estimate.html came from classic/assets/estimate-template-agentic.html (it carries the Baseline (min)/Samples/Match table and no `id=\"scoring-guide\"` block)",
52
52
  "durations-not-agent-authored: every task carries a `shape` from TASK_SHAPES plus a `scope` object and `seedMinutes` with o <= m <= p, and no task carries `category`, `confidence`, `o`, `m` or `p` — the four fields schema.mjs bans in agentic mode because the script owns them",
53
53
  "planning-task-present: at least one task has shape \"planning\" and is sized as real work in the backlog, not folded into overhead (agentic-estimation.md §5; agenticFindings refuses a decomposition without one)",
54
54
  "confidence-tracks-samples: inputs.measurementsPath points at the fixture measurements.jsonl rather than ~/.agents-rock/measurements.jsonl, and every computed.tasks[*].confidence is what that file supports — ui_implementation 11 samples → HIGH, api_integration 4 samples → MED, planning (2 samples, global rung) → LOW, and any shape with no matching record → UNCALIBRATED with \"not estimated\" in the Baseline column",
55
55
  "evidence-rows-script-matched: every row in estimation.md's `### Evidence` table has an Id and Actual (min) that appear in computed.tasks[*].evidence (ids drawn from h01–h17 in the fixture), and the Summary header line reports the same measurement count the evidence actually backs",
56
56
  "agentic-not-priced: inputs.risks carry probability, impactMinutes and a non-empty reason for both named risks (0.4 / 180 and 0.3 / 120); computed.price.p50 is 0 and computed carries no `scenarios` or `riskBufferHours`; inputs carry no `scenarios`, team or rates; neither estimation.md nor dist/estimate.html presents a currency amount as this project's price or a duration — the page states the scope is not priced"
57
57
  ]
58
+ },
59
+ {
60
+ "id": 3,
61
+ "name": "workflow-happy-path",
62
+ "prompt": "The BA package for sin-kowa-mini is done and the PO signed off the scope (requirements.json, requirements.md). The architecture document is in ARCHITECTURE.md — I reviewed it myself this morning. Give me the estimate.",
63
+ "expected_output": "The skill detects scopeMode \"workflow\" and follows workflow-based/FLOW.md. It asks exactly one gate question (has a human reviewed ARCHITECTURE.md?) and, after the user says yes, links every feature to §6 components with a why each, runs the review-links workflow (or, when the Workflow tool is unavailable in this sandbox, stops with the exact /config message and writes nothing), scores the five features, writes the score review page, renders estimate.html and estimate-components.html into dist/, and ends with the closing AskUserQuestion naming both pages. It never asks about depth, delivery mode, agent/model, scope confirmation, milestones, review channel, stack familiarity, deadline or budget. estimation-inputs.json carries features with ids and scores only; components carry builds, tasks and milestones.",
64
+ "files": [
65
+ "evals/fixtures/workflow-sin-kowa-mini/requirements.json",
66
+ "evals/fixtures/workflow-sin-kowa-mini/requirements.md",
67
+ "evals/fixtures/workflow-sin-kowa-mini/ARCHITECTURE.md"
68
+ ],
69
+ "assertions": [
70
+ "routed-to-workflow: the reply names scopeMode workflow and never offers the classic depth question (QUICK/STANDARD/DEEP) or the delivery-mode opt-out",
71
+ "three-questions-max: the only AskUserQuestion prompts are the architecture-reviewed gate, the score-review hand-off, and the closing \"anything to change?\"; no question about agent/model, milestones, scope confirmation, review channel, familiarity, deadline or budget",
72
+ "workflow-or-exact-stop: either /solution-architect:review-links was invoked before scoring, or the reply contains exactly \"Workflow mode needs dynamic workflows for the link review. Turn them on in /config (Dynamic workflows), then run /estimate again.\" and no estimation-inputs.json exists",
73
+ "features-are-ids-and-scores: when estimation-inputs.json exists, every features[] entry has id, scores (five factors with n, anchor, cite), scoreNote and scoreProvenance and none of tasks, component, milestone, provenance",
74
+ "components-carry-the-work: when estimation-inputs.json exists, every component with builds has a non-empty why on each build, a milestone, and at least one agentic task with shape and seedMinutes; a component with no builds has notEstimated",
75
+ "validate-clean: when estimation.json exists, `node workflow-based/scripts/validate.mjs --inputs estimation-inputs.json --json estimation.json` exits 0",
76
+ "pages-written: when estimation.json exists, dist/estimate.html and dist/estimate-components.html exist, no estimation.md was written, and the closing question names both page URLs"
77
+ ]
78
+ },
79
+ {
80
+ "id": 4,
81
+ "name": "workflow-gate-no-architecture",
82
+ "prompt": "requirements.json and requirements.md for sin-kowa-mini are ready, scope is PO-approved. Estimate it.",
83
+ "expected_output": "The skill detects scopeMode \"workflow\", finds no ARCHITECTURE.md, and stops with the message that workflow mode needs the architecture document first. It does not fall back to classic, does not ask the depth question, and writes no files.",
84
+ "files": [
85
+ "evals/fixtures/workflow-sin-kowa-mini/requirements.json",
86
+ "evals/fixtures/workflow-sin-kowa-mini/requirements.md"
87
+ ],
88
+ "assertions": [
89
+ "stops-at-gate: the reply says workflow mode needs the architecture document and to run it first",
90
+ "no-classic-fallback: no QUICK/STANDARD/DEEP question, no technique menu, no clear-vs-assumed gate",
91
+ "nothing-written: no estimation-inputs.json, estimation.json, dist/score-review.html, dist/estimate.html or dist/estimate-components.html exists after the run"
92
+ ]
58
93
  }
59
94
  ]
60
95
  }
@@ -0,0 +1,28 @@
1
+ # sin-kowa-mini — architecture
2
+
3
+ ## 5 Architecture Model
4
+
5
+ | Container | Tech | Used by |
6
+ | --- | --- | --- |
7
+ | Core API (`api`) | NestJS | Office Web App, Background Worker |
8
+ | Office Web App (`office`) | React SPA | office staff |
9
+ | Background Worker (`worker`) | job runner | — |
10
+ | Operations Database (`ops`) | PostgreSQL | Core API |
11
+
12
+ ## 6 Core Components
13
+
14
+ | Component | Responsibility | Tech | Deploy unit | src |
15
+ | --- | --- | --- | --- | --- |
16
+ | Stage Engine (`api.stage`) | moves Orders through the stages; raises Short-Pack alerts | NestJS module | Core API | proposed |
17
+ | Orders and Quoting (`api.orders`) | Order, Quotation, pricing, Order Draft confirmation | NestJS module | Core API | proposed |
18
+ | Billing (`api.billing`) | Invoice from accepted packed quantities; issued invoices never edited | NestJS module | Core API | proposed |
19
+ | Office Web App (`office`) | orders, quotes, invoicing screens | React SPA | Office Web App | proposed |
20
+ | Notifier (`worker.notify`) | sends alerts to staff | job | Background Worker | proposed |
21
+ | Order Drafter (`worker.drafter`) | turns message text into an Order Draft | LLM job | Background Worker | proposed |
22
+ | Operations Database (`ops`) | system of record; one schema per module | PostgreSQL | RDS | proposed |
23
+
24
+ ## 9 External Integrations
25
+
26
+ | System | Used for | Component that integrates |
27
+ | --- | --- | --- |
28
+ | Mailbox | inbound order emails | Order Drafter |
@@ -0,0 +1,79 @@
1
+ {
2
+ "schemaVersion": "1.0",
3
+ "lead": "sin-kowa-mini",
4
+ "status": "ANALYZED",
5
+ "depth": "STANDARD",
6
+ "updated": "2026-10-06",
7
+ "mode": "greenfield",
8
+ "scopeMode": "workflow",
9
+ "mapLabel": "IMDA roadmap pillar",
10
+ "context": {
11
+ "problem": "Clients dispute charges after the ship sails and there is no record of what was packed.",
12
+ "goals": [
13
+ { "id": "G-001", "goal": "Stop billing disputes after sailing", "metric": "disputes per month down 50% in 6 months", "source": "PO brief" }
14
+ ],
15
+ "successMetrics": ["disputes per month down 50% within 6 months of go-live"]
16
+ },
17
+ "actors": [
18
+ { "id": "ACT-001", "name": "Packer", "type": "human", "goal": "pack an order without paper lists", "painPoints": ["packs from a printed list"] },
19
+ { "id": "ACT-002", "name": "Office staff", "type": "human", "goal": "invoice the moment goods are delivered", "painPoints": ["waits weeks for the paper delivery order"] }
20
+ ],
21
+ "workflows": [
22
+ { "id": "WF-001", "name": "Order to invoice today", "state": "as-is", "trigger": "ship sends an order by email or phone", "steps": ["office staff key the order in", "warehouse packs from a paper list", "paper delivery order signed at the dock", "invoice raised when the paper returns"], "exceptions": ["client disputes a charge after sailing"] },
23
+ { "id": "WF-002", "name": "Order pipeline", "state": "to-be", "label": "confirmed", "source": "PO brief, System 1", "trigger": "order confirmed by office staff", "steps": ["Order In", "Pack", "Pack Review", "Shipped"], "branches": [{ "from": "Pack", "to": "Short-pack alert", "label": "can't fulfil" }, { "from": "Pack Review", "to": "Pack", "label": "mismatch" }], "replaces": ["WF-001"], "exceptions": [] },
24
+ { "id": "WF-003", "name": "Order to cash", "state": "to-be", "label": "recommended", "source": "drafted from PO brief, System 2", "trigger": "order received by email or phone", "steps": ["Order received", "Quote", "Invoice", "Paid"], "branches": [], "replaces": ["WF-001"], "exceptions": [] },
25
+ { "id": "WF-004", "name": "Custom order", "state": "to-be", "label": "confirmed", "source": "PO brief, System 2 sub-flow", "trigger": "order holds an item that is sourced, not stocked", "steps": ["Flag as custom", "Vendor PO", "Receive into stock"], "branches": [], "sub": { "startsAt": "WF-003:Order received", "rejoins": "WF-002", "share": "about 20% of orders" }, "exceptions": [] }
26
+ ],
27
+ "systems": [
28
+ { "id": "SYS-001", "name": "Warehouse operations", "purpose": "Moves an order from intake to the dock; the one screen a warehouse worker needs.", "map": "Warehouse Automation", "label": "confirmed", "source": "PO brief, System 1", "workflows": ["WF-002"], "features": ["FEAT-001", "FEAT-002"] },
29
+ { "id": "SYS-002", "name": "Orders & invoicing", "purpose": "Quotation through to a paid invoice.", "map": "Finance/Documentation", "label": "confirmed", "source": "PO brief, System 2", "workflows": ["WF-003", "WF-004"], "features": ["FEAT-003", "FEAT-004", "FEAT-005"] }
30
+ ],
31
+ "features": [
32
+ { "id": "FEAT-001", "name": "Order pipeline & stage engine", "does": "Moves an order through each stage, with task views per role", "label": "confirmed", "source": "PO brief, System 1", "steps": ["WF-002:Order In", "WF-002:Pack", "WF-002:Pack Review", "WF-002:Shipped"], "requirements": ["FR-001"] },
33
+ { "id": "FEAT-002", "name": "Short-pack alert", "does": "Flags an item that cannot be packed, in time to buy or cancel", "label": "confirmed", "source": "PO brief, System 1", "steps": ["WF-002:Short-pack alert"], "requirements": ["FR-002"] },
34
+ { "id": "FEAT-003", "name": "Order intake & quotation", "does": "Captures email and phone orders and prices them", "label": "confirmed", "source": "PO brief, System 2", "steps": ["WF-003:Order received", "WF-003:Quote", "WF-004:Flag as custom"], "requirements": ["FR-003"] },
35
+ { "id": "FEAT-004", "name": "Invoice from packed quantities", "does": "Raises the invoice from what was packed and shipped", "label": "recommended", "source": "drafted from PO brief, System 2", "steps": ["WF-002:Shipped", "WF-003:Invoice", "WF-003:Paid"], "requirements": ["FR-004"] },
36
+ { "id": "FEAT-005", "name": "One login, role-based screens", "does": "One login; packers see packing tasks, office staff see orders and invoices", "label": "confirmed", "source": "PO brief, System 1", "steps": ["*"], "requirements": ["FR-005"] }
37
+ ],
38
+ "requirements": [
39
+ { "id": "FR-001", "text": "The system must move each order through the stages Order In, Pack, Pack Review and Shipped.", "label": "confirmed", "source": "PO brief, System 1", "traces": { "goal": "G-001", "workflow": "WF-002", "rules": [] }, "scope": "in", "acceptance": [] },
40
+ { "id": "FR-002", "text": "The system must let a packer flag an item that cannot be packed and alert office staff.", "label": "confirmed", "source": "PO brief, System 1", "traces": { "goal": "G-001", "workflow": "WF-002", "rules": [] }, "scope": "in", "acceptance": [] },
41
+ { "id": "FR-003", "text": "Office staff must be able to enter an order received by email or phone and produce a quotation.", "label": "confirmed", "source": "PO brief, System 2", "traces": { "goal": "G-001", "workflow": "WF-003", "rules": [] }, "scope": "in", "acceptance": [] },
42
+ { "id": "FR-004", "text": "The system must raise the invoice from packed-and-audited quantities.", "label": "assumed", "source": "PO brief, System 2", "traces": { "goal": "G-001", "workflow": "WF-003", "rules": ["BR-001"] }, "scope": "in", "acceptance": ["SC-001"] },
43
+ { "id": "FR-005", "text": "The system must provide one login, with packers limited to packing tasks.", "label": "confirmed", "source": "PO brief, System 1", "traces": { "goal": "G-001", "workflow": "WF-002", "rules": [] }, "scope": "in", "acceptance": [] },
44
+ { "id": "FR-006", "text": "The system must print a pallet label at the Pack stage.", "label": "assumed", "source": "PO brief, System 4", "traces": { "goal": "G-001", "workflow": "WF-002", "rules": [] }, "scope": "future", "acceptance": [] }
45
+ ],
46
+ "businessRules": [
47
+ { "id": "BR-001", "rule": "Invoice quantity equals packed-and-audited quantity.", "source": "PO brief, System 2", "examples": ["ordered 10, packed 10 -> invoice 10", "ordered 10, packed 8 -> invoice 8"] }
48
+ ],
49
+ "scenarios": [
50
+ { "id": "SC-001", "requirement": "FR-004", "type": "happy", "given": "an order of 10 items with 8 packed", "when": "the invoice is raised", "then": "it bills 8 items" }
51
+ ],
52
+ "nfrs": [
53
+ { "id": "NFR-001", "area": "availability", "text": "Scans made without connectivity must be kept and synced within 5 minutes of reconnecting.", "label": "assumed" }
54
+ ],
55
+ "integrations": [
56
+ { "id": "INT-001", "system": "InvoiceNow network", "direction": "write", "label": "recommended" }
57
+ ],
58
+ "data": [
59
+ { "id": "DAT-001", "entity": "Order", "sensitivity": "commercial", "volume": "about 300 per month", "label": "assumed" }
60
+ ],
61
+ "constraints": [
62
+ { "id": "CON-001", "text": "Vessels are offline at sea; delivery orders are signed on paper at the dock today.", "source": "PO brief" }
63
+ ],
64
+ "assumptions": [
65
+ { "id": "ASM-001", "text": "Packers carry a phone with a camera on the warehouse floor.", "impact": "medium", "status": "unconfirmed" }
66
+ ],
67
+ "openQuestions": [
68
+ { "id": "Q-001", "question": "Is order to cash the right shape: quote before the order is confirmed?", "priority": "P1", "reason": "the workflow was drafted, not described by the client", "affects": ["WF-003"], "status": "open", "answer": null, "architectureBlocker": false },
69
+ { "id": "Q-002", "question": "Should the invoice be raised at shipping, or when the delivery order is signed?", "priority": "P2", "reason": "decides the invoice trigger", "affects": ["FEAT-004", "INT-001"], "status": "open", "answer": null, "architectureBlocker": false }
70
+ ],
71
+ "conflicts": [],
72
+ "scope": { "out": ["last-mile delivery tracking"], "future": ["pallet labels"], "unconfirmed": [] },
73
+ "ai": null,
74
+ "readiness": {
75
+ "overall": 63,
76
+ "areas": { "businessContext": 80, "workflows": 70, "rules": 60, "integrations": 50, "data": 60, "nfrs": 60 },
77
+ "blockers": []
78
+ }
79
+ }
@@ -0,0 +1,141 @@
1
+ ---
2
+ lead: sin-kowa-mini
3
+ status: ANALYZED
4
+ depth: STANDARD
5
+ scopeMode: workflow
6
+ updated: 2026-10-06
7
+ readiness: 63
8
+ ---
9
+
10
+ # Requirements — Sin Kowa (mini)
11
+
12
+ > **Product owner? Start here:** [To-be scope](#to-be-scope) shows the systems, workflows and features we propose to build. Items marked ⚠ are our draft; tell us in chat what to change.
13
+
14
+ Source: PO brief, trimmed to two systems for tests.
15
+
16
+ ## Part 1 — Discovery Brief
17
+
18
+ Problem: clients dispute charges after the ship sails and there is no record of what was packed.
19
+
20
+ | ID | Goal | Metric |
21
+ | --- | --- | --- |
22
+ | G-001 | Stop billing disputes after sailing | disputes per month down 50% in 6 months |
23
+
24
+ Constraints: CON-001 — vessels are offline at sea; delivery orders are signed on paper today.
25
+
26
+ ## Part 2 — Process & Domain
27
+
28
+ As-is workflow WF-001 (order to invoice today): office staff (ACT-002) key the order in →
29
+ the packer (ACT-001) packs from a paper list → paper delivery order signed at the dock →
30
+ invoice raised when the paper returns.
31
+
32
+ | ID | Rule | Examples |
33
+ | --- | --- | --- |
34
+ | BR-001 | Invoice quantity equals packed-and-audited quantity | ordered 10, packed 8 → invoice 8 |
35
+
36
+ <!-- scope:start -->
37
+
38
+ ### To-be scope
39
+
40
+ What we propose to build: 2 systems, each shown as its workflows and then the features that serve them.
41
+
42
+ | System | Purpose | IMDA roadmap pillar |
43
+ | --- | --- | --- |
44
+ | Warehouse operations | Moves an order from intake to the dock; the one screen a warehouse worker needs. | Warehouse Automation |
45
+ | Orders & invoicing | Quotation through to a paid invoice. | Finance/Documentation |
46
+
47
+ ### Warehouse operations
48
+
49
+ Moves an order from intake to the dock; the one screen a warehouse worker needs. Replaces today's "Order to invoice today".
50
+
51
+ **Main workflow: Order pipeline**
52
+
53
+ ```mermaid
54
+ flowchart LR
55
+ n0 --> n1
56
+ n1 --> n2
57
+ n2 --> n3
58
+ n1 -.->|can't fulfil| n4
59
+ n2 -.->|mismatch| n1
60
+ n0["Order In"]
61
+ n1["Pack"]
62
+ n2["Pack Review"]
63
+ n3["Shipped"]
64
+ n4["Short-pack alert"]
65
+ ```
66
+
67
+ | Feature | What it does | Where in the workflow |
68
+ | --- | --- | --- |
69
+ | Order pipeline & stage engine | Moves an order through each stage, with task views per role | Order In → Pack → Pack Review → Shipped |
70
+ | Short-pack alert | Flags an item that cannot be packed, in time to buy or cancel | Short-pack alert |
71
+
72
+ ### Orders & invoicing
73
+
74
+ Quotation through to a paid invoice. Replaces today's "Order to invoice today".
75
+
76
+ **Main workflow: Order to cash**
77
+
78
+ > ⚠ We drafted this — please confirm
79
+
80
+ ```mermaid
81
+ flowchart LR
82
+ n0 --> n1
83
+ n1 --> n2
84
+ n2 --> n3
85
+ n0["Order received"]
86
+ n1["Quote"]
87
+ n2["Invoice"]
88
+ n3["Paid"]
89
+ ```
90
+
91
+ **Sub-workflow: Custom order** — starts at Order received, rejoins Order pipeline · about 20% of orders
92
+
93
+ ```mermaid
94
+ flowchart LR
95
+ n0 --> n1
96
+ n1 --> n2
97
+ n0["Flag as custom"]
98
+ n1["Vendor PO"]
99
+ n2["Receive into stock"]
100
+ ```
101
+
102
+ | Feature | What it does | Where in the workflow |
103
+ | --- | --- | --- |
104
+ | Order intake & quotation | Captures email and phone orders and prices them | Order received → Quote; Flag as custom |
105
+ | Invoice from packed quantities ⚠ | Raises the invoice from what was packed and shipped | Shipped (in Order pipeline); Invoice → Paid |
106
+ | One login, role-based screens | One login; packers see packing tasks, office staff see orders and invoices | every step |
107
+
108
+ <!-- scope:end -->
109
+
110
+ ## Part 3 — Requirements
111
+
112
+ Scope — out: last-mile delivery tracking. Future: pallet labels.
113
+
114
+ | ID | Requirement | Label | Scope | Feature |
115
+ | --- | --- | --- | --- | --- |
116
+ | FR-001 | Move each order through Order In, Pack, Pack Review, Shipped | confirmed | in | Order pipeline & stage engine |
117
+ | FR-002 | Packer flags an item that cannot be packed; office alerted | confirmed | in | Short-pack alert |
118
+ | FR-003 | Enter an email or phone order and produce a quotation | confirmed | in | Order intake & quotation |
119
+ | FR-004 | Raise the invoice from packed-and-audited quantities | assumed | in | Invoice from packed quantities |
120
+ | FR-005 | One login; packers limited to packing tasks | confirmed | in | One login, role-based screens |
121
+ | FR-006 | Print a pallet label at Pack | assumed | future | — |
122
+
123
+ NFR-001 (availability, assumed): offline scans synced within 5 minutes of reconnecting.
124
+ INT-001: write invoices to the InvoiceNow network (recommended).
125
+ DAT-001: Order — commercial, about 300 per month (assumed).
126
+
127
+ ## Part 4 — Acceptance Scenarios
128
+
129
+ | ID | Given | When | Then |
130
+ | --- | --- | --- | --- |
131
+ | SC-001 | an order of 10 items with 8 packed | the invoice is raised | it bills 8 items |
132
+
133
+ ## Part 5 — Readiness Report
134
+
135
+ Readiness: 63%. Areas — businessContext 80, workflows 70, rules 60,
136
+ integrations 50, data 60, nfrs 60.
137
+
138
+ Open questions: Q-001 (P1) — is order to cash the right shape? Q-002 (P2) — invoice at
139
+ shipping or at the signed delivery order?
140
+ Assumptions: ASM-001 (medium impact, unconfirmed) — packers carry a camera phone.
141
+ Blockers: none. Conflicts: none.