@v11g/agents-rock 1.0.8 → 1.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (314) hide show
  1. package/README.md +2 -1
  2. package/package.json +2 -2
  3. package/plugins/business-analyst/.claude-plugin/plugin.json +1 -1
  4. package/plugins/business-analyst/evals/ba-interview-conflict/graders/conflict-quoted.md +15 -0
  5. package/plugins/business-analyst/evals/ba-interview-conflict/graders/no-internal-ids.md +9 -0
  6. package/plugins/business-analyst/evals/ba-interview-conflict/graders/one-question.md +15 -0
  7. package/plugins/business-analyst/evals/ba-interview-conflict/graders/skill-fired.md +7 -0
  8. package/plugins/business-analyst/evals/ba-interview-conflict/prompt.md +31 -0
  9. package/plugins/business-analyst/evals/ba-interview-first-turn/graders/no-internal-ids.md +9 -0
  10. package/plugins/business-analyst/evals/ba-interview-first-turn/graders/no-setup-questions.md +16 -0
  11. package/plugins/business-analyst/evals/ba-interview-first-turn/graders/one-scope-question.md +19 -0
  12. package/plugins/business-analyst/evals/ba-interview-first-turn/graders/skill-fired.md +7 -0
  13. package/plugins/business-analyst/evals/ba-interview-first-turn/prompt.md +31 -0
  14. package/plugins/business-analyst/evals/ba-review-page/case.yaml +4 -0
  15. package/plugins/business-analyst/evals/ba-review-page/fixture.sh +12 -0
  16. package/plugins/business-analyst/evals/ba-review-page/graders/decide-in-interview.md +26 -0
  17. package/plugins/business-analyst/evals/ba-review-page/graders/skill-fired.md +7 -0
  18. package/plugins/business-analyst/evals/ba-review-page/prompt.md +9 -0
  19. package/plugins/business-analyst/skills/business-analyst/README.md +8 -0
  20. package/plugins/business-analyst/skills/business-analyst/SKILL.md +47 -16
  21. package/plugins/business-analyst/skills/business-analyst/assets/review-page.html +68 -0
  22. package/plugins/business-analyst/skills/business-analyst/evals/evals.json +1 -1
  23. package/plugins/business-analyst/skills/business-analyst/references/frameworks.md +3 -2
  24. package/plugins/business-analyst/skills/business-analyst/references/interview.md +156 -8
  25. package/plugins/business-analyst/skills/business-analyst/references/review.md +18 -4
  26. package/plugins/business-analyst/skills/business-analyst/references/writing.md +49 -8
  27. package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/review_data.cpython-312.pyc +0 -0
  28. package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/review_layout.cpython-312.pyc +0 -0
  29. package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/review_page.cpython-312.pyc +0 -0
  30. package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/scope_checks.cpython-312.pyc +0 -0
  31. package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/scope_render.cpython-312.pyc +0 -0
  32. package/plugins/business-analyst/skills/business-analyst/scripts/__pycache__/validate.cpython-312.pyc +0 -0
  33. package/plugins/business-analyst/skills/business-analyst/scripts/lib/checks.mjs +12 -6
  34. package/plugins/business-analyst/skills/business-analyst/scripts/lib/review-data.mjs +66 -0
  35. package/plugins/business-analyst/skills/business-analyst/scripts/lib/review-layout.mjs +53 -0
  36. package/plugins/business-analyst/skills/business-analyst/scripts/lib/review-page.mjs +78 -0
  37. package/plugins/business-analyst/skills/business-analyst/scripts/lib/scope-checks.mjs +73 -0
  38. package/plugins/business-analyst/skills/business-analyst/scripts/lib/scope-md.mjs +53 -0
  39. package/plugins/business-analyst/skills/business-analyst/scripts/lib/scope-render.mjs +72 -0
  40. package/plugins/business-analyst/skills/business-analyst/scripts/lib/scope-rules.mjs +90 -0
  41. package/plugins/business-analyst/skills/business-analyst/scripts/review.mjs +48 -0
  42. package/plugins/business-analyst/skills/business-analyst/scripts/review.py +60 -0
  43. package/plugins/business-analyst/skills/business-analyst/scripts/review_data.py +81 -0
  44. package/plugins/business-analyst/skills/business-analyst/scripts/review_layout.py +50 -0
  45. package/plugins/business-analyst/skills/business-analyst/scripts/review_page.py +115 -0
  46. package/plugins/business-analyst/skills/business-analyst/scripts/scope.mjs +24 -0
  47. package/plugins/business-analyst/skills/business-analyst/scripts/scope.py +35 -0
  48. package/plugins/business-analyst/skills/business-analyst/scripts/scope_checks.py +168 -0
  49. package/plugins/business-analyst/skills/business-analyst/scripts/scope_render.py +140 -0
  50. package/plugins/business-analyst/skills/business-analyst/scripts/test/checks.test.mjs +27 -0
  51. package/plugins/business-analyst/skills/business-analyst/scripts/test/fixtures/requirements-workflow-pass.json +78 -0
  52. package/plugins/business-analyst/skills/business-analyst/scripts/test/fixtures/requirements-workflow-pass.md +136 -0
  53. package/plugins/business-analyst/skills/business-analyst/scripts/test/python-parity.test.mjs +88 -0
  54. package/plugins/business-analyst/skills/business-analyst/scripts/test/quality-gates.test.mjs +26 -0
  55. package/plugins/business-analyst/skills/business-analyst/scripts/test/review-browser.test.mjs +106 -0
  56. package/plugins/business-analyst/skills/business-analyst/scripts/test/review-fixture.mjs +32 -0
  57. package/plugins/business-analyst/skills/business-analyst/scripts/test/review-page.test.mjs +340 -0
  58. package/plugins/business-analyst/skills/business-analyst/scripts/test/review-parity.test.mjs +79 -0
  59. package/plugins/business-analyst/skills/business-analyst/scripts/test/scope-cases.mjs +58 -0
  60. package/plugins/business-analyst/skills/business-analyst/scripts/test/scope-checks.test.mjs +31 -0
  61. package/plugins/business-analyst/skills/business-analyst/scripts/test/scope-md.test.mjs +140 -0
  62. package/plugins/business-analyst/skills/business-analyst/scripts/validate.mjs +1 -1
  63. package/plugins/business-analyst/skills/business-analyst/scripts/validate.py +17 -8
  64. package/plugins/reasoning/.claude-plugin/plugin.json +1 -1
  65. package/plugins/reasoning/evals/format-handoff-folder/graders/folder-named.md +8 -0
  66. package/plugins/reasoning/evals/format-handoff-folder/graders/skill-fired.md +7 -0
  67. package/plugins/reasoning/evals/format-handoff-folder/prompt.md +9 -0
  68. package/plugins/reasoning/evals/format-ids-and-supports/graders/ids-in-chat.md +8 -0
  69. package/plugins/reasoning/evals/format-ids-and-supports/graders/skill-fired.md +7 -0
  70. package/plugins/reasoning/evals/format-ids-and-supports/graders/supports-resolve.md +11 -0
  71. package/plugins/reasoning/evals/format-ids-and-supports/prompt.md +8 -0
  72. package/plugins/reasoning/evals/format-root-candidate-status/graders/candidate-status.md +11 -0
  73. package/plugins/reasoning/evals/format-root-candidate-status/graders/skill-fired.md +7 -0
  74. package/plugins/reasoning/evals/format-root-candidate-status/prompt.md +8 -0
  75. package/plugins/reasoning/evals/format-unsaved-continues/graders/analysis-completes.md +9 -0
  76. package/plugins/reasoning/evals/format-unsaved-continues/graders/not-saved-stated.md +9 -0
  77. package/plugins/reasoning/evals/format-unsaved-continues/graders/skill-fired.md +7 -0
  78. package/plugins/reasoning/evals/format-unsaved-continues/prompt.md +8 -0
  79. package/plugins/reasoning/skills/problem-router/README.md +6 -0
  80. package/plugins/reasoning/skills/problem-router/SKILL.md +4 -0
  81. package/plugins/reasoning/skills/problem-router/references/contract.md +114 -19
  82. package/plugins/reasoning/skills/problem-solving/README.md +6 -0
  83. package/plugins/reasoning/skills/problem-solving/SKILL.md +2 -0
  84. package/plugins/reasoning/skills/problem-solving/references/contract.md +114 -19
  85. package/plugins/reasoning/skills/problem-solving/references/interview.md +2 -0
  86. package/plugins/reasoning/skills/systemic-design/README.md +3 -0
  87. package/plugins/reasoning/skills/systemic-design/SKILL.md +2 -0
  88. package/plugins/reasoning/skills/systemic-design/references/contract.md +114 -19
  89. package/plugins/reasoning/skills/systemic-design/references/interview.md +2 -0
  90. package/plugins/reasoning/skills/systems-thinking/README.md +3 -0
  91. package/plugins/reasoning/skills/systems-thinking/SKILL.md +2 -0
  92. package/plugins/reasoning/skills/systems-thinking/frameworks/leverage-points.md +15 -6
  93. package/plugins/reasoning/skills/systems-thinking/references/contract.md +114 -19
  94. package/plugins/reasoning/skills/systems-thinking/references/interview.md +2 -0
  95. package/plugins/solution-architect/.claude-plugin/plugin.json +1 -1
  96. package/plugins/solution-architect/evals/proposal-workflow/case.yaml +6 -0
  97. package/plugins/solution-architect/evals/proposal-workflow/fixture.sh +6 -0
  98. package/plugins/solution-architect/evals/proposal-workflow/graders/inputs-written.md +23 -0
  99. package/plugins/solution-architect/evals/proposal-workflow/graders/no-proposal-md.md +7 -0
  100. package/plugins/solution-architect/evals/proposal-workflow/graders/skill-fired.md +7 -0
  101. package/plugins/solution-architect/evals/proposal-workflow/graders/validate-then-render.md +16 -0
  102. package/plugins/solution-architect/evals/proposal-workflow/prompt.md +10 -0
  103. package/plugins/solution-architect/evals/workflow-gate-no-architecture/case.yaml +4 -0
  104. package/plugins/solution-architect/evals/workflow-gate-no-architecture/fixture.sh +6 -0
  105. package/plugins/solution-architect/evals/workflow-gate-no-architecture/graders/no-classic-fallback.md +10 -0
  106. package/plugins/solution-architect/evals/workflow-gate-no-architecture/graders/nothing-written.md +7 -0
  107. package/plugins/solution-architect/evals/workflow-gate-no-architecture/graders/skill-fired.md +7 -0
  108. package/plugins/solution-architect/evals/workflow-gate-no-architecture/graders/stops-at-gate.md +11 -0
  109. package/plugins/solution-architect/evals/workflow-gate-no-architecture/prompt.md +7 -0
  110. package/plugins/solution-architect/evals/workflow-happy-path/case.yaml +4 -0
  111. package/plugins/solution-architect/evals/workflow-happy-path/fixture.sh +6 -0
  112. package/plugins/solution-architect/evals/workflow-happy-path/graders/no-estimation-md.md +7 -0
  113. package/plugins/solution-architect/evals/workflow-happy-path/graders/pages-or-stop.md +16 -0
  114. package/plugins/solution-architect/evals/workflow-happy-path/graders/routed-to-workflow.md +12 -0
  115. package/plugins/solution-architect/evals/workflow-happy-path/graders/skill-fired.md +7 -0
  116. package/plugins/solution-architect/evals/workflow-happy-path/graders/three-questions-max.md +14 -0
  117. package/plugins/solution-architect/evals/workflow-happy-path/graders/workflow-or-exact-stop.md +15 -0
  118. package/plugins/solution-architect/evals/workflow-happy-path/prompt.md +9 -0
  119. package/plugins/solution-architect/skills/analyze-requirements/assets/viewer-template.html +11 -1
  120. package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/cdp.mjs +4 -1
  121. package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/quality-gate.mjs +16 -1
  122. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/browser.test.mjs +27 -0
  123. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/quality-gate.test.mjs +9 -0
  124. package/plugins/solution-architect/skills/estimate/README.md +38 -18
  125. package/plugins/solution-architect/skills/estimate/SKILL.md +16 -69
  126. package/plugins/solution-architect/skills/estimate/classic/FLOW.md +77 -0
  127. package/plugins/solution-architect/skills/estimate/{assets → classic/assets}/estimate-template-agentic.html +111 -138
  128. package/plugins/solution-architect/skills/estimate/{assets → classic/assets}/estimate-template.html +219 -445
  129. package/plugins/solution-architect/skills/estimate/{assets → classic/assets}/scores-review-template.html +5 -4
  130. package/plugins/solution-architect/skills/estimate/{references → classic/references}/agentic-estimation.md +4 -2
  131. package/plugins/solution-architect/skills/estimate/classic/references/ai-multipliers.md +57 -0
  132. package/plugins/solution-architect/skills/estimate/{references → classic/references}/interview.md +56 -35
  133. package/plugins/solution-architect/skills/estimate/{references → classic/references}/scoring-guide.md +40 -4
  134. package/plugins/solution-architect/skills/estimate/{references → classic/references}/task-shapes.md +1 -1
  135. package/plugins/solution-architect/skills/estimate/{references → classic/references}/techniques.md +29 -21
  136. package/plugins/solution-architect/skills/estimate/{references → classic/references}/writing.md +77 -45
  137. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/compute.mjs +1 -1
  138. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/checks.mjs +38 -6
  139. package/plugins/solution-architect/skills/estimate/classic/scripts/lib/redact.mjs +112 -0
  140. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/roadmap.mjs +4 -5
  141. package/plugins/solution-architect/skills/estimate/classic/scripts/lib/rollup.mjs +129 -0
  142. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/schema.mjs +31 -38
  143. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/score-csv.mjs +3 -3
  144. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/score-html.mjs +3 -3
  145. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/render.mjs +9 -8
  146. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/score-review.mjs +3 -3
  147. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/baselines.test.mjs +3 -3
  148. package/plugins/solution-architect/skills/estimate/classic/scripts/test/browser-agentic.test.mjs +143 -0
  149. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/browser.test.mjs +211 -52
  150. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/compute.test.mjs +58 -33
  151. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/e2e.test.mjs +55 -3
  152. package/plugins/solution-architect/skills/estimate/classic/scripts/test/estimate-math.test.mjs +44 -0
  153. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/agentic-estimation-fail.md +0 -10
  154. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/agentic-estimation-pass.md +0 -10
  155. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/agentic-inputs.json +1 -7
  156. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/booking-inputs.json +11 -10
  157. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/estimation-fail.md +6 -0
  158. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/estimation-pass.md +17 -21
  159. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/measurements.test.mjs +1 -1
  160. package/plugins/solution-architect/skills/estimate/classic/scripts/test/pricing.test.mjs +88 -0
  161. package/plugins/solution-architect/skills/estimate/classic/scripts/test/project-price.test.mjs +93 -0
  162. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/quality-gates.test.mjs +7 -1
  163. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/references.test.mjs +88 -26
  164. package/plugins/solution-architect/skills/estimate/classic/scripts/test/render.test.mjs +405 -0
  165. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/schema.test.mjs +114 -61
  166. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/score-review.test.mjs +37 -4
  167. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/scoring.test.mjs +1 -1
  168. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/url-state.test.mjs +2 -2
  169. package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/validate.test.mjs +104 -10
  170. package/plugins/solution-architect/skills/estimate/classic/scripts/test/xlsx-export.test.mjs +475 -0
  171. package/plugins/solution-architect/skills/estimate/classic/scripts/test/zip-store.test.mjs +26 -0
  172. package/plugins/solution-architect/skills/estimate/evals/evals.json +44 -9
  173. package/plugins/solution-architect/skills/estimate/evals/fixtures/workflow-sin-kowa-mini/ARCHITECTURE.md +28 -0
  174. package/plugins/solution-architect/skills/estimate/evals/fixtures/workflow-sin-kowa-mini/requirements.json +79 -0
  175. package/plugins/solution-architect/skills/estimate/evals/fixtures/workflow-sin-kowa-mini/requirements.md +141 -0
  176. package/plugins/solution-architect/skills/estimate/shared/assets/xlsx-export.js +336 -0
  177. package/plugins/solution-architect/skills/estimate/shared/lib/agentic-task-schema.mjs +24 -0
  178. package/plugins/solution-architect/skills/estimate/shared/lib/context-schema.mjs +35 -0
  179. package/plugins/solution-architect/skills/estimate/shared/lib/estimate-math.mjs +31 -0
  180. package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/inline.mjs +13 -5
  181. package/plugins/solution-architect/skills/estimate/shared/lib/pricing.mjs +78 -0
  182. package/plugins/solution-architect/skills/estimate/shared/lib/project-price.mjs +96 -0
  183. package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/scoring-schema.mjs +1 -1
  184. package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/scoring.mjs +3 -3
  185. package/plugins/solution-architect/skills/estimate/shared/lib/zip.mjs +60 -0
  186. package/plugins/solution-architect/skills/estimate/workflow-based/FLOW.md +91 -0
  187. package/plugins/solution-architect/skills/estimate/workflow-based/assets/estimate-components.html +994 -0
  188. package/plugins/solution-architect/skills/estimate/workflow-based/assets/estimate-template.html +440 -0
  189. package/plugins/solution-architect/skills/estimate/workflow-based/assets/estimator-system.xlsx +0 -0
  190. package/plugins/solution-architect/skills/estimate/workflow-based/assets/score-review.html +838 -0
  191. package/plugins/solution-architect/skills/estimate/workflow-based/references/hidden-work-by-type.md +429 -0
  192. package/plugins/solution-architect/skills/estimate/workflow-based/references/linking.md +59 -0
  193. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/build-components-template.mjs +80 -0
  194. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/build-template.mjs +60 -0
  195. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/build-workflow-template.mjs +51 -0
  196. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/build-xlsx-template.py +144 -0
  197. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/compute.mjs +32 -0
  198. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/page-html.mjs +44 -0
  199. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/page-view.mjs +71 -0
  200. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/pair-findings.mjs +19 -0
  201. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/requirements.mjs +33 -0
  202. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/rollup.mjs +66 -0
  203. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/schema-components.mjs +69 -0
  204. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/schema.mjs +70 -0
  205. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/score-diff.mjs +54 -0
  206. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/score-html.mjs +52 -0
  207. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/lib/xlsx-rows.mjs +51 -0
  208. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/render.mjs +42 -0
  209. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/score-review.mjs +46 -0
  210. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/template/arch-link.js +9 -0
  211. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/template/click.js +28 -0
  212. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/template/prelude.js +4 -0
  213. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/template/view.js +63 -0
  214. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/browser.test.mjs +127 -0
  215. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/build-pages.test.mjs +43 -0
  216. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/build-template.test.mjs +18 -0
  217. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/cli.test.mjs +48 -0
  218. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/estimator-system.test.mjs +66 -0
  219. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/fixtures/ARCHITECTURE-mini.md +31 -0
  220. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/fixtures/feedback.json +19 -0
  221. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/fixtures/inputs-pass.json +80 -0
  222. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/fixtures/measurements.jsonl +0 -0
  223. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/fixtures/requirements.json +79 -0
  224. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/page-view.test.mjs +54 -0
  225. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/pages-browser.test.mjs +209 -0
  226. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/quality-gates.test.mjs +25 -0
  227. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/render.test.mjs +54 -0
  228. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/requirements.test.mjs +33 -0
  229. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/rollup.test.mjs +80 -0
  230. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/schema.test.mjs +61 -0
  231. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/score-review.test.mjs +108 -0
  232. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/stage.mjs +32 -0
  233. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/workflow-script.test.mjs +24 -0
  234. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/test/xlsx-rows.test.mjs +58 -0
  235. package/plugins/solution-architect/skills/estimate/workflow-based/scripts/validate.mjs +19 -0
  236. package/plugins/solution-architect/skills/new-lead/SKILL.md +4 -3
  237. package/plugins/solution-architect/skills/proposal/README.md +22 -7
  238. package/plugins/solution-architect/skills/proposal/SKILL.md +18 -7
  239. package/plugins/solution-architect/skills/proposal/assets/proposal-workflow.html +143 -0
  240. package/plugins/solution-architect/skills/proposal/evals/evals.json +29 -11
  241. package/plugins/solution-architect/skills/proposal/evals/fixtures/gate-check-unpriced-harborline/ARCHITECTURE.md +65 -0
  242. package/plugins/solution-architect/skills/proposal/evals/fixtures/gate-check-unpriced-harborline/brief.md +21 -0
  243. package/plugins/solution-architect/skills/proposal/evals/fixtures/gate-check-unpriced-harborline/estimation-inputs.json +126 -0
  244. package/plugins/solution-architect/skills/proposal/evals/fixtures/gate-check-unpriced-harborline/estimation.json +215 -0
  245. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/estimation-inputs.json +224 -34
  246. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/estimation.json +103 -114
  247. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/estimation.md +48 -22
  248. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-meridian-dental/estimation-inputs.json +211 -33
  249. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-meridian-dental/estimation.json +102 -117
  250. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-meridian-dental/estimation.md +48 -25
  251. package/plugins/solution-architect/skills/proposal/evals/fixtures/workflow-sin-kowa-mini/ARCHITECTURE.md +31 -0
  252. package/plugins/solution-architect/skills/proposal/evals/fixtures/workflow-sin-kowa-mini/estimation-inputs.json +468 -0
  253. package/plugins/solution-architect/skills/proposal/evals/fixtures/workflow-sin-kowa-mini/estimation.json +773 -0
  254. package/plugins/solution-architect/skills/proposal/evals/fixtures/workflow-sin-kowa-mini/measurements.jsonl +0 -0
  255. package/plugins/solution-architect/skills/proposal/evals/fixtures/workflow-sin-kowa-mini/requirements.json +79 -0
  256. package/plugins/solution-architect/skills/proposal/references/interview.md +3 -6
  257. package/plugins/solution-architect/skills/proposal/references/review.md +16 -4
  258. package/plugins/solution-architect/skills/proposal/references/workflow.md +88 -0
  259. package/plugins/solution-architect/skills/proposal/references/writing.md +33 -31
  260. package/plugins/solution-architect/skills/proposal/scripts/derive.mjs +1 -1
  261. package/plugins/solution-architect/skills/proposal/scripts/lib/checks-client.mjs +5 -22
  262. package/plugins/solution-architect/skills/proposal/scripts/lib/checks-doc.mjs +18 -8
  263. package/plugins/solution-architect/skills/proposal/scripts/lib/checks.mjs +6 -2
  264. package/plugins/solution-architect/skills/proposal/scripts/lib/docx-body.mjs +42 -0
  265. package/plugins/solution-architect/skills/proposal/scripts/lib/docx-package.mjs +56 -0
  266. package/plugins/solution-architect/skills/proposal/scripts/lib/docx-xml.mjs +44 -0
  267. package/plugins/solution-architect/skills/proposal/scripts/lib/figures.mjs +24 -33
  268. package/plugins/solution-architect/skills/proposal/scripts/lib/sections.mjs +1 -1
  269. package/plugins/solution-architect/skills/proposal/scripts/lib/workflow-checks.mjs +71 -0
  270. package/plugins/solution-architect/skills/proposal/scripts/lib/workflow-cli.mjs +46 -0
  271. package/plugins/solution-architect/skills/proposal/scripts/lib/workflow-html.mjs +39 -0
  272. package/plugins/solution-architect/skills/proposal/scripts/lib/workflow-lead.mjs +45 -0
  273. package/plugins/solution-architect/skills/proposal/scripts/lib/workflow-page.mjs +30 -0
  274. package/plugins/solution-architect/skills/proposal/scripts/lib/workflow-view.mjs +80 -0
  275. package/plugins/solution-architect/skills/proposal/scripts/render.mjs +5 -1
  276. package/plugins/solution-architect/skills/proposal/scripts/test/checks-client.test.mjs +50 -47
  277. package/plugins/solution-architect/skills/proposal/scripts/test/checks-doc.test.mjs +99 -40
  278. package/plugins/solution-architect/skills/proposal/scripts/test/docs.test.mjs +11 -5
  279. package/plugins/solution-architect/skills/proposal/scripts/test/docx.test.mjs +68 -0
  280. package/plugins/solution-architect/skills/proposal/scripts/test/e2e.test.mjs +3 -3
  281. package/plugins/solution-architect/skills/proposal/scripts/test/evals-fixtures.test.mjs +46 -0
  282. package/plugins/solution-architect/skills/proposal/scripts/test/figures.test.mjs +67 -54
  283. package/plugins/solution-architect/skills/proposal/scripts/test/fixtures/proposal-fail.md +6 -1
  284. package/plugins/solution-architect/skills/proposal/scripts/test/fixtures/proposal-inputs-pass.json +17 -0
  285. package/plugins/solution-architect/skills/proposal/scripts/test/fixtures/proposal-pass.md +8 -12
  286. package/plugins/solution-architect/skills/proposal/scripts/test/render.test.mjs +3 -3
  287. package/plugins/solution-architect/skills/proposal/scripts/test/validate.test.mjs +5 -4
  288. package/plugins/solution-architect/skills/proposal/scripts/test/workflow-browser.test.mjs +96 -0
  289. package/plugins/solution-architect/skills/proposal/scripts/test/workflow-checks.test.mjs +98 -0
  290. package/plugins/solution-architect/skills/proposal/scripts/test/workflow-docs.test.mjs +25 -0
  291. package/plugins/solution-architect/skills/proposal/scripts/test/workflow-render.test.mjs +75 -0
  292. package/plugins/solution-architect/skills/proposal/scripts/test/workflow-stage.mjs +15 -0
  293. package/plugins/solution-architect/skills/proposal/scripts/test/workflow-view.test.mjs +78 -0
  294. package/plugins/solution-architect/skills/proposal/scripts/validate.mjs +4 -1
  295. package/plugins/solution-architect/workflows/review-links.js +61 -0
  296. package/plugins/solution-architect/skills/estimate/references/ai-multipliers.md +0 -101
  297. package/plugins/solution-architect/skills/estimate/scripts/lib/estimate-math.mjs +0 -89
  298. package/plugins/solution-architect/skills/estimate/scripts/lib/redact.mjs +0 -64
  299. package/plugins/solution-architect/skills/estimate/scripts/lib/rollup.mjs +0 -154
  300. package/plugins/solution-architect/skills/estimate/scripts/lib/scenario-schema.mjs +0 -39
  301. package/plugins/solution-architect/skills/estimate/scripts/test/estimate-math.test.mjs +0 -131
  302. package/plugins/solution-architect/skills/estimate/scripts/test/render.test.mjs +0 -251
  303. package/plugins/solution-architect/skills/estimate/scripts/test/xlsx-export.test.mjs +0 -254
  304. /package/plugins/solution-architect/skills/estimate/{references → classic/references}/slicing.md +0 -0
  305. /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/agentic-checks.mjs +0 -0
  306. /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/components.mjs +0 -0
  307. /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/md-tables.mjs +0 -0
  308. /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/lib/scoring-checks.mjs +0 -0
  309. /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/fixtures/measurements.jsonl +0 -0
  310. /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/test/zip.mjs +0 -0
  311. /package/plugins/solution-architect/skills/estimate/{scripts → classic/scripts}/validate.mjs +0 -0
  312. /package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/baselines.mjs +0 -0
  313. /package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/measurements.mjs +0 -0
  314. /package/plugins/solution-architect/skills/estimate/{scripts → shared}/lib/score-diff.mjs +0 -0
