@v11g/agents-rock 1.0.8 → 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 (117) 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/skills/problem-router/README.md +6 -0
  19. package/plugins/reasoning/skills/problem-router/SKILL.md +4 -0
  20. package/plugins/reasoning/skills/problem-router/references/contract.md +114 -19
  21. package/plugins/reasoning/skills/problem-solving/README.md +6 -0
  22. package/plugins/reasoning/skills/problem-solving/SKILL.md +2 -0
  23. package/plugins/reasoning/skills/problem-solving/references/contract.md +114 -19
  24. package/plugins/reasoning/skills/problem-solving/references/interview.md +2 -0
  25. package/plugins/reasoning/skills/systemic-design/README.md +3 -0
  26. package/plugins/reasoning/skills/systemic-design/SKILL.md +2 -0
  27. package/plugins/reasoning/skills/systemic-design/references/contract.md +114 -19
  28. package/plugins/reasoning/skills/systemic-design/references/interview.md +2 -0
  29. package/plugins/reasoning/skills/systems-thinking/README.md +3 -0
  30. package/plugins/reasoning/skills/systems-thinking/SKILL.md +2 -0
  31. package/plugins/reasoning/skills/systems-thinking/frameworks/leverage-points.md +15 -6
  32. package/plugins/reasoning/skills/systems-thinking/references/contract.md +114 -19
  33. package/plugins/reasoning/skills/systems-thinking/references/interview.md +2 -0
  34. package/plugins/solution-architect/.claude-plugin/plugin.json +1 -1
  35. package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/cdp.mjs +4 -1
  36. package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/quality-gate.mjs +16 -1
  37. package/plugins/solution-architect/skills/analyze-requirements/scripts/test/quality-gate.test.mjs +9 -0
  38. package/plugins/solution-architect/skills/estimate/README.md +20 -15
  39. package/plugins/solution-architect/skills/estimate/SKILL.md +10 -6
  40. package/plugins/solution-architect/skills/estimate/assets/estimate-template-agentic.html +111 -138
  41. package/plugins/solution-architect/skills/estimate/assets/estimate-template.html +361 -247
  42. package/plugins/solution-architect/skills/estimate/assets/scores-review-template.html +5 -4
  43. package/plugins/solution-architect/skills/estimate/evals/evals.json +7 -7
  44. package/plugins/solution-architect/skills/estimate/references/agentic-estimation.md +4 -2
  45. package/plugins/solution-architect/skills/estimate/references/ai-multipliers.md +38 -82
  46. package/plugins/solution-architect/skills/estimate/references/interview.md +56 -35
  47. package/plugins/solution-architect/skills/estimate/references/scoring-guide.md +40 -4
  48. package/plugins/solution-architect/skills/estimate/references/techniques.md +29 -21
  49. package/plugins/solution-architect/skills/estimate/references/writing.md +75 -43
  50. package/plugins/solution-architect/skills/estimate/scripts/lib/checks.mjs +37 -5
  51. package/plugins/solution-architect/skills/estimate/scripts/lib/context-schema.mjs +35 -0
  52. package/plugins/solution-architect/skills/estimate/scripts/lib/estimate-math.mjs +17 -75
  53. package/plugins/solution-architect/skills/estimate/scripts/lib/inline.mjs +5 -5
  54. package/plugins/solution-architect/skills/estimate/scripts/lib/pricing.mjs +78 -0
  55. package/plugins/solution-architect/skills/estimate/scripts/lib/project-price.mjs +96 -0
  56. package/plugins/solution-architect/skills/estimate/scripts/lib/redact.mjs +67 -19
  57. package/plugins/solution-architect/skills/estimate/scripts/lib/roadmap.mjs +4 -5
  58. package/plugins/solution-architect/skills/estimate/scripts/lib/rollup.mjs +48 -73
  59. package/plugins/solution-architect/skills/estimate/scripts/lib/schema.mjs +28 -13
  60. package/plugins/solution-architect/skills/estimate/scripts/lib/score-csv.mjs +2 -2
  61. package/plugins/solution-architect/skills/estimate/scripts/lib/score-html.mjs +1 -1
  62. package/plugins/solution-architect/skills/estimate/scripts/lib/scoring.mjs +2 -2
  63. package/plugins/solution-architect/skills/estimate/scripts/render.mjs +1 -1
  64. package/plugins/solution-architect/skills/estimate/scripts/score-review.mjs +1 -1
  65. package/plugins/solution-architect/skills/estimate/scripts/test/browser-agentic.test.mjs +143 -0
  66. package/plugins/solution-architect/skills/estimate/scripts/test/browser.test.mjs +209 -50
  67. package/plugins/solution-architect/skills/estimate/scripts/test/compute.test.mjs +57 -32
  68. package/plugins/solution-architect/skills/estimate/scripts/test/e2e.test.mjs +52 -0
  69. package/plugins/solution-architect/skills/estimate/scripts/test/estimate-math.test.mjs +25 -112
  70. package/plugins/solution-architect/skills/estimate/scripts/test/fixtures/agentic-estimation-fail.md +0 -10
  71. package/plugins/solution-architect/skills/estimate/scripts/test/fixtures/agentic-estimation-pass.md +0 -10
  72. package/plugins/solution-architect/skills/estimate/scripts/test/fixtures/agentic-inputs.json +1 -7
  73. package/plugins/solution-architect/skills/estimate/scripts/test/fixtures/booking-inputs.json +11 -10
  74. package/plugins/solution-architect/skills/estimate/scripts/test/fixtures/estimation-fail.md +6 -0
  75. package/plugins/solution-architect/skills/estimate/scripts/test/fixtures/estimation-pass.md +17 -21
  76. package/plugins/solution-architect/skills/estimate/scripts/test/pricing.test.mjs +88 -0
  77. package/plugins/solution-architect/skills/estimate/scripts/test/project-price.test.mjs +93 -0
  78. package/plugins/solution-architect/skills/estimate/scripts/test/references.test.mjs +86 -24
  79. package/plugins/solution-architect/skills/estimate/scripts/test/render.test.mjs +185 -31
  80. package/plugins/solution-architect/skills/estimate/scripts/test/schema.test.mjs +114 -61
  81. package/plugins/solution-architect/skills/estimate/scripts/test/score-review.test.mjs +34 -1
  82. package/plugins/solution-architect/skills/estimate/scripts/test/validate.test.mjs +103 -9
  83. package/plugins/solution-architect/skills/estimate/scripts/test/xlsx-export.test.mjs +292 -71
  84. package/plugins/solution-architect/skills/new-lead/SKILL.md +4 -3
  85. package/plugins/solution-architect/skills/proposal/README.md +9 -7
  86. package/plugins/solution-architect/skills/proposal/SKILL.md +10 -7
  87. package/plugins/solution-architect/skills/proposal/evals/evals.json +29 -11
  88. package/plugins/solution-architect/skills/proposal/evals/fixtures/gate-check-unpriced-harborline/ARCHITECTURE.md +65 -0
  89. package/plugins/solution-architect/skills/proposal/evals/fixtures/gate-check-unpriced-harborline/brief.md +21 -0
  90. package/plugins/solution-architect/skills/proposal/evals/fixtures/gate-check-unpriced-harborline/estimation-inputs.json +126 -0
  91. package/plugins/solution-architect/skills/proposal/evals/fixtures/gate-check-unpriced-harborline/estimation.json +215 -0
  92. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/estimation-inputs.json +224 -34
  93. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/estimation.json +103 -114
  94. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/estimation.md +48 -22
  95. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-meridian-dental/estimation-inputs.json +211 -33
  96. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-meridian-dental/estimation.json +102 -117
  97. package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-meridian-dental/estimation.md +48 -25
  98. package/plugins/solution-architect/skills/proposal/references/interview.md +3 -6
  99. package/plugins/solution-architect/skills/proposal/references/review.md +5 -4
  100. package/plugins/solution-architect/skills/proposal/references/writing.md +33 -31
  101. package/plugins/solution-architect/skills/proposal/scripts/derive.mjs +1 -1
  102. package/plugins/solution-architect/skills/proposal/scripts/lib/checks-client.mjs +5 -22
  103. package/plugins/solution-architect/skills/proposal/scripts/lib/checks-doc.mjs +18 -8
  104. package/plugins/solution-architect/skills/proposal/scripts/lib/checks.mjs +6 -2
  105. package/plugins/solution-architect/skills/proposal/scripts/lib/figures.mjs +24 -33
  106. package/plugins/solution-architect/skills/proposal/scripts/lib/sections.mjs +1 -1
  107. package/plugins/solution-architect/skills/proposal/scripts/test/checks-client.test.mjs +50 -47
  108. package/plugins/solution-architect/skills/proposal/scripts/test/checks-doc.test.mjs +99 -40
  109. package/plugins/solution-architect/skills/proposal/scripts/test/docs.test.mjs +11 -5
  110. package/plugins/solution-architect/skills/proposal/scripts/test/e2e.test.mjs +1 -1
  111. package/plugins/solution-architect/skills/proposal/scripts/test/evals-fixtures.test.mjs +39 -0
  112. package/plugins/solution-architect/skills/proposal/scripts/test/figures.test.mjs +67 -54
  113. package/plugins/solution-architect/skills/proposal/scripts/test/fixtures/proposal-fail.md +6 -1
  114. package/plugins/solution-architect/skills/proposal/scripts/test/fixtures/proposal-pass.md +8 -12
  115. package/plugins/solution-architect/skills/proposal/scripts/test/render.test.mjs +1 -1
  116. package/plugins/solution-architect/skills/proposal/scripts/test/validate.test.mjs +3 -2
  117. package/plugins/solution-architect/skills/estimate/scripts/lib/scenario-schema.mjs +0 -39
