Bathhouse scheduling supervisor - scrub-technician rotation list generator and consecutive-turn validator, single file - the rotation list is the scrub section's fairness baseline, and hand-built lists carry three diseases: skipped turns, named-request turns that never cycle to the back of the queue so one technician feasts on requests while another starves all day, and a consecutive-turn cap nobody watches; the tool takes the roster, shift hours, and rotation rule parameters, and outputs the day's rotation list plus a validation report (spread of projected turns, named-request share, consecutive-turn warnings); every parameter ships blank, the tool counts turns and never judges people, the supervisor builds the list and the tool validates it, so accountability stays with the supervisor
You are a coding agent building an in-house tool for a
bathhouse. Build a single-file HTML tool (HTML, CSS, JS
all inline, no external dependencies, no network
requests, opens by double-click) that generates the
day's scrub-technician rotation list and validates its
fairness for the scheduling supervisor. Core stance: the
rotation list is the scrub section's fairness baseline -
turns in order, whoever finishes first returns to the
head of the queue. Hand-built lists carry three
diseases: skipped turns, named-request turns that never
cycle to the back, and a consecutive-turn cap nobody
watches. The tool's job is turning those three diseases
into visible numbers; the decision to build the list
always stays with the supervisor.
Input section (all manual entry, saveable, exportable):
A. Roster: name / shift hours (multiple segments per day
allowed) / absent flag
B. Named requests: technician named by the guest /
expected duration class (short / medium / long)
C. Rotation rule parameters (all blank; no defaults
pre-filled):
- Whether a named-request turn cycles to the back
(cycles = the technician goes to the queue's tail
after a named turn; no = returns to the original
position)
- Consecutive-turn cap: how many turns in a row
before a mandatory rest turn
- Meal pause: the hours the queue pauses, resuming in
the original order afterward
- New-guest protection: a switch forcing first-time
guests into rotation instead of a named request
D. Demand estimate: expected tickets per time slot (a
rough number is fine - it drives projected turn
counts, not the queue order)
Compute and output:
1. The day's rotation list: simulate the queue under the
rule parameters; output time / technician on turn /
next two / pre-slotted named requests
2. Validation report (the tool's core output):
- Turn-count spread: projected turns per technician
from the demand estimate, max minus min, red over
the self-entered threshold
- Named-request share: named turns / projected total;
yellow over the self-entered threshold - when
requests concentrate, the technicians at the queue's
tail are quietly starving
- Consecutive-turn warnings: simulate who hits the cap
and when, with suggested rest points
- Same-slot conflicts: one person booked in two turns
at once - red, listed
3. Adjustment sandbox: after the supervisor manually
swaps any two turns, the validation report recomputes
live - change one turn, see every effect, then decide
whether the swap should stand
Usage boundaries (printed in the tool's footer):
- The tool counts and validates; it never rates
technicians and never auto-schedules - when an
auto-generated list errs, the fault has no owner
- When a validation line trips, the tool offers the
supervisor three fixed directions: adjust the
named-request cycling rule, move the rest point
earlier, enable new-guest protection - it never says
"so-and-so is taking too many"
- Data stays in the local browser; nothing uploads
Prohibitions:
- No "suggested values" pre-filled anywhere - every
house's rules differ, and pre-fills become
authoritative defaults
- No input slots for performance, speed, or review
scores - the moment a rotation tool ingests
performance data it becomes a client-assignment
tool, and fairness validation dies
- The validation report carries no characterizations of
technicians (hardworking, cherry-picking) - numbers
and rule names only
Why it is written this way
The tension between named requests and rotation is the core allocation conflict of a scrub section. Requests are the guest's right; rotation is the technician's fairness - and the two systems fight by design; whether a named turn cycles to the back decides whether a request is queue-jumping or queue-trading. Making that decision a parameter rather than a built-in default forces each house to write its chosen fairness rule down explicitly: the tool validates against the written rule, and fairness stops being a slogan and becomes a configurable, checkable parameter.
The validation report carries numbers, never names - that is the tool's impartial identity. Turn-count spread and request share are structural signals; the moment it outputs "so-and-so is taking too many," the tool becomes ammunition in an allocation fight - technicians defend against it, the supervisor wields it against people, and fairness validation dies on the spot. Numbers present, characterizations absent, and the report can hang on the wall for everyone to read.
No auto-scheduling is an accountability-chain design. When an automated list errs, the fault has no owner: technicians blame "the machine did it," the supervisor carries "you overrode the machine." The tool simulates and validates; the supervisor signs the list - the person answers for the rules, the tool answers for the arithmetic, and only with that chain intact does the rotation result carry authority.
Performance data is banned from the tool to keep rotation from becoming ranking. The moment review scores or speed enter a rotation tool, order becomes weighting, and the scrub section starts fighting over weights that same day - a different institution, and the worse one. The tool knows nothing about who works fast; it knows only whose turn it is.
Variables
| Variable | Description |
|---|---|
| Named-request cycling rule | Whether a named turn sends the technician to the back - each house decides, then executes one rule house-wide, no per-ticket exceptions |
| Consecutive-turn cap | How many turns in a row before a mandatory rest - set by the physical intensity of the service; scrubbing is pure physical labor, err tight |
| Turn-count spread threshold | Max-minus-min turns that flag red - scale to the day's on-shift count; small teams naturally run small spreads |