← All posts

DDE DORA v2—measuring delivery from release evidence

The original dashboard and animated specification, with eight calculations, their source records and the simulation that puts changes in context.

Dmitry Mykhaylov · 19 min read

DDE v2 is a prototype for making engineering metrics traceable. The overview in the original design shows lead time at 11.4 h, down 12.4%, with change failure rate at 20.0%, up 33.3%. Clicking either figure leads to the definition, the settings behind it and the records that contributed to it. That connection between the result and the evidence is the purpose of the design.

The dashboard and examples use synthetic data. The material here comes from the original Claude Design dashboard and its companion specification. The dashboard snapshot, one-week traceability fixture and forecast back-test each have their own reporting context.

The original DDE v2 dashboard

The default view shows production (PRO), all teams and components and the last 30 days, with a commit-weighted mean and the last component’s deployment end as the endpoint. The original comparison spans 2–31 October against 2 September–1 October. The arrows and percentage changes describe the original snapshot. A lower value is favourable for lead time and recovery, while a higher change failure rate points the team towards the incident records.

Lead Time for Change

11.4 h Elite

−12.4% · previous 13.0 h

Deployment Frequency

1.00/day High

+8.0% · previous 0.93/day

Change Failure Rate

20.0% Low

+33.3% · previous 15.0%

Mean Time to Restore (MTTR)

2.0 h High

−25.0% · previous 2.7 h

Deployment Rework Rate

20.0% Medium

0.0% · previous 20.0%

Modification Density

154.8 LoC/day Within range

+18.0% · previous 131.2 LoC/day

Impactful Lead Time for Change

11.8 h Info

−6.1% · previous 12.6 h

Impactful Deployment Frequency

154.8 LoC/day Info

+11.2% · previous 139.2 LoC/day

The original interactive specification

The 111-chapter, 17 min 51 s journey is included here from the Claude export. Use its chapter menu to jump between concepts, playback and captions to step through a scene, and the commit and component inspectors to see the timestamps and data behind a calculation. The examples below offer shorter entry points into the same animation.

Open the original DORA animation

What the configuration changes

A number can change when the team changes what it counts or how it groups records. The prototype keeps those choices visible so two people can reproduce the same result. The production view is the basis for DORA comparisons. DEV and STG support diagnosis, and the optional synthetic deployment mode uses the merge into main as a proxy for delivery where runtime deployment data is unavailable. Change failure rate and recovery time require runtime evidence, so the synthetic mode shows them as unavailable.

Default settings · Global
SettingDefault value
EnvironmentPRO
Time scaledays
GranularityGlobal
Selection range30 days
Workable hours8 h · 09:00–17:00
Workable daysMon–Fri
Overlapping eventsFollowing
Default settings · Mono-repo
SettingDefault value
ClassificationPath pattern
File mappingAdvanced · inverse transitive
Dependency levelsL* · all depths
Default settings · Lead Time for Change
SettingDefault value
AggregationMean · all commits
Included outcomesNetto · successful
Deployment EventMax End DE
Default settings · Failure Rate
SettingDefault value
Counting1 deployment → 1 failure
SelectivityAll five event types
ComponentsAll components
Default settings · Deployment Frequency
SettingDefault value
Deployment EventCoarse · one per version
Default settings · Simulation
SettingDefault value
Simulated metricLead Time for Change
Confidence interval95%
Back-test horizon1 month

Lead time starts at the original commit creation timestamp, even when a rebase changes the hash. For a multi-component release, Max End DE places the deployment event at the latest component end. Earlier starts, earlier ends, or averages describe different questions. Netto uses successful outcomes, while Brutto includes terminal attempts for diagnosis. Averaging all commit observations and averaging the means of individual pull requests answer different questions. The first gives each commit equal weight. The second gives each pull request equal weight, even when pull requests vary in size.