@@ -5,7 +5,7 @@
5
5
  <head>
6
6
  <meta charset="utf-8">
7
7
  <meta name="viewport" content="width=device-width, initial-scale=1">
8
- <meta name="description" content="Interactive project estimate with scenario comparison">
8
+ <meta name="description" content="Interactive project estimate with a scored price range">
9
9
  <link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Crect width='16' height='16' rx='3' fill='%230f766e'/%3E%3C/svg%3E">
10
10
  <title><!-- slot:TITLE --> — Estimate</title>
11
11
  <style>
@@ -100,8 +100,8 @@ main section h2, main aside h2 {
100
100
  }
101
101
  .sec-head { display:flex; align-items:center; gap:.45rem; margin:0 0 .8rem; }
102
102
  .sec-head h2 { margin:0; }
103
- /* summary: the estimate's headline — team, months and cost stated once, then
104
- the committed alternatives as one small table (internal view only). */
103
+ /* summary: the estimate's headline — the presented price range stated once,
104
+ then the working behind it as small tables (internal view only). */
105
105
  #summary .lead { font-size:1.02rem; font-weight:600; margin:0 0 .25rem; }
106
106
  #summary .figures {
107
107
  font-size:1.7rem; font-weight:600; letter-spacing:-.02em; line-height:1.15;
