The Engagement · Client assessment
Field-service response reporting: assessment
Decision: keep Dispatch and Contract Management as two separate, governed metrics, and correct the legacy report's duplicate counting.
A fictional field-service company with invented data. The fault was planted so the right answer is known. Built and run on DuckDB and dbt on 17 November 2026; running the same exercise on a Snowflake account is the next step. Change approval inside the scenario is simulated.
The business question
Three reports display “response compliance.” Should they agree, and which disagreement should be fixed? Comparing the percentages gives the wrong answer. The first task is to establish which work orders each report includes and what response target each one applies.
What each report means
| Report | Question it answers | Who is counted | Deadline | Result |
|---|---|---|---|---|
| Dispatch | How fast do we respond? | Every eligible work order | A fixed 60 minutes | 6 of 10 |
| Contract Management | Are we keeping our promises? | Eligible work orders with a contract and a service-level obligation in force when the order was created | That obligation's own target | 4 of 7 |
| Legacy Dispatch | Meant to be Dispatch's question | Meant to be every eligible work order | A fixed 60 minutes | 7 of 11 |
Rules shared by all three
- A work order is eligible if it was created at or before the snapshot and is not cancelled.
- A valid response is a response event with a timestamp, belonging to the work order, between its creation and the snapshot. Notes are not responses.
- The earliest valid response is the one that counts. Deadlines are inclusive.
- No valid response means the order fails. An empty population gives no result, not zero.
Findings
| Finding | Evidence | Decision |
|---|---|---|
| Dispatch and Contract Management differ legitimately | Different populations and different deadlines: 6 of 10 and 4 of 7. Work order W02 passes one and fails the other; W03 does the reverse. | Keep distinct names, scope and definitions. Do not force the totals to agree. |
| Legacy Dispatch breaks its own definition | W01 has two valid responses. The legacy query joins every response, so the order is counted twice: 7 of 11. | Count each work order once, at its first valid response. |
| The correction works on the observed data | Legacy becomes 6 of 10 and matches Dispatch on the same work orders with the same pass and fail values. The input and both healthy reports are unchanged. | Accept the reporting correction. |
| Financial impact cannot be stated | Two work-order costs are missing, and there is no penalty schedule or cost model. | Record as insufficient evidence. Get a financial baseline before making a return claim. |
This corrects reporting. It is not a claim that field service got faster: the service history did not change.
How the conclusion was tested
The input was preserved. The reports were built twice, before and after the change, as separate dbt runs. The resulting rows were compared with an independent calculation of the same rules, written separately in Python, order by order. A separate run with different input confirmed the checks respond to the data and are not repeating fixed totals. See verification and rollback.
What the recipient receives
- A clear definition of each metric and the reason legitimate reports differ.
- The exact change, the kept baseline, the before and after results, and the verification evidence.
- A runnable rehearsal, a read-only verifier and an isolated rollback.
- An operator guide, a data dictionary, a lineage record and a statement of next steps.