The prototype separates the overall selection range from the granularity used for trends. A global result aggregates the underlying eligible events over the whole range. Averaging weekly results gives each eligible week equal weight, which can magnify a week with only one observation. For events spanning two windows, the default assigns the completed event to the following window. The configuration also separates eligible event time from the workable-time denominator. The Sunday release in the fixture counts towards deployment frequency, and the Sunday adds no workable hours.

Show the prototype’s performance tiers

The prototype includes DORA, Strict and Relaxed presets. The table shows the default choices from the exported design. Apply the bands in order from Elite through Low. Presets affect the badge and overview counts, while the underlying metric values stay the same.

DORA preset in the exported design
MetricEliteHighMediumLow
Lead Time for Change< 1 day< 1 week< 1 month≥ 1 month
Deployment Frequency> 1/day≥ 1/week≥ 1/month< 1/month
Change Failure Rate≤ 5%≤ 10%≤ 15%> 15%
Mean Time to Restore (MTTR)< 1 hour< 1 day< 1 week≥ 1 week

The source’s four-metric performance panel shows one Elite metric (lead time), two High metrics (deployment frequency and recovery), and one Low metric (change failure rate). Deployment rework uses a separate status in the prototype.

Five deployments, five original commit records

The design’s worked fixture tracks five commits, four pull requests and five deployment events across 5–11 October. Two commits go out in D1, and D3 is a rollback with no newly delivered commit. A confirmed production incident, INC-01, follows D2. The trace records failure at 12:10 and restoration at 14:10 on 7 October. The fixture still includes D5 in the deployment total. Its hotfix label is a candidate signal, outside the 24-hour attribution window, and its rework classification remains unknown.

Source commit records
CommitPROriginal creationReleaseLead timeAddedRemoved
c1#1235 Oct 08:00D12 h243
c2#1235 Oct 09:00D11 h1811
c3#1246 Oct 12:00D224 h16266
c4#1259 Oct 10:00D46 h310145
c5#12610 Oct 10:00D524 h350
Source deployment events
IDVersionEnd timestampTrace context
D1v1.4.05 Oct 10:00Initial fixture release
D2v1.4.17 Oct 12:00Linked to INC-01
D3v1.4.0 (rollback)7 Oct 14:00Rollback for INC-01
D4v1.5.09 Oct 16:00Feature release
D5v1.5.111 Oct 10:00Sunday release, unclassified rework

A release, a commit and an incident have different grains. Joining a deployment to two commits creates two rows in a trace view and still represents one deployment. D3 appears in the deployment frequency and rework calculations even though it contributes zero new lines and no lead-time sample. The recovery interval ends when service is healthy again. In the worked fixture, HEALTH-01 provides that evidence ten minutes after the rollback’s deployment event.

In the source dashboard, each metric’s Traceability panel supports CSV export of the visible records. The downloads below copy the corresponding fixture rows. Commit IDs such as c1 and deployment IDs such as D3 identify the synthetic records in this post.

Eight definitions, calculated from the source fixture

The first five cards follow the DORA dimensions of throughput and instability. The prototype labels failed deployment recovery time Mean Time to Restore (MTTR). Its three additional measures use changed lines to describe volume or weight, even when the version count is constant. Treat those measures as descriptions of the workload. Generated files, lockfiles and binaries are excluded in the source convention, and modified lines are additions plus removals.

Lead Time for Change

Measure each newly delivered commit from its original creation timestamp to its first eligible production event. Group by original commit identity so a rebase or repeated promotion cannot add the same observation twice. The fixture also shows the median and sample standard deviation.

The five observations are 2, 1, 24, 6 and 24 hours. Their mean is 57 ÷ 5 = 11.4 h, the sample standard deviation is 11.7 h and the median is 6.0 h.

