Skip to content

Build a Field-Service Operations Platform

Davor Minchorov•Advanced•18 to 27 weekends•November 26, 2026

A trades company with 60 technicians has outgrown its job app: offline edits overwrite the office's changes, two jobs are promised the same part, and a cancelled job still gets invoiced. You will build the replacement, from the job request through quote, schedule, offline phones, stock and invoice, and prove it survives a full simulated working day with failures injected.

The brief

The client

I run operations at a plumbing and electrical company with 60 technicians, 3 admins and 2 dispatchers, about 300 jobs a day, and every technician carries a phone with our job app. The app keeps one copy of each job, and whichever device or desk saved last wins. A dispatcher cancelled a job at 10:05 after the landlord rang to say it was sorted, but the technician was in a basement with no signal, finished the work at 10:20 and synced at 18:00. The job flipped back to completed, an invoice went out and the tenant disputed it, and we could not tell which version was true. The same week two jobs were each promised the last 22 mm isolation valve, because the system keeps one stock number for the whole company and has no idea which van holds what. I need the office and the van to be able to disagree for hours, and the disagreement to end up visible and settled by a rule instead of by whoever synced last.

The problem

The current app keeps one copy of each job, and the dispatcher, the technician's phone and the accounts screen all overwrite it. Phones work offline and upload their edits in a batch when signal returns, so an edit made at 10:20 can replace a decision made in the office at 10:05 and nobody is told. Parts are tracked as one stock number per warehouse, so a van's stock does not exist in the system and two jobs can be promised the same part.

The schedule is a list of times with no check that a technician is free, qualified and able to travel between visits, so a sick call turns into a morning of phone calls. Invoices come from a button on the accounts screen and not from the job completing, so some completed jobs are never billed and some cancelled ones are. Customers hear nothing until the technician knocks.

The client's name and figures are invented for this brief; the rules and the failures are ones that real businesses of this kind work with.

The spec

Requirements

  • Let a customer, or a call-taker on the customer's behalf, submit a job request with address, trade, description and photo references. Put an emergency ahead of routine work, and treat two reports of the same job at the same site within 30 minutes as one request.
  • Price a quote from a price book, let the customer accept it once, and expire it after 30 days.
  • Book each job to a technician who has the skill for the trade, works that day and is free, never in overlapping slots. Give the customer a 2 hour arrival window, and send one message per reshuffle that states the final window.
  • Show each technician today's jobs on a phone with no signal, and take the edits made offline when signal returns, including about 6,000 changes from 60 phones within 5 minutes at 18:00. Settle each clash with the office's edits by a rule per field, with no edit silently lost.
  • Track stock in every warehouse and van, promise a part to only one job, and record the parts a technician used offline.
  • When a customer accepts a quote, end with the parts set aside, the work order created and a visit booked, or with whatever should be undone undone, whichever step fails.
  • Let a technician propose a variation on site, bill it only after the customer approves it, and keep the original quote intact.
  • Invoice a completed job once, record each payment once however often the provider sends it, credit or refund a disputed invoice once, and charge a flat fee for a late cancellation or a no-access visit.
  • Refuse to complete an electrical inspection without its certificate, and report the certificates and deadlines that are missing or overdue.
  • Keep the rest of the product working when one capability is stopped or replaced with a new version, and when the payment provider or the SMS provider fails.

Deliverables

  • Your repository starts the whole product with one command, plus a simulator that plays the customers, the dispatchers, the technicians' phones, the payment provider's notifications, the SMS provider and the clock.
  • A README that takes a reviewer from a fresh clone to the 10:05 cancellation and the 10:20 completion showing as a decision waiting in the office, with no work invoice issued, in 20 minutes, and lists the command that runs each test the brief asks for.
  • A way to run the client's working day faster than real time and to cause the outside failures the brief names: a provider that answers late, repeats a message or sends it out of order, a phone that stays offline for hours with a clock 15 minutes wrong, a process killed mid-task, one capability stopped, and one capability replaced with a new version.
  • A test suite covering every Phase's tests, plus the results of the simulated day committed to your repository.
  • An office guide: how to read the list of decisions waiting for the office, who wins for each job field when the office and a phone disagree, what charging or waiving a visit fee does, and how to record remedial work and a confirmation on a certificate.
  • An operations note stating what an operator must be able to do: read one job's whole story in one place, retry a message that keeps failing once the cause is fixed, and see which capability is stopped.

