Free template · Build it with Claude, Cursor, Lovable or any AI app builder
Capacity Planner template
We say yes to new projects without knowing who actually has time.
Each person's booked hours against their real weekly capacity, after part-time days, holidays and time off, with over-booked weeks flagged and tentative work shown apart. It also tracks phase budgets in hours and finds who has free time with a given skill.
By Sam Claassen · Updated · 4 build phases · 33/33 acceptance checks passed
- No.
- 038
- Department
- Ops
- Build time
- 2–3 hrs
- Difficulty
- Intermediate
- Team size
- 5–40 people
- Replaces
- Float
- Your builder needs
- A database and sign-in, plus sending email
- Status
- Build-tested Nov 12, 2026
Can you build your own capacity planner instead of paying for Float?
Yes, for a team of 5 to 40 people that plans its work week by week. This blueprint specifies a capacity planner that works out each person's real capacity for every week from their working days and hours, company holidays and time off; books people onto project phases in hours a day or a week, as confirmed or tentative work; flags weeks that are over capacity, and weeks that only go over if tentative work goes ahead; compares each phase's booked hours with its budget; and finds who has free time with a given skill. Over-capacity warnings and booking changes go to an email outbox, and the schedule exports to CSV. It is specified in four build phases with 33 acceptance checks. It leaves out time tracking, rates and money, percentage allocations, placeholders, regional holiday calendars and integrations.
Built and tested from this blueprint
We sent the 4 build prompts below to an AI builder, in order, and checked every acceptance item in a real browser, starting each phase's checks from a fresh seed, as the build plan says. One final browser run on a fresh database passed all 33 checks, and the build has 222 automated tests. The test build used a database, development sign-in, an outbox that logs emails and a development clock fixed at Wed 18 Nov 2026; both CSV files were downloaded and parsed. Production sign-in, real email delivery and hosting were not tested. The build exposed 89 spec gaps, now fixed.
- Acceptance checks passed
- 33/33
- Automated tests
- 222
- Spec gaps found and fixed
- 89
- Build phases
- 4
The full write-up of this build test, with every gap and what was not tested, is in the build-test report below.
Building with Claude Code, Codex, Cursor or another coding agent? Install this blueprint as an agent skill. It bundles the full spec and has the agent build one phase at a time and run the acceptance checks. View on skills.sh
npx skills add samclaassen/internal-tool-blueprints --skill capacity-planner
Build it or buy Float?
Float charges per scheduled person. Starter is $7 and Pro is $12 per scheduled person per month billed annually, or $8.50 and $14 billed monthly; Enterprise is priced through sales. People who don't need to be scheduled can be added as free guests, and the 30-day trial runs on Pro with no credit card required. Source: float.com/pricing, checked October 2026.
What this blueprint keeps
People with working hours for each weekday (so part-time works as fewer days or shorter days) and skills; one company holiday list; time off in full or part days; projects that are tentative or confirmed, with phases and budgets in hours; bookings by the week, in hours a day or a week, confirmed or tentative; a weekly schedule of booked hours against capacity with over-booking flagged, plus a separate flag for weeks that only go over if tentative work goes ahead; utilization per person and for the team; each phase's booked hours against its budget; a "who has time" search by skill and weeks; email through an outbox when a week goes over capacity or someone's confirmed bookings change; CSV export.
What it leaves out
Time tracking and anything that compares planned with logged hours; rates, costs, fees, margins, currencies, and fixed-fee or time-and-materials budgets; percentage allocations, specific times of day, repeating allocations, tasks, milestones, templates, draft projects and a project timeline view; placeholders and AI staffing suggestions; regional holiday calendars, time off types, balances and approvals; working-hour changes from a chosen date; overtime by day; billable and non-billable splits; Slack, calendar and project-tool integrations, an API, mobile apps, single sign-on, dashboards and an activity feed. If you need planned-against-actual reporting (Float's Pro plan, $12 per scheduled person per month billed annually), rates and margins, or holiday calendars for several offices, Float is worth paying for.
Build it if
- You plan a team of 5 to 40 people by the week and mainly need to know who is free, not to track time or money.
- Part-timers, holidays and time off change your capacity from week to week, and the spreadsheet doesn't account for them.
- You pitch work before it is confirmed and want to see which weeks only break if the tentative work goes ahead.
- You'd rather own the rules and the data than pay for every person you put on the schedule.
Buy Float if
- You want to compare planned hours with tracked time, or run budgets in money with rates and margins.
- You have offices in several countries and need regional holiday calendars, or time off with balances and approvals in the same tool.
- You plan with placeholders for roles you haven't hired, percentage allocations or AI staffing suggestions.
- You need Slack, calendar or project-tool integrations, a mobile app or single sign-on.
The blueprint
Paste the whole spec into your AI builder, then send each prompt in the Build plan section one at a time. Check each phase before moving on.
How to use this file: paste this whole document into your AI builder (Claude, ChatGPT, Cursor, Lovable, Replit, Type) as context. Then send the build prompts in section 15 one at a time. Do not move to the next phase until the acceptance checks for the current phase pass.
1. The problem
"We say yes to new projects without knowing who actually has time."
A client wants to start in two weeks. The studio lead opens the resourcing spreadsheet, sees some empty cells and says yes. Nobody noticed that one designer works three days a week, that Thanksgiving takes two days out of that week, or that a developer is already booked 24 hours a week on another project. The work lands on the same two people, deadlines slip, and the next pitch is promised on the same guesswork.
This blueprint is a small capacity planner built around one calculation, done the same way on every screen: each person's real capacity for each week (their working hours, minus holidays and time off) against the hours booked for them, confirmed and tentative, with every over-booked week flagged before anyone says yes.
2. What the real product does
Research basis: Float's pricing and product pages (float.com/pricing, float.com/product/capacity-planning, float.com/product/scheduling) and help center articles at support.float.com/en/articles/ (4188692-allocate-time, 28963-tentative-projects-phases-and-allocations, 12042863-project-statuses-and-stages, 28942-default-work-days-and-hours, 28934-individual-custom-hours-and-work-days, 440604-schedule-time-off, 3281892-public-and-team-holidays, 4385599-people-report, 8850727-date-range-insights, 28939-search-and-filter, 28920-people-tags, 2732830-project-budgets, 4787660-project-phases, 1813316-export-your-data, 3412688-personal-notifications, 2059673-placeholders, 5215287-access-rights), October 2026.
What we verified:
- Pricing. Float charges per scheduled person: you pay for the people you put on the Schedule, and people who only need to look can be free guests. Starter is $7 and Pro $12 per scheduled person per month billed annually ($8.50 and $14 billed monthly). Enterprise is sold through sales and described as best for teams of 100 or more. The 30-day trial runs on Pro and needs no credit card. Pro adds time tracking, AI experience profiles, client rate cards with several currencies, project cost estimates, advanced reports and dashboards, and single sign-on with domain restrictions.
- Allocations. An allocation is the planned assignment of a person's time to a project, optionally to a phase or task. The standard unit is hours per day, prefilled from the person's availability; Float can also spread a total over a fixed date range, or book a percentage of capacity. Scheduling more than a person's capacity for a day shows as overtime in red, and time can also be scheduled on weekends and public holidays.
- Tentative work. Projects are draft, tentative, confirmed, completed or canceled, with custom stages. Allocations on a tentative project or phase are tentative and show as outlines; on a confirmed project, single allocations can be marked tentative. Tentative projects send no notifications, and canceled allocations leave the Schedule.
- Capacity. The company sets default work days and hours, and each person can have their own part-time days and hours, applied to all dates or from a chosen week. Capacity is daily hours times work days, minus time off and holidays. Holidays come from country and region calendars (one group per person) plus team-wide holidays. Time off has types, balances and optional approval; a full day off over existing allocations deletes them for that day after a warning, a part day leaves them.
- Who has time. Date range insights (up to 92 days) show each person's scheduled, unscheduled and overtime hours, or the percentage utilized, colored grey, orange (overtime on some days) or red (over 100%), and can sort people by unscheduled hours. The Schedule filters by department, role, person tag, manager, project, allocation status and more, and Float suggests people tags for skills.
- Budgets. Each project has one budget type: time and materials, a fixed fee or fixed hours, the last two by project, phase or task. Billable scheduled hours count against an hours budget, and the remaining budget shows in red when the project is over budget. On Starter budgets follow scheduled work; Pro and Enterprise can also follow logged time.
- Reports and export. The People report shows capacity, scheduled, billable, tentative, unscheduled and overtime hours, with percentages rounded to whole numbers. Export is CSV only; the Schedule export lists scheduled hours and remaining capacity by day or week, for up to a year.
- Notifications. Daily or weekly schedule emails. People hear when allocations of theirs in the next 7 days are created, changed or deleted, but not about tentative or completed ones. Project owners hear about any change on their projects. Delivery is in the app, by email, by mobile push or in Slack.
- Also included. Placeholders for unhired roles (1 free on Starter, 5 on Pro), Google and Outlook calendar, Slack, Zapier and API integrations on every plan, a mobile app, and access rights (Account Owner, Admin, Manager, Member), which Float's help center says are being replaced by customizable access roles from mid-October 2026.
What this blueprint keeps
People with working hours for each weekday (so part-time works as fewer days or shorter days) and skills; one company holiday list; time off in full or part days; projects that are tentative or confirmed, with phases and budgets in hours; bookings by the week, in hours a day or a week, confirmed or tentative; a weekly schedule of booked hours against capacity with over-booking flagged, plus a separate flag for weeks that only go over if tentative work goes ahead; utilization per person and for the team; each phase's booked hours against its budget; a "who has time" search by skill and weeks; email through an outbox when a week goes over capacity or someone's confirmed bookings change; CSV export.
What this blueprint deliberately leaves out
Time tracking and anything that compares planned with logged hours; rates, costs, fees, margins, currencies, and fixed-fee or time-and-materials budgets; percentage allocations, specific times of day, repeating allocations, tasks, milestones, templates, draft projects and a project timeline view; placeholders and AI staffing suggestions; regional holiday calendars, time off types, balances and approvals; working-hour changes from a chosen date; overtime by day; billable and non-billable splits; Slack, calendar and project-tool integrations, an API, mobile apps, single sign-on, dashboards and an activity feed. If you need planned-against-actual reporting (Float's Pro plan, $12 per scheduled person per month billed annually), rates and margins, or holiday calendars for several offices, Float is worth paying for.
3. Scope of v1
- One company and one team time zone, set by a
TEAM_TIME_ZONEenvironment variable (default America/New_York). "Today" is today in that zone. Weeks run Monday to Sunday. - Planning in hours and whole weeks: a booking covers one or more whole weeks, at so many hours a day or a week. No percentages and no times of day.
- Hours are entered in steps of 0.25 and stored as integer minutes.
- One list of company holidays that applies to everyone.
- Time off is recorded, not requested or approved.
- Planned hours only: no time tracking, rates or money.
- Email notifications through an outbox, CSV export, and a web app that works on a phone (the schedule grid scrolls sideways).
4. Roles
| Role | Who | Can do |
|---|---|---|
| Member | Everyone who can sign in | See the Schedule, Projects, Who has time and Time off. Add time off for themselves starting today or later, and remove their own while its first day is today or later. |
| Planner | Producers, studio managers, team leads | Everything members do, plus: create and edit projects and phases, confirm, close or mark projects lost, add, change and delete bookings for anyone, add and remove anyone's time off on any dates, export CSV. |
| Admin | One or more people | Everything planners do, plus: add, edit, deactivate and reactivate people (their working hours, skills and role), manage skills and holidays, read the outbox. |
Each person has one role (Person.role). Everyone signed in sees every person's bookings, time off dates and capacity, and every project's budget: the point is that everyone can see who has time. Time off has no reason or type, so nothing private is shown. Every read, on a page or through the API, is open to every signed-in person; only changes are restricted. Every request checks that the signed-in email still belongs to an active Person, so deactivating someone ends their access at once.
5. Capacity planner data model
All IDs are strings (UUID or similar). Timestamps are UTC, in ISO 8601 to the second (2026-10-26T14:00:00Z). Dates are calendar dates (YYYY-MM-DD) in the team time zone. Every hour amount is stored as integer minutes (1 hour = 60).
Person
- id, name (required, 1 to 80 characters), email (required, unique, stored lower-case) (any address of the form name@domain; the company domain is enforced only at sign-in)
- title (optional, max 60 characters, e.g. "Designer")
- role: admin | planner | member (default member)
- on_schedule (boolean, default true; false for people who don't take project work, such as a studio director)
- mon_minutes, tue_minutes, wed_minutes, thu_minutes, fri_minutes, sat_minutes, sun_minutes (working hours per weekday; 0 to 1440 in multiples of 15; default 480 Monday to Friday and 0 at the weekend)
- active (boolean, default true), created_at
Skill: id, name (required, 1 to 40 characters, unique ignoring case)
PersonSkill: person_id, skill_id; unique (person_id, skill_id)
Holiday: id, date (unique), name (required, 1 to 60 characters)
TimeOff
- id, person_id, start_date, end_date (on or after start_date; at most 366 days in total)
- part_day_minutes (nullable: empty means full days; otherwise 15 to 1440 in multiples of 15, taken off each working day in the range)
- created_by, created_at
Project
- id, name (required, 1 to 80 characters, unique ignoring case), client (optional, max 80 characters)
- status: tentative | confirmed | closed | lost
- created_by, created_at, status_changed_by and status_changed_at (nullable; set by Confirm, Mark lost and Close)
Phase
- id, project_id, name (required, 1 to 60 characters, unique within its project ignoring case)
- budget_minutes (nullable: empty means no budget; otherwise a whole number of hours from 1 to 100,000, stored as minutes)
- position (integer, display order), created_at
Booking (Float calls this an allocation)
- id, person_id, phase_id (the booking's project is its phase's project)
- first_week, last_week (both Mondays; last_week on or after first_week; at most 52 weeks in total)
- unit: per_day | per_week
- minutes (per_day: 15 to 1440; per_week: 15 to 10080; multiples of 15)
- tentative (boolean), note (optional, max 200 characters)
- created_by, created_at, updated_by, updated_at
Notification (outbox)
- id, recipient_id (a Person)
- kind: over_capacity | booking_added | booking_changed | booking_removed | project_confirmed | time_off_added | time_off_removed
- subject, body (plain text)
- status: queued | sent | logged | failed; attempts (integer, default 0; each send attempt adds 1, and logging counts as one); error (nullable); created_at, sent_at (nullable)
There is no table of totals. Capacity, booked and free hours, utilization and budget use are computed from these rows every time (R11).
6. Capacity and bookings
Write these as pure server-side functions. The Schedule, the week detail, the booking preview, Who has time, notifications and both CSV files all call them.
One day. For a person and a date, the first rule that matches decides:
- The date is a holiday: capacity 0, not available. Label: the holiday's name.
- The person works 0 hours on that weekday: capacity 0, not available. Label: "Not a working day".
- The person has time off that day with no part-day hours, or with part-day hours equal to or more than the day's working hours: capacity 0, not available. Label: "Time off".
- The person has part-day time off that day: capacity = working hours minus part-day hours, available. Label: the hours left, then the hours off: "4 h (time off 4 h)".
- Otherwise capacity = the day's working hours, available. Label: the hours: "8 h".
Because holidays are checked first, time off that covers a holiday or a day the person doesn't work never reduces capacity twice. If two time off rows ever cover the same day (R7 prevents it), a full day wins, otherwise the larger part day.
One week. A person's capacity for a week is the sum of its seven days. Step through dates one calendar day at a time, never by adding 24 hours, so daylight-saving changes can't skip or repeat a day.
A booking in a week. A booking counts in every week from first_week to last_week, unless its project is lost:
- per_week: the booking's hours, whatever the week holds. Holidays and time off don't shrink it.
- per_day: the booking's hours times the person's available days that week. Holidays and full days off take days out; a part day off doesn't.
Week totals. confirmed = the hours of the person's confirmed bookings in the week; tentative = the hours of their tentative bookings; booked = confirmed + tentative; free = capacity - booked (it can be negative). Status, first match wins:
- Off: capacity 0 and booked 0.
- Over: confirmed is more than capacity.
- Tentative over: booked is more than capacity, so the confirmed work fits and the tentative work doesn't.
- Otherwise no status. Booked exactly equal to capacity is not over.
Where a message gives an amount over, it is booked - capacity.
Utilization = confirmed ÷ capacity, and utilization with tentative = booked ÷ capacity, as whole percentages rounded half up. Over several weeks or people, add up the hours first, then divide. When capacity is 0, show "–". Over-booked weeks give more than 100%.
Worked examples (seed data in section 14)
| Person (works) | Week | Capacity | Bookings that week | Booked/capacity | Status |
|---|---|---|---|---|---|
| Lee (8 h Mon to Fri) | 16 Nov | 40 - 4 (part day off Fri 20 Nov) = 36 | Brightline Build, 8 h a day × 5 available days = 40 | 40/36 | Over: a part day off doesn't shrink a per-day booking |
| Lee | 23 Nov | 40 - 16 (Thanksgiving Thu and Fri) = 24 | 8 h a day × 3 days = 24 | 24/24 | none: exactly full |
| Ben (8 h Mon to Thu) | 23 Nov | 32 - 8 (Thanksgiving Thu; he doesn't work Fridays) = 24 | Brightline Build 24 h a week + Studio website 8 h a week = 32 | 32/24 | Over: per-week bookings don't shrink |
| Jo (8 h Mon to Wed) | 23 Nov | 24: both holidays fall on days she doesn't work | Brightline Design 16 h a week | 16/24 | none |
| Maya (8 h Mon to Fri) | 23 Nov | 0: time off Mon to Wed, holidays Thu and Fri | Brightline Design 4 h a day × 0 days = 0 | 0/0 | Off |
| Priya (6 h Mon to Fri) | 23 Nov | 30 - 6 (time off Wed) - 12 (holidays Thu and Fri, which her time off also covers, counted once) = 12 | Studio website 2 h a day × 2 days = 4 | 4/12 | none |
| Maya | 30 Nov | 40 | Orchard Design 24 h a week (confirmed) + Lumen Identity 20 h a week (tentative) | 44/40 | Tentative over |
| Sam (8 h Mon to Fri) | 7 Dec | 40 - 24 (time off Mon to Wed) = 16 | Brightline Build 16 h a week | 16/16 | none |
| Jo | 21 Dec | 0: time off Mon to Wed; Christmas is a Friday, which she doesn't work | none | 0/0 | Off |
Utilization: in the week of 16 Nov the 8 people on the schedule have 282 h of capacity and 138 h confirmed: 48.94%, shown as 49%. Over the 8 weeks from 16 Nov, Maya has 264 h of capacity, 136 h confirmed and 60 h tentative: 52% (51.52%), and 74% with tentative (74.24%). Lee's week of 16 Nov is 40 ÷ 36 = 111%.
7. Projects, phases and budgets
A project has one or more phases, and every booking belongs to a phase, so every booked hour counts against exactly one phase.
| Action | Who | From | To | Side effects |
|---|---|---|---|---|
| Create | Planner or admin | (none) | tentative or confirmed, as chosen | The form also creates the first phase (name, optional budget) |
| Edit name and client; add, edit or delete a phase | Planner or admin | tentative, confirmed | same | R10 |
| Confirm | Planner or admin | tentative | confirmed | Every booking on the project becomes confirmed, in the same transaction; each one it changes gets a new updated_by and updated_at (R12); notifications (section 11) |
| Mark lost | Planner or admin | tentative | lost | Its bookings stay, but count nowhere except the project page |
| Close | Planner or admin | confirmed | closed | Refused while any of its bookings (inactive people's included) has a last week after the current week: "Brightline website has 6 bookings that run after this week. End or delete them first." (with one: "has 1 booking that runs after this week. End or delete it first."). Its bookings keep counting, as past work |
From the wrong status: "Only tentative projects can be confirmed.", "Only tentative projects can be marked lost.", "Only confirmed projects can be closed." These win over R5's "can't change" message. The status is checked inside the same transaction as the change. Confirm, Mark lost and Close set status_changed_by and status_changed_at. Each action asks first: "Confirm Lumen rebrand? Every booking on it becomes confirmed.", "Mark Harbor app lost? Its bookings stay but count nowhere except this page.", "Close Studio website? Nothing about it can change after that.", and for a phase "Delete the Discovery phase?" Final states: closed and lost; after that nothing about the project, its phases or its bookings can change (R5).
Budget arithmetic. For each phase, over all its bookings and all their weeks, past and future, including bookings of people who are now inactive: confirmed hours, tentative hours, and booked = confirmed + tentative. When the phase has a budget:
- left = budget - booked, shown as "16 h left", "0 h left" or, when negative, "Over by 24 h"
- used = booked ÷ budget, a whole percentage rounded half up
- Over budget when confirmed is more than the budget; Tentative over budget when confirmed fits but booked doesn't; otherwise no flag
A phase without a budget shows "No budget", "–" for left and used, and no flag. A project's budget is the sum of its phases' budgets ("No budget" when none has one), its booked hours are the sum over all its phases, and its flag is its worst phase flag. A lost project's hours count nowhere else (the Schedule, week details, Who has time, R8 and both CSV files). Its own page shows its numbers under "Lost: these hours don't count on the schedule.", the Projects list shows its budget and booked hours under Closed and lost, and neither shows a flag. Closed projects keep their flags.
Worked examples (seed data)
| Project · phase | Budget | Bookings (hours over all weeks) | Confirmed | Tentative | Left | Used | Flag |
|---|---|---|---|---|---|---|---|
| Brightline website · Design | 100 h | Maya 4 h a day: 20 + 20 + 20 + 0 = 60; Jo 16 h a week × 4 = 64 | 124 h | 0 h | Over by 24 h | 124% | Over budget |
| Brightline website · Build | 430 h | Lee 40 + 24 + 40 + 40 + 40 = 184; Sam 64; Ben 120; Tom 60 (past weeks); Ana 12 (tentative) | 428 h | 12 h | Over by 10 h | 102% | Tentative over budget |
| Orchard app redesign · Discovery | 40 h | Maya 4 h a day: 20 + 20 | 40 h | 0 h | 0 h left | 100% | none |
| Orchard app redesign · Design | 160 h | Maya 24 × 4 = 96; Jo 8 h a day × 3 days × 2 weeks = 48 | 144 h | 0 h | 16 h left | 90% | none |
| Lumen rebrand · Identity | 90 h | Maya 20 × 3 = 60; Priya 10 × 3 = 30 (the project is tentative) | 0 h | 90 h | 0 h left | 100% | none |
| Studio website · Refresh | No budget | Ben 8 × 4 = 32; Priya 2 h a day: 10 + 4 = 14 | 46 h | 0 h | – | – | – |
| Pinecrest campaign · Concepts (lost) | 40 h | Priya 10 × 2 = 20 | 0 h | 20 h | 20 h left | 50% | none (lost) |
So the Projects list shows Brightline website with a 530 h budget, 564 h booked and Over budget.
8. Who has time
Inputs: a skill (Any skill, or one skill); a first and last week (default: the current week to 3 weeks later; R2 applies; at most 26 weeks, counting both ends: "Pick up to 26 weeks."; with no last week it runs to 3 weeks after the first); and "Count tentative bookings as busy" (ticked on a first visit; a search sent with it unticked counts tentative hours as free).
For each active person on the schedule with the skill, over those weeks: capacity, confirmed, tentative, and free = capacity - confirmed - tentative (capacity - confirmed when the box is unticked), plus each week's free hours. Sort by free hours, most first, then by name ignoring case. Planners and admins on the schedule are included; each row's skills are listed alphabetically. Free hours read "24 h free", "0 h free" or "Over by 12 h"; week cells are bare numbers ("24", "-4"). The search only reads; it never saves anything.
| Search (seed data) | Result |
|---|---|
| UI design, weeks of 30 Nov to 14 Dec, box ticked | Jo Park: capacity 72 h, confirmed 48 h, tentative 0 h, 24 h free (weeks 0, 0, 24). Maya Chen: capacity 120 h, confirmed 72 h, tentative 60 h, Over by 12 h (weeks -4, -4, -4) |
| The same, box unticked | Maya Chen 48 h free, then Jo Park 24 h free |
| Frontend, week of 23 Nov | Tom Bennett 24 h free, Sam Okafor 8 h, Lee Park 0 h |
9. Capacity planner business rules
- R1. Server checks. Every permission in section 4 and every rule here is enforced on the server for every action and API call; hiding a button is not a check. A member asking for a planner action gets "Planners only."; a request with no session gets "Sign in first."; anyone but an admin asking for an admin action gets "Admins only." Reading a page never creates or changes anything. An edit changes only the fields it sends; fields left out keep their values.
- R2. Weeks and dates. A week runs Monday to Sunday in the team time zone and is named by its Monday; the current week is the one that contains today. first_week and last_week must be Mondays ("Weeks start on a Monday."), last_week can't be before first_week ("The last week can't be before the first week.") and a booking covers at most 52 weeks ("A booking can cover at most 52 weeks."). Both ends count: 16 Nov 2026 to 8 Nov 2027 is 52 weeks. Impossible dates such as 2026-02-30 are refused ("Enter a real date."), never rolled over.
- R3. Hours. Working hours per weekday: 0 to 24 in steps of 0.25 ("Enter 0 to 24 hours a day, in steps of 0.25."). Per-day bookings and part-day time off: 0.25 to 24 ("Enter 0.25 to 24 hours a day, in steps of 0.25."). Per-week bookings: 0.25 to 168 ("Enter 0.25 to 168 hours a week, in steps of 0.25."). Phase budgets: a whole number of hours from 1 to 100,000, or empty ("Enter a whole number of hours from 1 to 100,000, or leave it empty."). Empty (where a value is required), negative or non-numeric input gets the same message.
- R4. Who can be booked. Only active people on the schedule can be given a booking, or have one changed: "Dana Ruiz can't be booked. Only active people on the schedule can." A booking whose person is inactive or off the schedule can't be changed, even to give it to someone else; it can only be deleted.
- R5. Project status. Closed and lost projects are read-only, including their phases and bookings, and bookings can't be moved onto them (their bookings can't be changed or deleted, and their edit page shows this message and no form): "Pinecrest campaign is lost, so it can't change." ("Brightline website is closed, so it can't change."). On a tentative project every booking is tentative; saving a confirmed one is refused: "Lumen rebrand is tentative, so its bookings are too." On a confirmed project each booking is confirmed or tentative, as the planner chooses.
- R6. Overbooking is allowed. Over and Tentative over are warnings, never refusals. The preview shows them before saving.
- R7. Time off. "The last day can't be before the first day."; at most 366 days ("Time off can cover at most 366 days."). A person's time off can't overlap their other time off: "Overlaps your time off, Mon 23 – Wed 25 Nov." (a planner sees "Overlaps Maya Chen's time off, Mon 23 – Wed 25 Nov."). The message says "your" when the person is the one acting, and quotes the earliest overlapping time off. Members add time off only for themselves and only starting today or later ("Time off can't start in the past. Ask a planner to record it."), and remove only their own ("You can only remove your own time off.") while its first day is today or later ("This time off has started. Ask a planner to remove it."). Planners and admins add and remove anyone's time off on any dates. Time off is never edited: remove it and add it again. Only active people can be given time off ("Only active people can be given time off."); a member adding time off for someone else gets "Planners only."; an empty last day means one day.
- R8. People. Only admins add, edit, deactivate and reactivate people, in Admin → People. Emails are unique ("Someone already uses lee@larkspur.example."). Someone on the schedule needs at least one working day ("Someone on the schedule needs at least one working day."). There must always be at least one active admin ("There must be at least one active admin."). It is checked when a role changes and when someone is deactivated. Other messages: "Enter a name of 1 to 80 characters.", "Enter a valid email address.", "Keep the title to 60 characters or fewer.", "Pick a role: admin, planner or member.", "Choose whether this person is on the schedule." Deactivating someone, or taking them off the schedule, is refused while they have bookings that run this week or later (bookings on tentative or confirmed projects whose last week is this week or later; closed and lost projects' bookings can't change, so they don't count): "Lee Park has 1 booking that runs this week or later. End or delete it first." ("Ben Cho has 2 bookings that run this week or later. End or delete them first."). Inactive people can't sign in and disappear from the Schedule, pickers and searches; their bookings stay and still count in project totals. Changing someone's working hours changes every week, past and future. Deactivating someone already inactive does nothing; reactivating rechecks that the email is unique; inactive people can still be edited.
- R9. Holidays and skills. One holiday per date: "There's already a holiday on Fri 25 Dec." Holidays can be in the past; they are added and deleted, never renamed, and deleting one that is gone gets "This was already deleted." Skill names are unique ignoring case: "There's already a skill called UI design." Bad names get "Enter a skill name of 1 to 40 characters." and "Enter a holiday name of 1 to 60 characters." Renaming a skill to its own name in another case is allowed, and the duplicate message quotes the stored name. Deleting a skill asks "Remove Illustration from 1 person?" and then removes it from everyone who has it. The question counts everyone who has the skill, active or not ("Remove X from 0 people?" when nobody does).
- R10. Projects and phases. Project names are unique ignoring case ("There's already a project called Brightline website."); phase names are unique within a project ignoring case ("This project already has a phase called Design."). Messages quote the existing name as stored; renaming a project or phase to its own name in another case is allowed. A project keeps at least one phase ("A project needs at least one phase."). Other messages: "Enter a project name of 1 to 80 characters.", "Keep the client to 80 characters or fewer.", "Choose Tentative or Confirmed.", "Enter a phase name of 1 to 60 characters." A phase with bookings can't be deleted: "Discovery has 1 booking. Move or delete it first." ("Build has 5 bookings. Move or delete them first."). To move a booking, change its phase in the booking form. Deleting a phase checks, in order: R5, at least one phase, then its bookings.
- R11. Computed, not stored. Every number in sections 6, 7 and 8 is computed from the rows each time by the same server-side functions. Nothing keeps a running total, and the preview and the save use the same code.
- R12. Simultaneous changes. The booking form sends the updated_at it loaded; if the booking has changed since, saving is refused: "Someone else changed this booking. Reload to see the latest." A save without updated_at counts as stale. Changing a booking that no longer exists gets "This was already deleted." Each save sets updated_at later than the stored value, even when the development clock stands still. Status changes and deletes check the current state inside the same transaction as the change; deleting a booking or time off that no longer exists gets "This was already deleted."
- R13. Display. Hours have up to two decimals and no trailing zeros ("36 h", "37.5 h"); grid cells show bare numbers ("40/36"); negative free hours have a minus sign ("-4"). Percentages are whole numbers rounded half up. Dates: "Mon 23 Nov"; ranges use an en dash with spaces: "Mon 23 – Wed 25 Nov", "Mon 30 Nov – Tue 1 Dec". Weeks: "week of 16 Nov", "weeks of 30 Nov to 14 Dec". The year is added when it isn't the year of today (from now()): "4 Jan 2027". Amounts: "8 h a day", "24 h a week".
10. Capacity planner screens
Navigation: Schedule, Projects, Who has time, Time off, Export (planners and admins), Admin (admins). Admin's screens (People, Skills, Holidays, Outbox) are tabs inside Admin. Planner pages show "Planners only." to members, admin pages show "Admins only." to everyone else, and the server refuses their actions (R1).
- Schedule (home). A Person column, one column per week for 8 weeks starting with the current week (headers "16 Nov" to "4 Jan 2027", current week highlighted, header and column, when it is shown), then an "8 weeks" column. Rows: active people on the schedule, sorted by name, with title and weekly hours under the name ("Designer · 24 h a week"); the signed-in person's row is highlighted. A week cell shows "booked/capacity" ("40/36") and its status from section 6: "Over" (red), "Tentative over" (amber) or "Off" (grey). The 8 weeks cell covers the 8 weeks shown: utilization ("52%") and, when the person has tentative hours in those weeks, "74% with tentative". A Team row adds up the rows shown: per week "booked/capacity" and utilization ("138/282", "49%") (utilization is confirmed ÷ capacity, so tentative hours are in the first number but not the percentage: 30 Nov reads "170/286" and "48%"), and in its 8 weeks cell the team's utilization and utilization with tentative ("31%", "36% with tentative"). Controls: Previous 4 weeks, This week, Next 4 weeks; a skill filter (Any skill or one skill) that limits the rows and the Team row; Add booking (planners and admins). Clicking a cell opens the week detail. Previous and Next move by 4 weeks and keep the filter; This week returns to the current week. When the filter leaves nobody, the grid and Team row are replaced by "Nobody on the schedule has this skill." On a phone the name column stays fixed and the weeks scroll sideways.
- Week detail (a panel for one person and week). Heading "Priya Nair, week of 23 Nov". One line per day with its label from section 6 ("Mon 23 Nov: 6 h", "Wed 25 Nov: Time off", "Thu 26 Nov: Thanksgiving", "Sat 28 Nov: Not a working day", "Fri 20 Nov: 4 h (time off 4 h)"), then "Capacity: 12 h". Then one line per booking covering the week, from projects that aren't lost (sorted by project name, then phase position, then created_at; the panel has its own address, so it can be linked): "Studio website (Refresh): 4 h · 2 h a day · Confirmed", with Edit for planners and admins unless the project is closed. Then "Booked: 4 h of 12 h" and the status with its amount, as in the preview: "Over by 4 h", "Tentative over by 4 h" or "Off". Planners and admins also get Add booking, prefilled with this person and week.
- Booking form (add and edit; planners and admins). Person (active people on the schedule; when editing a booking whose person can't be booked, that person is listed as "(not on the schedule)" so Delete stays reachable), project (tentative and confirmed) and phase, first and last week (Mondays), hours with "a day" or "a week", Tentative (unticked by default; ticked and locked on a tentative project), note. An empty last week means the first week only. A live preview from the server, using the same functions as the save, shows the person's weeks after this change, one line per week of the booking: "Week of 7 Dec: 36 h of 16 h · Over by 20 h", "Week of 30 Nov: 44 h of 40 h · Tentative over by 4 h", "Week of 23 Nov: 0 h of 0 h · Off" or just the hours; then the phase after this change, using section 7's arithmetic over all its bookings, past and future, including inactive people's: "Orchard app redesign (Design): 164 h of 160 h · Over by 4 h" (or "· 16 h left", or "· No budget"). Saving is allowed whatever the preview says (R6). The preview is a planner action (members get "Planners only."). It runs once person, phase, first week and hours are filled and shows errors in place; a week with no status shows only the hours ("Week of 30 Nov: 20 h of 30 h"); the phase line shows booked (confirmed + tentative) against the budget with the left wording, not the flag; an edit is previewed as replacing the stored booking, not added to it. Edit adds Delete, with a confirmation ("Delete this booking?"). After saving or deleting, the form returns to the screen it was opened from (the Schedule by default). Errors appear inline and the form keeps what was typed. Other messages: "Pick a person.", "Pick a project and phase.", "Choose hours a day or hours a week.", "Keep the note to 200 characters or fewer." Checks run in the order person, phase, weeks, hours, tentative, note, and the first failure is shown.
- Projects. Tentative and confirmed projects sorted by name, then a "Closed and lost" section. Each row: name, client, status, budget ("530 h" or "No budget"), booked ("564 h") and the project's flag. New project (planners and admins): name, client, Tentative (the default) or Confirmed, first phase name and budget; saving returns to the list.
- Project page. Name, client, status, the project's budget, booked hours and flag (as on the list; status reads Tentative, Confirmed, Closed or Lost), and the section 7 actions its status allows (planners and admins). Phases: name, budget, confirmed, tentative, left, used and flag, with Add phase, Edit (name and budget) and Delete. Bookings: person, phase, weeks ("weeks of 16 Nov to 14 Dec"), amount ("8 h a day"), status and total hours, ordered by first week, person, phase position, then created_at (one week reads "week of 7 Dec"; status is the booking's own; total is its hours over all its weeks; inactive people's bookings stay, marked "(inactive)"), with Edit and Add booking (prefilled with this project and its first phase, returning here after saving) for planners and admins. Closed and lost projects show no edit controls.
- Who has time. The inputs and results of section 8. Each row: name, title, skills, capacity, confirmed, tentative, free ("24 h free" or "Over by 12 h"), and one small cell per week with that week's free hours (negative ones in red). Planners and admins get Book on each row, which opens the booking form with that person and the searched weeks filled in (project, phase and hours left empty), and returns to the same search after saving. With no matches: "Nobody on the schedule has this skill."
- Time off. "Upcoming" (ending today or later) and "Past" (ended before today, in the 365 days before it), each sorted by first day then name, one line each: "Maya Chen · Mon 23 – Wed 25 Nov · full days", "Lee Park · Fri 20 Nov · 4 h". One full day still reads "full days"; a part day over several days reads "4 h a day". Inactive people's time off stays listed. Planners can pick any active person, on the schedule or not. Add time off: person (members: only themselves), first day, last day, and full days or a part day with hours. Delete where R7 allows, with a confirmation ("Remove Lee Park's time off, Fri 20 Nov?").
- Export (planners and admins). A first and last week (R2 messages; at most 52 weeks: "Pick up to 52 weeks.") (it opens on the current week and the 7 after it; an empty last week means the first; both ends count) and two downloads. A file with no rows still has its header row. A bad range shows its message on the page instead of downloading.
- Weekly load CSV (
weekly-load-2026-11-16-to-2026-11-23.csv): one row per person who is active and on the schedule now, per week, ordered by week then name: person, email, week_start, capacity_hours, confirmed_hours, tentative_hours, booked_hours, free_hours, utilization_pct, status. - Bookings CSV (
bookings-2026-11-16-to-2026-11-23.csv): one row per booking per week in which it has more than 0 hours, leaving out lost projects, ordered by week, person, project, phase (names ignoring case), then created_at and booking id, including closed projects and inactive people: week_start, person, email, project, client, phase, hours, status, unit, booking_id, updated_at. - Formats: dates
YYYY-MM-DD; hours as decimals with up to two places and no trailing zeros (37.5,40,-4); utilization_pct a whole number, empty when capacity is 0; statusok,over,tentative_overoroffin the weekly file andconfirmedortentativein the bookings file; unitper_dayorper_week; updated_at in UTC ISO 8601 (2026-10-26T14:00:00Z); missing values empty; fields with commas, quotes or line breaks quoted (quotes doubled); UTF-8 without a BOM, LF line endings and no line break after the last row; no spreadsheet-formula escaping, which would change "-4".
- Weekly load CSV (
- Admin → People. Everyone, active and inactive, sorted by name ignoring case, inactive people greyed out in the same list: name, email, title, role, on the schedule, weekly hours ("24 h a week"), skills and active. Add and edit (with the seven day fields and the skills), deactivate and reactivate (R8).
- Admin → Skills. Each skill with the number of active people who have it. Add, rename and delete (R9).
- Admin → Holidays. Pick a year (every year with a holiday, plus last, this and next year; it opens on the current year); each holiday's date and name, sorted by date; add and delete.
- Admin → Outbox. Every notification, newest first (rows with the same time in the order they were written, latest first): time ("Wed 18 Nov 09:00", team time zone), recipient, kind and status (the stored values, such as
over_capacityandlogged), subject, attempts and error. Clicking a row shows the body under it. "Retry failed" (admins only) sends again every failed notification with fewer than 5 attempts, using the sender configured now; queued rows are not retried, and a success clears the error. Messages: "No notifications yet.", "No failed notifications to retry.", "Retried 2 notifications."
11. Notifications
| Trigger | Recipients | Subject (seed example) |
|---|---|---|
| A week becomes Over | Every active admin and planner (on the schedule or not), and the person, except whoever made the change; one notice per person who went Over | "Over capacity: Sam Okafor, week of 7 Dec (36 h of 16 h)"; for several weeks "Over capacity: Maya Chen, 3 weeks from 30 Nov" |
| Booking added | The person | "New booking: Orchard app redesign (Design)" |
| Booking changed | The person (if the person changes, the old one gets "removed" and the new one "added") | "Booking changed: Brightline website (Build)" |
| Booking deleted | The person | "Booking removed: Brightline website (Design)" |
| Project confirmed | Each person with a booking on it that runs this week or later | "Confirmed: Lumen rebrand" |
| Time off added by someone else | The person | "Time off added: Mon 30 Nov – Tue 1 Dec" |
| Time off removed by someone else | The person | "Time off removed: Fri 20 Nov" |
- Over capacity. After any change that can make a week Over (a booking added or changed, time off added, a holiday added, a day's working hours changed, a project confirmed; deletes, removals, Mark lost and Close can't make a week Over), compare the status of each affected person's weeks, from the current week to their last booked week on a project that isn't lost, before and after the change. Affected people (only active people on the schedule): the booking's person (before and after), the person whose time off or hours changed, everyone on the schedule for a holiday, and everyone with a booking on the confirmed project. The weeks that were not Over and now are go into one notification per recipient for that person and change. Subject: "Over capacity: {name}, week of {week} ({booked} h of {capacity} h)" for one week, "Over capacity: {name}, {n} weeks from {first week}" for more. Body: one line per week, on separate lines, "Week of 30 Nov: 44 h booked, 40 h capacity, 4 h over." (booked includes tentative hours; over is booked - capacity) A week that was already Over, or is only Tentative over, sends nothing. A week that goes from Tentative over to Over does count.
- Inactive people never receive any notification.
- Bookings. Sent only when the booking, before or after the change, is confirmed and runs this week or later (each side judged on its own: confirmed, and last week on or after the current week), and only if the person didn't make the change. Changing only the note, or nothing, sends nothing; the fields that count are phase, first and last week, unit, hours and tentative. Bodies: "Ana Lima booked you on Orchard app redesign (Design): 20 h a week, week of 7 Dec." / "Ana Lima changed your booking on Brightline website (Build). Before: 24 h a week, weeks of 16 Nov to 14 Dec. Now: 16 h a week, weeks of 16 Nov to 14 Dec." / "Ana Lima removed your booking on Brightline website (Design): 16 h a week, weeks of 2 Nov to 23 Nov." A tentative side gets " (tentative)" after its amount. When the phase changes, the subject names the new phase and Before and Now each start with "Project (Phase), ".
- Project confirmed. "Ana Lima confirmed Lumen rebrand. Your bookings are now confirmed:" then one line per booking of that person on the project that runs this week or later, on separate lines sorted by first week, phase position, then created_at: "Identity, 20 h a week, weeks of 30 Nov to 14 Dec". Lines carry no "(tentative)" and no full stop; added and removed bodies give the booking's whole range, past weeks included. Confirming sends no booking_changed notices. The person who confirmed gets nothing.
- Time off. "Ana Lima added time off for you: Mon 30 Nov – Tue 1 Dec (full days)." or "(4 h a day)" for a part day; removal reads "Ana Lima removed your time off: Fri 20 Nov (4 h a day)." Emails say "(4 h a day)" for any part day, one day or several, and are sent whatever the dates.
Within one change, booking, time off and confirmed notices are written first, then over-capacity ones, recipients sorted by name. Write each notification to the outbox with status queued in the same transaction as the change, then send it by email after the transaction commits and before the request answers. With no email provider configured, set the status to logged instead of sending. If a send fails, set failed, keep the error and add 1 to attempts; "Retry failed" in Admin → Outbox tries again. A failed send never blocks or undoes the change; a failed outbox write rolls the whole change back, because it is part of the change.
12. Time and the development toolbar
Clock. Every server-side read of the current time goes through one now() function. Today is the date of now() in TEAM_TIME_ZONE, and it decides the current week.
Development toolbar (development only; it must not exist or respond in production):
- Sign in as any person. An inactive person sees "Ask an admin to add you." Choosing one signs the current person out.
- The clock: shows "Today: Wed 18 Nov 2026", can be set to any date and time, and has "+1 day" and "+1 week". The toolbar always shows the year (an exception to R13); +1 day and +1 week move by calendar days and keep the time of day; a set time is in the team time zone. It is stored on the server and now() returns it.
- "Reset to seed data": reloads section 14 and sets the clock to Wed 18 Nov 2026, 09:00 in the team time zone.
- In development an empty database loads the seed on first start; production never loads it by itself.
There are no scheduled jobs in v1.
13. Edge cases
- A per-week booking keeps its hours in a week with a holiday or time off, so the week can turn Over (Ben, week of 23 Nov). To book around a holiday, use hours a day, or end the booking a week earlier and add a smaller one for that week.
- A per-day booking in a week with no available days adds nothing (Maya's Brightline booking, week of 23 Nov). The week detail lists it with 0 h, and the bookings CSV has no row for it.
- Time off that covers holidays or days the person doesn't work removes each working day once (Priya, week of 23 Nov). A part day off with as many hours as the working day, or more, counts as a full day off.
- A holiday added on a date someone has time off: the holiday wins, the time off stays recorded, and nothing is counted twice.
- Changing someone's working hours changes every week, including past utilization. Per-day bookings follow it; per-week bookings don't.
- A booking of someone who has been deactivated can be deleted but not changed (R4). It keeps counting in project totals and the bookings CSV, but its person leaves the Schedule, Who has time and the weekly load CSV.
- Bookings on a lost project stay on its page and count nowhere else. A closed project's bookings keep counting, because they are past work.
- Confirming a project also confirms its bookings in past weeks; only people with bookings that run this week or later are notified, and inactive people never are.
- The week of 28 Dec 2026 is named by its Monday and includes Fri 1 Jan 2027, New Year's Day.
- Two planners save the same booking: R12. Two people confirm the same project at once: the second gets "Only tentative projects can be confirmed."
- Someone signs in whose email isn't in People, or who is inactive: "Ask an admin to add you."
14. Seed data
Company: Larkspur Studio, a design and web studio. Team time zone America/New_York; emails are firstname@larkspur.example. Reset to seed data sets the clock to Wed 18 Nov 2026, 09:00, so the current week is the week of 16 Nov. The dates are fixed, not relative to today, so every worked example and check gives the same answer.
| Person | Title | Role | On schedule | Hours Mon to Sun | Week | Skills |
|---|---|---|---|---|---|---|
| Dana Ruiz | Studio director | admin | no | 8, 8, 8, 8, 8, 0, 0 | 40 h | Strategy |
| Ana Lima | Producer | planner | yes | 8, 8, 8, 8, 8, 0, 0 | 40 h | Project management |
| Maya Chen | Design lead | member | yes | 8, 8, 8, 8, 8, 0, 0 | 40 h | UI design, Branding |
| Jo Park | Designer | member | yes | 8, 8, 8, 0, 0, 0, 0 | 24 h | UI design, Illustration |
| Sam Okafor | Engineering lead | member | yes | 8, 8, 8, 8, 8, 0, 0 | 40 h | Frontend, Backend |
| Lee Park | Developer | member | yes | 8, 8, 8, 8, 8, 0, 0 | 40 h | Frontend |
| Ben Cho | Developer | member | yes | 8, 8, 8, 8, 0, 0, 0 | 32 h | Backend |
| Priya Nair | Copywriter | member | yes | 6, 6, 6, 6, 6, 0, 0 | 30 h | Copywriting, Branding |
| Tom Bennett | Contract developer | member | yes | 8, 8, 8, 8, 8, 0, 0 | 40 h | Frontend |
Everyone is active. Skills: Backend, Branding, Copywriting, Frontend, Illustration, Project management, Strategy, UI design. Holidays: Thu 26 Nov 2026 Thanksgiving, Fri 27 Nov 2026 Day after Thanksgiving, Fri 25 Dec 2026 Christmas Day, Fri 1 Jan 2027 New Year's Day.
Time off (all 2026): Lee Park Fri 20 Nov, part day 4 h; Maya Chen Mon 23 – Wed 25 Nov; Priya Nair Wed 25 – Fri 27 Nov; Sam Okafor Mon 7 – Wed 9 Dec; Jo Park Mon 21 – Wed 23 Dec (the last four are full days).
| Project | Client | Status | Phases (budget) |
|---|---|---|---|
| Brightline website | Brightline Bikes | confirmed | Design (100 h), Build (430 h) |
| Orchard app redesign | Orchard Health | confirmed | Discovery (40 h), Design (160 h) |
| Lumen rebrand | Lumen Coffee | tentative | Identity (90 h) |
| Studio website | (none) | confirmed | Refresh (no budget) |
| Pinecrest campaign | Pinecrest Bank | lost (by Ana Lima at 2026-11-12T15:00:00Z) | Concepts (40 h) |
| # | Person | Project · phase | Weeks of (2026) | Amount | Tentative |
|---|---|---|---|---|---|
| 1 | Maya Chen | Brightline website · Design | 2 Nov to 23 Nov | 4 h a day | no |
| 2 | Jo Park | Brightline website · Design | 2 Nov to 23 Nov | 16 h a week | no |
| 3 | Lee Park | Brightline website · Build | 16 Nov to 14 Dec | 8 h a day | no |
| 4 | Sam Okafor | Brightline website · Build | 23 Nov to 14 Dec | 16 h a week | no |
| 5 | Ben Cho | Brightline website · Build | 16 Nov to 14 Dec | 24 h a week | no |
| 6 | Tom Bennett | Brightline website · Build | 26 Oct to 9 Nov | 20 h a week | no |
| 7 | Ana Lima | Brightline website · Build | 30 Nov to 14 Dec | 4 h a week | yes; note "Extra producer time if the change request is approved." |
| 8 | Maya Chen | Orchard app redesign · Discovery | 9 Nov to 16 Nov | 4 h a day | no |
| 9 | Maya Chen | Orchard app redesign · Design | 30 Nov to 21 Dec | 24 h a week | no |
| 10 | Jo Park | Orchard app redesign · Design | 30 Nov to 7 Dec | 8 h a day | no |
| 11 | Maya Chen | Lumen rebrand · Identity | 30 Nov to 14 Dec | 20 h a week | yes |
| 12 | Priya Nair | Lumen rebrand · Identity | 30 Nov to 14 Dec | 10 h a week | yes |
| 13 | Ben Cho | Studio website · Refresh | 16 Nov to 7 Dec | 8 h a week | no |
| 14 | Priya Nair | Studio website · Refresh | 16 Nov to 23 Nov | 2 h a day | no |
| 15 | Priya Nair | Pinecrest campaign · Concepts | 30 Nov to 7 Dec | 10 h a week | yes |
Every seed row was created by Ana Lima at 2026-10-26T14:00:00Z, and no booking has been changed since (updated_at is the same time). The outbox starts empty.
Resulting Schedule (check these after loading):
| Person | 16 Nov | 23 Nov | 30 Nov | 7 Dec | 14 Dec | 21 Dec | 28 Dec | 4 Jan 2027 | 8 weeks |
|---|---|---|---|---|---|---|---|---|---|
| Ana Lima | 0/40 | 0/24 | 4/40 | 4/40 | 4/40 | 0/32 | 0/32 | 0/40 | 0%, 4% with tentative |
| Ben Cho | 32/32 | 32/24 Over | 32/32 | 32/32 | 24/32 | 0/32 | 0/32 | 0/32 | 61% |
| Jo Park | 16/24 | 16/24 | 24/24 | 24/24 | 0/24 | 0/0 Off | 0/24 | 0/24 | 48% |
| Lee Park | 40/36 Over | 24/24 | 40/40 | 40/40 | 40/40 | 0/32 | 0/32 | 0/40 | 65% |
| Maya Chen | 40/40 | 0/0 Off | 44/40 Tentative over | 44/40 Tentative over | 44/40 Tentative over | 24/32 | 0/32 | 0/40 | 52%, 74% with tentative |
| Priya Nair | 10/30 | 4/12 | 10/30 | 10/30 | 10/30 | 0/24 | 0/24 | 0/30 | 7%, 21% with tentative |
| Sam Okafor | 0/40 | 16/24 | 16/40 | 16/16 | 16/40 | 0/32 | 0/32 | 0/40 | 24% |
| Tom Bennett | 0/40 | 0/24 | 0/40 | 0/40 | 0/40 | 0/32 | 0/32 | 0/40 | 0% |
| Team | 138/282, 49% | 92/156, 59% | 170/286, 48% | 170/262, 52% | 138/286, 36% | 24/216, 11% | 0/240, 0% | 0/286, 0% | 31%, 36% with tentative |
15. Capacity planner build plan
Send these prompts one at a time after pasting this file. Add each screen to the navigation in the phase that builds it. Each phase ends with checks you can run by clicking through the app. Start each phase's checks from a fresh load of the seed (the reset button); checks within a phase run in order on the same data.
Phase 1: Foundation
Using the Capacity Planner blueprint above, build Phase 1 only.
1. Set up the data model from section 5 exactly (Person, Skill, PersonSkill, Holiday, TimeOff, Project, Phase, Booking, Notification) with a real database. Store every hour amount as integer minutes.
2. Add sign-in. Use the platform's built-in auth or Google sign-in limited to our company email domain. A signed-in email must match an active Person; anyone else sees "Ask an admin to add you."
3. Build Admin → People, Admin → Skills and Admin → Holidays (section 10, screens 9 to 11). Only admins can open them ("Admins only." for everyone else, also by URL), and the server refuses admin actions from anyone else. Enforce R2 for holiday dates, R3 for working hours, R8 and R9.
4. Load the seed data from section 14 exactly, including the time off, projects, phases and bookings that later phases show.
5. Add the development toolbar from section 12: "sign in as", the clock (every server-side read of the current time must use it) and "Reset to seed data". None of it may exist or respond in production.
Do not build the Schedule, bookings or project screens yet. When you're done, list what you built and anything in the spec you had to interpret.
Acceptance checks
- Signed in as Dana, Admin → People lists 9 active people: Dana Ruiz (admin, not on the schedule), Ana Lima (planner) and 7 members. Weekly hours read "40 h a week" for Dana, Ana, Maya, Sam, Lee and Tom, "24 h a week" for Jo Park, "32 h a week" for Ben Cho and "30 h a week" for Priya Nair.
- Signed in as Maya, and then as Ana, the Admin pages show "Admins only." (also when opened by URL) and a direct request to save a person is refused. Signed in as Dana, they open.
- Editing Priya Nair, a Friday of 25 hours and a Friday of 6.1 hours are each refused with "Enter 0 to 24 hours a day, in steps of 0.25.", and setting every day to 0 is refused with "Someone on the schedule needs at least one working day." A Friday of 4 hours saves, and her weekly hours read "28 h a week".
- Admin → Skills lists Backend 2, Branding 2, Copywriting 1, Frontend 3, Illustration 1, Project management 1, Strategy 1 and UI design 2. Adding "ui design" is refused with "There's already a skill called UI design." Deleting Illustration asks "Remove Illustration from 1 person?" and, once confirmed, Jo Park's only skill is UI design.
- Deactivating Lee Park is refused with "Lee Park has 1 booking that runs this week or later. End or delete it first.", taking Ben Cho off the schedule with "Ben Cho has 2 bookings that run this week or later. End or delete them first.", and changing Dana's role to planner with "There must be at least one active admin." Deactivating Tom Bennett works (his only booking ended before this week): Admin → People shows him as inactive, and "sign in as" Tom shows "Ask an admin to add you."
- Admin → Holidays for 2026 lists Thu 26 Nov Thanksgiving, Fri 27 Nov Day after Thanksgiving and Fri 25 Dec Christmas Day, and 2027 lists Fri 1 Jan 2027 New Year's Day. Adding a holiday on 2026-12-25 is refused with "There's already a holiday on Fri 25 Dec.", and a direct request for 2026-02-30 is refused with "Enter a real date."
- The toolbar shows "Today: Wed 18 Nov 2026", and "+1 day" changes it to "Today: Thu 19 Nov 2026". "Reset to seed data" sets it back to Wed 18 Nov 2026, makes Tom Bennett active again, sets Priya Nair's weekly hours back to "30 h a week" and gives Jo Park Illustration again.
Phase 2: Capacity, bookings and the Schedule
Using the Capacity Planner blueprint above, build Phase 2 only.
1. Implement section 6 as pure server-side functions (day capacity and label, week capacity, a booking's hours in a week, week totals and status, utilization), with unit tests for every row of the section 6 worked examples and for every cell of the resulting Schedule in section 14.
2. Build the Schedule, now the home page, and the week detail (section 10, screens 1 and 2).
3. Build the booking form (screen 3) for planners and admins: add, change and delete bookings, with the live preview. The preview's phase line uses the budget arithmetic in section 7. Members can't open the form, and the server refuses their booking requests with "Planners only."
4. Build Time off (screen 7) with R7.
5. Enforce R1 to R7 and R11 to R13 on the server, not only by hiding buttons, including the updated_at check in R12.
Do not build the project pages, Who has time, notifications or export yet. When you're done, list what you built and anything in the spec you had to interpret.
Acceptance checks
- Signed in as Maya, the Schedule shows the weeks of 16 Nov to 4 Jan 2027 and 8 rows (Ana Lima, Ben Cho, Jo Park, Lee Park, Maya Chen, Priya Nair, Sam Okafor, Tom Bennett; not Dana Ruiz), and every cell matches section 14, including Lee Park "40/36" Over for 16 Nov, Ben Cho "32/24" Over for 23 Nov, Maya Chen "0/0" Off for 23 Nov and "44/40" Tentative over for 30 Nov, and Jo Park "0/0" Off for 21 Dec.
- The Team row reads "138/282" and "49%" for the week of 16 Nov and "92/156" and "59%" for the week of 23 Nov. Maya Chen's 8 weeks cell reads "52%" and "74% with tentative", and Tom Bennett's reads "0%". Filtering by Frontend leaves Lee Park, Sam Okafor and Tom Bennett, and the Team row for 23 Nov then reads "40/72" and "56%".
- Clicking Priya Nair's cell for 23 Nov shows "Mon 23 Nov: 6 h", "Tue 24 Nov: 6 h", "Wed 25 Nov: Time off", "Thu 26 Nov: Thanksgiving", "Fri 27 Nov: Day after Thanksgiving", "Sat 28 Nov: Not a working day", "Sun 29 Nov: Not a working day", "Capacity: 12 h", "Studio website (Refresh): 4 h · 2 h a day · Confirmed" and "Booked: 4 h of 12 h". Lee Park's cell for 16 Nov shows "Fri 20 Nov: 4 h (time off 4 h)".
- Signed in as Maya, there is no Add booking button, the booking form shows "Planners only." when opened by URL, and a direct request to create a booking is refused.
- Signed in as Ana, a new booking for Sam Okafor on Orchard app redesign (Design), 20 h a week for the week of 7 Dec only, previews "Week of 7 Dec: 36 h of 16 h · Over by 20 h" and "Orchard app redesign (Design): 164 h of 160 h · Over by 4 h". It saves, and Sam's cell for 7 Dec reads "36/16" Over.
- On a new booking for Priya Nair on Lumen rebrand (Identity), Tentative is ticked and can't be unticked; 2 h a day for the week of 30 Nov saves, and Priya's cell for 30 Nov reads "20/30" with no status. A direct request to save a confirmed booking on Lumen rebrand is refused with "Lumen rebrand is tentative, so its bookings are too."
- The booking form refuses 25 h a day ("Enter 0.25 to 24 hours a day, in steps of 0.25."), 10.1 h a week ("Enter 0.25 to 168 hours a week, in steps of 0.25.") and a last week before the first ("The last week can't be before the first week."), and a direct request with first_week 2026-11-18 is refused with "Weeks start on a Monday."
- Ana changes Ben Cho's Brightline website (Build) booking from 24 to 16 h a week: Ben's cells read "24/32" for 16 Nov and "24/24" with no status for 23 Nov. She deletes Jo Park's Brightline website (Design) booking: Jo's cells for 16 Nov and 23 Nov read "0/24".
- Signed in as Maya, time off for Fri 4 Dec saves and her cell for 30 Nov reads "44/32" Tentative over. Time off for Mon 16 Nov is refused with "Time off can't start in the past. Ask a planner to record it.", time off for Tue 24 Nov with "Overlaps your time off, Mon 23 – Wed 25 Nov.", and a direct request to remove Lee Park's time off with "You can only remove your own time off." Signed in as Ana, removing Lee's Fri 20 Nov time off makes his cell for 16 Nov read "40/40".
Phase 3: Projects, budgets and Who has time
Using the Capacity Planner blueprint above, build Phase 3 only.
1. Build Projects and the Project page (section 10, screens 4 and 5) with every action in the section 7 transitions table, the budget arithmetic and flags, R5 and R10. Check the status inside the same transaction as each change (R12).
2. Confirming a project sets all its bookings to confirmed in the same transaction. Closing is refused while any of its bookings runs after the current week.
3. Build Who has time (screen 6) exactly as section 8, with unit tests for its worked examples, and the Book button for planners and admins.
When you're done, list what you built and anything in the spec you had to interpret.
Acceptance checks
- Signed in as Maya, Projects lists Brightline website (Brightline Bikes, Confirmed, 530 h budget, 564 h booked, Over budget), Lumen rebrand (Lumen Coffee, Tentative, 90 h, 90 h), Orchard app redesign (Orchard Health, Confirmed, 200 h, 184 h) and Studio website (Confirmed, No budget, 46 h), with Pinecrest campaign (Pinecrest Bank, Lost, 40 h, 20 h) under Closed and lost. There is no New project button, and a direct request to create a project is refused with "Planners only."
- The Brightline website page shows Design with a 100 h budget, 124 h confirmed, 0 h tentative, "Over by 24 h", 124% and Over budget, and Build with 430 h, 428 h confirmed, 12 h tentative, "Over by 10 h", 102% and Tentative over budget, and lists 7 bookings, including Tom Bennett's (weeks of 26 Oct to 9 Nov, 60 h). The Orchard app redesign page shows Discovery at 40 h confirmed of 40 h, "0 h left", 100% and no flag, and Design at 144 h confirmed, "16 h left", 90%.
- Who has time for UI design, weeks of 30 Nov to 14 Dec, lists Jo Park first (capacity 72 h, confirmed 48 h, 24 h free, weekly cells 0, 0, 24) and Maya Chen second (capacity 120 h, confirmed 72 h, tentative 60 h, "Over by 12 h", weekly cells -4, -4, -4). Unticking "Count tentative bookings as busy" puts Maya Chen first with 48 h free and Jo Park second with 24 h free.
- Who has time for Frontend, week of 23 Nov to week of 23 Nov, lists Tom Bennett (24 h free), Sam Okafor (8 h) and Lee Park (0 h) in that order. Signed in as Ana, Book on Tom Bennett's row opens the booking form with Tom Bennett and the week of 23 Nov filled in.
- The Pinecrest campaign page shows Lost, the Concepts phase with 20 h tentative under "Lost: these hours don't count on the schedule.", and no edit controls, even for Ana. A direct request to add a booking to Concepts is refused with "Pinecrest campaign is lost, so it can't change.", and Priya Nair's Schedule cell for 30 Nov reads "10/30".
- Ana confirms Lumen rebrand. Its Identity phase shows 90 h confirmed and 0 h tentative, and Maya Chen's Schedule cells for 30 Nov, 7 Dec and 14 Dec read "44/40" Over. A direct request to confirm it again is refused with "Only tentative projects can be confirmed."
- Closing Brightline website is refused with "Brightline website has 6 bookings that run after this week. End or delete them first." Ana creates Harbor app for Harbor Ferries as Tentative with a first phase Discovery of 60 h, and it is listed with a 60 h budget and 0 h booked. Creating a project called "brightline website" is refused with "There's already a project called Brightline website."
- Deleting Harbor app's Discovery phase is refused with "A project needs at least one phase.", and deleting Orchard app redesign's Discovery phase with "Discovery has 1 booking. Move or delete it first." Ana marks Harbor app lost, and it moves under Closed and lost.
Phase 4: Notifications and export
Using the Capacity Planner blueprint above, build Phase 4 only.
1. Add the notifications in section 11 to the actions built in Phases 1 to 3 (bookings, time off, holidays, working hours and confirming a project). Write each one to the outbox in the same transaction as the change and send it after the commit. Email can use any provider we have; if none is configured, mark it "logged" instead of sending. A failed send never blocks or undoes the change.
2. Add unit tests for the "becomes Over" comparison: a week that was already Over, or is only Tentative over, sends nothing; weeks before the current week send nothing; the person who made the change gets nothing.
3. Build Admin → Outbox (section 10, screen 12) with Retry failed.
4. Build Export (screen 8) with both CSV files, exactly as specified.
When you're done, list what you built and anything in the spec you had to interpret.
Acceptance checks
- Signed in as Ana, add a booking for Sam Okafor on Orchard app redesign (Design), 20 h a week for the week of 7 Dec. Signed in as Dana, Admin → Outbox shows three new notifications, all logged: "Over capacity: Sam Okafor, week of 7 Dec (36 h of 16 h)" to Dana Ruiz and to Sam Okafor, and "New booking: Orchard app redesign (Design)" to Sam Okafor with the body "Ana Lima booked you on Orchard app redesign (Design): 20 h a week, week of 7 Dec." None goes to Ana Lima.
- Ana changes Ben Cho's Brightline website (Build) booking from 24 to 16 h a week. The outbox gets exactly one new notification: "Booking changed: Brightline website (Build)" to Ben Cho, whose body includes "Before: 24 h a week, weeks of 16 Nov to 14 Dec. Now: 16 h a week, weeks of 16 Nov to 14 Dec."
- Ana changes Priya Nair's Lumen rebrand (Identity) booking from 10 to 12 h a week, and the outbox gets no new notifications.
- Ana confirms Lumen rebrand. The outbox gets four new notifications: "Confirmed: Lumen rebrand" to Maya Chen and to Priya Nair (Priya's body includes "Identity, 12 h a week, weeks of 30 Nov to 14 Dec"), and "Over capacity: Maya Chen, 3 weeks from 30 Nov" to Dana Ruiz and to Maya Chen, whose body has three lines: "Week of 30 Nov: 44 h booked, 40 h capacity, 4 h over.", "Week of 7 Dec: 44 h booked, 40 h capacity, 4 h over." and "Week of 14 Dec: 44 h booked, 40 h capacity, 4 h over."
- Ana adds full-day time off for Ben Cho, Mon 30 Nov – Tue 1 Dec. The outbox gets "Time off added: Mon 30 Nov – Tue 1 Dec" to Ben Cho, and "Over capacity: Ben Cho, week of 30 Nov (24 h of 16 h)" to Dana Ruiz and to Ben Cho.
- Signed in as Maya, she adds time off for Fri 4 Dec. Her Schedule cell for 30 Nov reads "44/32" Over, and the outbox gets no new notifications (the week was already Over, and she made the change herself).
- Signed in as Ana, Export → Weekly load CSV for the weeks of 16 Nov to 23 Nov downloads
weekly-load-2026-11-16-to-2026-11-23.csvwith 16 rows. Lee Park's row for 2026-11-16 reads capacity_hours 36, confirmed_hours 40, tentative_hours 0, booked_hours 40, free_hours -4, utilization_pct 111, status over; Maya Chen's row for 2026-11-23 has capacity_hours 0, an empty utilization_pct and status off. - The Bookings CSV for the week of 23 Nov to the week of 23 Nov has 6 rows, in this order: Ben Cho (Brightline website, Build, 16), Ben Cho (Studio website, Refresh, 8), Jo Park (Brightline website, Design, 16), Lee Park (Brightline website, Build, 24), Priya Nair (Studio website, Refresh, 4) and Sam Okafor (Brightline website, Build, 16). There is no row for Maya Chen.
- Signed in as Maya, Export and Admin → Outbox are not in the navigation; opened by URL, Export shows "Planners only." and Admin → Outbox shows "Admins only.", and direct requests for either CSV are refused.
16. Variations
- Percentages of capacity ("half of Maya's time for four weeks"), converted to hours.
- Working hours that change from a chosen week on, so past weeks keep their capacity.
- Several holiday lists for offices in different countries, one per person.
- Placeholders for roles you haven't hired yet, swapped for a person later.
- A Monday "your week" email for each person, sent by a scheduled job.
- Bookings for specific days, with over-capacity checked per day.
- Time tracking, so planned hours can be compared with actual hours.
- Bill rates and fees, so budgets can be in money as well as hours.
- Drag and drop on the grid to move bookings between people and weeks.
- Slack messages for over-capacity and booking changes.
- Approved leave imported from the Time-Off Tracker blueprint, so time off is entered once.
17. Build notes from our test build
We built this blueprint by sending the four phase prompts above, in order, to an AI builder (Claude, working in Type, with a fresh session for each phase that saw only this spec and the code so far), then checked every acceptance item in a real browser. Each phase's checks started from Reset to seed data and ran in order on the same data, as the build plan says; the seed's fixed clock (Wed 18 Nov 2026, 09:00 New York time) meant every week, cell and total matched the worked examples. Where a check says something is refused, the person saw the reason on screen and a direct request got an error with nothing changed. Notifications were read on the Admin → Outbox screen with their bodies opened, and both CSV files were downloaded and parsed.
Result: 33 of 33 acceptance checks passed in one final browser run on a fresh database, plus 222 automated tests. The item-by-item results are in acceptance-results.json.
Gaps the build found, now fixed in this spec:
- Sign-in didn't say whether a session survives its person being deactivated. Every request now checks that the signed-in email belongs to an active Person, so deactivation ends access at once.
- Choosing an inactive person in "sign in as" had no defined result. It now signs the current person out and shows "Ask an admin to add you."
- A request with no session had no message. It gets "Sign in first."
- Admin → People had no messages for a bad name, email, title, role or on-the-schedule value, and Skills and Holidays none for a bad name. Each now has one in R8 and R9.
- The spec didn't say whether people added by an admin must use the company email domain. Any address of the form name@domain is accepted; the domain is enforced only at sign-in.
- R8's "bookings that run this week or later" didn't say whether bookings on lost or closed projects count, though R5 makes them impossible to end or delete as the message asks. They don't count.
- "At least one active admin" didn't say whether it applies to deactivation as well as role changes. It applies to both.
- The spec didn't say whether an edit request must send every field. Edits change only the fields they send; the rest keep their values.
- R3 didn't say how empty, negative or non-numeric hours are treated. They get the same R3 message as an out-of-range number.
- Deactivating someone already inactive, reactivating someone whose email is now taken, and editing inactive people were not covered. Repeats do nothing, reactivation rechecks the email, and inactive people can be edited.
- The skill delete question didn't say whether it counts inactive people, while the Skills list counts active ones. The question counts everyone who has the skill ("Remove X from 0 people?" when none does).
- Renaming a skill to its own name in different case was not covered. It is allowed, and duplicate messages quote the existing skill's stored name.
- Holidays didn't say whether past dates are allowed, whether a holiday can be renamed, or what deleting one that's gone says. Past dates are allowed, holidays are added and deleted but not renamed, and a repeat delete gets "This was already deleted."
- Admin → Holidays' "Pick a year" gave no list of years or default. It offers every year with a holiday plus last, this and next year, and opens on the current year.
- The navigation listed all screens, but each phase builds only some of them. Navigation now shows a screen once its phase has built it.
- The clock's "Today: Wed 18 Nov 2026" shows the year although R13 drops the current year, and "+1 day" didn't say how it handles a clock change. The toolbar always shows the year, and +1 day and +1 week keep the wall time.
- The spec didn't say when the seed loads. In development an empty database loads it on first start; production never loads it by itself.
- Timestamps had no stated precision, while the bookings CSV example shows whole seconds. Timestamps are UTC ISO 8601 to the second.
- Admin → People and Skills gave no order. Both sort by name ignoring case, with inactive people in the same list, greyed out; holidays sort by date.
- The Team row shows "booked/capacity" and a utilization, but section 14's 30 Nov cell (170/286, 48%) only works as confirmed ÷ capacity. The spec now says the Team row's percentage is confirmed only, as utilization is everywhere.
- The week detail's "the status" didn't say whether it gives an amount. It reads "Over by 4 h", "Tentative over by 4 h" or "Off", like the preview.
- The week detail gave no order for its booking lines and no way to open it directly. Lines sort by project name, phase position, then created_at, and the panel has its own address.
- The Schedule's paging and filter had no stated behaviour. Previous and Next move 4 weeks, This week returns to the current week, and an empty filter result replaces the grid and Team row with the message.
- The live preview didn't say who may run it, when it runs, how a week with no status reads, whether the phase line shows the flag, or how editing is previewed. It is a planner action, runs once person, phase, first week and hours are filled, shows only the hours for a week with no status, shows the left wording rather than the flag, and previews an edit as replacing the stored booking.
- R12 didn't cover a save with no updated_at, a change to a deleted booking, or two saves in the same instant of a frozen development clock. A missing updated_at counts as stale, a deleted booking gets "This was already deleted.", and every save moves updated_at forward.
- R4 didn't say whether a booking of someone now inactive or off the schedule can be moved to someone else. It can't be changed at all, only deleted, and the message names its current person.
- R5 made closed and lost projects read-only but didn't say what their booking edit page shows. It shows the R5 message and no form; their bookings can't be changed or deleted.
- The booking request had no defaults for a missing Tentative or last week. Tentative left out is ticked on a tentative project and unticked otherwise, and an empty last week means one week.
- The booking form had no messages for a missing person, phase or unit, or a long note, and no rule for which error wins. Each has one, checked in the order person, phase, weeks, hours, tentative, note, showing the first.
- R7 had no message for a member adding someone else's time off or for time off for an inactive person, and didn't say what an empty last day means. They get "Planners only." and "Only active people can be given time off.", and an empty last day means one day.
- "Today or later", Upcoming and Past were not tied to dates. Members may add time off starting today; Upcoming ends today or later; Past ended in the 365 days before today.
- R7's overlap message didn't say when "your" is used or which time off it quotes. It says "your" when the person is the one acting, and quotes the earliest overlapping time off.
- Time off lines had examples for a full range and a one-day part day only. One full day still reads "full days", a part day over several days reads "4 h a day", inactive people's time off stays listed, and planners can pick anyone active, on the schedule or not.
- Deleting a booking and time off asked for a confirmation with no wording. They read "Delete this booking?" and "Remove Lee Park's time off, Fri 20 Nov?"
- The person list didn't say how to edit a booking whose person can no longer be booked. That person stays in the list as "(not on the schedule)" so Delete is reachable, and leaving a tentative project restores the planner's own Tentative choice.
- The booking form didn't say where it goes after saving. It returns to the screen it was opened from, or the Schedule.
- Section 4 said everyone can see everything but didn't say this covers the API. Every read, page or API, is open to every signed-in person; only changes are restricted.
- "At most 52 weeks" didn't say whether both ends count. They do: 16 Nov 2026 to 8 Nov 2027 is 52 weeks and allowed.
- R13's "current year" didn't say whose year. It is the year of today from now(), so the development clock decides it.
- The current-week highlight didn't say what happens when you page away. Only the current week's column is highlighted, so nothing is when it isn't shown.
- The day rules didn't say what happens if two time off rows cover one day. R7 prevents it, but if it happens a full day wins, otherwise the larger part day.
- The preview's phase line didn't say which bookings it adds up. It uses section 7's arithmetic over all the phase's bookings, past and future, including inactive people's.
- Section 7 said a lost project shows its numbers "on its own page only", but a check expects Pinecrest's budget and booked hours on the Projects list. The spec now says lost hours count nowhere else, while the list shows its budget and booked hours under Closed and lost, without a flag.
- Section 7 didn't say whether closed projects keep their flags. They do; only lost projects drop them.
- R10's example "Build has 6 bookings" didn't match the seed, which has 5 Build bookings. The example now reads "Build has 5 bookings. Move or delete them first."
- "Runs after the current week" didn't say whether a booking ending this week blocks Close, or whether inactive people's bookings count. It means last week after this week's Monday, and inactive people's bookings count.
- A phase with no budget showed "No budget" but nothing was said about left, used and flag cells. They show "–" and an empty flag.
- Confirming a lost project could get either the wrong-status message or R5's "can't change". The wrong-status message wins.
- Deleting a project's only phase that has bookings matched two rules. Checks run R5, then at least one phase, then bookings.
- Duplicate project and phase names didn't say which name the message quotes or whether a case-only rename is allowed. The message quotes the stored name, and renaming to your own name in another case is allowed.
- Confirming flips bookings to confirmed but didn't say whether that counts as changing them. It sets their updated_by and updated_at, so a booking form opened before gets R12's message.
- The project page header didn't list what it shows beyond name, client and status. It also shows the budget, booked hours and flag, as on the list, with the status as Tentative, Confirmed, Closed or Lost.
- The project page's booking rows didn't define their status, total, one-week wording, ties or inactive people. Status is the booking's own, total is its hours over all weeks, one week reads "week of 7 Dec", ties go by phase position then created_at, and inactive people's bookings are marked "(inactive)".
- The project page's Add booking didn't say what it fills in. It picks the project and its first phase and returns to the project page.
- Projects and phases had no messages for a bad name, client or status. They are "Enter a project name of 1 to 80 characters.", "Keep the client to 80 characters or fewer.", "Choose Tentative or Confirmed." and "Enter a phase name of 1 to 60 characters."
- Confirm, Mark lost, Close and phase Delete had no confirmation wording. Each now has one, such as "Confirm Lumen rebrand? Every booking on it becomes confirmed."
- The New project form didn't say its default status or where it lands. It defaults to Tentative and returns to the list.
- Who has time didn't say what happens with a first week and no last week, or whether 26 weeks counts both ends. It runs to 3 weeks after the first, and both ends count.
- Who has time gave free hours as "24 h free" and "Over by 12 h" but not zero or the week cells. Zero reads "0 h free" and week cells are bare numbers ("-4").
- "Count tentative bookings as busy (ticked by default)" didn't say how an unticked search differs from a first visit. A first visit is ticked; a search sent with the box unticked counts tentative hours as free.
- Who has time rows didn't give the skill order, the tie-break or whether planners are included. Skills are alphabetical, ties sort by name ignoring case, and everyone on the schedule is included, planners too.
- Book didn't say what it fills in beyond person and weeks, or where it returns. It fills only the person and the searched weeks and returns to the same search.
- Section 5 said each send attempt adds 1 but not whether logging counts. Logging counts as one attempt and sets sent_at.
- "Send it after the transaction commits" didn't say whether before or after the request answers. Logging and sending happen before the request answers, so the outbox is final when the response arrives.
- "A notification failure never blocks or undoes the change" sat next to "write it in the same transaction". A failed send never undoes the change; a failed outbox write rolls the whole change back.
- "From the current week on" gave no end. The comparison runs from the current week to the person's last booked week on a project that isn't lost.
- "Was not Over and now is" didn't say whether Tentative over to Over counts. It does, which is how confirming Lumen rebrand gives "3 weeks from 30 Nov".
- Affected people didn't exclude anyone. Only active people on the schedule are checked.
- Only project confirmation said inactive people are never notified. No notification of any kind goes to an inactive person.
- Over-capacity recipients didn't say whether admins off the schedule get them, or how several people going Over in one change are sent. Role decides, so Dana gets them, and each person who goes Over is a separate notice.
- The over-capacity subject's "{booked} h of {capacity} h" didn't say whether booked includes tentative, or how body lines are joined. It is booked (confirmed + tentative), and lines are separate lines.
- The over-capacity triggers didn't say which edits count as "working hours changed" or whether removals run the check. Only a change to a day's hours does; deletes, removals, Mark lost and Close never make a week Over.
- "Before or after the change, is confirmed and runs this week or later" didn't say whether both conditions apply to the same side. Each side is judged on its own: confirmed and last week this week or later.
- "Changing only the note sends nothing" didn't list the fields that do count. They are phase, first week, last week, unit, hours and tentative; saving with nothing changed sends nothing.
- Booking changed had no wording for a phase change. The subject names the new phase, and Before and Now start with "Project (Phase), ".
- Added and removed bodies didn't say whether they give the whole range or only weeks from now. They give the whole range, and the confirmed lines carry no "(tentative)" and no full stop.
- The project-confirmed body gave no line order. Lines sort by first week, then phase position, then created_at, on separate lines.
- Time off notices used "(4 h a day)" for a one-day part day while the Time off list reads "4 h", and didn't say whether past time off is notified. Emails always say "(4 h a day)", and time off is notified whatever its dates.
- When one change sends several notifications, the order wasn't given. Booking, time off and confirmed notices are written first, then over-capacity ones, recipients sorted by name.
- "Newest first" had no tie-break, and the development clock gives many rows the same time. Ties go by the order they were written, latest first.
- The outbox didn't say how kind, status and time are shown. Kind and status are the stored values, time is "Wed 18 Nov 09:00" in the team time zone, and the body opens under its row.
- Retry failed didn't say whether it covers rows stuck in queued, what a success clears, or who may use it. It covers failed rows only, a success clears the error, and it is admins only.
- Export had no default range and didn't say what an empty last week means or whether 52 weeks counts both ends. It opens on the current week plus 7, an empty last week means the first, and both ends count.
- The weekly load CSV didn't say whether "active people on the schedule" means now or in each week, what utilization_pct uses, or the status with none. It means now, utilization_pct is confirmed ÷ capacity, and no status is
ok. - The bookings CSV order didn't say whether names compare ignoring case or what breaks a final tie, or whether closed projects and inactive people are in it. Names compare ignoring case, then created_at, then booking id; closed projects and inactive people are included.
- The CSV formats didn't give line endings, encoding or a rule for a trailing line break. Files are UTF-8 without a BOM, LF line endings, no line break after the last row, and no formula escaping.
- Export didn't say how a bad range shows when the file is a download. The page checks the range first and shows the R2 message inline; only a good range downloads.
- Navigation listed "Admin (admins)" and Admin → Outbox but not where the Outbox link goes. Export is a top-level link and the Outbox is a tab inside Admin.
- The outbox had no messages for an empty outbox or a retry result. They are "No notifications yet.", "No failed notifications to retry." and "Retried 2 notifications."
What we did not test:
- Production sign-in: every check used the development "sign in as" switcher; the production path was a stub that refuses and was never tried with Google or a platform's sign-in.
- Real email delivery: every notification was logged in the outbox; no email provider was configured, so failed sends and Retry failed were covered only by unit tests with a failing sender.
- A real scheduler: v1 has no scheduled jobs, so there was none to run.
- Hosting: the checks ran on localhost with SQLite.
- Clock changes: the checked weeks (16 Nov 2026 to 4 Jan 2027, New York) cross none, so day-by-day stepping over a clock change is covered only by unit tests.
- Two planners saving the same booking at once, and two people confirming one project at once: unit tests cover a stale save and a second confirm made one after the other, but no truly simultaneous requests and no acceptance check.
- Phones beyond one 390-pixel Chromium viewport.
Field report
Building a Float replacement with AI, 33 checks and 89 spec gaps
We had an AI builder build a capacity planner from our spec, one phase at a time, and checked every acceptance item in a real browser. It passed all 33 checks in one final run and exposed 89 gaps in the spec, the most of our twenty-eight build tests. What it costs next to Float, and what we did not test.
The short answer
Yes, for a team of 5 to 40 people that plans its work week by week. We gave Claude, working in Type, our Capacity Planner blueprint and had it follow the four phase prompts in order, with a fresh builder for each phase that saw only the spec and the code. The final build passed 33 of 33 acceptance checks in one browser run on a fresh database, with 222 automated tests.
The build exposed 89 gaps in the spec, places where the builder had to guess. That is the most of our twenty-eight build tests, ahead of the shift scheduling build (84), the invoice reminders build (83) and the equipment tracker (82), and far above the median of 20 for the other twenty-seven. Every gap is now fixed in the published spec, and the item-by-item results are published as acceptance-results.json.
What it is not: a tested production deployment; see the last section.
What we built, and what we left out
We read Float's pricing and product pages and its help center in October 2026 and kept the part a small studio uses every week:
- Real capacity per person per week: working hours for each weekday, minus company holidays and full or part days off, with a holiday counted once even when time off covers it.
- Bookings by the week, in hours a day or hours a week, confirmed or tentative, with a live preview of what each change does before it is saved.
- Over and Tentative over, so a week that only breaks if a pitch is won looks different from one that is already broken.
- Phase budgets in hours, a "who has time" search by skill, email through an outbox, and two CSV files.
Left out on purpose: time tracking, rates and money, percentage allocations, placeholders, regional holiday calendars, time off approvals, integrations and a mobile app.
What it costs next to Float
Float charges per scheduled person. Starter is $7 and Pro is $12 per scheduled person per month billed annually, or $8.50 and $14 billed monthly; Enterprise is priced through sales. People who don't need to be scheduled can be free guests, and the 30-day trial runs on Pro (float.com/pricing, checked October 2026). For 20 scheduled people, Starter comes to $1,680 a year.
Float is not expensive, so build to own the rules and the data, not mainly to save money. Buy when you need planned-against-actual hours, budgets in money, placeholders or integrations. Our Float alternative page has the side-by-side.
How the build went, phase by phase
After each phase, its checks ran as Playwright scripts in Chromium, clicking through the app as people from the seed company, Larkspur Studio. The seed fixes the clock at Wed 18 Nov 2026, so every cell matches the spec's worked examples.
- Foundation. All 7 checks passed. Deactivating Lee Park was refused with "Lee Park has 1 booking that runs this week or later. End or delete it first.", and Priya Nair's 4-hour Friday turned her into "28 h a week".
- Capacity, bookings and the Schedule. All 9 checks passed. All 64 person cells matched section 14, including Lee Park's "40/36" Over and Maya Chen's "0/0" Off in Thanksgiving week, and the preview for Sam Okafor read "Week of 7 Dec: 36 h of 16 h · Over by 20 h" before Ana saved it.
- Projects, budgets and Who has time. All 8 checks passed. Brightline website showed a 530 h budget, 564 h booked and Over budget; confirming Lumen rebrand turned Maya's three Tentative over weeks into "44/40" Over.
- Notifications and export. All 9 checks passed. Confirming Lumen rebrand sent "Over capacity: Maya Chen, 3 weeks from 30 Nov" to Dana and Maya, and the weekly load CSV gave Lee Park's week of 16 Nov as capacity 36, booked 40, free -4 and utilization 111.
No build fix was needed; four of our own scripts did, over option labels, the shape of one API response and a page that hadn't finished loading. The final run reset to the seed before each phase, as the build plan says, and ran all 33 checks in one pass.
The 89 gaps, grouped
The four builders listed 97 numbered interpretations. Leaving out choices about our test setup, such as HTTP status codes and a development switch for failing emails, and repeats left 89. The full list, with each fix, is in the blueprint's build notes.
Capacity, the Schedule and Who has time (12 gaps)
The Team row showed booked hours next to a percentage that only matched section 14 as confirmed hours: 30 Nov reads "170/286" and 48%. The week detail's status had no amount, and Who has time didn't say what happens with a first week and no last week, or how zero free hours read.
Lesson: when one cell shows two numbers, say which hours each one counts, and check it against a worked example.
Bookings and the live preview (11 gaps)
The preview didn't say whether members may run it, when it runs, or whether an edit is previewed on top of the stored booking or instead of it. R4 didn't say whether a booking of someone now off the schedule can be moved to another person, and R12 didn't cover a save with no updated_at.
Lesson: for a preview, write who may ask for it and exactly which record it pretends to have saved.
Projects and budgets (15 gaps)
Section 7 said a lost project shows its numbers "on its own page only", but a check reads Pinecrest's 40 h and 20 h on the Projects list. R10's example "Build has 6 bookings" didn't match the seed, which has 5, and confirming a lost project matched two different refusals.
Lesson: run every example message against the seed, and when a check and a rule disagree, fix whichever one is wrong in the same edit.
People, time off and admin screens (23 gaps)
R8's "bookings that run this week or later" didn't say whether bookings on lost projects count, though they can never be ended or deleted as the message asks. The toolbar shows "Today: Wed 18 Nov 2026" with the year while R13 drops the current year, and there was no wording for a one-day full day off or a part day over several days.
Lesson: give every refusal a message the person can act on, and write the wording for the one-item and many-item cases.
Notifications, the outbox and CSV export (28 gaps)
The over-capacity rule didn't say whether a week going from Tentative over to Over counts (it must, or confirming a pitch would send nothing), how far ahead to look, or whether inactive people are notified. "A notification failure never blocks or undoes the change" sat next to an outbox written in the same transaction, and the CSV files had no line endings or tie-breaks.
Lesson: for every notification, name the before and after states that trigger it. See What AI app builders get wrong for the same patterns across every build.
What we did not test
- Production sign-in. Every check used the development "sign in as" switcher; the production path was a stub that was never tried with a real sign-in provider.
- Sending email. Every notification was logged in the outbox; a failing sender was tried only in unit tests.
- Hosting. The checks ran on localhost with SQLite. v1 has no scheduled jobs.
- Clock changes. The checked weeks, 16 Nov 2026 to 4 Jan 2027 in New York, cross none.
- Simultaneous changes. Two planners saving one booking at once was tested only one save after the other.
- Phones. One 390-pixel Chromium viewport was captured; no physical phone was used.
See Is an AI-built internal tool ready for production? for every build.
Build it yourself
The Capacity Planner blueprint is free: one Markdown file with the data model, the capacity rules with worked examples for every kind of week, budget arithmetic, 13 business rules, screens, seed data, the four phase prompts and all 33 acceptance checks, with the 89 fixes already in. If you find a gap we missed, tell us on the About page and we'll fix it and credit it in the build notes.
Capacity Planner: questions people ask
How do you calculate a person's capacity for a week?
Add up their working hours for each day of the week, then take out holidays and time off. In this blueprint a holiday is checked first, so time off that covers a holiday, or a day the person doesn't work, never removes hours twice. For example, a copywriter who works 6 hours a day and books Wednesday to Friday of Thanksgiving week off has 30 - 6 - 12 = 12 hours that week: the two holidays come off once, not twice. A part day off removes only its hours.
Should you book people in hours per day or hours per week?
Both are useful, and they behave differently. A booking in hours a day only lands on the days the person is available, so holidays and full days off shrink it automatically: 8 hours a day in Thanksgiving week is 24 hours. A booking in hours a week stays the same whatever the week holds, so in this blueprint a developer with 24 and 8 hours a week of bookings in a 24-hour holiday week shows 32/24 and is flagged Over.
How should tentative work count in capacity planning?
Show it, but separately from confirmed work. In this blueprint a week is Over when confirmed hours alone exceed capacity, and Tentative over when only the tentative hours push it past: a designer with 24 confirmed and 20 tentative hours in a 40-hour week shows 44/40 and Tentative over. Confirming the pitch turns those weeks Over and sends an over-capacity email to the designer and to the admins and planners other than the person who confirmed it. The who-has-time search can count tentative work as busy or not.
How do you calculate team utilization?
Divide confirmed hours by capacity and round to a whole percentage; this blueprint also shows utilization with tentative work included. Add the hours up before dividing: with the sample data the team has 282 hours of capacity and 138 confirmed hours in one week, so utilization is 49%. An over-booked week goes above 100%, such as 40 hours booked against 36 hours of capacity, which is 111%.
How do you find out who has time for a new project?
Search by skill and weeks, and sort people by free hours: capacity minus confirmed and tentative bookings. In this blueprint, searching for UI design over three weeks lists a part-time designer with 24 hours free before the design lead, who is over by 12 hours if a tentative pitch goes ahead. Untick "Count tentative bookings as busy" and the design lead comes first with 48 hours free.
What data model does a capacity planner need?
Person (working hours for each weekday, skills, role, and whether they are on the schedule), Skill, Holiday, TimeOff (dates and optional part-day hours), Project (tentative, confirmed, closed or lost), Phase (a budget in hours), Booking (person, phase, first and last week, hours a day or a week, tentative or not) and a Notification outbox. Totals are never stored: capacity, free hours, utilization and budget use are computed from these rows every time.
How much does Float cost?
Float charges per scheduled person: Starter is $7 and Pro is $12 per person per month billed annually, or $8.50 and $14 billed monthly, and Enterprise is priced through sales (checked October 2026). People who only need to view the schedule can be free guests. For 20 scheduled people, Starter costs $1,680 a year billed annually.
Get new blueprints by email
One email when a new blueprint is published. Nothing else.
More blueprints
Client Onboarding Tracker
Client onboarding lives in one person's head, and things fall through the cracks.
- No.
- 006
- Dept.
- Ops
- Status
- Tested
- Replaces
- Rocketlane
Approval Workflow
Purchase requests get lost in Slack, and nobody knows who approved what.
- No.
- 007
- Dept.
- Ops
- Status
- Tested
- Replaces
- Kissflow
Project Status Board
Every Monday I rebuild the same status report from scratch.
- No.
- 008
- Dept.
- Ops
- Status
- Tested
- Replaces
- Monday.com
All operations blueprintsEvery blueprintHow we test blueprints