@v11g/agents-rock 1.0.7 → 1.0.9

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 (215) hide show
  1. package/README.md +1 -1
  2. package/package.json +1 -1
  3. package/plugins/reasoning/.claude-plugin/plugin.json +1 -1
  4. package/plugins/reasoning/evals/format-handoff-folder/graders/folder-named.md +8 -0
  5. package/plugins/reasoning/evals/format-handoff-folder/graders/skill-fired.md +7 -0
  6. package/plugins/reasoning/evals/format-handoff-folder/prompt.md +9 -0
  7. package/plugins/reasoning/evals/format-ids-and-supports/graders/ids-in-chat.md +8 -0
  8. package/plugins/reasoning/evals/format-ids-and-supports/graders/skill-fired.md +7 -0
  9. package/plugins/reasoning/evals/format-ids-and-supports/graders/supports-resolve.md +11 -0
  10. package/plugins/reasoning/evals/format-ids-and-supports/prompt.md +8 -0
  11. package/plugins/reasoning/evals/format-root-candidate-status/graders/candidate-status.md +11 -0
  12. package/plugins/reasoning/evals/format-root-candidate-status/graders/skill-fired.md +7 -0
  13. package/plugins/reasoning/evals/format-root-candidate-status/prompt.md +8 -0
  14. package/plugins/reasoning/evals/format-unsaved-continues/graders/analysis-completes.md +9 -0
  15. package/plugins/reasoning/evals/format-unsaved-continues/graders/not-saved-stated.md +9 -0
  16. package/plugins/reasoning/evals/format-unsaved-continues/graders/skill-fired.md +7 -0
  17. package/plugins/reasoning/evals/format-unsaved-continues/prompt.md +8 -0
  18. package/plugins/reasoning/evals/guardrail-unavailable-framework/graders/names-closest-available.md +5 -6
  19. package/plugins/reasoning/evals/guardrail-unavailable-framework/graders/no-improvised-levels.md +4 -6
  20. package/plugins/reasoning/evals/guardrail-unavailable-framework/graders/skill-fired.md +1 -1
  21. package/plugins/reasoning/evals/guardrail-unavailable-framework/graders/states-unavailable.md +4 -5
  22. package/plugins/reasoning/evals/guardrail-unavailable-framework/graders/systemic-design-fired.md +10 -0
  23. package/plugins/reasoning/evals/guardrail-unavailable-framework/prompt.md +2 -2
  24. package/plugins/reasoning/evals/ps-interview-first-question/graders/look-in-present.md +10 -0
  25. package/plugins/reasoning/evals/ps-interview-first-question/graders/no-fixed-exits.md +11 -0
  26. package/plugins/reasoning/evals/ps-interview-first-question/graders/options-from-input.md +15 -0
  27. package/plugins/reasoning/evals/ps-interview-first-question/graders/skill-fired.md +7 -0
  28. package/plugins/reasoning/evals/ps-interview-first-question/graders/source-hint.md +11 -0
  29. package/plugins/reasoning/evals/ps-interview-first-question/graders/targets-gap.md +13 -0
  30. package/plugins/reasoning/evals/ps-interview-first-question/prompt.md +8 -0
  31. package/plugins/reasoning/evals/ps-interview-five-whys/graders/look-in-present.md +10 -0
  32. package/plugins/reasoning/evals/ps-interview-five-whys/graders/no-fixed-exits.md +11 -0
  33. package/plugins/reasoning/evals/ps-interview-five-whys/graders/options-from-input.md +11 -0
  34. package/plugins/reasoning/evals/ps-interview-five-whys/graders/skill-fired.md +7 -0
  35. package/plugins/reasoning/evals/ps-interview-five-whys/graders/source-hint.md +11 -0
  36. package/plugins/reasoning/evals/ps-interview-five-whys/graders/targets-gap.md +15 -0
  37. package/plugins/reasoning/evals/ps-interview-five-whys/prompt.md +8 -0
  38. package/plugins/reasoning/evals/ps-router-handoff/graders/no-reselection.md +11 -0
  39. package/plugins/reasoning/evals/ps-router-handoff/graders/runs-rca.md +8 -0
  40. package/plugins/reasoning/evals/ps-router-handoff/graders/skill-fired.md +7 -0
  41. package/plugins/reasoning/evals/ps-router-handoff/prompt.md +11 -0
  42. package/plugins/reasoning/evals/routing-adaptive-discriminator/graders/confidence-single-word.md +10 -0
  43. package/plugins/reasoning/evals/routing-ambiguous-feature-request/graders/confidence-single-word.md +10 -0
  44. package/plugins/reasoning/evals/routing-classify-only/graders/confidence-single-word.md +10 -0
  45. package/plugins/reasoning/evals/routing-complex-adaptive-org-change/graders/confidence-single-word.md +10 -0
  46. package/plugins/reasoning/evals/routing-complex-adaptive-org-change/graders/no-unavailability-claim.md +10 -0
  47. package/plugins/reasoning/evals/routing-complex-delivery-slowdown/graders/confidence-single-word.md +10 -0
  48. package/plugins/reasoning/evals/routing-simple-null-pointer/graders/confidence-single-word.md +10 -0
  49. package/plugins/reasoning/evals/routing-thin-input-provisional/graders/confidence-single-word.md +10 -0
  50. package/plugins/reasoning/evals/sd-default-selection/graders/dates-traced.md +15 -0
  51. package/plugins/reasoning/evals/sd-default-selection/graders/interventions-cite-entries.md +12 -0
  52. package/plugins/reasoning/evals/sd-default-selection/graders/owners-from-input.md +8 -0
  53. package/plugins/reasoning/evals/sd-default-selection/graders/plan-steps-complete.md +21 -0
  54. package/plugins/reasoning/evals/sd-default-selection/graders/selects-systemic-design.md +12 -0
  55. package/plugins/reasoning/evals/sd-default-selection/graders/skill-fired.md +7 -0
  56. package/plugins/reasoning/evals/sd-default-selection/graders/systemic-design-fired.md +10 -0
  57. package/plugins/reasoning/evals/sd-default-selection/prompt.md +11 -0
  58. package/plugins/reasoning/evals/sd-named-framework-software/graders/names-no-skill.md +11 -0
  59. package/plugins/reasoning/evals/sd-named-framework-software/graders/no-systemic-block.md +10 -0
  60. package/plugins/reasoning/evals/sd-named-framework-software/graders/systemic-design-fired.md +10 -0
  61. package/plugins/reasoning/evals/sd-named-framework-software/prompt.md +8 -0
  62. package/plugins/reasoning/evals/sd-not-software/graders/no-systemic-block.md +10 -0
  63. package/plugins/reasoning/evals/sd-not-software/graders/says-out-of-scope.md +10 -0
  64. package/plugins/reasoning/evals/sd-not-software/prompt.md +8 -0
  65. package/plugins/reasoning/evals/sd-raw-input/graders/first-question-targets-model.md +11 -0
  66. package/plugins/reasoning/evals/sd-raw-input/graders/look-in-present.md +10 -0
  67. package/plugins/reasoning/evals/sd-raw-input/graders/model-gap-blocks-stop.md +14 -0
  68. package/plugins/reasoning/evals/sd-raw-input/graders/model-in-assumptions.md +13 -0
  69. package/plugins/reasoning/evals/sd-raw-input/graders/no-fixed-exits.md +11 -0
  70. package/plugins/reasoning/evals/sd-raw-input/graders/skill-fired.md +7 -0
  71. package/plugins/reasoning/evals/sd-raw-input/graders/systemic-design-fired.md +10 -0
  72. package/plugins/reasoning/evals/sd-raw-input/prompt.md +8 -0
  73. package/plugins/reasoning/evals/sd-theory-of-change/graders/links-carry-assumptions.md +9 -0
  74. package/plugins/reasoning/evals/sd-theory-of-change/graders/no-dates.md +8 -0
  75. package/plugins/reasoning/evals/sd-theory-of-change/graders/skill-fired.md +7 -0
  76. package/plugins/reasoning/evals/sd-theory-of-change/graders/systemic-design-fired.md +10 -0
  77. package/plugins/reasoning/evals/sd-theory-of-change/graders/toc-block.md +10 -0
  78. package/plugins/reasoning/evals/sd-theory-of-change/prompt.md +8 -0
  79. package/plugins/reasoning/evals/sd-three-horizons/graders/dates-are-assumptions.md +11 -0
  80. package/plugins/reasoning/evals/sd-three-horizons/graders/owners-are-roles.md +8 -0
  81. package/plugins/reasoning/evals/sd-three-horizons/graders/skill-fired.md +7 -0
  82. package/plugins/reasoning/evals/sd-three-horizons/graders/systemic-design-fired.md +10 -0
  83. package/plugins/reasoning/evals/sd-three-horizons/graders/three-horizons-block.md +10 -0
  84. package/plugins/reasoning/evals/sd-three-horizons/prompt.md +9 -0
  85. package/plugins/reasoning/evals/st-causal-loop-unclosed/graders/edges-carry-support-labels.md +2 -2
  86. package/plugins/reasoning/evals/st-causal-loop-unclosed/graders/no-invented-delays.md +7 -4
  87. package/plugins/reasoning/evals/st-interview-first-question/graders/look-in-present.md +10 -0
  88. package/plugins/reasoning/evals/st-interview-first-question/graders/no-fixed-exits.md +11 -0
  89. package/plugins/reasoning/evals/st-interview-first-question/graders/options-from-input.md +11 -0
  90. package/plugins/reasoning/evals/st-interview-first-question/graders/skill-fired.md +7 -0
  91. package/plugins/reasoning/evals/st-interview-first-question/graders/source-hint.md +11 -0
  92. package/plugins/reasoning/evals/st-interview-first-question/graders/targets-gap.md +13 -0
  93. package/plugins/reasoning/evals/st-interview-first-question/prompt.md +8 -0
  94. package/plugins/reasoning/evals/st-selection-boundary/graders/one-block-only.md +9 -6
  95. package/plugins/reasoning/skills/problem-router/README.md +6 -0
  96. package/plugins/reasoning/skills/problem-router/SKILL.md +11 -11
  97. package/plugins/reasoning/skills/problem-router/references/contract.md +117 -16
  98. package/plugins/reasoning/skills/problem-solving/README.md +10 -0
  99. package/plugins/reasoning/skills/problem-solving/SKILL.md +15 -3
  100. package/plugins/reasoning/skills/problem-solving/references/contract.md +117 -16
  101. package/plugins/reasoning/skills/problem-solving/references/interview.md +68 -0
  102. package/plugins/reasoning/skills/systemic-design/README.md +45 -0
  103. package/plugins/reasoning/skills/systemic-design/SKILL.md +184 -0
  104. package/plugins/reasoning/skills/systemic-design/frameworks/systemic-design.md +39 -0
  105. package/plugins/reasoning/skills/systemic-design/frameworks/theory-of-change.md +34 -0
  106. package/plugins/reasoning/skills/systemic-design/frameworks/three-horizons.md +28 -0
  107. package/plugins/reasoning/skills/systemic-design/references/contract.md +205 -0
  108. package/plugins/reasoning/skills/systemic-design/references/interview.md +68 -0
  109. package/plugins/reasoning/skills/systems-thinking/README.md +13 -6
  110. package/plugins/reasoning/skills/systems-thinking/SKILL.md +18 -6
  111. package/plugins/reasoning/skills/systems-thinking/frameworks/causal-loop.md +5 -2
  112. package/plugins/reasoning/skills/systems-thinking/frameworks/leverage-points.md +16 -7
  113. package/plugins/reasoning/skills/systems-thinking/frameworks/system-map.md +4 -5
  114. package/plugins/reasoning/skills/systems-thinking/references/contract.md +117 -16
  115. package/plugins/reasoning/skills/systems-thinking/references/interview.md +68 -0
  116. package/plugins/solution-architect/.claude-plugin/plugin.json +1 -1
  117. package/plugins/solution-architect/skills/analyze-requirements/SKILL.md +3 -2
  118. package/plugins/solution-architect/skills/analyze-requirements/references/rewriting.md +108 -0
  119. package/plugins/solution-architect/skills/analyze-requirements/scripts/drift.mjs +64 -0
  120. package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/cdp.mjs +4 -1
  121. package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/drift.mjs +31 -0
  122. package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/git-diff.mjs +27 -0
  123. package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/quality-gate.mjs +16 -1
  124. package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/state.mjs +52 -0
  125. package/plugins/solution-architect/skills/analyze-requirements/scripts/record.mjs +87 -0
  126. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/drift-cli.test.mjs +178 -0
  127. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/drift.test.mjs +76 -0
  128. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/git-diff.test.mjs +62 -0
  129. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/quality-gate.test.mjs +9 -0
  130. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/record-cli.test.mjs +136 -0
  131. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/rerun-safety.test.mjs +53 -0
  132. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/rewriting.test.mjs +80 -0
  133. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/state.test.mjs +123 -0
  134. package/plugins/solution-architect/skills/estimate/README.md +20 -15
  135. package/plugins/solution-architect/skills/estimate/SKILL.md +10 -6
  136. package/plugins/solution-architect/skills/estimate/assets/estimate-template-agentic.html +111 -138
  137. package/plugins/solution-architect/skills/estimate/assets/estimate-template.html +361 -247
  138. package/plugins/solution-architect/skills/estimate/assets/scores-review-template.html +5 -4
  139. package/plugins/solution-architect/skills/estimate/evals/evals.json +7 -7
  140. package/plugins/solution-architect/skills/estimate/references/agentic-estimation.md +4 -2
  141. package/plugins/solution-architect/skills/estimate/references/ai-multipliers.md +38 -82
  142. package/plugins/solution-architect/skills/estimate/references/interview.md +56 -35
  143. package/plugins/solution-architect/skills/estimate/references/scoring-guide.md +40 -4
  144. package/plugins/solution-architect/skills/estimate/references/techniques.md +29 -21
  145. package/plugins/solution-architect/skills/estimate/references/writing.md +75 -43
  146. package/plugins/solution-architect/skills/estimate/scripts/lib/checks.mjs +37 -5
  147. package/plugins/solution-architect/skills/estimate/scripts/lib/context-schema.mjs +35 -0
  148. package/plugins/solution-architect/skills/estimate/scripts/lib/estimate-math.mjs +17 -75
  149. package/plugins/solution-architect/skills/estimate/scripts/lib/inline.mjs +5 -5
  150. package/plugins/solution-architect/skills/estimate/scripts/lib/pricing.mjs +78 -0
  151. package/plugins/solution-architect/skills/estimate/scripts/lib/project-price.mjs +96 -0
  152. package/plugins/solution-architect/skills/estimate/scripts/lib/redact.mjs +67 -19
  153. package/plugins/solution-architect/skills/estimate/scripts/lib/roadmap.mjs +4 -5
  154. package/plugins/solution-architect/skills/estimate/scripts/lib/rollup.mjs +48 -73
  155. package/plugins/solution-architect/skills/estimate/scripts/lib/schema.mjs +28 -13
  156. package/plugins/solution-architect/skills/estimate/scripts/lib/score-csv.mjs +2 -2
  157. package/plugins/solution-architect/skills/estimate/scripts/lib/score-html.mjs +1 -1
  158. package/plugins/solution-architect/skills/estimate/scripts/lib/scoring.mjs +2 -2
  159. package/plugins/solution-architect/skills/estimate/scripts/render.mjs +1 -1
  160. package/plugins/solution-architect/skills/estimate/scripts/score-review.mjs +1 -1
  161. package/plugins/solution-architect/skills/estimate/scripts/test/browser-agentic.test.mjs +143 -0
  162. package/plugins/solution-architect/skills/estimate/scripts/test/browser.test.mjs +209 -50
  163. package/plugins/solution-architect/skills/estimate/scripts/test/compute.test.mjs +57 -32
  164. package/plugins/solution-architect/skills/estimate/scripts/test/e2e.test.mjs +52 -0
  165. package/plugins/solution-architect/skills/estimate/scripts/test/estimate-math.test.mjs +25 -112
  166. package/plugins/solution-architect/skills/estimate/scripts/test/fixtures/agentic-estimation-fail.md +0 -10
  167. package/plugins/solution-architect/skills/estimate/scripts/test/fixtures/agentic-estimation-pass.md +0 -10
  168. package/plugins/solution-architect/skills/estimate/scripts/test/fixtures/agentic-inputs.json +1 -7
  169. package/plugins/solution-architect/skills/estimate/scripts/test/fixtures/booking-inputs.json +11 -10
  170. package/plugins/solution-architect/skills/estimate/scripts/test/fixtures/estimation-fail.md +6 -0
  171. package/plugins/solution-architect/skills/estimate/scripts/test/fixtures/estimation-pass.md +17 -21
  172. package/plugins/solution-architect/skills/estimate/scripts/test/pricing.test.mjs +88 -0
  173. package/plugins/solution-architect/skills/estimate/scripts/test/project-price.test.mjs +93 -0
  174. package/plugins/solution-architect/skills/estimate/scripts/test/references.test.mjs +86 -24
  175. package/plugins/solution-architect/skills/estimate/scripts/test/render.test.mjs +185 -31
  176. package/plugins/solution-architect/skills/estimate/scripts/test/schema.test.mjs +114 -61
  177. package/plugins/solution-architect/skills/estimate/scripts/test/score-review.test.mjs +34 -1
  178. package/plugins/solution-architect/skills/estimate/scripts/test/validate.test.mjs +103 -9
  179. package/plugins/solution-architect/skills/estimate/scripts/test/xlsx-export.test.mjs +292 -71
  180. package/plugins/solution-architect/skills/new-lead/SKILL.md +4 -3
  181. package/plugins/solution-architect/skills/proposal/README.md +9 -7
  182. package/plugins/solution-architect/skills/proposal/SKILL.md +10 -7
  183. package/plugins/solution-architect/skills/proposal/evals/evals.json +29 -11
  184. package/plugins/solution-architect/skills/proposal/evals/fixtures/gate-check-unpriced-harborline/ARCHITECTURE.md +65 -0
  185. package/plugins/solution-architect/skills/proposal/evals/fixtures/gate-check-unpriced-harborline/brief.md +21 -0
  186. package/plugins/solution-architect/skills/proposal/evals/fixtures/gate-check-unpriced-harborline/estimation-inputs.json +126 -0
  187. package/plugins/solution-architect/skills/proposal/evals/fixtures/gate-check-unpriced-harborline/estimation.json +215 -0
  188. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/estimation-inputs.json +224 -34
  189. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/estimation.json +103 -114
  190. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/estimation.md +48 -22
  191. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-meridian-dental/estimation-inputs.json +211 -33
  192. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-meridian-dental/estimation.json +102 -117
  193. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-meridian-dental/estimation.md +48 -25
  194. package/plugins/solution-architect/skills/proposal/references/interview.md +3 -6
  195. package/plugins/solution-architect/skills/proposal/references/review.md +5 -4
  196. package/plugins/solution-architect/skills/proposal/references/writing.md +33 -31
  197. package/plugins/solution-architect/skills/proposal/scripts/derive.mjs +1 -1
  198. package/plugins/solution-architect/skills/proposal/scripts/lib/checks-client.mjs +5 -22
  199. package/plugins/solution-architect/skills/proposal/scripts/lib/checks-doc.mjs +18 -8
  200. package/plugins/solution-architect/skills/proposal/scripts/lib/checks.mjs +6 -2
  201. package/plugins/solution-architect/skills/proposal/scripts/lib/figures.mjs +24 -33
  202. package/plugins/solution-architect/skills/proposal/scripts/lib/sections.mjs +1 -1
  203. package/plugins/solution-architect/skills/proposal/scripts/test/checks-client.test.mjs +50 -47
  204. package/plugins/solution-architect/skills/proposal/scripts/test/checks-doc.test.mjs +99 -40
  205. package/plugins/solution-architect/skills/proposal/scripts/test/docs.test.mjs +11 -5
  206. package/plugins/solution-architect/skills/proposal/scripts/test/e2e.test.mjs +1 -1
  207. package/plugins/solution-architect/skills/proposal/scripts/test/evals-fixtures.test.mjs +39 -0
  208. package/plugins/solution-architect/skills/proposal/scripts/test/figures.test.mjs +67 -54
  209. package/plugins/solution-architect/skills/proposal/scripts/test/fixtures/proposal-fail.md +6 -1
  210. package/plugins/solution-architect/skills/proposal/scripts/test/fixtures/proposal-pass.md +8 -12
  211. package/plugins/solution-architect/skills/proposal/scripts/test/render.test.mjs +1 -1
  212. package/plugins/solution-architect/skills/proposal/scripts/test/validate.test.mjs +3 -2
  213. package/plugins/reasoning/evals/guardrail-unavailable-framework/graders/names-owning-skill.md +0 -9
  214. package/plugins/reasoning/evals/routing-complex-adaptive-org-change/graders/states-systemic-design-unavailable.md +0 -15
  215. package/plugins/solution-architect/skills/estimate/scripts/lib/scenario-schema.mjs +0 -39