Out of scope

  • Route optimisation. The vehicle routing problem is a research field of its own; rules that check skill, shift, overlap and a flat travel allowance are enough.
  • A native technician app. A simulator plays the phones, because the rules for offline edits are what this brief is about and the client is not.
  • Card handling. Payment arrives as signed notifications from a fake provider you build, so card data never enters the product.
  • Live van tracking. It adds a personal-data problem and no consistency problem, so no location data is kept.
  • Supplier purchase orders and supplier feeds. Replenishment is a stocktake and a transfer here.
  • Accounting package export. Invoicing ends at the issued invoice and the recorded payment.
  • A customer portal with accounts, and emailing quotes or invoices. A customer reaches a quote, a variation or an invoice by a signed link, and the only messages sent are arrival-window and on-the-way messages.
  • Gas work, recurring service agreements and an agent portal for bulk annual checks. They need compliance rules the brief does not cover.
  • Survey visits before a quote. A quote is priced from the price book alone, and a large fixed-price job is a catalogue bundle.
  • The VAT domestic reverse charge and proportional cancellation charges. One VAT rate and one flat fee keep the money rules testable.
  • Kubernetes or cloud deployment. Everything runs on one machine.

Architectural constraints

  • Amounts are exact to the penny. Prices include VAT at 20 percent, and an invoice or credit note shows net, VAT and gross in whole pence, with net worked out once on the total as gross times 5 divided by 6, rounded half up.
  • People see times in Europe/London, and a shift runs 08:00 to 17:00 local time all year, including across a clock change.
  • No edit is silently lost. Every change an office user or a phone makes is applied, merged, or shown to a person as a decision, and a phone's clock, which can be 15 minutes wrong, never decides who wins.
  • No technician is booked in two places at once, even when two dispatchers book at the same moment.
  • A part set aside for a job is never promised to another job. A part a technician reports as used is always recorded, even when the books said the van held none, and the shortfall stays visible to the stores person until a stocktake settles it.
  • A completed job is invoiced once, a cancelled job is never invoiced as work, each payment counts once and each refund is made once.
  • An electrical inspection cannot be completed without its certificate. A certificate is kept until a more recent inspection of the same property supersedes it (regulation 3(3)(ca) of the 2020 Regulations), or for 6 years from completion if that is later.
  • A customer's name, phone and email are erased on request. The site address stays on the job and the billing name and address stay on an issued invoice, for 6 years from completion. Invoices, credit notes, payments, each job's history and certificates stay, identified by ID. A phone number shown on a technician's phone for the day's visits is gone when the day ends.
  • When one capability is stopped, what depends on it waits and then completes once, and everything else keeps working.

Prerequisites

You have finished an intermediate project or have equivalent experience: you have built an application with a database that several people use at once, and you have fixed a bug that only appeared when two requests arrived together. Any language and stack will do. You do not need to have built a mobile app, and you do not need to know how a plumbing and electrical company runs its jobs; the first Phase explains the business and the words the brief uses. Having once debugged two people editing the same record will make the rules for offline edits feel familiar.

Create a free accountSign in

Free to start. An account is what keeps track of the checkpoints you finish.

Phase 1

Map the business

Produces a written map of one job from request to payment, the rules for who wins when the office and a phone disagree, and one command that starts the product with a simulated company. Leaves the behaviour of every capability for the later Phases.

Research

Research

Implementation

Architectural walkthrough

How a plumbing and electrical company runs its jobs

The company has 60 technicians, 3 admins and 2 dispatchers, and handles about 300 jobs a day. A customer, or a call-taker on the customer's behalf, reports a job with an address, a trade and a description. The company prices it from a price book and sends a quote. Once the customer accepts, a dispatcher books a technician who has the skill, works that day and is free. The customer is given a 2 hour arrival window and told by SMS when it changes.

Each technician carries a phone with the day's jobs on it and sometimes works without signal, in a basement for example. The phone keeps the technician's edits and sends them to the office when signal returns, which can be hours later. The office keeps changing the same jobs in the meantime.

Parts come from warehouses and from the technicians' vans. A technician who finds extra work on site proposes a variation, which the customer approves before it is billed. When the job is done the company invoices it, a payment provider reports each payment, and an electrical inspection ends with a certificate.