@@ -111,17 +111,13 @@ main section h2, main aside h2 {
111
111
  #summary .range, #summary .meta {
112
112
  margin:.15rem 0; font-family:'IBM Plex Mono',monospace; font-size:.78rem; color:var(--ink-dim);
113
113
  }
114
- #summary .alts { margin-top:.9rem; padding-top:.7rem; border-top:1px solid var(--border); }
115
- #summary .alts caption {
114
+ #summary .working { margin-top:.9rem; padding-top:.7rem; border-top:1px solid var(--border); }
115
+ #summary .working caption {
116
116
  text-align:left; font-size:.72rem; text-transform:uppercase; letter-spacing:.05em;
117
117
  color:var(--ink-dim); margin-bottom:.3rem;
118
118
  }
119
- #summary .why { font-size:.84rem; margin:0 0 .5rem; }
120
- #summary .delta {
121
- font-family:'IBM Plex Mono',monospace; font-size:.72rem; color:var(--warn);
122
- background:var(--warn-soft); padding:.12rem .4rem; border-radius:.25rem;
123
- }
124
- #summary .insight { font-size:.86rem; margin:.6rem 0 0; }
119
+ #summary .working table + table { margin-top:1.1rem; }
120
+ #summary .why { font-size:.84rem; margin:.5rem 0 0; }
125
121
  details.help { position:relative; display:inline-block; line-height:1; }
126
122
  details.help summary {
127
123
  list-style:none; cursor:help; width:1.05rem; height:1.05rem; border-radius:50%;
@@ -149,11 +145,11 @@ td details.help > p, caption details.help > p { left:auto; right:0; }
149
145
  #method li { margin-bottom:.35rem; }
150
146
  #method .sources { font-size:.78rem; color:var(--ink-dim); margin:0; }
151
147
  #method .sources span { display:block; margin-bottom:.2rem; }
152
- /* roadmap: Gantt-style shared axis. Every row is a flex triple (label |
153
- track | months) with the same label/months widths as the axis strip below
154
- it, so a given month lines up under the same x-position in every row's
155
- track and in the axis ticks — one shared coordinate system, not a
156
- per-row axis. */
148
+ /* roadmap: shares of total effort on one shared axis. Every row is a flex
149
+ triple (label | track | share) with the same label/share widths as the axis
150
+ strip below it, so a given percentage lines up under the same x-position in
151
+ every row's track and in the axis ticks — one shared coordinate system, not
152
+ a per-row axis. */
157
153
  .roadmap-chart { display:flex; flex-direction:column; }
158
154
  .roadmap-row { display:flex; align-items:center; gap:.7rem; padding:.4rem 0; cursor:pointer; }
159
155
  .roadmap-row:hover { background:var(--accent-soft); }
@@ -171,13 +167,13 @@ td details.help > p, caption details.help > p { left:auto; right:0; }
171
167
  display:flex; overflow:hidden; /* container segments fill it left to right */
172
168
  }
173
169
  .roadmap-seg { height:100%; }