Show trace records (6)
Commit → PR → Deployment Event
CommitPull requestDeployment Event (CI/CD)Lead timeSample
c1 · committed 5 Oct 08:00#123PRO · v1.4.0 · D1 · run 9100001 · 5 Oct 10:002 h−9.4 h vs μ_L
c2 · committed 5 Oct 09:00#123PRO · v1.4.0 · D1 · run 9100001 · 5 Oct 10:001 h−10.4 h vs μ_L
c3 · committed 6 Oct 12:00#124PRO · v1.4.1 · D2 · run 9100002 · 7 Oct 12:0024 h+12.6 h vs μ_L
c4 · committed 9 Oct 10:00#125PRO · v1.5.0 · D4 · run 9100004 · 9 Oct 16:006 h−5.4 h vs μ_L
c5 · committed 10 Oct 10:00#126PRO · v1.5.1 · D5 · run 9100005 · 11 Oct 10:0024 h+12.6 h vs μ_L
——PRO · v1.4.0 (rollback) · D3 · run 9100003 · 7 Oct 14:00—no new commit

μ_L = (2 + 1 + 24 + 6 + 24) / 5 = 57 / 5 = 11.4 h; σ_L = 11.7 h; median 6.0 h (diagnostic). The rollback D3 delivers no new commit, so it adds no sample.

Download the synthetic trace as CSV

Deployment Frequency

Divide the number of eligible deployment events by workable time. The coarse option counts one event per version, while the fine-grained view can examine component events. The fixture uses 8-hour weekdays. Its numerator includes the Sunday deployment and the rollback.

5 deployments in one week of 5 workable days → 1.00 per workable day (0.71 per calendar day).

Show trace records (5)
Deployment Events counted
Deployment Event (CI/CD)Pull requestCommits includedDeployed atCounted
PRO · v1.4.0 · D1 · run 9100001 · 5 Oct 10:00#123c1, c25 Oct 10:00+1
PRO · v1.4.1 · D2 · run 9100002 · 7 Oct 12:00#124c37 Oct 12:00+1
PRO · v1.4.0 (rollback) · D3 · run 9100003 · 7 Oct 14:00—— (rollback)7 Oct 14:00+1
PRO · v1.5.0 · D4 · run 9100004 · 9 Oct 16:00#125c49 Oct 16:00+1
PRO · v1.5.1 · D5 · run 9100005 · 11 Oct 10:00#126c511 Oct 10:00+1

5 Deployment Events over 5 workable days (Mon–Fri, 8 h) = 1.00 per workable day. D5 landed on a Sunday: it counts, but Sunday adds no workable time.

Download the synthetic trace as CSV

Change Failure Rate

Link failure signals to the deployment that introduced the incident, using the configured time window and selected component scope. Collapse duplicate signals so a failed health check and an incident ticket for one release still contribute one failure.

D2 failed out of D1…D5 → 1 / 5 = 20%.

Show trace records (5)
Deployments and their failure events
Deployment Event (CI/CD)Pull requestFailure eventSourceCounted
PRO · v1.4.0 · D1 · run 9100001 · 5 Oct 10:00#123none—ok
PRO · v1.4.1 · D2 · run 9100002 · 7 Oct 12:00#124INC-01 · production errorIncident, confirmed 7 Oct 12:10failed +1
PRO · v1.4.0 (rollback) · D3 · run 9100003 · 7 Oct 14:00—none—ok
PRO · v1.5.0 · D4 · run 9100004 · 9 Oct 16:00#125none—ok
PRO · v1.5.1 · D5 · run 9100005 · 11 Oct 10:00#126hotfix label, 42 h after D4PR label (heuristic)candidate only

1 failed deployment out of 5 = 20%. The D5 hotfix label is outside the 24 h window and is not a confirmed failure.

Download the synthetic trace as CSV

Mean Time to Restore (MTTR)

For each eligible deployment failure, measure the interval from confirmed failure to restored service and take the mean. Fine-grained recovery can use component health. The coarse view waits for the relevant deployment event that returns all affected components to a healthy state.

Failure was confirmed at 12:10 and service recovered at 14:10. One completed recovery yields a mean of 2 h.

Show trace records (1)
Failure → restoration
Failed Deployment EventFailure EventRestoration DeploymentRestoration EventTime to restore
PRO · v1.4.1 · D2 · run 9100002 · 7 Oct 12:007 Oct 12:10 · INC-01PRO · v1.4.0 (rollback) · D3 · run 9100003 · 7 Oct 14:007 Oct 14:10 · HEALTH-012 h

