@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.
- package/README.md +1 -1
- package/package.json +1 -1
- package/plugins/reasoning/.claude-plugin/plugin.json +1 -1
- package/plugins/reasoning/evals/format-handoff-folder/graders/folder-named.md +8 -0
- package/plugins/reasoning/evals/format-handoff-folder/graders/skill-fired.md +7 -0
- package/plugins/reasoning/evals/format-handoff-folder/prompt.md +9 -0
- package/plugins/reasoning/evals/format-ids-and-supports/graders/ids-in-chat.md +8 -0
- package/plugins/reasoning/evals/format-ids-and-supports/graders/skill-fired.md +7 -0
- package/plugins/reasoning/evals/format-ids-and-supports/graders/supports-resolve.md +11 -0
- package/plugins/reasoning/evals/format-ids-and-supports/prompt.md +8 -0
- package/plugins/reasoning/evals/format-root-candidate-status/graders/candidate-status.md +11 -0
- package/plugins/reasoning/evals/format-root-candidate-status/graders/skill-fired.md +7 -0
- package/plugins/reasoning/evals/format-root-candidate-status/prompt.md +8 -0
- package/plugins/reasoning/evals/format-unsaved-continues/graders/analysis-completes.md +9 -0
- package/plugins/reasoning/evals/format-unsaved-continues/graders/not-saved-stated.md +9 -0
- package/plugins/reasoning/evals/format-unsaved-continues/graders/skill-fired.md +7 -0
- package/plugins/reasoning/evals/format-unsaved-continues/prompt.md +8 -0
- package/plugins/reasoning/skills/problem-router/README.md +6 -0
- package/plugins/reasoning/skills/problem-router/SKILL.md +4 -0
- package/plugins/reasoning/skills/problem-router/references/contract.md +114 -19
- package/plugins/reasoning/skills/problem-solving/README.md +6 -0
- package/plugins/reasoning/skills/problem-solving/SKILL.md +2 -0
- package/plugins/reasoning/skills/problem-solving/references/contract.md +114 -19
- package/plugins/reasoning/skills/problem-solving/references/interview.md +2 -0
- package/plugins/reasoning/skills/systemic-design/README.md +3 -0
- package/plugins/reasoning/skills/systemic-design/SKILL.md +2 -0
- package/plugins/reasoning/skills/systemic-design/references/contract.md +114 -19
- package/plugins/reasoning/skills/systemic-design/references/interview.md +2 -0
- package/plugins/reasoning/skills/systems-thinking/README.md +3 -0
- package/plugins/reasoning/skills/systems-thinking/SKILL.md +2 -0
- package/plugins/reasoning/skills/systems-thinking/frameworks/leverage-points.md +15 -6
- package/plugins/reasoning/skills/systems-thinking/references/contract.md +114 -19
- package/plugins/reasoning/skills/systems-thinking/references/interview.md +2 -0
- package/plugins/solution-architect/.claude-plugin/plugin.json +1 -1
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/cdp.mjs +4 -1
- package/plugins/solution-architect/skills/analyze-requirements/scripts/lib/quality-gate.mjs +16 -1
- package/plugins/solution-architect/skills/analyze-requirements/scripts/test/quality-gate.test.mjs +9 -0
- package/plugins/solution-architect/skills/estimate/README.md +20 -15
- package/plugins/solution-architect/skills/estimate/SKILL.md +10 -6
- package/plugins/solution-architect/skills/estimate/assets/estimate-template-agentic.html +111 -138
- package/plugins/solution-architect/skills/estimate/assets/estimate-template.html +361 -247
- package/plugins/solution-architect/skills/estimate/assets/scores-review-template.html +5 -4
- package/plugins/solution-architect/skills/estimate/evals/evals.json +7 -7
- package/plugins/solution-architect/skills/estimate/references/agentic-estimation.md +4 -2
- package/plugins/solution-architect/skills/estimate/references/ai-multipliers.md +38 -82
- package/plugins/solution-architect/skills/estimate/references/interview.md +56 -35
- package/plugins/solution-architect/skills/estimate/references/scoring-guide.md +40 -4
- package/plugins/solution-architect/skills/estimate/references/techniques.md +29 -21
- package/plugins/solution-architect/skills/estimate/references/writing.md +75 -43
- package/plugins/solution-architect/skills/estimate/scripts/lib/checks.mjs +37 -5
- package/plugins/solution-architect/skills/estimate/scripts/lib/context-schema.mjs +35 -0
- package/plugins/solution-architect/skills/estimate/scripts/lib/estimate-math.mjs +17 -75
- package/plugins/solution-architect/skills/estimate/scripts/lib/inline.mjs +5 -5
- package/plugins/solution-architect/skills/estimate/scripts/lib/pricing.mjs +78 -0
- package/plugins/solution-architect/skills/estimate/scripts/lib/project-price.mjs +96 -0
- package/plugins/solution-architect/skills/estimate/scripts/lib/redact.mjs +67 -19
- package/plugins/solution-architect/skills/estimate/scripts/lib/roadmap.mjs +4 -5
- package/plugins/solution-architect/skills/estimate/scripts/lib/rollup.mjs +48 -73
- package/plugins/solution-architect/skills/estimate/scripts/lib/schema.mjs +28 -13
- package/plugins/solution-architect/skills/estimate/scripts/lib/score-csv.mjs +2 -2
- package/plugins/solution-architect/skills/estimate/scripts/lib/score-html.mjs +1 -1
- package/plugins/solution-architect/skills/estimate/scripts/lib/scoring.mjs +2 -2
- package/plugins/solution-architect/skills/estimate/scripts/render.mjs +1 -1
- package/plugins/solution-architect/skills/estimate/scripts/score-review.mjs +1 -1
- package/plugins/solution-architect/skills/estimate/scripts/test/browser-agentic.test.mjs +143 -0
- package/plugins/solution-architect/skills/estimate/scripts/test/browser.test.mjs +209 -50
- package/plugins/solution-architect/skills/estimate/scripts/test/compute.test.mjs +57 -32
- package/plugins/solution-architect/skills/estimate/scripts/test/e2e.test.mjs +52 -0
- package/plugins/solution-architect/skills/estimate/scripts/test/estimate-math.test.mjs +25 -112
- package/plugins/solution-architect/skills/estimate/scripts/test/fixtures/agentic-estimation-fail.md +0 -10
- package/plugins/solution-architect/skills/estimate/scripts/test/fixtures/agentic-estimation-pass.md +0 -10
- package/plugins/solution-architect/skills/estimate/scripts/test/fixtures/agentic-inputs.json +1 -7
- package/plugins/solution-architect/skills/estimate/scripts/test/fixtures/booking-inputs.json +11 -10
- package/plugins/solution-architect/skills/estimate/scripts/test/fixtures/estimation-fail.md +6 -0
- package/plugins/solution-architect/skills/estimate/scripts/test/fixtures/estimation-pass.md +17 -21
- package/plugins/solution-architect/skills/estimate/scripts/test/pricing.test.mjs +88 -0
- package/plugins/solution-architect/skills/estimate/scripts/test/project-price.test.mjs +93 -0
- package/plugins/solution-architect/skills/estimate/scripts/test/references.test.mjs +86 -24
- package/plugins/solution-architect/skills/estimate/scripts/test/render.test.mjs +185 -31
- package/plugins/solution-architect/skills/estimate/scripts/test/schema.test.mjs +114 -61
- package/plugins/solution-architect/skills/estimate/scripts/test/score-review.test.mjs +34 -1
- package/plugins/solution-architect/skills/estimate/scripts/test/validate.test.mjs +103 -9
- package/plugins/solution-architect/skills/estimate/scripts/test/xlsx-export.test.mjs +292 -71
- package/plugins/solution-architect/skills/new-lead/SKILL.md +4 -3
- package/plugins/solution-architect/skills/proposal/README.md +9 -7
- package/plugins/solution-architect/skills/proposal/SKILL.md +10 -7
- package/plugins/solution-architect/skills/proposal/evals/evals.json +29 -11
- package/plugins/solution-architect/skills/proposal/evals/fixtures/gate-check-unpriced-harborline/ARCHITECTURE.md +65 -0
- package/plugins/solution-architect/skills/proposal/evals/fixtures/gate-check-unpriced-harborline/brief.md +21 -0
- package/plugins/solution-architect/skills/proposal/evals/fixtures/gate-check-unpriced-harborline/estimation-inputs.json +126 -0
- package/plugins/solution-architect/skills/proposal/evals/fixtures/gate-check-unpriced-harborline/estimation.json +215 -0
- package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/estimation-inputs.json +224 -34
- package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/estimation.json +103 -114
- package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-harborline-dispatch/estimation.md +48 -22
- package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-meridian-dental/estimation-inputs.json +211 -33
- package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-meridian-dental/estimation.json +102 -117
- package/plugins/solution-architect/skills/proposal/evals/fixtures/pre-fed-meridian-dental/estimation.md +48 -25
- package/plugins/solution-architect/skills/proposal/references/interview.md +3 -6
- package/plugins/solution-architect/skills/proposal/references/review.md +5 -4
- package/plugins/solution-architect/skills/proposal/references/writing.md +33 -31
- package/plugins/solution-architect/skills/proposal/scripts/derive.mjs +1 -1
- package/plugins/solution-architect/skills/proposal/scripts/lib/checks-client.mjs +5 -22
- package/plugins/solution-architect/skills/proposal/scripts/lib/checks-doc.mjs +18 -8
- package/plugins/solution-architect/skills/proposal/scripts/lib/checks.mjs +6 -2
- package/plugins/solution-architect/skills/proposal/scripts/lib/figures.mjs +24 -33
- package/plugins/solution-architect/skills/proposal/scripts/lib/sections.mjs +1 -1
- package/plugins/solution-architect/skills/proposal/scripts/test/checks-client.test.mjs +50 -47
- package/plugins/solution-architect/skills/proposal/scripts/test/checks-doc.test.mjs +99 -40
- package/plugins/solution-architect/skills/proposal/scripts/test/docs.test.mjs +11 -5
- package/plugins/solution-architect/skills/proposal/scripts/test/e2e.test.mjs +1 -1
- package/plugins/solution-architect/skills/proposal/scripts/test/evals-fixtures.test.mjs +39 -0
- package/plugins/solution-architect/skills/proposal/scripts/test/figures.test.mjs +67 -54
- package/plugins/solution-architect/skills/proposal/scripts/test/fixtures/proposal-fail.md +6 -1
- package/plugins/solution-architect/skills/proposal/scripts/test/fixtures/proposal-pass.md +8 -12
- package/plugins/solution-architect/skills/proposal/scripts/test/render.test.mjs +1 -1
- package/plugins/solution-architect/skills/proposal/scripts/test/validate.test.mjs +3 -2
- 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="
|
|
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 —
|
|
105
|
-
|
|
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:
|
|
154
|
-
track |
|
|
155
|
-
it, so a given
|
|
156
|
-
track and in the axis ticks — one shared coordinate system, not
|
|
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-
|
|
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/
|
|
180
|
-
ticks land under the matching
|
|
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:
|
|
283
|
-
//
|
|
284
|
-
//
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
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
|
|
291
|
-
|
|
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
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
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
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
<
|
|
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">▸ ${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">–</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
|
|
347
|
-
|
|
315
|
+
if (!f?.cost) return '';
|
|
316
|
+
const single = f.singleNumber ? ` · single number ${fmtMoney(f.singleNumber)}` : '';
|
|
317
|
+
return `<p class="range">proposal ${fmtMoney(f.cost.low)} – ${fmtMoney(f.cost.high)}${single}</p>`;
|
|
348
318
|
}
|
|
349
319
|
|
|
350
|
-
function summarySize(
|
|
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(
|
|
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
|
|
368
|
-
|
|
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
|
|
375
|
-
const
|
|
355
|
+
const p = DATA.computed.price;
|
|
356
|
+
const priced = p.p50 !== 0;
|
|
357
|
+
const hours = totalHours();
|
|
376
358
|
el.innerHTML = secHead('Summary',
|
|
377
|
-
'
|
|
378
|
-
+ '
|
|
379
|
-
+
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
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
|
-
${
|
|
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
|
|
400
|
-
//
|
|
401
|
-
//
|
|
402
|
-
//
|
|
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
|
-
//
|
|
427
|
-
//
|
|
428
|
-
//
|
|
429
|
-
//
|
|
430
|
-
|
|
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
|
|
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
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
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
|
|
479
|
-
//
|
|
480
|
-
//
|
|
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(' · ')}</span></div>
|
|
485
|
-
<div class="roadmap-track">${
|
|
486
|
-
<span class="roadmap-
|
|
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(
|
|
492
|
-
const tick = (
|
|
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">${
|
|
500
|
-
<span class="roadmap-axis-unit"
|
|
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
|
|
504
|
-
//
|
|
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.
|
|
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
|
-
'
|
|
515
|
-
+ '
|
|
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,
|
|
518
|
-
+ `${roadmapAxis(
|
|
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(
|
|
576
|
-
<td
|
|
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
|
|
613
|
-
+ '
|
|
585
|
+
'Each risk states probability × 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 ≥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)
|
|
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 × 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>
|
|
623
|
+
<span>Risk as probability × impact — Atomic Object, atomicobject.com/client-resources/better-custom-software-estimates.</span></p></details>`;
|
|
651
624
|
}
|
|
652
625
|
|
|
653
626
|
function renderAll() {
|