The words this brief uses:

  • Price book: the list of standard prices a quote is made from.

  • Quote: the price offered for a job. The customer can accept it once, and it expires after 30 days.

  • Arrival window: the 2 hour span in which the technician is due.

  • Variation: extra work found on site, billed only after the customer approves it.

  • Van stock: the parts a van holds, counted separately from the warehouses.

  • Stocktake: a count of what a warehouse or van really holds, which settles the books.

  • Sync: a phone sending its offline edits to the office. A phone can stay offline for up to 8 hours.

  • Certificate: the record of an electrical inspection, with its date and an outcome of satisfactory or unsatisfactory. The next inspection is due 5 years later.

  • Remedial work: the repair after an unsatisfactory inspection. It is due 28 days later, and the confirmation is due within another 28.

  • No-access visit: a visit where the technician cannot get in. The company charges a flat fee for it.

Why the rules for a job come first

The old app kept one copy of each job, and whichever desk or phone saved last won. Nobody had written down who is allowed to change which part of a job, so a phone that had been offline for hours could replace what the office decided that morning.

The client's story shows the cost. At 10:05 a dispatcher cancels a job because the landlord rang to say it was sorted. The technician is in a basement with no signal, finishes the work at 10:20 and syncs at 18:00. The job flips back to completed, an invoice goes out, and the tenant disputes it. The client cannot say which version was true, and the invoice has to be withdrawn by hand.

This Phase is writing plus a start command. The map of a job and the table of who wins are what every later Phase is checked against, so a gap in them returns later as a lost edit or an invoice for work that was cancelled.

The simulator is here for a different reason. The failures in this brief take a long time to happen on their own: a quote lasts 30 days, a phone stays offline for up to 8 hours, an invoice is kept for 6 years. A reviewer who cannot start the product and watch those happen in minutes cannot tell whether it works.

Phase 2

Take job requests

Produces job requests from the web form and the phone desk, an emergency decided by rules the client can read, and no request lost when the process dies. Leaves quoting and booking for later Phases.

Implementation

Implementation

Implementation

Testing

Architectural walkthrough

A customer with a burst pipe reports it on the web form, hears nothing, and rings the desk four minutes later. If both reports become requests, two technicians go to one leak. If both are lost, nobody goes. About 350 requests arrive a day and 10 percent are emergencies, so about 35 times a day someone is waiting with water coming through a ceiling.

The old app left the decision about what counts as an emergency to whichever dispatcher saw the request first, so a burst pipe waited behind a boiler service. The client promises to be on site within 2 hours of triage, and a request that sits unread has already used part of that time.

A process can also die between saving a request and passing it on. The customer was told the request arrived, nobody is working on it, and the client finds out when the customer phones to ask where the technician is.

A customer can also ask to be forgotten. The name, phone and email have to go while the site and the records the client must keep stay, and a request that cannot honour that is a legal problem for the client.

Phase 3

Quote the work

Produces a priced quote that stays at its price, expires after 30 days and can be accepted once through a signed link. Leaves turning an acceptance into a booked job for a later Phase.

Implementation

Implementation

Implementation

Testing

Architectural walkthrough

A quote is a promise at a price. A consumer unit replacement quoted at 90,000 pence has to cost 90,000 pence on the day the customer accepts, whatever the price book says by then. A quote repriced afterwards leaves the client with a customer who was promised one figure and an invoice for another.

Acceptance has to happen once. A customer double-clicks, opens the link on a phone and a laptop, or accepts in the same second the quote expires. If two of those count, the client creates two jobs at one address and sends two technicians. If a customer sees a confirmation while the company has already written the quote off, a technician arrives for a job the office never approved, or the customer waits for one it never booked. About 45 jobs a day go through a quote, so this happens at the client's volume, not in a corner case.

Phase 4

Own the work order

Produces the work order: the allowed status changes, a history of who did what, the certificate rule for inspections and the reopening of a disputed job. Leaves booking, stock and the technician's phone for later Phases.

Research

Implementation

Implementation

Implementation

Implementation

Testing

Architectural walkthrough