@@ -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="Measurement-based agentic project estimate">
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>
@@ -101,8 +101,8 @@ main section h2, main aside h2 {
101
101
  }
102
102
  .sec-head { display:flex; align-items:center; gap:.45rem; margin:0 0 .8rem; }
103
103
  .sec-head h2 { margin:0; }
104
- /* summary: the estimate's headline — team, months and cost stated once, then
105
- the committed alternatives as one small table (internal view only). */
104
+ /* summary: the estimate's headline — measured hours stated once, and the
105
+ price they bought once this scope is priced (never before). */
106
106
  #summary .lead { font-size:1.02rem; font-weight:600; margin:0 0 .25rem; }
107
107
  #summary .figures {
108
108
  font-size:1.7rem; font-weight:600; letter-spacing:-.02em; line-height:1.15;
@@ -150,11 +150,11 @@ td details.help > p, caption details.help > p { left:auto; right:0; }
150
150
  #method li { margin-bottom:.35rem; }
151
151
  #method .sources { font-size:.78rem; color:var(--ink-dim); margin:0; }
152
152
  #method .sources span { display:block; margin-bottom:.2rem; }
153
- /* roadmap: Gantt-style shared axis. Every row is a flex triple (label |
154
- track | months) with the same label/months widths as the axis strip below
155
- it, so a given month lines up under the same x-position in every row's
156
- track and in the axis ticks — one shared coordinate system, not a
157
- per-row axis. */
153
+ /* roadmap: shares of total effort on one shared axis. Every row is a flex
154
+ triple (label | track | share) with the same label/share widths as the axis
155
+ strip below it, so a given percentage lines up under the same x-position in
156
+ every row's track and in the axis ticks — one shared coordinate system, not
157
+ a per-row axis. */
158
158
  .roadmap-chart { display:flex; flex-direction:column; }