174
- .roadmap-months {
170
+ .roadmap-share {
175
171
  flex:0 0 auto; min-width:4.6rem; text-align:right;
176
172
  font-family:'IBM Plex Mono',monospace; font-size:.72rem;
177
173
  color:var(--ink-dim); font-variant-numeric:tabular-nums;
178
174
  }
179
- /* the axis mirrors the row's flex geometry (same label/months widths) so its
180
- ticks land under the matching month position in every track above. */
175
+ /* the axis mirrors the row's flex geometry (same label/share widths) so its
176
+ ticks land under the matching percentage in every track above. */
181
177
  .roadmap-axis {
182
178
  display:flex; align-items:flex-end; gap:.7rem; height:1rem; margin-top:.6rem;
183
179
  padding-top:.4rem; border-top:1px solid var(--border);
@@ -282,7 +278,6 @@ td.ct-edge { box-shadow:inset 4px 0 0 var(--ct-color); }
282
278
  .tier.l { background:var(--warn-soft); color:var(--warn); }
283
279
  .tier.xl { background:rgba(185,28,28,.1); color:var(--bad); }
284
280
  #feature-table .edge { color:var(--warn); font-size:.7rem; margin-left:.15rem; cursor:help; }
285
- #feature-table .oob { color:var(--warn); margin-left:.3rem; cursor:help; }
286
281
  #feature-table .feat-note { margin-left:1.4rem; }
287
282
  #feature-table details.guide { margin:.9rem 0 0; border-top:1px solid var(--border); padding-top:.7rem; }
288
283
  #feature-table details.guide summary { cursor:pointer; font-size:.78rem; font-weight:600; color:var(--ink-dim); }
@@ -388,81 +383,61 @@ const badge = document.getElementById('confidence-badge');
388
383
  badge.textContent = DATA.computed.projectConfidence;
389
384
  badge.className = `${DATA.computed.projectConfidence.toLowerCase()} ${confLevel(DATA.computed.projectConfidence)}`;
390
385
 
391
- // Summary: the recommended scenario stated once — team, AI assistance,
392
- // months, cost — then the committed alternatives as one small table. Every
393
- // number is read from estimation.json; nothing is recomputed on the page.
394
- const recScenario = () => DATA.inputs.scenarios.find((s) => s.id === DATA.inputs.recommendedScenario);
395
- const sameTeam = (a, b) => a.team.length === b.team.length
396
- && a.team.every((m, i) => m.seniority === b.team[i].seniority && m.rate === b.team[i].rate);
397
- const byMonths = (a, b) => DATA.computed.scenarios[a.id].months - DATA.computed.scenarios[b.id].months;
398
-
399
- function scenarioLabel(s) {
400
- const n = s.team.length;
401
- const who = n === 1 ? `1 ${s.team[0].seniority} engineer`
402
- : `${n} engineers (${s.team.map((m) => m.seniority).join(' · ')})`;
403
- return `${who}, ${s.aiAssisted ? 'AI-assisted' : 'humans unaided'}`;
404
- }
405
-
406
- // Signed month and cost deltas against the recommended scenario.
407
- function deltaText(c, rec) {
408
- const dm = c.months - rec.months;
409
- const dc = c.totalCost - rec.totalCost;
410
- const sign = (v) => (v >= 0 ? '+' : '−');
411
- return `${sign(dm)}${Math.abs(dm).toFixed(2)} mo · ${sign(dc)}${fmtMoney(Math.abs(dc))}`;
412
- }
413
-
414
- function altRow(s, rec) {
415
- const c = DATA.computed.scenarios[s.id];
416
- return `<tr><td>${scenarioLabel(s)}</td><td class="num">${c.months.toFixed(2)}</td>
417
- <td class="num">${fmtMoney(c.totalCost)}</td><td><span class="delta">${deltaText(c, rec)}</span></td></tr>`;
418
- }
419
-
420
- // A same-roster scenario that differs only in AI assistance is one line, not
421
- // a row: the roster is what a reader chooses between.
422
- function aiVariantLine(s, rec) {
423
- const c = DATA.computed.scenarios[s.id];
424
- return `<p class="meta">${s.aiAssisted ? 'With' : 'Without'} AI assistance: ${c.months.toFixed(2)} months · `
425
- + `${fmtMoney(c.totalCost)} (${deltaText(c, rec)})</p>`;
426
- }
427
-
428
- // One sentence, only when an alternative beats the recommendation on both
429
- // axes — the page must not bury a dominated choice.
430
- function insightLine(alts, rec) {
431
- const c = (s) => DATA.computed.scenarios[s.id];
432
- const win = alts.find((s) => c(s).months < rec.months && c(s).totalCost < rec.totalCost);
433
- if (!win) return '';
434
- return `<p class="insight">&#9656; ${scenarioLabel(win)} finishes ${(rec.months - c(win).months).toFixed(2)} months `
435
- + `sooner for ${fmtMoney(rec.totalCost - c(win).totalCost)} less than the recommended plan.</p>`;
436
- }
437
-
438
- function summaryAlts(rec, recC) {
439
- const others = DATA.inputs.scenarios.filter((s) => s.id !== rec.id);
440
- if (!others.length) return '';
441
- const teams = others.filter((s) => !sameTeam(s, rec)).sort(byMonths);
442
- const variants = others.filter((s) => sameTeam(s, rec)).map((s) => aiVariantLine(s, recC)).join('');
443
- const table = teams.length ? `<table><caption>Alternatives</caption><thead><tr><th>Team</th>
444
- <th class="num">Months</th><th class="num">Cost</th><th></th></tr></thead>
445
- <tbody>${teams.map((s) => altRow(s, recC)).join('')}</tbody></table>` : '';
446
- const why = DATA.inputs.recommendedReason
447
- ? `<p class="why">Recommended because ${esc(DATA.inputs.recommendedReason)}.</p>` : '';
448
- return `<div class="alts" ${INTERNAL_ATTR}>${why}${variants}${table}${insightLine(teams, recC)}</div>`;
449
- }
450
-
451
- // The client-facing range from proposal-figures.json, when render.mjs was
452
- // handed it — the number the client is actually quoted.
386
+ // Summary: the price, stated once — the range this scope is presented at,
387
+ // the single number if one is demanded, and how wide the spread behind them
388
+ // is. Every number is read from estimation.json's price block; nothing is
389
+ // recomputed on the page, and nothing here is a duration: the model prices
390
+ // scope, it does not schedule it.
391
+ const pctText = (v) => `${Math.round(v * 100)}%`;
392
+
393
+ // The client-facing figures from proposal-figures.json, when render.mjs was
394
+ // handed them — what the client is actually quoted, cost only. Only
395
+ // meaningful once this scope is priced.
453
396
  function summaryRange() {
454
397
  const f = DATA.figures;
455
- if (!f?.cost || !f?.months) return '';
456
- return `<p class="range">range ${f.months.low} – ${f.months.high} months · ${fmtMoney(f.cost.low)} – ${fmtMoney(f.cost.high)}</p>`;
457
- }
458
-
459
- function summarySize(recC) {
398
+ if (!f?.cost) return '';
399
+ const single = f.singleNumber ? ` &middot; single number ${fmtMoney(f.singleNumber)}` : '';
400
+ return `<p class="range">proposal ${fmtMoney(f.cost.low)} &ndash; ${fmtMoney(f.cost.high)}${single}</p>`;
401
+ }
402
+
403
+ // R50: "priced" keys on computed.price.p50 !== 0 (some feature scored), not
404
+ // on depth or delivery mode. A QUICK-depth estimate scores no feature and
405
+ // hits the same all-zero price an agentic estimate does (see
406
+ // estimate-template-agentic.html), so it takes the same honest state instead
407
+ // of presenting a bare zero as if it were a quote.
408
+ function summaryUnpriced() {
409
+ const hours = DATA.inputs.features.reduce((n, f) => n + DATA.computed.features[f.id].hours, 0);
410
+ return `<p class="lead">Not priced</p>
411
+ <p class="figures">${hours.toFixed(2)} h</p>
412
+ <p class="meta">No feature carries a score at ${DATA.inputs.depth} depth — this scope is not
413
+ priced. Hours below are for planning only, not a quote.</p>`;
414
+ }
415
+
416
+ function summaryPriced(p) {
417
+ return `<p class="lead">Presented range</p>
418
+ <p class="figures">${fmtMoney(p.presentLow)}<span class="sep">&ndash;</span>${fmtMoney(p.presentHigh)}</p>
419
+ <p class="meta">single number, if one is required: ${fmtMoney(p.singleNumber)}</p>
420
+ <p class="meta">contingency ${pctText(p.contingencyRate)} · implied accuracy ${pctText(p.impliedAccuracy)}</p>`;
421
+ }
422
+
423
+ // Hours survive as delivery planning only — they size the backlog and they
424
+ // never convert into the price above them. The project total is internal: a
425
+ // client shown hours beside the price divides one by the other (spec §3/§12,
426
+ // R61). A --client-only render has no view toggle and never draws it; the
427
+ // internal page marks it so the client-view preview hides it too.
428
+ function summaryHours(feats) {
429
+ if (!document.getElementById('view-toggle')) return '';
430
+ const hours = feats.reduce((n, f) => n + DATA.computed.features[f.id].hours, 0);
431
+ return `<span ${INTERNAL_ATTR}>${Math.round(hours).toLocaleString()} h to plan · </span>`;
432
+ }
433
+
434
+ function summarySize() {
460
435
  const feats = DATA.inputs.features;
461
436
  const tasks = feats.reduce((n, f) => n + f.tasks.length, 0);
462
437
  const milestones = new Set(feats.map((f) => f.milestone).filter(Boolean)).size;
463
- const parts = [`${Math.round(recC.hours).toLocaleString()} h`, `${feats.length} features`, `${tasks} tasks`];
438
+ const parts = [`${feats.length} features`, `${tasks} tasks`];
464
439
  if (milestones) parts.push(`${milestones} milestones`);
465
- return parts.join(' · ');
440
+ return summaryHours(feats) + parts.join(' · ');
466
441
  }
467
442
 
468
443
  function summaryMethod() {
@@ -472,25 +447,33 @@ function summaryMethod() {
472
447
  }
473
448
 
474
449
  function summaryRisks() {
475
- return `${DATA.inputs.risks.length} risks priced in (${DATA.computed.riskBufferHours} h) · `
476
- + `${DATA.inputs.assumptions.length} assumptions`;
450
+ return `${DATA.inputs.risks.length} risks · ${DATA.inputs.assumptions.length} assumptions`;
451
+ }
452
+
453
+ // Free text the writer chose to leave about the approach — delivery mode,
454
+ // technique, anything else worth a sentence (references/writing.md §1). It
455
+ // explains a judgment call, not a choice between priced options.
456
+ function summaryApproach() {
457
+ const why = DATA.inputs.recommendedReason;
458
+ return why ? `<p class="why" ${INTERNAL_ATTR}>Approach: ${esc(why)}.</p>` : '';
477
459
  }
478
460
 
479
461
  function renderSummary() {
480
462
  const el = document.getElementById('summary');
481
463
  if (!el) return;
482
- const rec = recScenario();
483
- const recC = DATA.computed.scenarios[rec.id];
464
+ const p = DATA.computed.price;
465
+ const priced = p.p50 !== 0;
484
466
  el.innerHTML = secHead('Summary',
485
- 'The recommended way to deliver this scope, stated once: team, months and cost from the '
486
- + 'committed estimate. Alternatives compare other rosters against it.')
487
- + `<p class="lead">${scenarioLabel(rec)}</p>
488
- <p class="figures">${recC.months.toFixed(2)} months<span class="sep">&middot;</span>${fmtMoney(recC.totalCost)}</p>
489
- ${summaryRange()}
490
- <p class="meta">${summarySize(recC)}</p>
467
+ 'What this scope is priced at, stated once: the range presented to the client, the '
468
+ + 'single number to give if one is demanded, and the contingency and spread behind '
469
+ + 'both. Shares of effort are shown below; no duration is produced anywhere.')
470
+ + (priced ? summaryPriced(p) : summaryUnpriced())
471
+ + (priced ? summaryRange() : '')
472
+ + `<p class="meta">${summarySize()}</p>
491
473
  <p class="meta">${summaryMethod()}</p>
492
474
  <p class="meta">${summaryRisks()}</p>
493
- ${summaryAlts(rec, recC)}`;
475
+ ${summaryApproach()}
476
+ <div class="working" id="price-working" ${INTERNAL_ATTR}></div>`;
494
477
  }
495
478
 
496
479
  const fmtMoney = (v) => `$${Math.round(v).toLocaleString()}`;
@@ -533,6 +516,10 @@ function ctEdge(component) {
533
516
  // from hours; Σ and tier were copied into computed.features by rollup.mjs.
534
517
  // A page with no scored feature (QUICK depth) shows the four estimate columns.
535
518
  const SCORED = DATA.inputs.features.length > 0 && DATA.inputs.features.every((f) => f.scores);
519
+ // The tier is the price band a score bought, so it is pricing working: a
520
+ // --client-only render has it stripped out of computed.features entirely
521
+ // (redact.mjs), and the column goes with it rather than rendering blanks.
522
+ const TIERED = SCORED && DATA.inputs.features.every((f) => DATA.computed.features[f.id].tier);
536
523
  const SCORE_KEYS = ['tech', 'size', 'deps', 'unc', 'risk'];
537
524
  const SCORE_LABELS = { tech: 'Tech', size: 'Size', deps: 'Deps', unc: 'Unc', risk: 'Risk' };
538
525
  const EDGE_TOTALS = [11, 17, 22];
@@ -567,9 +554,12 @@ function bdCols(tab) {
567
554
  const scoreCols = SCORE_KEYS.map((k) => ({
568
555
  key: k, label: SCORE_LABELS[k], cls: 'score', val: (f) => f.scores[k].n, hint: `sort by ${SCORE_LABELS[k]} score`,
569
556
  }));
570
- return [BASE_COLS.name, ...scoreCols,
571
- { key: 'total', label: '&Sigma;', cls: 'score', val: (f) => f.scoreTotal, hint: 'sum of the five scores' },
572
- { key: 'tier', label: 'Tier', cls: 'score', val: (f) => f.scoreTotal, hint: 'S ≤ 11 / M ≤ 17 / L ≤ 22 / XL above' }];
557
+ const cols = [BASE_COLS.name, ...scoreCols,
558
+ { key: 'total', label: 'Score', cls: 'score', val: (f) => f.scoreTotal,
559
+ hint: 'weighted score: uncertainty 30%, tech, deps and risk 20% each, size 10%, on a 5-25 scale' }];
560
+ if (!TIERED) return cols;
561
+ return [...cols, { key: 'tier', label: 'Tier', cls: 'score', internal: true,
562
+ val: (f) => f.scoreTotal, hint: 'S < 11.5 / M < 17.5 / L < 22.5 / XL from 22.5' }];
573
563
  }
574
564
 
575
565
  const bdTabs = () => (SCORED ? TABS.map(([id]) => id) : ['estimate']);
@@ -579,12 +569,10 @@ function breakdownData() {
579
569
  const c = DATA.computed.features[f.id];
580
570
  const conf = f.tasks.reduce(
581
571
  (w, t) => (CONF_RANK[t.confidence] > CONF_RANK[w] ? t.confidence : w), 'HIGH');
582
- const band = c.tier ? DATA.inputs.calibration?.[c.tier] : undefined;
583
572
  return { id: f.id, name: f.name, milestone: f.milestone, component: f.component, provenance: f.provenance,
584
573
  tasks: f.tasks, conf, hours: c.hours, low: c.low, high: c.high, spread: c.high - c.low,
585
574
  scores: f.scores, scoreNote: f.scoreNote, scoreProvenance: f.scoreProvenance,
586
- scoreTotal: c.scoreTotal, tier: c.tier,
587
- outOfBand: band && (c.hours < band[0] || c.hours > band[1]) ? band : null };
575
+ scoreTotal: c.scoreTotal, tier: c.tier };
588
576
  });
589
577
  }
590
578
 
@@ -720,7 +708,7 @@ function bdTabStrip() {
720
708
  function bdDownloadBtn() {
721
709
  return `<span class="bd-filter-group" role="group" aria-label="export">
722
710
  <button type="button" data-download ${INTERNAL_ATTR}
723
- title="download visible rows as a scoring spreadsheet">download xlsx</button></span>`;
711
+ title="download every feature as a scoring spreadsheet">download xlsx</button></span>`;
724
712
  }
725
713
 
726
714
  function selectBox({ name, key, current, pairs }) {
@@ -768,7 +756,7 @@ function bdHead(tab) {
768
756
  const active = !bdState.group && key === c.key;
769
757
  const aria = active ? (dir === 1 ? 'ascending' : 'descending') : 'none';
770
758
  const arrow = active ? (dir === 1 ? ' &#9650;' : ' &#9660;') : '';
771
- return `<th aria-sort="${aria}"${c.cls ? ` class="${c.cls}"` : ''}>
759
+ return `<th aria-sort="${aria}"${c.cls ? ` class="${c.cls}"` : ''}${c.internal ? ` ${INTERNAL_ATTR}` : ''}>
772
760
  <button type="button" data-sort="${c.key}" data-panel="${tab}" title="${c.hint}">${c.label}${arrow}</button></th>`;
773
761
  }).join('')}</tr></thead>`;
774
762
  }
@@ -792,14 +780,13 @@ function scoreCells(f) {
792
780
  });
793
781
  const edge = EDGE_TOTALS.includes(f.scoreTotal)
794
782
  ? ' <span class="edge" title="one point from the next tier">&#9873;</span>' : '';
795
- return `${cells.join('')}<td class="score total">${f.scoreTotal}${edge}</td>
796
- <td class="score"><span class="tier ${f.tier.toLowerCase()}">${f.tier}</span></td>`;
783
+ const tier = TIERED
784
+ ? `<td class="score" ${INTERNAL_ATTR}><span class="tier ${f.tier.toLowerCase()}">${f.tier}</span></td>` : '';
785
+ return `${cells.join('')}<td class="score total">${f.scoreTotal}${edge}</td>${tier}`;
797
786
  }
798
787
 
799
788
  function hoursCell(f, max) {
800
- const warn = f.outOfBand
801
- ? `<span class="oob" title="PERT ${f.hours} h outside ${f.tier} band ${f.outOfBand[0]}–${f.outOfBand[1]} h">&#9888;</span>` : '';
802
- return `<td><span class="bd-cell">${bdBar(f, max)}<span class="bd-num">${f.hours}</span>${warn}</span></td>`;
789
+ return `<td><span class="bd-cell">${bdBar(f, max)}<span class="bd-num">${f.hours}</span></span></td>`;
803
790
  }