A job that can move to any status from any device is how a cancelled job came back as completed. Whoever saved last decides what the job is, and nothing is left that explains why. The cost is the 10:05 and 10:20 story: an invoice for a cancelled job and a tenant who disputes it.

A regulated inspection completed without its certificate is a different failure with the same effect. The client's landlord customers rely on the certificate to show they met the law, and the client is left holding an invoice for work it cannot prove.

A job can also be created twice. A quote accepted twice or a request handled again after a restart sends two technicians to one address.

A disputed job needs its evidence as it stood when the dispute was raised, not as it looks after the technician has added three more photos. About 3 percent of invoices are disputed, which is about 9 jobs a day.

Phase 5

Schedule technicians

Produces bookings that never overlap, arrival windows, and re-planning for an overrun, a sick call and an emergency. Leaves messages to customers and the technician's phone for later Phases.

Implementation

Implementation

Implementation

Implementation

Implementation

Testing

Architectural walkthrough

The old schedule was a list of times with no check that a technician was free, qualified and able to travel between visits. Two dispatchers clicking at the same moment book one technician into two places. A call-out estimated at 60 minutes that takes 100 pushes every later visit that day, and customers wait at home for a technician who is somewhere else. About 300 jobs a day over 60 technicians is 5 visits each, so a day has little room to absorb a mistake.

A sick call at 08:30 turned into a morning of phone calls, because nothing showed which visits the person held, who else had the skill and who was free. A visit dropped without notice is a customer waiting for nobody.

Emergencies cost the most. The client promises a technician on site within 2 hours of triage. An emergency squeezed in by editing times by hand leaves an overlap for the next dispatcher to inherit, and one that waits for a free slot misses the 2 hours.

Phase 6

Hold stock in vans and warehouses

Produces stock counts for every van and warehouse, parts promised to one job at a time, stock moving between locations, missing parts sourced and stocktakes that settle shortfalls. Leaves the technician's phone, and the parts it reports used, for a later Phase.

Implementation

Implementation

Implementation

Implementation

Implementation

Testing

Architectural walkthrough

The old system kept one stock number for the whole company and had no idea what a van held. Two jobs were promised the last 22 mm isolation valve. The cost is a second trip, a customer who was told the job would be done today, and a technician at the door without the part. With 60 vans holding about 900 units each and 2 warehouses holding about 2,500 units, the vans are most of the company's stock.

Stock also moves. Parts sent from a warehouse to a van are in neither place during the drive, and if they vanish from every count a technician can arrive to find the part missing with nobody able to say whether it ever left. Counts drift from the shelves too: a stocktake finds fewer units than the system believed, and promises already made against them cannot be kept.

When a part is missing, a visit has already been spent. The return visit cannot fail for the same reason.

Phase 7

Sync the technician's device

Produces today's jobs on a phone with no signal, offline changes taken once and merged with the office's, decisions waiting for the office, and used parts that are always recorded. It leaves invoicing for the next Phase.

Implementation

Implementation

Implementation

Implementation

Implementation

Testing

Architectural walkthrough

A technician in a basement has no signal for hours, and the office keeps working. At 10:05 the dispatcher cancels a job after the landlord rings to say it is sorted. At 10:20 the technician finishes the work, and the phone uploads that at 18:00. If the 10:20 completion wins because it carries a later time, the job flips back to completed, an invoice goes out for a visit the landlord had cancelled, and the tenant disputes it.

Phone clocks are wrong by up to 15 minutes either way, so a time written on a phone cannot say which edit came first. A phone that gets no answer in time uploads the same batch again, so anything the product does on receipt happens twice unless it takes care. Batches arrive in any order, hours late, and 60 phones do it at once.

A job that quietly loses a technician's note about a live fault, a part already fitted in a wall or 55 minutes on site costs the client a repeat visit or a bill nobody can defend. A cancelled job that quietly becomes completed costs a tenant's trust. This Phase ends with the same uploads arriving shuffled, repeated and late, and the same jobs, the same decisions for the office and nothing stored twice at the end of every order.

Phase 8

Invoice the work

Produces one invoice for each completed job, each payment counted once, credits and refunds made once, and a hold while a dispute is open. It leaves variations and visit fees for the next Phase.

Implementation

Implementation

Implementation

Implementation

Testing

Architectural walkthrough

