Skip to content
Tech Interview Prep
Technical interview guide

Developer Experience Metrics

Measuring whether a platform is actually working: lead time, deployment frequency, and developer satisfaction.

Minutes to read
3
Practice MCQs
25
Interview Q&A
25
Edition
v4
Editorial status
Reviewed
Relevant for
Platform Engineer

Scope: DORA software delivery metrics and measurement guidance, SPACE, DevEx, AWS, Google Cloud, and Microsoft platform engineering guidance current 2026-08-31.

Interview Q&A

Treat each question like a live interview question: answer out loud first (structure, assumptions, tradeoffs), then open the model answer to spot gaps and rehearse a tighter follow-up.

Curated: · Written: · Reviewed:

25 questions

Q&A-2

Define a trustworthy DORA measurement pipeline.

Answer

A trustworthy DORA pipeline is one where every metric has a single versioned definition, a stable join key across systems, and a known error budget for missing or late data. Start with one service, one deploy pipeline, and one incident source. Don't try to cover the whole org on day one.

Assume you have: a CD system that emits deployment events (Argo CD, Spinnaker, GitHub Actions), a VCS (GitHub/GitLab), an incident tool (PagerDuty), and a service catalog (Backstage). You're measuring at team level, not individual. DORA 2023 elite performers: deploy on demand, lead time <1 day, change fail rate 5%, recovery <1 hour. Those are your targets, not your baseline.

The join key is the service ID from the catalog. Map repo → service, pipeline → service, incident → service. Bots: filter by author email domain or [bot] suffix. Retries: dedupe by deployment ID + commit SHA + environment. Rollbacks: count as deployments but tag is_rollback=true. Hotfixes: count as deployments, tag is_hotfix=true.

All timestamps must be UTC, from NTP-synced sources. If a source only gives local time, record the offset. A 2-hour skew can turn a 1h30m lead time into 30m or negative.

Definitions:

  • Change lead time: median time from first commit in the change to deploy to production.
  • Deployment frequency: count of deployments to production per day.
  • Change fail rate: failed deployments / total deployments.
  • Failed deployment recovery time: median time from failure detection (incident open or alert) to recovery (incident resolved or rollback complete).
  • Deployment rework rate: deployments that are rework / total deployments.

Version every definition. When you change a denominator, bump the version and backfill or annotate the change. Expose freshness: last event timestamp per source. If a source is >15 min stale, flag it.

Trade-offs: event-based (CD webhooks) vs deployment-record (manual logs). Event-based is fresher but noisy; deployment-record is cleaner but stale. Sampling vs full instrumentation: full instrumentation for deploys, sampling for lead time if commit volume is huge. Deciding criteria: if you have <100 deploys/day, full instrumentation is cheap. If you have >1000, sample commits.

Failure modes:

  • Missing joins: a deploy with no commit → lead time undefined. Detect by coverage ratio: % of deploys with a commit. If <95%, investigate.
  • Clock skew: negative lead times. Detect by min(lead_time) < 0.
  • Bot commits: inflate lead time. Detect by author email.
  • Retries: duplicate deploys. Detect by duplicate deployment ID.
  • Ownership changes: service renamed → broken join. Detect by orphaned service IDs.

Artefacts:

Table: metric definitions.

MetricNumeratorDenominatorWindowSource
Deployment frequencydeployments to prod1 day1 dayCD
Change lead timefirst commit to deploy1 change1 changeVCS + CD
Change fail ratefailed deploymentstotal deployments1 weekCD + incidents
Failed deployment recovery timedetection to recovery1 failure1 failureincidents + CD
Deployment rework raterework deploymentstotal deployments1 weekCD

Arithmetic: clock skew. Commit at 13:30 UTC. Deploy at 14:00 UTC+2 (which is 12:00 UTC). Lead time = -90 min. If you ignore the offset, you get +30 min. That's a 2-hour error.

Code snippet:

Python
from datetime import datetime, timezone

def lead_time_minutes(commit_ts, deploy_ts):
    c = datetime.fromisoformat(commit_ts)
    d = datetime.fromisoformat(deploy_ts)
    if c.tzinfo is None:
        c = c.replace(tzinfo=timezone.utc)
    if d.tzinfo is None:
        d = d.replace(tzinfo=timezone.utc)
    return (d - c).total_seconds() / 60

Trace: commit_ts = "2024-06-01T13:30:00", deploy_ts = "2024-06-01T14:00:00+02:00". c = 13:30 UTC. d = 12:00 UTC. lead_time = -90.0 minutes. That's the bug. Fix: require tz-aware timestamps or record offset.

What would change the decision? If coverage <95% or negative lead times >1%, stop and fix the pipeline before trusting any trend. Use team trends and improvement conversations, not individual or cross-context rankings.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-8

Explain why SPACE is not a five-number scorecard.

Answer

Core answer (say this first). SPACE is a set of dimensions you choose from, not a scorecard you fill in. The framework (Forsgren et al., "The SPACE of Developer Productivity," ACM Queue, 2021) names five: satisfaction and well-being, performance, activity, communication and collaboration, efficiency and flow, and three levels: individual, team, system. The paper's own framing is that this is not a scorecard: you pick the two or three dimensions that answer the question in front of you, not all five, and you never sum them into one number. The reason is structural, not stylistic. The dimensions carry different units, sit at different levels, and routinely move in opposite directions. A composite deletes the disagreement, and the disagreement is the finding.

A worked case. Hypothetical but realistic: an eight-person team before and after a pipeline change.

dimensionbeforeafter
deploys/week (activity)1230
change failure rate (performance)8%14%
median PR review wait (efficiency)4 h1 h
satisfaction survey4.2/53.1/5

Activity up 2.5x, review wait down 4x, failure rate nearly doubled, satisfaction down a full point. Now score it: normalize activity as deploys/40, performance as 1 − failureRate/0.20, satisfaction as score/5, then weight 0.4 / 0.3 / 0.3.

  • Before: 0.4(0.30) + 0.3(0.60) + 0.3(0.84) = 0.55
  • After: 0.4(0.75) + 0.3(0.30) + 0.3(0.62) = 0.58

The composite says "improved." The team says "we ship faster, break more, and nobody wants to be on call." The score didn't just lose detail: it flipped the sign of the answer.

Why that happens. The weights are a policy choice, not a measurement. Whoever sets 0.4 on activity versus 0.2 decides the outcome before any data arrives. The normalization hides a second value judgment: you cannot add "4.2 on a Likert scale" to "30 deploys per week" without inventing a scale that makes them commensurable. Two teams with identical raw data and different weights get different verdicts, and neither verdict can be checked against reality.

Levels are not interchangeable either. An activity metric that is fine at the system level, total deploys, becomes a quota the moment you attach it to an individual. Commits per developer is the classic case: it measures commit hygiene, not contribution, and it is trivially gamed by splitting one change into five.

Failure modes and how to detect them.

  • Composite scorecard. Composite rises while at least one dimension falls. Detect by tracking dimensions separately alongside any composite; divergence means the composite is lying.
  • Measuring all five for everyone. Survey fatigue and instrumentation cost. Detect: survey response rate drops below roughly 50%, or behavioral instrumentation consumes engineering weeks nobody budgeted.
  • Activity as a proxy for value. Gaming. Detect: median commit size falls, PRs split, review comments per PR drop.
  • Individual metrics in performance review. Satisfaction falls and free-text starts naming "metrics" as a threat. Detect: read the survey comments, not just the score.

What to do instead. Start from the decision you are making. Shipping a platform migration? Efficiency and flow plus performance. Worried about attrition? Satisfaction and well-being. Then mix perceptual evidence (surveys, interviews) with behavioral evidence (deploy frequency, review latency), keep the dimensions separate in the report, and state the tension out loud when they disagree. That tension is the thing a scorecard would have hidden.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-20

How do you define and measure developer-centric usability metrics, such as cognitive load, task completion rates, and error recovery, for internal platform tooling?

Answer

To measure internal platform usability, treat developer workflows as user journeys rather than raw API transactions. Measuring usability requires triangulating objective behavioral telemetry (system-side instrumentation) with subjective perceptual assessments (in-situ developer feedback). Evaluating speed or click counts in isolation creates false positives; a developer who executes five CLI commands in 30 seconds may be floundering through documentation in an adjacent browser tab.

Metric Definitions & Instrumentation

  1. Task Completion Rate (TCR) & Drop-off

    • Definition: The percentage of initiated high-intent workflows that reach a verified terminal state without abandoned sessions or unassisted human escalation.
    • Instrumentation: Emit structured event spans: journey.start (e.g., service:init), step spans, and journey.complete (e.g., service:ready_for_traffic). Track journey state machines with a timeout threshold (e.g., 30 minutes of inactivity marks an abandonment). Segment by unassisted completions vs. completions requiring platform-team Slack intervention.
  2. Time to Recover from Errors (TTRE) & Friction Factor

    • Definition: Elapsed active time between a terminal error or validation rejection and the subsequent successful rerun of the same task.
    • Instrumentation: Correlate error events with subsequent command executions using a session trace ID. Calculate the retry count ($N$) and duration. Pair this with diagnostic clarity: parse CLI/UI error codes into client-side errors (actionable user input error) vs. platform-side internal failures.
  3. Cognitive Load & Flow Friction

    • Definition: Extraneous mental effort imposed by platform mechanics, measured across decisions required, context switching, and perceived effort.
    • Instrumentation: Telemetry proxies include documentation hops per task, parameter count overrides, and context switches across disparate CLI tools and web consoles. Couple this with a single-item post-task survey (e.g., Single Ease Question, SEQ: "Overall, how easy or difficult was this task?" on a 1-7 scale) triggered dynamically on every $n$-th workflow completion or drop-off.

Usability Measurement Matrix

DimensionObjective Telemetry (Behavioral)Subjective Feedback (Perceptual)Pitfall to Guard Against
Task CompletionTerminal success rate in state machine; abandonment rateIn-situ prompt on failure: "What blocked you?"Marking a task successful when the engineer wrote custom glue scripts to bypass broken tooling.
Error RecoveryP75/P90 recovery latency; retry loops before successPerceived error message clarity rating (1-5)Suppressing validation errors to artificially boost first-pass completion.
Cognitive LoadDocumentation tab switches; required configuration inputsPost-task SEQ score; quarterly DevEx cognitive load surveyEquating fewer clicks with lower cognitive load; hiding complexity behind magical defaults that fail silently.

