@blackbelt-technology/pi-dashboard-cost-estimator 0.7.0
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/.pi/skills/software-cost-estimator/SKILL.md +200 -0
- package/.pi/skills/software-cost-estimator/assets/calibration/reference-classes.md +126 -0
- package/.pi/skills/software-cost-estimator/assets/calibration/wms-reference.yaml +217 -0
- package/.pi/skills/software-cost-estimator/assets/example-quality-hub.yaml +230 -0
- package/.pi/skills/software-cost-estimator/assets/rates.default.yaml +106 -0
- package/.pi/skills/software-cost-estimator/assets/templates/architecture-plan.md +115 -0
- package/.pi/skills/software-cost-estimator/assets/templates/offer-summary.md +99 -0
- package/.pi/skills/software-cost-estimator/references/ai-delivery-modes.md +276 -0
- package/.pi/skills/software-cost-estimator/references/business-case.md +134 -0
- package/.pi/skills/software-cost-estimator/references/nfr-catalog.md +112 -0
- package/.pi/skills/software-cost-estimator/references/rates.md +84 -0
- package/.pi/skills/software-cost-estimator/references/role-model.md +109 -0
- package/.pi/skills/software-cost-estimator/references/sizing-methods.md +147 -0
- package/README.md +113 -0
- package/bin/calibrate-sessions.mjs +12 -0
- package/bin/calibrate.mjs +12 -0
- package/bin/estimate.mjs +12 -0
- package/package.json +96 -0
- package/src/bin/calibrate-sessions.ts +247 -0
- package/src/bin/calibrate.ts +77 -0
- package/src/bin/estimate.ts +129 -0
- package/src/client/index.tsx +300 -0
- package/src/configSchema.json +56 -0
- package/src/engine/businesscase.ts +139 -0
- package/src/engine/defaults.ts +354 -0
- package/src/engine/effort.ts +119 -0
- package/src/engine/estimate.ts +135 -0
- package/src/engine/modes.ts +312 -0
- package/src/engine/report.ts +239 -0
- package/src/engine/roles.ts +82 -0
- package/src/engine/simulate.ts +114 -0
- package/src/engine/sizing.ts +108 -0
- package/src/engine/types.ts +288 -0
- package/src/engine/workbook.ts +143 -0
- package/src/engine/xlsx.ts +228 -0
- package/src/engine/yaml.ts +205 -0
- package/src/server/index.ts +123 -0
- package/src/telemetry/sessions.ts +380 -0
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
# AI vs human delivery: the evidence, and how the model uses it
|
|
2
|
+
|
|
3
|
+
## The finding that governs everything
|
|
4
|
+
|
|
5
|
+
**The AI effect is bimodal, and the split is predictable.** Randomised trials disagree
|
|
6
|
+
with each other not because one is wrong, but because they measured different regimes.
|
|
7
|
+
|
|
8
|
+
| Study | Setting | Result |
|
|
9
|
+
|---|---|---|
|
|
10
|
+
| **METR RCT (2025)**, 16 experienced OSS devs, 246 tasks | Their **own mature repositories**, ~5 years of prior context each | **19% slower** with AI — while believing they were 20% faster |
|
|
11
|
+
| **Demirer et al.**, 3 field RCTs, 4,867 developers (Microsoft, Accenture, Fortune 100) | Enterprise, ordinary work | **+26.08% completed tasks** (SE 10.3%); **less experienced developers had higher adoption and greater gains** |
|
|
12
|
+
| **GitHub controlled lab study** | Scoped, isolated task | up to **55% faster** |
|
|
13
|
+
| **Jellyfish**, 146k Jira tickets, 145 companies, 6,500 engineers | Real-world telemetry | real gains ≈ **8%** |
|
|
14
|
+
| **DORA 2025**, ~5,000 professionals | Industry-wide | ~90% adoption; AI is an **amplifier**; throughput recovered but **instability/rework rose** |
|
|
15
|
+
| **GenAI SLR + 65-dev survey (2026)** | Task level | >70% of developers at least **halve** time on **boilerplate and documentation** |
|
|
16
|
+
| **JetBrains State of Developer Ecosystem 2025** | Survey | Delegated: boilerplate, search, language translation, docs. **Retained: debugging, application logic design** |
|
|
17
|
+
|
|
18
|
+
Read the gradient: the more novel the code and the less context the human already holds,
|
|
19
|
+
the more AI helps. The more the work is a subtle change inside a large system the
|
|
20
|
+
developer knows intimately, the more AI costs. Lab conditions sit at one end, METR at
|
|
21
|
+
the other, and every real project is a weighted mixture.
|
|
22
|
+
|
|
23
|
+
## How the model encodes it
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
effort_ai(item) = effort_human(item)
|
|
27
|
+
× speedup(ai_class)
|
|
28
|
+
× codebase_modifier
|
|
29
|
+
× seniority_modifier
|
|
30
|
+
+ review_overhead
|
|
31
|
+
+ rework_uplift
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
### Speedup by `ai_class` — multipliers on human-only hours
|
|
35
|
+
|
|
36
|
+
| Class | Optimistic | Likely | Pessimistic | What belongs here |
|
|
37
|
+
|---|---:|---:|---:|---|
|
|
38
|
+
| `boilerplate` | 0.35 | **0.50** | 0.70 | Scaffolding, DTOs, config, migrations, CRUD screens from a schema |
|
|
39
|
+
| `crud` | 0.50 | **0.65** | 0.85 | Standard create/read/update/delete with validation and a UI |
|
|
40
|
+
| `integration` | 0.70 | **0.85** | 1.00 | Third-party APIs, protocols, undocumented or flaky external systems |
|
|
41
|
+
| `algorithmic` | 0.75 | **0.90** | 1.05 | Domain logic, optimisation, concurrency, state machines |
|
|
42
|
+
| `legacy-change` | 0.90 | **1.10** | 1.30 | Changes inside a large mature codebase — **the METR regime** |
|
|
43
|
+
| `ux-heavy` | 0.75 | **0.90** | 1.05 | Design-led interaction work, accessibility, bespoke visual design |
|
|
44
|
+
| `docs` | 0.30 | **0.45** | 0.65 | Documentation, specs, runbooks, release notes |
|
|
45
|
+
| `ops` | 0.60 | **0.80** | 1.00 | Infrastructure, CI/CD, observability wiring |
|
|
46
|
+
|
|
47
|
+
`×1.00` means no change. Above 1.00 means AI makes it **slower**. That is not a modelling
|
|
48
|
+
error — it is the single most robust finding in the 2025 literature, and refusing to
|
|
49
|
+
represent it is how estimates become marketing.
|
|
50
|
+
|
|
51
|
+
### Environment modifiers
|
|
52
|
+
|
|
53
|
+
| Codebase | × | Rationale |
|
|
54
|
+
|---|---:|---|
|
|
55
|
+
| greenfield | 0.92 | No existing context to fight; AI's strongest setting |
|
|
56
|
+
| brownfield | 1.00 | Neutral baseline |
|
|
57
|
+
| legacy | 1.12 | METR conditions across the board |
|
|
58
|
+
|
|
59
|
+
| Seniority | × | Rationale |
|
|
60
|
+
|---|---:|---|
|
|
61
|
+
| junior | 0.90 | Demirer: less experienced developers gained most |
|
|
62
|
+
| mid | 1.00 | Baseline |
|
|
63
|
+
| senior | 1.08 | Highest expertise = smallest marginal gain, largest correction cost |
|
|
64
|
+
|
|
65
|
+
These magnitudes are **UNCALIBRATED**; the *direction* is well evidenced, the size is not.
|
|
66
|
+
|
|
67
|
+
### Review and rework — the lines that must never be deleted
|
|
68
|
+
|
|
69
|
+
| Mode | Review | Rework |
|
|
70
|
+
|---|---:|---:|
|
|
71
|
+
| `human_only` | 0% | 0% |
|
|
72
|
+
| `human_with_ai` | 8% | 5% |
|
|
73
|
+
| `ai_steered_human_supervised` | 18% | 10% |
|
|
74
|
+
| `agentic_hitl` | 28% | 15% |
|
|
75
|
+
|
|
76
|
+
DORA 2025's central finding is that AI **amplifies** whatever the organisation already
|
|
77
|
+
is: strong teams get better, weak teams get their problems magnified, and instability
|
|
78
|
+
rose across the board. Savings that ignore rework are not savings, they are deferred cost.
|
|
79
|
+
|
|
80
|
+
## The four modes
|
|
81
|
+
|
|
82
|
+
### `human_only`
|
|
83
|
+
Baseline. No AI licence, no token spend, no review or rework uplift.
|
|
84
|
+
|
|
85
|
+
### `human_with_ai`
|
|
86
|
+
Developers keep the keyboard; AI assists inline. Build effort compresses by the
|
|
87
|
+
class-weighted speedup; **non-build effort does not change at all**. Then review and
|
|
88
|
+
rework are added back.
|
|
89
|
+
|
|
90
|
+
Expect a **5–15% total project saving**. That is not disappointing — it is what
|
|
91
|
+
Jellyfish measured across 146k real tickets. If your model shows 40%, your `ai_class`
|
|
92
|
+
mix is fantasy.
|
|
93
|
+
|
|
94
|
+
### `ai_steered_human_supervised`
|
|
95
|
+
The agent writes the change; the human specifies, steers and reviews. Modelled on a
|
|
96
|
+
**locally measured** delivery record rather than a vendor claim:
|
|
97
|
+
|
|
98
|
+
```
|
|
99
|
+
steering_hours = build_hours × speedup × agent_leverage(0.75)
|
|
100
|
+
total_hours = steering_hours × steering_overhead
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
The overhead multiplier — **1.5× light / 1.8× base / 2.25× heavy compliance** — was
|
|
104
|
+
derived from 465 hours of measured active steering time (inter-message gaps, capped at
|
|
105
|
+
15 minutes so breaks do not count as work) that produced a complete product. It covers
|
|
106
|
+
everything that never happens inside the agent: manual accessibility testing, security
|
|
107
|
+
validation, hosting/DPA/DR/SLA work, client iteration, PM, content authoring, deployment.
|
|
108
|
+
|
|
109
|
+
Because that multiplier is measured end to end, review is **embedded in it** and is
|
|
110
|
+
reported but not added a second time.
|
|
111
|
+
|
|
112
|
+
Note what this model does honestly: for `legacy-change` work the speedup is 1.10, so
|
|
113
|
+
steering hours barely fall while the overhead multiplier still applies — and the mode
|
|
114
|
+
comes out **more expensive** than human-only. That is the correct answer.
|
|
115
|
+
|
|
116
|
+
### `agentic_hitl`
|
|
117
|
+
Autonomous agents, human-in-the-loop oversight. Costed with **ACEM** (arXiv 2608.02582),
|
|
118
|
+
which decomposes agentic cost into three additive dimensions:
|
|
119
|
+
|
|
120
|
+
- **LLM cost** — tokens across agent actions, scaled by
|
|
121
|
+
**RF** (Revision Factor: retries and rejected output) ×
|
|
122
|
+
**CF** (Context Factor: token growth as context accumulates)
|
|
123
|
+
- **HITL cost** — human oversight, classified by the four-level **HIS**
|
|
124
|
+
(HITL Intensity Score)
|
|
125
|
+
- **Infrastructure cost** — orchestration, tooling, observability
|
|
126
|
+
|
|
127
|
+
ACEM maps UCP/Story Points/Function Points → token consumption, which is why this skill
|
|
128
|
+
can price it from the same sizing data.
|
|
129
|
+
|
|
130
|
+
ACEM ships its constants symbolic — deliberately uncalibrated pending real project data.
|
|
131
|
+
**This skill has since measured them** from 542 local pi sessions (737.5 active steering
|
|
132
|
+
hours, $7,676 billed) via `src/bin/calibrate-sessions.ts`:
|
|
133
|
+
|
|
134
|
+
| Parameter | ACEM illustrative | **Measured locally** | Verdict |
|
|
135
|
+
|---|---:|---:|---|
|
|
136
|
+
| Context Factor | 1.25 | **5.10** | understated 4.1× |
|
|
137
|
+
| Revision Factor | 1.40 | **1.05** (lower bound) | overstated; floor held at 1.25 |
|
|
138
|
+
| Output share of tokens | 25% | **0.38%** | overstated 66× |
|
|
139
|
+
| Cache-read share | — | **95.5%** | this is the actual bill |
|
|
140
|
+
| Cost per agent-hour | — | **$10.41** | new |
|
|
141
|
+
|
|
142
|
+
**The headline correction: agentic cost is context re-reading, not generation.** 95.5% of
|
|
143
|
+
every token billed was a cache read. Pricing agentic work as a 25/75 output/input split —
|
|
144
|
+
which generic token-cost guidance does — prices the wrong thing by two orders of magnitude.
|
|
145
|
+
|
|
146
|
+
## The meter is theoretical when you pay a subscription
|
|
147
|
+
|
|
148
|
+
Everything above is **meter-equivalent**: what a pay-as-you-go API would have charged. Most
|
|
149
|
+
teams do not pay that. They buy flat seat plans, and then the cost has a different *shape*:
|
|
150
|
+
|
|
151
|
+
| | Metered | Subscription |
|
|
152
|
+
|---|---|---|
|
|
153
|
+
| Cost scales with | work volume | **seats × calendar months** |
|
|
154
|
+
| Marginal cost of more agent use | linear | **zero, until quota** |
|
|
155
|
+
| Risk of overrun | cost | **schedule** (throttling) |
|
|
156
|
+
| Longer schedule, same work | no change | **costs more** |
|
|
157
|
+
|
|
158
|
+
Three consequences the estimator must respect:
|
|
159
|
+
|
|
160
|
+
1. **Schedule becomes a cost driver.** A project that slips two months costs two more months
|
|
161
|
+
of seats even though the work is unchanged. Under metering it would not.
|
|
162
|
+
2. **The incentive inverts.** Agent usage is free at the margin until quota, so the right move
|
|
163
|
+
is to push agent utilisation *up*, not ration it.
|
|
164
|
+
3. **Quota exhaustion is a schedule risk, not a cost overrun.** Subscription cost is capped by
|
|
165
|
+
design; what you lose when you exceed quota is throughput.
|
|
166
|
+
|
|
167
|
+
### Seat plans (USD per seat per month, verified 2026-08)
|
|
168
|
+
|
|
169
|
+
| Plan | Price | Source |
|
|
170
|
+
|---|---:|---|
|
|
171
|
+
| Claude Pro | $20 | claude.com/pricing |
|
|
172
|
+
| Claude Max 5× | $100 | claude.com/pricing |
|
|
173
|
+
| Claude Max 20× | $200 | claude.com/pricing |
|
|
174
|
+
| ChatGPT Plus | $20 | openai.com/chatgpt/pricing |
|
|
175
|
+
| ChatGPT Pro 5× | $100 | openai.com/chatgpt/pricing |
|
|
176
|
+
| ChatGPT Pro 20× | $200 | openai.com/chatgpt/pricing |
|
|
177
|
+
| GLM Coding Lite | $18 | z.ai/subscribe |
|
|
178
|
+
| GLM Coding Pro | $72 | z.ai/subscribe |
|
|
179
|
+
| GLM Coding Max | $160 | z.ai/subscribe |
|
|
180
|
+
|
|
181
|
+
### Subscription leverage
|
|
182
|
+
|
|
183
|
+
```
|
|
184
|
+
leverage = meter-equivalent cost ÷ subscription cost
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
**Measured locally: 6.4×** — $7,683 of meter-equivalent consumption on $1,200 of Claude Max
|
|
188
|
+
20× over 6 active months. Effective cost **$1.63 per steering hour against $10.41 metered**.
|
|
189
|
+
|
|
190
|
+
**Report leverage; never bank it as a saving.** It is not a discount the client receives — it
|
|
191
|
+
is on-demand value the flat plan captured. Presenting it as a saving is the fastest way to
|
|
192
|
+
lose an estimate's credibility under scrutiny.
|
|
193
|
+
|
|
194
|
+
Check the sign. If measured volume is low, a $200 plan is *dearer* than metering and the
|
|
195
|
+
engine says so.
|
|
196
|
+
|
|
197
|
+
### Do not charge the seat twice
|
|
198
|
+
|
|
199
|
+
When the subscription is the cost basis, the per-developer tool licence line is **not** charged
|
|
200
|
+
additionally — a Claude Max seat *is* the licence. This is the same single-path discipline the
|
|
201
|
+
NFR router enforces: one cost, one route.
|
|
202
|
+
|
|
203
|
+
### Routed models are not metered at all
|
|
204
|
+
|
|
205
|
+
2.7% of measured hours ran through a router on models reporting `$0.00`. Those hours are real
|
|
206
|
+
work with no meter reading, so any naive `$/h` is understated. The calibrator flags this share
|
|
207
|
+
explicitly rather than silently averaging it in.
|
|
208
|
+
|
|
209
|
+
**So prefer a measured rate over the reconstruction.** Set `ai.cost_per_steering_hour` and
|
|
210
|
+
the engine skips ACEM's token model entirely. A measured rate already contains every retry,
|
|
211
|
+
revision and context effect; reconstructing it from RF × CF × price compounds three
|
|
212
|
+
uncertain constants to reach a number you can simply measure.
|
|
213
|
+
|
|
214
|
+
Context Factor being 5.1× has a design consequence beyond cost: **long agent runs get
|
|
215
|
+
progressively more expensive per unit of work.** That is an argument for tightly scoped
|
|
216
|
+
agent tasks, and a cost line a naive per-task estimate misses completely.
|
|
217
|
+
|
|
218
|
+
HITL oversight is modelled as a share of human build hours by HIS level
|
|
219
|
+
(0.15 / 0.28 / 0.45 / 0.65), anchored on the local observation that roughly 38% of a
|
|
220
|
+
build was active steering time.
|
|
221
|
+
|
|
222
|
+
## Cost lines that get forgotten
|
|
223
|
+
|
|
224
|
+
- **Per-seat licences** — every human still touching AI tooling
|
|
225
|
+
- **Token spend** — variable, retry-driven, and the RF/CF compounding is where budgets die
|
|
226
|
+
- **Agent infrastructure** — orchestration, sandboxes, observability, secret management
|
|
227
|
+
- **Review capacity** — the new bottleneck; you cannot spend it into existence
|
|
228
|
+
- **Ramp** — a productivity dip during rollout before any gain appears
|
|
229
|
+
|
|
230
|
+
Practitioner analyses of agentic business cases find them **systematically 40–60%
|
|
231
|
+
understated**, almost always because they compare an agent's price to a salary and stop
|
|
232
|
+
there.
|
|
233
|
+
|
|
234
|
+
## How to classify `ai_class` in practice
|
|
235
|
+
|
|
236
|
+
Ask: *if a competent developer who has never seen this codebase were handed this ticket
|
|
237
|
+
with the spec, how much of it is mechanical?*
|
|
238
|
+
|
|
239
|
+
- Nearly all of it, and the shape is dictated by a schema or a framework → `boilerplate`
|
|
240
|
+
- Mostly mechanical but with real validation and edge cases → `crud`
|
|
241
|
+
- The hard part is someone else's system behaving badly → `integration`
|
|
242
|
+
- The hard part is getting the logic right → `algorithmic`
|
|
243
|
+
- The hard part is knowing what will break elsewhere → `legacy-change`
|
|
244
|
+
- The hard part is what it should look and feel like → `ux-heavy`
|
|
245
|
+
|
|
246
|
+
When genuinely torn, pick the **more pessimistic** class. Estimation errors are not
|
|
247
|
+
symmetric: the cost of under-quoting is a loss-making project, the cost of over-quoting
|
|
248
|
+
is a negotiation.
|
|
249
|
+
|
|
250
|
+
## Measuring your own
|
|
251
|
+
|
|
252
|
+
```bash
|
|
253
|
+
node bin/calibrate-sessions.mjs --plans
|
|
254
|
+
node bin/calibrate-sessions.mjs --plan anthropic-max-20x --seats 2
|
|
255
|
+
node bin/calibrate-sessions.mjs --project <substr> --actual-days <N>
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
Reads `~/.pi/agent/sessions/**`. Active steering time is the sum of inter-record gaps with
|
|
259
|
+
any gap over 15 minutes capped — a long gap is a break, not work. `--actual-days` solves the
|
|
260
|
+
overhead multiplier for that project: delivered man-days ÷ measured steering-days.
|
|
261
|
+
`--plan` / `--seat-monthly` / `--seats` add the actual cash cost and the leverage ratio;
|
|
262
|
+
without them the cost figures stay theoretical meter-equivalents and the tool says so.
|
|
263
|
+
|
|
264
|
+
What the measurement is and is not: it counts hours where a human was engaged with the
|
|
265
|
+
session. It is not billable-hours truth, and it does not capture work done outside the agent
|
|
266
|
+
— which is precisely why the overhead multiplier exists.
|
|
267
|
+
|
|
268
|
+
## Sources
|
|
269
|
+
|
|
270
|
+
- METR, *Measuring the Impact of Early-2025 AI on Experienced Open-Source Developer Productivity* — arXiv 2507.09089
|
|
271
|
+
- Demirer et al., *The Effects of Generative AI on High-Skilled Work: Evidence from Three Field Experiments with Software Developers*
|
|
272
|
+
- DORA, *2025 State of AI-assisted Software Development* — dora.dev/ai
|
|
273
|
+
- Jellyfish, *We Analyzed 146,000 Jira Tickets for Copilot Users*
|
|
274
|
+
- *The State of Generative AI in Software Development* — arXiv 2603.16975
|
|
275
|
+
- JetBrains, *State of Developer Ecosystem 2025*
|
|
276
|
+
- El-Ramly et al., *ACEM: A Cost Estimation Model for Agentic Software Engineering* — arXiv 2608.02582
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
# Business case
|
|
2
|
+
|
|
3
|
+
## What a business case has to answer
|
|
4
|
+
|
|
5
|
+
Not "what will it cost" — that is the estimate. A business case answers:
|
|
6
|
+
**should we spend this money, and how would we know if we were wrong?**
|
|
7
|
+
|
|
8
|
+
Two failure modes kill business cases. Either there is no financial model, so a reader
|
|
9
|
+
has nothing to evaluate but adjectives. Or the model exists but is so optimistic a
|
|
10
|
+
finance partner can dismantle it in three questions. The structure below fixes both.
|
|
11
|
+
|
|
12
|
+
## Structure
|
|
13
|
+
|
|
14
|
+
1. **Problem** — what is broken now, quantified. "Operators fill 240 paper forms a
|
|
15
|
+
month; QA spends 3 days per batch reconciling them."
|
|
16
|
+
2. **Options** — including do-nothing and buy-instead-of-build. A business case with one
|
|
17
|
+
option is a proposal, not a case.
|
|
18
|
+
3. **Recommendation** — with the reason the other options lose.
|
|
19
|
+
4. **Cost** — build (from the estimate, at P85), run, and TCO over the horizon.
|
|
20
|
+
5. **Benefit** — quantified, confidence-weighted, with the mechanism named.
|
|
21
|
+
6. **Financials** — NPV, ROI, payback, and the cash-flow table.
|
|
22
|
+
7. **Sensitivity** — which assumption, if wrong, flips the decision.
|
|
23
|
+
8. **Risks** — with owners and mitigations.
|
|
24
|
+
9. **Scope ladder** — must / should / could, with the cost of each tier.
|
|
25
|
+
|
|
26
|
+
The engine computes 4, 6, 7 and 9 from the estimate input. You write 1, 2, 3, 5 and 8.
|
|
27
|
+
|
|
28
|
+
## Quantifying benefit without lying
|
|
29
|
+
|
|
30
|
+
Every benefit needs a **mechanism** and a **confidence weight**. The engine multiplies
|
|
31
|
+
`annual_value × confidence`, so state confidence explicitly rather than quietly
|
|
32
|
+
discounting the value.
|
|
33
|
+
|
|
34
|
+
| Benefit type | Mechanism to state | Typical confidence |
|
|
35
|
+
|---|---:|---:|
|
|
36
|
+
| Labour saved | Hours × loaded rate, and **what those people now do instead** | 0.6–0.8 |
|
|
37
|
+
| Error/rework reduction | Current defect rate × cost per defect × expected reduction | 0.5–0.7 |
|
|
38
|
+
| Revenue enabled | Conversion or capacity change, with the baseline | 0.3–0.6 |
|
|
39
|
+
| Compliance / risk avoidance | Probability × impact of the penalty avoided | 0.4–0.7 |
|
|
40
|
+
| Cost avoidance | The specific spend that will not happen | 0.7–0.9 |
|
|
41
|
+
|
|
42
|
+
**The hardest question a CFO asks about labour savings: does headcount actually fall, or
|
|
43
|
+
do those hours get absorbed?** If they get absorbed, it is a capacity benefit, not a cash
|
|
44
|
+
benefit — and it does not belong in an NPV without saying so.
|
|
45
|
+
|
|
46
|
+
Benefits that ramp should use `start_year` rather than being averaged across the horizon.
|
|
47
|
+
|
|
48
|
+
## The financials
|
|
49
|
+
|
|
50
|
+
```yaml
|
|
51
|
+
business:
|
|
52
|
+
discount_rate: 0.12 # cost of capital; ask finance, do not guess
|
|
53
|
+
horizon_years: 3 # 3 for line-of-business software, 5 for platforms
|
|
54
|
+
benefits:
|
|
55
|
+
- name: QA reconciliation labour
|
|
56
|
+
annual_value: 68000
|
|
57
|
+
confidence: 0.8
|
|
58
|
+
- name: Reduced batch rejection
|
|
59
|
+
annual_value: 45000
|
|
60
|
+
confidence: 0.6
|
|
61
|
+
start_year: 2
|
|
62
|
+
run_costs:
|
|
63
|
+
- name: Hosting and backup
|
|
64
|
+
annual_value: 6000
|
|
65
|
+
- name: Support retainer
|
|
66
|
+
annual_value: 18000
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
- **NPV** — the decision metric. Positive at the stated discount rate, or do not build it.
|
|
70
|
+
- **ROI** — `(total benefit − TCO) / TCO`. Easy to communicate, easy to game; never
|
|
71
|
+
present it without NPV.
|
|
72
|
+
- **Payback** — how long until cumulative net benefit covers the build. Sponsors care
|
|
73
|
+
about this more than NPV, whatever finance says.
|
|
74
|
+
- **TCO** — build + run × horizon. The number vendors omit.
|
|
75
|
+
|
|
76
|
+
**Fund the build at P85, not P50.** A business case built on a P50 estimate is a 50%
|
|
77
|
+
chance of a budget overrun on day one.
|
|
78
|
+
|
|
79
|
+
## Sensitivity — the section that earns trust
|
|
80
|
+
|
|
81
|
+
The engine runs one-at-a-time sensitivity on the three drivers that actually move NPV:
|
|
82
|
+
build cost ±30%, annual benefit ±40%, run cost ±50%.
|
|
83
|
+
|
|
84
|
+
Read it for the **flip point**: which single assumption, moved to its downside, makes NPV
|
|
85
|
+
negative? Name it in the narrative. "This case survives a 30% cost overrun but not a 40%
|
|
86
|
+
benefit shortfall — so the thing to validate before committing is the benefit
|
|
87
|
+
assumption, not the estimate."
|
|
88
|
+
|
|
89
|
+
That sentence is worth more than the whole spreadsheet.
|
|
90
|
+
|
|
91
|
+
## Scope ladder — "what tasks are needed, and with how much effort"
|
|
92
|
+
|
|
93
|
+
```yaml
|
|
94
|
+
scope_tiers:
|
|
95
|
+
- tier: must
|
|
96
|
+
use_cases: [UC-01, UC-02, UC-03, UC-04, UC-05]
|
|
97
|
+
- tier: should
|
|
98
|
+
use_cases: [UC-06, UC-07, UC-10]
|
|
99
|
+
- tier: could
|
|
100
|
+
use_cases: [UC-08, UC-09]
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Produces tier cost and cumulative cost, so a sponsor can buy the tier they can afford
|
|
104
|
+
instead of negotiating the whole thing down.
|
|
105
|
+
|
|
106
|
+
Rules that keep the ladder honest:
|
|
107
|
+
- **must** = the business case does not work without it. If a benefit line depends on a
|
|
108
|
+
use case, that use case is a must.
|
|
109
|
+
- **should** = materially improves the benefit or the adoption.
|
|
110
|
+
- **could** = real value, first to be cut.
|
|
111
|
+
- Every use case appears in exactly one tier.
|
|
112
|
+
- NFR-derived scope belongs to the tier of the use cases it protects — compliance and
|
|
113
|
+
security scope is almost always **must**, and cutting it is a decision someone must
|
|
114
|
+
sign for, not a saving.
|
|
115
|
+
|
|
116
|
+
## Agentic and AI-heavy cases need extra care
|
|
117
|
+
|
|
118
|
+
Practitioner analyses find agentic AI business cases **systematically 40–60% understated**.
|
|
119
|
+
The usual error is comparing an agent's price to a salary and stopping. What gets missed:
|
|
120
|
+
|
|
121
|
+
- Run cost is **continuous and variable**, and retries dominate its variance
|
|
122
|
+
- Orchestration, observability, sandboxing, secret management
|
|
123
|
+
- Human review capacity — the new bottleneck, and it cannot be bought quickly
|
|
124
|
+
- Failure recovery and the governance process around it
|
|
125
|
+
- A productivity dip during rollout, before any gain
|
|
126
|
+
|
|
127
|
+
Present agentic run cost as a **range**, never a price.
|
|
128
|
+
|
|
129
|
+
## Sources
|
|
130
|
+
|
|
131
|
+
- DOD IT Business Case Analysis template (structure)
|
|
132
|
+
- Enterprise software TCO/benefits-case practice
|
|
133
|
+
- EY and BCG analyses of agentic AI token cost and FinOps
|
|
134
|
+
- McConnell on estimate vs target vs commitment
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
# Non-functional requirements: routing and sizing
|
|
2
|
+
|
|
3
|
+
## The core insight
|
|
4
|
+
|
|
5
|
+
Most NFRs do not stay non-functional. "99.95% availability" is not a multiplier — it is
|
|
6
|
+
health probes, readiness endpoints, multi-AZ failover, replication, a runbook, a restore
|
|
7
|
+
drill and an on-call rota. By the time you build it, it is functional scope.
|
|
8
|
+
|
|
9
|
+
The COSMIC *Guideline for sizing NFR* makes this explicit: NFRs are progressively
|
|
10
|
+
allocated to architectural components and become functional processes. IEEE/ISO/IEC
|
|
11
|
+
32430-2024 standardizes non-functional size measurement as a complement to functional
|
|
12
|
+
size, specifically designed so the two do not double count.
|
|
13
|
+
|
|
14
|
+
So each NFR takes **exactly one** of two paths.
|
|
15
|
+
|
|
16
|
+
## Path 1 — derived scope
|
|
17
|
+
|
|
18
|
+
Use when the NFR forces identifiable components or work items into existence.
|
|
19
|
+
Write them out as `derived_components`. They get sized and estimated like features.
|
|
20
|
+
|
|
21
|
+
```yaml
|
|
22
|
+
- id: NFR-01
|
|
23
|
+
attribute: availability
|
|
24
|
+
target: "99.95% during business hours"
|
|
25
|
+
path: derived-scope
|
|
26
|
+
derived_components:
|
|
27
|
+
- name: Health probes and readiness endpoints
|
|
28
|
+
transactions: 2
|
|
29
|
+
ai_class: ops
|
|
30
|
+
- name: Multi-AZ failover and replication
|
|
31
|
+
transactions: 5
|
|
32
|
+
ai_class: ops
|
|
33
|
+
risk: high
|
|
34
|
+
- name: Restore drill and runbook
|
|
35
|
+
hours: 24 # size directly in hours when it is not transactional
|
|
36
|
+
ai_class: docs
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Sizing a component: give it `transactions` to size it via UCP, or `hours` to pin it
|
|
40
|
+
directly. Direct hours are right for anything that is not a transactional feature —
|
|
41
|
+
documentation, drills, audits, remediation windows.
|
|
42
|
+
|
|
43
|
+
## Path 2 — residual multiplier
|
|
44
|
+
|
|
45
|
+
Use when the NFR is pervasive: it makes *everything* somewhat harder without adding an
|
|
46
|
+
identifiable component. Express it as an effort multiplier.
|
|
47
|
+
|
|
48
|
+
```yaml
|
|
49
|
+
- id: NFR-04
|
|
50
|
+
attribute: performance-efficiency
|
|
51
|
+
target: "p95 < 500 ms on shop-floor tablets"
|
|
52
|
+
path: multiplier
|
|
53
|
+
multiplier: 1.06
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
Keep multipliers small and additive-ish. If you find yourself writing 1.4, you have
|
|
57
|
+
almost certainly got derived scope hiding inside it — decompose instead. A stack of
|
|
58
|
+
multipliers compounding past ~1.25 total is a smell.
|
|
59
|
+
|
|
60
|
+
**A multiplier NFR must not also declare `derived_components`.** The engine warns; the
|
|
61
|
+
number is wrong either way.
|
|
62
|
+
|
|
63
|
+
## Routing table by ISO/IEC 25010 attribute
|
|
64
|
+
|
|
65
|
+
| Attribute | Typical path | Notes |
|
|
66
|
+
|---|---|---|
|
|
67
|
+
| **Functional suitability** | — | This is functional scope; write it as a use case. |
|
|
68
|
+
| **Performance efficiency** — throughput/latency targets | multiplier (mild) or derived (aggressive) | Mild targets = careful coding (multiplier). Aggressive targets = caching layer, read models, load-test harness (derived). Also raise T2. |
|
|
69
|
+
| **Compatibility** — interoperability | derived-scope | Each protocol/format is an adapter. Also an actor. |
|
|
70
|
+
| **Usability** — accessibility (WCAG) | derived-scope | Audit, remediation, manual testing, accessibility statement. Not free, not a multiplier. |
|
|
71
|
+
| **Usability** — general polish | multiplier | Raise T3/T7 rather than inventing scope. |
|
|
72
|
+
| **Reliability** — availability, fault tolerance, recoverability | derived-scope | Probes, failover, backup/restore, DR drill, runbook. |
|
|
73
|
+
| **Security** — authn/authz, audit, encryption | derived-scope | RBAC, immutable audit log, key management, pen-test remediation window. Also raise T11. |
|
|
74
|
+
| **Security** — general hardening posture | multiplier | Threat modelling and review overhead across all work. |
|
|
75
|
+
| **Maintainability** — modularity, testability | multiplier | Raise T9. Shows up as more test effort, which the role split already carries. |
|
|
76
|
+
| **Portability** — installability, adaptability | multiplier | Raise T8 (weight 2.0 — it bites). Add derived scope only if you must ship multiple deployment targets. |
|
|
77
|
+
| **Compliance** — GDPR, GMP, medical, financial | derived-scope | Almost always the largest derived block: validation protocols, traceability matrix, DPIA, retention/erasure, consent audit trail, evidence packs. |
|
|
78
|
+
| **Observability** (not in 25010, but always needed) | derived-scope | Logging, metrics, tracing, alerting, dashboards. |
|
|
79
|
+
|
|
80
|
+
## Compliance is where estimates die
|
|
81
|
+
|
|
82
|
+
Regulated work generates documentation and evidence scope that dwarfs the feature it
|
|
83
|
+
protects. The pattern to price:
|
|
84
|
+
|
|
85
|
+
- Validation protocol set (IQ/OQ/PQ or equivalent) — often 100–200 h alone
|
|
86
|
+
- Requirements traceability matrix maintained through delivery
|
|
87
|
+
- Change control and deviation handling procedures
|
|
88
|
+
- Data retention, erasure and audit-log immutability
|
|
89
|
+
- Evidence packs for an external auditor
|
|
90
|
+
- A remediation window after the external audit or pen test
|
|
91
|
+
|
|
92
|
+
Price the remediation window explicitly. It is the line clients delete and then blame
|
|
93
|
+
you for.
|
|
94
|
+
|
|
95
|
+
## Writing the NFR → component trace matrix
|
|
96
|
+
|
|
97
|
+
The architecture plan must carry this table. It is what makes derived scope defensible —
|
|
98
|
+
the client can see *why* the extra effort exists.
|
|
99
|
+
|
|
100
|
+
| NFR | Target | Components it forces | Sized as | Effort |
|
|
101
|
+
|---|---|---|---|---|
|
|
102
|
+
| NFR-01 availability | 99.5% in shift hours | health probes, backup + restore drill | derived | 40 h |
|
|
103
|
+
| NFR-02 security | RBAC + immutable audit | audit log with WORM, pen-test remediation | derived | 96 h |
|
|
104
|
+
| NFR-04 performance | save < 500 ms | (pervasive) | multiplier ×1.06 | — |
|
|
105
|
+
|
|
106
|
+
## Sources
|
|
107
|
+
|
|
108
|
+
- COSMIC, *Guideline for sizing Non-Functional Requirements* v1.0 (2020)
|
|
109
|
+
- IEEE/ISO/IEC 32430-2024, non-functional size measurement
|
|
110
|
+
- ISO/IEC 25010 product quality model
|
|
111
|
+
- Systematic review: *Use of Non-functional Requirements in Software Effort Estimation* (IEEE 8337929)
|
|
112
|
+
- *Quality Extended Use Case Point (QUCP)*, IJCSMC 2021
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# Rate card
|
|
2
|
+
|
|
3
|
+
**This table is the default. Every project may override it.**
|
|
4
|
+
|
|
5
|
+
Override by copying `assets/rates.default.yaml` into the project, editing, and either
|
|
6
|
+
passing `--rates <file>` or setting `rates_file: ./rates.yaml` in the estimate input.
|
|
7
|
+
A project rate card always wins over this document.
|
|
8
|
+
|
|
9
|
+
## Default day rates
|
|
10
|
+
|
|
11
|
+
EUR, net, per productive 8-hour man-day. Anchored on the local offer corpus and on
|
|
12
|
+
2025/26 CEE market bands.
|
|
13
|
+
|
|
14
|
+
| Role | Junior | Mid | Senior |
|
|
15
|
+
|---|---:|---:|---:|
|
|
16
|
+
| Product Owner / BA | 280 | 400 | 520 |
|
|
17
|
+
| Architect | — | 520 | 680 |
|
|
18
|
+
| UX / UI Designer | 260 | 380 | 480 |
|
|
19
|
+
| Frontend Developer | 260 | 400 | 520 |
|
|
20
|
+
| Backend Developer | 280 | 420 | 560 |
|
|
21
|
+
| Data / Integration Engineer | — | 460 | 600 |
|
|
22
|
+
| QA / Test Automation | 240 | 340 | 440 |
|
|
23
|
+
| DevOps / SRE | — | 460 | 600 |
|
|
24
|
+
| Security Engineer | — | — | 700 |
|
|
25
|
+
| Tech Lead | — | — | 640 |
|
|
26
|
+
| Project Manager | — | 400 | 520 |
|
|
27
|
+
| **Blended (single-rate quoting)** | | | **480** |
|
|
28
|
+
|
|
29
|
+
## Where these come from
|
|
30
|
+
|
|
31
|
+
| Anchor | Value | Source |
|
|
32
|
+
|---|---:|---|
|
|
33
|
+
| Enterprise / international blended | 600 EUR/day | Completed WMS offer, explicit blended-rate assumption |
|
|
34
|
+
| SME / Hungary | 423 EUR/day | Quality-platform offer, explicit day rate |
|
|
35
|
+
| CEE senior market band 2025/26 | 30–70 EUR/h ≈ 240–560 EUR/day | Published nearshore rate surveys |
|
|
36
|
+
| Western Europe senior | 75–120 EUR/h | Published European remote-developer rate surveys |
|
|
37
|
+
| HUF/EUR reference | ~350–400 | Used in local offers |
|
|
38
|
+
|
|
39
|
+
The default column sits deliberately between the SME anchor and the enterprise anchor.
|
|
40
|
+
Move it, do not average it — an enterprise client and an SME are different rate cards,
|
|
41
|
+
not different points on one.
|
|
42
|
+
|
|
43
|
+
## Choosing the right card
|
|
44
|
+
|
|
45
|
+
| Situation | Do this |
|
|
46
|
+
|---|---|
|
|
47
|
+
| Fixed-price offer to an SME | Use the SME anchor (~420–480 blended). Fund to P85, quote the point. |
|
|
48
|
+
| Enterprise / regulated / international | Use 600+. Compliance and governance overhead is real and billable. |
|
|
49
|
+
| Time & materials | Quote per-role rates, not a blend, so scope changes reprice honestly. |
|
|
50
|
+
| Internal cost model | Replace day rates with fully-loaded internal cost (salary × ~1.3–1.5), not market price. |
|
|
51
|
+
| Subcontracted work | Add the margin explicitly as a line, do not bury it in the rate. |
|
|
52
|
+
|
|
53
|
+
## Total cost of ownership, not just the rate
|
|
54
|
+
|
|
55
|
+
A low day rate is not a low cost. Published nearshore analyses put the realistic
|
|
56
|
+
multiplier at **1.3–1.5×** the headline rate once ramp-up, coordination overhead,
|
|
57
|
+
management, quality variance and rework are counted. When comparing vendor proposals,
|
|
58
|
+
compare landed cost per delivered unit of scope, not the rate card.
|
|
59
|
+
|
|
60
|
+
## Non-labour cost lines to add
|
|
61
|
+
|
|
62
|
+
The engine prices labour plus AI cost. These are yours to add:
|
|
63
|
+
|
|
64
|
+
- Third-party licences (per seat, per environment, per year)
|
|
65
|
+
- Cloud/hosting for dev, test, staging and production
|
|
66
|
+
- Data migration tooling
|
|
67
|
+
- External penetration test or audit
|
|
68
|
+
- Travel and on-site support
|
|
69
|
+
- Hardware
|
|
70
|
+
- Post-launch support retainer or SLA
|
|
71
|
+
|
|
72
|
+
A completed WMS offer, for reference, carried travel (8,000 EUR), third-party licences
|
|
73
|
+
(5,000 EUR) and dev/test infrastructure (3,000 EUR) as separate lines on top of a
|
|
74
|
+
364,600 EUR project — roughly 4.4% of total, and all of it forgettable.
|
|
75
|
+
|
|
76
|
+
## Presenting rates to a client
|
|
77
|
+
|
|
78
|
+
- Show the **blended** rate for a fixed-price offer; show **per-role** for T&M.
|
|
79
|
+
- Show effort in **man-days**, cost in the client's currency, and the assumed
|
|
80
|
+
hours-per-day. A "day" that means 6 productive hours to them and 8 to you is a dispute.
|
|
81
|
+
- State VAT treatment. Local offers quote net, + 27% VAT.
|
|
82
|
+
- State the exchange rate and its date if the contract currency differs from your cost
|
|
83
|
+
currency.
|
|
84
|
+
- State the offer validity period. 30 days is the local convention.
|