The old app made invoices from a button on the accounts screen. Some completed jobs were never billed and some cancelled ones were, and nobody could say which without reading every job. A tenant who disputes an invoice for a cancelled job costs the client the invoice, the goodwill of the landlord and an afternoon of accounts staff.

Payment providers send the same notification twice and send two notifications in the wrong order. A card payment taken on site at 10:20 is reported at once, while the invoice it pays does not exist until the completion syncs at 18:00. A product that counts each notification as an instruction charges a customer twice, loses the on-site payment, or leaves a paid invoice chasing the customer for money already received.

Money that leaves is worse than money that arrives. A refund sent twice is cash the client can recover only by asking the customer. A process that dies after sending a refund and before noting the answer is the moment it happens. An invoice is a legal document: a mistake is corrected by a credit note, and an invoice under dispute is neither voided nor charged again while the dispute is open. This Phase ends with a replayed stream of payment notifications, duplicated and reordered, that must leave every invoice paid once.

Phase 9

Turn an accepted quote into a booked job

Produces the journey from a customer's acceptance to parts set aside, one work order and a booked visit, variations billed only after approval, and the flat fee for a late cancellation or a no-access visit. It leaves messages to customers for the next Phase.

Research

Implementation

Implementation

Implementation

Testing

Architectural walkthrough

A customer who accepts a quote has made a promise to the company and received one back. After that, three things have to happen: the parts are set aside, the job is created and a visit is booked. A process can die between any two of them, and any of them can fail. Parts set aside for a job nobody created stay out of other jobs' reach for weeks. A job with no visit leaves a customer who accepted a 90,000 pence quote waiting for a technician who is never sent.

The customer's acceptance stays whatever fails afterwards, because a failed booking is the company's problem. A part that is not in stock means the job waits while the part is sourced, and the customer hears in days, not minutes. The office has to hear about the cases that need a person, within the 3 days the client gives itself.

Two more things in this Phase also wait on someone else. A technician finds extra work on site, and the customer takes days to answer. A customer cancels after the technician has set off, or the technician cannot get in, and the company has lost the slot and the travel. The failure is billing for extra work nobody approved, or billing a fee twice.

Phase 10

Notify customers

Produces arrival-window and on-the-way text messages, one message per customer after a reshuffle, and delivery that survives a provider outage. It leaves the whole-system proofs for later Phases.

Implementation

Implementation

Implementation

Testing

Architectural walkthrough

A sick call can move one customer's booking three times in four minutes. A product that sends a message for each change sends three, and if they arrive in the wrong order the customer is holding a window that was already replaced. The customer stays home the wrong morning. Over a morning of reshuffles, a customer who gets five messages learns to ignore all of them.

A text message cannot be taken back. The SMS provider can be down for 2 hours, answer late or report a message delivered twice. A product that gives up after the first failure leaves customers hearing nothing. One that resends carelessly sends the same message twice when the provider comes back. A window message for a window already under way is wrong, and an on-the-way message that reaches the customer after the technician has knocked is noise.

A message to a customer who asked to be erased is a complaint to the client's data-protection contact. This Phase ends with a reshuffled day in which every affected customer gets one message that states the final window, even when the process dies right after a message has gone out.

Phase 11

Operate the system

Produces what an operator needs: one job's whole story in one place, a failing message that waits without blocking the others, and a report of regulated jobs that miss a certificate or a deadline. It leaves the whole-system proofs for the last Phase.

Implementation

Implementation

Implementation

Testing

Architectural walkthrough

At 3pm a customer phones about a job and an operator has to say what happened to it. If the answer is spread over a dozen places that disagree about the order of events, the operator reads them wrong, and the customer is told the wrong story. A phone's clock can be 15 minutes wrong, so even the order of two entries can mislead.

One message that cannot be delivered, a text to a number the provider always rejects or a phone change the product cannot apply, can hold up everything behind it if the product keeps trying it. Sixty technicians' uploads stuck behind one bad change is a stopped day. Dropping the bad one silently is worse: a payment goes missing and nobody knows.

The client's landlords must carry out remedial work within 28 days of an unsatisfactory inspection and confirm it within another 28. An inspection with no certificate, or a deadline passed, is found when the local housing authority asks for evidence. The cost is the landlord's penalty and the client's reputation.

Phase 12

Prove the system