Concrete Example: Ephemeral Test Environment Creation

Consider an internal CLI tool: platform env create --app payments.

[Developer Action]             [Telemetry Event]                        [Usability SLI]
  |                              |
  +-- Run CLI command ---------> journey.started (id=7a1c)
  |                              |
  +-- Schema validation error -> step.failed (code=ERR_BAD_CIDR)
  |   (Reads docs for 6m)        |
  +-- Re-run with fixed flags -> step.retried (attempt=2, delta=380s) -> Recovery Latency = 380s
  |                              |
  +-- Resource provisioned ----> journey.completed (status=success)    -> TCR = Pass (2 attempts)
  |                              |
  +-- Micro-survey popup ------> seq_score.recorded (rating=3/7)       -> Low Usability Detected

Telemetry shows a completed workflow, but the triangulated SEQ score (3/7) and 380-second recovery latency flag poor error ergonomics. When analyzed, the metric contract guides platform engineers to improve error diagnostics, directly driving down cognitive load and time lost.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-1

Design a DevEx measurement strategy for an internal developer platform.

Answer

Assume an internal platform serving 500 engineers across 40 teams, owning CI/CD, local dev environments, and observability. The decision this strategy must inform: where to invest next quarter's platform effort. The core answer: measure three layers. System outcomes (DORA), developer experience (SPACE/DevEx), and platform adoption. With a balanced scorecard, baselined for four weeks before any change, segmented by team size and service tier, and reviewed monthly. Start with two DORA metrics: lead time for changes and change failure rate. DORA 2023 defines elite as lead time under one hour, change failure rate 5%, deployment frequency on-demand, and time to restore under one hour. For a typical internal platform, set realistic targets: lead time p50 under 24 hours, change failure rate under 15%, deployment frequency at least weekly per team. Add a quarterly DevEx survey with three questions on feedback loops, cognitive load, and flow state, scored 1–5. Instrument platform telemetry for build time, test time, and deployment frequency.

Why these? Lead time is sensitive to platform improvements (CI speed, review latency) and change failure rate guards against speeding up by skipping tests. SPACE adds satisfaction, performance, activity, communication, efficiency. DevEx adds flow state and cognitive load. The trade-off: DORA is cheap and fast but narrow; SPACE is broad but expensive (surveys + telemetry); DevEx is qualitative but actionable. Choose based on the decision: if deciding where to invest platform effort, use DevEx + DORA; if deciding whether to adopt a new tool, run a controlled experiment with lead time as primary metric and change failure rate as guardrail.

FrameworkCostLatencyGaming riskBest for
DORALow (telemetry)DailyMedium (deployment frequency)Delivery outcomes
SPACEHigh (surveys + telemetry)QuarterlyLow (multi-dimensional)Holistic productivity
DevExMedium (surveys + telemetry)QuarterlyLow (qualitative)Developer experience

Metric gaming: teams may split PRs to inflate deployment frequency. Detect by comparing deployment frequency with lead time and change failure rate; if deployment frequency rises but lead time doesn't fall, suspect gaming. Small-group re-identification: suppress any segment with n<5. Survey fatigue: limit to quarterly, 3 questions, rotate. Operational cost: instrumenting every event adds storage and pipeline cost; sample 10% of builds for detailed traces. Use OpenTelemetry spans for CI/CD events, with a 10% sampling rate for detailed traces. Set a data-quality rule: drop events with missing timestamps or team IDs. Owner: platform team owns the scorecard; each metric has a named owner.

Baseline: lead time p50 = 48 hours, change failure rate = 20%. Hypothesis: reducing CI build time from 12 min to 5 min will cut lead time by 20%. After change: lead time p50 = 36 hours (25% reduction), change failure rate = 18% (within noise). Conclusion: CI improvement helped, but review latency now dominates; next experiment: reduce PR review time, target p50 from 12 hours to 6 hours. Review monthly at a stable cadence. Publish learnings. Prohibit individual performance use. Run one hypothesis-driven improvement at a time where practical.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-13

Design a metric contract for environment provisioning.

Answer

First, the assumption I'd state out loud: provisioning here is asynchronous. A request is accepted, queued, a worker applies infrastructure, and the environment becomes usable some time later. If that's not true, the contract changes, so I'd confirm it before designing anything.

The core answer: the metric is time-to-usable-environment, and the end of the clock is the readiness gate, not the HTTP 202. A 202 means we accepted the request; it says nothing about whether the developer can run tests. So start = request persisted with an idempotency key, end = the environment passes both a health check and a policy check (network policy attached, secrets scoped, required tags present). If the readiness gate skips the policy check, you'll report 99% success while shipping non-compliant environments.

The main trade-off is end-to-end versus phase-level measurement. End-to-end TTUE is what the developer feels and what you put an SLO on. Phase-level (queue wait, apply time, readiness wait) is what tells you where to fix it. I'd keep one headline SLI and the phase breakdown as a diagnostic, not two competing SLOs. The second trade-off is how you count retries: if each retry is its own request, a flaky provisioner looks healthier than it is. Count one logical request per intent, fold retries in, and report retry rate separately.

Example targets, 28-day window, for a platform doing ~1,000 provisions/day:

SLIDefinitionTarget
Success ratelogical requests reaching READY / total logical requests≥ 99%
TTUE p50 / p95acceptance → readiness gate passed4 min / 15 min
Queue wait p95acceptance → worker pickup60 s
Retry raterequests with ≥1 retry / total< 5%
Orphan rateenvironments with no owner after 24h< 1%

Failure modes worth naming. Queue saturation: workers maxed, queue depth climbs, TTUE p99 goes from 15 min to 90 min while success rate stays 100% because everything eventually succeeds. Success rate alone won't catch it: alert on queue depth and worker utilization. Timeout orphans: if you time out at 30 min and mark failure but the worker keeps applying, you leak environments and cost; detection is orphan rate. Duplicate requests: a double-click provisions two environments; the idempotency key at REQUESTED is the fix.

Arithmetic on the budget: 99% over 28 days is 0.01 × 40,320 min ≈ 403 min of allowed failure. At 1,000 provisions/day that's 10 failed provisions/day: enough that one bad Terraform module change can burn the month's budget in an afternoon, which is why alerts fire on queue depth and retry rate, not just the monthly number.

State machine: REQUESTED → QUEUED → PROVISIONING → READY | FAILED | CANCELLED. Duplicate detection and idempotency live at REQUESTED; cancellation is only valid before PROVISIONING, after that it's a teardown.

When not to use this: if provisioning is synchronous and sub-second (a container start, say) the queue and worker phases don't exist and you'd just measure request latency. The contract collapses to something much simpler.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-23

Design data-quality monitoring for DevEx analytics.

Answer

Assumptions I'd state first: the DevEx dashboard reads from four sources. Git (commits, MRs), CI (pipeline runs), incident management (PagerDuty), and a survey tool, and the metrics are DORA: deploy frequency, lead time, change failure rate (CFR), MTTR. The failure that hurts is a number that looks fine but is computed over incomplete or mis-keyed data, and someone reorgs a team based on it.

Core answer: I put a data contract on each source. A named owner, a freshness SLO, a volume envelope, a uniqueness key, and a coverage threshold for the join every metric depends on (identity and service mapping). Checks run on every load. When a contract breaks, the metric goes into quarantine and the dashboard marks the affected window untrusted, rather than quietly computing over bad rows.

Mechanism, so the checks are checkable:

Freshness = now() - max(event_time) per source, where event_time is the server-side timestamp, not the developer's laptop clock. Different cadences get different SLOs: CI events 15 min, commits 30 min, incidents 60 min, surveys 24h. Alert only when lag exceeds 2x the SLO on two consecutive loads: one slow batch is noise.

Volume: expected = trailing 28-day median for the same weekday and hour from the same source. Alert below 0.7x or above 1.5x. A 40% drop in CI events at 09:00 Tuesday is an agent outage, not a quiet morning.

Identity coverage: every commit email and incident assignee maps to an employee ID via HRIS. Coverage = matched / total. Threshold 95%; below it, per-team breakdowns are suppressed even while the global number shows.

Arithmetic for CFR with missing linkage: over 30 days, 1,200 deployments and 60 linked incidents gives CFR 5%. Suppose 9 incidents are unmatched (13% of incidents), and they concentrate in one service. Service A had 100 deployments and 10 matched incidents: 10% CFR. If all 9 unmatched also belong to A, A's true CFR is 19 / 100 = 19%, not 10%. Imputing unmatched at the global 5% would report A near 10.5% and hide the problem. So unmatched incidents go into an explicit "unlinked" bucket, shown as its own line, and CFR for affected services is quarantined.

Trade-off, quarantine versus impute: impute when the missing record cannot flip the decision and the aggregate is robust. 0.5% missing commits for a monthly trend, annotated. Quarantine when the metric is a rate whose numerator is the missing data (CFR, MTTR). The flip condition is testable: if the missing rows are MCAR. The service mix of matched and unmatched incidents is statistically indistinguishable. Imputation is defensible. Compare that mix every load; if it diverges, stop imputing. When not to pay for precision: streaming consumer-lag freshness is right for CI events, but surveys arrive daily, so a batch watermark check is cheaper and sufficient.

Failure modes and how each is caught:

  • Reruns inflate deploy counts: dedupe on (pipeline_id, attempt) keeping max attempt; detect via share of pipelines with attempt > 1 rising.
  • Bot commits: author email patterns or "bot" in the name, or >N commits/hour/author; flag when non-human share crosses 10% so human metrics don't absorb automation.
  • Clock skew: |author_date - committer_date| > 1h; fall back to server committer time.
  • Late incidents closing weeks after a deploy: watermark reprocessing; CFR backfills for the trailing 14 days and the window is annotated.
  • Ownership drift: repo renames and transfers break the service mapping; reconcile nightly against the catalog (Backstage or ServiceNow) and alert above 1% unmapped.

Schema contracts live in a registry (Avro or Protobuf), and load tests run as dbt tests plus a drift check on distribution (elementary or Monte Carlo) so a silent column-type change fails the load, not the dashboard.