804
791
 
805
792
  function estimateCells(f) {
@@ -834,11 +821,16 @@ function scoreRow(f) {
834
821
  // Task rows sit under the feature's name and fill the estimate tab's four
835
822
  // columns exactly — tasks carry three-point hours, a confidence and a
836
823
  // category, never scores, which is why they have no home on the other tab.
824
+ // Task rows are internal-only in every render (the whole row carries
825
+ // INTERNAL_ATTR), but the same JS builds both tabs' markup regardless of
826
+ // which one is visible, so a --client-only page still runs this over tasks
827
+ // whose confidence/assumptions redact.mjs has stripped (R49) — null-guarded,
828
+ // not assumed, same as every other stripped field on this page.
837
829
  function taskRows(f) {
838
- return f.tasks.map((t) => `<tr class="task-row ${confLevel(t.confidence)}" ${INTERNAL_ATTR}>
839
- <td${ctEdge(f.component)}>${t.name}<div class="task-assump">${t.assumptions.join('; ') || 'none'}</div></td>
830
+ return f.tasks.map((t) => `<tr class="task-row ${t.confidence ? confLevel(t.confidence) : ''}" ${INTERNAL_ATTR}>
831
+ <td${ctEdge(f.component)}>${t.name}<div class="task-assump">${(t.assumptions ?? []).join('; ') || 'none'}</div></td>
840
832
  <td><span class="bd-cell"><span class="bd-num">${t.o}/${t.m}/${t.p}</span></span></td>
841
- <td><span class="conf">${t.confidence}</span></td>
833
+ <td><span class="conf">${t.confidence ?? ''}</span></td>
842
834
  <td><span class="tag">${t.category}</span></td></tr>`).join('');
843
835
  }
844
836
 
@@ -857,7 +849,7 @@ function rationaleRows(f) {
857
849
  const cite = s.cite ? `<span class="cite" ${INTERNAL_ATTR}>${esc(s.cite)}</span>` : '';
858
850
  return `<dt>${SCORE_LABELS[k]} ${s.n}</dt><dd>${esc(s.anchor)}${cite}</dd>`;
859
851
  }).join('');
860
- return `<tr class="rat-row"><td${ctEdge(f.component)} colspan="${SCORE_KEYS.length + 3}">
852
+ return `<tr class="rat-row"><td${ctEdge(f.component)} colspan="${bdCols('scoring').length}">
861
853
  <dl class="rationale">${items}</dl></td></tr>`;
862
854
  }
863
855
 
@@ -1006,21 +998,13 @@ function onRoadmapClick(e) {
1006
998
  document.getElementById('feature-table')?.scrollIntoView({ behavior: 'smooth', block: 'start' });
1007
999
  }
1008
1000
 
1009
- // Ticks are whole months (0, 1, 2…) once the span is long enough for that to
1010
- // read as a timeline; below that a whole-month grid would be a bare "0", so
1011
- // fall back to each band's own start/end. Either way ticks are computed once
1012
- // and shared by every row's gridlines and the axis strip below them — one
1013
- // coordinate system, not a per-row axis.
1014
- function roadmapTicks(total, roadmap) {
1015
- if (total >= 2) {
1016
- const whole = [];
1017
- for (let m = 0; m <= Math.floor(total); m++) whole.push(m);
1018
- return whole;
1019
- }
1020
- return [...new Set(roadmap.flatMap((b) => [b.startMonths, b.endMonths]))].sort((a, b) => a - b);
1021
- }
1001
+ // The roadmap's scale is a share of the whole scope, not elapsed time: the
1002
+ // milestone shares computed.roadmap carries sum to 1, so the axis is a fixed
1003
+ // 0–100% and every row's gridlines and the axis strip below them read off the
1004
+ // same quarters — one coordinate system, not a per-row axis.
1005
+ const SHARE_TICKS = [0, 25, 50, 75, 100];
1022
1006
 
1023
- const tickPct = (m, total) => (total > 0 ? (m / total) * 100 : 0);
1007
+ const edgeStyle = (pct, pin) => (pct <= 0 ? `left:0${pin}` : pct >= 100 ? `right:0${pin}` : `left:${pct}%`);
1024
1008
 
1025
1009
  // Milestone names and feature lists are the only free text the roadmap draws, and
1026
1010
  // they now land in an attribute as well as in the body — so both are escaped
@@ -1046,60 +1030,49 @@ function bandSegments(band) {
1046
1030
  title="${esc(`${names[c] ?? c} · ${h.toFixed(2)}h (${Math.round((h / sum) * 100)}%)`)}"></span>`).join('');
1047
1031
  }
1048
1032
 
1049
- // total, names and ticks are one thing — the chart's scale, shared by every row
1050
- // and by the axis beneath them — so they travel together.
1051
- function roadmapRow(band, scale) {
1052
- const { total, names, ticks } = scale;
1053
- const left = (band.startMonths / total) * 100;
1054
- const width = ((band.endMonths - band.startMonths) / total) * 100;
1055
- const gridlines = ticks.map((m) => {
1056
- const pct = tickPct(m, total);
1057
- const style = pct <= 0 ? 'left:0' : pct >= 100 ? 'right:0' : `left:${pct}%`;
1058
- return `<span class="roadmap-gridline" style="${style}"></span>`;
1059
- }).join('');
1033
+ const ROADMAP_GRIDLINES = SHARE_TICKS
1034
+ .map((t) => `<span class="roadmap-gridline" style="${edgeStyle(t, '')}"></span>`).join('');
1035
+
1036
+ // Every bar starts at the left edge: the rows are shares of one whole, read
1037
+ // against each other, and sliding them along an axis would draw a sequence
1038
+ // in time that nothing computed.
1039
+ function roadmapRow(band, names) {
1060
1040
  // 150px of label column against "M1 - Foundation: the governed write path": every
1061
- // row clips, and a clipped Gantt label names nothing. Widening the column would
1062
- // cost the axis the span it needs, so each label carries its own full text as a
1063
- // hover title instead.
1041
+ // row clips, and a clipped label names nothing. Widening the column would cost the
1042
+ // bars the span they need, so each label carries its own full text as a hover
1043
+ // title instead.
1064
1044
  const feats = band.features.map((id) => names[id]);
1065
1045
  return `<div class="roadmap-row" data-milestone="${esc(band.milestone)}">
1066
1046
  <div class="roadmap-label"><span class="roadmap-name" title="${esc(band.milestone)}">${esc(band.milestone)}</span>
1067
1047
  <span class="roadmap-feature-names" title="${esc(feats.join(' · '))}">${feats.map(esc).join(' &middot; ')}</span></div>
1068
- <div class="roadmap-track">${gridlines}<span class="roadmap-band" style="left:${left}%;width:${width}%">${bandSegments(band)}</span></div>
1069
- <span class="roadmap-months">${band.startMonths}&ndash;${band.endMonths} mo</span></div>`;
1048
+ <div class="roadmap-track">${ROADMAP_GRIDLINES}<span class="roadmap-band" style="left:0;width:${(band.share * 100).toFixed(2)}%">${bandSegments(band)}</span></div>
1049
+ <span class="roadmap-share">${pctText(band.share)}</span></div>`;
1070
1050
  }
1071
1051
 
1072
1052
  // The two edge ticks are pinned to the track's own edges instead of centered,
1073
1053
  // so they never overhang the section.
1074
- function roadmapAxis({ total, ticks }) {
1075
- const tick = (m) => {
1076
- const pct = tickPct(m, total);
1077
- const style = pct <= 0 ? 'left:0;transform:none'
1078
- : pct >= 100 ? 'right:0;transform:none' : `left:${pct}%`;
1079
- return `<span style="${style}">${m}</span>`;
1080
- };
1054
+ function roadmapAxis() {
1055
+ const tick = (t) => `<span style="${edgeStyle(t, ';transform:none')}">${t}</span>`;
1081
1056
  return `<div class="roadmap-axis"><span class="roadmap-axis-spacer"></span>
1082
- <div class="roadmap-axis-ticks">${ticks.map(tick).join('')}</div>
1083
- <span class="roadmap-axis-unit">months</span></div>`;
1057
+ <div class="roadmap-axis-ticks">${SHARE_TICKS.map(tick).join('')}</div>
1058
+ <span class="roadmap-axis-unit">% of effort</span></div>`;
1084
1059
  }
1085
1060
 
1086
- // Committed numbers only: the roadmap draws the recommended scenario as
1087
- // computed — nothing on this page recomputes a month or a cost.
1061
+ // Committed numbers only: the roadmap draws computed.roadmap as computed —
1062
+ // milestones in delivery order, each sized by its share of total effort.
1088
1063
  function renderRoadmap() {
1089
1064
  const el = document.getElementById('roadmap');
1090
1065
  if (!el) return;
1091
- const roadmap = DATA.computed.scenarios[DATA.inputs.recommendedScenario]?.roadmap;
1066
+ const roadmap = DATA.computed.roadmap;
1092
1067
  if (!roadmap) { el.remove(); return; }
1093
- const total = roadmap[roadmap.length - 1].endMonths;
1094
1068
  const names = Object.fromEntries(DATA.inputs.features.map((f) => [f.id, f.name]));
1095
- const scale = { total, names, ticks: roadmapTicks(total, roadmap) };
1096
1069
  el.innerHTML = secHead('Roadmap',
1097
- 'Sequential delivery by the recommended scenario team. Bands are relative months from '
1098
- + 'kickoff, not calendar dates; each milestone\'s width is its share of the work. Band '
1070
+ 'Milestones in delivery order, each bar its share of total effort. Shares are not '
1071
+ + 'durations and they are not dates — this estimate produces no timeline. Band '
1099
1072
  + 'colors are the containers the milestone touches (same palette as the chart above). '
1100
1073
  + 'Click a row to filter the breakdown below to that milestone, grouped by container.')
1101
- + `<div class="roadmap-chart">${roadmap.map((b) => roadmapRow(b, scale)).join('')}`
1102
- + `${roadmapAxis(scale)}</div>`;
1074
+ + `<div class="roadmap-chart">${roadmap.map((b) => roadmapRow(b, names)).join('')}`
1075
+ + `${roadmapAxis()}</div>`;
1103
1076
  }
1104
1077
 
1105
1078
  // Committed numbers only, like every section: expected hours summed per
@@ -1157,8 +1130,9 @@ function renderRegister() {
1157
1130
  if (!el) return;
1158
1131
  const riskRows = DATA.inputs.risks.map((r) => `<tr><td>${r.name}</td><td class="num">${Math.round(r.probability * 100)}%</td><td class="num">${r.impactHours}h</td></tr>`).join('');
1159
1132
  el.innerHTML = `<table><caption>Risk register ${help(
1160
- 'Each risk adds probability &times; impact hours to the risk buffer, so unlikely-but-costly '
1161
- + 'events are priced in without padding every task.')}</caption>
1133
+ 'The named risks behind the risk scores. Risk is priced through those scores and the '
1134
+ + 'contingency they size, never by adding these hours to a total — the register is what '
1135
+ + 'the judgment rests on, and what to watch during delivery.')}</caption>
1162
1136
  <thead><tr><th>Risk</th><th class="num">Probability</th><th class="num">Impact</th></tr></thead>
1163
1137
  <tbody>${riskRows}</tbody></table>`;
1164
1138
  }
@@ -1169,31 +1143,33 @@ function renderRegister() {
1169
1143
  function renderMethod() {
1170
1144
  const el = document.getElementById('method');
1171
1145
  if (!el) return;
1172
- const pct = (v) => `${Math.round(v * 100)}%`;
1173
1146
  el.innerHTML = `<details class="method-fold" open><summary><h2>Method</h2>
1174
1147
  <span class="tech">${DATA.inputs.technique} &middot; depth ${DATA.inputs.depth}</span>
1175
1148
  <span class="chev" aria-hidden="true">&#9656;</span></summary>
1176
1149
  <ul>
1177
- <li>Each task is sized with three points (optimistic / most-likely / pessimistic);
1178
- expected hours use PERT: E = (O + 4M + P) / 6, spread &sigma; = (P &minus; O) / 6.</li>
1179
- <li>Two buffers are added once, at project level: an estimate-spread buffer
1180
- (&radic;&Sigma;&sigma;&sup2; across tasks) and a risk buffer (&Sigma; probability &times;
1181
- impact from the risk register). Overhead adds ${pct(DATA.inputs.overheadPct)} for
1182
- meetings, review, and coordination.</li>
1183
- <li>AI-assisted scenarios reduce each task by its category — boilerplate 50&ndash;80%,
1184
- logic 20&ndash;40%, novel 0&ndash;10% — blended as (AO + 2AR + TR) / 4, plus
1185
- ${pct(DATA.inputs.verificationPct)} verification overhead on AI output. There is no
1186
- blanket project-wide multiplier: the reduction is judged per task.</li>
1187
- <li>Seniority scales base effort (junior +15%, senior &minus;15%); team capacity pays a
1188
- 10% coordination tax per engineer added.</li>
1189
- <li>The confidence badge is the worst task confidence on the largest feature —
1150
+ <li>Price comes from judgment, not from hours. Each feature is scored 1&ndash;5 on five
1151
+ factors &mdash; tech complexity, size, dependencies, uncertainty, risk &mdash; and the
1152
+ weighted score lands it in a price band, interpolated so neighbouring scores never
1153
+ jump a cliff. Uncertainty carries the heaviest weight and size the lightest.</li>
1154
+ <li>The feature prices are summed, scaled by one context multiplier for the delivery
1155
+ situation (codebase, stack familiarity, spec quality, compliance, client decisions),
1156
+ then loaded with project overheads &mdash; foundation, discovery, UX, QA, devops,
1157
+ docs, PM and integration &mdash; and a contingency sized by the average uncertainty
1158
+ and risk across the features.</li>
1159
+ <li>The spread is each feature's own uncertainty combined in quadrature, so a project
1160
+ of many small confident features is presented tighter than one large vague one. The
1161
+ presented range runs from the median to the 95th percentile, rounded.</li>
1162
+ <li>Tasks are still sized with three points (optimistic / most-likely / pessimistic)
1163
+ and PERT: E = (O + 4M + P) / 6, spread &sigma; = (P &minus; O) / 6. Those hours plan
1164
+ the delivery; they never convert into the price, and no duration is produced.</li>
1165
+ <li>The confidence badge is the worst task confidence on the largest feature &mdash;
1190
1166
  an estimate is only as strong as its critical path.</li>
1191
1167
  </ul>
1192
1168
  <p class="sources"><span>PERT and three-point estimation (US Navy, 1958), buffers, ranges,
1193
1169
  and risk registers — Atomic Object, atomicobject.com/client-resources/better-custom-software-estimates.</span>
1194
- <span>AI speedup categories and the blended formula — Kmino,
1170
+ <span>Agent-assisted delivery shifts cost from writing code to resolving ambiguity — Kmino,
1195
1171
  kmino.io/blog/software-estimation-with-ai (practitioner observations, not peer-reviewed).</span>
1196
- <span>Scenario and tier structure — Modular Earth solutions-architecture-agent,
1172
+ <span>Scoring and tier structure — Modular Earth solutions-architecture-agent,
1197
1173
  github.com/Modular-Earth-LLC/solutions-architecture-agent.</span></p></details>`;
1198
1174
  }
1199
1175
 
@@ -1279,6 +1255,59 @@ window.addEventListener('beforeprint', () => {
1279
1255
  });
1280
1256
  </script>
1281
1257
  <!-- internal:start --><script>
1258
+ // The price working: how the presented range was built from the feature
1259
+ // prices, and which tier each feature landed in. Inside internal markers
1260
+ // rather than merely marked data-internal, because redact.mjs strips the same
1261
+ // fields out of the embedded data — so a --client-only file names them in
1262
+ // neither its data nor its code, captions included, instead of shipping a
1263
+ // renderer for numbers it no longer carries.
1264
+ const WORKING = document.getElementById('price-working');
1265
+
1266
+ const workingRow = (label, value) => `<tr><td>${label}</td><td class="num">${value}</td></tr>`;
1267
+
1268
+ function overheadNote(overheads) {
1269
+ const lines = Object.entries(overheads.lines).map(([k, v]) => `${k} ${pctText(v)}`).join(' · ');
1270
+ return `${pctText(overheads.totalPct)} &mdash; ${lines}`;
1271
+ }
1272
+
1273
+ // The arithmetic in the order it runs: feature prices, the situation they are
1274
+ // delivered in, the work around them, the cushion, and the spread that made
1275
+ // the range a range.
1276
+ function buildUpTable(p) {
1277
+ const rows = [
1278
+ workingRow('Feature prices', fmtMoney(p.featurePoints)),
1279
+ workingRow('Context multiplier', `&times;${p.contextMultiplier}`),
1280
+ workingRow('Adjusted base', fmtMoney(p.adjustedBase)),
1281
+ workingRow('Overheads', `${overheadNote(p.overheads)} = ${fmtMoney(p.overheads.amount)}`),
1282
+ workingRow('Contingency', `${pctText(p.contingencyRate)} = ${fmtMoney(p.contingencyAmount)}`),
1283
+ workingRow('p50 / p80 / p95', `${fmtMoney(p.p50)} / ${fmtMoney(p.p80)} / ${fmtMoney(p.p95)}`),
1284
+ ].join('');
1285
+ return `<table><caption>Price build-up</caption><tbody>${rows}</tbody></table>`;
1286
+ }
1287
+
1288
+ // Tier Reference: what each feature's score bought. The band is the price
1289
+ // range the tier spans; the point is where this feature's score interpolated
1290
+ // inside it.
1291
+ function tierReferenceTable() {
1292
+ const rows = DATA.inputs.features.map((f) => {
1293
+ const c = DATA.computed.features[f.id];
1294
+ return `<tr><td>${esc(f.name)}</td><td class="score"><span class="tier ${c.tier.toLowerCase()}">${c.tier}</span></td>
1295
+ <td class="num">${fmtMoney(c.point)}</td>
1296
+ <td class="num">${fmtMoney(c.priceLow)} &ndash; ${fmtMoney(c.priceHigh)}</td></tr>`;
1297
+ }).join('');
1298
+ return `<table><caption>Tier Reference</caption><thead><tr><th>Feature</th>
1299
+ <th class="score">Tier</th><th class="num">Point</th><th class="num">Band</th></tr></thead>
1300
+ <tbody>${rows}</tbody></table>`;
1301
+ }
1302
+
1303
+ // R50: no price build-up to show once this scope is unpriced (p50 === 0) —
1304
+ // every row would read a bare zero, which the summary above already refuses
1305
+ // to print.
1306
+ if (WORKING && DATA.computed.price?.p50 && DATA.computed.price?.overheads) {
1307
+ WORKING.innerHTML = buildUpTable(DATA.computed.price) + (TIERED ? tierReferenceTable() : '');
1308
+ }
1309
+ </script><!-- internal:end -->
1310
+ <!-- internal:start --><script>
1282
1311
  // Feature breakdown → spreadsheet export. Clones the sample estimator
1283
1312
  // workbook (base64 below), fills tab 1 with the rows the table currently
1284
1313
  // shows, and leaves every tier/price formula live in-cell so the workbook
@@ -1286,278 +1315,23 @@ window.addEventListener('beforeprint', () => {
1286
1315
  // because the embedded workbook carries our pricing bands: a --client-only
1287
1316
  // render strips this whole block and the button above degrades to a no-op
1288
1317
  // hidden by the client-view CSS.
1289
- const XLSX_TEMPLATE = 'UEsDBBQACAgIAM4OBF0AAAAAAAAAAAAAAAAYAAAAeGwvZHJhd2luZ3MvZHJhd2luZzEueG1sndBdbsIwDAfwE+wOVd5pWhgTQxRe0E4wDuAlbhuRj8oOo9x+0Uo2aXsBHm3LP/nvzW50tvhEYhN8I+qyEgV6FbTxXSMO72+zlSg4gtdgg8dGXJDFbvu0GTWtz7ynIu17XqeyEX2Mw1pKVj064DIM6NO0De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C9QAAAeGwvc2hhcmVkU3RyaW5ncy54bWxQSwECFAAUAAgICADODgRdcauz9ycFAAB8OQAADQAAAAAAAAAAAAAAAAATSAAAeGwvc3R5bGVzLnhtbFBLAQIUABQACAgIAM4OBF2wCWqe8QEAAJUEAAAPAAAAAAAAAAAAAAAAAHVNAAB4bC93b3JrYm9vay54bWxQSwECFAAUAAgICADODgRd3yiTbBcBAABEBAAAGgAAAAAAAAAAAAAAAACjTwAAeGwvX3JlbHMvd29ya2Jvb2sueG1sLnJlbHNQSwECFAAUAAgICADODgRdhDcg4uUAAABMAgAACwAAAAAAAAAAAAAAAAACUQAAX3JlbHMvLnJlbHNQSwECFAAUAAgICADODgRdkYSI978AAADRAAAACwAAAAAAAAAAAAAAAAAgUgAAeGwvbWV0YWRhdGFQSwECFAAUAAgICADODgRdPcTSipIBAACzBwAAEwAAAAAAAAAAAAAAAAAYUwAAW0NvbnRlbnRfVHlwZXNdLnhtbFBLBQYAAAAAEwATAA0FAADrVAAAAAA=';
1290
- const XLSX_ROW0 = 7; // first feature row in the sample sheet
1291
- const XLSX_MIN_SLOTS = 20; // the sample ships 20 scoreable rows; keep that floor
1292
- const XLSX_STYLE = { A: 40, score: 41, blank: 45, G: 36, H: 42, I: 43, J: 43, K: 39, head: 26 };
1293
-
1294
- function xmlEsc(s) {
1295
- return String(s).replace(/[&<>"]/g, (c) => ({ '&': '&amp;', '<': '&lt;', '>': '&gt;', '"': '&quot;' }[c]));
1296
- }
1297
- const fCell = (ref, s, f) => `<c r="${ref}" s="${s}"><f>${xmlEsc(f)}</f></c>`;
1298
- const sCell = (ref, s, text) => `<c r="${ref}" s="${s}" t="inlineStr"><is><t>${xmlEsc(text)}</t></is></c>`;
1299
- const nCell = (ref, s, v) => `<c r="${ref}" s="${s}"><v>${v}</v></c>`;
1300
-
1301
- // The sample's own formulas, re-emitted per row (explicit, not shared, so a
1302
- // regenerated row never dangles a shared-formula anchor).
1303
- function rowFormulas(r) {
1304
- const tier = (v) => `IF(G${r}="","",IF(G${r}<=11,${v[0]},IF(G${r}<=17,${v[1]},IF(G${r}<=22,${v[2]},${v[3]}))))`;
1305
- return { G: `IF(COUNTA(B${r}:F${r})=5,SUM(B${r}:F${r}),"")`,
1306
- H: tier(['"S – Simple"', '"M – Medium"', '"L – Large"', '"XL – Complex"']),
1307
- I: tier([500, 1500, 4000, 10000]), J: tier([1500, 4000, 10000, 25000]),
1308
- K: `IF(I${r}="","",(I${r}+J${r})/2)` };
1309
- }
1310
-
1311
- const fxCells = (r) => Object.entries(rowFormulas(r))
1312
- .map(([col, f]) => fCell(col + r, XLSX_STYLE[col], f)).join('');
1313
-
1314
- const blankCell = (ref) => `<c r="${ref}" s="${XLSX_STYLE.blank}"/>`;
1315
-
1316
- function featureRowXml(f, r) {
1317
- const scoreCols = ['B', 'C', 'D', 'E', 'F'];
1318
- const scores = scoreCols.map((col, i) => (f.scores
1319
- ? nCell(col + r, XLSX_STYLE.score, f.scores[SCORE_KEYS[i]].n) : blankCell(col + r))).join('');
1320
- return `<row r="${r}" ht="29.25" customHeight="1">` + sCell(`A${r}`, XLSX_STYLE.A, f.name) + scores
1321
- + fxCells(r) + sCell(`L${r}`, XLSX_STYLE.A, f.milestone ?? '')
1322
- + sCell(`M${r}`, XLSX_STYLE.A, xlsxContainer(f)) + sCell(`N${r}`, XLSX_STYLE.A, f.scoreNote ?? '') + '</row>';
1323
- }
1324
-
1325
- function emptyRowXml(r) {
1326
- return `<row r="${r}" ht="21.75" customHeight="1">` + ['A', 'B', 'C', 'D', 'E', 'F']
1327
- .map((col) => `<c r="${col}${r}" s="${col === 'A' ? XLSX_STYLE.A : XLSX_STYLE.blank}"/>`).join('')
1328
- + fxCells(r) + '</row>';
1329
- }
1330
-
1331
- function totalRowXml(r) {
1332
- const last = r - 1;
1333
- return `<row r="${r}" ht="25.5" customHeight="1">` + sCell(`A${r}`, 46, 'PROJECT TOTAL')
1334
- + '<c r="B' + r + '" s="10"/><c r="C' + r + '" s="10"/><c r="D' + r + '" s="10"/>'
1335
- + '<c r="E' + r + '" s="10"/><c r="F' + r + '" s="11"/>'
1336
- + fCell(`G${r}`, 47, `SUMIF(G7:G${last},">0")`) + fCell(`H${r}`, 47, `COUNTA(A7:A${last})&" features"`)
1337
- + ['I', 'J', 'K'].map((col) => fCell(col + r, 48, `SUMIF(${col}7:${col}${last},">0")`)).join('')
1338
- + '</row>';
1339
- }
1340
-
1341
1318
  function xlsxContainer(f) {
1342
1319
  const id = containerOf(f.component);
1343
1320
  return CT_NAMES[id] ?? id ?? '';
1344
1321
  }
1345
1322
 
1346
- // Visible rows only, milestone as the primary order (roadmap order of first
1347
- // appearance), the table's current sort preserved within each milestone.
1323
+ // Every feature, whatever the breakdown filter shows: the workbook prices the
1324
+ // project from the rows it gets, so a filtered subset would quote a total the
1325
+ // page and the proposal do not (R60). Milestone is the primary order (roadmap
1326
+ // order of first appearance), the table's current sort kept within each.
1348
1327
  function exportRows() {
1349
1328
  const msRank = [...new Set(DATA.inputs.features.map((f) => f.milestone))];
1350
- return bdVisible(bdSorted(breakdownData(), bdState.tab)).slice()
1329
+ return bdSorted(breakdownData(), bdState.tab)
1351
1330
  .sort((a, b) => msRank.indexOf(a.milestone) - msRank.indexOf(b.milestone));
1352
1331
  }
1353
1332
 
1354
- function buildSheet1(xml, rows) {
1355
- const slots = Math.max(rows.length, XLSX_MIN_SLOTS);
1356
- const total = XLSX_ROW0 + slots;
1357
- const body = rows.map((f, i) => featureRowXml(f, XLSX_ROW0 + i)).join('')
1358
- + Array.from({ length: slots - rows.length },
1359
- (_, i) => emptyRowXml(XLSX_ROW0 + rows.length + i)).join('')
1360
- + totalRowXml(total);
1361
- return xml
1362
- .replace(/<row r="7"[\s\S]*(?=<\/sheetData>)/, body)
1363
- .replace(/(<row r="6".*?)(<\/row>)/, `$1${sCell('L6', XLSX_STYLE.head, 'MILESTONE')}${sCell('M6', XLSX_STYLE.head, 'CONTAINER')}${sCell('N6', XLSX_STYLE.head, 'WHY THIS TIER')}$2`)
1364
- .replace('</sheetData>', `</sheetData><autoFilter ref="A6:N${total - 1}"/>`)
1365
- .replace('"A27:F27"', `"A${total}:F${total}"`)
1366
- .replaceAll('H7:H26', `H7:H${total - 1}`);
1367
- }
1368
-
1369
- // --- Task Breakdown tab: one row per task of every exported feature, for
1370
- // reference next to the scoring tab. Filter, sort, and search all come from
1371
- // the autofilter dropdowns; the header row is frozen so they survive scrolling.
1372
- const TASK_HEADERS = ['FEATURE', 'TASK', 'CATEGORY', 'OPTIMISTIC (H)', 'MOST LIKELY (H)',
1373
- 'PESSIMISTIC (H)', 'EXPECTED (PERT)', 'CONFIDENCE', 'ASSUMPTIONS', 'MILESTONE', 'CONTAINER'];
1374
-
1375
- function taskRowXml(f, t, r) {
1376
- const texts = { A: f.name, B: t.name, C: t.category, H: t.confidence,
1377
- I: t.assumptions.join('; '), J: f.milestone ?? '', K: xlsxContainer(f) };
1378
- return `<row r="${r}">` + Object.entries(texts).slice(0, 3).map(([c, v]) => sCell(c + r, 0, v)).join('')
1379
- + [t.o, t.m, t.p].map((v, i) => nCell('DEF'[i] + r, 0, v)).join('')
1380
- + fCell(`G${r}`, 0, `(D${r}+4*E${r}+F${r})/6`)
1381
- + Object.entries(texts).slice(3).map(([c, v]) => sCell(c + r, 0, v)).join('') + '</row>';
1382
- }
1383
-
1384
- // A generated tab: frozen header row, autofilter over the data, nothing else.
1385
- function sheetXml({ headers, body, last }) {
1386
- const head = `<row r="1">${headers.map((h, i) =>
1387
- sCell(String.fromCharCode(65 + i) + 1, XLSX_STYLE.head, h)).join('')}</row>`;
1388
- return '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>'
1389
- + '<worksheet xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">'
1390
- + '<sheetViews><sheetView workbookViewId="0"><pane ySplit="1" topLeftCell="A2" '
1391
- + 'activePane="bottomLeft" state="frozen"/></sheetView></sheetViews>'
1392
- + `<sheetData>${head}${body}</sheetData><autoFilter ref="A1:${String.fromCharCode(64 + headers.length)}${last}"/></worksheet>`;
1393
- }
1394
-
1395
- function buildTaskSheet(rows) {
1396
- const body = rows.flatMap((f) => f.tasks.map((t) => [f, t]))
1397
- .map(([f, t], i) => taskRowXml(f, t, i + 2)).join('');
1398
- const last = 1 + rows.reduce((s, f) => s + f.tasks.length, 0);
1399
- return sheetXml({ headers: TASK_HEADERS, body, last });
1400
- }
1401
-
1402
- // --- Score Rationale tab: one row per feature × factor — the engineer's
1403
- // view of why each score is what it is (Sheet 1's column N is the sales one).
1404
- // Two source columns, because `provenance` and `scoreProvenance` answer
1405
- // different questions about different people: did the client ask for this
1406
- // feature, and did a reviewer override the agent's score. They share the
1407
- // vocabulary `stated`/`proposed`, which read side by side looks like the same
1408
- // column disagreeing with itself — so the score's half is spelled out in the
1409
- // words it actually means, while the feature's half keeps the page's wording.
1410
- const RATIONALE_HEADERS = ['FEATURE', 'FACTOR', 'SCORE', 'ANCHOR', 'EVIDENCE',
1411
- 'FEATURE SOURCE', 'SCORE ORIGIN'];
1412
- const SCORE_ORIGIN = { proposed: 'agent proposed', stated: 'reviewer changed' };
1413
-
1414
- function rationaleRowXml(f, key, r) {
1415
- const s = f.scores[key];
1416
- return `<row r="${r}">` + sCell(`A${r}`, 0, f.name) + sCell(`B${r}`, 0, SCORE_LABELS[key]) + nCell(`C${r}`, 0, s.n)
1417
- + sCell(`D${r}`, 0, s.anchor) + sCell(`E${r}`, 0, s.cite) + sCell(`F${r}`, 0, f.provenance)
1418
- + sCell(`G${r}`, 0, SCORE_ORIGIN[f.scoreProvenance] ?? '') + '</row>';
1419
- }
1420
-
1421
- function buildRationaleSheet(rows) {
1422
- const scored = rows.filter((f) => f.scores);
1423
- const body = scored.flatMap((f) => SCORE_KEYS.map((k) => [f, k]))
1424
- .map(([f, k], i) => rationaleRowXml(f, k, i + 2)).join('');
1425
- return sheetXml({ headers: RATIONALE_HEADERS, body, last: 1 + scored.length * SCORE_KEYS.length });
1426
- }
1427
-
1428
- const EXTRA_SHEETS = [
1429
- { file: 'sheet4.xml', name: 'Task Breakdown', id: 100, rid: 'rIdTasks', build: buildTaskSheet },
1430
- { file: 'sheet5.xml', name: 'Score Rationale', id: 101, rid: 'rIdScores', build: buildRationaleSheet },
1431
- ];
1432
-
1433
- // Registers a generated sheet in the three package indexes the clone lacks.
1434
- function registerSheet(files, enc, sheet) {
1435
- const patch = (path, find, add) => files.set(path,
1436
- enc.encode(new TextDecoder().decode(files.get(path)).replace(find, add + find)));
1437
- patch('xl/workbook.xml', '</sheets>',
1438
- `<sheet state="visible" name="${sheet.name}" sheetId="${sheet.id}" r:id="${sheet.rid}"/>`);
1439
- patch('xl/_rels/workbook.xml.rels', '</Relationships>',
1440
- `<Relationship Id="${sheet.rid}" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet" Target="worksheets/${sheet.file}"/>`);
1441
- patch('[Content_Types].xml', '</Types>',
1442
- `<Override PartName="/xl/worksheets/${sheet.file}" ContentType="application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"/>`);
1443
- }
1444
-
1445
- // --- minimal zip: read the deflated template, write a stored archive ---
1446
- function b64Bytes(b64) {
1447
- return Uint8Array.from(atob(b64), (c) => c.charCodeAt(0));
1448
- }
1449
- function bytesB64(bytes) {
1450
- let s = '';
1451
- for (let i = 0; i < bytes.length; i += 0x8000) s += String.fromCharCode(...bytes.subarray(i, i + 0x8000));
1452
- return btoa(s);
1453
- }
1454
- async function inflateRaw(bytes) {
1455
- const stream = new Blob([bytes]).stream().pipeThrough(new DecompressionStream('deflate-raw'));
1456
- return new Uint8Array(await new Response(stream).arrayBuffer());
1457
- }
1458
- function zipEocd(bytes, v) {
1459
- for (let i = bytes.length - 22; i >= 0; i--) if (v.getUint32(i, true) === 0x06054b50) return i;
1460
- throw new Error('embedded workbook is not a zip');
1461
- }
1462
- async function zipEntry(bytes, v, cd) {
1463
- const csize = v.getUint32(cd + 20, true);
1464
- const local = v.getUint32(cd + 42, true);
1465
- const start = local + 30 + v.getUint16(local + 26, true) + v.getUint16(local + 28, true);
1466
- const raw = bytes.subarray(start, start + csize);
1467
- return v.getUint16(cd + 10, true) === 0 ? raw : inflateRaw(raw);
1468
- }
1469
- async function unzip(bytes) {
1470
- const v = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
1471
- const files = new Map();
1472
- let cd = v.getUint32(zipEocd(bytes, v) + 16, true);
1473
- while (v.getUint32(cd, true) === 0x02014b50) {
1474
- const nameLen = v.getUint16(cd + 28, true);
1475
- const skip = v.getUint16(cd + 30, true) + v.getUint16(cd + 32, true);
1476
- files.set(new TextDecoder().decode(bytes.subarray(cd + 46, cd + 46 + nameLen)), await zipEntry(bytes, v, cd));
1477
- cd += 46 + nameLen + skip;
1478
- }
1479
- return files;
1480
- }
1481
-
1482
- const CRC_TABLE = (() => {
1483
- const t = new Uint32Array(256);
1484
- for (let n = 0; n < 256; n++) {
1485
- let c = n;
1486
- for (let k = 0; k < 8; k++) c = c & 1 ? 0xedb88320 ^ (c >>> 1) : c >>> 1;
1487
- t[n] = c >>> 0;
1488
- }
1489
- return t;
1490
- })();
1491
- function crc32(bytes) {
1492
- let c = 0xffffffff;
1493
- for (let i = 0; i < bytes.length; i++) c = CRC_TABLE[(c ^ bytes[i]) & 0xff] ^ (c >>> 8);
1494
- return (c ^ 0xffffffff) >>> 0;
1495
- }
1496
-
1497
- // entry: { name: Uint8Array, data: Uint8Array, crc, offset }
1498
- function zipHeader(entry, central) {
1499
- const b = new Uint8Array(central ? 46 : 30);
1500
- const v = new DataView(b.buffer);
1501
- v.setUint32(0, central ? 0x02014b50 : 0x04034b50, true);
1502
- const at = central ? 6 : 4; // version-needed field; central adds version-made-by first
1503
- v.setUint16(at, 20, true);
1504
- v.setUint32(at + 10, entry.crc, true);
1505
- v.setUint32(at + 14, entry.data.length, true);
1506
- v.setUint32(at + 18, entry.data.length, true);
1507
- v.setUint16(at + 22, entry.name.length, true);
1508
- if (central) v.setUint32(42, entry.offset, true);
1509
- return b;
1510
- }
1511
- function zipEnd(count, cdSize, cdStart) {
1512
- const b = new Uint8Array(22);
1513
- const v = new DataView(b.buffer);
1514
- v.setUint32(0, 0x06054b50, true);
1515
- v.setUint16(8, count, true);
1516
- v.setUint16(10, count, true);
1517
- v.setUint32(12, cdSize, true);
1518
- v.setUint32(16, cdStart, true);
1519
- return b;
1520
- }
1521
- function zipStore(files) {
1522
- const enc = new TextEncoder();
1523
- const chunks = [];
1524
- const centrals = [];
1525
- let offset = 0;
1526
- for (const [path, data] of files) {
1527
- const entry = { name: enc.encode(path), data, crc: crc32(data), offset };
1528
- chunks.push(zipHeader(entry, false), entry.name, data);
1529
- centrals.push(zipHeader(entry, true), entry.name);
1530
- offset += 30 + entry.name.length + data.length;
1531
- }
1532
- const cdSize = centrals.reduce((s, b) => s + b.length, 0);
1533
- const all = [...chunks, ...centrals, zipEnd(files.size, cdSize, offset)];
1534
- const out = new Uint8Array(all.reduce((s, b) => s + b.length, 0));
1535
- all.reduce((at, b) => (out.set(b, at), at + b.length), 0);
1536
- return out;
1537
- }
1538
-
1539
- async function buildWorkbook() {
1540
- const files = await unzip(b64Bytes(XLSX_TEMPLATE));
1541
- const enc = new TextEncoder();
1542
- const rows = exportRows();
1543
- const xml = new TextDecoder().decode(files.get('xl/worksheets/sheet1.xml'));
1544
- files.set('xl/worksheets/sheet1.xml', enc.encode(buildSheet1(xml, rows)));
1545
- for (const sheet of EXTRA_SHEETS) {
1546
- files.set(`xl/worksheets/${sheet.file}`, enc.encode(sheet.build(rows)));
1547
- registerSheet(files, enc, sheet);
1548
- }
1549
- return zipStore(files);
1550
- }
1551
- window.__buildWorkbook = async () => bytesB64(await buildWorkbook());
1552
- window.__downloadXlsx = async () => {
1553
- const blob = new Blob([await buildWorkbook()],
1554
- { type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet' });
1555
- const a = document.createElement('a');
1556
- a.href = URL.createObjectURL(blob);
1557
- a.download = 'feature-cost-estimate.xlsx';
1558
- a.click();
1559
- URL.revokeObjectURL(a.href);
1560
- };
1333
+ const XLSX_SOURCE = { rows: exportRows, container: xlsxContainer, levels: () => DATA.inputs.contextLevels };
1334
+ <!-- slot:XLSX -->
1561
1335
  </script><!-- internal:end -->
1562
1336
  </body>
1563
1337
  </html>