Build an Event Ticketing Platform
A ticketing company has outgrown the one application it runs on: on its biggest on-sale it sold 212 seats that did not exist. You will build the platform behind a ticket on-sale, from a fair queue and seat holds through payment, tickets at the door, refunds and organiser payouts, and prove that no seat is sold twice in a simulated on-sale with failures injected.
The brief
The client
I run a ticketing company that sells for 140 organisers and venues, about 3,500 events a year, on one application with one database. During an arena on-sale for 12,000 seats, 40,000 people were in checkout within a minute and the payment step slowed down. Buyers who were sent to their bank to approve the card had their seats released while they waited, the seats went to the next person in line, and about 200 of the first buyers paid for seats that had already been resold.
Separately, our code checked whether a seat was left and wrote the sale in a second step, so on the busiest second two buyers were each told they had the last seat, 12 times over. We sold 212 seats that did not exist, emailed 212 people to apologise and refunded them by hand over two days, and the organiser has not booked with us since. I need the last seat to go to exactly one buyer, a payment that finishes late to be handled by a rule and not by luck, and a way to show an organiser, to the cent, what they are owed and why.
The problem
On the busiest second of the on-sale, two buyers were each told they had the last seat, and it happened 12 times. A seat is held for a buyer for a fixed 10 minutes, and a payment can finish after that, because the bank's approval step and the payment processor's confirmation both take unpredictable time and the confirmation can arrive late or twice. The 200 buyers who paid for seats that had already been resold are the result.
Browsing, queueing, checkout and the organisers' reports all slow down together, so the on-sale spike makes search slow for people who are only looking. When a show is cancelled, refunds go out by hand from a spreadsheet, and the organiser's payout is not held, so the money has already left by the time the refunds are due. A card dispute can arrive long after the sale and takes funds from our account before anyone has looked at the evidence, even though the door scan log might have answered it.
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 an organiser publish a show with several ticket types, each with a capacity, a price rule and a sales window in the venue's local time.
- Let an attendee search shows by date, place and category and see whether tickets are available, and keep doing so while checkout is under load or down.
- Admit buyers to a sale fairly: presale codes for registered fans, a randomised queue for everyone who joined before the sale opened, and 100 admissions a second per show.
- Hold seats for a buyer for 10 minutes, never sell more than a ticket type's capacity, and return the seats of an abandoned checkout.
- Show the all-in price, including every mandatory fee, before the buyer commits, and charge exactly that amount, with bank approval when the bank requires it.
- Settle a payment that finishes after its hold expired, a processor message that arrives twice and one that arrives out of order, without selling a seat twice or taking money for no ticket.
- Issue tickets whose codes cannot be reused from a screenshot, let a holder transfer a ticket, and admit each ticket at the door once.
- Cancel or postpone a show, cut a ticket type's capacity after sales began, refund buyers, and answer a card dispute from the platform's own records.
- Pay each organiser what they are owed, hold the money until the show has happened, recover refunds and disputes that arrive after payout, and reconcile to the cent against the processor's settlement.
- Let an operator trace one order from start to finish, finish a stuck order once its cause is fixed, slow or pause admission, and check the platform's numbers with one command.
Deliverables
- Your repository starts the whole product with one command, with pretend buyers, organisers, door scanners and a pretend payment processor that you build, and a place where every email the platform sends can be read.
- A README that takes a reviewer from a fresh clone to a purchased ticket admitted at a door in 15 minutes, and lists the command that runs each test the brief asks for.
- A way to run a sale day faster than real time, and to cause the failures the brief names: processor messages that arrive late, twice or out of order, a bank step that fails or never answers, a refund that fails once, a fraud warning, a dispute, a scanner that cannot reach the platform, and any one capability stopped or replaced.
- Organiser-facing documentation for publishing a show, how a sale window is read in the venue's local time, how fees and refunds are computed and rounded, and how to check a payout statement line by line.
- A short note on what is erased and what is kept when a buyer asks to be erased.
- A test suite, plus the results of the simulated on-sale from the final Phase committed to your repository with the seed and the failure schedule that produced them.
- An operations note stating what an operator can do: find everything that happened to one order, finish a stuck order once its cause is fixed, slow or pause admission for a show, and confirm that the platform's numbers agree.
Out of scope
- Numbered seats and seat maps. Choosing a specific seat adds geometry and per-seat contention; ticket types that share a limited number of seats already carry the contention problem.
- Dynamic pricing. It needs a disclosure rule to be testable and is a pricing topic; fixed prices with early-bird changes cover price movement over time.
- A resale marketplace. Resale caps differ by country, so a resale rule would need a jurisdiction the brief does not fix; transfer between people is enough.
- Real payments, a real processor account and card-data compliance. A processor you build keeps every Checkpoint runnable offline.
- Bot detection beyond fairness controls. One queue place per buyer, presale codes and a per-buyer limit can be tested; telling a bot from a person is an arms race.
- Buyer accounts and logins. A buyer arrives with an ID that the pretend buyers supply, so the brief stays on tickets and money.
- Admitting people at the door when the platform cannot be reached. A decision about who may enter needs the platform's answer, so a scanner that cannot reach it admits nobody.
- Apps, mobile wallets and door hardware. Pretend phones and scanners stand in for them.
- Tax on fees and more than one currency. Both change every amount without teaching anything new about it; everything is in euros.
- Fire-code and accessibility seating rules. They differ by venue and country, and ticket types with a limited number of seats do not model them.
- Front ends for organisers and attendees, and live sales dashboards. The brief checks behaviour through requests and the pretend buyers, organisers and scanners.
- Kubernetes or cloud deployment. Everything runs on one machine.
Architectural constraints
- Amounts are in euros and exact to the cent. A service fee of 8% of the ticket price rounds half up to the cent, and the processing fee on a payment is 1.5% of the amount charged plus 25 cents, rounded half up once for the whole payment.
- A sale window or a door time is read in the venue's own time zone. A local time that does not exist because the clocks skipped forward means the first instant after the gap, and a local time that happens twice means the first of the two.
- The platform's own calendar days and months, such as the end of the month for clawback invoices, follow Europe/Amsterdam.
- No card number is ever stored or logged anywhere.
- Never more tickets are sold than a ticket type's capacity, and no buyer pays for a ticket that does not exist: every successful payment ends in a ticket or in a full refund.
- A hold lasts 10 minutes and is never extended. A refunded seat is never returned to sale.
- A ticket is admitted at most once. A scanner that cannot reach the platform shows "cannot verify" and admits nobody.
- The email address a ticket is transferred to is used for that one email and not kept.
- A statement that has been issued never changes. A later refund, dispute or clawback appears on a later statement.
- When a buyer asks to be erased, nothing happens while the show is still ahead or a dispute is open. Once the show is over and no dispute is open, the buyer's name and email are removed. Orders, payments, tickets, scans and money records stay, identified by ID, for 7 years, because Dutch tax rules oblige the company to keep its business records for 7 years. That duty is the client's own.
- With one capability stopped, the others that do not need it keep working. With checkout stopped, search, event pages and the queue still work and a checkout request is refused within 5 seconds. With payment stopped, buyers can still search, queue and hold seats, and orders already started wait for payment. With tickets stopped, payments and sales continue and the tickets and their emails arrive when it returns. With payouts stopped, sales and door entry continue and statements catch up.
- Replacing one capability during a live sale loses no hold, order or payment, and the others keep serving.
Prerequisites
You have finished an intermediate project or have equivalent experience. Any language and stack will do. You have built an application with a database, and you are comfortable running several processes side by side on your own machine. You do not need to have handled payments before, and you do not need to know how a ticketing company sells a show; the first Phase explains the business and the words the brief uses, and the Checkpoints explain bank approval and processor behaviour as they come up. Having once sold the same thing twice, or chased a bug that only showed up when two requests arrived in the same millisecond, will make most of this brief feel familiar.
Free to start. An account is what keeps track of the checkpoints you finish.
Learn the sale and start the product
Produces the written understanding of the client's sale, money and clock rules, and a product that starts with one command and can move its clock. No business logic is built yet.
Acceptance criteria
You replay the incident in the client's terms and write it in your repository as a timeline from the show opening at 10:00 to the end of the second day of manual refunds, with for each step what the application did and what the buyer saw. The timeline states the client's figures: 12,000 seats, 40,000 buyers within about a minute, 12 last seats told to two buyers each, about 200 buyers who lost their held seats at the bank, and 212 buyers apologised to and refunded by hand.
Your repository also holds five journeys written as numbered steps, each naming who acts and what each person sees: a ticket from the organiser publishing a show to the buyer admitted at the door and the organiser paid; a hold that expires unpaid; a payment that finishes after its hold ended; a show cancelled after sales; and a card dispute after the show.
Three cases with one seat left are worked by hand, each with the outcome for the buyer and for the seat. A payment arrives for a hold that has ended and the seat is still free: the buyer gets the seat. A payment arrives for a hold that has ended and the seat went to someone else: the buyer is owed the full amount back. The same payment is confirmed twice: nothing changes the second time. The document states the rule for a late payer in the client's words: the seats if they are free, otherwise the full amount back, and never a charge for nothing.
A reader who has not seen any code can say for each step of each journey what the buyer sees. A step that says only "the platform handles it" is rewritten with the thing the buyer, organiser or door staff sees.
Architectural guidance
The incident cost 212 apologies, two days of manual refunds and an organiser. A build that starts without the rules written down rediscovers them during an on-sale, in front of buyers.
Acceptance criteria
Your repository holds a rules file with every money, time and erasure figure in the brief, each with a worked example you computed by hand. Anyone can recompute every example from the document alone and arrive at the same cents.
For fees: one ticket at 3,800 cents has a service fee of 304 and a total of 4,304 with the 200 cent facility charge. Three tickets total 12,912. A unit price of 3,807 gives a service fee of 305 and 3,806 gives 304. The processing fee is 1.5% of the amount charged plus 25 cents, rounded half up once per payment: 500 cents gives 33, 4,304 gives 90, and 12,912 gives 219. The document says why 220, the figure from rounding each ticket's share of the 1.5% separately, is wrong.
For who gets what: from the paid order for one ticket at 3,800, the organiser receives 3,800 and the 200 cent facility charge, pays the processing fee of 90 and nets 3,910. After a refund on request of 3,800 the organiser nets 110. The service fee goes to the platform.
For refunds: the full amount charged goes back for a cancellation, a lapsed postponement, a buyer's choice after a postponement, a fraud warning and a late payment whose seats are gone. A refund on request returns face value only, is allowed until 7 days before the show starts inclusive, and is refused one millisecond later. Two tickets at 3,800 charged 8,608 refund 7,600 on request. A refunded seat never returns to sale. For disputes: a dispute on a 4,304 cent charge debits the organiser 6,304 when it opens, and a win leaves the dispute's own lines at minus 2,000. Evidence is due exactly 7 days after the dispute opens.
For time: 10:00 in Berlin is 09:00 UTC on a winter date and 08:00 UTC on a summer date. 02:30 on 28 Mar 2027 does not exist in Berlin and means 03:00 local, which is 01:00 UTC. 02:30 on 31 Oct 2027 happens twice and means the first one, 00:30 UTC. For erasure: nothing is erased while the show is ahead or a dispute is open. Afterwards the name and email are removed, and orders, payments, tickets, scans and money records stay, identified by ID, for 7 years. The document says the 7 years are the Dutch tax rule that business records are kept 7 years, which is the client's own legal duty.
Each rule with a boundary has its example on the boundary, such as the refund one millisecond after the cut-off. A figure without a worked example fails the check.
Architectural guidance
A fee rounded per ticket instead of per payment is off by a cent on every multi-ticket order, and nobody notices until an organiser checks a statement line by line. Working the cases by hand first gives every later check an answer that did not come from the code being tested.
Acceptance criteria
From a fresh clone, one command starts the product together with a pretend buyer, a pretend organiser and a pretend door scanner. Each can be created and does nothing else yet. The README lists the command, how to reach what runs, and the command that runs each test the brief asks for. It starts with the tests that exist now, and each later Phase adds its own.
A place exists where you can read every email the platform sends. A test email sent by the platform shows up there.
The platform can say what time it believes it is. In test mode you move the clock forward by 3 hours and the platform's answer is then 3 hours later, while the machine's own time is unchanged. Outside test mode the platform reports the real time, and a request to move the clock is refused. The check is a script that asks, moves the clock and asks again, and it runs from the README's test command.
Stopping the place that shows emails leaves the rest of the product answering.
Architectural guidance
A hold of 10 minutes, a bank wait of up to 6 minutes and a payout 72 hours after a show ends cannot be tested against real time. If the clock cannot be moved, those rules are checked for the first time on the day of an on-sale. A product that takes several manual steps to start hides failures too, because nobody reruns its tests.
Architectural walkthrough
How a ticketing company sells a show
The company sells tickets for 140 organisers and venues, about 3,500 events a year. An organiser publishes a show with one or more ticket types. Each type has its own capacity, price rule and sales window, and the window is read in the venue's local time. Attendees search for shows by date, place and category, and see whether tickets are available.
A big show goes on sale at one moment, and tens of thousands of people arrive together. The company lets them in fairly: registered fans can use a presale code, everyone who joined the queue before the sale opened is placed in random order, and buyers are admitted at a set rate. A buyer who is admitted gets their seats held while they pay. The price they see includes every mandatory fee, and the card payment may send them to their bank to approve it.
After payment the buyer gets a ticket with a code, can transfer it to someone else, and shows it at the door, where it is scanned. The company pays each organiser what they are owed after the show, and handles cancelled and postponed shows, refunds and card disputes.
The words this brief uses:
On-sale: the moment a show's tickets become available to buy.
Ticket type: a category of ticket for one show, with its own capacity, price rule and sales window. Several types can share a limited number of seats.
Presale code: a code that lets a registered fan buy before the general sale.
Randomised queue: the waiting line for a sale. Everyone who joined before it opened is placed in random order, and later arrivals are served in order of arrival.
Hold: seats kept for one buyer for 10 minutes while they pay.
All-in price: the price including every mandatory fee, shown before the buyer commits. The buyer is charged exactly this amount.
Bank approval: the step where the buyer's bank asks the buyer to approve a card payment. How long it takes is unpredictable.
Door scan: checking a ticket's code at the venue entrance. A ticket is admitted once.
Payout statement: the account of what an organiser is owed and why. Refunds and disputes that arrive after payout are recovered later, which is called a clawback.
Dispute: a buyer asking their bank to take a card payment back. The bank takes the money before anyone has seen the evidence.
Why the rules and the clock come first
On the arena on-sale, 12,000 seats went on sale at 10:00 and 40,000 people were in checkout within a minute. Twelve times, two buyers were each told they had the last seat. About 200 buyers were sent to their bank to approve the card, lost their held seats while they waited, and paid for seats that had already been resold. The client apologised to 212 buyers and refunded them by hand over two days, and the organiser has not booked a show since.
None of those failures came from a hard feature. Each one came from a rule that nobody had written down: what a buyer is told about the last seat, what happens to a payment that finishes after the seats are gone, and which clock decides when a hold ends. A product built before those rules are worked by hand gets them wrong in small ways that surface in front of buyers. A fee rounded per ticket instead of per payment is off by a cent on every multi-ticket order, and the organiser finds it when checking a statement line by line. A sale window read in UTC opens an hour early for a Berlin show in winter. A late payer with no defined outcome is the 200 buyers again.
The clock is the second problem. A hold lasts 10 minutes, a bank wait lasts up to 6, a postponed show has 90 days to get a new date and an organiser is paid 72 hours after the show ends. If the product can only be tested in real time, none of those rules is tested before an on-sale exercises them for the first time. A product that needs a manual sequence of steps to start has a quieter version of the same problem, because nobody reruns its tests.
Put a show on sale
Produces shows with venues and ticket types, sale windows read in the venue's local time, prices that change on a schedule, and publishing that cannot half-happen. No seats, search or buying yet.
Acceptance criteria
An organiser can create a venue with a name, a city and a time zone given as an IANA name, and a show with a title, a category, a venue, a start and an end. The time zones "Europe/Berlinn" and "Berlin" are refused with a reason. A new show is a draft that attendees cannot see.
An organiser can add ticket types to a show. Floor with 8,000 seats, stand with 3,000 and VIP with 1,000 are accepted. A capacity of 0, a negative capacity and a fractional capacity such as 2.5 are refused. An end that is not after the start is refused. Publishing a show with no ticket type is refused and the show stays a draft.
An organiser sees only their own venues and shows. Asking for another organiser's show gets "not found", the same answer as for a show that does not exist. Start and end read back exact to the millisecond in UTC. The capacity the organiser entered is the number of seats that will go on sale, and it reads back unchanged after publishing.
Architectural guidance
An organiser who mistypes a time zone gets a sale that opens at the wrong hour and finds out when buyers complain. A show missing its ticket types, or one organiser seeing another's show, costs trust with the 140 organisers the client sells for. Refusing bad input at the start is cheaper than refunding sales made on it.
Acceptance criteria
An organiser enters a ticket type's sale window, and an optional presale window, as local wall-clock times in the venue's time zone. The organiser sees both the local time and the UTC instant it was read as.
10:00 in Berlin on a winter date reads as 09:00 UTC and on a summer date as 08:00 UTC. 02:30 on 28 Mar 2027 does not exist in Berlin and reads as 03:00 local, 01:00 UTC. 02:30 on 31 Oct 2027 happens twice and reads as the first one, 00:30 UTC.
A close that is not after the opening is refused. A presale opening that is not before the general opening is refused, compared on real instants. At any time on the clock the ticket type reports whether it is not open, in presale, open or closed. One millisecond before an opening it is "not open" and at the opening instant it is open.
The organiser documentation explains how a sale window is read and works both daylight saving examples above.
Architectural guidance
A window read in UTC opens an hour early or late for every show in a zone that moves its clocks.
Acceptance criteria
A ticket type has a price schedule of tiers, in whole cents. The example schedule is 3,000 cents from the sale opening, 3,800 from 14 days before the show and 4,500 from 2 days before. The price shown at any instant is the one for the tier in force: one millisecond before each boundary it is the old price, and at the boundary instant it is the new one.
Tier start times are entered in the venue's local time and follow the same daylight saving rules as sale windows. These schedules are refused: tier start times not in increasing order, two tiers starting at the same instant, an empty schedule, a first tier that starts after the sale opens, a price of zero or less, and a price that is not in whole cents such as "38.00".
Once a show is published, an organiser who tries to change a ticket type's schedule is refused and the price is unchanged. The service fee of 8% and the facility charge of 200 cents per ticket are shown as the platform's figures, and an organiser's attempt to set either is refused. No all-in price is shown yet.
Architectural guidance
A schedule an organiser can edit after buyers have seen it means the price a buyer was shown is no longer the price on record.
Acceptance criteria
A show with three ticket types is published while the process is killed at a different point on each run, repeated across at least 100 runs. Every run ends in one of two ways: the show is still a draft, or it is published with all three ticket types, none missing and none doubled.
Publishing again after a kill finishes the job and creates no second show. Publishing a show that is already published changes nothing. A draft is never shown to attendees, and a run that ends with a published show missing a ticket type counts as a failed run.
The README records the command that repeats the kill test. What other parts of the platform do with a published show is checked where they appear: seats on sale under Hold Seats for a Buyer for 10 Minutes, and search under Keep Search Fast Across 50,000 Listed Events.
Architectural guidance
A process can die between marking a show published and finishing the rest of its setup. The organiser then believes the show is live while buyers cannot buy, or buyers see a show with ticket types missing.
Architectural walkthrough
An organiser's schedule is only as good as the instant the product reads it at. A sale window typed as 10:00 in Berlin and read as UTC opens an hour early in winter or an hour late in summer. The first buyers are then either shut out of a sale that has started, or let into a presale that the organiser meant to keep closed. Twice a year a venue's local clock also skips or repeats an hour, and a rule with no answer for that picks one silently.
A price that changes at the wrong instant charges some buyers the old tier and others the new tier for the same moment. The client refunds the difference by hand and the organiser stops trusting the schedule it set. A schedule that an organiser can edit after buyers have seen it breaks the same trust from the other side.
Publishing a show is several steps, and the process can die between any two of them. If it does, an attendee can see a show with some of its ticket types missing, or the organiser believes the show is live while nobody can buy. Neither shows up as an error. The organiser finds out when buyers phone.
Hold and sell seats
Produces seats that can be held for 10 minutes, returned when the hold ends, sold once and cut in capacity after sales began, with a test that the last seat goes to one buyer. Payment is a stand-in here, and real payment comes in a later Phase.
Acceptance criteria
When a show is published, each ticket type goes on sale with exactly the capacity the organiser set. Publishing twice, or the process dying during publishing, leaves the seat counts unchanged. A test can read, for each ticket type, the capacity, the seats held, the seats sold and the seats available as plain numbers.
A buyer asks to hold seats by naming the ticket type, a quantity of 1 to 4 and the buyer, and marks the request as one attempt. A quantity of 0 or 5 is refused. A hold lasts 10 minutes from the clock time it was made and is never extended. Asking for more seats than are available is refused whole: no partial hold is made and the counts do not change. A request before the earliest opening, presale included, or after the close, is refused.
Sending the same attempt again returns the original hold, whatever has happened to it since, and the seats available drop once. This also holds when the second request arrives while the first is still being handled.
With one seat left and many simultaneous requests for one seat each, exactly one buyer gets a hold, available ends at 0 and never goes below it. With 3 seats left and two simultaneous requests for 2 seats, exactly one succeeds and 1 seat remains available.
Architectural guidance
Two requests that each see the last seat and each take it are the 12 buyers told they had the last seat, and each one cost an apology and a manual refund. The same damage comes from one request sent twice that takes two holds, and from a process that dies while setting up a ticket type's seats and counts them again on restart. The counts have to stay true under all three.
Acceptance criteria
A hold ends at the instant 10 minutes after it was made, and the seats of a hold nobody paid for are back on sale within 30 seconds of that instant on the clock. After the clock is moved by 10 minutes and 30 seconds, the seats read as available again and a second buyer's request for the last seat succeeds. One second before the 10 minutes the seats still read as held.
The seats of one ended hold come back once, however many times the platform tries to return them, including twice at the same moment. A hold that has already been sold or released is never returned again, and sold seats stay sold. The held count never goes below 0 in any test.
Architectural guidance
Seats held by buyers who left keep a show looking sold out while the room is empty, and the organiser loses sales that would have happened. Returning the same seats twice is worse. The show then claims seats it does not have, and the next buyers pay for them.
Acceptance criteria
Until real payment exists, a pretend payer can report a hold as paid. This is a stand-in: once Take Payments is built, the product no longer accepts a bare claim from outside that a hold was paid. A live hold reported paid turns its seats from held into sold. Reporting the same payment twice leaves one sale.
Whether a hold is live is decided by the clock and not by whether the seats were returned yet. Even while the seats of ended holds have not yet come back on sale, a payment after the hold's end is treated as late.
A late payment where the seats are still free gives the buyer the seats and the sale is recorded. This includes the case where the free seat is the one the expired hold had. A late payment where another buyer has taken the seats sells nothing, and the buyer is shown as owed the full amount back. A second report of the same payment resolves nothing a second time. Seats held plus seats sold never exceeds capacity at any moment.
Architectural guidance
The 200 buyers in the incident paid for seats that had been resold, because a payment that finished late was treated as if the hold were still theirs. If the answer depends on whether the seats have already come back on sale, a slow or stopped platform changes who gets a seat. The rule has to give the same result whether the payment arrives a second or an hour after the hold ended, and whether it arrives once or twice.
Acceptance criteria
An organiser can ask to lower or raise a ticket type's capacity after sales began. With 700 seats sold and 100 held, a cut to 800 is accepted. A cut to 799 is refused, and the organiser sees the refusal with the numbers: 700 sold and 100 held. Until a request is applied the organiser sees it as pending, and afterwards sees the new capacity or the refusal. Raising capacity follows the same path and is applied the same way.
While 50 buyers keep taking holds, a cut runs, and a test that reads the counts repeatedly never sees seats held plus seats sold above the new capacity. A refused cut changes nothing. The same cut requested twice, including at the same moment, produces one outcome.
Architectural guidance
An organiser cuts capacity when a stage layout changes. If the cut is applied while buyers are taking holds, the show can end with more seats sold than exist, and the client refunds buyers for a night that is already planned. Refusing a cut that would strand buyers, and showing the organiser why, avoids a phone call on the day.
Acceptance criteria
One command runs the contention scenarios and exits 0 only if no seat is sold twice. It starts from empty data and prints the number of runs, the number of buyers and, for each ticket type, the final capacity, held, sold and available.
Scenario 1: one seat and many simultaneous one-ticket buyers, repeated over many runs from fresh data. Every run ends with one hold and 0 available.
Scenario 2: the largest show, with 8,000 floor, 3,000 stand and 1,000 VIP seats, and 40,000 buyers each wanting 1 to 4 tickets, from a fixed seed and as concurrent as the machine allows. Seats held plus seats sold never exceed capacity, the seats held equal the quantities of the live holds, and the number of holds equals the number granted.
Scenario 3: the clock moves 10 minutes, held is 0 and available equals capacity again. Scenario 4: every payment report is sent twice and each hold is counted as sold once. Scenario 5: a ticket type with 2 seats, two buyers each hold one, both holds expire, a third buyer takes one of the freed seats, and both late payments arrive at the same moment. Exactly one of the two late payers gets a seat and the other is owed a refund.
You have run the command once against a build deliberately made wrong, one that lets two buyers take the same last seat, and recorded the output, including how many seats were oversold.
Architectural guidance
Contention bugs pass every test that sends one request at a time. The incident appeared only when 40,000 buyers arrived within a minute. A check that has never been seen failing proves nothing, so a build that is known to sell a seat twice has to fail it.
Architectural walkthrough
On the busiest second of the arena on-sale, two buyers were each told they had the last seat. It happened 12 times. Each of the 12 meant a buyer who had been promised a seat that was already sold, an apology, and a refund made by hand. The check for a free seat and the sale of that seat happened as two separate moments, and with 40,000 people arriving within a minute the gap between them was wide enough for two requests to fit.
The second failure is quieter. Buyers who hold seats and then leave keep those seats out of sale, so a show looks sold out while the room is half empty, and the organiser loses sales that would have happened. Seats returned twice produce the reverse lie: the show lists seats that do not exist, and the next buyers are sold them.
The third failure is the 200 buyers. A buyer is sent to their bank, the hold ends while the bank is answering, the seats go to the next person, and the first buyer's payment then succeeds for seats that are no longer theirs. The rule for that buyer has to be decided before the payment arrives, and it has to give the same answer when the payment arrives twice, or an hour late, or while another part of the platform is stopped. A buyer owed a refund who gets a charge instead is the incident again.
Discover events
Produces search across 50,000 shows, show pages with availability badges, and proof that browsing keeps working when checkout is down. No queue or buying yet.
Acceptance criteria
An attendee can search published shows by date range, city and category, each optional. Results show the id, title, venue, city, category and start of each show in UTC and in the venue's local time, ordered by start, in pages. No price appears in results. A draft never appears. An end before the start is refused.
Dates select days in the venue's time zone. A Berlin show at 23:30 local on 28 Mar 2027, which is 21:30 UTC, is found when searching 28 Mar 2027. A show at 00:30 local on 29 Mar 2027, which is 22:30 UTC on the 28th, is not found for 28 Mar 2027 and is found for 29 Mar 2027.
A city with no shows returns an empty list and not an error. City and category together return only shows that match both. Paging has no gaps and no repeats, even when a show is published between two page requests.
Architectural guidance
Searching by UTC day puts a late show on the wrong date for an attendee planning an evening out. A page boundary that moves when a new show is published makes attendees see the same show twice or miss one entirely. Both failures are silent: there is no error, only a buyer who did not find the show.
Acceptance criteria
Search is loaded with 50,000 published shows spread across 140 organisers. A load run of 100 requests a second for 60 seconds, mixing city searches, category searches and one-week date searches, ends with a 95th percentile under 300 ms and 0 errors. A request for a deep page also answers within 300 ms.
A show published during the load run is searchable within 5 seconds. A draft is never found. A show published while search was stopped is found once search is back, and appears once in results.
An operator can ask the platform to make search match the published shows exactly, and the same searches return the same results before and after.
The README names the command for the load run.
Architectural guidance
A search that is fast with 500 shows and slow with 50,000 is found out on the day the client most wants it fast. A show that is missing from search, or listed twice after a restart, costs the organiser sales without any error to point at.
Acceptance criteria
Each ticket type on a show page and in search results shows "sold out" when no seat is available, "low" when 10% of its capacity or less is available, and "available" otherwise. A show reads as sold out only when every one of its ticket types is. Results show when each figure was last updated.
After the last seat of a ticket type is sold, its badge reads "sold out" within 5 seconds. A burst of holds, expiries, sales and late payments runs while parts of the platform are restarted at random, and every badge then matches the true availability within 5 seconds. The same run repeats with some of the changes reported twice or in a different order than they happened, and every badge still matches. A late payer who got the seats counts as sold, and a late payer who is owed a refund does not.
An operator can ask the platform to recalculate every badge, and each badge afterwards matches the one before.
Architectural guidance
After a restart, or after the same change is reported twice, a badge can quietly disagree with the truth and stay wrong.
Acceptance criteria
One command stops checkout and sends the Phase's search load, 100 requests a second for 60 seconds across 50,000 shows, together with requests for show pages. Show pages return ticket types, sale windows in the venue's local time, badges and the time last updated. The 95th percentile stays under 300 ms with 0 errors, and badges show their last known value.
A show published while checkout is stopped is found, and its ticket types appear without a badge. After checkout returns and the last seat of one ticket type is sold, that badge reads "sold out" within 5 seconds and the other badges are unchanged.
You have run the test against a build deliberately made wrong, one in which search waits for checkout, and recorded errors above 0.
Architectural guidance
On the arena on-sale, browsing, queueing and checkout slowed together. If search needs checkout to answer, a checkout outage also takes the show listings away, and attendees who cannot find the show do not return when checkout does. The check exists so that a stopped checkout costs the client sales and not the whole storefront.
Architectural walkthrough
On the arena on-sale the spike slowed search for people who were only looking. Browsing, queueing and checkout all waited on the same thing, so the load from the buyers fighting for seats took the listings away from everyone else. Search is the front door for 3,500 shows a year, and an attendee who cannot find a show does not come back when checkout recovers.
A badge on a show page is a promise to the buyer. One that says "available" for a sold-out show sends buyers into a checkout that refuses them. One that lags by minutes does the same after the show is gone, and one that stays wrong after a restart keeps doing it until someone notices. The client finds out from buyers and from organisers asking why a sold-out show still draws complaints.
Search also has to be right in places that look like details. A show at 23:30 local time on 28 Mar 2027 belongs to 28 Mar 2027 for the person planning the evening, not to the UTC date it falls on. A page boundary that moves while a show is published makes an attendee see one show twice or miss another. Neither produces an error, only a buyer who did not find the show.
Admit buyers fairly
Produces presale registration with one code per fan, a fair random queue, and admission at 100 a second with a 15 minute pass. No checkout yet.
Acceptance criteria
A show's presale opens at the earliest presale opening among its ticket types, and general admission opens at the earliest general opening. A fan who registers before the presale opens gets a registration and a code. Registering the same buyer again returns the same code, including when two registrations from that buyer arrive at the same moment. Registering for a show with no presale, or after its presale has opened, is refused.
A code cannot be guessed. It carries at least 64 bits of randomness, its length and alphabet are documented in the README, and knowing the buyer, the show or any other code gives no help in guessing it. A test that registers 1,000 fans cannot predict one code from the others.
During the presale, redeeming the code with the right buyer and the right show puts the buyer in the show's line, and redeeming it twice returns the same place. These are refused: redeeming before the presale opens, redeeming after the general sale has opened, redeeming with another buyer's identity, and redeeming a code issued for another show.
Architectural guidance
A fan who registers twice and gets two codes can pass one on. Two registrations from one fan that arrive together still have to produce one code.
Acceptance criteria
A buyer who joins before the general sale opens is told they are waiting for the sale to open and sees no position. When the sale opens, everyone who joined before it is placed in random order. With 10,000 early joiners who joined in a known order, the rank correlation between join order and final place falls within plus or minus 0.05. Placing them in arrival order would give 1.0.
Buyers who join after the general sale has opened are behind everyone already in line, in join order. With no presale code holders, 500 later joiners hold places 10,001 to 10,500. Presale code holders who redeemed before the general sale sit ahead of the whole general line, in the order they redeemed.
Architectural guidance
Organisers promised their fans a fair chance, and a sale that starts with a race gives them the complaint instead. Later arrivals who are not kept in the order they came have the same complaint.
Acceptance criteria
Buyers are admitted from the front of the line at no more than 100 a second for a show. In any one-second window on the clock, a test counts at most 100 admissions. With 10,000 buyers waiting and the clock stepped one second at a time, 100 are admitted per step in line order, presale code holders first, until the line is empty. After an hour of clock time with an empty line, 500 buyers who then join are still admitted at 100 a second and not all at once. With no line and the sale open, a joining buyer is admitted in the same second. Nobody is admitted before the sale has opened for them, so a presale code holder waits for the presale and a general buyer waits for the general sale.
Each buyer holds one live place per show. A second join while waiting or while admitted returns the existing place and the line counts the buyer once. Many simultaneous joins from one buyer make one place. After a pass ends, a buyer who joins again goes to the back of the line, behind everyone waiting, and again holds one live place.
An admitted buyer holds a pass that is valid for 15 minutes from admission and is never extended. The pass names the show, the buyer and its end time. Asking for it again returns the same pass with the same end. A buyer who has not been admitted gets no pass. The pass cannot be forged, altered, or used for another show or another buyer, and holds no name, email or other personal detail. The pass is checked at checkout in Take Orders, including with the queue stopped. This Checkpoint states in plain words what the pass is for and leaves the checking to that one.
Architectural guidance
Admitting everyone at once repeats the arena outage, because 40,000 buyers reaching checkout within a minute is what slowed payment down. A buyer who joins ten times and holds ten places multiplies their chances against fans who joined once.
Acceptance criteria
One command proves fairness and the admission rate for the biggest sale. It runs one show with 40,000 general buyers, 30,000 joining before the general sale opens and 10,000 after, and at least 500 presale code holders. It uses a fixed seed and steps the clock one second at a time until everyone has been admitted. It prints the maximum admissions in any second, the rank correlation and the number of order inversions.
The command exits 0 only if all of these hold. The maximum admissions in any second is 100 and never more. The 40,000 general buyers take at least 400 seconds. The rank correlation of the 30,000 early joiners is within plus or minus 0.05. The 10,000 later arrivals are admitted in join order after every early joiner, with 0 inversions. Every presale code holder is admitted before the first general buyer. A buyer who joins three times appears once. A buyer whose pass ended and who joins again is behind every buyer still waiting and holds one live place.
You have run the command twice against builds deliberately made wrong, once with random order replaced by join order and once with the admission rate limit removed, and recorded both failures.
Architectural guidance
A fair line and a limited rate fail in ways that look fine in a small test. The arena on-sale showed 40,000 buyers within a minute, and a limit that is correct for 500 buyers can be wrong for that number. A check that has never been seen failing proves nothing, so builds known to break each rule have to fail it.
Architectural walkthrough
On the arena on-sale, 40,000 people arrived within a minute, and everything behind the front door slowed under them. A queue that admits everyone at once repeats that, because the load that took payment down is the load of everyone reaching checkout together. A queue that follows arrival order is unfair in a different way: it rewards bots and fast connections, and a fan on a slow phone is behind them whatever time they started.
Presale is where organisers are most exposed. A code that can be guessed, derived from something a scalper can see, or handed to a second person sends resellers ahead of the fans the organiser promised the presale to. A fan who registers twice and receives two codes can pass one on. When two registrations from one fan arrive together, they still have to give one code.
A line has limits too. One place per buyer only means something if a buyer who joins ten times, or from ten browser tabs at the same moment, still holds one place. An admission pass that can be forged, extended or used for another show lets anyone skip the line. Each of these costs the client in the same way: organisers who complain that fans did not get tickets, and a repeat of the outage when the rate is wrong.
Take orders
Produces an all-in price shown first, a checkout that needs an admission pass and holds the seats, a limit of 4 tickets per buyer that holds under pressure, and unpaid or abandoned orders that free their seats. Payment is not built yet: an order can be started and can end, but not yet be paid.
Acceptance criteria
A buyer asks for a price by naming a show, a ticket type and a quantity of 1 to 4. The answer is a quote with the unit price at the current clock time, the service fee per ticket, the facility charge per ticket, the total in euros, and when the quote stops being valid. The all-in price appears in the first response a buyer gets, before any seat is held.
One ticket at 3,800 cents gives a service fee of 304 and a total of 4,304. Three tickets total 12,912. A unit price of 3,807 gives a service fee of 305 and 3,806 gives 304. At the instant a new tier starts, the quote shows the new tier. A quote is valid until the next tier starts, and has no end during the last tier.
A quantity of 0 or 5, a ticket type outside its sale window, and an unknown ticket type are each refused. With show management stopped, a price request for a published ticket type is still answered.
Architectural guidance
A total that differs from the price shown a minute earlier by a cent, because the fee was rounded in two places, starts a dispute the client cannot win. Show management being down on a busy night should not stop buyers from seeing what they would pay.
Acceptance criteria
An admitted buyer with a valid quote starts a checkout. The request carries the quote, the admission pass, the buyer, a name and an email, and the buyer's mark for that attempt. These are refused: a pass 15 minutes and 1 second after admission, a pass for another show, an altered pass, a pass for another buyer, a quote that is no longer valid with the buyer told the new price, and a malformed email. Checkout works with the queue stopped.
A valid request creates one order waiting for payment. It holds the quote's quantity of seats, its total equals the quote total, and it ends when the hold does. If there are too few seats, no order exists and the buyer is told so. A ticket type outside its sale window is refused. If seats cannot be held at that moment, the request is refused within 5 seconds and no order exists.
The same attempt sent twice, including at the same moment, creates one order and one hold. A new attempt creates a new order.
Architectural guidance
A buyer whose connection drops and who taps the button again should end up with one order, and a buyer who is refused should not be left with an order nobody can finish. A checkout that waits on something stopped ties up buyers for as long as it waits, at the moment of highest load.
Acceptance criteria
One buyer can never take more than 4 tickets for a show, counted across ticket types. Orders waiting for payment, paid orders, and orders with a refund in progress count. Expired, failed and refunded orders do not.
With 3 tickets in orders, a request for 2 more is refused with no order and no hold, and a request for 1 succeeds. 2 floor tickets plus 2 VIP tickets reach the limit. With many simultaneous one-ticket checkouts from one buyer with a valid pass, each a new attempt, exactly 4 succeed, 4 seats are held for the buyer and the count ends at 4.
A checkout refused for lack of seats leaves the buyer's count where it was. After the clock moves 10 minutes and the four holds have expired, the buyer can take 4 again.
Architectural guidance
A refused checkout that still counts against the limit locks out a buyer who got nothing. The limit exists to protect the fans who waited in line, and it has to hold when requests arrive together.
Acceptance criteria
When a hold ends, the order it belongs to shows as expired within 30 seconds on the clock. An order does not expire early. With the ending of unpaid orders paused while holds expire, and resumed afterwards, every affected order ends expired and none is lost. An order whose hold has ended ends expired once, however many times the platform tries to end it, and trying to end an order that is not waiting for payment changes nothing.
A buyer who abandons the checkout tells it so, and the seats are available at once and the order shows as expired. Abandoning twice changes nothing. Whichever of abandon and expiry is handled first, the order ends expired once.
Architectural guidance
A process that stops while holds expire must leave no order waiting for payment once it is back. An order ended twice must not free its seats a second time to a different buyer.
Acceptance criteria
One command proves that unpaid checkouts return every seat and that the show tells the truth about it. It starts from empty data with the 1,000-seat VIP ticket type and 1,000 admitted buyers who each start a one-ticket checkout nobody pays. The run ends with 1,000 orders waiting for payment, 0 available, and the show page reading "sold out" within 5 seconds. A further buyer is refused and no order is created.
The clock moves 10 minutes. All 1,000 orders are expired, the trace of each order shows exactly one expiry, 1,000 seats are available again, the badge reads "available" within 5 seconds, and every buyer's count is 0. A second group of 1,000 buyers then takes all 1,000 seats.
A repeat run in which the platform tries to end every order twice, and with the ending of unpaid orders paused during expiry and resumed afterwards, ends with the same counts. In a run where some buyers abandon explicitly, their seats return at once. With checkout stopped, a request is refused within 5 seconds, creates no order, and leaves the buyer's count unchanged.
You have run the command against a build deliberately made wrong, one in which unpaid orders never expire, and recorded the output.
Architectural guidance
A show that sells out on paper while the room is empty costs the organiser the sales of the seats nobody pays for. The 1,000-seat run is small enough to repeat and large enough to expose a seat that is returned twice or not at all. A check that has never been seen failing proves nothing, so a build that leaves orders waiting must fail it.
Architectural walkthrough
A buyer who first sees the fees at the last step abandons the purchase or complains, and a price that differs between what was shown and what is charged starts disputes. The all-in price has to be the first thing a buyer sees, and the figure has to be the same cent that the order later totals.
Checkout is where a queue is either respected or not. A checkout that does not check the admission pass lets anyone skip the line, and the fans who waited lose their places to whoever knows the address. A limit of 4 tickets per buyer that is checked and then applied lets one buyer take 40 tickets with 40 simultaneous requests, and the scalper is ahead of the fans again.
Orders that nobody pays are the third failure. Seats held for orders that will never be paid keep a show looking sold out, and the organiser sees empty seats at the door on a night the platform called sold out. A buyer who walks away expects the seats to come back to the next person, and a checkout that cannot hold seats has to say so quickly and not leave an order behind that nobody can finish.
Take payments
Produces a pretend payment processor that misbehaves on demand, a charge with bank approval and declined cards, processor notices handled when they arrive late, twice or out of order, and a full refund for a buyer whose seats are gone. It does not issue tickets, cancel shows or pay organisers.
Acceptance criteria
Your repository holds a written timeline of one checkout on the simulation clock: the seats being held, the hold ending 10 minutes later, the payment attempt starting, the bank wait of 1 to 6 minutes, and the processor's confirmation arriving. The document says what the buyer, the seats and the order show at each point.
You work five outcomes through that timeline: the bank answers in time and the charge succeeds; the bank answers in time and the buyer fails the bank check; the card is declined; the buyer never finishes the bank step; the bank answers after the hold ended, which is the late payer, with both of its endings (the buyer gets the seats, or the buyer is owed the full amount).
The timeline states the worst case as a number: a buyer who starts the bank step more than 4 minutes after taking the hold can still be at the bank when the hold ends, if the bank takes 6 minutes. It states that the hold is not extended and gives the reason in two sentences. It names the time after which the platform stops waiting for the bank and tells the buyer the bank check timed out. This brief suggests 10 minutes after the attempt starts, and you may choose another figure and say why.
Architectural guidance
A team that has not worked the timeline treats a payment finishing after the hold as a rare error and writes no outcome for it. That is how the arena sale produced 200 buyers who paid for seats that were already resold. The document is what every later check in this Phase is measured against.
Acceptance criteria
You have built a pretend payment processor that can cause every behaviour this Phase tests. The brief gives behaviours only. How you build it and how the platform talks to it are up to you.
A charge can end in success, in a decline, or in a bank approval step. The bank step answers after a random 1 to 6 minutes of simulation time, can be told to fail, and can be told never to answer. The same charge request sent twice produces one charge.
The processor tells the platform what happened and tells it again until the platform confirms it received the news. Each notice carries proof that it is genuine, in a form you choose. A setting makes 5% of notices arrive twice, delays 10% past the 10 minute hold, and delivers 3% behind a later one. The percentages are settings, and a run is repeatable from a seed. A test can send one notice whose content was altered and one stamped 6 minutes old.
It refunds a charge once per refund request, and a setting makes the first refund call fail so a retry succeeds. It sends an early fraud warning for a chosen charge. It opens a dispute on a chosen charge once the clock reaches a date the test gives, and decides it by one rule: evidence containing the ticket's door scan wins, anything else loses, and no evidence within 7 days of opening loses.
Each day it produces a settlement report listing every charge, refund, dispute, processing fee and dispute fee. The processing fee is 1.5% of the amount charged plus 25 cents, rounded half up per payment, so a 4,304 cent charge settles with a fee of 90. The dispute fee is 2,000 cents. It never writes a full card number to a log or to its report, and it holds none of the platform's data.
Architectural guidance
Without a processor that fails on purpose, every later check in this Phase passes on the happy path and says nothing about sale day. Real processors do not repeat a late, doubled or reordered notice on request, so the failures have to be manufactured before they can be tested. A fake that only ever succeeds leaves the client with the 200 buyers again.
Acceptance criteria
A pretend buyer pays an order waiting for payment. The card details go from the buyer straight to payment and appear in no other request, record or log. A search of every log and record after a run finds no full card number.
Asking to pay the same order twice charges once. Killing the process after the processor took the charge and before the platform recorded it still ends, on restart, with one charge and a recorded result. The buyer sees one of: paid (with or without the bank step), declined, bank check failed, bank check timed out, or a processor error after the platform retried the charge.
A ticket at 3,800 is charged 4,304 with a processing fee of 90. Three tickets are charged 12,912 with a processing fee of 219. The amount charged equals the quote even when a price tier changes during a 5 minute bank wait: quote 4,304, charged 4,304.
A successful payment on a live hold sells the seats and the order becomes paid, whichever of the two facts the platform learns first. The same success arriving twice gives one sale and one paid order. A failed payment marks the order failed, frees the seats at once and lets the same admission pass start a new checkout. An attempt that has not reached the processor when its order expires is cancelled and never charged. An attempt already at the bank is left to finish, and a success is settled by the late payer rule.
From here the product no longer accepts a bare claim from outside that a hold was paid. The stand-in from the seat-holding Phase is gone, and only a genuine processor result sells seats.
Architectural guidance
If the platform dies after the processor takes the money and before it writes that down, the buyer is charged and holds nothing, and nobody learns of it until the buyer phones. Charging again on restart is the opposite failure and costs the same trust. Quoting one price and charging another is a consumer-protection problem as well as an accounting one.
Acceptance criteria
A notice with a wrong proof, a body altered by one byte, or a stamp 6 minutes old is refused. It changes nothing, and it is answered so that the processor sends it again. A resend a day later with a fresh stamp is accepted.
The pretend processor's 5% duplicates produce no second success. Two copies delivered at the same instant still produce one.
What the processor says happened first counts as first, whatever order the notices arrive in. A notice that finishes a charge arriving before the notice that the bank step began still ends with the payment paid and exactly one success. The older notice arriving afterwards changes nothing.
Across enough charges with the 5%, 10% and 3% mix running, the number of paid payments equals exactly the number the processor reports as successful.
Architectural guidance
A processor does not promise to deliver each notice once or in order. A platform that books whatever arrives moves a paid order back to waiting when a stale notice lands late, or sells a second ticket for one payment when a copy arrives. A platform that trusts a notice without checking it lets anyone who can send a web request mark an order paid.
Acceptance criteria
A payment that succeeds after its hold ended makes one attempt to get the seats back. If they are free, the buyer gets them and the order becomes paid. If they are not, nothing is sold and the buyer is refunded the full amount charged exactly once. An expired order becomes paid only by this route.
The refund happens once even when the buyer's payment success arrives twice or the refund is requested twice. When the processor's first refund call fails, the platform tries again on a schedule you choose, and the buyer is refunded once. The refund's breakdown (face value, service fee, facility charge) sums to the amount charged.
The test case: a ticket type with 10 seats, 10 buyers each holding one, all 10 holds ending, 6 other buyers then holding 6 seats, and then all 10 late payments succeeding. Exactly 4 buyers get seats and exactly 6 are refunded the full amount once each. Sold plus held never exceeds 10 at any point.
Architectural guidance
A buyer who paid for seats that are gone and receives neither seats nor money is the 200 buyers of the arena sale. A refund that runs twice, because the first call failed and was retried after it had actually worked, costs the client real money that is hard to claw back from a buyer. A rule that grants the seats to a late payer without checking that they are still free sells the same seat twice.
Acceptance criteria
One command runs the full purchase path (hold, charge, bank step, confirmation) on a ticket type with fewer seats than buyers. The pretend processor runs the whole mix at once: 5% of notices twice, 10% delayed past the hold, 3% out of order, plus declines and abandoned bank steps.
The output shows: sold seats never exceeded capacity at any point of the run; every successful payment ended in a paid order or a refund and the number ending in neither is 0; the number of refunds equals the number of late payers without seats and every refund is the full amount charged. A second run with every refund failing once shows the same counts.
The run is repeatable from a seed, and a failing run prints the seed. You have run the command once against a build you deliberately broke so that it always gives a late payer the seats, and recorded the output showing sold above capacity.
Architectural guidance
Each failure in this Phase passes alone and the combination fails on sale day, because a duplicate arrives during a delay while a refund is failing. The two promises to the client are that no seat is sold twice and no buyer pays for nothing, and neither is visible in a single happy-path run. A test that cannot fail on a broken build proves nothing about a working one.
Architectural walkthrough
In the arena on-sale about 200 buyers were sent to their bank, waited, and came back to find their held seats resold. Their payments still went through. The company took money for seats it no longer had, and refunded those buyers by hand over two days.
The bank's approval step takes 1 to 6 minutes, and a hold lasts 10 minutes. A payment that finishes after its hold ended is ordinary traffic on a sale day, and the platform must have a defined outcome for it: the buyer gets the seats if they are still free, and otherwise gets every cent back.
The payment processor is outside the platform and does not keep its promises politely. It sends the same confirmation twice, sends one late, sends one behind a message about something that happened after it, and sends one that someone altered on the way. A platform that books every confirmation it hears sells two tickets for one payment or refunds one buyer twice. A confirmation that is old or does not check out must not change anything, because a replayed message is how a stranger gets a free ticket.
A process can also die after the processor took the money and before the platform wrote that down. On restart the buyer must end up charged once with a recorded result, not charged and forgotten, and not charged again. Each of these costs the client money that is hard to find afterwards: charges for nothing, double refunds, and nights spent matching the processor's report to the platform's numbers.
Issue tickets and admit at the door
Produces one ticket per paid seat, a code that changes every 15 seconds, ticket transfers and a door scan that admits each ticket once. It does not refund, cancel or dispute; refusing a revoked ticket comes with the refunds in the next Phase.
Acceptance criteria
An order of 3 seats that becomes paid gets exactly 3 tickets, and the buyer holds each. The same paid order reported twice, including at the same moment, still leaves exactly 3 tickets.
The buyer receives one email per order, readable in the mail inbox, listing the tickets. Nothing a ticket shows, and nothing a door scanner receives about it, carries the buyer's name or email.
With ticket issuing stopped while orders are paid, those orders get their tickets and the one email when issuing returns. A duplicate report of a paid order never sends the email a second time.
Architectural guidance
Surplus tickets from an order handled twice get resold or handed out, and the door admits more people than paid. A buyer who paid while ticket issuing was down is left with a charge, no ticket and no explanation. A buyer's name on every ticket spreads personal data into places that must later be cleaned.
Acceptance criteria
The holder can ask for the ticket's current code. Two requests in the same 15 second step return the same code, and a request in the next step returns a different one. Someone other than the holder is refused.
A code verifies in the step it was made in and in the next. A code made at the start of a step works 29 seconds later. At 31 seconds it is refused as "code expired". A code that does not belong to the ticket is refused as "code invalid". Moving the clock 31 seconds between asking for a code and verifying it shows the difference.
No email or log holds anything from which a later code of the ticket could be made. A search of every log and mail after a purchase finds nothing of the kind.
Architectural guidance
A ticket whose code never changes can be photographed, forwarded and used by a stranger. The real holder then arrives at a door that has already admitted their ticket, and the client has no way to say which of the two is genuine. A code that changes too often fails for honest holders whose phone clock is a few seconds off. Anything in a log that lets someone make a ticket's codes works for every future code of that ticket.
Acceptance criteria
A holder transfers a ticket to another buyer, naming a recipient email. The recipient gets one email, and the ticket's holder changes. The recipient's address is not kept after the email goes out, and nothing the platform stores or logs holds it.
A code the old holder fetched 5 seconds before the transfer is refused as "code invalid" at once. The new holder can fetch a working code and the old holder no longer can.
Two transfer requests for one ticket from the same holder at the same moment, to two recipients, give exactly one success and one refusal. A transfer by someone who is not the holder is refused. A ticket that has already been admitted at a door cannot be transferred.
Architectural guidance
A transfer that leaves the old holder's codes working lets the seller sell the ticket and still walk in with the screenshot. Two simultaneous transfers that both succeed leave two people each believing they own the same seat. A recipient's address kept after use is personal data nobody asked to hold.
Acceptance criteria
The pretend scanner submits a code with a mark for that scan, its door, its device and the show. The answer is admitted, or a refusal in plain words: "already used", "code expired", "code invalid", "wrong show".
Two doors scanning the same ticket in the same second give one admitted and one "already used". A scanner that repeats a scan after a timeout, with the same scan mark, gets the original answer and not "already used", and the entry is recorded once. A ticket for another show is refused as "wrong show".
When the scanner cannot reach the platform it shows "cannot verify" and admits nobody, and the pretend scanner records that result. Nothing is admitted from a local copy.
Architectural guidance
Two doors scanning one ticket in the same second can both be told "admitted", so one ticket enters twice and the second person is a stranger. A scanner that retries after a timeout and is then told "already used" turns away the genuine holder who was admitted a moment ago. A scanner that admits when it cannot verify is a free way in for anyone willing to unplug a cable.
Acceptance criteria
One command runs 12,000 tickets through 6 doors over 90 minutes of simulation time. The run includes: a share of tickets scanned at two doors in the same second, screenshots replayed 31 seconds after they were made, codes from before a transfer, tickets for another show, and a period when one door cannot reach the platform.
The result shows that every ticket was admitted at most once, and that the number of admitted entries equals the number of distinct tickets admitted. Every replayed screenshot, pre-transfer code and wrong-show ticket was refused with the right reason. The door that could not reach the platform admitted 0.
The 95th percentile of the scan decision, across all 12,000 scans, is under 300 ms, and the result prints the figure. Revoked tickets are not part of this run. They are refused as "revoked" and checked in the next Phase.
Architectural guidance
The double-entry failure only appears when two scans for one ticket overlap, so a test that scans politely proves nothing. A decision slower than the line at the door gets bypassed by staff waving people through, which defeats the control. Printing the figure and not just pass or fail shows how close the platform sits to the limit.
Architectural walkthrough
A ticket that is a fixed QR code admits whoever holds a copy of it. Someone who screenshots a friend's ticket and sends it on admits a second person, and the real holder is turned away at the door with a ticket that was already used. The client cannot tell a genuine holder from a copy, and cannot contest the card dispute that follows.
Two doors can scan one ticket in the same second. A scanner that loses its connection and decides alone cannot know the ticket was used at another door. If it admits from a local copy, one ticket enters twice. If it refuses everything while offline, a queue of paying customers stands in the rain.
A paid order handled twice can issue six tickets for three seats, and the extra three sit in someone's hands. A ticket email that goes out twice confuses the buyer, and one that never goes out produces a phone call at the door. Two transfers of one ticket at the same moment can hand it to two people. Each of these ends with a real ticket holder turned away or an extra person inside, and with a dispute the company cannot answer from its own records.
Refund, cancel and dispute
Produces card disputes answered from the platform's own records, refunds on request under the policy, fraud warnings, cancellation and postponement of a show, and proof that a cancellation refunds every buyer exactly once. It moves no money to organisers; the next Phase turns these into what organisers are owed.
Acceptance criteria
A dispute opened by the pretend processor has the disputed amount, a 2,000 cent fee, a reason (not recognised, not received, other) and an evidence deadline exactly 7 days after opening. The same dispute notice sent twice gives one dispute. The order shows an open dispute, and nobody can refund it while the dispute is open.
Before the deadline the platform assembles the order record and the ticket's scan record and sends them to the processor. An order whose ticket was admitted at a door wins the dispute. An order never scanned loses it. The outcome is recorded.
If the ticket and door features are stopped for 24 hours of the 7 days, the evidence still goes out before the deadline, still contains the door scan, and the dispute is won. Evidence is sent once per dispute even when the dispute notice arrives twice. The evidence holds no buyer name or email.
Architectural guidance
A dispute lost for want of evidence costs the client the sale, a 2,000 cent fee and the organiser's trust. The deadline is exact, and a platform with its ticket features stopped on the sixth day loses a dispute it could have won. Evidence sent twice, or a dispute counted twice, makes the books disagree with the processor's.
Acceptance criteria
A buyer can have a whole paid order refunded at face value until 7 days before the show starts, inclusive. Two tickets at 3,800 charged 8,608 give a refund of 7,600, and the 1,008 in fees stays with the platform. One millisecond after that instant the request is refused. A request for an order that is not paid, or that has an open dispute, is refused. For a postponed show the instant counts from the current start.
Pressing the refund button twice, or two requests at the same moment, produce one refund at the processor. Once refunded, every ticket of the order stops working and a door scan is refused as "revoked". A revoked ticket stays on record and cannot be transferred. A refunded ticket's seats are not returned to sale.
Architectural guidance
A refund that is issued twice is money the company cannot easily recover from a buyer. Returning a refunded seat to sale invites a rush for seats the organiser did not agree to resell, and a refund granted one hour late sets a precedent the client's policy does not allow.
Acceptance criteria
The pretend processor sends an early fraud warning for a charge. A paid order is refunded the full amount charged once, and its tickets stop working: a door scan is refused as "revoked". The same warning sent twice gives one refund.
A warning for an order already refunded changes nothing. A warning for an order with an open dispute produces no refund. A warning for a payment the platform has no paid order for is recorded and ignored. A warning never opens a dispute and never creates a money movement of its own.
Architectural guidance
A fraud warning is the processor's chance to let the company refund a suspect charge before it becomes a dispute with a fee. If the platform ignores it, the charge comes back as a dispute that costs 2,000 cents on top. If the platform acts on it twice or on an order that is already under dispute, the company pays out money it did not owe.
Acceptance criteria
After an organiser cancels a show, no new hold is accepted, the queue admits nobody, and unpaid orders release their seats. A payment that finishes after the cancellation leaves the buyer owed a full refund.
Every paid order is refunded the full amount charged, fees included, exactly once. The cancellation sent twice, or the refunding killed half-way and restarted, leaves each order with one refund. Tickets of refunded orders are revoked: a door scan is refused as "revoked". Sold seats are unchanged after the refunds, because a refunded seat is not returned to sale.
An order with an open dispute stays paid and gets no refund. When its dispute closes won, the refund is issued once in full. When it closes lost, no refund is ever issued for it. A test opens the dispute with the pretend processor.
Architectural guidance
A cancellation that stops half-way leaves some buyers refunded and some waiting, and a restart that starts from the top refunds the first half twice. Refunding an order that is under dispute pays the buyer twice, once by the refund and once when the dispute resolves against the company. Buyers who see a cancelled show and no refund fill the support inbox and the card networks.
Acceptance criteria
An organiser postpones a show with no new date. The deadline to set one is exactly 90 days after the postponement, and sales stop. Every buyer of a paid order gets one show-change email in the mail inbox, and never a second one if the news repeats.
A new date set before the deadline keeps tickets valid, and the door uses the new times. A buyer may then request a full refund of the amount charged until 7 days before the new start. A request one millisecond later is refused, and a second request gives no second refund.
If the 90 days pass with no new date, the postponement lapses once and every paid order is refunded in full, skipping orders with an open dispute as in a cancellation. A postponement ends in exactly one of rescheduled or lapsed. A new date set after the deadline is refused, and a clock jump across the deadline while a date is being set gives one outcome.
Architectural guidance
A postponement that can end both ways gives a buyer a new date and a refund, or leaves them with neither. A show-change email sent twice looks like two changes, and one never sent leaves a buyer turning up on the wrong day. The 90 day deadline is a promise to buyers, and a platform that is a minute off on it either refunds a rescheduled show or holds money for a lapsed one.
Acceptance criteria
One command sells out the 12,000-seat show in orders of one to four tickets and then cancels it. The run includes: one order with an open dispute that is later won, one with an open dispute later lost, the cancellation sent twice, the refunding killed half-way and restarted, 5% of processor refunds failing once, and one payment that finished late.
The result shows that every paid order without an open dispute has exactly one refund of the full amount charged. The pretend processor's own settlement report agrees with the platform to the count and to the cent. The order whose dispute was won is refunded once after the dispute closes, and the lost one is never refunded. No new hold is accepted after the cancellation, and sold is unchanged. Every ticket of every refunded order is revoked, and a door scan of one is refused as "revoked".
Architectural guidance
A cancellation of the biggest show touches 12,000 seats and thousands of orders at once, and the failures that matter are in the combinations. A refund missed by one buyer is a phone call and a complaint, and a refund made twice is money gone. The processor's report is the one count the client can check without trusting the platform.
Architectural walkthrough
Refunds done by hand from a spreadsheet are slow, and a mistake in one costs the client real money. A cancellation of a 12,000-seat show that dies half-way through its list refunds half the buyers, and a restart that begins again refunds some of them twice. The company then has to find out which buyers were paid, and ask some of them to give money back.
A card dispute is decided on evidence sent before a deadline. A door scan proves the buyer entered, and the dispute is lost if that scan never reaches the processor. A refund issued for an order that is under dispute means the company loses the money twice, once to the buyer and once to the card network. A refunded ticket that still opens the door means the buyer has the money and the seat.
Postponing a show without a date leaves buyers holding tickets for nothing. If the platform lets the postponement end both ways, a buyer ends up with a new date and a refund, or with neither. These errors are discovered by the buyers who phone, and the organiser who is told the company paid out money the show never earned.
Pay the organisers
Produces what each organiser is owed from every sale and refund, money held until the show has happened, a statement checkable line by line, clawbacks, and a reconciliation to the processor's settlement. It does not change how buyers pay.
Acceptance criteria
An organiser can see what they are owed show by show, sale by sale and refund by refund, to the cent. For a paid order, face value and facility charge go to the organiser, the service fee goes to the platform, and the processing fee is a debit on the organiser. One ticket at 3,800 gives 3,800, 200 and 304, with a debit of 90 and a net of 3,910. Three tickets give one processing fee debit of 219 for the whole payment.
A refund on request of 3,800 reverses only the face value, so the net becomes 110. A refund for cancellation, a lapsed postponement, a buyer's choice after postponement or a fraud warning reverses face value, facility charge and service fee, and leaves the processing fee as a debit. A refund for a late payer whose seats were gone creates nothing, because the order was never in the organiser's figures.
The same paid order processed twice adds nothing. A refund recorded before the sale it refunds ends in the same totals as the reverse order. An organiser's balance equals the sum of the lines the organiser can see. A line the organiser has seen never changes, and a correction appears as a new line.
Architectural guidance
If a notice about a sale or refund is counted twice, the organiser is credited or debited twice for one order. If a refund arrives before the sale it undoes and is ignored, the organiser keeps money that was returned to the buyer. A balance that does not add up from its lines cannot be defended in a dispute with that organiser.
Acceptance criteria
The organiser's money for a show is released when the clock passes 72 hours after the show ends, and not one millisecond before. The release is made once per show. Checking for payouts due twice, at the same moment, or after a clock jump that crosses the due time of several shows, releases each show once.
A rescheduled show releases from its new end. A postponed show with no new date releases nothing, and neither does a cancelled show. A show whose net is zero or negative at that moment releases nothing. The negative case is recovered in a later Checkpoint.
Architectural guidance
Paying an organiser at the sale is easy and wrong, because refunds, disputes and cancellations arrive for days after. A payout released twice sends the organiser double the money, and a payout released early for a show that is then cancelled is money the company has to chase. The hold is the company's only protection against paying for a show that did not happen.
Acceptance criteria
Every payout comes with one statement. Its lines cover face values, facility charges, processing fees, refunds, dispute debits and fees, each with the order, the refund or dispute where there is one, the date and the amount. The signed sum of the lines equals the net and equals the payout amount to the cent.
A show of 3 orders computed by hand from the documented rules gives the same figures as the statement. Fetching the statement again returns identical content. A later refund or dispute does not change an issued statement. It appears on a later one, as does a clawback for a show's leftover negative balance, as its own line.
The organiser documentation explains how to check a statement using the worked order (3,800, 304, 200, 90) and says what each line type means.
Architectural guidance
An organiser who cannot add up the statement does not believe the payout. A statement that changes after it was sent cannot be audited, and the organiser and the client end up arguing over which version was true. The documentation is part of the product, because the person checking is an organiser's bookkeeper who never saw the platform.
Acceptance criteria
A dispute opening debits the organiser the disputed amount plus 2,000. A win credits the amount back and not the fee. A loss adds nothing. For a 4,304 charge, opening debits 6,304 and a win leaves those lines at minus 2,000.
A refund or dispute recorded for a show whose payout was already released creates a clawback with its cause (refund, dispute or negative balance). If the organiser has another payout falling due in the same calendar month in Europe/Amsterdam, the clawback is deducted from it and shown as its own statement line. Otherwise one invoice statement is issued at month end, listing every clawback it covers.
A show reaching its release time with a negative net records one clawback for the shortfall. A cancelled show whose 3 orders were all refunded ends at minus the sum of their processing fees, and the clawback equals that sum. A zero balance releases nothing and records nothing. A postponed show with no new date records nothing. Checking for payouts due twice, including at the same moment, records it once. A payout smaller than the outstanding clawbacks releases nothing and leaves the remainder outstanding. A clawback is recorded once however many times its cause is reported.
Architectural guidance
A refund that arrives after the payout is money the company already handed over, and recovering it from the organiser is the only way to get it back. Recovering it twice, or from the wrong month, turns the company into the organiser's creditor for a mistake. A dispute fee left out means every dispute loses 2,000 cents the company never recovers.
Acceptance criteria
One check compares the platform's totals for a period (charged, refunded, processing fees, dispute amounts, dispute fees) with the processor's daily settlement report, and prints each difference in cents. On a clean simulated day with charges, refunds that failed once and then succeeded, a won dispute and a lost one, every difference is 0.
The check is shown to fail. With each of these broken in turn it reports a non-zero difference and names the category: an amount changed after it was recorded, a paid order missing, a dispute fee not recorded, a processing fee computed per ticket and not per payment (a 3 ticket order shows 220 and not 219). The processor's report is the source of truth, and the platform's own totals are not.
Architectural guidance
A platform that only checks its own books against themselves agrees with itself even when the processor disagrees. A cent lost on every multi-ticket order stays invisible until a month of orders makes it a sum an accountant cannot explain. A check that has never been seen to fail may be checking nothing.
Architectural walkthrough
An organiser is paid from money the company took in, and much of that money can still leave. A payout released before the refunds are due means the money has gone, and the company pays the difference from its own pocket. A cancelled show whose organiser was already paid costs the company the full amount of every refund.
An organiser who cannot check a statement does not trust it. A statement that changes after it was issued cannot be checked at all. A fee rounded per ticket and not per payment is off by a cent on every multi-ticket order, which adds up to a difference that nobody can find. A dispute fee forgotten, or a processing fee counted against the wrong party, makes every figure after it wrong.
Refunds and disputes keep arriving after the payout. The company has to take that money back from an organiser who was told the matter was closed, and it has to do it once and explain it line by line. The cost is money the company cannot recover, organiser disputes, and hand-made corrections made in a spreadsheet at month end.
Operate the platform
Produces what an operator needs on sale day: one order's story, an admission rate that slows when checkout degrades, a way to finish stuck work, and one command that checks the platform's numbers. It adds no buyer-facing feature.
Acceptance criteria
Given an order, an operator can print or open everything that happened to it, in order, from the buyer's admission to the door and any refund, including a refund caused by an organiser's cancellation. Each line says what happened, when, and what caused it, as a chain.
A normal purchase reads: admission, checkout started, seats held, payment succeeded, seats sold, order paid, tickets issued. A late payment shows the hold ending, the late settlement, and then either paid or the refund path. A line whose cause is missing from the trace is flagged as a gap. Work that is stuck shows as stuck. Nothing in the trace holds a buyer's name, email or card detail.
Architectural guidance
When a buyer says they paid and have no ticket, the operator has to answer in minutes, not by reading the code. An order whose story cannot be told in one place sends the operator through several systems at once during the busiest hour of the year. A trace that carries the buyer's personal details moves those details into a place that has to be cleaned later.
Acceptance criteria
The checkout error rate is the share of checkout requests in the last 30 seconds that ended in a server error or a timeout, including a request refused because seats could not be held. When it is above 5% over 30 seconds, admission for the show halves from 100 a second to 50. When it is below 1% it returns to 100.
Each change is recorded with the reason, the previous rate and the new rate, whether it came from the automatic rule, an operator override or recovery. An operator can set the rate or pause admission for a show. An override holds until the operator clears it, and while it holds the automatic rule changes nothing. A paused show admits nobody. Buyers already admitted keep their passes for the 15 minutes, and buyers in line keep their places and are admitted in the same order after the pause.
With about 20% of checkouts failing, the rate drops to 50 within one 30 second evaluation. A second evaluation above 5% halves it again. Once failures stop and the rate is below 1%, it returns to 100. If the platform cannot tell how checkout is doing, the current rate is kept and is not raised.
Architectural guidance
A rule that cannot be overridden fights the operator when they know better than the number. A rate that rises when the platform cannot tell how checkout is doing raises it exactly when it should not.
Acceptance criteria
You cause one failure at a time and check the result: a refund the processor keeps refusing, a ticket email that cannot be sent, and a paid order whose tickets cannot be issued. After repeated failures, the order is marked stuck. You choose the number of attempts and document it, and the brief gives none. The cause and the number of attempts are visible to an operator and in the order's trace.
Orders behind a stuck one complete normally in the meantime. After the cause is fixed, the operator finishes the stuck order with one action, and it completes once: one refund, one set of tickets, one email. Finishing it twice changes nothing.
The operations note states how an operator finds stuck orders and how they finish them.
Architectural guidance
A stuck order that nobody can see is a buyer who has paid for nothing and is waiting for a phone call. Finishing it twice, because the operator pressed the button a second time while nothing seemed to happen, doubles the refund or the tickets.
Acceptance criteria
One command checks six rules that must always hold and names the offender when one fails. Sold never exceeds capacity for any ticket type. Every successful payment ends in a paid order or a refund. Every paid order has exactly its quantity of tickets. No order is refunded twice. Every money line traces to a sale, refund or dispute, and every clawback traces to its order or, for a negative balance, to its show. The organiser figures match the processor's settlement.
The command prints each rule as passed or failed. For a failure it prints the IDs involved (ticket type, payment, order, line). It exits non-zero when any rule fails, and it only reads. Work still in progress is reported as a count and is not a violation of the rule that needs it to finish.
With a deliberately broken run for each of the six, the command fails on exactly that rule and names the offender. On a clean system all six pass. The operations note lists the rules, and any you add.
Architectural guidance
Numbers kept in different places drift apart quietly, and the first person to notice is usually an organiser reading a statement. A check that has never failed on purpose may be checking nothing. A check that changes data while it checks cannot be trusted on a live sale.
Architectural walkthrough
On sale day something goes wrong, and the operator has to find out which order is stuck and why. If nobody can tell, buyers who paid with no ticket stay that way until they phone, and the support team answers each of them by guessing.
A line that keeps admitting buyers at full speed into a checkout that is failing turns a slowdown into an outage. Every failed checkout is a buyer who held seats and left, and the show looks sold out to everyone else. One refund that the processor keeps refusing must not hold up the thousands of refunds behind it, or a single bad order delays every buyer's money.
Numbers drift. Seats sold, orders paid, payments taken, tickets issued and money owed to organisers come from different places, and they can disagree for hours before anyone notices. An organiser who finds the difference first costs the client more than an operator who finds it in the morning.
Prove the on-sale
Produces the proof runs of the 40,000 buyer sale: a clean run, each capability stopped in turn, one capability replaced during a live sale, and a full day with every failure at once. It adds no feature.
Acceptance criteria
The largest sale runs at the client's volume with no failures injected: 40,000 buyers for 12,000 seats in three ticket types (8,000 floor, 3,000 stand, 1,000 VIP), buyers wanting 1 to 4 tickets, with enough single-ticket buyers to take the last seats. Some cards need the bank step and some are declined.
The result shows: admission never exceeds 100 buyers a second in any second; sold equals exactly 12,000, with 8,000, 3,000 and 1,000 per ticket type; no ticket type is oversold; no buyer receives a server error from checkout; buyers arriving after sell-out are told it is sold out; no buyer holds more than 4 tickets. The numbers command passes, and nothing is stuck. The result file is committed with the commands that produced it.
Architectural guidance
The incident was a sale at this volume that the platform had never seen. Tests at 100 buyers pass long before the product is ready for 40,000, and the faults that matter only show at the client's volume. A clean run is the baseline every failure run after it is compared with.
Acceptance criteria
For each of these, the named capability is stopped during a sale and the rest behaves as stated. With checkout stopped, search, event pages and the queue still work, and a checkout request is refused within 5 seconds with no order created. With the queue stopped, buyers already admitted can still check out until their pass ends.
With payment stopped for 5 minutes, buyers can still search, queue and hold seats, and orders already started wait for payment. When payment returns, orders whose holds are still live are charged once and the others are settled by the late payer rule. With tickets stopped, payments and sales continue, the tickets and their emails arrive when it returns, one each, and the door scanner shows "cannot verify" and admits nobody.
With payouts stopped, buyers can still buy and doors still admit, and when it returns the statements and totals are right. With search stopped, the queue and checkout are unaffected, and a show published meanwhile is found once search returns. After each return the numbers command passes and no order is stuck. The README lists the command for each stopped capability.
Architectural guidance
A stopped capability that takes browsing down with it turns a partial failure into a full one, and buyers do not come back to a page that does not load. Work that waits for a stopped capability and is lost when it returns means paid orders without tickets. The sale is the only day the client's volume exists, so the failure has to be tried then and not discovered then.
Acceptance criteria
During a running sale, at least two capabilities are replaced one after the other, checkout and door scanning (your choice for any others), each with a new version that makes a small visible change: for example, the price quote gains a line, or the door shows a new refusal wording. While one is replaced, the others keep serving with 0 errors.
Requests to the capability being replaced are either served or refused with a clear message within 5 seconds, and none is left waiting. No buyer who was mid-checkout loses the hold, the order or the payment, and each finishes the purchase after the swap. Orders, holds and tickets created before the swap are honoured by the new version.
A valid ticket is never refused as invalid during the swap. A scanner that cannot be answered shows "cannot verify". After the swap, the visible change shows. Sold never exceeds capacity, and the numbers command passes.
Architectural guidance
Fixes get shipped on sale day, and a replacement that drops buyers who are mid-checkout loses seats, orders or payments at the one time the client cannot afford it. A door that refuses valid tickets while its replacement starts sends paying customers away and cannot easily be told apart from fraud. The client has not given a downtime figure beyond the 5 second refusal already stated, so you document what you chose.
Acceptance criteria
The 40,000 buyer sale runs again with every failure injected: 5% of processor notices twice, 10% delayed past the hold, 3% out of order, seat holding stopped and restarted mid-sale, payment stopped for 5 minutes, each capability stopped and restarted once, 5% of refunds failing once, and one capability replaced mid-sale.
While seat holding is stopped, a checkout request ends in a clear refusal and not a hang, admission slows and is then restored, and the changes are in the record. When the run settles, the numbers command passes all six rules. Sold is at most 12,000, with no ticket type above its capacity. Once all holds have ended or been released, sold plus available equals capacity for each ticket type, so no seat is lost.
Every successful payment ends in a paid order or exactly one full refund, and 0 buyers have paid for nothing. Nothing is stuck without an explanation in the result. A final step jumps the clock past 72 hours after the show ends, releases the payouts and runs the reconciliation, which shows 0 difference in every category. The run is repeatable from its seed, and the result, the seed and the failure schedule are committed.
Architectural guidance
Each failure is survivable alone, and the arena sale did not fail alone. Duplicates, delays, a restart and a stopped payment overlap on a real sale day, and a platform that passes each in isolation can lose a seat or double a refund in the combination. This is the run that tells the client whether the next on-sale ends with apologies.
Architectural walkthrough
Every capability has passed its own tests, and nothing so far shows that the whole platform keeps one set of numbers under a spike with failures: seats sold, orders paid, payments taken, tickets issued and money owed to organisers. The arena sale failed on exactly such a day, with 12 buyers told they had the last seat and about 200 more who paid for seats already resold. Finding that out in production costs the client the 212 apologies again, and an organiser who may not come back.
A capability that stops must not take the rest with it. When one stopped capability takes down browsing, buyers who were only looking leave, and the show seems dead on the one day it is meant to be busy. A fix shipped on sale day must not drop buyers who are in the middle of checkout, because each of them holds seats, has paid or is about to.
The runs in this Phase are the place to find out. They are also the evidence the client will read before an arena on-sale, and a run that has never been seen to fail tells the client nothing.
Architectural walkthrough
Two buyers, one last seat
On the busiest second of the arena on-sale, two buyers were each told they had the last seat, and it happened 12 times. Each of those buyers paid for a ticket that did not exist. The company emailed them, refunded them by hand over two days, and the organiser has not booked with the company since.
Two people can ask for the last seat in the same instant, and the answer each one gets must not depend on which request the platform happened to look at first. The seat goes to exactly one of them, and the other is told straight away. Test this with far more simultaneous buyers than seats, and repeat it often enough that a rare ordering would show up. A test that passes once proves little here.
A hold and a payment run on different clocks
A buyer's seats are held for 10 minutes. The bank's approval step takes 1 to 6 minutes, and the processor's confirmation can arrive late, twice or out of order. Neither clock can be made to wait for the other, so some buyers will pay after their hold has ended. In the incident, about 200 buyers were sent to their bank, lost their seats to the next person in line while they waited, and paid for seats that had already been resold. They found out when the ticket email did not arrive.
The client needs a defined outcome for every late payer: the seats if they are still free, the full amount back if they are not. A charge for nothing is the one outcome the client cannot accept. A second confirmation for the same payment must not produce a second ticket or a second refund. Check each of these outcomes by name in your own build before you trust a run that mixes them.
The processor is another company
The payment processor answers late, sends the same message twice, sends messages out of order, and fails on request. Its refund call fails the first time for some refunds. Your own process can die between taking money and recording that it did. Each of these costs the client in a different way. A buyer is charged twice. A buyer is charged and has no order. A show reaches search without its ticket types. A cancellation refunds half the buyers because the process died half-way through the list.
Your tests have to cause every one of these, and the Checkpoints say where.
One part down, one part being replaced
On sale day, search, the queue, checkout, payment, tickets and organiser statements can each fail alone. The current application shares one database across browsing, queueing, checkout and reports, so the spike makes search slow for people who are only looking. If payment is stopped, buyers should still be able to search, queue and hold seats. If checkout is stopped, a buyer should be refused within 5 seconds and not left waiting.
The client also ships fixes while a sale runs. A fix applied to one capability must not drop the buyers who are halfway through checkout, because a buyer who paid and has no order phones the company, and the company cannot say what happened to the money.
At the door
A ticket copied from a screenshot admits a second person. Two doors scan the same ticket in the same second. A scanner that loses its connection and decides alone cannot know the ticket was already used at another door. A ticket that was refunded or reported as fraud has to stop working. The cost is a person with a real ticket turned away and another admitted on a copy, plus card disputes the company cannot contest because no record shows the ticket was used.
Money the organiser can check
An organiser is paid after the show, minus refunds. A refund or dispute that arrives after the payout means the company has to take money back. A statement that changes after it was issued cannot be checked, and organisers check to the cent. A processing fee rounded per ticket instead of per payment is 220 cents where the processor charged 219, and the processor's daily settlement report shows the difference.
Where it shows if you cut a corner
Each failure above has a number that gives it away. Sold seats above capacity for a ticket type point to the first. A successful payment with neither a ticket nor a refund points to the second. A buyer refunded twice, a statement that changed after it was issued, and a difference from the processor's settlement point to the money rules. A valid ticket refused while one capability was being replaced points to the last. You find each of these with a test you run before an organiser finds it in a statement.
Related Links
- Stripe Netherlands pricingthe processing fee on a payment is 1.5% of the amount charged plus 25 cents.
- Stripe: how disputes workthe bank takes the money before anyone has seen the evidence.
- Queue-it: pre-queueeveryone who joined before the sale opens is placed in random order and later arrivals are served in order of arrival.
- Eventbrite: delayed or missing payoutsan organiser is paid after the show, not at the sale, because refunds and chargebacks arrive afterwards.
- Belastingdienst: keeping your recordsorders, payments, tickets, scans and money records stay for 7 years, identified by ID, after a buyer is erased.