Finally, validate the checks themselves: inject a known-bad batch in staging (drop 30% of one source, duplicate a pipeline run) and confirm the alert fires. A check that has never fired hasn't been tested.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-5

Design a developer survey that teams can trust.

Answer

Trust has two sides. Respondents must believe answers won't be traced back to them, and decision-makers must believe the numbers represent the whole org. I'd design around a construct model, not a pile of questions. Use SPACE (satisfaction, performance, activity, communication, efficiency) or DevEx (feedback, cognitive load, flow) to pick constructs. Each item maps to a decision: if we're deciding whether to invest in CI, ask about wait times in the last 14 days, not "are you happy with tooling." Sample everyone in scope, not champions. Run a quarterly pulse of 10-15 items, 5-7 minutes, plus an annual deep dive. Suppress any subgroup under 5 respondents; many orgs use 10. Publish themes, limitations, actions, and follow-up. Keep responses out of performance reviews.

Assume 200-2000 engineers, mixed roles, internal survey, recurring. The mechanism that makes this trustworthy is separation: the survey measures constructs, the sampling covers the population, and the privacy rules make honest answers rational. Stable wording across waves lets you compare trends; bounded recall (last 14 days, last sprint) reduces memory error. If you change wording, you break the trend and can't tell improvement from question drift.

CadenceInstrumentRecallSampleOutput
Quarterly10-15 SPACE/DevEx itemsLast 14 daysAll engineersTeam-level themes, org trend
AnnualDeep dive, 30-40 itemsLast 6 monthsAll engineers + managersDrivers, action plan
Continuous1-2 item pulseLast weekRandom 10%Early warning

Trade-offs. Anonymity vs follow-up: fully anonymous protects candor but you can't ask "why" or close the loop with a team. Opt-in identified responses let you follow up, but expect lower response and more socially desirable answers on sensitive items. Deciding rule: if the action needs team-level follow-up, use opt-in; if measuring burnout or manager behavior, stay anonymous. Frequency: monthly gives trend but fatigue; quarterly balances. When not to use a survey: if you need causal explanation for a specific incident, use interviews and telemetry, not a survey.

Failure modes. Nonresponse bias: detect by comparing respondent mix to HRIS on role, tenure, and team. If platform engineers are 5% of the org but 1% of respondents, flag it. Cost: you optimize for the loudest teams. Aim for 70%+ response; below 50% treat the wave as biased and either weight it or stop. Leading questions: detect with cognitive interviews with 5-8 devs; ask them to paraphrase the item. If they can't agree on what it asks, rewrite. Cost: you measure agreement with your framing. Double-barreled items: split them; detect when two sub-questions have different answers. Survey fatigue: detect drop-off after item 8 and shrinking open-text length. Cost: later items are missing not at random. Re-identification: suppress cells under 5; cost is lost granularity, but it protects trust.

Arithmetic: with 400 respondents, the 95% margin of error is about ±5%. A subgroup of 8 is suppressed, so you can't report it. That's the trade: trust over granularity. Each quarterly pulse costs roughly 0.5 FTE-week to analyze and write up; annual deep dive 2-3 FTE-weeks. If you can't fund the follow-up, don't run the survey.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-18

Measure cognitive load for a platform journey.

Answer

The 90-second version. Nothing in telemetry reads cognitive load off directly, so the workable approach is one frozen self-report instrument as the primary signal, behavioural counters a questionnaire cannot fake, and a baseline of the same journey measured in the same week by the same facilitator. Absolute scores mean nothing alone; the comparison is the measurement.

Settle three things before anything runs. Which journey, named with a start and an end: 'invite a teammate into an existing workspace', not 'onboarding'. Which population, and how much platform experience they have, since a first-timer and a daily user carry different loads on identical screens. And what decision the result feeds: a ship/no-ship call on a redesign needs a different study from a backlog prioritisation.

Pick one instrument and freeze it

InstrumentWhat it givesCostWhere it breaks
NASA-TLX (Hart & Staveland, 1988)Six subscales (mental, physical and temporal demand, performance, effort, frustration) each 0-100 in 5-point stepsAbout a minute, immediately after the taskRaw TLX, the unweighted mean of the six, is the practical default; the 15 pairwise weightings rarely change the ranking, and scores are not comparable across studies
Paas mental effort (Paas, 1992)One item, 1 = very very low effort to 9 = very very high10 secondsCoarse; good for per-step trends, weak for a single verdict
Single Ease Question7-point 'overall, how easy was that?' per step10 secondsCorrelates about r = 0.8 with SUS in Sauro & Dumas's dataset, whose cross-task mean sits in the mid-5s, but a 5.5 journey average can hide one step at 3

Pair those with counters from telemetry or observation: task success rate, time on task, errors and recoveries, distinct surfaces visited, context switches, backtracks, help-doc opens, retries, abandonment.

Worked check: the invite-a-teammate journey, 7 steps

40 users who have never invited a teammate, split across the old and new flow. Illustrative figures, not a published benchmark:

MeasureOld flowNew flow
Task success82%95%
Median time on task220 s125 s
Backtracks per session (median)41
Distinct surfaces touched53
Help-doc opens31%9%
Raw TLX50.533.3
SEQ4.85.9

The TLX arithmetic, so you can check it. Old flow subscales: mental 72, physical 12, temporal 55, performance 38, effort 68, frustration 58 sum to 303, and 303 / 6 = 50.5. New flow: 50 + 10 + 38 + 25 + 45 + 32 = 200, and 200 / 6 = 33.3, a 34% drop. Time on task falls 43%, from 220 s to 125 s. If your pilot SD for Raw TLX is 20 points and you care about a 15-point difference, you need roughly 28 people per arm at 80% power: 2 * (1.96 + 0.84)^2 * 20^2 / 15^2 = 28. Recompute from your own pilot SD; 20 is an assumption, not a constant.

Where this goes wrong

A mean hides the shape. Split by experience level and by role. A journey that is easy for 70% and hopeless for 30% rates as 'fine' on average while generating most of the support tickets.

Self-report bends toward what users think you want. Do not announce which variant they are seeing, keep the wording identical across rounds, and treat a rating that moves while behaviour does not as noise.

Proxies are clues, not the construct. Fewer clicks is not lower load if the two screens you merged now require reading a paragraph. Hiding visible choices can simply hide necessary decisions; users guess, and guessing surfaces as errors and support contacts days later, not in the rating.

Low time on task can mean abandonment. Report success rate beside every time figure.

Physiology (pupillometry, EEG theta/alpha, heart-rate variability) needs a lab, 20-30 minutes of setup per participant, and control for caffeine, sleep and screen brightness. It will not survive a quarterly product cycle.

Report response coverage. If 11 of 40 invited users replied and they were all power users, you measured power users.

Screen recordings of anything financial or health-adjacent need explicit consent and a retention limit. Log event names, timings and counts, not screen contents.

When not to do this

If you need to find the broken step rather than size it, 5-8 moderated think-aloud sessions get you there faster. Numbers are for comparing; they are poor at discovering.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-16

Investigate a gap between high satisfaction and poor task success.

Answer

Assume you can join survey responses to telemetry by user ID and timestamp. If you cannot, the gap is not investigable; fix instrumentation before interpreting either number. The gap is usually not a paradox. Satisfaction is an attitude measure (CSAT, SUS, NPS) while task success is a behavioral outcome: completion rate, abandonment, error rate. They diverge through selection, framing, instrumentation, or segment mix. My first move is to align cohorts, validate events, segment, then test one mechanism.

SignalWhat it measuresTypical failureDetection
CSAT / SUS / NPSAffect, loyalty, perceived easeRespondents are power users; question asks about interface, not outcomeCompare respondent vs non-respondent task success; response rate under 10% makes non-response bias a first-order suspect
Task success rateCompletion of a defined goalEvent definition counts page view; client-side lossServer-side order/API logs vs client events; ratio below 0.95 means success is understated
Abandonment / rage clicksBehavioral frictionBot traffic or idle timeoutSession replay; filter bots and idle sessions
p95 latencySpeedBackend fast, client slowRUM vs server metrics

Hypothetical: 10,000 monthly active users, 1,000 survey responses, CSAT 4.6/5. Respondents: 1,000 users, 92% task success. Non-respondents: 9,000 users, 54% success. Overall success = (920 + 4,860) / 10,000 = 57.8%. The high CSAT comes from the 10% who already succeed. The gap is selection, not paradox.

Why it happens: satisfaction is measured after a task or relationship; success is measured during. A user can rate the interface highly because support rescued them, or because the task was easy. If the survey samples post-support users, CSAT is contaminated. If telemetry loses client events, success is understated. If new users are 30% of traffic and fail at 40%, while veterans succeed at 90%, aggregate success drops even if veterans love it.

Options: trust the survey, trust telemetry, or triangulate. Deciding criteria are task criticality and segment. For checkout, behavioral success is primary; for exploratory search, satisfaction may be a leading indicator. If after cohort alignment the gap persists, treat it as real: pleasant but ineffective. Do not average them into one score; that hides the mechanism.

Failure modes. Instrumentation failure: client-side loss from ad blockers or SDK not loaded. Detection: compare client event count to server-side order/API logs; if ratio is below 0.95, success rate is understated. Cost: team chases a phantom UX issue. Definition mismatch: “success” counts page view, not completion. Detection: audit event schema against server-side state. Cost: false confidence. Non-response bias: respondents are 5% of users, power users. Detection: compare respondent vs non-respondent success rates. Cost: CSAT overstates.

Observe failed tasks and interview both respondents and non-respondents. Form one mechanism-specific change: if selection, weight survey by segment or run an intercept for non-respondents; if instrumentation, fix the event pipeline; if UX friction, reduce steps or add progress. Then repeat the same instruments. Pre-register the success criterion: task success up 10 points or SUS up 5 without CSAT dropping. That keeps the investigation honest and tells you which signal was lying.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-22

How do you detect and quantify delivery bottlenecks across CI/CD pipelines, code review latency, and deployment queues?

Answer

What I'd say first

Before measuring anything I'd pin down two things: which lead time I mean, and what data I actually have. I'd define lead time for changes as first commit on the branch to running in production, and I'd assume I can join events by commit SHA: PR opened, first review, approval, merge, build start, build end, deploy start, deploy end. If I can't join those, I don't have a bottleneck analysis, I have a guess.

