Case study · iOS · 2026
Most fasting and fitness research was done on men. Phasely adjusts fasting windows, food and movement to five phases of the menstrual cycle, and its AI coach tells you where the experts disagree instead of pretending they don't.



The five phases · 28-day reference cycle
Boundaries scale with your own cycle length
The problem
Fasting apps hand everyone the same window. Insulin sensitivity, stress tolerance and energy shift across the cycle, so the same fast that suits Build can work against you in Soften.
Experts genuinely disagree on cycle-synced fasting. Some say fast less in the luteal phase, others say the effect is smaller than claimed. Most products pick one voice and present it as fact.
Fasting is not safe for everyone. Pregnancy, a history of eating disorders, medicated diabetes and untreated thyroid conditions all need a clear no, not a gentle nudge.
The AI coach
The coach answers from a knowledge base I sourced and structured by hand, not from the model's memory. Every question takes one of four paths, decided by how closely it matches what the knowledge base holds.
Paths are checked in this order; the first that matches wins. Today's phase and cycle day are added to the prompt at generation, not used to filter retrieval. Answers stream token by token, and the last four messages of a session carry over as memory.

The knowledge base
I mapped the field into six camps, from strongly pro cycle-synced fasting to openly sceptical, and wrote each position as one claim per chunk with its author attached. Two flags travel with every chunk into the prompt: contested, and harm reduction, which tells the model never to amplify restriction.
Disagreement maps pre-answer the questions people actually ask, such as "Should I fast during my period?" or "I have PCOS, should I try fasting for it?", with every camp's view side by side.
Expert positions by camp
Bars to scale. Post-menopausal users get a retrieval boost on the peer-reviewed studies.

Meal photos
Snap a meal and the coach reads it against your current phase. A larger model does the looking, a fast one does the talking, and the same knowledge base grounds the comment.
sliced veal tuna sauce (tonnato) capers Low inflammation
Safety and privacy
Phasely suggests, it doesn't instruct. The guardrails are part of the product, built into onboarding, the coach and the backend.
Shipping it
Getting from a working simulator build to a stable App Store app took longer than building the features. Each round taught me something the docs didn't say.
Review asked where the HealthKit integration lived (2.5.1) and how to find the disclosures (2.1), answered with a walkthrough and a screen recording. Guideline 5.1.2(i) needed real work: a consent screen before the coach that names what is sent, and to whom.
ApprovedGuideline 2.2. The reviewer had screenshotted the perimenopause exit screen, whose "come back in a few months" read as an admission of an unfinished feature. I rewrote it as a deliberate scope decision, kept guest mode so reviewers see the real app without an account, and fixed a chain of offline and cold-start traps on the way: unguarded awaits during onboarding, a profile overwrite race and an infinite coach spinner.
Guideline 2.2The root cause was a deadlock inside Supabase's auth library: the auth state listener awaited a profile fetch while the client was still initialising, and each waited on the other. The fix was upgrading supabase-js and making the listener synchronous, then a full day of real-world cold starts before resubmitting.
Root cause, not a timeoutThe store listing
The App Store screenshots are real app screens, composed headlessly in PhotoCraft, an open-source Photoshop rebuild, by an AI agent from a script: gradient, phase-coloured haze, Lora headline, drawn device frame. Fourteen commands per image, re-rendered in seconds when the app changes.
Under the hood
87 unit tests cover the phase calculator, the meal pipeline, citation stripping, data export, account deletion and privacy compliance.
What it taught me
The hardest part of an AI health app isn't the model. It's deciding what it should refuse to say, and proving it holds up on a real phone.