Produces the proofs a whole company needs: the evening sync storm, the product working with one capability stopped, one capability replaced while the rest serve, and a simulated working day with every failure at once. It leaves nothing for later because it is the last Phase.

Testing

Testing

Testing

Implementation

Testing

Architectural walkthrough

The 18:00 sync is the heaviest moment of the working day, with about 6,000 changes from 60 phones within 5 minutes. A phone that is not answered in time uploads again, so a slow product makes its own load worse. Dispatchers are still booking at the same time, and a booking that takes a minute leaves a customer on the phone to a call-taker with nothing to say.

Capabilities depend on each other quietly. Invoicing that is stopped for an hour and stops dispatchers booking leaves 60 technicians without their next job. Stock that is stopped for an hour and stops requests being taken costs the company the customers who phoned a competitor. An update in working hours is a failure the client causes itself, and it can drop a phone's upload halfway or send a text twice.

Each failure on its own was survived in an earlier Phase. A day when a technician is sick, an emergency comes in, the SMS provider is down, payments are repeated and a process dies together finds what single tests cannot. The promises the client made to its customers have to be checked from outside after that day, because the product's own account of itself is the thing in doubt.

Architectural walkthrough

A job is edited by people who cannot see each other

The old app kept one copy of each job, and whichever device or desk saved last won. Every failure in the client's account traces back to that. A phone that had been offline for hours replaced a decision the office made at 10:05, because nothing could tell a decision from a stale copy of an older state.

The client's story is the one to hold in mind. At 10:05 the dispatcher cancels a job after the landlord rings to say it is sorted. The technician is in a basement with no signal, finishes the work at 10:20 and syncs at 18:00. In the old app the job flipped back to completed, an invoice went out, and the tenant disputed it. Nobody could say which version was true.

Check your build against that story. After the 18:00 sync the job is still cancelled. The technician's notes, time on site, two parts and photo are all kept. The parts are accounted for. The office sees a decision waiting with the visit's evidence, because the visit happened and a person has to say whether to charge the fee or waive it. No work invoice exists. The technician's phone shows the cancellation and the outcome at its next sync.

The last valve

The client's other incident is two jobs promised the last 22 mm isolation valve. The old system kept one stock number for the whole company and had no idea which van held what. The cost is a second trip and a customer who was told the job would be done today.

Two jobs asking for the last valve at the same moment must end with one promise and one refusal, however the requests interleave. A technician who reports a part used when the books say the van held none is a different problem: the part is already in the wall. Refusing the report would lose a fact, so it has to be recorded, and the stores person has to see the shortfall.

Things that happen twice, late or halfway

Payment providers send the same notification twice and send two notifications in the wrong order. A payment taken on site can reach the product before the invoice it pays exists. A process can die between saving a completed job and telling anyone. The cost shows up as a customer charged twice, a paid invoice that still chases the customer, a completed job that is never billed, or a customer who accepted a quote and never gets a visit, and nobody finds out until someone phones.

Your build should end in the same place whatever order these happen in, and whatever instant a process dies. Repeat a payment notification and the invoice is paid once. Kill a process in the middle of an acceptance and the customer ends with their parts set aside, a work order and a booked visit, or with nothing half-made left behind.

When one thing stops

About 300 jobs a day run through this company. If invoicing is stopped for an hour and dispatchers cannot book, 60 technicians lose their next job. If the SMS provider is down for 2 hours and the product keeps retrying in a way that slows everything else, customers hear nothing and the office drowns in calls. Replacing one capability with a new version during working hours is the same problem on purpose: the rest of the company keeps working while it happens.

The 18:00 sync is the heaviest moment of the day. About 6,000 changes arrive from 60 phones within 5 minutes. A phone that does not get an answer in time uploads again, so a slow product makes its own load worse. Every change must end up applied, merged or shown as a decision, and none may be stored twice.

Where it shows if you cut a corner

If your build lets a phone's clock decide which edit wins, the shuffled-upload test fails when the clocks are wrong, and so does the simulated day. If two jobs asking for the last valve in the same moment can both be told yes, the concurrent-promise test oversells. If an invoice can come from anything other than a completed job, the check after the simulated day finds an invoice for a cancelled job. If a repeated payment notification counts as a second payment, the replayed payment stream pays twice. Each of these tests finds the shortcut before a tenant's dispute does.