The method is one sentence: split total lead time into state-bounded transitions, separate queue time from active time in each, and compare p50 to p90 rather than the mean. The stage with the largest absolute queue contribution is the bottleneck. Everything else is noise until that one is fixed.

A worked trace (hypothetical numbers, one change)

Commit pushed Monday 09:00. PR opened 09:10. First review Wednesday 11:10. 50 hours of queue. Author addresses feedback 11:10 to 13:10, two hours active. Approved 13:40, merged 14:00. CI queued 40 seconds, ran 14 minutes, green at 14:15. Then it sits: the release train leaves Thursday 09:00, so 18 hours 45 minutes of deploy queue. Canary and health checks take 8 minutes. In production Thursday 09:08.

Total lead time: 72 hours 8 minutes. Active work: about 2 hours 47 minutes. Flow efficiency under 4%.

Where the time went: review wait 50 hours, 69% of the total. Deploy queue 18h45m, 26%. CI, the thing teams usually optimize first, is 14 minutes, 0.3%. That's the whole argument for doing this measurement: without it you'd spend a quarter on build caching and move lead time by nothing.

Alternatives, and when the cheap one wins

DORA's four keys (deployment frequency, lead time for changes, change failure rate, MTTR) are cheap and comparable across teams, but they tell you you're slow, not where. Use them for a trend line, not for choosing a fix.

Per-stage tracing, what I described, costs real work: an event schema, a join key that survives squash merges and rebases, clock sync across runners, and retention for the raw events. Worth it once you have more than a handful of services.

The middle option is usually right for a first pass: pull 25 recent PRs by hand, timestamp five transitions each in a spreadsheet, and look at the distribution. An afternoon of work, and it gets you most of the answer for one team. If the manual sample shows review wait dominating, you don't need the pipeline yet.

Failure modes and how I'd catch them

Mean hides bimodal. Review p50 of two hours with a p90 of three days is a different problem from a uniform four hours; report p50 and p90 or you'll fix the wrong thing.

Queue counted as active. If your CI "duration" metric includes runner wait, you'll optimize test execution when the real cost is concurrency limits. Split enqueue-to-start from start-to-finish.

Flaky tests. Retries inflate active CI time and mask the queue. Track retry rate alongside duration.

Correlation read as cause. PR size correlates with review latency, but the driver is often reviewer WIP. Check both before mandating smaller PRs.

Batching. If commits-per-deploy is above roughly 5:1, the deploy queue is structural, a release train or a change window, not a one-off, and that's a policy fix rather than an engineering one. In a team deploying 50 times a day the ratio is meaningless; there you look at queue time per deploy instead.

I'd watch the queue-to-active ratio per stage weekly and flag any stage whose p90 queue doubles week over week. That's the alert that tells you the bottleneck moved.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-9

Use the DevEx framework to investigate slow code review.

Answer

Clarify, then take a position

Two assumptions up front: most changes arrive as pull requests, and CI plus PR metadata are available. Also, the goal is to change the process, not to rank reviewers. Define "slow" before measuring it: for example, "80% of changes get a first substantive review within 4 working hours and merge within one working day", computed in working hours so a Friday-evening PR does not inflate the tail. Without a target like that, "slow" is a feeling and you cannot say whether an intervention worked.

Decompose the wait first

The DevEx framework (Noda, Storey, Forsgren, Greiler, 2023) splits developer productivity into feedback loops, cognitive load and flow state. Review sits on all three, and the framework's value here is that it makes you ask which one is broken instead of defaulting to "reviewers are too slow".

Ready-to-merge time is a sum of four segments:

  1. queue: ready-for-review to a reviewer starting
  2. reviewer active reading time
  3. revision rounds times author turnaround
  4. approval to merge, frequently CI or a policy gate rather than review

Segments 1 and 3 fall out of PR timestamps. Segment 2 does not exist in the event log at all, which is exactly why the qualitative half of the framework is needed: timestamps locate the wait, interviews explain it.

Illustrative numbers for an 8-engineer team over 240 changes in one sprint:

segmentp50p90
queue to first review3 h22 h
revision rounds x author turnaround5 h2.5 d
approval to merge (CI)0.3 h6 h
ready to merge9 h3.2 d

A healthy p50 with a p90 roughly 8x larger is the signature of a structural edge, not a uniformly slow team: a directory nobody owns, changes only two people can approve, or a flaky suite. If instead the p50 itself sat at two days with a tight p90, the queue is broken for everyone and the fix is notification design, batch size and ownership routing. The rule to state out loud: a high median means process, a high tail on a good median means an ownership or coupling edge. Fix the edge; do not re-educate the team.

The half timestamps miss

Run a short repeatable survey on the three dimensions plus free text, and hand-read a sample of about 20 reviews, tagging each comment as correctness, design or style. Watch for reviews that are fast because they are shallow: if first-response time improves while comment depth drops and escaped defects rise, you moved the cost downstream rather than removing it. Take per-review timestamps from the CI/PR API, and watch the draft-to-ready window, because authors game readiness.

Failure modes, with detection signals

  • A per-reviewer latency dashboard: detection is first-response p50 improving while p95 worsens, or approvals landing under a minute after open; the cost is rubber-stamping and escaped defects.
  • Optimizing first comment instead of time-to-merge: detection is first-comment time falling while rounds and merge time stay flat.
  • Marking work ready only when it is finished: compare draft-open to ready to merge, not ready to merge alone.
  • Muting all review notifications to cut context switching: detection is p90 first response rising; the cost is a request sitting unseen for a day.
  • Splitting changes in a coupled codebase: detection is rounds per change rising even as diff size falls, with total feature lead time unmoved.

Choosing the intervention, and when not to

Let the dominant segment pick. If the queue dominates and modules are well bounded, CODEOWNERS-driven auto-assignment plus a review rotation is cheap. If revision rounds dominate, shrink the change or do a design pass first. If CI dominates, it is not a review problem.

Skip the intervention when the median already meets the SLO and only p99 is bad (add a triage reviewer for the tail instead), when a regulated path makes review a deliberate control, or when a four-person team is simply under capacity, which is hiring or scope rather than tooling. Then re-run the same definitions after two sprints, holding defect escape rate and reviewer interruption load as guardrails.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-6

Diagnose rising deployment frequency with worsening change fail rate.

Answer

The first two minutes

I would not trust either line yet. Frequency and change failure rate move because production changed or because the measurement did, and "more deploys, worse CFR" is the exact shape you get from redefining what a deployment is. So the first ten minutes go to definitions, not to the code.

Change failure rate is failed deployments divided by total deployments, per service, per window, and both halves of that fraction are editable. Suppose a team moves off a weekly release train onto trunk-based per-service deploys. One week of work that used to be one deployment event becomes sixty: twelve services, five merges each. If incidents went from one a week to two, CFR goes from 1/1 = 100% to 2/60 = 3.3%. That reads as elite, and the absolute failure count doubled. So incidents per week goes on the dashboard next to CFR, never the ratio alone.

The numerator moves the same way. Most CFR queries join incidents to deploys on a time window, so an incident is credited to the deploy that landed shortly before it. Narrow that window from two hours to twenty minutes, or swap the incident tool so the same outage pages under a different service name, and failures quietly stop matching. I read the join before I read any trend. In PostgreSQL 9.4 and later, which is when FILTER arrived:

SELECT date_trunc('week', d.deployed_at) AS wk,
       count(DISTINCT d.deploy_id) AS deploys,
       count(DISTINCT d.deploy_id) FILTER (WHERE i.incident_id IS NOT NULL) AS failed_deploys
FROM deploys d
LEFT JOIN incidents i
  ON i.service = d.service
 AND i.first_seen_at >= d.deployed_at
 AND i.first_seen_at <  d.deployed_at + interval '2 hours'
GROUP BY 1;

The DISTINCT on both halves matters. Plain count(*) counts join rows, so a deploy that matches two incidents lands twice in the denominator and the rate drops for no reason.

Once the definitions hold still, three mechanisms produce a real regression.

Test escape. If per-PR pipelines run only the changed service's unit tests and the cross-service contract suite runs nightly, batch size fell and coverage narrowed at the same time. The change passes CI, ships, and breaks a consumer that only the nightly job would have caught. Tell: failures cluster right after a downstream service also deployed.

Concurrency. At one deploy a week, deploys cannot collide. At sixty a week across twelve services, interleavings that never existed become ordinary - service A's migration lands between service B's read and its write. Tell: the change passes on re-run or in staging.

Feedback removed rather than batches shrunk. If lead time improved by cutting the staging soak or the manual approval, defects that used to die pre-production become incidents. That is a real CFR rise, and the fix is a canary with automatic rollback, not restoring the gate, because the gate just moves failures back to where they are not counted.

DORA's own finding points the other way: smaller batch size goes with lower change failure rate. So a genuine rise after batching down means a capability shrank alongside the batch, not that speed itself is the cause.

Then decide with a sample-size floor, because at low volume the rate is noise. One failure in four deployments is 25%, and a 95% Wilson interval around it runs from roughly 5% to 70%. I do not read a service's CFR below about twenty deployments in the window. Segment by service, by pipeline, and by commits per deploy: if the rate is flat inside every service and only up in aggregate, it is composition, not regression.

Then change one thing. Cap merges per deploy, add a 5% canary with automatic rollback, and watch CFR, failed deployment recovery time and the absolute incident count for two weeks. Reverting to a release train would fix the chart by burying failures under a denominator of one.

What actually changedCFR as measuredHow you catch it
Deploy unit split, one release to per-service100% to 3.3% on the same 2 incidents a weekplot absolute incident count beside the rate
Attribution window 2h to 20mfallsread the join predicate, not the dashboard
Staging soak or manual approval removedrisescompare test escapes to incidents
Contract tests moved to nightlyrisesfailures per deploy against commits per deploy

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-3

Measure time to first production deployment without gaming it.

Answer

Pin four definitions before you measure anything, because each one is a lever someone can pull to move the number without changing the experience.