One restoration inside the range: mean 2 h. Coarse restoration: D3 is the first later deployment in which everything is green.

Download the synthetic trace as CSV

Deployment Rework Rate

Divide confirmed unplanned recovery deployments by all eligible deployments. A rollback for an earlier failure counts as rework, while the failed release and its rollback have separate roles in the two rates. Keep candidate rework visible until confirmed.

D3 is the confirmed rollback for INC-01. One confirmed recovery release out of five yields 20%, provisional while D5 is unclassified.

Show trace records (5)
Unplanned, incident-driven deployments
Deployment Event (CI/CD)Pull requestTriggerClassificationCounted
PRO · v1.4.0 · D1 · run 9100001 · 5 Oct 10:00#123planned releaseplanned—
PRO · v1.4.1 · D2 · run 9100002 · 7 Oct 12:00#124planned releaseplanned—
PRO · v1.4.0 (rollback) · D3 · run 9100003 · 7 Oct 14:00—INC-01 rollbackunplannedrework +1
PRO · v1.5.0 · D4 · run 9100004 · 9 Oct 16:00#125planned releaseplanned—
PRO · v1.5.1 · D5 · run 9100005 · 11 Oct 10:00#126hotfix labelunknownunclassified

1 of 5 = 20%, provisional while D5 is unclassified.

Download the synthetic trace as CSV

Modification Density

Sum additions and removals across the selected, deduplicated commit records and divide by workable duration. The design also shows density per calendar day, per commit and per pull request so a reader can see which denominator was selected.

774 modified lines over 5 workable days (Mon 5–Fri 9 Oct) → 154.8 LoC/day; 110.6 per calendar day, 154.8 per commit, 193.5 per PR.

Show trace records (5)
Changed lines per workable day
CommitPull requestDeployment Event (CI/CD)Added / removedModified LoC
c1 · committed 5 Oct 08:00#123PRO · v1.4.0 · D1 · run 9100001 · 5 Oct 10:00+24 −327
c2 · committed 5 Oct 09:00#123PRO · v1.4.0 · D1 · run 9100001 · 5 Oct 10:00+18 −1129
c3 · committed 6 Oct 12:00#124PRO · v1.4.1 · D2 · run 9100002 · 7 Oct 12:00+162 −66228
c4 · committed 9 Oct 10:00#125PRO · v1.5.0 · D4 · run 9100004 · 9 Oct 16:00+310 −145455
c5 · committed 10 Oct 10:00#126PRO · v1.5.1 · D5 · run 9100005 · 11 Oct 10:00+35 −035

774 modified lines over 5 workable days (Mon 5–Fri 9 Oct) = 154.8 LoC/day. Alternatives: 110.6 per calendar day, 154.8 per commit, 193.5 per pull request.

Download the synthetic trace as CSV

Impactful Lead Time for Change

Weight each commit’s lead time by the number of lines it changed. Larger changes have more influence on the mean. The worked example retains the ordinary lead time nearby so a reviewer can see the effect of weighting.

Σ M·L = 9,125 LoC·h over Σ M = 774 LoC → 11.8 h, against the 11.4 h plain mean μ_L. The 455-line commit c4 alone carries 59% of the weight, so its 6 h and the 24 h of c3 dominate.

Show trace records (5)
Lead time weighted by changed lines
CommitPull requestDeployment Event (CI/CD)Lead time × LoCWeight
c1 · committed 5 Oct 08:00#123PRO · v1.4.0 · D1 · run 9100001 · 5 Oct 10:002 h × 273.5%
c2 · committed 5 Oct 09:00#123PRO · v1.4.0 · D1 · run 9100001 · 5 Oct 10:001 h × 293.7%
c3 · committed 6 Oct 12:00#124PRO · v1.4.1 · D2 · run 9100002 · 7 Oct 12:0024 h × 22829.5%
c4 · committed 9 Oct 10:00#125PRO · v1.5.0 · D4 · run 9100004 · 9 Oct 16:006 h × 45558.8%
c5 · committed 10 Oct 10:00#126PRO · v1.5.1 · D5 · run 9100005 · 11 Oct 10:0024 h × 354.5%