@@ -162,7 +162,8 @@ in your own words, then copy the feedback block at the bottom back into the chat
162
162
  <span style="grid-column:14/19">L <b>18&ndash;22</b></span>
163
163
  <span style="grid-column:19/22">XL <b>23+</b></span>
164
164
  </div>
165
- <p class="spine-note">Each dot is one feature, placed on its total. Click a dot to jump to it; a red dot is one you changed.</p>
165
+ <p class="spine-note">Each dot is one feature, placed on its total. Click a dot to jump to it; a red dot is one you changed.
166
+ The score weights tech/size/deps/uncertainty/risk at 20/10/20/30/20, so a 4-4-4-4-4 row reads 20.0, not 20.</p>
166
167
  </div>
167
168
 
168
169
  <div id="review"></div>
@@ -195,7 +196,7 @@ const state = Object.fromEntries(DRAFT.features.map((f) => [f.id, {
195
196
 
196
197
  // The number comes from `state`, never from the draft: a select that re-read
197
198
  // f.scores[k].n would snap back to the agent's proposal and disagree with the
198
- // Σ beside it. The anchor and cite stay the draft's — re-anchoring a changed
199
+ // score beside it. The anchor and cite stay the draft's — re-anchoring a changed
199
200
  // score is the CLI's job, not the page's — so an edited cell strikes its old
200
201
  // evidence through instead of showing it as if it explained the new score.
201
202
  const STALE_TITLE = 'rubric sentence changes with the score — re-anchored when the agent reads this back';
@@ -226,7 +227,7 @@ function rail(f) {
226
227
  return `<div class="rail">
227
228
  <h2>${esc(f.name)}</h2>
228
229
  <p class="meta">${esc(f.id)}</p>
229
- <p class="verdict"><span class="total">&Sigma; <b data-total="${esc(f.id)}">${total}</b></span>
230
+ <p class="verdict"><span class="total">Score <b data-total="${esc(f.id)}">${total}</b></span>
230
231
  <span class="tier t-${tier.toLowerCase()}" data-tier="${esc(f.id)}">${tier}</span></p>
231
232
  <p class="hint" data-hint="${esc(f.id)}">${hintFor(total)}</p>
232
233
  <p class="prov${edited(f) ? ' edited' : ''}" data-prov="${esc(f.id)}">${originText(f)}</p>
@@ -246,7 +247,7 @@ function band(f) {
246
247
  function dotsAt(total) {
247
248
  return DRAFT.features.filter((f) => tierFor(state[f.id].scores).total === total)
248
249
  .map((f) => `<button type="button" class="dot${edited(f) ? ' changed' : ''}" data-goto="${esc(f.id)}"
249
- title="${esc(f.name)} — &Sigma; ${total}"><span>${esc(f.name)}</span></button>`).join('');
250
+ title="${esc(f.name)} — score ${total}"><span>${esc(f.name)}</span></button>`).join('');
250
251
  }
251
252
 
252
253
  function tallyText() {
@@ -12,7 +12,7 @@
12
12
  "assertions": [
13
13
  "no-committed-number: the reply offers no answer to \"how long / how much\" — no week or month figure, no currency amount, and no hour band presented as this project's size",
14
14
  "no-artifacts-written: no estimation-inputs.json, estimation.json, estimation.md or estimate.html exists anywhere after the run — compute.mjs and render.mjs were never invoked",
15
- "evidence-detection-reported: the reply names the evidence actually found (the one forwarded email, no requirements package, no ARCHITECTURE.md, no codebase) and lists the specific missing inputs it needs — feature list, integrations, team and rates, deadline — not a single vague \"tell me more\"",
15
+ "evidence-detection-reported: the reply names the evidence actually found (the one forwarded email, no requirements package, no ARCHITECTURE.md, no codebase) and lists the specific missing inputs it needs — feature list, integrations, deadline — not a single vague \"tell me more\"; it does not ask for a team, rates or staffing, which the estimate no longer prices",
16
16
  "clear-vs-assumed-split: confirmed scope and assumptions are presented as two separate lists (interview.md §3), and every scope item named carries a stated/proposed label — nothing about bookings, reminders or the six-practice rollout is stated as confirmed scope when the email only implies it",
17
17
  "assumptions-carry-impact: every assumption in the assumed list is paired with its impact-if-wrong (what changes and roughly by how much), never listed bare",
18
18
  "asks-depth-and-delivery-mode: the reply asks the QUICK/STANDARD/DEEP depth question and the delivery-mode opt-out (\"humans writing the code?\", agentic assumed by default) before naming any technique or number"
@@ -21,8 +21,8 @@
21
21
  {
22
22
  "id": 1,
23
23
  "name": "pre-fed-traditional-trellis",
24
- "prompt": "Trellis Garden Supply — the wholesale ordering portal. Lead folder has the BA package (requirements.json, requirements.md) and the architecture doc already, so please run the estimate. Answering everything up front so you don't have to ping me:\n\n- STANDARD depth.\n- Trellis's own two in-house devs write the code — that's in the contract, humans not agents.\n- Two staffing options to compare: (a) their two devs alone, 1 senior at $75/h and 1 mid at $55/h, working unaided; (b) the same two plus one of our mid engineers at $60/h, all three on AI coding seats at $40 per seat per month. We're recommending (b) because of the 1 March 2027 spring-season deadline.\n- Milestones: M1 catalogue + login, M2 ordering + contract pricing, M3 Sage sync. Reporting dashboards are not in v1.\n- We have no delivery history to calibrate against, use your default bands.\n- Out of scope: retail storefront, van route planning, the mobile app.\n- Client copy must not show rates.",
25
- "expected_output": "estimation-inputs.json, estimation.json and estimation.md written beside ARCHITECTURE.md in the lead folder, with dist/estimate.html rendered from the team template. Technique is task-level three-point PERT (techniques.md §1 row 2). Features split stated vs proposed against the BA labels, per-feature five-factor scores with verbatim guide anchors, components roster seeded from §6 with the reporting component carrying a notEstimated reason, risks seeded from §15, milestones producing a roadmap, and two scenarios differing on AI assistance.",
24
+ "prompt": "Trellis Garden Supply — the wholesale ordering portal. Lead folder has the BA package (requirements.json, requirements.md) and the architecture doc already, so please run the estimate. Answering everything up front so you don't have to ping me:\n\n- STANDARD depth.\n- Trellis's own two in-house devs write the code — that's in the contract, humans not agents.\n- The team has built this stack before (React, Node, Postgres); the Sage integration is the only part new to them.\n- The 1 March 2027 spring-season deadline is hard.\n- Milestones: M1 catalogue + login, M2 ordering + contract pricing, M3 Sage sync. Reporting dashboards are not in v1.\n- We have no delivery history to calibrate against, use your default bands.\n- Out of scope: retail storefront, van route planning, the mobile app.\n- Client copy must not show the pricing working.",
25
+ "expected_output": "estimation-inputs.json, estimation.json and estimation.md written beside ARCHITECTURE.md in the lead folder, with dist/estimate.html rendered from the team template. Technique is task-level three-point PERT (techniques.md §1 row 2). Features split stated vs proposed against the BA labels, per-feature five-factor scores with verbatim guide anchors, the five context levels (four derived with cites, stack familiarity stated from the answer), components roster seeded from §6 with the reporting component carrying a notEstimated reason, risks seeded from §15, milestones producing a roadmap of relative shares, and a single price block (presented range, single number, contingency, implied accuracy) — no scenarios, team, rates or duration.",
26
26
  "files": [
27
27
  "evals/fixtures/pre-fed-traditional-trellis/requirements.json",
28
28
  "evals/fixtures/pre-fed-traditional-trellis/requirements.md",
@@ -33,15 +33,15 @@
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)",
36
- "scenario-arithmetic-consistent: for every entry in computed.scenarios, totalCost equals laborCost + toolingCost and hours equals (sum of that scenario's taskHours) × (1 + overheadPct) + spreadBufferHours + riskBufferHours within 0.01, and months equals hours / (effectiveCapacity(team size) × 140); the two scenarios differ on aiAssisted and recommendedScenario names the three-person AI-assisted one with a non-empty recommendedReason",
36
+ "price-block-consistent: computed.price.p50 > 0 and estimation.md's Price table states computed.price.presentLow and presentHigh as the presented range and singleNumber as the single number; inputs carry no `scenarios`, `recommendedScenario` or `overheadPct` and computed carries no `scenarios`, `riskBufferHours` or months figure; estimation.md has no Scenario table and no duration (the Roadmap states relative shares, not months); inputs.contextLevels has all five factors at 1-4, each with a contextProvenance anchor quoted from the scoring guide's context-factor table, and stackFamiliarity is level 1 or 2 (a stack the team has built before), not 3-4",
37
37
  "scores-anchored-and-tiers-match: every feature carries scores for tech, size, deps, unc and risk whose `anchor` strings are byte-identical to the corresponding sentences in references/scoring-guide.md, and each Summary scope row's Tier cell equals computed.features[<id>].tier"
38
38
  ]
39
39
  },
40
40
  {
41
41
  "id": 2,
42
42
  "name": "pre-fed-agentic-halyard",
43
- "prompt": "Halyard Marine, parts catalogue search revamp — repo is halyard-catalog, requirements package is in the lead folder. Need the estimate today. Everything you'd ask:\n\n- STANDARD depth.\n- Claude Code writes the code on sonnet; I do the planning passes with opus first. So no, humans aren't hand-writing this.\n- Use our own measurements file in the lead folder, measurements.jsonl, not the global one — 17 tasks we've actually logged on this repo.\n- Work is: fitment search by engine make/model/year, supersession chains resolving to the live replacement, the nightly index rebuild off the supplier CSV drop, and the depot stock filter which is a nice-to-have we'd probably still do.\n- Risks: supplier feed might not carry fitment for half the makes — call it 40% likely, about 180 minutes of rework; and supersession chains deeper than two hops, 30%, about 120 minutes.\n- Staffing: just me (senior, $95/h) or me plus one mid at $65/h doing review. Claude Max seats are $200 per seat per month either way. Recommend the solo one unless the numbers say otherwise.\n- No hard deadline. Out of scope: consumer storefront, supplier onboarding portal. Keep rates off the client copy.",
44
- "expected_output": "estimation-inputs.json with deliveryMode \"agentic\", agentContext {agent: claude-code, model: sonnet, repository: halyard-catalog}, measurementsPath pointing at the fixture file, and tasks carrying shape + scope + seedMinutes only. estimation.json computed from the fixture measurements, estimation.md with the `Delivery: agentic` header line, the Baseline/Samples/Match task table, an Evidence table of script-matched rows and a minutes-based risks table, and dist/estimate.html rendered from the agentic template.",
43
+ "prompt": "Halyard Marine, parts catalogue search revamp — repo is halyard-catalog, requirements package is in the lead folder. Need the estimate today. Everything you'd ask:\n\n- STANDARD depth.\n- Claude Code writes the code on sonnet; I do the planning passes with opus first. So no, humans aren't hand-writing this.\n- Use our own measurements file in the lead folder, measurements.jsonl, not the global one — 17 tasks we've actually logged on this repo.\n- Work is: fitment search by engine make/model/year, supersession chains resolving to the live replacement, the nightly index rebuild off the supplier CSV drop, and the depot stock filter which is a nice-to-have we'd probably still do.\n- Risks: supplier feed might not carry fitment for half the makes — call it 40% likely, about 180 minutes of rework; and supersession chains deeper than two hops, 30%, about 120 minutes.\n- No hard deadline. Out of scope: consumer storefront, supplier onboarding portal.",
44
+ "expected_output": "estimation-inputs.json with deliveryMode \"agentic\", agentContext {agent: claude-code, model: sonnet, repository: halyard-catalog}, measurementsPath pointing at the fixture file, and tasks carrying shape + scope + seedMinutes only. estimation.json computed from the fixture measurements, estimation.md with the `Delivery: agentic` header line, the Baseline/Samples/Match task table, an Evidence table of script-matched rows and a minutes-based risks table, and dist/estimate.html rendered from the agentic template, which says the scope is not priced — agentic mode carries no price.",
45
45
  "files": [
46
46
  "evals/fixtures/pre-fed-agentic-halyard/requirements.json",
47
47
  "evals/fixtures/pre-fed-agentic-halyard/requirements.md",
@@ -53,7 +53,7 @@
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
- "agentic-arithmetic: computed.riskBufferHours equals the sum of probability × impactMinutes / 60 over inputs.risks (0.4 × 180 + 0.3 × 120 = 1.8 h) with each risk carrying probability, impactMinutes and a non-empty reason, and for every scenario totalCost equals laborCost + toolingCost with months equal to hours / (effectiveCapacity(team size) × 140)"
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
58
  }
59
59
  ]
@@ -137,8 +137,10 @@ whole estimate UNCALIBRATED.
137
137
  correctly across a project.
138
138
  - Vacanti, *Actionable Agile Metrics for Predictability* — percentile-based
139
139
  cycle-time forecasting from historical data, non-normal distributions.
140
- - Atomic Object (atomicobject.com) — buffer machinery (already the source
141
- for `projectBuffer`/`√Σσ²` in team-mode estimation; unchanged here).
140
+ - Atomic Object (atomicobject.com) — risk as probability × impact, and the
141
+ root-sum-of-squares (`√Σσ²`) spread arithmetic. Agentic mode keeps a σ per
142
+ task but builds no project buffer; team mode uses `√Σσ²` only for the price
143
+ spread in `project-price.mjs`.
142
144
  - The `1.645` constant is the standard normal 95th-percentile z-score,
143
145
  applied in log space to fit a lognormal from `p50`/`p95`.
144
146
 
@@ -1,19 +1,24 @@
1
- # AI multipliers — categories, formula, seniority, the blanket-multiplier ban
2
-
3
- Read while assigning a `category` to each task and again while choosing
4
- `verificationPct`. Defines what each AI-speedup category means concretely,
5
- how the formula in `estimate-math.mjs` uses it, and the one rule that keeps
6
- an agent from inventing a project-wide speedup number.
7
-
8
- **In AGENTIC delivery mode this model is retired from estimation** —
1
+ # AI multipliers — categories as vocabulary, not math
2
+
3
+ Read while assigning a `category` to each task. Defines what each
4
+ AI-speedup category means concretely, and the reasoning that used to keep
5
+ an agent from inventing a project-wide speedup number — now reframed as
6
+ why v2's scoring weights land where they do.
7
+
8
+ **Pricing moved to scores.** `pricing.mjs`'s weighted score and bands
9
+ (`references/scoring-guide.md`, `references/techniques.md`) price every
10
+ STANDARD/DEEP feature; nothing here computes an hour figure or a dollar
11
+ figure any more. `taskHours()`/`aiAdjust()` are gone from
12
+ `estimate-math.mjs` — do not describe a formula that isn't there. The
13
+ categories below survive as **planning vocabulary only**: tagging a task's
14
+ shape for the task table, and a gut-check for `seedMinutes` on an
15
+ uncalibrated agentic shape (`references/agentic-estimation.md`). They no
16
+ longer discount anything.
17
+
18
+ **In AGENTIC delivery mode this model plays no pricing role at all** —
9
19
  measurement-based baselines (`references/agentic-estimation.md`) replace
10
- category scoring and the formula below entirely; agentic tasks carry a
11
- `shape`, not a `category`, and `schema.mjs` rejects `category` on an agentic
12
- task outright. This doc's model survives only as intuition for
13
- `seedMinutes` on an uncalibrated shape — the categories below are a useful
14
- gut-check for an o/m/p seed guess, nothing more, in that one case. For
15
- TRADITIONAL scenarios (humans code, with or without AI-assisted plans), the
16
- categories and formula below are unchanged.
20
+ category scoring entirely; agentic tasks carry a `shape`, not a `category`,
21
+ and `schema.mjs` rejects `category` on an agentic task outright.
17
22
 
18
23
  ## 1. Category table
19
24
 
@@ -27,75 +32,26 @@ Pick the category per task, not per feature or per project — a feature that
27
32
  mixes a CRUD endpoint (`boilerplate`) with a pricing rule engine (`logic`)
28
33
  has tasks in both categories.
29
34
 
30
- ## 2. Formula
31
-
32
- The blended AI-adjusted estimate for a task is:
33
-
34
- ```
35
- (AO + 2×AR + TR) / 4
36
- ```
37
-
38
- where `TR` is the task's seniority-scaled hours with no AI help, `AR` is TR
39
- reduced by the category's average speedup, and `AO` is TR reduced by the
40
- category's *maximum* speedup — the optimistic case weighted at 1, the
41
- average case weighted at 2, so a single lucky run doesn't drag the whole
42
- estimate down. This doc explains the formula; the code computes it, in
43
- `taskHours()`/`aiAdjust()` in `scripts/lib/estimate-math.mjs`. Never
44
- re-derive this arithmetic by hand or in prose — call the function.
45
-
46
- ## 3. Seniority scaling
47
-
48
- Task PERT hours assume a mid-level engineer. `SENIORITY_FACTOR` scales the
49
- **base effort** on every path — traditional and AI alike:
50
-
51
- | Seniority | Factor | Effect |
52
- | --- | --- | --- |
53
- | junior | 1.15 | slower baseline — same task takes 15% longer |
54
- | mid | 1.0 | baseline, no scaling |
55
- | senior | 0.85 | faster baseline — same task takes 15% less |
56
-
57
- The AI reduction itself is a property of the task category, not of the
58
- engineer: scaling the reduction by seniority (an earlier draft of this
59
- model) made juniors come out *faster than seniors* on AI plans, which no
60
- delivery data supports. With base-effort scaling, a senior with AI is always
61
- at or below a junior with AI on the same task.
62
-
63
- ## 4. Verification overhead
64
-
65
- Default `verificationPct` is **12%**, added on top of the blended AI-adjusted
66
- hours. AI output is not free to trust: someone still reads the diff, runs
67
- it, and checks it against the actual requirement. Skipping this line item
68
- means the estimate only counts the time to generate code, not the time to
69
- ship code — the two are not the same number.
70
-
71
- ## 5. Blanket-multiplier prohibition — hard rule
35
+ ## 2. Blanket-multiplier prohibition — hard rule, now a weighting rule
72
36
 
73
37
  **Never apply a single AI speedup percentage to a whole project or a whole
74
- feature.** Assign category and speedup per task, and let the formula roll
75
- totals up from there.
76
-
77
- The reason: a project that is 70% faster on its CRUD tasks is not 70% faster
78
- overall. The CRUD tasks might be 20% of total hours; the other 80% is
79
- `logic` and `novel` work where AI barely moves the needle. Blending at the
80
- project level erases that mix and produces a number nobody can defend.
81
-
82
- ## Tooling seat cost
83
-
84
- Seat pricing is an interview input (`toolingCostPerSeat`, per seat per
85
- month, any vendor), not a constant — see `interview.md` §4 question 5. It
86
- prices `toolingCost = months × seat cost × team size` and never touches
87
- hours; only `aiAssisted` gates the per-category reduction above.
38
+ feature.** The reason still holds: a project that is 70% faster on its CRUD
39
+ tasks is not 70% faster overall — the CRUD tasks might be 20% of the total,
40
+ the rest is `logic` and `novel` work AI barely moves the needle on.
41
+ Blending speedup at the project level erases that mix and produces a number
42
+ nobody can defend.
43
+
44
+ v2 encodes this directly in the score weights instead of a per-task
45
+ formula: feature **size** is the lightest weight at 10% (raw volume of code
46
+ is cheap when an agent writes most of it), and **uncertainty** is the
47
+ heaviest at 30% (unclear requirements are not cheap regardless of who
48
+ writes the code). The weights are the fix now, not a per-task calculation —
49
+ see `references/scoring-guide.md` and `references/techniques.md` §2.
88
50
 
89
51
  ## Sources
90
52
 
91
- - Formula `(AO + 2×AR + TR) / 4`, per-category reduction ranges, and the
92
- non-uniform-acceleration warning — Kmino, *Software Estimation with AI*
93
- (kmino.io/blog/software-estimation-with-ai). Published practitioner
94
- observations, not peer-reviewed data. Kmino also varies AI gains by
95
- seniority; this skill departs from that and scales base effort instead
96
- (see §3 for why).
97
- - Blanket-multiplier prohibition — Kmino's caveat, promoted to hard rule here.
98
- - Capacity and calibration constants (`HOURS_PER_MONTH`, `COORDINATION_TAX`,
99
- seniority factors, 12% verification overhead) — this skill's own defaults,
100
- not sourced; tune against real delivery history.
101
- - Plan prices — manual snapshot, see the dated table above.
53
+ - Category definitions and per-category reduction ranges — Kmino,
54
+ *Software Estimation with AI* (kmino.io/blog/software-estimation-with-ai).
55
+ Published practitioner observations, not peer-reviewed data.
56
+ - Blanket-multiplier prohibition — Kmino's caveat, carried forward as the
57
+ reasoning behind v2's asymmetric factor weights.
@@ -32,7 +32,7 @@ before scope confirmation and before any factor scoring.
32
32
  | --- | --- | --- |
33
33
  | QUICK | feature-level factor-scored tiering only | ±wide |
34
34
  | STANDARD | task-level three-point PERT | ± moderate |
35
- | DEEP | STANDARD plus per-scenario detail (multiple team/AI-assistance combinations sized individually) | ± narrower |
35
+ | DEEP | STANDARD's task-level PERT and scoring, with no shortcuts — every anchor cited, every task assumption named, nothing left as a `?` | ± narrower |
36
36
 
37
37
  ## 2b. Delivery mode — assume second, ask only to leave it
38
38
 
@@ -41,10 +41,9 @@ before scope confirmation and before any factor scoring.
41
41
  | AGENTIC (default) | AI coding agents write the code, humans plan and review | measurement-based (`agentic-estimation.md`) |
42
42
  | TRADITIONAL | humans write the code | technique menu (`techniques.md`) |
43
43
 
44
- Assume **AGENTIC**; ask only "humans writing the code?" as the opt-out, the
45
- same shape as the AI-assistance question in §5. A client who is hand-writing
46
- the code will say so; one who is not should not have to answer for it every
47
- interview.
44
+ Assume **AGENTIC**; ask only "humans writing the code?" as the opt-out. A
45
+ client who is hand-writing the code will say so; one who is not should not
46
+ have to answer for it every interview.
48
47
 
49
48
  Write `deliveryMode` into `estimation-inputs.json` either way, explicitly. An
50
49
  absent field still reads as traditional, which is what estimates written
@@ -149,7 +148,7 @@ Ask one thing at a time, in this order:
149
148
  │ ← PRD §4.2: "reconciliation rules undecided" │
150
149
  │ Risk 5 Core infrastructure, compliance requirements, irreversible ops │
151
150
  │ ← payments; rubric puts payments at 4–5, chose 5: irreversible │
152
- │ Σ 19 → L → 160–400 h │
151
+ │ Σ 19 → L → $4,000–$10,000 band, point ≈$5,800 │
153
152
  │ Why (client): handles payments and two outside services; matching │
154
153
  │ rules still to be decided │
155
154
  │ accept · change <factor> <n> · why <text> · split │
@@ -158,8 +157,12 @@ Ask one thing at a time, in this order:
158
157
 
159
158
  Rules: the anchor is the guide's full sentence for that factor and score;
160
159
  the cite quotes the fact it rests on; no evidence for a factor → the cell
161
- is `?` and you ask, never a silent 3. Σ at 11, 17 or 22 shows `one point
162
- from <tier>; <factor> +1 moves this to <band>`; Σ > 22 recommends `split`
160
+ is `?` and you ask, never a silent 3. A weighted score within a point of a
161
+ band edge (11.5, 17.5, 22.5) shows `near <tier>` — say so, but don't
162
+ guess which single factor would cross it: weights differ per factor
163
+ (`WEIGHTS` in `pricing.mjs`), so a flat "+1" on any of them no longer
164
+ moves the total by one point. Σ ≥ 22.5 flags `Deep estimate required`
165
+ (`SPLIT into sub-features` instead, when feature size alone scored 5)
163
166
  before `accept`; any 5 shows `review`. `Why` is one plain sentence for a
164
167
  non-technical reader — what the feature touches and what is still
165
168
  unknown; no file names, no factor names, no rubric wording. `split`
@@ -168,9 +171,10 @@ Ask one thing at a time, in this order:
168
171
  **Writing it down.** STANDARD/DEEP: every feature gets `scores` (per
169
172
  factor `{ n, anchor, cite }`), `scoreNote` (the `Why` sentence) and
170
173
  `scoreProvenance` — `proposed` when accepted as offered, `stated` when
171
- any cell or the note was changed. QUICK: use the scores for the tier and
172
- the calibration band as today; do not write them (`schema.mjs` refuses
173
- them at QUICK).
174
+ any cell or the note was changed. QUICK: score for a rough tier only, as
175
+ a gut-check; do not write the scores (`schema.mjs` refuses them at
176
+ QUICK) and do not price the feature — QUICK produces no price
177
+ (`techniques.md` §2).
174
178
 
175
179
  **Ask why.** A changed score keeps a cite that argued for the *old*
176
180
  number, so every entry in `--read`'s `needsReason` list is a question you
@@ -186,30 +190,47 @@ Ask one thing at a time, in this order:
186
190
  ask twice. A rewritten `Why` sentence needs no reason — it is the
187
191
  reviewer's own words.
188
192
 
189
- 3b. **Tasks + O/M/P** — STANDARD/DEEP only, per `techniques.md` §3. After a
190
- feature's tasks are sized, compare `Σ pert(e)` with its tier's calibration
191
- band. Outside the band, say so once — `Σ19 → L → 160–400 h, tasks sum to
192
- 85 h; tasks missing or scores high?` — and let the human decide. Nothing
193
- is refused and nothing new is written; the page marks the row ⚠.
194
- 4. **Team + rates + seniority mix** — how many engineers, what they cost
195
- per hour, and whether each is junior/mid/senior. Default is **one team**
196
- → one scenario; ask "compare staffing options?" and only then collect
197
- more rosters. With two or more, ask why the recommended one wins and
198
- write it to `recommendedReason` — the page shows a choice it must be
199
- able to explain.
200
- 5. **AI-assisted delivery** — per scenario, default **yes**; ask only
201
- "humans unaided?" as the opt-out. Then **tooling cost per seat per
202
- month** — one number, vendor-neutral (a Claude Max seat, Codex, Cursor —
203
- whatever the client will actually run), written to `toolingCostPerSeat`.
204
- The human may skip it: write `null` and add an assumption to the gate
205
- whose text names the tooling cost gap and its impact-if-wrong (~2% of
206
- total at typical seat prices). The validator refuses a null seat cost on
207
- an AI-assisted scenario without that assumption.
208
- 6. **Deadline / constraints** — any hard date or budget ceiling.
209
- 7. **calibration table** — ask for the org's own tier → hour-band history; if
210
- none exists, offer the defaults `S 20-60h, M 60-160h, L 160-400h, XL 400-800h`.
211
- 8. **Expose-rates-to-client** — y/n; controls whether the client-facing render
212
- shows labor rates or only totals.
193
+ 3b. **Tasks + O/M/P** — STANDARD/DEEP only, per `techniques.md` §3. Task
194
+ hours feed planning only — they size the roadmap's milestone shares —
195
+ not the price; the feature's score already set that. Nothing here is
196
+ refused and nothing new is written.
197
+ 4. **Context factors** — five project-wide multipliers from
198
+ `CONTEXT_FACTORS` in `project-price.mjs` (`codebaseMaturity`,
199
+ `stackFamiliarity`, `specQuality`, `compliance`, `clientDecisions`), each
200
+ a level 1–4 written to `contextLevels` with a matching
201
+ `contextProvenance` entry (`{ level, anchor, cite, source:
202
+ "derived"|"stated" }` — `writing.md` §1). Four are **derived**, never
203
+ asked outright — each arrives as a proposal with its evidence named, and
204
+ the human can override it in review:
205
+
206
+ | Factor | Derived from |
207
+ | --- | --- |
208
+ | `specQuality` | the business-analyst skill's readiness score and status |
209
+ | `compliance` | BA layer 8 (NFRs), plus `ARCHITECTURE.md` §8's PII column |
210
+ | `clientDecisions` | BA layer 2 — the deciders and approvers named for the stakeholders |
211
+ | `codebaseMaturity` | `ARCHITECTURE.md`'s `mode` frontmatter, plus §3, §11 and §15 |
212
+
213
+ One is **asked**: `stackFamiliarity`, a pick-list seeded from
214
+ `ARCHITECTURE.md` §6's tech column ("how familiar is the delivery team
215
+ with each of: <§6 tech list>?" — 1 core stack, done before · 2 adjacent,
216
+ some learning · 3 new to the team · 4 new to the team). Level 1 is the
217
+ familiar, cheapest end (×1.00); a stack new to the team is ×1.35. The
218
+ workbook gives levels 3 and 4 the same words and the same multiplier.
219
+
220
+ Every level of every factor has a definition — the rubric table in
221
+ `references/scoring-guide.md`. The `anchor` is that definition, quoted.
222
+
223
+ **Standalone mode** — no `ARCHITECTURE.md`, no business-analyst
224
+ companion doc — asks all five directly; there is nothing to derive from.
225
+ Context factors are skipped entirely at QUICK depth and in agentic mode
226
+ (`context-schema.mjs`).
227
+ 5. **Deadline / constraints** — any hard date or budget ceiling.
228
+ 6. **Expose-the-pricing-working** — y/n; sets `exposeRatesToClient`. Default
229
+ no: the client render carries the presented range, the single number and
230
+ the contingency rate, but not the working behind them — the context
231
+ multiplier and the five context levels behind it, the overhead lines, the
232
+ adjusted base, and the tier and price band each feature landed in. Answer yes only when the client has asked to
233
+ see how the number was built and the team is content to show it.
213
234
 
214
235
  ## 5. Loop rule
215
236
 
@@ -13,11 +13,47 @@ quoted verbatim on a score card, in `estimation-inputs.json`
13
13
  | Uncertainty | Fully defined spec, clear acceptance criteria, precedent exists | Minor ambiguities, can be resolved with one clarifying question | Some open questions, design decisions to be made during build | Significant unknowns, exploratory work needed, spec may change | Highly experimental, no clear solution path, outcomes unclear |
14
14
  | Risk | Fully reversible, no user data, isolated module | Low stakes, easy rollback, minimal user impact | Moderate impact if broken, requires testing, affects multiple users | Payments, auth, data migrations, or PII — high business impact | Core infrastructure, compliance requirements, irreversible operations |
15
15
 
16
- Tier scale (sum of the five scores): S ≤ 11 · M 12–17 · L 18–22 · XL 23+.
17
- Default calibration bands when the org has no history: S 20–60 h · M 60–160 h
18
- · L 160–400 h · XL 400–800 h. A card at Σ 11, 17 or 22 sits one point from
19
- the next tier and says so; Σ 23+ recommends splitting the feature.
16
+ Weights (`WEIGHTS` in `pricing.mjs`): tech complexity 20%, dependencies 20%
17
+ and risk 20% carry equal weight; feature size is the lightest at **10%** —
18
+ in agent-assisted delivery, volume of code is cheap; uncertainty is the
19
+ heaviest at **30%** — unclear requirements are not. `weightedScore()`
20
+ computes SUMPRODUCT(scores, weights) × 5, so five 3s score a flat 15.
21
+
22
+ Score → tier → price (`BANDS` in `pricing.mjs`, continuous and interpolated
23
+ inside each band by `pointEstimate()` — two features both tiered M do not
24
+ price the same unless their scores match exactly):
25
+
26
+ | Tier | Score | Price |
27
+ | --- | --- | --- |
28
+ | S | 5–11.5 | $500–$1,500 |
29
+ | M | 11.5–17.5 | $1,500–$4,000 |
30
+ | L | 17.5–22.5 | $4,000–$10,000 |
31
+ | XL | 22.5–25 | $10,000–$25,000 |
32
+
33
+ A card whose weighted score sits close to a band edge (11.5, 17.5, 22.5)
34
+ is near the next tier — say so. A score at or above 22.5 flags `Deep
35
+ estimate required`, or `SPLIT into sub-features` when feature size alone
36
+ scored 5.
20
37
 
21
38
  Provenance: a score the human accepted as the agent proposed it is
22
39
  `proposed`; a score the human changed — or a rewritten plain-words note — is
23
40
  `stated`. One `scoreProvenance` per feature: `stated` if any cell changed.
41
+
42
+ ## Context factors — one level 1–4 per project
43
+
44
+ Five project-wide factors (`CONTEXT_FACTORS` in `project-price.mjs`),
45
+ copied from the v2 workbook's Project Roll-up level definitions (F11:F15).
46
+ Level 1 is always the cheapest end. A factor's `contextProvenance.anchor` is
47
+ the definition of the level chosen, quoted from this table.
48
+
49
+ | Factor | 1 | 2 | 3 | 4 |
50
+ | --- | --- | --- | --- | --- |
51
+ | `codebaseMaturity` | Greenfield | young and clean | mature with history | legacy, low test coverage |
52
+ | `stackFamiliarity` | Core stack, done before | adjacent, some learning | new to the team | new to the team |
53
+ | `specQuality` | Signed-off AC | clear written brief | outline or slide deck | verbal conversation only |
54
+ | `compliance` | None | handles PII | regulated - HIPAA, SOC2, GDPR audit | regulated |
55
+ | `clientDecisions` | One fast approver | two or three | committee sign-off | committee plus external review |
56
+
57
+ The workbook repeats its level-3 words at level 4 for `stackFamiliarity`
58
+ and `compliance`, and gives both levels the same multiplier. The multipliers
59
+ combine additively, capped at ×2.5 — see `CONTEXT_FACTORS` for the numbers.
@@ -29,30 +29,38 @@ yet. This is also the technique QUICK depth commits to. Score each feature
29
29
  - uncertainty
30
30
  - risk
31
31
 
32
- Sum the five scores per feature. Tier breaks: ≤11 S / 12–17 M / 18–22 L / 23+ XL
33
- (the team workbook's scale; `TIER_BREAKS` in `estimate-math.mjs`).
32
+ Weight and sum the five scores per feature — `weightedScore()` in
33
+ `pricing.mjs` computes SUMPRODUCT(scores, weights) × 5 using `WEIGHTS`
34
+ (tech 20%, size 10%, deps 20%, unc 30%, risk 20% — see `scoring-guide.md`
35
+ for why size and uncertainty are weighted asymmetrically). The result
36
+ (5–25) lands in one of four bands (`BANDS` in `pricing.mjs`):
34
37
 
35
- A tier is not itself an hour figure. It is looked up against the
36
- **calibration table** — the org's own historical tier → hour-band data if
37
- supplied during the interview, or the defaults `S 20-60h, M 60-160h, L
38
- 160-400h, XL 400-800h` if not. The calibration table is what turns "this is an M" into a
39
- number; never assign hours from the tier letter directly.
38
+ | Tier | Score | Price |
39
+ | --- | --- | --- |
40
+ | S | 5–11.5 | $500–$1,500 |
41
+ | M | 11.5–17.5 | $1,500–$4,000 |
42
+ | L | 17.5–22.5 | $4,000–$10,000 |
43
+ | XL | 22.5–25 | $10,000–$25,000 |
44
+
45
+ Bands are continuous, not discrete steps: `pointEstimate()` interpolates
46
+ linearly between a band's price floor and ceiling by where the score sits
47
+ inside it, so two features tiered M do not price the same unless their
48
+ scores match. The band **is** the price — nothing downstream converts a
49
+ tier letter, or an hour figure, into money.
40
50
 
41
51
  At STANDARD/DEEP the five scores are persisted on every feature (`scores`,
42
- `scoreNote`, `scoreProvenance` — `interview.md` §4 step 3) and the PERT
43
- total per feature is a soft cross-check against the tier's band: outside it,
44
- the interviewer says so once and the page marks the row ⚠; nothing is
45
- refused. Scores are never derived from hours.
46
-
47
- At QUICK depth this is the only technique in play, so the tier still has to
48
- reach `compute.mjs` through the normal task-shaped path: for each feature,
49
- write exactly one synthetic task whose `o`/`m`/`p` are the calibration
50
- band's low/mid/high (mid = `(low + high) / 2`), tagged with whichever AI
51
- category dominates the feature's expected work. The agent still does the
52
- judgment — scoring the five factors, picking the tier, reading the
53
- calibration table — the script only turns that one task's three numbers
54
- into an hour figure, so rule 3 (agent judges, script computes) holds even
55
- at the coarsest depth.
52
+ `scoreNote`, `scoreProvenance` — `interview.md` §4 step 3) and `pricing.mjs`
53
+ prices the feature straight from them. Task-level PERT hours (§3 below) are
54
+ still computed for planning — they size the roadmap's milestone shares —
55
+ but they no longer cross-check or gate the price. Scores are never derived
56
+ from hours, and hours are never derived from scores.
57
+
58
+ At QUICK depth this is the only technique in play: the five factors still
59
+ give a rough tier for a gut-check, but nothing is persisted (`schema.mjs`
60
+ refuses `scores`/`scoreNote`/`scoreProvenance` at QUICK) and no price is
61
+ computed — `compute.mjs` only prices STANDARD/DEEP features. QUICK is
62
+ reconnaissance, not a quote; move to STANDARD once the scope is worth
63
+ pricing.
56
64
 
57
65
  ## 3. Three-point PERT
58
66