ElementDefinition to lockThe lever it closes
Eligible newcomerAnyone expected to ship code, counted from offer acceptanceExcluding contractors, transfers or "not really engineers" shrinks the denominator
Start eventFirst day of repo access, not first day of employmentStarting the clock after environment provisioning hides the slowest part
End eventA change the newcomer authored is serving real production traffic"Deployed to staging" or "paired with a senior who pressed the button" is a different event
DenominatorEveryone eligible, whether or not they deployedCounting only completers deletes abandonment

Report median and p90, completion rate, abandonment rate and n, split by team, region and service.

Here is why the pairing matters. Forty newcomers in a quarter. Median time to first deploy is 9 days. Twelve never deploy. Report only the 28 who did and the median is 5 days: a 44% improvement with zero change to anyone's experience. That is the whole game. So the headline is 9 days median, p90 31 days, 70% completion, n=40. The p90 is where the friction lives: the median newcomer is fine, the tail is stuck on access requests and environment setup, and a median-only report hides them.

Now the guardrails, each aimed at one cheat:

  • Production readiness: the change passes the same review and CI gates as anyone else's. Stops "first deploy is a README typo fix."
  • Change ownership: the newcomer can explain the change and can revert it. Stops the senior-drives-the-keyboard deploy.
  • Repeat independently: a second deploy within 14 days with no assistance. Stops a one-off assisted ceremony from counting as onboarding.
  • 30-day change failure rate for newcomer changes. Stops winning by shipping something trivial and unsafe.

Pre-provisioned accounts and demo environments get labelled as exceptions, not folded into the cohort. If a team pre-creates everything, that is a real intervention: measure it as one, don't let it silently improve the baseline.

Numbers alone won't tell you what to fix, so observe the journey and interview the delayed and the abandoning. The abandoners are the ones the metric is blind to; they are also the most informative. Then compare cohorts across a staged onboarding change with a holdout group, and check reliability after the change lands.

What would change my mind: if time drops and readiness, ownership and repeat-deploy rates hold steady, you are measuring onboarding. If time drops while readiness drops, you automated the wrong thing and the number is lying to you.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-21

Choose between DORA, SPACE, and DevEx for a measurement problem.

Answer

Ask what decision the number changes and who can act on it, then pick one framework as the primary instrument. DORA when the decision is about delivery throughput and instability for one application; SPACE when the decision spans dimensions or levels and you fear optimizing one thing; DevEx when the question is why a named developer journey feels slow. They are not alternatives at one layer: DevEx mechanisms sit upstream of DORA outcomes, and SPACE is the framing that keeps the chosen set balanced.

DecisionFrameworkNamed measuresInstrument
Is our change stream fast and safe for this application?DORAdeployment frequency; lead time for changes (commit to running in production); change failure rate; failed deployment recovery timeCI/CD events plus DORA's quick check at dora.dev/quickcheck
Are we optimizing one dimension at another's cost, and at what level?SPACEone measure spanning at least three of Satisfaction and well-being, Performance, Activity, Communication and collaboration, Efficiency and flowtelemetry for Activity and Efficiency (PR review latency, handoffs per change) plus a short survey for Satisfaction
Why does this journey feel slow?DevExfeedback loops (time to first review, CI feedback time); cognitive load (systems touched per change, onboarding to first merged PR); flow statejourney instrumentation plus a short survey

DORA is four delivery-boundary outcomes. It tells you whether the change stream is fast and safe, not why. Use it when one team ships one application and can name the change behind a movement; anything beyond those four comes from a specific annual report, so quote the year. SPACE's level matters as much as its dimensions: an individual-level signal (commits, PRs merged) aggregated into a team score and compared across teams has no owner, because nobody can act on it. DevEx names the three mechanisms that sit upstream, which is why it is the right instrument when DORA is flat and nobody knows why.

Mechanism, or why DORA lags DevEx. A remote build cache cuts push-to-first-CI-signal and moves a DevEx feedback-loop metric the same week; lead time for changes moves only once the shorter loop changes queueing and enough deploys accumulate for the statistic to mean anything. Sample size is the rest of it: one failure in five deploys puts the 95% interval on change failure rate at roughly 0.5% to 72%. That cannot separate a healthy pipeline from a broken one, so always report the deploy count beside the rate.

Worked check (hypothetical figures). Hypothesis: a remote build cache reduces time-to-feedback, and later lead time for changes. Pre-registered pass criteria: p50 push-to-first-CI-signal under 10 minutes for two consecutive weeks, and change failure rate not rising. Baseline: 4 pushes per developer-day with a p50 CI wait of 22 minutes, so 88 minutes waiting per developer-day, 7.3 hours per week; across 8 engineers, about 59 developer-hours per week. After the cache the p50 is 7 minutes: 28 minutes per developer-day, 2.3 hours per week, about 19 team-wide, so roughly 40 developer-hours a week returned, an upper bound that ignores overlapping waits. If change failure rate rises in the same window, the cache hid test flakiness rather than removing it: the flow win is real, the delivery win is not.

Failure modes and how you would see them:

  • Scorecard drift. DORA reported quarterly to leadership, never to the shipping team. Detection: for the last change-failure-rate spike, can anyone name the change that caused it? No named cause means you have a scorecard, not a diagnostic.
  • Level error. Activity metrics (PRs merged, commits) aggregated from individuals into team scores and compared across teams. Detection: median PR size falls while review count and change failure rate rise, so PRs are being split to move a number.
  • Population error. A SPACE or DevEx survey at an 18% response rate read as the eligible population. Detection: compare respondents' team, tenure and role mix to the eligible list; if respondents skew to teams with least to lose, you have a sample of the willing.
  • Noise read as signal. A flow-state score up 0.2 points on a 5-point scale with n=6. Detection: fix the interval before reading the delta; with n=6 it covers most of the scale.

Pick one primary framework, keep the set small enough that each metric names an action owner, and retire whatever no longer changes a decision.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-14

Detect and correct Goodhart effects in DevEx metrics.

Answer

Core, first 90 seconds

Assume the metric is already published and something downstream of it pays: a team OKR, a quarterly review, a promo packet. Goodhart effects are then guaranteed rather than hypothetical. Strathern's 1997 compression of Goodhart's law (when a measure becomes a target it ceases to be a good measure) and Campbell's law describe one mechanism: the number is a proxy for a decision, and once the proxy is cheaper to move than the decision's real input, people move the proxy instead.

Three moves, in order:

  • Detect: never ship an activity metric without an outcome metric beside it. DORA's four keys (deployment frequency, change lead time, change failure rate, failed deployment recovery time, as renamed in the 2023 DORA report) plus SPACE (Forsgren et al., 2021), which forces the Activity axis to sit next to Performance and Satisfaction rather than alone.
  • Diagnose: read distribution shape and denominator, not the average.
  • Correct: strip the reward first, keep the measure as a sensor, then decide repair or retire.

Worked example (hypothetical figures; the shape is the lesson)

12-engineer team, target set at the org's p25.

Baseline: median PR cycle time 31 h, p90 96 h, change failure rate 9%, deploys 5.0/week.

Two quarters after the number landed in team OKRs: median 19 h (target met), p90 94 h, change failure rate 13%, deploys 6.8/week, PRs under 10 changed lines 8% to 22%, reviews posted within 5 minutes of a PR opening 14% to 39%.

The median fell 39% while the tail did not move (96 to 94 h), so the team did not get faster; it split work and approved it faster. The quality pair moved the other way: change failure rate 9% to 13%, failed-deployment recovery time 42 to 65 minutes. Deploy frequency up 36% against change failure rate up 44% is divergence between an activity metric and the outcome it stood in for.

DevEx metricCheapest way to move itCounter-metric that prices the move
PR cycle time (median under 24 h)split into tiny PRs, rubber-stamp reviewp90 cycle time; change failure rate; share of PRs with at least one substantive review comment
Deployment frequency (5/week)no-op or split deployscommits per deploy; change failure rate; share of deploys that reach users
Failed-deployment recovery timeclose the incident on a workaround, or downgrade severityincident reopen rate; share of incidents closed with no code or config change
Test coverage (80%)assertion-free testsmutation score; flaky-test rate

Detection signals, in the order I trust them:

  1. Heaping just under the target. A cycle-time histogram with a spike at 23 h where the target is 24 h and an otherwise smooth tail is a threshold being gamed.
  2. Denominator drift. "PRs per engineer per week" where the denominator absorbed bots or contractors, or a reshuffle moved people mid-quarter.
  3. Pairwise divergence. Activity up, quality flat or down, survey flat or down.
  4. Ratchet. The target was another team's p25 and nobody checked the work was comparable.
  5. Reversion test. Pause the incentive for a cohort; if behaviour reverts within two sprints, the incentive was driving it, not the process.

Repair or retire

Repair when the metric still feeds a decision you cannot make another way and gaming is a small share of the signal: remove individual rewards and quotas, publish a band instead of a point target, freeze the target for two quarters, add the counter-metrics above, and sample 20 PRs or incidents to recalibrate. Keep a confidential channel, because review-based gaming is invisible to telemetry, and if people expect punishment for reporting it you lose the detector, not the behaviour.

Retire as a target, keep as a sensor, when the distortion is broad or the outcome is directly measurable. Change failure rate comes from the pipeline; customer-visible incident minutes come from the incident record; escaped defects come from the tracker. A proxy for something you can measure directly should never be a target. Proxies for what you cannot measure directly, developer satisfaction being the common one, stay survey-only and team-level, never in a ranking. A metric that appears in a leaderboard is already a target; that leaderboard, not the metric, is the thing to delete.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-12

Handle a request to rank individual engineers by productivity.

Answer

What I'd say first. This is a measurement-design problem, not a compliance problem. Before answering I'd ask what decision the ranking drives: a promotion, a bonus pool, a layoff list, or a director's curiosity. That changes the answer. Assume a director wants a monthly ranked list of 40 engineers built from GitHub and Jira data that was collected for developer-experience work, not for evaluation. My answer: no to the ranked list, yes to team-level outcome metrics, yes to a manager-owned individual review for a specific decision.

Why the ranked list fails, with numbers. Take a 40-engineer team over a two-week sprint. Baseline: 160 merged PRs (median 4 per engineer), median PR 120 changed lines, 2 reviewers per PR → 320 review slots, p50 cycle time 1.5 days.

