Eight friends, a Saturday night, your own kitchen. You know who's vegetarian, who skips dessert and who'll show up with a second bottle of wine. You did the shopping yourself that afternoon, in one trip. There's one menu, cooked for one sitting, and every plate comes out the way you planned it. Somewhere around eleven, someone leans back from the table and says it: "You should open a restaurant."
It's the same cook and the same food. Almost nothing else is the same.
Agents have made the dinner party easy. For a small browser-based workflow, an afternoon's prototype can be a single HTML page with the logic, styling and sample data inside it. You email it to a colleague, they open it, and they can try the idea. A separate server, shared database and sign-in can wait while you find out whether the workflow is useful.
Then the colleague forwards it to their team, and someone says the software version of "You should open a restaurant."
That's when the questions change. The reservation book has to survive until next Friday. Two staff members need to work from the same bookings. Someone gets the call when the stove dies, and someone writes next season's menu. The application is becoming a place where people keep their work, and its design has to account for that.
A dinner party
The prototype: one workflow, chosen data, a small group you know.
- The workflow
Why the dinner party works
A dinner party succeeds because it's narrow. You cook for people you know, you plan around what they like, and when the evening ends, so does the job. Nobody needs a reservation system for eight friends.
A good prototype is narrow in the same way, on purpose. It tries one workflow with chosen data and a small group. Some prototypes already have databases and accounts; the useful constraint is how much of the problem they take on. That is the same reason the workbench comes before the factory in Your Laptop Might Be the Best Data Warehouse You Own.
With the emailed file, the limit becomes visible when two people enter real data into separate copies. Which copy holds the current record? Who can correct it? The dinner party has acquired regular customers, and they expect their reservations to be there tomorrow.
That change can happen with three people using an internal tool. They may only need it on weekday mornings, but losing yesterday's work or overwriting a colleague's changes would still matter. The architecture grows around those expectations: what the application stores, how its parts communicate and which rules protect the work.
You should open a restaurant
A restaurant has to organize the work around the cooking. The dining room needs to be ready, the reservation book needs to be current and the staff need ways to handle changes and mistakes. A shared application needs the same attention around the workflow its prototype demonstrated.
The scale changes first. Eight friends become a dining room of strangers, every night. You can't seat them all yourself or shop for them on the way home, so you hire people, sign for deliveries and post your hours on the door. An evening you could hold in your head has become an operation.
A kitchen behind the pass: rules on the server
At the dinner party the kitchen and the table were nearly the same room. You plated at the stove and carried dinner six steps. A restaurant puts a wall between them. Orders go in on a ticket, plates come out through the pass, and every table's food is cooked in the same place, the same way, by rules the dining room never sees.
The single-file prototype kept its logic in the page each person opened, so every copy carried its own kitchen. A shared application moves those rules behind the pass. The browser sends a request, the server checks it, applies the calculation or the business rule, and returns the result. A rule changed there is changed for everyone, and nobody can skip it by editing their own copy.
Open when promised: hosting and availability
A dinner party happens when you're ready. Once a restaurant posts its opening hours, customers plan around them. If service starts at five, someone needs to have the kitchen ready and cover the night the chef has a cold.
For this shared web application, hosting gives everyone one address to bookmark and a common application to use. It has to be available when the team needs it, including while you're asleep or away. Someone decides where it runs, what it costs and how people will work if it goes down. Putting the page online solves the common address; the records and behavior behind it still need their own design.
The responsibility follows the use. An app installed on a device may run locally. A weekly internal tool may tolerate downtime that an appointment system can't. Choose availability around the work people depend on.
A full dining room: capacity
Eight friends fit at one table, and they all sat down together. A restaurant seats people who arrive when they like. On a busy night the tables fill, a party of six wants the last table for four, and someone is standing at the door asking how long the wait will be. The host needs to know how many seats are free, how long a table usually takes and what to say when the answer is none.
A prototype usually meets one person at a time, with a small set of sample data. Shared use brings many people at once and far more records than the demonstration had. A screen that loaded instantly with fifty rows can crawl with fifty thousand, and two requests that never overlapped in testing start arriving in the same second. Decide what the application does at its limit: how many people it should serve comfortably, what slows down first and what a user sees when it's busy. A wait with a clear message is something you design. A page that hangs is what you get by default.
The reservation book: shared records and a data model
A restaurant needs to remember commitments beyond tonight's meal. The person taking a booking on Tuesday may be home when the guests arrive on Friday. The host at the door needs to find the booking, see any changes and know which table is available.
Browser storage can keep data after the tab closes. The problem with separate local copies is coordinating them. For the shared workflow, a database provides a common place to save and retrieve records. The application and database together need rules for how those records can change.
Consider reservation R104: two guests, Friday at 7:00, assigned to table 6. The guests call to move it to 7:30. It remains reservation R104, even if the host also assigns a different table. The reservation has an identity of its own; the time and table are things that can change about it. The host marks it seated when the guests arrive and completed when they leave.
If the guests ask to bring three friends, a table for two won't do. If they cancel, the booking should release its table, and the restaurant may need to preserve a history of the cancellation. These are data-model decisions: what the things are, how they relate, which states they can be in and which changes are valid. A screen that displays a booking has only demonstrated part of that behavior.
Shared use introduces another problem. One host opens R104 to change the time while another opens it to record a cancellation. If both save a whole copy of the booking, the later save could erase the earlier change. One approach is to give the record a version and accept an edit only if that version is still current. When it has changed, the application can ask the host to review the latest booking before saving. The database must enforce that condition as part of the write.
That protects one record from a stale edit. Preventing two different reservations from claiming the same table at the same time requires a rule for that shared capacity too. Choosing a database includes deciding how it will support these operations, alongside the application's expected workload. The reservations on the demonstration screen become commitments the system must keep consistent.
Range of Motion, a physical therapy tool I work on with a co-founder, has its own reservation book. A patient has sessions, and each session has measurements and images. Those relationships let a report show the right evidence for the right visit. The files need storage too, with references that keep each image connected to its session. The model tells the application what belongs together and where to look when someone opens a patient's history.
An early data-access layer found many records by scanning a table and filtering afterward, like reading every ticket on the rail to find one table's order. We changed those paths to indexed lookups, the equivalent of organizing tickets by table number. The database can find the relevant records without first reading the whole table.
These decisions shape the next parts of the application. Permissions apply to particular records, tests need to exercise their valid changes and updates have to preserve the relationships people already rely on.
Hiring staff: roles and written procedures
At the dinner party you greeted everyone, cooked, poured and washed up. A restaurant has too much happening at once for one person, so you hire hosts, servers and someone for the dishes. None of them were in your kitchen last Saturday. They need to be told where things go, how a table gets cleared and what to do when a guest sends a plate back, and they all need to be told the same thing.
An application that people depend on stops being a one-person job in the same way. Someone answers user questions, someone looks after accounts, and another developer, or another agent session, changes code they didn't write. What lived in your head has to be written where they can find it: how to run the application, how a release goes out, which decisions are settled and who is responsible for what. Agents working on it need those written instructions as much as people do.
Staff badges and the register key: sign-in and permissions
At a dinner party, you recognize everyone at the door. A restaurant also needs to know who works which station and who can close out the register. A staff badge identifies the person. The register key gives them permission to do something specific.
That is the distinction between sign-in and authorization. The first establishes who someone is; the second decides what they can do with a particular record. In Range of Motion, therapists, patients and administrators have different access. The server checks ownership and organization membership when records are requested. Hiding a button on a screen can't provide that boundary.
We also restricted what the application can ask the database to do. Once the indexed paths were in place, we removed its permission to scan the tables holding patient and session records. An accidental broad scan now fails instead of reading the table. Ownership checks still matter for individual records. Each safeguard has a defined job, like a register lock alongside the rules for who gets its key.
Deliveries instead of a grocery run: suppliers and schedules
For the dinner party you went to the store that afternoon and came home with exactly what the menu needed. A restaurant can't shop that way. Produce comes on Tuesdays and Fridays, fish every morning and dry goods once a week, each from a different supplier with its own truck and its own idea of on time. Someone has to place the orders, be there to receive them, check the boxes against the invoice and decide what comes off tonight's menu when the fish doesn't arrive.
The prototype carried its own sample data, the equivalent of that one bag of groceries. The application depends on data and services it doesn't control: a nightly import from another system, a payment provider, an email service, an API that changes its format. Each one arrives on its own schedule, can be late and can deliver something other than what you ordered. The application needs to know what it expects and when, check what actually arrived, and keep working sensibly, with a clear message to the user, when a delivery is missing. Much of this work runs on a schedule with nobody watching, so it needs the monitoring described below as much as the screens do.
Guests you've never met: needs you can't guess
You knew which friend was vegetarian and who skips dessert, so the menu already fit the table. A restaurant's guests are strangers. One has a nut allergy, one keeps kosher, one is ordering for a child, and you can't tell which by looking. The menu has to say what's in each dish, the server has to ask, and the kitchen needs a way to carry "no nuts, table 6" from the order to the plate without relying on anyone's memory. A mistake here is more serious than a dish someone didn't love.
A prototype runs on data you chose and is tried by people who know what it's for. Real users arrive with names that don't fit the field, dates in another format, an old phone, a screen reader, or a perfectly reasonable request the workflow never imagined. Decide what the application accepts, check it where it enters, and say plainly what's wrong when something can't be used. Some needs have to be honored later, the way an allergy does in the kitchen. Record those as part of the data, where the next step will see them, instead of in a note someone may not read. With strangers, the cases you didn't plan for arrive every day.
A practice service: testing the whole workflow
At home, you taste as you cook and can keep the evening's plan in your head. Before opening a restaurant, a practice service lets the team try the whole sequence: take a booking, seat the guests, send the order to the kitchen and bring the right plates to the right table. A good dish is one part of a successful service.
A prototype may get its first checks from the person trying it. Once people rely on it, each change needs a repeatable way to check that existing work still behaves correctly. For a booking application, that includes moving R104 without creating a second reservation, rejecting an invalid table assignment and warning about a stale edit. The rules in the data model become behaviors to verify.
Range of Motion's changes go through automated checks and browser tests before they merge. Those tests use controlled data. Someone still needs to exercise the real workflow in its intended environment, which is the part I covered in How I Check That It Actually Works.
The practice service has limits too. During actual service, someone still checks the plates at the pass and watches for orders that have stopped moving. Software needs that attention after release as well.
When the stove dies on a Friday: support
The stove can fail while orders are waiting. Staff need to notice, find out which dishes are affected and decide what they can still serve. A restaurant also needs someone who can fix the equipment, and a way to reach them during service.
In an application, logs record events that help explain what happened. Monitoring calls attention to failures, and a person is responsible for responding. The response plan includes what users can keep doing, what they should stop doing and how work gets recovered.
Some failures leave an uncertain outcome. Imagine a waiter sends an order, the connection drops and the screen never confirms it. Sending it again could produce two dinners. The software version needs a way to check the result or recognize another attempt at the same request. Designing repeated attempts to avoid an extra effect is called idempotency. It matters for operations such as creating records or taking payments, where a retry can otherwise do the work twice.
The user needs a useful answer: saved, still pending, failed or safe to try again. Behind that answer, someone needs enough information to investigate. At seven on a Friday night, "the agent built it" doesn't tell anyone who's coming.
A new menu and a new booking form: safe updates
The menu changes. Seasons turn, a dish doesn't sell, a regular asks for something new. Staff need the current menu, and the kitchen needs to be ready to serve it. An application release similarly changes what users can do and what the system needs to support.
Changes to the records need particular care. Suppose the restaurant replaces its booking form and makes a contact number required for new reservations. R104 was taken on the old form, with no number recorded. The new system still needs to find that booking and seat its guests. Someone must decide how to represent the missing information and when staff should collect it.
Once people enter real records, an update has to carry their work forward. Changing fields, relationships or statuses can require a migration: translating existing records into the shape the new code expects. Other changes can be handled by code that accepts both the old and new forms. Either way, a missing phone number should remain unknown until someone supplies it.
Range of Motion's move to a different sign-in provider also meant changing how existing users were linked to their records. The migration runbook required a dry run, then a rehearsal against a restored copy, before applying the changes to production. That checks a different question from whether a new user can sign in: can an existing user still reach the work that belongs to them?
Backups and a recovery plan belong alongside that change. A backup is useful when it can be restored, and restoring an older copy can leave out bookings entered since it was taken. The plan has to account for that interval too. The restaurant needs a usable reservation book when the new service begins.
The health inspection
Opening to the public brings obligations beyond cooking a good meal. An inspection can reach into the kitchen's storage, cleaning routines and staff practices. Those parts of the operation matter even when the dining room looks finished.
The application equivalent starts with the information it holds and the people relying on it. Who should see it? How long should it be kept? What needs to be recorded when someone accesses or changes it? Those answers shape permissions, audit records, retention and recovery, and may bring legal or contractual requirements into the design.
Range of Motion went through this when healthcare organizations became its users. A security review turned the answers into work: a record of who accessed what, a second sign-in step for staff, automatic logoff when a session sits idle and tighter database permissions. None of it shows on the session or report screens people already used.
How the architecture changes
Here is the same change drawn as software: the one-file demo beside the application it grows into.
For this shared web workflow, the interface now connects to shared records through server-side rules. The boxes are logical responsibilities: a small app can combine them in one backend or use a managed platform.
If the app has long-running work, a queue and worker can handle it outside the interactive request. Delivery, credentials, staging and failure response add further connections to manage; starred additions depend on the workload.
Where the agent fits
Agents can help build the parts around the workflow too. In Range of Motion, they carried much of the implementation: database lookups, sign-in, tests, logs and security-review changes. Each still needed requirements and evidence that it worked.
For the afternoon prototype, leaving those parts out kept the experiment small. As its responsibilities grow, the agent needs more specific direction.
For the booking application: keep a reservation's identity when its time changes, warn when another host has edited it, preserve older bookings when a new field becomes required and check those behaviors before release. Keep those decisions in the project's instructions, as I described in Give the Agent a Working Environment. The agent can implement and test against those requirements. Someone still has to decide what the restaurant promises its guests.
Ownership stays with a person. Someone answers the Friday-night call and decides what goes on next season's menu. That's the trade the SaaS post weighs: building has never been cheaper, and owning still takes someone who shows up.
Before opening night
When a prototype starts picking up regulars, I ask twelve questions:
- Where do the rules live? Move the calculations and checks that matter out of the page and onto the server, where one version applies to everyone.
- When do people need it available? Choose where it runs, how much downtime the work can tolerate and who responds.
- How many people will use it at once, and what happens when it's full? Decide the load it should handle comfortably and what a user sees at the limit.
- What does it need to remember, and how can that change? Define the records, their relationships, valid changes and what happens when two people edit the same work. Choose storage and lookups around those needs.
- Who else works on it, and what do they need written down? Document how it runs, how changes go out and who is responsible for what.
- Who can do what to each record? Establish identity, permissions and checks on the operations that matter.
- What does it depend on that you don't control? List the imports, services and schedules, check what arrives and decide how it behaves when one is late or wrong.
- What will real users bring that the prototype never saw? Validate what comes in, handle the unusual cases and record the needs that must be honored later.
- Who checks changes before they ship? Set up repeatable tests and a check of the real workflow.
- What happens when an operation fails? Make the outcome visible, provide a recovery path and name who gets the call.
- How does existing work survive the next version? Plan the migration, backup and checks alongside the feature.
- What obligations come with the information it holds? Make access, retention, audit and recovery requirements part of the design.
If the idea is still an experiment for tonight, keep the dinner party small. When people start depending on its records and coming back tomorrow, build for that service. The cooking got them interested. Running the restaurant is what lets them return.