Σ M·L / Σ M = 9125 / 774 = 11.8 h. The 455-line commit carries 59% of the weight.

Download the synthetic trace as CSV

Impactful Deployment Frequency

Sum the lines newly delivered by the eligible deployments and divide by workable time. Repeated delivery of identical lines contributes once. Under this fixture, the density and impactful frequency coincide because all eligible modifications ship within the selected window.

D1 56 + D2 228 + D4 455 + D5 35 = 774 LoC (the D3 rollback ships no new lines) over 5 workable days → 154.8 LoC/day, against a plain 1.00 deployment/day.

Show trace records (6)
Modified lines shipped per deployment
Deployment Event (CI/CD)CommitPull requestAdded / removedModified LoCShare
PRO · v1.4.0 · D1 · run 9100001 · 5 Oct 10:00c1 · committed 5 Oct 08:00#123+24 / −3273.5%
PRO · v1.4.0 · D1 · run 9100001 · 5 Oct 10:00c2 · committed 5 Oct 09:00#123+18 / −11293.7%
PRO · v1.4.1 · D2 · run 9100002 · 7 Oct 12:00c3 · committed 6 Oct 12:00#124+162 / −6622829.5%
PRO · v1.4.0 (rollback) · D3 · run 9100003 · 7 Oct 14:00— (rollback, no new commits)—+0 / −000.0%
PRO · v1.5.0 · D4 · run 9100004 · 9 Oct 16:00c4 · committed 9 Oct 10:00#125+310 / −14545558.8%
PRO · v1.5.1 · D5 · run 9100005 · 11 Oct 10:00c5 · committed 10 Oct 10:00#126+35 / −0354.5%

Σ M_d = 774 LoC over 5 workable days = 154.8 LoC/day. Plain Deployment Frequency counts all five deployments equally (1.00/day).

Download the synthetic trace as CSV

In source accounting, the 455-line commit contributes 58.8% of the weight, yet its lead time is only 6 h. The 228-line commit waits 24 h. Both strongly influence the weighted mean, which is 11.8 h versus 11.4 h for the unweighted mean. Pairing these two measures tells reviewers which changes deserve a closer look. Counting changed lines as productivity would give a reformatted file the same status as a product improvement.

Project attribution in a monorepo

The original specification shows two mappings. In simple mapping, a changed path belongs to its owning project. In advanced mapping, a change to a shared project also affects its direct and indirect dependants. The depth can range from L0 (direct attribution only) to L* (all dependency depths), and the shortest path determines each project’s distance. When two paths reach the same project, the project contributes one affected record for that change.

This matters for the advanced metrics and for code-review conversations. A commit can bring work to several downstream projects, while the commit is still one unique event at repository level. Project totals can overlap. Keep the report’s mapping policy with any export, and compare the same project under the same policy across reporting windows.

Simulation and counterfactual comparison

The design asks whether a measured change is unusual relative to its own history. It takes about a quarter of daily observations, trains on the period preceding the held-out month and forecasts that last month. The forecast incorporates a trend and weekly seasonality. The interface displays 90%, 95% and 99% predictive bands, with 95% as the default decision level. The source describes a Stan model with four NUTS chains and a convergence gate of R̂ below 1.01. The exported animation uses an illustrative browser calculation to teach that workflow.

The source contrasts ordinary variation (Scenario A) with a pipeline change (Scenario B). In the dashboard’s synthetic forecast trace, the four weekly predicted values are 9.3, 9.2, 9.1 and 9.0 h, while the observed values are 6.8, 6.5, 6.3 and 6.0 h. The original prototype flags the lead-time improvement outside 99%. The next step in a real investigation would be to check the release, workload and incident traces for corroborating evidence.