Now rank by merged PR count. One engineer splits a 200-line change into 12 PRs of ~17 lines each:

PRsLines changedReview slots
One 200-line change12002
Same change, split1220024

If 5 of the 40 engineers do this, team PRs go 160 → 215 (+34%) and review slots 320 → 430 (+34%) for zero extra code. Review capacity is fixed, so the queue grows by roughly the same factor: p50 cycle time moves from 1.5 days toward 2, and past that it compounds because PRs sit longer and need rebasing. The ranking shows productivity; the system got slower. That's Goodhart's law, when a measure becomes a target, it stops being a good measure.

Every activity metric degrades the same way.

MetricDegrades intoDetection signal
Merged PR countPR splittingp50 lines/PR falls while PRs/author rises; review queue latency rises
Story pointsEstimate inflationPoints per issue rises with no change in cycle time
Ticket countTrivial ticketsTicket size distribution shifts left
Online or commit timeIdling in the greenRank stops correlating with team outcome; DevEx survey response rate drops

The detection query is boring and cheap: run it before trusting any ranking:

SQL
SELECT author,
       COUNT(*) AS prs,
       AVG(lines_changed) AS avg_lines,
       PERCENTILE_CONT(0.5) WITHIN GROUP (ORDER BY lines_changed) AS p50_lines
FROM pull_requests
WHERE merged_at >= now() - interval '14 days'
GROUP BY author
ORDER BY prs DESC;

Rising prs with falling p50_lines is splitting, not throughput. The second-order failure is rubber-stamping: when the metric rewards PR count, two engineers approving each other's tiny PRs is the cheapest way to hit it. Detect that with review comment density and change failure rate, not with the ranking itself.

Where individual measurement is legitimate. A 90-day probation review, a promotion case, a performance improvement plan. Criteria: the decision is about one person, time-bounded, manager-owned, multi-source, and not compared across teams. Use a rubric: delivered scope against agreed goals, peer feedback, incident contributions, mentoring evidence, not activity counts. For team health use DORA (deployment frequency, lead time for changes, change failure rate, time to restore) and SPACE (satisfaction, performance, activity, communication, efficiency); both are team-level by construction.

If pressure continues. Document purpose limitation: DevEx data improves the system, it does not evaluate people. Escalate to privacy, HR and governance. In the EU this is a GDPR purpose-limitation question; in the US, using collaboration data to chill collective activity can raise NLRA concerns. Say that plainly rather than softening it.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-25

Review a proposal for one company-wide developer productivity index.

Answer

My verdict, up front: I'd recommend against a single company-wide productivity index. I'd say that in the first minute, then spend the rest of the interview showing why and what I'd build instead.

Assumptions I'd state before arguing. The index is meant to inform investment decisions and may leak into performance conversations. The company has more than one kind of team: product, platform, data. And there's no shared definition of "productivity" yet. If the index is a one-off research question with no personnel use, my answer softens considerably.

The core problem is units. SPACE (Forsgren, Storey, Maddila, Zimmermann, Houck, Butler; ACM Queue, 2021) names five dimensions: satisfaction and well-being, performance, activity, communication and collaboration, efficiency and flow, and argues explicitly that no single metric captures productivity. DORA's four keys are service-scoped and measured in deploys per day, hours, percent, and hours. To add a survey score to a deploy count you need weights, and the weights, not the teams, decide the ranking.

Here's the arithmetic, on a hypothetical 0–10 scale:

dimensionTeam ATeam B
activity (PRs merged/dev/week)94
delivery (deploy frequency)85
quality (inverse change failure rate)39
experience (survey)58

Weights 0.35 / 0.25 / 0.25 / 0.15 give A = 6.65 and B = 6.10. Move ten points of weight from activity to quality: 0.25 / 0.25 / 0.35 / 0.15, and A = 6.05, B = 6.60. The ranking flips on a weight change nobody outside the room will ever see. That's the whole argument against the index in two lines.

Failure modes I'd name. Goodhart: tie the index to bonus and PR counts inflate by splitting pull requests, not by shipping more. Subgroup masking: a 40-person org where five people carry the on-call pager averages to a number that describes nobody. Ranking: a single number invites a leaderboard, and a leaderboard changes behaviour before it measures it.

What I'd build instead is a small decision-specific scorecard. For "should we invest in CI?": lead time for changes and change failure rate per service, plus build queue time. For "is the platform team helping?": adoption of the paved road and time-to-first-deploy for a new service. For "are people OK?": a stable DevEx survey reported as a distribution, not a mean. Counter-metrics alongside: error-budget burn, cost per service, incident count. As a reference point, the 2019 Accelerate State of DevOps report put elite performers at on-demand deploys, lead time under one hour, change failure rate 0–15%, and restore under an hour: useful as a band, not a target to rank teams against.

Governance: publish the purpose, prohibit individual use, report distributions and n.

What would change my mind: if the index is a communication device only. One trend line for the board, never a ranking, always shown with the underlying dimensions and their spread, then a composite is defensible. I'd still want the weights published and fixed in advance.

Curated: · Written: · Reviewed:

Difficulty: Medium
Q&A-11

Build an executive DevEx scorecard without creating perverse incentives.

Answer

Before I design anything I'd pin down three things: who reads this (CTO and VP Eng, quarterly), what decisions it drives (where the next ten platform engineers go, whether a migration keeps its funding), and what a perverse incentive looks like here. A number that improves while the thing it stands for gets worse.

Assumption I'd state out loud: roughly 2,000 engineers, ~300 teams, mixed platform and product, reviewed quarterly. If it's reviewed weekly, most of the movement is noise and you'll chase it.

The design has two layers. The top layer is outcomes the exec actually decides on: three or four, no more. The bottom layer is diagnostics that explain a movement in the top layer. You never rank teams on the top layer.

For the measures I'd anchor on SPACE (Forsgren et al., 2021) for the human side and DORA for delivery. Concretely:

  • Developer sentiment: one quarterly survey, five-point scale, report percent favorable with the question text attached. Target is a band, say 70–85% favorable, not a point.
  • Flow: PR open-to-merge p50 and p90, plus review wait time. p90 is where the pain lives.
  • Platform reliability: platform API availability and p99 latency, plus time-to-first-successful-deploy for a new service.
  • Delivery: the four DORA keys. Deployment frequency, lead time for changes, change failure rate, failed deployment recovery time. The 2023 Accelerate report added reliability as a fifth; track it if the data already exists.
  • Cost: cloud spend per active developer, and platform cost per deploy.

Every panel carries a definition, a target band, a trend, the sample size, and a counter-metric.

Now the perverse incentive, because that's the actual question. Say the scorecard shows deployment frequency per team in a ranked table. Team A moves from 4 deploys/week to 20. Looks like a win. What happened: they split one release into five deploys. Detection: median change size (files touched per deploy) drops by half, and the share of deploys touching production config falls. Change failure rate stays flat because the deploys are trivial. Cost: the exec reallocates budget toward a team that didn't improve, and the real bottleneck, review latency at p90, stays invisible. That's Goodhart's law with a receipt.

The fix isn't to hide the number. It's to pair it: deployment frequency always shown next to change size and change failure rate, and never as a league table. Rank nothing. Show distributions and trends.

Failure modes I'd watch for:

  • Composite score: someone averages the five into a 0–100. Then teams optimize the average. Don't ship one.
  • Individual data: per-engineer PR counts. Devs open trivial PRs. Detect by median PR size falling while count rises.
  • Small cohorts: a team of four shows a wild swing. Suppress any cohort under 8 respondents or 20 events.
  • Stale definitions: a change to how lead time is computed looks like a 30% improvement. Annotate every definition change on the chart.

Correlation vs impact: annotate releases, incidents and definition changes on the timeline, and say explicitly when you can't attribute. A migration landing the same week sentiment rises is a hypothesis, not a result.

Finally, each signal gets an owner and a next action, and any panel that hasn't driven a decision in two quarters gets retired. That discipline is what keeps the scorecard from becoming a dashboard nobody reads.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-17

Measure platform support effectiveness.

Answer

Support effectiveness is not ticket throughput. It is whether the platform stops generating the same blocker, and whether the people who hit it get unblocked. I would measure it at three layers: the demand the product creates, how well we resolve what arrives, and what we removed so it stops arriving.

Assumptions: B2B SaaS, roughly 50k MAU, tickets in Zendesk, product events in a warehouse (BigQuery or Snowflake) joined on account ID, 20 agents across two tiers, weekly release cadence. If any of that is wrong the thresholds move, not the shape of the measurement.

Layer 1: demand. The metric is tickets per successful task, not ticket count. Tag each ticket with the journey it blocked (signup, SSO login, API auth, billing) and divide by successful completions of that journey in the same window. Raw volume tracks traffic; the ratio does not. If signups double and tickets double, the ratio is flat and the product is fine. If signups are flat and the ratio climbs, you shipped a regression.

Layer 2: resolution. Report distributions, not means. Resolution time is right-skewed: a handful of multi-day escalations drag the mean well above what most users experience, so a mean of 3 days can hide a p50 of 6 hours and a p90 of 11 days. p50 is the typical experience, p90 is the tail that drives churn and escalations, and the gap between them tells you whether you have a process problem or a few genuinely hard cases. Pair both with reopen and escalation rates, which catch tickets closed before they were fixed.

Layer 3: systemic. Classify recurring causes and route each to a product fix, a documentation change, or an incident action. Publish which causes were removed and the demand-rate change that followed.

metricdefinitiontarget (hypothetical, tune to your baseline)
First useful response p50time to first reply that answers or correctly routes≤ 4 business hours
First useful response p90same, 90th percentile≤ 24 hours
Resolution p50ticket created to resolved≤ 2 business days
Resolution p90same, 90th percentile≤ 7 business days
Reopen ratereopened within 14 days of resolution< 5%
Escalation to engineeringshare of tickets escalated< 8%
Self-service successtask completed with no ticket within 7 days of a help-centre session≥ 30%
Demand ratetickets per 100 successful journey completionsflat or falling release over release

Worked arithmetic, password reset, week over week. Week 1: 10,000 attempts, 9,500 successes, 380 tickets → 380 / 9,500 = 4.0 tickets per 100 successes. Week 2: 12,000 attempts, 11,400 successes, 480 tickets → 480 / 11,400 = 4.2 per 100. Volume rose 26%, the rate rose 5%. Traffic does not explain it; the product got slightly worse. That 5% is the number I would take into the release review.

