Wave 3: booking, running costs, and the end of the wave
The last two tracks of the plan, one for the booking link and one for what the platform costs to run. How they were built and checked, what we measured, what is still open, and what the three waves changed together.
- Published
- Length
- 3,160 words
- Reading time
- 14 min
What wave 3 set out to do
Wave 3 was the last of the three, and the plan gave it two tracks. Both are about things a studio rarely looks at and always pays for:
- Booking. The booking link rebuilt to ask for the property first and the contact details last, to create no account until the booking is made, and to let a client pay an invoice without signing in.
- Running costs. Fewer backend runs for every change to a shoot, nightly jobs that reach every studio, a deleted shoot that can be restored, videos that say when they fail and stop billing when they should, and lighter pages for the buyers a studio’s clients send them to.
The running-cost track is the one to explain, because it is invisible when it works. Every time anything on a shoot changed, a status, a note or a payment, nine separate backend functions woke up to look at it (seven of them in production today), each one a run of its own, and most of them deciding there was nothing to do. A buyer opening a property website wrote to the shoot too, to count the view, so every view woke all of them. Wave 3 replaces the nine with one function that runs the same steps in turn, each behind a quick check of whether it applies and each kept apart, so one failing step cannot stop the others. Views are now counted somewhere else and never touch the shoot.
How it was built
The two tracks were built side by side, each by its own agent in its own copy of the repository with its own test ports, both starting from the commit that published the wave 2 post. When each builder said it was done, a second agent reviewed it adversarially. The running-cost review returned twelve findings, one of them a blocker, and the booking review returned six. Three are worth telling:
- The blocker. To start faster, each backend function now loads only its own code. Loaded that way, seven of the 170 found no database connection set up, because they had always borrowed one from code that no longer loaded with them, so every call to them would have failed, a client’s file downloads among them. No test saw it, because the tests called the code directly. The reviewer loaded all 170 functions one at a time, and that is now a test.
- Moving view counts off the shoot would have reset every studio’s property website view counts to zero on release. The old count is now carried over the first time a site is viewed again, and every page shows the larger of the two in the meantime.
- The new booking flow creates no account, so its one email was a guest’s only way back to their shoot. The sign-in page had no way to ask for another, and Forgot password sent nothing to someone who had never set one. Guests can now ask for a fresh sign-in link from the studio’s sign-in page and from the booking confirmation.
The booking review also found that the new travel-aware times, and the hint that a studio is already shooting nearby on a day, could say more than they should about where a studio’s other shoots are. Locations are now rounded before anything is compared, and each visitor has a limit on how often they can ask. Like every hardening in this post, it is described by what changed and not by how it could have been misused.
The merge, and what only showed up between tracks
An integrator merged running costs first and booking second, ran every suite after each merge, and then made the two tracks agree:
- Booking’s new public doors each had their own per-visitor limit. They moved onto the running-cost track’s scheme, whose records cannot be turned back into a visitor’s network address and carry an expiry date, and paying without signing in got a limit of its own.
- Trash reached booking: a trashed shoot’s pay link shows nothing to pay, its payment emails are not sent, checkout refuses it, and its time opens up again on the booking link.
- The Inbox badge now counts 32 kinds of alert, more than one database query can match at once, so it counts in two parts.
- One of the integrator’s own fixes made the booking link download two more files for every visitor. The final build caught it, and that code now loads only for signed-in clients.
The integrator also wrote wave 3’s part of the release runbook, and found on the way that the runbook had no step that deploys the database access rules or their indexes. Seventeen commits to the rules and four to the indexes since the last release had no path to production. The runbook has that step now, in the same minute as the web app, with a check after it. It also sets the order for retiring the old functions: the new one has to be seen receiving events before the nine it replaces are deleted.
What the verifiers found
Two verifiers then worked on the merged code. One read it deeply against every claim the tracks made and ran every check again. The other walked the running app as a studio owner, a client and a stranger, at phone and desk widths. Every suite was green when they started. Between them they found one blocker, six serious problems and ten smaller ones. Thirteen commits fixed all but one part of one of them, and one of the smaller ones turned out to be the check’s mistake, not the product’s:
- The blocker. Booking without a password relies on a sign-in setting that has to be switched on in production. With it off, a guest who booked had no way in, while the page told them a link was on its way. Now, if no link can be sent, the studio emails a link to set a password instead, the page says which of the two went out, and the runbook checks the setting before the release goes on.
- Trash is now enforced by the server as well as the portal: a trashed shoot’s files, download archive and agreement are refused to its client.
- The privacy policy had changed, naming Google Fonts for studios that pick a font outside our set and listing new deletion clocks, without a new version date. It carries one now, and every record it promises to clear has a clock.
- Restoring a shoot brought back its email reminder but not its text reminder, a restore could lose a race with the shoot’s permanent deletion, and a status recheck could put a cancelled studio’s switched-off videos back online. All three are fixed, each with a test.
- Earlier work, checked again: the property website preview on a client’s shoot page printed NaN square feet and a price the agent never set, a client’s spending chart left out every deposit and installment, New shoot offered a Land package at $0 on a house, and Who owes me counted from delivery instead of from when the money fell due. Each has a fixed entry in the changelog.
What wave 3 changed
For studios, wave 3 is nine entries in the changelog, plus five fixes the verifiers found in earlier work. They appear there on the day the release that carries them goes live. In one line per area:
- Booking
- Contact details last, no accountFive short steps, a running total from the same server step that sets the charge, a sign-in link after booking, times that fit the drive between shoots, recent properties for returning clients, and the studio’s own Recommended badge.
- Paying
- An invoice without a sign-inPayment requests, quotes and reminders carry a 30-day pay link for one shoot. Brokerage agents on account terms book with no deposit, and a paused booking link still takes requests.
- Trash
- A deleted shoot can come backThirty days to restore it exactly as it was, then it is deleted for good with its photos and videos. Payments recorded against it stay.
- Video
- Failures say soA failed video raises an alert, MLS links wait for the file, the client hears when the film is ready, and a cancelled studio’s video links stop when its other links stop.
- Buyer pages
- LighterProperty sites about 63 KB smaller, galleries about 58 KB and the booking link about 105 KB for a visitor, all compressed, and property sites pass the accessibility sweep.
- Behind the scenes
- One run per changeOne backend function per change to a shoot instead of nine, functions that load only their own code, and nightly jobs that page through studios and pick up where they stopped, so none is skipped as the list grows.
Some of wave 3 also tightens things: every public booking and payment door has a per-visitor limit, the records behind those limits carry an expiry date, and Trash is enforced on the server. Those changes are in the code and not yet deployed.
The numbers
From the commit that published the wave 2 post to the last of the verifiers’ fixes, wave 3 is 46 commits on main (44 changes and 2 merges) touching 237 files: 15,286 lines added and 1,581 removed. The tests grew with it:
| Suite | Before | After |
|---|---|---|
| Database and file access rules | 560 | 570 |
| Backend, against a local database | 1,706 | 1,813, none failing |
| Backend units | 211 | 228 |
| Web app units | 195 | 234 |
| Shared code | 670, one skipped | 681, one skipped |
- Backend runs for each change to a shoot
- 9 to 1seven of the nine are in production today; the one also handles a shoot’s deletion, which had a function of its own
- Functions in the backend
- 178 to 17815 new and 15 retired; production has 129 and will have 178 after the next release
- Starting the property website’s function from cold
- 1,866 ms to 920 msevery function used to load the whole backend, 1,040 modules; this one now loads 567. Median of seven fresh starts on one machine; the others measured land between 712 and 1,040 ms
- Nightly jobs
- every studio, a page at a timeeach job used to read every studio in one go; the new pager is tested with 1,000 studios
- A property website, cold (scripts, gzip)
- 503.1 KB to 440.2 KB
- A gallery, cold
- 479.4 KB to 421.8 KB
- The booking link for a visitor, cold
- 546.4 KB in 50 files to 441.4 KB in 30
- What every visitor downloads first
- 382.9 KB to 366.5 KB
- Opening the Overview cold
- 572.5 KB to 569.8 KB
- Accessibility findings, a property website at desk width
- 25 to 0
Before is a production build of the commit wave 3 started from, and after is a build of main at the end of the verifiers’ fixes, both on the same machine. The property website and the gallery got most of their saving from animating in CSS instead of a motion library, 44 animated elements rebuilt one by one, and from a validation library leaving the code every visitor downloads first. The booking link’s saving is the new flow itself: the old one, which every visitor used to download, now opens only for a studio’s own staff.
What is partial, and what is not done
None of wave 3 is live yet, and neither are waves 1 and 2. The release is one sitting, run by the founder from the runbook: the backend functions the new web app calls go first, then the web app with the access rules in the same minute, then the rest of the backend, and only once the new order function is seen receiving events are the nine it replaces deleted. Between those steps old and new code run side by side, and the runbook keeps that to minutes.
- After the verifiers’ fixes, the booking link for a visitor loads one file more: 30 instead of 29, at the same weight. New shoot in the Console now uses the booking link’s own rule for which packages fit a property, and sharing that code split it into its own file. Moving the code only renamed the extra file, so the budget moved to 30, with the measurement written next to it.
- Booking without a password needs email-link sign-in switched on in production. The runbook now checks it; if it is off, guests are offered a password instead, and the page where they set one is a plain page, not yet in the studio’s brand.
- Trash keeps a shoot’s files from its client on the server. In this release its other details are kept out of view by the portal. Keeping them from the client on the server as well is built and ships in the next release: it needs every existing shoot to carry one new field, so that release runs a one-time update first, with a dry run that lists what it will change.
- The booking link honors retired packages and a phone-number rule, but no studio can retire a package or require a phone number from the Console yet, so neither has a changelog entry.
- When a cancelled studio’s twelve months end, its public video links are switched off, but the videos are kept. Whether to delete them is a decision, and it is not built.
- Records that should expire on their own, such as sent-mail copies after 30 days and abuse counters after 2, only do once the expiry settings are deployed, which waits on a yes. If the answer is not yet, the privacy page is reworded before the release.
- The nightly jobs page through studios in turn instead of handing each studio to its own queued task, because new functions in this project do not yet get the permission such tasks need.
Two calls from wave 3 are the founder’s own: whether studios already on Everyframe are told that Google Fonts now appears in the privacy policy, and switching on the expiry of old records.
Three waves, start to finish
Wave 3 closes the plan that started with the audit. From the last commit before wave 1 to the last fix of wave 3, the three waves are 249 commits on main (231 changes and 18 merges) touching 806 files: 89,587 lines added and 29,509 removed. The tests, from the start of wave 1 to the end of wave 3:
| Suite | Before wave 1 | After wave 3 |
|---|---|---|
| Database and file access rules | 480 | 570 |
| Backend, against a local database | 1,296, one failing | 1,813, none failing |
| Backend units | 182 | 228 |
| Web app units | 41 | 234 |
| Shared code | 575 | 681, one skipped |
- Wave 1
- Fix what was brokenTen tracks from an audit of 355 findings: clients charged exactly what they were quoted, authority that stays with the owner, the Console split out of one 6,300-line file, every promised email sent, portal links that open, and a release runbook with a check after every step. 21 changelog entries.
- Wave 2
- A studio’s working weekSix tracks: Field Mode for the shoot day, one number for money owed, Quick Book and Cmd-K, signup to a booking link in one sitting, a page per shoot for the agent, and a desk for brokerages. 16 entries.
- Wave 3
- Booking and running costsBooking with contact details last and no account, paying without signing in, Trash, videos that report failure, lighter buyer pages, and one backend run per change to a shoot. 9 entries, and 5 fixes to earlier work.
Every wave went through the same steps: build, adversarial review, merge one track at a time with every suite run again, then verification by agents who signed in and looked. The reviews and the verifiers found something real every time, and the merges found things no single track could have seen. The lesson that held across all three is that a green check says what it looked at, not what is true. A test that had never run in wave 1, a Console and a portal $599 apart in wave 2, and a sweep that scored loading screens as clean in wave 3 were each found by someone who looked instead of trusting the check.
What the founder still decides
All of it waits on one decision: when to run the release. These are the others the three waves reached and left alone:
- Chasing unpaid balances automatically. Built in wave 2 and off by default. A studio can switch it on for itself; whether it should start switched on is the founder’s call.
- Full-size files for clients on the free plan. How clients of a studio on the free Delivery plan get full-size files. The recommendation is a release the studio presses, one shoot at a time.
- The free plan at cancel. Whether a paying studio that cancels is offered the free Delivery plan, which keeps its galleries and portal up, instead of the cancelled state.
- A neutral sending domain. A domain with no Everyframe name on it, so a new studio’s client emails can go out from its first day and client links stop showing ours.
- Production backups. Point-in-time recovery, daily backups, an export of sign-in accounts and a soft delete on stored files, with the expiry of old records alongside.
- Analytics and a public demo studio. Site analytics, built and switched off, and a real read-only studio in production for visitors to click through instead of drawn replicas.
Each has a written recommendation and waits for a yes. None of them adds a fee on what a studio’s clients pay. That stays at 0%.
Three waves, entry by entry.
The changelog lists all three waves as they affect a studio, each entry shown on the day its release reaches studios.