Show trace records (4)
Predicted vs factual, last four weeks
WeekPredicted (Stan median)FactualDeltaDelta %
Sep 299.3 h6.8 h-2.5 h-26.9%
Oct 69.2 h6.5 h-2.7 h-29.3%
Oct 139.1 h6.3 h-2.8 h-30.8%
Oct 209.0 h6.0 h-3.0 h-33.3%

Each week links back to the Lead Time for Change records of that week. All four weeks fall below the 99% band: an impactful improvement.

Download the synthetic trace as CSV

Joint simulations and direct associations

Changes in lead time and change failure rate can be related. The original design therefore compares a vector of standardised shifts with a reference ellipsoid, using the inverse of the metrics’ correlation matrix. The Stan specification proposes an LKJ(2) prior for that matrix. The two-dimensional example uses lead time and change failure rate, with a correlation of 0.46. The three-dimensional example adds recovery time. A four-dimensional chapter adds deployment frequency.

Two dimensions

The aggregate shift is (−3.1, −0.4). With a correlation of 0.46, the squared distance is approximately 10.95. It exceeds the 99% threshold of 9.21.

Show trace records (4)
Joint test per week · LTfC × FR
Weekz LTfCz FRd²Verdict
Sep 29-0.8-0.20.68inside 90%
Oct 6-1.6-0.32.80inside 90%
Oct 13-2.4-0.46.39outside 95%
Oct 20-3.1-0.410.95outside 99%

Each week links to the Lead Time for Change and Change Failure Rate records of that week. χ²₂ thresholds: 4.61 · 5.99 · 9.21.

Download the synthetic trace as CSV

Three dimensions

The aggregate shift is (−3.1, −0.4, −0.6). Its squared distance of 11.28 falls between the 95% threshold of 7.81 and the 99% threshold of 11.34.

Show trace records (4)
Joint test per week · LTfC × FR × MTTR
Weekz LTfCz FRz MTTRd²Verdict
Sep 29-0.8-0.2-0.30.68inside 90%
Oct 6-1.6-0.3-0.42.85inside 90%
Oct 13-2.4-0.4-0.56.57outside 90%
Oct 20-3.1-0.4-0.611.28outside 95%

χ²₃ thresholds: 6.25 · 7.81 · 11.34. The last week is outside 95% but just inside 99%.

Download the synthetic trace as CSV

The correlation view makes the next question explicit. Compare the ordinary Pearson correlation with the partial correlation after accounting for the other included metrics. The prototype draws an edge when the absolute partial correlation exceeds approximately 0.21 for a 90-day history. For example, lead time and modification density go from +0.44 to +0.12 after adjustment, below the edge threshold. The four displayed edges are hypotheses for reviewing release and incident evidence.

Show trace records (10)
Metric pairs · Pearson and partial correlation · 90 days
Metric pairExpectedPearson ρPartial ρEdge
LTfC–FRpositive+0.52+0.31direct link
LTfC–DFnegative-0.47-0.35direct link
LTfC–MTTRpositive+0.41+0.27direct link
FR–MDpositive+0.48+0.33direct link
LTfC–MDpositive+0.44+0.12indirect
FR–MTTRpositive+0.29+0.06indirect
FR–DFnegative-0.26-0.04indirect
MTTR–DFnegative-0.22+0.03indirect
MTTR–MDpositive+0.18+0.02none
DF–MDnegative-0.15-0.05none

At the 0.21 threshold, four direct associations remain. The two examples that fall below the threshold after adjustment are lead time with modification density and change failure rate with recovery time.

Download the synthetic trace as CSV

The design ties four things together—configuration, a calculation, its evidence and a decision. A team looking at the higher change failure rate can check which release triggered action, how many deployments form the denominator and whether the same counting rule applied in the comparison period. The forecast then adds context about how unusual the shift is for that service.

Method references DORA’s software delivery performance metrics, DORA’s metric history, the Stan User’s Guide and Vehtari et al. on R̂ and effective sample size.

← All posts