Quality sampling: 30 resolved tickets per agent per month, stratified by severity and journey, scored by a second reviewer, with Cohen's kappa reported. Below 0.6 the rubric is the problem, not the agents.

Failure modes. Making close time a target gets tickets closed and reopened: detect it in reopen rate and in CSAT on reopened tickets. Reading lower volume as improvement hides a usage drop, so pair volume with task success, abandonment and active use. Counting help-centre page views as self-service success counts curiosity, not resolution; require a confirmed outcome. Sampling only easy tickets biases the score, so stratify.

Trade-offs. Demand-per-task needs reliable journey tagging; at 60% coverage, say so and treat the ratio as directional. Below roughly 30 tickets per cohort per week, distributions are noisy: aggregate weekly and widen the interval rather than reading a p90 off 12 tickets. Protect message content and identity: aggregate rather than quote, and sample for quality under a defined retention window.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-19

Connect platform reliability to developer experience.

Answer

The 90-second version. Platform reliability only reaches a developer as one thing: can I finish my work today. So I don't start from the platform's services: I start from the four or five journeys a developer actually walks, and I put the SLI at the end of the journey, not at the edge of each service.

Assume an internal platform, a few hundred to a couple thousand engineers, multi-tenant, Kubernetes plus Terraform plus a CI system. The journeys that matter: scaffold a new service, first deploy to prod, day-2 deploy, roll back during an incident, get credentials. One SLI per journey, each with a denominator and a window.

Take provisioning. The SLI is: fraction of backstage create requests that reach a running dev environment within 15 minutes, over 28 days. Not "the provisioning API returned 200." The API can be 100% available while the developer waits four hours behind a single Terraform workspace lock. That lock is the reliability problem, and only the journey SLI sees it.

JourneySLICurrent p95Target
Scaffold servicecreate → running dev env4 h15 min
First prod deploymerge → healthy prod90 min20 min
Day-2 deploymerge → healthy prod12 min10 min
Rollbackdeclare → previous version serving25 min5 min

Why it works. A journey SLI is a composition of every hop the developer crosses, so it fails when the composition fails, which is exactly when the developer is blocked. Component SLOs can all be green while the path is red. The error budget then has a meaning a developer recognizes: 99.9% over 30 days is 43 minutes. If the deploy journey burns it, platform feature work stops and the pipeline gets fixed.

Trade-offs and alternatives. Per-service SLOs are easier to own and attribute, each team owns its own number, but they compose badly: five services at 99.9% give you roughly 99.5% end-to-end, and nobody owns the missing 0.4%. Journey SLIs match experience but are hard to attribute when they break. What I'd actually run is the hybrid: the journey SLI is the headline and the error budget; component SLOs are the diagnostic that tells you which hop to fix. When not to do this: a platform with fewer than ~20 engineers and one or two journeys. The instrumentation cost isn't worth it: a per-service SLO plus a weekly manual walkthrough is enough.

Failure modes, and how you catch them.

  • Gaming. A deploy counted successful when it's a no-op or gets rolled back inside the window. Detect by requiring the new version to serve traffic for N minutes before the SLI counts it.
  • Invisible abandonment. The developer gives up and runs kubectl by hand. Detect with funnel drop-off and a started-but-never-finished counter per journey.
  • Stale status. Measure freshness as its own SLI: time from state change to status page update. If it's 10 minutes, developers stop trusting it and ask in Slack: that wait is the real cost.
  • One tenant burns the budget. Segment by team and provider, then check whether the p95 is one team or everyone.

The arithmetic. If the deploy journey sits at 99.5% over 28 days, that's 0.005 × 40,320 min ≈ 202 minutes: about 3.4 hours a month of failed deploys. For calibration, DORA's 2023 report puts elite performers at a 5% change failure rate and under an hour to recover a failed deployment; if your rollback p95 is 25 minutes, you're inside that band and the budget should reflect it.

Instrument the journey with OpenTelemetry spans that cross CI, the deploy controller and the health check, so a trace shows the whole path. Publish the journey SLIs next to the status page, and prioritize reliability work by how many developer-hours the journey costs per month, not by which service has the reddest dashboard.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-4

Evaluate whether a new golden path improved developer experience.

Answer

You can't prove a golden path improved DX: you can build a causal case that survives follow-ups. Say that first, then give the design.

Define the target tasks before anything else: "create a new service and get it to production," "add a database migration," "roll back a bad deploy." Pick one primary metric per task. I'd anchor on the DevEx framework (Noda, Storey, Forsgren, Greiler, 2023) (feedback loops, cognitive load, flow state) and use SPACE (Forsgren et al., 2021) for satisfaction and activity. DORA's four keys are the downstream outcome, not the DX measure itself; don't let them stand in for it.

Then the design: staggered cohort rollout. Enable the path for teams in waves, keep a not-yet-enabled comparison group, and pre-register the metrics before you look at them.

Why cohort release isolates the effect

Enable everyone at once and you can't separate the path from the reorg, the CI migration, or the hiring freeze that landed the same quarter. A staggered rollout gives you a contemporaneous control: same org, same macro conditions, different exposure. Compare adopters against not-yet-enabled teams, not before against after: before/after is contaminated by seasonality and by the announcement itself, which changes behavior on its own.

What to instrument, with thresholds

Entry, branch, failure, escape, abandonment, but each needs a number or it's decoration. Illustrative targets:

SignalDefinitionIllustrative threshold
Time to first green CIclone → first passing pipelinep75 < 15 min
Time to first prod deployservice created → first prod deployp75 < 1 day
Escape ratetasks that leave the path for a manual route< 10%
Abandonmentstarted the path, never finished< 15%
Repeat voluntary useteams using it again 30 days later, unprompted> 60%

Counter-metrics and how the failures actually show up

Adoption alone is a vanity metric. The failure I've seen most: the path becomes a shadow mandate. Teams use it because the platform team's review blocks the alternative. Detection: adoption is high but 30-day repeat voluntary use is flat and escape rate climbs. That's compliance, not DX.

Second: the path's default template ships without a required migration step, so change failure rate rises. Say 15% → 22% on path-created services. Detection: split DORA's change failure rate by path vs. non-path; if the gap opens after enablement, the path is the cause.

Third: selection bias. Early adopters are the healthy teams. Detection: compare adopters' and non-adopters' baseline deploy frequency before rollout. If adopters were already at 2x, the effect is confounded and you say so rather than reporting the delta as the path's win.

Trade-offs between designs

DesignStrengthCostUse when
Cohort rolloutCausalSlow, leaks to peersDeciding whether to mandate
Survey + funnel telemetryFast, cheapPerception, novelty effectDeciding what to fix next
DORA deltasObjectiveLags a quarter, noisy per teamReporting to leadership

Deciding criterion: if the question is "mandate or not," you need the cohort. If it's "what to fix next sprint," a survey plus funnel telemetry is enough, and the cohort is overkill.

Report the effect with uncertainty and the selection limits you couldn't remove. Then revise the path from the friction you observed: escape rate and the abandonment step are the roadmap.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-15

Evaluate a platform change with a phased rollout.

Answer

What I'd say first

Before designing anything, pin the decision: is this "roll the new deploy pipeline to all 60 teams" or "kill it"? That fixes the metric and the unit. Assume the unit is the team, the primary outcome is deploys per team per week, counter-metrics are change-failure rate and p95 pipeline duration, and the window is 4 weeks pre / 8 weeks post. If the change can be split at the request level (a gateway flag, a runtime toggle) I'd run a proper A/B and skip the rollout design entirely. Phased rollout is what you use when you can't split the unit (schema migration, runtime upgrade) or when blast radius forces staging.

Then pre-register the analysis before wave 1 ships: primary outcome, counter-metrics, eligible teams, window, and the minimum effect worth acting on. That last number drives everything.

Design

Randomize the wave order if you can: it's cheap and it turns the rollout into a randomized staggered experiment. If you can't (teams self-select, or ops dictates order), you have a staggered-adoption observational design: use the not-yet-treated teams as controls and estimate with an event study.

Do not use two-way fixed effects on staggered timing. With heterogeneous effects across waves, TWFE puts negative weights on some treated cohorts (Goodman-Bacon 2021) and can flip the sign. Use Callaway–Sant'Anna or Sun–Abraham, which estimate cohort-by-time effects against not-yet-treated controls.

Artefacts

Power, illustrative: 60 teams, deploys/week mean 12, SD 5. A two-arm comparison at 80% power, α=0.05 detects 2.8 × 5 × sqrt(2/60) ≈ 2.6 deploys/week: 21% of the mean. If the effect you care about is 10% (1.2 deploys), you need ~270 teams or a longer pre-period. So decide now whether a 20% throughput change is the bar; if not, the rollout can't answer the question and you should say so before shipping.

Event study, what to look for:

periodexpected if cleanwhat a violation looks like
t-4..t-1flat, CI spanning 0pre-trend → anticipation or selection into waves
t0step, may overshootnovelty spike decaying by t+2
t+1..t+8stable new leveldrift → spillover or a concurrent change

Failure modes and how I'd catch them

  • Novelty/Hawthorne: teams deploy more in week 1 because it's new. Detect: event-study spike at t0 that decays. Mitigate: drop the first week or model it.
  • Concurrent change: a CI runner upgrade lands mid-window on the treated cohort only. Detect: keep a change log and overlay it on cohort timing; a step in controls at the same date means it isn't your change.
  • Anticipation: wave-3 teams start prepping early. Detect: pre-trend in the event study.
  • Spillover: treated teams' shared infra shifts control outcomes. Detect: control outcomes moving at treatment time.
  • Selection: waves ordered by team size. Detect: covariate balance table across waves.

Stopping and reporting

Safety gates and efficacy peeks conflict. Stopping early on a safety signal is fine, but if you also peek at the primary metric daily you inflate false positives. Use group-sequential boundaries (O'Brien–Fleming) or always-valid confidence sequences if you must look continuously. Report the effect with uncertainty and cohort effects, note non-adoption (teams that got the tool and didn't use it), and keep rollback. Interviews test the mechanism, why throughput moved, but they don't substitute for the estimate. The one thing not to do is relabel an observational rollout as a randomized experiment.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-24