159
159
  .roadmap-row { display:flex; align-items:center; gap:.7rem; padding:.4rem 0; }
160
160
  .roadmap-row + .roadmap-row { border-top:1px solid var(--border); }
@@ -171,13 +171,13 @@ td details.help > p, caption details.help > p { left:auto; right:0; }
171
171
  display:flex; overflow:hidden; /* container segments fill it left to right */
172
172
  }
173
173
  .roadmap-seg { height:100%; }
174
- .roadmap-months {
174
+ .roadmap-share {
175
175
  flex:0 0 auto; min-width:4.6rem; text-align:right;
176
176
  font-family:'IBM Plex Mono',monospace; font-size:.72rem;
177
177
  color:var(--ink-dim); font-variant-numeric:tabular-nums;
178
178
  }
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. */
179
+ /* the axis mirrors the row's flex geometry (same label/share widths) so its
180
+ ticks land under the matching percentage in every track above. */
181
181
  .roadmap-axis {
182
182
  display:flex; align-items:flex-end; gap:.7rem; height:1rem; margin-top:.6rem;
183
183
  padding-top:.4rem; border-top:1px solid var(--border);
@@ -279,79 +279,49 @@ if (deliveryLine) {
279
279
  + `${DATA.inputs.agentContext.model}) · Baselines: ${evidenceIds.size} measurements`;
280
280
  }
281
281
 
282
- // Summary: the recommended scenario stated once — team, AI assistance,
283
- // months, cost — then the committed alternatives as one small table. Every
284
- // number is read from estimation.json; nothing is recomputed on the page.
285
- const recScenario = () => DATA.inputs.scenarios.find((s) => s.id === DATA.inputs.recommendedScenario);
286
- const sameTeam = (a, b) => a.team.length === b.team.length
287
- && a.team.every((m, i) => m.seniority === b.team[i].seniority && m.rate === b.team[i].rate);
288
- const byMonths = (a, b) => DATA.computed.scenarios[a.id].months - DATA.computed.scenarios[b.id].months;
282
+ // Summary: measured hours, stated once — and, only once this scope carries a
283
+ // price, the range they bought. R50: "priced" keys on computed.price.p50 !==
284
+ // 0 (some feature scored), not on delivery mode — a QUICK-depth team estimate
285
+ // hits the same all-zero price and gets the same honest state (see
286
+ // estimate-template.html). An agentic estimate never scores a feature, so it
287
+ // always takes the unpriced branch. Every number is read from
288
+ // estimation.json; nothing is recomputed on the page.
289
+ const pctText = (v) => `${Math.round(v * 100)}%`;
290
+ const INTERNAL_ATTR = ['data', 'internal'].join('-');
289
291
 
290
- function scenarioLabel(s) {
291
- const n = s.team.length;
292
- const who = n === 1 ? `1 ${s.team[0].seniority} engineer`
293
- : `${n} engineers (${s.team.map((m) => m.seniority).join(' · ')})`;
294
- return `${who}, ${s.aiAssisted ? 'AI-assisted' : 'humans unaided'}`;
292
+ function totalHours() {
293
+ return DATA.inputs.features.reduce((n, f) => n + DATA.computed.features[f.id].hours, 0);
295
294
  }
296
295
 
297
- // Signed month and cost deltas against the recommended scenario.
298
- function deltaText(c, rec) {
299
- const dm = c.months - rec.months;
300
- const dc = c.totalCost - rec.totalCost;
301
- const sign = (v) => (v >= 0 ? '+' : '−');
302
- return `${sign(dm)}${Math.abs(dm).toFixed(2)} mo · ${sign(dc)}${fmtMoney(Math.abs(dc))}`;
296
+ function summaryUnpriced(hours) {
297
+ return `<p class="lead">Not priced</p>
298
+ <p class="figures">${hours.toFixed(2)} h</p>
299
+ <p class="meta">Agentic delivery is not priced under this model — no feature carries a score, so
300
+ no dollar figure is produced. The hours above are measured, not a quote.</p>`;
303
301
  }
304
302
 
305
- function altRow(s, rec) {
306
- const c = DATA.computed.scenarios[s.id];
307
- return `<tr><td>${scenarioLabel(s)}</td><td class="num">${c.months.toFixed(2)}</td>
308
- <td class="num">${fmtMoney(c.totalCost)}</td><td><span class="delta">${deltaText(c, rec)}</span></td></tr>`;
309
- }
310
-
311
- // A same-roster scenario that differs only in AI assistance is one line, not
312
- // a row: the roster is what a reader chooses between.
313
- function aiVariantLine(s, rec) {
314
- const c = DATA.computed.scenarios[s.id];
315
- return `<p class="meta">${s.aiAssisted ? 'With' : 'Without'} AI assistance: ${c.months.toFixed(2)} months · `
316
- + `${fmtMoney(c.totalCost)} (${deltaText(c, rec)})</p>`;
317
- }
318
-
319
- // One sentence, only when an alternative beats the recommendation on both
320
- // axes — the page must not bury a dominated choice.
321
- function insightLine(alts, rec) {
322
- const c = (s) => DATA.computed.scenarios[s.id];
323
- const win = alts.find((s) => c(s).months < rec.months && c(s).totalCost < rec.totalCost);
324
- if (!win) return '';
325
- return `<p class="insight">&#9656; ${scenarioLabel(win)} finishes ${(rec.months - c(win).months).toFixed(2)} months `
326
- + `sooner for ${fmtMoney(rec.totalCost - c(win).totalCost)} less than the recommended plan.</p>`;
327
- }
328
-
329
- function summaryAlts(rec, recC) {
330
- const others = DATA.inputs.scenarios.filter((s) => s.id !== rec.id);
331
- if (!others.length) return '';
332
- const teams = others.filter((s) => !sameTeam(s, rec)).sort(byMonths);
333
- const variants = others.filter((s) => sameTeam(s, rec)).map((s) => aiVariantLine(s, recC)).join('');
334
- const table = teams.length ? `<table><caption>Alternatives</caption><thead><tr><th>Team</th>
335
- <th class="num">Months</th><th class="num">Cost</th><th></th></tr></thead>
336
- <tbody>${teams.map((s) => altRow(s, recC)).join('')}</tbody></table>` : '';
337
- const why = DATA.inputs.recommendedReason
338
- ? `<p class="why">Recommended because ${esc(DATA.inputs.recommendedReason)}.</p>` : '';
339
- return `<div class="alts" ${INTERNAL_ATTR}>${why}${variants}${table}${insightLine(teams, recC)}</div>`;
303
+ function summaryPriced(p) {
304
+ return `<p class="lead">Presented range</p>
305
+ <p class="figures">${fmtMoney(p.presentLow)}<span class="sep">&ndash;</span>${fmtMoney(p.presentHigh)}</p>
306
+ <p class="meta">single number, if one is required: ${fmtMoney(p.singleNumber)}</p>
307
+ <p class="meta">contingency ${pctText(p.contingencyRate)} · implied accuracy ${pctText(p.impliedAccuracy)}</p>`;
340
308
  }
341
309
 
342
310
  // The client-facing range from proposal-figures.json, when render.mjs was
343
- // handed it — the number the client is actually quoted.
311
+ // handed it — the number the client is actually quoted. Only meaningful once
312
+ // this scope is priced.
344
313
  function summaryRange() {
345
314
  const f = DATA.figures;
346
- if (!f?.cost || !f?.months) return '';
347
- return `<p class="range">range ${f.months.low} – ${f.months.high} months · ${fmtMoney(f.cost.low)} – ${fmtMoney(f.cost.high)}</p>`;
315
+ if (!f?.cost) return '';
316
+ const single = f.singleNumber ? ` &middot; single number ${fmtMoney(f.singleNumber)}` : '';
317
+ return `<p class="range">proposal ${fmtMoney(f.cost.low)} &ndash; ${fmtMoney(f.cost.high)}${single}</p>`;
348
318
  }
349
319
 
350
- function summarySize(recC) {
320
+ function summarySize(hours) {
351
321
  const feats = DATA.inputs.features;
352
322
  const tasks = feats.reduce((n, f) => n + f.tasks.length, 0);
353
323
  const milestones = new Set(feats.map((f) => f.milestone).filter(Boolean)).size;
354
- const parts = [`${Math.round(recC.hours).toLocaleString()} h`, `${feats.length} features`, `${tasks} tasks`];
324
+ const parts = [`${Math.round(hours).toLocaleString()} h`, `${feats.length} features`, `${tasks} tasks`];
355
325
  if (milestones) parts.push(`${milestones} milestones`);
356
326
  return parts.join(' · ');
357
327
  }
@@ -364,25 +334,37 @@ function summaryMethod() {
364
334
  }
365
335
 
366
336
  function summaryRisks() {
367
- return `${DATA.inputs.risks.length} risks priced in (${DATA.computed.riskBufferHours} h) · `
368
- + `${DATA.inputs.assumptions.length} assumptions`;
337
+ return `${DATA.inputs.risks.length} risks · ${DATA.inputs.assumptions.length} assumptions`;
338
+ }
339
+
340
+ // R51: free text the writer chose to leave about the approach — not
341
+ // scenario-specific (recommendedScenario is gone, recommendedReason is not),
342
+ // still schema-legal under any deliveryMode, and redact.mjs still strips it
343
+ // unconditionally from every client render (same rule as a score's cite) —
344
+ // so it is meant to keep existing and rendering, same as on the team page.
345
+ // Internal-only: marked, not merely present, since the client bytes never
346
+ // carry the field to render from.
347
+ function summaryApproach() {
348
+ const why = DATA.inputs.recommendedReason;
349
+ return why ? `<p class="why" ${INTERNAL_ATTR}>Approach: ${esc(why)}.</p>` : '';
369
350
  }
370
351
 
371
352
  function renderSummary() {
372
353
  const el = document.getElementById('summary');
373
354
  if (!el) return;
374
- const rec = recScenario();
375
- const recC = DATA.computed.scenarios[rec.id];
355
+ const p = DATA.computed.price;
356
+ const priced = p.p50 !== 0;
357
+ const hours = totalHours();
376
358
  el.innerHTML = secHead('Summary',
377
- 'The recommended way to deliver this scope, stated once: team, months and cost from the '
378
- + 'committed estimate. Alternatives compare other rosters against it.')
379
- + `<p class="lead">${scenarioLabel(rec)}</p>
380
- <p class="figures">${recC.months.toFixed(2)} months<span class="sep">&middot;</span>${fmtMoney(recC.totalCost)}</p>
381
- ${summaryRange()}
382
- <p class="meta">${summarySize(recC)}</p>
359
+ 'What this scope measured, stated once: expected hours from matched history, and — only '
360
+ + 'once a feature carries a score — the price they bought. An agentic estimate has no '
361
+ + 'scored features, so it states plainly that it is not priced.')
362
+ + (priced ? summaryPriced(p) : summaryUnpriced(hours))
363
+ + (priced ? summaryRange() : '')
364
+ + `<p class="meta">${summarySize(hours)}</p>
383
365
  <p class="meta">${summaryMethod()}</p>
384
366
  <p class="meta">${summaryRisks()}</p>
385
- ${summaryAlts(rec, recC)}`;
367
+ ${summaryApproach()}`;
386
368
  }
387
369
 
388
370
  const fmtMoney = (v) => `$${Math.round(v).toLocaleString()}`;
@@ -396,10 +378,12 @@ const secHead = (title, text) => `<div class="sec-head"><h2>${title}</h2>${help(
396
378
 
397
379
 
398
380
 
399
- // Containers and roadmap are generic — they price/visualize hours, never a
400
- // task category — so they carry over unchanged. The task table and Evidence
401
- // section below are baseline-native: every column comes from a measured or
402
- // seeded baseline, never from a category/PERT calc.
381
+ // Containers and the roadmap price/visualize hours, never a task category, so
382
+ // their container logic carries over unchanged; the roadmap's own bands were
383
+ // rebuilt below to match the share-based model — no scenario, no duration.
384
+ // The task table and Evidence section below are baseline-native: every
385
+ // column comes from a measured or seeded baseline, never from a
386
+ // category/PERT calc.
403
387
  // Two levels max (schema-enforced), so a component's container is one parent
404
388
  // hop at most; a top-level id is its own container.
405
389
  const COMP_PARENT = Object.fromEntries((DATA.inputs.components ?? []).map((c) => [c.id, c.parent]));
@@ -423,21 +407,13 @@ function onPieHover(e) {
423
407
  }
424
408
  }
425
409
 
426
- // Ticks are whole months (0, 1, 2…) once the span is long enough for that to
427
- // read as a timeline; below that a whole-month grid would be a bare "0", so
428
- // fall back to each band's own start/end. Either way ticks are computed once
429
- // and shared by every row's gridlines and the axis strip below them — one
430
- // coordinate system, not a per-row axis.
431
- function roadmapTicks(total, roadmap) {
432
- if (total >= 2) {
433
- const whole = [];
434
- for (let m = 0; m <= Math.floor(total); m++) whole.push(m);
435
- return whole;
436
- }
437
- return [...new Set(roadmap.flatMap((b) => [b.startMonths, b.endMonths]))].sort((a, b) => a - b);
438
- }
410
+ // The roadmap's scale is a share of the whole scope, not elapsed time: the
411
+ // milestone shares computed.roadmap carries sum to 1, so the axis is a fixed
412
+ // 0–100% and every row's gridlines and the axis strip below them read off the
413
+ // same quarters — one coordinate system, not a per-row axis.
414
+ const SHARE_TICKS = [0, 25, 50, 75, 100];
439
415
 
440
- const tickPct = (m, total) => (total > 0 ? (m / total) * 100 : 0);
416
+ const edgeStyle = (pct, pin) => (pct <= 0 ? `left:0${pin}` : pct >= 100 ? `right:0${pin}` : `left:${pct}%`);
441
417
 
442
418
  // Milestone names and feature lists are the only free text the roadmap draws, and
443
419
  // they now land in an attribute as well as in the body — so both are escaped
@@ -463,59 +439,51 @@ function bandSegments(band) {
463
439
  title="${esc(`${names[c] ?? c} · ${h.toFixed(2)}h (${Math.round((h / sum) * 100)}%)`)}"></span>`).join('');
464
440
  }
465
441
 
466
- // total, names and ticks are one thing — the chart's scale, shared by every row
467
- // and by the axis beneath them — so they travel together.
468
- function roadmapRow(band, scale) {
469
- const { total, names, ticks } = scale;
470
- const left = (band.startMonths / total) * 100;
471
- const width = ((band.endMonths - band.startMonths) / total) * 100;
472
- const gridlines = ticks.map((m) => {
473
- const pct = tickPct(m, total);
474
- const style = pct <= 0 ? 'left:0' : pct >= 100 ? 'right:0' : `left:${pct}%`;
475
- return `<span class="roadmap-gridline" style="${style}"></span>`;
476
- }).join('');
442
+ const ROADMAP_GRIDLINES = SHARE_TICKS
443
+ .map((t) => `<span class="roadmap-gridline" style="${edgeStyle(t, '')}"></span>`).join('');
444
+
445
+ // Every bar starts at the left edge: the rows are shares of one whole, read
446
+ // against each other, and sliding them along an axis would draw a sequence
447
+ // in time that nothing computed.
448
+ function roadmapRow(band, names) {
477
449
  // 150px of label column against "M1 - Foundation: the governed write path": every
478
- // row clips, and a clipped Gantt label names nothing. Widening the column would
479
- // cost the axis the span it needs, so each label carries its own full text as a
480
- // hover title instead.
450
+ // row clips, and a clipped label names nothing. Widening the column would cost the
451
+ // bars the span they need, so each label carries its own full text as a hover
452
+ // title instead.
481
453
  const feats = band.features.map((id) => names[id]);
482
454
  return `<div class="roadmap-row" data-milestone="${esc(band.milestone)}">
483
455
  <div class="roadmap-label"><span class="roadmap-name" title="${esc(band.milestone)}">${esc(band.milestone)}</span>
484
456
  <span class="roadmap-feature-names" title="${esc(feats.join(' · '))}">${feats.map(esc).join(' &middot; ')}</span></div>
485
- <div class="roadmap-track">${gridlines}<span class="roadmap-band" style="left:${left}%;width:${width}%">${bandSegments(band)}</span></div>
486
- <span class="roadmap-months">${band.startMonths}&ndash;${band.endMonths} mo</span></div>`;
457
+ <div class="roadmap-track">${ROADMAP_GRIDLINES}<span class="roadmap-band" style="left:0;width:${(band.share * 100).toFixed(2)}%">${bandSegments(band)}</span></div>
458
+ <span class="roadmap-share">${pctText(band.share)}</span></div>`;
487
459
  }
488
460
 
489
461
  // The two edge ticks are pinned to the track's own edges instead of centered,
490
462
  // so they never overhang the section.
491
- function roadmapAxis({ total, ticks }) {
492
- const tick = (m) => {
493
- const pct = tickPct(m, total);
494
- const style = pct <= 0 ? 'left:0;transform:none'
495
- : pct >= 100 ? 'right:0;transform:none' : `left:${pct}%`;
496
- return `<span style="${style}">${m}</span>`;
497
- };
463
+ function roadmapAxis() {
464
+ const tick = (t) => `<span style="${edgeStyle(t, ';transform:none')}">${t}</span>`;
498
465
  return `<div class="roadmap-axis"><span class="roadmap-axis-spacer"></span>
499
- <div class="roadmap-axis-ticks">${ticks.map(tick).join('')}</div>
500
- <span class="roadmap-axis-unit">months</span></div>`;
466
+ <div class="roadmap-axis-ticks">${SHARE_TICKS.map(tick).join('')}</div>
467
+ <span class="roadmap-axis-unit">% of effort</span></div>`;
501
468
  }
502
469
 
503
- // Committed numbers only: the roadmap draws the recommended scenario as
504
- // computed — nothing on this page recomputes a month or a cost.
470
+ // Committed numbers only: the roadmap draws computed.roadmap as computed —
471
+ // milestones in delivery order, each sized by its share of total effort. No
472
+ // scenario or duration exists in this model; a delivery with no
473
+ // milestone-tagged feature carries no computed.roadmap at all, and the
474
+ // section is absent.
505
475
  function renderRoadmap() {
506
476
  const el = document.getElementById('roadmap');
507
477
  if (!el) return;
508
- const roadmap = DATA.computed.scenarios[DATA.inputs.recommendedScenario]?.roadmap;
478
+ const roadmap = DATA.computed.roadmap;
509
479
  if (!roadmap) { el.remove(); return; }
510
- const total = roadmap[roadmap.length - 1].endMonths;
511
480
  const names = Object.fromEntries(DATA.inputs.features.map((f) => [f.id, f.name]));
512
- const scale = { total, names, ticks: roadmapTicks(total, roadmap) };
513
481
  el.innerHTML = secHead('Roadmap',
514
- 'Sequential delivery by the recommended scenario team. Bands are relative months from '
515
- + 'kickoff, not calendar dates; each milestone\'s width is its share of the work. Band '
482
+ 'Milestones in delivery order, each bar its share of total effort. Shares are not '
483
+ + 'durations and they are not dates — this estimate produces no timeline. Band '
516
484
  + 'colors are the containers the milestone touches (same palette as the chart above).')
517
- + `<div class="roadmap-chart">${roadmap.map((b) => roadmapRow(b, scale)).join('')}`
518
- + `${roadmapAxis(scale)}</div>`;
485
+ + `<div class="roadmap-chart">${roadmap.map((b) => roadmapRow(b, names)).join('')}`
486
+ + `${roadmapAxis()}</div>`;
519
487
  }
520
488
 
521
489
  // Committed numbers only, like every section: expected hours summed per
@@ -565,15 +533,20 @@ function renderContainers() {
565
533
  // 1 is the tightest match (same repo + agent + model), 0 means no evidence.
566
534
  const MATCH_LABELS = { 0: 'none', 1: 'repo+agent+model', 2: 'agent', 3: 'similar scope', 4: 'global shape' };
567
535
 
536
+ // A --client-only render has redact.mjs strip a task's provenance and
537
+ // assumptions (R49, same class as a score's cite) — null-guarded, not
538
+ // assumed, same as every other stripped field on this page.
568
539
  function taskRow(t, c) {
540
+ const assump = (t.assumptions ?? []).join('; ') || 'none';
541
+ const prov = t.provenance ? `<span class="tag ${t.provenance}">${t.provenance}</span>` : '';
569
542
  return `<tr class="${confLevel(c.confidence)}">
570
543
  <td>${esc(t.id)}</td>
571
544
  <td class="num">${c.minutes ?? 'not estimated'}</td>
572
545
  <td class="num">${c.samples}</td>
573
546
  <td>${MATCH_LABELS[c.matchLevel] ?? 'none'}</td>
574
547
  <td><span class="conf">${c.confidence}</span></td>
575
- <td class="task-assump">${esc(t.assumptions.join('; ') || 'none')}</td>
576
- <td><span class="tag ${t.provenance}">${t.provenance}</span></td></tr>`;
548
+ <td class="task-assump">${esc(assump)}</td>
549
+ <td>${prov}</td></tr>`;
577
550
  }
578
551
 
579
552
  // Committed numbers only: every row is a task, baselined from measured
@@ -609,8 +582,8 @@ function renderRegister() {
609
582
  if (!el) return;
610
583
  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.impactMinutes}min</td></tr>`).join('');
611
584
  el.innerHTML = `<table><caption>Risk register ${help(
612
- 'Each risk adds probability &times; impact minutes to the risk buffer, so unlikely-but-costly '
613
- + 'events are priced in without padding every task.')}</caption>
585
+ 'Each risk states probability &times; impact minutes: the rework it would cost if it lands. '
586
+ + 'It is named, not padded into every task, and it is not added to any total.')}</caption>
614
587
  <thead><tr><th>Risk</th><th class="num">Probability</th><th class="num">Impact</th></tr></thead>
615
588
  <tbody>${riskRows}</tbody></table>`;
616
589
  }
@@ -624,7 +597,7 @@ function methodSteps() {
624
597
  narrowing from same repo + agent + model down to a global shape baseline.</li>
625
598
  <li>With &ge;5 samples, duration comes from a lognormal fit of the measured
626
599
  percentiles: the estimate is the distribution mean (means sum across tasks;
627
- medians do not), the spread feeds a project-level &radic;&Sigma;&sigma;&sup2; buffer.</li>
600
+ medians do not); the spread is kept per task as its uncertainty.</li>
628
601
  <li>Tasks without history use the interview's seed guess and are labeled
629
602
  UNCALIBRATED — never presented as measured.</li>
630
603
  <li>Risks are explicit: probability &times; impact minutes, each with a stated
@@ -647,7 +620,7 @@ function renderMethod() {
647
620
  <p class="sources"><span>Lognormal task durations and median-vs-mean — Erik Bernhardsson,
648
621
  erikbern.com/2019/04/15/why-software-projects-take-longer-than-you-think-a-statistical-model.html.</span>
649
622
  <span>Percentile-based cycle-time forecasting — Daniel Vacanti, Actionable Agile Metrics for Predictability.</span>
650
- <span>Buffer machinery — Atomic Object, atomicobject.com/client-resources/better-custom-software-estimates.</span></p></details>`;
623
+ <span>Risk as probability &times; impact — Atomic Object, atomicobject.com/client-resources/better-custom-software-estimates.</span></p></details>`;
651
624
  }
652
625
 
653
626
  function renderAll() {