Loop 003 — Two barbers: choose a barber or No preference; each barber sees their own day

2026-11-15 · The shop can now run with two (or more) barbers. Clients pick a barber or keep "No preference" on the first screen and are told who they got. Each barber has their own passcode and lands on their own day.

Why

The shop is hiring a second barber. Clients choose a barber, or 'no preference', when they book; each barber sees their own day on their phone.

This was a test run with the owner unavailable. Every new choice is assumed (D21–D31 in DECISIONS.md). The owner gave no names, so the barbers are placeholders: "Sam" and "Alex".

What changed

Screenshots (Chromium, 390 px, real app)

Booking page with barber chips No preference, Sam and Alex above the day strip and the free times
1. First screen: barber choice (No preference selected), days and times together.
Confirmation page saying the booking is with Alex
2. A client who chose Alex: the confirmation says "with Alex".
Confirmation page for a No preference booking at the same time, given to Sam
3. Same time, No preference: Alex is taken, so the booking goes to Sam, and the client reads it.
Sam's barber page showing Your day with only Sam's booking
4. Sam's phone: Sam's own day, only Sam's client.
Alex's barber page with chips Sam and Alex (you) and Alex's booking
5. Alex's phone: Alex's own day; Sam's day is one tap on "Sam".
Block time form with Who: Only me (Alex) selected, Only Sam, Whole shop
6. Alex blocks a day off: "Only me (Alex)" is the default.
Client page with Alex chosen: the day shows Off and a button to see free times with any barber
7. A client choosing Alex that day sees "Off" and one button to see Sam's times. The private label "Day off" is not shown.

Checks

CommandResultNotes
npm run check (before building)passedLoop 002 review: 56/56 tests.
npm run test:e2e (before building)passedLoop 002 review: 5/5 in Chromium.
npm run format:check, npm run lint, npm run typecheckpassedZero warnings. The first lint run found 6 errors in new code (test style, one needless Number()); fixed.
npm testpassed88/88 (32 new in test/barbers.test.ts): config and passcode validation, per-barber hours, personal and shop blocks, union of free times, assignment order, upgrade of a Loop 002 file, startup refusals, HTTP booking with each barber and No preference, a race of three clients for two barbers, sign-in per barber, cross-site and signed-out refusals, logs without names.
npm run test:e2epassed7/7 in Chromium at 390×844. The 5 earlier tests run on a one-barber shop (unchanged behaviour). 2 new tests on the two-barber shop.config.json, one with JavaScript disabled.
lint_diagramspassed6 diagrams in ARCHITECTURE.md and PRODUCT.md. A first ER diagram was flagged by the line-based checker and redrawn as a flowchart.
GitHub Actions CInot runNo remote; the owner said never push.

What is left