How do you attribute a change in a DevEx metric to a specific intervention rather than to concurrent organisational changes?

Answer

Telemetry alone cannot attribute a metric movement to an intervention: it shows what happened, not what would have happened. So the attribution work starts before you ship: pick one primary metric with a pre-registered direction and window, keep a holdout group that does not get the change, and keep an event timeline of everything else that moved (reorgs, hiring, incidents, other platform releases). Then estimate the effect with difference-in-differences (DiD) against the holdout, and use an interrupted time series (ITS) to separate a level shift from a pre-existing trend and weekly seasonality.

DiD against a holdout

DiD subtracts the control group's change from the treated group's change, removing shocks common to both.

Worked example (hypothetical figures). A CI cache change goes to 40 services; 60 services are held out. Metric: p75 lead time for changes.

grouppre (8 wk)post (8 wk)change
treated (40)14.2 h9.8 h-4.4 h
holdout (60)14.0 h13.6 h-0.4 h

DiD estimate = -4.4 - (-0.4) = -4.0 h. The 0.4 h drop in the holdout is a concurrent runner upgrade that hit everyone; DiD removes it. If the runner upgrade had been larger, the naive pre/post number would have credited the cache change with work it did not do.

The assumption is parallel trends: absent the intervention, treated and holdout would have moved together. Test it, don't assert it. Fit treated x time in the pre-period; if the treated group was already improving 0.3 h/week, the -4.0 h is confounded. Report the pre-trend coefficient and its CI alongside the estimate.

ITS for trend and seasonality

Segmented regression on the treated series:

Y_t = b0 + b1T + b2D_t + b3*(T - T0)*D_t + e

D_t = 1 after the intervention. b2 is the level change, b3 the slope change. Add day-of-week dummies: CI and review queues spike Monday, so a pre/post window that starts Monday and ends Friday manufactures an improvement. Compare same weekday, or include the dummies.

Power before you run it

With 40 treated services and sigma of about 3 h, the minimum detectable effect at 80% power is roughly 22.83/sqrt(40) = 2.7 h. A 1 h gain is invisible; you would report noise. Compute the MDE first and widen the holdout or lengthen the window if it is too large.

Failure modes and how to catch them

  • Spillover: treated and holdout share runners or reviewers, so the holdout is contaminated and the effect is underestimated. Detect by checking whether the holdout's post-period moves in the same direction as the treated.
  • Staggered adoption with two-way fixed effects: already-treated units act as controls, biasing the estimate (Goodman-Bacon 2021). Use a never-treated holdout or an estimator built for staggered timing.
  • Metric drift: if the pipeline's step boundaries changed mid-window, the metric moved for reasons unrelated to the intervention. Version the metric contract.
  • Novelty: early gains decay. Extend the post window past two weeks and re-estimate.

Placebo intervention dates in the pre-period and CUSUM on residuals catch breaks you did not model.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-10

Decide whether platform adoption demonstrates ROI.

Answer

The 90-second answer

Adoption on its own doesn't demonstrate ROI: it's a leading indicator. ROI is (outcome value attributable to the platform − total cost of ownership) ÷ TCO, and adoption only earns a place in that numerator when it is voluntary repeat use on the critical path, tied to a measured outcome delta, against a credible counterfactual. Mandated use is compliance, not evidence: it tells you people can be made to click, not that the platform is worth its cost.

So I'd answer in two steps. First, decompose adoption into a funnel that separates the signals. Second, price the outcome and the cost, then test the link between them.

The funnel, with thresholds

stagemetricbar I'd set
eligibleservices with a pipeline that could use the platform400 of 1,200 services
activeran a platform-mediated deploy in the last 7 days—
task successprovisioning requests completing with no human intervention≥95%
voluntary repeatused in week N and again in week N+4, no mandatethe number that matters

Voluntary repeat is the signal because those users had an alternative and chose this after experiencing it. Below 95% task success the platform team is absorbing failures as tickets, and the "saving" is displaced work.

Pricing it

Hypothetical: the platform costs $1.5M/yr. 8 engineers at $150k loaded plus $300k infra. Value: 400 services × 6 deploys/month × 40 min saved = 96,000 min/month ≈ 19,200 hours/yr; at $100/hr that's $1.92M. Net +$420k. Now change one input: if the real saving is 15 min, not 40, value is $720k and the platform is −$780k. Adoption can be 100% and the ROI negative. Adoption is an input to the value model, not the output.

Testing the link

Don't trust the chain; test it. A staggered rollout by org leaves a control group still on the old path. Match cohorts on service count, deploy frequency and language. Record concurrent changes (a reorg, a cloud migration, a hiring freeze) because any of them moves deploy time independently of the platform.

Failure modes and how you catch them

  • Mandated use. Adoption reads 100%, but resources created outside the platform (console/CLI) climb and tag coverage drops 90% → 60%. The platform team becomes a ticket queue.
  • Consumption mistaken for value. API calls up 10x because a retry loop is misconfigured. Catch it with calls per successful task, not raw calls.
  • Concurrent change. A company-wide CI migration lands the same quarter and deploy time falls everywhere. Catch it in the control cohort's trend.
  • Funnel survivorship. "Trial" measured as a single login. Require a completed task.

Decision rule

Adoption demonstrates ROI only when voluntary repeat use is high, task success clears the bar, the outcome delta survives a matched comparison, and the net is positive after TCO, migration cost and displaced work. Otherwise you're reporting consumption.

Curated: · Written: · Reviewed:

Difficulty: Hard
Q&A-7

How do you measure the net productivity impact of generative AI coding assistants across the software development lifecycle beyond raw acceptance rate?

Answer

The 90-second answer. Acceptance rate is a usage metric, not a value metric. It is sampled at the instant the suggestion appears (before review, before merge, before production) so it cannot see whether the code survived, what it cost a reviewer, or what it did to change failure rate. Net impact is upstream authoring time saved minus the downstream cost the same change imposes on reviewers, rework and operations, measured on the same cohort over the same window. I'd instrument three things: kept-code rate at 14 days, reviewer-minutes per merged change, and change failure rate, and run a staggered rollout so there is a counterfactual. Without a holdout I'd rather report "no measurable net effect" than a number I can't defend.

Where the acceptance number leaks. Three points, in order of how often they bite. Review: generated diffs are longer and carry less context, so a reviewer pays per line what the author saved per task. Rework: accepted lines get rewritten days later, and the rewrite is invisible to the acceptance counter. Operations: a change that passes review can still raise failed-deployment recovery time if it added untested branches on a critical path.

Worked arithmetic (hypothetical, 40-engineer org, 100 merged PRs). Baseline median PR is 180 added lines, ~7 h of authoring, 40 min of review. With the assistant: 250 added lines, ~5.5 h authoring, 65 min review.

ItemPer 100 PRs
Authoring saved (100 × 1.5 h)+150 h
Extra review (100 × 25 min)−42 h
Rework: 14-day churn 10% → 20% of 25,000 added lines = 2,500 lines rewritten at ~40 lines/h−62 h
Incidents: CFR 4.0% → 5.5% = 1.5 extra failed deployments × 4 h recovery−6 h
Net+40 h

Roughly a quarter of the gross saving survives, and it lands on reviewers and on-call rather than on the authors who banked the 150 h. That asymmetry is why org-level "we got faster" and team-level "review is drowning" are both true at once.

Getting kept-code rate honestly. Line numbers shift, so join on blame attribution, not on stored line numbers. A nightly job walks git blame over the default branch and writes one row per surviving line:

SQL
-- PostgreSQL 16. line_blame is refreshed nightly from `git blame` on the default branch.
SELECT
  date_trunc('week', b.introduced_at) AS week,
  count(*) FILTER (WHERE b.ai_assisted AND b.survived_days >= 14)::numeric
    / nullif(count(*) FILTER (WHERE b.ai_assisted), 0) AS ai_kept_14d,
  count(*) FILTER (WHERE NOT b.ai_assisted AND b.survived_days >= 14)::numeric
    / nullif(count(*) FILTER (WHERE NOT b.ai_assisted), 0) AS human_kept_14d
FROM line_blame b
GROUP BY 1
ORDER BY 1;

The comparison that matters is the gap between the two columns, not either level. A 30% acceptance rate with an AI kept-rate within two points of the human baseline means suggestions are being accepted and then rewritten.

Signals worth a dashboard.

SignalDefinitionReading that should worry you
Kept-code rateShare of AI-assisted added lines still present at 14 daysTracks the human baseline while acceptance stays high
Review loadReviewer-minutes per merged PR, and per 100 added linesMinutes per PR up, minutes per 100 lines flat: that's size inflation, not worse code
Diff coverageCI coverage of changed linesFalls while PR volume rises; tests aren't keeping pace
Change failure rateFailed deployments / deployments, segmented by service tierRise concentrated in tier-1 services
Lead time for changesCommit → production, p50 and p75p50 improves, p75 flat or worse: the queue moved into review

DORA's four keys (deployment frequency, lead time for changes, change failure rate, failed deployment recovery time) are the right frame; note that the fourth was renamed from MTTR, and that all four are only as good as your deployment telemetry. For the human side, DevEx/SPACE surveys cover satisfaction and well-being, performance, activity, communication and collaboration, and efficiency and flow, but self-reported flow is subject to recall and Hawthorne effects, so use it to explain a telemetry change, never as the primary metric.

Design. Staggered rollout, not before-and-after. Split 20–30 teams matched on primary language and service tier into enabled and holdout groups for 90 days, then compare difference-in-differences on lead time, review duration, churn and CFR. The confound that kills most of these studies is voluntary adoption: your fastest engineers opt in first, so the enabled cohort looks better before the tool does anything. Check parallel trends in the pre-period; if they don't hold, the result is uninterpretable.

When not to bother. If deployment events aren't reliably recorded, CFR and lead time are noise and no amount of cohort design rescues them: fix the pipeline telemetry first. And with fewer than roughly 50 merges a week, a 90-day window has no power to distinguish a 1.5-point CFR shift from variance; report the confidence interval or don't report the number.

Curated: · Written: · Reviewed:

Difficulty: Hard