@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,200 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: software-cost-estimator
|
|
3
|
+
description: Estimate developer cost and effort for a set of use cases, functional and non-functional requirements on a given technology stack. Produces an architecture plan, a role-resolved man-hour estimate with P50/P85/P95 ranges, a side-by-side comparison of four delivery modes (human only, human + AI, AI-steered human-supervised, agentic HITL), and a business case with NPV/ROI/payback/TCO and a must-should-could scope ladder. Use when the user asks "how much would this cost to build", "estimate this project", "how many man-days", "make an offer/quote", "what would it cost with AI vs without", "build a business case for this feature", or wants to size a backlog, an RFP response, or a change request.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Software Cost Estimator
|
|
7
|
+
|
|
8
|
+
Turn requirements into a defensible number — with the workings shown.
|
|
9
|
+
|
|
10
|
+
**Division of labour that makes this trustworthy:** you do the judgment (decompose
|
|
11
|
+
use cases, count transactions, rate factors, route NFRs, classify AI-suitability).
|
|
12
|
+
A deterministic TypeScript engine does the arithmetic (UCP, COCOMO scale, role split,
|
|
13
|
+
Monte Carlo, NPV). Never compute these by hand — you will be wrong, and the client
|
|
14
|
+
cannot audit a number you invented.
|
|
15
|
+
|
|
16
|
+
## Non-negotiable rules
|
|
17
|
+
|
|
18
|
+
1. **Never emit a single number.** Always P50/P85/P95 plus the cone-of-uncertainty band.
|
|
19
|
+
Fund to P85. Quote P50 only alongside its range.
|
|
20
|
+
2. **Estimate ≠ target ≠ commitment.** Say which one you are producing.
|
|
21
|
+
3. **Never show AI savings without the review and rework lines.** DORA 2025 found AI
|
|
22
|
+
adoption raised instability even as throughput recovered. A comparison that hides
|
|
23
|
+
this is a sales document.
|
|
24
|
+
4. **Route each NFR to exactly one path** — derived scope *or* multiplier. Both is
|
|
25
|
+
double counting; the engine warns, but you should not create the situation.
|
|
26
|
+
5. **Print the assumption register** with every estimate. Every constant is cited or
|
|
27
|
+
marked UNCALIBRATED in `src/engine/defaults.ts`.
|
|
28
|
+
6. **Prefer a reference class over a textbook constant.**
|
|
29
|
+
7. **Quote the cost basis you actually pay.** Metered token cost is theoretical when capacity
|
|
30
|
+
is bought on a subscription. Report subscription leverage (meter-equivalent ÷ seat cost) as
|
|
31
|
+
*leverage*, never as a saving passed to the client. Under a subscription, schedule is a cost
|
|
32
|
+
driver and quota exhaustion is a **schedule** risk, not a cost overrun. Check
|
|
33
|
+
`assets/calibration/reference-classes.md` before accepting the default 20 h/UCP.
|
|
34
|
+
|
|
35
|
+
## Workflow
|
|
36
|
+
|
|
37
|
+
### 1. Gather
|
|
38
|
+
|
|
39
|
+
Ask only for what materially changes the number. If the user has a spec, read it and
|
|
40
|
+
propose the decomposition rather than interrogating them.
|
|
41
|
+
|
|
42
|
+
Minimum viable input: a list of use cases, the actors, and the stack.
|
|
43
|
+
Everything else has a documented default.
|
|
44
|
+
|
|
45
|
+
Ask when missing and material:
|
|
46
|
+
- **Phase** — how firm are the requirements? Sets the cone. (`initial-concept` → 4× band.)
|
|
47
|
+
- **Codebase** — greenfield / brownfield / legacy. Legacy inverts the AI benefit.
|
|
48
|
+
- **Compliance** — GDPR, GMP, medical, financial. Usually large derived scope.
|
|
49
|
+
- **Team seniority mix and rate card** — or accept `assets/rates.default.yaml`.
|
|
50
|
+
|
|
51
|
+
### 2. Architecture plan
|
|
52
|
+
|
|
53
|
+
Before sizing, derive the architecture from the stack + NFRs. Write
|
|
54
|
+
`architecture-plan.md` from `assets/templates/architecture-plan.md`. It must contain an
|
|
55
|
+
**NFR → component trace matrix**, because that matrix is what produces the derived
|
|
56
|
+
scope in the next step. See `references/nfr-catalog.md`.
|
|
57
|
+
|
|
58
|
+
### 3. Build the input file
|
|
59
|
+
|
|
60
|
+
Copy `assets/example-quality-hub.yaml` and adapt. Key judgments you make:
|
|
61
|
+
|
|
62
|
+
- **`transactions`** per use case — the number of stimulus/response steps across the
|
|
63
|
+
success scenario and its alternates. This drives the Karner weight band
|
|
64
|
+
(≤3 simple = 5, 4–7 average = 10, >7 complex = 15). Getting this consistent matters
|
|
65
|
+
far more than getting it "right"; see `references/sizing-methods.md`.
|
|
66
|
+
- **`ai_class`** per use case — see `references/ai-delivery-modes.md`. This is the
|
|
67
|
+
single most consequential classification in the file.
|
|
68
|
+
- **NFR routing** — `references/nfr-catalog.md` has the decision rule per ISO 25010
|
|
69
|
+
attribute.
|
|
70
|
+
- **UCP factors** — 13 technical (T1–T13) and 8 environmental (E1–E8), each 0–5.
|
|
71
|
+
Omitted factors default to 3 (neutral) and raise a warning.
|
|
72
|
+
|
|
73
|
+
### 4. Run
|
|
74
|
+
|
|
75
|
+
```bash
|
|
76
|
+
cd "$(dirname "$(node -e "console.log(require.resolve('@blackbelt-technology/pi-dashboard-cost-estimator/package.json'))")")"
|
|
77
|
+
node bin/estimate.mjs <input.yaml> --out <dir>
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Writes `estimate-report.md`, `delivery-mode-comparison.md`, `business-case.md` and
|
|
81
|
+
`estimate.xlsx`. Add `--json` for the full result object, `--rates <file>` to override
|
|
82
|
+
the rate card.
|
|
83
|
+
|
|
84
|
+
### 5. Sanity-check before showing anyone
|
|
85
|
+
|
|
86
|
+
- Does the implied h/UCP match a reference class? If the engine is using 20 and your
|
|
87
|
+
team ships in 13, you are quoting 54% high.
|
|
88
|
+
- Does the schedule warning fire? Compressing below ~75% of the COCOMO nominal
|
|
89
|
+
schedule is where projects historically break.
|
|
90
|
+
- Is `human_with_ai` saving ~5–15%? That matches real-world telemetry (Jellyfish ~8%).
|
|
91
|
+
If it shows 40%+, your `ai_class` mix is too optimistic.
|
|
92
|
+
- Is any mode showing AI making things *slower*? For legacy work that is correct,
|
|
93
|
+
not a bug — say so out loud.
|
|
94
|
+
|
|
95
|
+
### 6. Deliver
|
|
96
|
+
|
|
97
|
+
Render the Markdown to client-facing DOCX/PDF with the `document-converter` skill when
|
|
98
|
+
asked. Keep the `.xlsx` attached: a client who can poke the assumptions trusts the
|
|
99
|
+
number far more than one who cannot.
|
|
100
|
+
|
|
101
|
+
### 7. Calibrate — do this after every completed project
|
|
102
|
+
|
|
103
|
+
Two calibrators, and you should run both.
|
|
104
|
+
|
|
105
|
+
**Scope productivity** — solves hours-per-UCP from a delivered project:
|
|
106
|
+
```bash
|
|
107
|
+
node bin/calibrate.mjs <input.yaml> --actual-days <N> --exclude-contingency
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
**Agent cost and steering time** — measured from real pi session telemetry:
|
|
111
|
+
```bash
|
|
112
|
+
node bin/calibrate-sessions.mjs
|
|
113
|
+
node bin/calibrate-sessions.mjs --project <substr> --actual-days <N>
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
The session calibrator reads `~/.pi/agent/sessions/**` and measures what the model would
|
|
117
|
+
otherwise guess: active steering hours (inter-record gaps, capped at 15 min so a break is
|
|
118
|
+
not billed as work), real token mix, and actual billed cost. Passing `--actual-days` for a
|
|
119
|
+
project solves the **AI-steered overhead multiplier** directly — delivered man-days ÷
|
|
120
|
+
measured steering-days. That is the number that turns an AI-assisted quote from a guess
|
|
121
|
+
into a measurement.
|
|
122
|
+
|
|
123
|
+
Set `ai.cost_per_steering_hour` from its output. A measured rate replaces the ACEM token
|
|
124
|
+
reconstruction entirely, because it already contains every retry, revision and
|
|
125
|
+
context-growth effect.
|
|
126
|
+
|
|
127
|
+
**But the meter is theoretical if the team pays a subscription.** Set
|
|
128
|
+
`ai.cost_basis: subscription` and list the seat plans; cost then scales with seats × calendar
|
|
129
|
+
months rather than work volume. Pass `--plan` / `--seats` to the calibrator to get the actual
|
|
130
|
+
cash cost and the leverage ratio:
|
|
131
|
+
|
|
132
|
+
```bash
|
|
133
|
+
node bin/calibrate-sessions.mjs --plans
|
|
134
|
+
node bin/calibrate-sessions.mjs --plan anthropic-max-20x --seats 2
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
Add results to `assets/calibration/reference-classes.md`. This is the only mechanism that
|
|
138
|
+
makes the next estimate better than this one.
|
|
139
|
+
|
|
140
|
+
## The four delivery modes
|
|
141
|
+
|
|
142
|
+
| Mode | Who writes the code | What you are paying for |
|
|
143
|
+
|---|---|---|
|
|
144
|
+
| `human_only` | Humans | Baseline. No AI cost, no review/rework uplift. |
|
|
145
|
+
| `human_with_ai` | Humans, AI assists inline | Modest build compression + review + rework. Real-world ≈ 5–15%. |
|
|
146
|
+
| `ai_steered_human_supervised` | Agent writes, human specifies and reviews | Steering hours × a locally measured overhead multiplier (1.8× base). |
|
|
147
|
+
| `agentic_hitl` | Autonomous agents | ACEM: tokens + HITL oversight + infrastructure. Constants UNCALIBRATED. |
|
|
148
|
+
|
|
149
|
+
**AI compresses build effort only.** Project management, client iteration, compliance,
|
|
150
|
+
manual QA and security sign-off do not shrink because a model writes the code. This is
|
|
151
|
+
why headline "AI is 10× faster" claims collapse into single-digit project savings.
|
|
152
|
+
|
|
153
|
+
Full evidence table and the per-class speedup bounds: `references/ai-delivery-modes.md`.
|
|
154
|
+
|
|
155
|
+
## Reference files
|
|
156
|
+
|
|
157
|
+
Read these on demand — do not preload them.
|
|
158
|
+
|
|
159
|
+
| File | Read it when |
|
|
160
|
+
|---|---|
|
|
161
|
+
| `references/sizing-methods.md` | Counting transactions, rating factors, or choosing UCP vs COSMIC vs FP |
|
|
162
|
+
| `references/nfr-catalog.md` | Routing an NFR, or expanding one into derived scope |
|
|
163
|
+
| `references/ai-delivery-modes.md` | Classifying `ai_class`, or defending an AI-vs-human number |
|
|
164
|
+
| `references/role-model.md` | Changing the role split, or explaining who does what |
|
|
165
|
+
| `references/rates.md` | Setting or overriding the rate card |
|
|
166
|
+
| `references/business-case.md` | Building the NPV/ROI/scope-ladder narrative |
|
|
167
|
+
| `assets/calibration/reference-classes.md` | Before accepting any default productivity constant, and for the measured session telemetry |
|
|
168
|
+
|
|
169
|
+
## Templates
|
|
170
|
+
|
|
171
|
+
`assets/templates/` holds `architecture-plan.md` and `offer-summary.md`. The estimate,
|
|
172
|
+
mode-comparison and business-case documents are generated by the engine, not templated.
|
|
173
|
+
|
|
174
|
+
## Tests
|
|
175
|
+
|
|
176
|
+
```bash
|
|
177
|
+
npx vitest run packages/cost-estimator # from the monorepo root
|
|
178
|
+
```
|
|
179
|
+
|
|
180
|
+
43 tests. They pin the published formulas (Karner's worked example, COCOMO II.2000
|
|
181
|
+
constants, Beta-PERT mean), the double-counting guard, the correlated-risk shape, the
|
|
182
|
+
subscription cost basis (seats × months, utilisation apportionment, leverage never banked
|
|
183
|
+
as a saving), the gap-capping rule, and the behavioural claims that matter: that
|
|
184
|
+
AI-assisted savings stay in a credible band, and that AI comes out **more expensive** for a
|
|
185
|
+
senior developer changing legacy code. Run them after touching `src/engine/` or
|
|
186
|
+
`src/telemetry/`.
|
|
187
|
+
|
|
188
|
+
## Runtime
|
|
189
|
+
|
|
190
|
+
Node 22.6+. The `bin/*.mjs` launchers shell out to `tsx`, which is what resolves the
|
|
191
|
+
repo-convention `.js` specifiers to `.ts` sources.
|
|
192
|
+
|
|
193
|
+
**The dependency split is deliberate and load-bearing:**
|
|
194
|
+
|
|
195
|
+
| Layer | Dependencies | Why |
|
|
196
|
+
|---|---|---|
|
|
197
|
+
| `src/engine/` | **none** | The YAML parser, Beta-PERT Monte Carlo and XLSX writer are all hand-rolled. An estimator whose numbers depend on a supply chain is not auditable, and the engine must run in any project with no dashboard installed. |
|
|
198
|
+
| `src/telemetry/` | `pi-dashboard-shared`, `pi-dashboard-session-distiller` | Reads the session store through the dashboard's own readers rather than re-parsing it, so a session-schema change lands in one place instead of silently rotting the calibration. |
|
|
199
|
+
|
|
200
|
+
Keep that seam. If engine code ever imports from `telemetry/`, portability is gone.
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# Reference classes — calibrated hours per UCP
|
|
2
|
+
|
|
3
|
+
Reference-class forecasting is the largest single accuracy win available in software
|
|
4
|
+
estimation: anchor the new estimate on the outcomes of similar completed projects
|
|
5
|
+
instead of on the inside view of the new one.
|
|
6
|
+
|
|
7
|
+
**Never quote from Karner's 20 h/UCP when a reference class exists.** Pick the closest
|
|
8
|
+
class below, or add a new row after every completed project.
|
|
9
|
+
|
|
10
|
+
| Class | Stack / context | Scope | UCP | Actual effort | **h/UCP** | Model error at 20 h/UCP |
|
|
11
|
+
|---|---|---|---|---|---:|---:|
|
|
12
|
+
| `wms-reference` | Low-code Java (Judo) + React + Flutter, robotics + ERP integration, greenfield, experienced team | 24 use cases, 6 actors, 5 build modules | 267.4 | 479 MD (3,832 h) base, all roles, before 15% contingency | **12.97** | +54% |
|
|
13
|
+
|
|
14
|
+
## How to read this
|
|
15
|
+
|
|
16
|
+
The WMS row says: for **this class of work** — a low-code backend, an experienced team,
|
|
17
|
+
a greenfield integration-heavy system — the team delivers a use case point in about
|
|
18
|
+
**13 hours**, not Karner's 20. Using the textbook constant would have over-quoted the
|
|
19
|
+
project by more than half.
|
|
20
|
+
|
|
21
|
+
That is not a defect in UCP. It is the whole point: UCP measures *size*, and size only
|
|
22
|
+
becomes effort through a productivity constant that belongs to a specific team,
|
|
23
|
+
stack and domain. The constant is the thing you must own.
|
|
24
|
+
|
|
25
|
+
## Adding a class after a project completes
|
|
26
|
+
|
|
27
|
+
1. Write the delivered scope as an estimator input (use cases + actors + factors),
|
|
28
|
+
describing what was **actually built**, not what was originally quoted.
|
|
29
|
+
2. Decide what the actual hours cover. Include the same roles the model distributes
|
|
30
|
+
(dev, QA, PM, design, deployment) or the comparison is meaningless.
|
|
31
|
+
3. Run:
|
|
32
|
+
```
|
|
33
|
+
node scripts/calibrate.ts <input.yaml> --actual-days <N> --exclude-contingency
|
|
34
|
+
```
|
|
35
|
+
4. Add a row here with the implied h/UCP and a one-line description of the class.
|
|
36
|
+
5. Set `calibration.hours_per_ucp` on the next estimate of that class.
|
|
37
|
+
|
|
38
|
+
## Expected spread
|
|
39
|
+
|
|
40
|
+
Published practice puts h/UCP between 15 and 30, with Karner's original at 20.
|
|
41
|
+
Values below ~13 usually mean a high-leverage stack (low-code, heavy framework reuse,
|
|
42
|
+
open-source components dropped in as configuration rather than build). Values above ~30
|
|
43
|
+
usually mean regulated work, a hostile legacy environment, or scope counted too coarsely.
|
|
44
|
+
|
|
45
|
+
Anything outside 10–45 is more likely a scope-mismatch between the model input and the
|
|
46
|
+
actual hours than a real productivity signal. Check before adopting it.
|
|
47
|
+
|
|
48
|
+
## Measured from session telemetry
|
|
49
|
+
|
|
50
|
+
Produced by `scripts/calibrate-sessions.ts` over the local pi session store.
|
|
51
|
+
This is measurement, not literature — it beats every published constant for this team.
|
|
52
|
+
|
|
53
|
+
**Sample:** 542 substantive sessions · 737.5 active steering hours (92.2 steering-days) · $7,676 billed.
|
|
54
|
+
**Method:** sum inter-record gaps, capping any gap over 15 minutes (a gap is a break, not work).
|
|
55
|
+
|
|
56
|
+
| Parameter | Model default before | **Measured** | Verdict |
|
|
57
|
+
|---|---:|---:|---|
|
|
58
|
+
| Cost per active steering hour | — | **$10.41** | new; the most robust agent-cost driver |
|
|
59
|
+
| Cost per steering day (8 h) | — | **$83.27** | ~17% of an SME human day rate |
|
|
60
|
+
| ACEM Context Factor | 1.25 | **5.10** | default understated **4.1×** |
|
|
61
|
+
| ACEM Revision Factor | 1.40 | **1.05** (lower bound) | default overstated; floor held at 1.25 |
|
|
62
|
+
| Output share of tokens | 25% | **0.38%** | default overstated **66×** |
|
|
63
|
+
| Cache-read share of tokens | — | **95.5%** | this is where the money actually goes |
|
|
64
|
+
| Tool error rate | — | 0.9% | |
|
|
65
|
+
| Human correction rate | — | 3.7% of human turns | |
|
|
66
|
+
| Assistant turns per human turn | — | **12.9 : 1** | the real leverage ratio |
|
|
67
|
+
| Tool calls per steering hour | — | 90.1 | |
|
|
68
|
+
| Output tokens per steering hour | — | 48,692 | |
|
|
69
|
+
|
|
70
|
+
### What these findings actually mean
|
|
71
|
+
|
|
72
|
+
**Context re-reading is the agentic cost structure, not generation.** 95.5% of all tokens
|
|
73
|
+
billed were cache reads. Modelling agentic cost as a 25/75 output/input split — as generic
|
|
74
|
+
token-cost guidance does — prices the wrong thing by two orders of magnitude. ACEM is right
|
|
75
|
+
to give the Context Factor its own term; it is simply much larger than the illustrative value.
|
|
76
|
+
|
|
77
|
+
**The Context Factor is real and measurable.** Long sessions (≥60 assistant turns) re-read
|
|
78
|
+
5.1× more context per turn than short ones (≤20). Long agent runs get progressively more
|
|
79
|
+
expensive per unit of work — which is an argument for scoping agent tasks tightly, and a cost
|
|
80
|
+
line that a naive per-task estimate misses entirely.
|
|
81
|
+
|
|
82
|
+
**Prefer the measured rate over the ACEM reconstruction.** `$10.41/agent-hour` already
|
|
83
|
+
contains every retry, revision and context effect. Reconstructing the same number from
|
|
84
|
+
RF × CF × token price compounds three uncertain constants to reach a figure you can simply
|
|
85
|
+
measure. The engine uses the measured rate when `ai.cost_per_steering_hour` is set, and falls
|
|
86
|
+
back to ACEM only when it is not.
|
|
87
|
+
|
|
88
|
+
**The Revision Factor here is a lower bound.** It counts tool errors and explicit human
|
|
89
|
+
corrections. It cannot see tokens the agent silently redid on its own, so the true value is
|
|
90
|
+
higher. The default is held at 1.25, above the 1.05 measured floor.
|
|
91
|
+
|
|
92
|
+
### Method validation
|
|
93
|
+
|
|
94
|
+
The same measurement re-run on the project that produced the original steering figures returns
|
|
95
|
+
424 h against the 465 h recorded earlier — same order, different snapshot date and gap policy.
|
|
96
|
+
The method reproduces its own prior result, which is the minimum bar for trusting it.
|
|
97
|
+
|
|
98
|
+
### Solving the overhead multiplier
|
|
99
|
+
|
|
100
|
+
This is the highest-value use of the tool. Given a project's delivered man-days:
|
|
101
|
+
|
|
102
|
+
```
|
|
103
|
+
node scripts/calibrate-sessions.ts --project <substr> --actual-days <N>
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
```
|
|
107
|
+
overhead multiplier = delivered man-days ÷ measured steering-days
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
That single number converts an AI-assisted quote from a guess into a measurement. Anything
|
|
111
|
+
below ~1.2× is implausible and usually means the delivered man-days do not cover the same
|
|
112
|
+
roles (PM, QA, compliance, client iteration) as the steering time.
|
|
113
|
+
|
|
114
|
+
## Local delivery-mode anchors
|
|
115
|
+
|
|
116
|
+
| Anchor | Value | Source |
|
|
117
|
+
|---|---|---|
|
|
118
|
+
| Man-day | 8 productive hours | WMS offer assumption |
|
|
119
|
+
| Contingency | 15% | WMS and Digitalk offers |
|
|
120
|
+
| Working days per month | 20 | WMS timeline assumption |
|
|
121
|
+
| Confidence bands | ±10% standard CRUD, ±20% integrations, ±30% novel | WMS estimation methodology |
|
|
122
|
+
| AI-steering overhead multiplier | 1.5× light / **1.8× base** / 2.25× heavy compliance | Digitalk model, derived from 465 h measured active steering time |
|
|
123
|
+
| Steering-hour tiers | M = 4–8 h, L = 10–18 h, XL = 20–30 h | Digitalk, tiered from measured session data |
|
|
124
|
+
| OSS "configure not build" leverage | −20–30% on the build half; overhead does **not** shrink | Digitalk |
|
|
125
|
+
| Blended day rate, enterprise/international | 600 EUR | WMS offer |
|
|
126
|
+
| Blended day rate, SME/Hungary | 423 EUR | Sunbloom offer |
|
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
# CALIBRATION CASE — a completed warehouse-management project, used as a
|
|
2
|
+
# reference class. Actual base effort was 479 MD (= 3,832 h at 8 h/MD) before a
|
|
3
|
+
# 15% contingency, covering all roles including QA (15.2%), PM (10%) and
|
|
4
|
+
# deployment/training (11.9%).
|
|
5
|
+
#
|
|
6
|
+
# Only the BUILD modules appear as use cases. Testing, project management and
|
|
7
|
+
# deployment are NOT use cases here — the role-ratio model distributes them out
|
|
8
|
+
# of the total, so listing them would double count.
|
|
9
|
+
#
|
|
10
|
+
# Run: node scripts/calibrate.ts assets/calibration/wms-reference.yaml --actual-days 479 --exclude-contingency
|
|
11
|
+
|
|
12
|
+
project:
|
|
13
|
+
name: WMS reference class
|
|
14
|
+
currency: EUR
|
|
15
|
+
phase: requirements-complete
|
|
16
|
+
|
|
17
|
+
context:
|
|
18
|
+
codebase: greenfield
|
|
19
|
+
domain: warehouse management / robotics
|
|
20
|
+
compliance: []
|
|
21
|
+
|
|
22
|
+
stack:
|
|
23
|
+
backend: java-judo
|
|
24
|
+
frontend: react-typescript
|
|
25
|
+
mobile: flutter
|
|
26
|
+
data: postgres
|
|
27
|
+
integrations: [RCS-2000, Microsoft Dynamics 365]
|
|
28
|
+
|
|
29
|
+
actors:
|
|
30
|
+
- name: PDA operator
|
|
31
|
+
type: human
|
|
32
|
+
- name: Warehouse admin
|
|
33
|
+
type: human
|
|
34
|
+
- name: RCS-2000 robot control system
|
|
35
|
+
type: api
|
|
36
|
+
- name: Microsoft Dynamics 365
|
|
37
|
+
type: api
|
|
38
|
+
- name: Zebra barcode scanner
|
|
39
|
+
type: protocol
|
|
40
|
+
- name: Message queue
|
|
41
|
+
type: protocol
|
|
42
|
+
|
|
43
|
+
use_cases:
|
|
44
|
+
# --- Module 1: core backend (70 MD actual) ---
|
|
45
|
+
- id: UC-01
|
|
46
|
+
name: Domain model, schema and migrations
|
|
47
|
+
transactions: 6
|
|
48
|
+
ai_class: boilerplate
|
|
49
|
+
risk: low
|
|
50
|
+
- id: UC-02
|
|
51
|
+
name: Inventory management (cart tracking, position management)
|
|
52
|
+
transactions: 8
|
|
53
|
+
ai_class: crud
|
|
54
|
+
risk: medium
|
|
55
|
+
- id: UC-03
|
|
56
|
+
name: Order management and allocation logic
|
|
57
|
+
transactions: 7
|
|
58
|
+
ai_class: crud
|
|
59
|
+
risk: medium
|
|
60
|
+
- id: UC-04
|
|
61
|
+
name: Task orchestration with priority queue
|
|
62
|
+
transactions: 9
|
|
63
|
+
ai_class: algorithmic
|
|
64
|
+
risk: medium
|
|
65
|
+
- id: UC-05
|
|
66
|
+
name: Graph-based storage manager and accessibility algorithm
|
|
67
|
+
transactions: 12
|
|
68
|
+
ai_class: algorithmic
|
|
69
|
+
risk: high
|
|
70
|
+
- id: UC-06
|
|
71
|
+
name: Shuffle cost algorithm and buffer allocation
|
|
72
|
+
transactions: 9
|
|
73
|
+
ai_class: algorithmic
|
|
74
|
+
risk: high
|
|
75
|
+
- id: UC-07
|
|
76
|
+
name: Authentication, RBAC and API gateway
|
|
77
|
+
transactions: 5
|
|
78
|
+
ai_class: boilerplate
|
|
79
|
+
risk: low
|
|
80
|
+
|
|
81
|
+
# --- Module 2: robot control integration (39 MD actual) ---
|
|
82
|
+
- id: UC-08
|
|
83
|
+
name: Robot task scheduling API client
|
|
84
|
+
transactions: 7
|
|
85
|
+
ai_class: integration
|
|
86
|
+
risk: medium
|
|
87
|
+
- id: UC-09
|
|
88
|
+
name: Robot event callback endpoint and event processing
|
|
89
|
+
transactions: 6
|
|
90
|
+
ai_class: integration
|
|
91
|
+
risk: medium
|
|
92
|
+
- id: UC-10
|
|
93
|
+
name: Task control, status polling and retry/backoff
|
|
94
|
+
transactions: 8
|
|
95
|
+
ai_class: integration
|
|
96
|
+
risk: medium
|
|
97
|
+
|
|
98
|
+
# --- Module 3: ERP integration (55 MD actual) ---
|
|
99
|
+
- id: UC-11
|
|
100
|
+
name: ERP inbound and production order sync
|
|
101
|
+
transactions: 9
|
|
102
|
+
ai_class: integration
|
|
103
|
+
risk: high
|
|
104
|
+
- id: UC-12
|
|
105
|
+
name: ERP outbound order sync and shipment confirmation
|
|
106
|
+
transactions: 8
|
|
107
|
+
ai_class: integration
|
|
108
|
+
risk: medium
|
|
109
|
+
- id: UC-13
|
|
110
|
+
name: Inventory snapshot and product master-data sync
|
|
111
|
+
transactions: 7
|
|
112
|
+
ai_class: integration
|
|
113
|
+
risk: medium
|
|
114
|
+
- id: UC-14
|
|
115
|
+
name: Message queue, data mapping and conflict resolution
|
|
116
|
+
transactions: 8
|
|
117
|
+
ai_class: integration
|
|
118
|
+
risk: high
|
|
119
|
+
|
|
120
|
+
# --- Module 4: PDA mobile app (68 MD actual) ---
|
|
121
|
+
- id: UC-15
|
|
122
|
+
name: Mobile shell, login and barcode scanner integration
|
|
123
|
+
transactions: 6
|
|
124
|
+
ai_class: ux-heavy
|
|
125
|
+
risk: low
|
|
126
|
+
- id: UC-16
|
|
127
|
+
name: Cart scan flow and work instructions screen
|
|
128
|
+
transactions: 9
|
|
129
|
+
ai_class: ux-heavy
|
|
130
|
+
risk: medium
|
|
131
|
+
- id: UC-17
|
|
132
|
+
name: Product scan validation and work order completion
|
|
133
|
+
transactions: 8
|
|
134
|
+
ai_class: crud
|
|
135
|
+
risk: medium
|
|
136
|
+
- id: UC-18
|
|
137
|
+
name: Offline mode with local cache and sync queue
|
|
138
|
+
transactions: 9
|
|
139
|
+
ai_class: algorithmic
|
|
140
|
+
risk: high
|
|
141
|
+
- id: UC-19
|
|
142
|
+
name: Real-time notifications and multilingual UI
|
|
143
|
+
transactions: 7
|
|
144
|
+
ai_class: integration
|
|
145
|
+
risk: medium
|
|
146
|
+
|
|
147
|
+
# --- Module 5: web admin portal (69 MD actual) ---
|
|
148
|
+
- id: UC-20
|
|
149
|
+
name: Admin shell, authentication and dashboard KPIs
|
|
150
|
+
transactions: 6
|
|
151
|
+
ai_class: crud
|
|
152
|
+
risk: low
|
|
153
|
+
- id: UC-21
|
|
154
|
+
name: Warehouse configuration with graph visualisation
|
|
155
|
+
transactions: 9
|
|
156
|
+
ai_class: ux-heavy
|
|
157
|
+
risk: high
|
|
158
|
+
- id: UC-22
|
|
159
|
+
name: Cart, order and task monitoring screens
|
|
160
|
+
transactions: 9
|
|
161
|
+
ai_class: crud
|
|
162
|
+
risk: low
|
|
163
|
+
- id: UC-23
|
|
164
|
+
name: Robot fleet management and user administration
|
|
165
|
+
transactions: 7
|
|
166
|
+
ai_class: crud
|
|
167
|
+
risk: low
|
|
168
|
+
- id: UC-24
|
|
169
|
+
name: Reports, analytics and system configuration
|
|
170
|
+
transactions: 9
|
|
171
|
+
ai_class: crud
|
|
172
|
+
risk: medium
|
|
173
|
+
|
|
174
|
+
factors:
|
|
175
|
+
technical:
|
|
176
|
+
T1: 5 # distributed: robots, ERP, PDA, server
|
|
177
|
+
T2: 4 # real-time response objectives
|
|
178
|
+
T3: 4 # end-user efficiency on the shop floor
|
|
179
|
+
T4: 5 # complex internal processing (graph, shuffle)
|
|
180
|
+
T5: 3
|
|
181
|
+
T6: 3
|
|
182
|
+
T7: 3
|
|
183
|
+
T8: 2
|
|
184
|
+
T9: 3
|
|
185
|
+
T10: 4 # concurrent
|
|
186
|
+
T11: 3
|
|
187
|
+
T12: 4 # direct third-party access (RCS, D365)
|
|
188
|
+
T13: 3
|
|
189
|
+
environmental:
|
|
190
|
+
E1: 4
|
|
191
|
+
E2: 3
|
|
192
|
+
E3: 4
|
|
193
|
+
E4: 4
|
|
194
|
+
E5: 4
|
|
195
|
+
E6: 3
|
|
196
|
+
E7: 1
|
|
197
|
+
E8: 1
|
|
198
|
+
cocomo_scale:
|
|
199
|
+
PREC: low # novel robotics domain
|
|
200
|
+
FLEX: nominal
|
|
201
|
+
RESL: nominal
|
|
202
|
+
TEAM: high
|
|
203
|
+
PMAT: nominal
|
|
204
|
+
|
|
205
|
+
team:
|
|
206
|
+
hours_per_day: 8
|
|
207
|
+
fte: 3.5
|
|
208
|
+
seniority_mix:
|
|
209
|
+
senior: 0.3
|
|
210
|
+
mid: 0.4
|
|
211
|
+
junior: 0.3
|
|
212
|
+
|
|
213
|
+
calibration:
|
|
214
|
+
hours_per_ucp: 20 # starting assumption; calibrate.ts solves for the true value
|
|
215
|
+
reference_ucp: 100
|
|
216
|
+
contingency: 0.15
|
|
217
|
+
seed: 20260101
|