The pre-build gap audit found 26 issues (16 blockers); the first correction pass fixed them, and a re-audit verified those fixes — but found 5 blockers and 12 should-fix items of its own, several in places the first pass had claimed closed. The second correction pass fixed those in the re-audit's own order; a third audit then found the remaining class of problem — state that worked on one screen but never travelled to the others — and the third pass, also below, closed it in the inspector's order: one status function first, then the interaction models, then Stop/Delete and Edit, then the iPad, then the should-fix items and nits. A fourth audit then re-ran the interaction sequences themselves — deleting a medicine, adding one on a non-daily schedule, editing a schedule kind, the early-logging window — and found the places where a flow still stopped halfway; the fourth pass, also below, closed those in the audit's order. A fifth audit then re-ran the sequences against the deeper models underneath the flows — snooze timing, start dates, the taper, kind changes — and the fifth pass, also below, closed those in its order. A sixth audit then traced what the rebuilds and kind changes left behind — rows keyed to doses that no longer existed, kind-specific models surviving the kind change that should have cleared them — and the sixth pass, also below, closed those in its order. A seventh audit then traced what the seed data and the schedule arithmetic still owed — seed-taken rows whose corrections bypassed their live doses, a duplicate check blind to brand names, dose days asserted by a start-date gate instead of computed — and the seventh pass, also below, closed those in its order. An eighth audit then traced live-row ownership — two rows speaking for one dose, a past correction able to move a bottle count twice, a duplicate check that only resolved the name being typed — and the eighth pass, also below, closed those in its order. A ninth audit then traced the demo clock's rewind — snooze state it never touched, History copy that still promised every row was tappable, and a dead early-note branch the eighth pass had left behind — and the ninth pass, also below, closed those in its order. A tenth audit then traced the rewind one step further — skips it still left standing, snoozes placed after the rewound time, and a duplicate dialog whose example never followed its match — and the tenth pass, also below, closed those in its order. An eleventh audit then traced the seams those two threads still left — two live-dose correction notes the rewind filter could not see because they carried no timestamp, a rewind toast that counted only the taken doses it un-logged, and a duplicate dialog whose brand-name clause and demo example did not always follow their match — and the eleventh pass, also below, closed those in its order. A twelfth audit then traced the duplicate check's edges and the demo dialog's loose ends — a formulation suffix in a name the Add form's own suggestion list offers, slipping a duplicate past the check; a demo button that left a real unanswered duplicate armed under the example's name; demo outcomes that spoke as if a real add had happened or been declined; and a rewind toast whose “neither” could outnumber what it had actually cleared — and the twelfth pass, also below, closed those in its order. A thirteenth audit then traced what the twelfth pass's own fix left unexplained — a dialog sentence that still credited the strength alone for a match the formulation suffix now decides, a demo Yes that toasted and stayed on an answered dialog, and an undo toast that named “Coming up” for a dose that lands in its early window — and the thirteenth pass, also below, closed those in its order. A fourteenth audit then traced the as-needed guard's memory and the surfaces that render ahead of their fences — a refusal that outlived the gap it described and misnamed the day's limit as “too soon,” a widget button rendered for doses it could not log, demo-clock toasts naming doses in states they had already left, and a scatter of dead code and small drifts the earlier passes had left standing — and the fourteenth pass, also below, closed those in its order. A fifteenth audit then traced the guard's two voices and the surfaces that render behind it — an as-needed refusal that named the gap when the day's limit was the binding rule, Spanish and iPad as-needed buttons left stale by a log the phone's card had already taken, a lock-screen action row that offered a missed dose the two answers Today forbids, a Siri button promising to log a dose still to come, taper steps in Edit that opened pre-filled with a count nobody entered, and a day's limit no demo-clock position could reach — and the fifteenth pass, also below, closed those in its order. A sixteenth audit then traced the empty state's blind spot and the copy still reciting the seed day — a Today declared empty while an as-needed medicine's card still had somewhere to be, an iPad tap routed to a page no visible screen shows, a late-evening toast quoting one dose's hour and one medicine's limits as if they were everyone's, and a greeting frozen at “Good morning” into the evening — and the sixteenth pass, also below, closed those in its order. A seventeenth audit then traced the surfaces that pass's own as-needed-only vocabulary had not reached — a home-screen widget and a Siri button still reciting an all-done day over a live as-needed card, a Settings reminders line claiming everything was logged on a day when nothing was, the emptied Spanish and iPad Todays still dividing zero by zero, and an iPad Medicines pane whose active rows answered no tap at all — and the seventeenth pass, also below, closed those in its order. An eighteenth audit then traced the one widget the seventeenth pass's vocabulary had not reached and the namings that still stopped at the first — a lock-screen widget that called every quiet day “all doses taken,” true neither on an as-needed-only day nor an emptied one nor a day of skips; a widget line and a Siri answer that named the first as-needed medicine even at its limit, inviting a dose the guard would refuse; a Family summary that fell silent about the as-needed medicine; a late-evening toast missing its early-window clause, with an all-answered fallback that fired over a dose still outstanding and a limit sentence that spoke for one medicine only; toast name lists that could name a twice-daily medicine twice; and an iPad note still reciting Acetaminophen by name — and the eighteenth pass, also below, closed those in its order. A nineteenth audit then traced the claims that were true only of the seed day — a late-evening hypothetical whose three log times reached the limit for one medicine's numbers only, a Family “next” line that named the first as-needed medicine even at its limit while a second could still be logged, a 9:30 AM toast missing the early-window clause its evening siblings carry and a fallback that fired over an outstanding early dose, a 9:12 AM toast still reciting the seed morning as a fixed claim, and a stale Acetaminophen clause standing in the iPad pane's seed markup — and the nineteenth pass, also below, closed those in its order. A twentieth audit then folded in the click-verified probe round the code-trace audits could not run, and traced what only a real tap could see — every answer the sixteenth and seventeenth passes gave an iPad tap was written to the phone's toast element, which sits in the phone column the iPad stop hides, so those taps still landed nowhere anyone could see; a Family summary that promised a dose would appear when Jane logs one on a day when every as-needed medicine stood at its limit and the guard would refuse that very log; a lock view that named a maxed medicine as plain “as needed”; an as-needed section label repeated once per medicine on the Spanish and iPad Todays; and an iPad Family pane that mirrored the phone's summary but not its next line — and the twentieth pass, also below, closed those in its order. A twenty-first audit then traced the seams the iPad's new visibility had left — the stop-sharing handler's stopping branch set the phone's “Not shared” Family lines without re-rendering, so the iPad Family pane, which copies those lines only when renderToday() runs, went on showing “Shared through iCloud” and the old summary after a stop-share until the next dose action or tab re-click; and the four dose-logging handlers chose their toast's language from the phone's current view, which switching to the iPad stop never changes, so a Spanish-view user's tap on the iPad's English pane answered in Spanish — and the twenty-first pass, also below, closed those in its order. A twenty-second audit then traced the demo-clock toasts' last unguarded fallbacks and a Help button that opened an unpopulated page — the 9:30 AM toast's “the morning's doses are answered” and the 6:00 PM toast's “the day's earlier doses are all answered” could each fire in the same toast that went on to name a dose standing Missed, and the 11:00 AM toast's “everything due earlier was answered” could fire while a dose stood still due; Help guide 4's “Show me in the app” opened the detail page's static markup without populating it, so on a fresh load its Edit and “I refilled this” buttons — both keyed to the medicine the page was opened on — answered no tap at all; and the Spanish Taken toast named the medicine by its English name and dropped the early-log distinction its English twin carries — and the twenty-second pass, also below, closed those in its order. A twenty-third audit then took up the click-verified probe finding the code-trace audits had missed, and traced the last “all taken” claims — the lock-screen widget's “All doses taken today” and Siri's “everything is taken” alike rested on taken > 0 rather than taken == total, so a mixed day (4 doses taken, 3 skipped, nothing outstanding) read as all taken on both surfaces though three of its doses were skipped, not taken; and a “word for word” claim for the seed hypothetical that the computed sentence's own medicine-naming had already outgrown — and the twenty-third pass, also below, closed those in its order. A twenty-fourth audit then traced the numbers the copy still recited instead of counting — a Sunday week cell that read “1 skip” however many of the slot's doses were skipped, disagreeing with the per-dose readout its own detail view gives; a 9:30 AM toast whose “Nothing turns Missed until 11:00 AM” recited Metformin's hour even when an added 8:30 AM dose turned Missed at 10:30 AM; and two “all answered” fallbacks — the 10:00 PM toast's “the day's doses are all answered or missed” and the 9:30 AM toast's “the morning's doses are answered” — that could each fire while a dose stood in the “next” state, still to come and unnamed, though the 6:00 PM toast names such doses in its “Still to come” clause — and the twenty-fourth pass, also below, closed those in its order. A twenty-fifth audit then traced the one fallback the twenty-fourth pass's gating had not reached, and the small disagreements of dress and grammar the counted labels left behind — the 10:00 PM toast's “all answered or missed” fallback, gated on due, early, and “next” but never on snoozed, firing over a dose snoozed at 10:00 PM whose own card read “Snoozed — reminds again at 10:10 PM”; a Sunday week cell that wore the green ✓ over its counted skip label while Saturday's seed cell with the identical “1 skip” wore the grey dash, so a slot whose doses were all skipped read as taken at a glance on Sunday; and two multi-name sentences — the 6:00 PM toast's snoozed clause and the 9:30 AM toast's expired-snooze sentence — that kept the singular verb for a plural list — and the twenty-fifth pass, also below, closed those in its order. A twenty-sixth audit then traced the clauses the gatings had left in each other's shadow — the 6:00 PM toast's snoozed clause sitting in the else-branch of its due clause, so a snoozed dose went unnamed whenever any dose was due, and the 9:30 AM toast's “Snoozed:” clause in the same shape; a 10:00 PM snoozed list deduped by medicine key but not by name, so a duplicate-named pair with both doses snoozed could repeat one name in two sentences; and a redundant inner check in the Sunday week cell that the empty-slot return above it had already settled — and the twenty-sixth pass, also below, closed those in its order. A twenty-seventh audit then traced the last toast branch the snooze handling had never reached, and the small questions the counted labels and clauses had left open — the 11:00 AM toast, which computed only missed, due, and early lists and never named a snoozed dose, whose “everything due earlier was answered” fallback could fire over a dose snoozed at 11:00 AM (an added dose due between 9:00 and 11:00 is Due and snoozable there through Today's card), and whose early-window list deduped by medicine key but not by name, the one list the twenty-sixth pass's name dedupe had not reached; a Sunday week cell whose slot held a skip beside a dose still to come, where the counted skip label and the next dose's time both claimed the cell; the 6:00 PM toast's due clause, which kept the plural “they can be logged” for a single due dose; and the 9:12 AM toast, the one clock toast of the five that never named a snoozed dose — and the twenty-seventh pass, also below, closed those in its order. A twenty-eighth audit then traced the one count a summary still recited instead of counting, and the one clock toast that named every state but due — a Family summary that hardcoded “1 due now” while two doses stood Due at 6:00 PM in the seed day, naming only the first of them; and a 9:12 AM toast that named early and snoozed doses but never the dose standing Due, the last of the five clock toasts not to name one — and the twenty-eighth pass, also below, closed those in its order. A twenty-ninth audit then traced the one state the first toast still never named, and the small agreements of grammar the counted clauses still owed — a 9:12 AM toast that named due, early, and snoozed doses but never a missed one, the last of the five clock toasts not to name one; an early-window clause that kept the singular possessive “its” for a list of names in all four toasts that carry it; a Family summary whose snoozed parenthetical kept the singular verb “reminds” however many doses stood snoozed; and an iPad Family pane whose explanatory sentence enumerated the summary's counts without the due count the twenty-eighth pass had just made real — and the twenty-ninth pass, also below, closed those in its order. A thirtieth audit then traced the claims that outran the rules and tokens beneath them — stop 2's undo sentence, which landed every undo of a dose whose time had passed on Missed when the implemented rule lands it back on Due inside the 2 hours, with the same loose wording standing in undoToast's own header comment; an as-needed status that told a medicine never taken at all that “the 4 hours have passed”; a Spanish early-window card missing the early-logging explanation its English twin carries; and a contrast claim that put the secondary text above 10:1 when the palette's tokens support nearly 10:1 — and the thirtieth pass, also below, closed those in its order. A thirty-first audit then traced the one flag the grace rule's bounds had not reached — the correction-time handler set its late flag for any corrected time more than 30 minutes after the dose, unbounded, where setDose() and seedDetail() both stop at the 2-hour mark, and the toast and correction note built on it called a correction past that mark “taken late” when the dose in fact reads as plain taken, not “taken late”; and an 11:00 AM toast whose “Now Missed” described a dose as turning Missed at the clock move when it had already stood Missed since its own 2 hours ran out — and the thirty-first pass, also below, closed those in its order. A thirty-second audit then traced the descriptions that misnamed how a dose came to stand as it does — the 6:00 PM and 10:00 PM toasts' “Turned Missed, never answered,” which called a dose that had been taken and then undone never answered; the demo-clock handler's comment, still quoting the “now Missed” wording the thirty-first pass had retired from the 11:00 AM toast; and the correction-time handler's toast and note, which called a time corrected past the 2-hour mark “a corrected Missed” for a dose that had stood taken, not Missed — and the thirty-second pass, also below, closed those in its order. A thirty-third audit then traced the two places the undone flag had not yet reached, and the annotations the thirty-second pass had left unmarked — the lock notification's missed bodies, which called an undone dose “never answered” in the named branch and “passed unanswered” in the hide-names branch alike; a dose rebuild that dropped the undone flag, so an Edit save could resurrect that same false “never answered” in the evening toasts; and the thirty-first-pass row's “a corrected Missed” sentence, with the fourteenth-pass row's thirty-first-pass annotation saying the same, neither yet marked as superseded in the thirty-second pass — and the thirty-third pass, also below, closed those in its order. A thirty-fourth audit then traced the last two places the retired wording and the undone flag still outran their records — this introduction's own thirty-first-audit sentence, which went on calling a correction past the 2-hour mark “a corrected Missed” in the walkthrough's own voice, two passes after the correction handler itself dropped the phrase and one after the table marked it superseded; and a rewind that set the undone flag on every take it un-logged, note or no note, so a dose whose take the clock had merely un-happened could stand Missed as a dose answered and then marked not taken, with no undo anywhere in its History — and the thirty-fourth pass, also below, closed those in its order. A thirty-fifth audit then traced the one match the thirty-fourth pass's ruling still keyed by name — the rewind asked whether a “Marked “not taken”” note for the dose's medicine's name survived the filter, so an Edit rename between the undo and the rewind could break the match and clear a flag that was true, and a second medicine added under the same name could supply a note for a dose that was never undone — and the thirty-fifth pass, also below, closed it in its order. A thirty-sixth audit then traced the one fallback the keyed past-row correction still kept — the correction resolved its count target through the row's medicine key, but when that keyed medicine was gone it fell back to a lookup by name, so a medicine deleted from the list could still move the bottle count of a second medicine added under the same name, and the correction's note would claim a count had moved on a medicine the row never belonged to — and the thirty-sixth pass, also below, closed it in its order. A thirty-seventh audit then traced the one count the past-row correction still claimed without checking — the correction resolved its medicine and wrote its note, but a medicine taken only when needed has no count to move at all: it is never counted down, so correcting one of its past rows still claimed a tablet had gone back on the count, or that the count had come down by one, when nothing had moved — and the thirty-seventh pass, also below, closed it in its order. A thirty-eighth audit then traced the one message the branch-aware correction block still worded for a single branch — the correction screen's already-corrected message, and the past-block guard toast behind it, both said the dose's bottle count had already been put right even when the correction that landed had been an as-needed medicine's, with no count to change, or a deleted medicine's, with no count changed at all — and the thirty-eighth pass, also below, closed it in its order. A thirty-ninth audit then traced the one claim the branch-aware message still made for the dose as a whole — its lead-in, “A past dose is corrected once,” and the guard toast's “already corrected” framing alike put the once-only rule on the dose itself, though the rule governs the count: a time fix moves no count and never spends the correction, so a user who fixes a time and then realises the dose was never taken must still be able to mark it not taken — and the thirty-ninth pass, also below, closed it in its order. A fortieth audit then traced the one comment the count-scoping still left unscoped — the correctedPast declaration still said a past dose's correction can be applied ONCE, without the count qualifier the correction screen's message and the openCorrect comment now carry, though a time fix moves no count and never spends the correction — and the fortieth pass, also below, closed it in its order. The walkthrough becomes the build point only when a further audit — one that re-runs the interaction sequences rather than grepping strings — finds the screens, the guides, and the tour copy all agreeing.
| Finding | Resolution |
| Demo data disagreed with itself | One source of truth: Metformin's morning dose is 9:00 AM on Today, the detail page, the printable list, the Add form, and History. Yesterday's “12 minutes late” is gone (taken 9:02 AM, on time — inside the 30-minute grace the seventh pass made the one rule everywhere); Aspirin is in yesterday's History; Saturday evening's pillbox shows the Vitamin D3 skip History records; Lisinopril reads 6 tablets ≈ 6 days, amber — red is reserved for 3 days. The missed Vitamin D3 is Wednesday evening everywhere — the re-audit caught the pillbox cell sitting on Thursday, and the cell has been moved to Wednesday to match History and the week detail. |
| Export pricing contradicted itself | Ruled: export is free. CSV export and the printable list are out of the $19.99 unlock on the unlock screen, the first-run card, stop 13, and in-frame — History's export button is labelled free. |
| iOS 15+ floor vs newer features | Ruled: floor stays 15+, features gate. Health import (16+), Siri Shortcuts (16+), and Live Activity (16.1+) each say so where they appear; the second pass added the two gates the first pass missed — the lock-screen widget (16+) and logging a dose from the home-screen widget (17+, interactive widgets) — labelled on the widget screen, in stop 10, and in the roadmap. iOS 15 keeps repeating notifications as the full reminder path. |
| Add form couldn't enter real schedules | Real time fields, weekday chips, every-N-days, cycle on/off, taper steps, and as-needed limits — plus name suggestions, pharmacy name and phone, instructions, and a pill photo. The second pass completed the three panels the first pass left short: every-N-days has its own time field beside its start date; cycles have a start date beside days on/off and the time; the taper has a time field and an “add another step” button, so a taper isn't limited to two fixed steps. Scan, Health, CSV, and typing all land on one check-and-confirm screen — which now names how the medicine arrived (scan, Health, CSV, or typed) — and the duplicate-drug check is a real dialog with both answers. |
| Guides promised controls that didn't exist | Now designed in-frame: Snoozed and Missed dose states with their transitions, the reminders-off Settings card, the empty Today, and the free-tier locked tabs. Acetaminophen has a real detail page. Four of these were only sketched in the first pass and are real after the second: History rows open an actual correction screen (mark not taken, fix the time, undo a skip — the correction is recorded, the original never rewritten); “I refilled this” opens a count-entry screen instead of silently assuming a number — and for as-needed Acetaminophen it explains there is no countdown to refill; Edit opens filled with the medicine you actually tapped, not Metformin's values; and the Family Stop sharing button works both ways — stop, and the same button shares again, with the card, chip, and switch following. |
| v1.2 scope sat unmarked on v1.0 screens | Every price entry point — medicine page, Refills, and the savings screen itself — is tagged v1.2. The price-check guide is no longer listed in v1.0's Help at all: it arrives with the feature in v1.2, so v1.0's Help lists 11 guides and says the twelfth is coming with v1.2. Allergies left the v1.0 print (they arrive with v1.2 recording). Jane, who is unlocked, no longer sees a free-tier upsell. |
| Settings gaps | Appearance (System / Dark / Light) added per the cross-app theme decision; a language note states Clockwork follows the phone (English & Spanish at launch); the “next reminder” line now accounts for the due-now Metformin repeats and the 2-hour stop. The second pass added what the copy already promised: the Backup card's iCloud-off state (red, plain about the risk, pointing at the free CSV export) and the Health-write toggle the Privacy Policy describes — a real switch, off by default. The Do Not Disturb wording now names the actual mechanism: reminders are sent as Time Sensitive notifications. |
| Layout + walkthrough-only bugs | Dose-card names wrap cleanly at any length instead of colliding with the time column. First-run “Add my first medicine” opens Add; back buttons return to the screen you came from (Savings from Refills included); week-view logging refreshes the cell you logged; Skip refreshes too; Hide-names re-renders the lock screen; Undo and as-needed logging are recorded in History; the lock-screen reminder follows the dose actually due; guide search matches guide text, not just titles. |
| Second pass — savings, guides, iPad | Cost Plus is settled one way, everywhere: its price is checked in-app through Cost Plus's public price list and shown on the savings screen; GoodRx, SingleCare, and Amazon Pharmacy are link-outs. Stop 13's copy and the screen now say the same thing. The iPad gets its own stop (15) in the canonical kit frame — 13-inch iPad Pro, Silver, landscape — with the pillbox week beside Today, both panes reading the same live list. |
| Second pass — one demo, one time, one count | One doctor for the whole demo: every medicine is prescribed by Dr. John Doe (two names had crept in). One demo time: everything happens at 9:12 AM — taken-at stamps, Siri's confirmation, the as-needed log, and History corrections all say 9:12, and a snooze lands at 9:22, ten minutes later. Refill counts derive from a single counts model, so the medicine page, the Refills cards, the OK list, and Edit can never drift apart; logging any dose counts its bottle down. Week-view slots now list every dose they hold instead of collapsing to the one the cell is keyed to. A taper is a new bottle per step — stated on the medicine page and in the Add form — and the printed list shows the full step-down with dates. |
| Third pass — one status, everywhere | There is now exactly one status function. A dose stores only taken / skipped / snoozed / pending; due, early, missed, and next are derived from its time against the demo's 9:12 AM. That one function drives the Today cards, the lock notification, the Live Activity, both widgets, the week cells on phone and iPad, the progress note, the Settings reminders card (which now re-renders from live state instead of going stale), and the Family summary — which now names missed, skipped, and snoozed counts, not just taken. Snoozed and Missed no longer vanish: a snoozed dose stays on the lock screen marked Snoozed; a missed dose shows on the lock screen, in the Live Activity, and in Janet Doe's summary. The widget's Taken button acts on the dose the widget displays (before, it was welded to Metformin while its label moved on), the lock buttons act on the dose the lock screen shows, and renderToday() is guarded so logging a dose can never again wipe the Family “Not shared” state. |
| Third pass — early logging + the taper model | Early logging is fenced, not free: a dose may be logged within 1 hour of its due time, in Today and the week view alike — stamped with the actual time and labelled “Taken early” in History. Outside the window there are no log buttons anywhere, which is what prevents the early-pill-then-reminded-twice double dose. Due cards carry the auto-miss countdown (“Missed after 11:00 AM”), with Wednesday's Vitamin D3 as the demonstrated end state, and Prednisone's page shows its designed “Taper finished” state. The taper is now a model, not copy: two bottle counts — the 20 mg bottle and the 10 mg bottle — each entered per step in Add and Edit, each refilled separately on “I refilled this,” each shown on the medicine page and in Refills; logging a dose counts down the current step's bottle only. |
| Third pass — Edit, Stop/Delete, Add outcomes | Edit is the Add form itself, pre-filled with the opened medicine's full field set — schedule panels, taper steps with both bottle counts, as-needed limits, instructions, doctor, pharmacy, count — and Save persists everything shown to the medicine page, Today, and Refills. Stop/Delete ask first (an in-form confirmation naming the consequence), and stopped medicines are listed under a Stopped heading in Medicines with a Resume button; their doses leave Today and their history is kept. The Add flow ends somewhere real: type a medicine Jane doesn't have, check it, save it — it joins Medicines and Today with reminders set; saving one she already has runs the duplicate check instead. The free version's 3rd-medicine unlock trigger has its designed state on the Add screen, and the unlock itself now depicts Apple's purchase sheet and the unlocked end state. CSV export has a preview screen — columns and sample rows before the file exists. |
| Third pass — iPad, Light, Spanish, and the small print | The iPad stop is fully live: the complete Today list (all eight doses, scrolling), tappable week boxes with the same detail readout and logging as the phone, working bottom tabs that swap the left pane to live Medicines / Refills / History / Family content, and the version gates labelled under the week. The Appearance setting works: Light re-themes the phone and iPad for real, and Settings' language row opens a Spanish Today rendering whose buttons log the real dose. Hide-names covers the widgets and Live Activity, not just the notification. Dates are picked on a depicted native iOS wheel date picker (start dates and taper step dates — never typed). The Cost Plus $6.90 is labelled a sample until the live lookup is wired in v1.2 — the API itself is public and verified. The savings screen adds the v1.2 $4/$9 lists and RxPass. The v1.1 Watch companion's floor is stated: watchOS 9+ (Series 4+), paired phone on iOS 16+. Medicine names wrap at word boundaries only — the mid-word break is gone. And the nits: the correction time field opens pre-filled with the recorded time; correcting a past dose restores or draws down its bottle count; History search filters correction notes too; “Add another time” adds a field; the as-needed card's “Last taken” updates when you log; Sunday's week cells aggregate all their keyed doses; the lock notification carries the pill's photo (the guide's claim, now true); the locked view's tab highlight and back button follow where you came from, as does the unlock's back button; guide 1's tip names the button it means; and saving a refill no longer clears the per-dose counted flags, so an undo after a refill still returns exactly one tablet. |
| Fourth pass — the flows, run end to end | The fourth audit clicked the flows instead of reading them, and the pass closed what it found, in its order. Delete is safe now: the Refills “fine” list is derived from the live record (no hardcoded keys), the two warning cards are guarded per medicine, and deleting a medicine closes its live History row — correction path and all — on the same render. Add and Edit schedules run end to end: both forms capture the chosen kind and its panel's values (weekday chips, every-N interval, cycle on/off, taper time, as-needed limits), doses are created, removed, or re-timed to match, Today re-sorts, slotForTime() honours AM/PM in either dress, as-needed limits persist on the medicine, and the prescriber Edit saves is displayed on the medicine's own page. Edit opens with every field pre-filled — instructions, prescriber, and pharmacy included, verified on the rendered form, not just the save path. Duplicates match on the drug name with the strength stripped, so the form's default “Metformin” can no longer duplicate Metformin 500 mg; the confirm screen's name and dose are editable for scan, Health, and CSV alike, and “add it anyway” really adds. “Leave as missed” leaves the dose missed — a no-op, not a skip — and the day's three already-taken doses are seeded as counted, so undo → retake is count-neutral. Early logging is demonstrable: a demo-clock card on Today and the week view moves the morning to 11:00 AM, where the missed transition and Prednisone's early window can actually be exercised, on the phone and the iPad. The iPad Today pane (Acetaminophen card included) and iPad History are generated from live state, and the iPad week detail keeps its per-dose separators. The as-needed card, the Refills list, and the CSV preview all render from live state with stopped medicines filtered out — and the printed list renders live too, but keeps stopped medicines on the page, marked “· Stopped”: a list written for a doctor should show what was stopped, not pretend it never existed. The Spanish Today is generated whole — all eight doses plus as-needed, every chip live. Dose-card names put the strength beside the drug word in smaller type, so LEVOTHYROXINE fits. The free version's 3rd-save pause is depicted on the confirm screen itself, and High Contrast reaches the iPad on the same switch as the phone. |
| Fifth pass — the deeper models | The fifth audit re-ran the sequences against the models underneath the flows, and the pass closed what it found, in its order. Snooze is a stored time, not a label: tapping Snooze stores a remind-again time on the dose; every “reminds again at” label is read from that stored time; when it passes, the dose is Due again — and a dose still unanswered 2 hours after its dose time is Missed, snooze or not, which the tour copy now states. Start dates are real: the depicted start date is captured on Add and Edit, no dose is created before it, and the confirm screen and the schedule line name it instead of claiming “starting today.” The taper is end-to-end: Add's step inputs are captured — dose, date, and per-step bottle count — the two-bottle model is now per-medicine bottle counts that refill, the printed list, and Edit all read, and Edit has an add-step button and the finish step. Kind changes carry their model with them: as-needed → scheduled initializes the countdown from the form; scheduled → as-needed clears it, so Refills filters by kind, not by key; days-left is computed from the kind's true per-day rate (every-N-days, cycle, weekdays). History is built from DOSES for added medicines — taken, skipped, missed, with their times — so History and the CSV preview agree, and corrections act on each row's own dose. The week detail re-renders on delete and edit, its logger is guarded against a deleted dose, and its Skip hides for early and missed doses, matching Today. Spanish drives its as-needed status from the same guard state, due cards carry the Missed-after line, and added as-needed medicines render on Spanish Today and the iPad pane. The iPad re-renders its active tab on every pass, and its History is the full list with tappable correction rows. The pharmacy phone is captured, stored, displayed, and editable, and the call toast names the tapped medicine's own pharmacy. An emptied list routes Today to the designed empty view (no 0-of-0 ring), emptied week slots say so instead of reviving seed cells, the Savings screen and Siri follow the medicine actually tapped or due, the prescriber shows once from the doctor field, and dose names step down a size on narrow viewports so the longest names fit the shrunken frame. |
| Sixth pass — what rebuilds and kind changes left behind | The sixth audit traced the seams the fifth pass's own fixes opened, and the pass closed what it found, in its order. History is keyed to the medicine, not to a dose id: the live row resolves through the medicine's key to its current earliest dose, so an Edit rebuild can no longer orphan today's Metformin row, a rename renames the live row with it, and a seed medicine's rebuilt doses get live History rows of their own, exactly like added medicines' doses. Kind changes clear the old kind's model: leaving taper deletes the per-step bottles, and the Refills OK list filters by kind — an as-needed medicine can never render there at all, let alone as “undefined left.” The Metformin and Lisinopril warning cards are kind-aware: a taper hands over to its bottle row in the OK list instead of reading a stale single count, and an as-needed medicine's card hides. iPad History rows now answer their tap with a toast — corrections happen on the phone — instead of opening a correction pane the iPad doesn't have. (Superseded in the twentieth pass on visibility: the toast that tap fired was written to the phone's toast element, which sits in the phone column the iPad stop hides, so the handler fired and nothing anyone could see changed; the tap was still effectively dead. The iPad now carries its own toast element and toast() routes to the column on stage — the routing, not the handler, is what makes the outcome visible. The sentence above describes the sixth pass's handler, not its outcome.) The detail page's taper note is built from any taper medicine's own steps and finish date, not Prednisone's text behind a key check. Then the should-fix items: the OK list has the red ≤3-day state the warning cards already had; Edit's rename runs the duplicate check against every other medicine; as-needed logs can be undone, with the safety timer stepping back to the dose before and the correction recorded; the Add form hides its count field for taper and as-needed, as Edit already did; a blank count is required, never silently assumed as 30, on a kind change and on the Add confirm alike; Add and Edit validate at least one weekday and at least one time before anything saves; a dose taken after its time but before the 2-hour miss is labelled “taken late” in History and the CSV, as stop 7's copy already promised; days-left rounds one way everywhere — Math.round; the demo clock gains a 9:30 AM position, where a 9:12 snooze has expired back to Due; past-dose correction notes tell the truth when the medicine was renamed (the count moves, under its new name) or deleted (no count changed, and the note says so); emptied Spanish Today and iPad Today show the designed empty state; and the empty view's “See Jane's filled-in Today” button works — it restores the demo's opening state when the list was emptied. The nits: undo toasts name the state the dose actually lands in (Due, Coming up, early window, Missed); moving the demo clock backward rewinds doses stamped in the future rather than leaving future stamps standing; Edit's start-date pickers open on the medicine's stored date, head and wheels; Edit's taper-panel defaults derive from the medicine being edited, never Prednisone's course; the CSV preview's Scheduled column carries every row's scheduled time; and the taper annotation no longer leaks into the lock notification's body. |
| Seventh pass — seed rows, brand names, and dose-day arithmetic | The seventh audit traced what the seed data and the schedule arithmetic still owed, and the pass closed what it found, in its order. Today's three seed-taken rows are live rows: Levothyroxine, Lisinopril, and Aspirin in History are bound to their doses exactly like Metformin's, so correcting one routes through the same setDose path as a Today undo — the dose's state and its bottle count move together, exactly once, and a retake shows on Today. The duplicate check knows brand names: a small brand-to-generic map (Prinivil and Zestril are lisinopril, Glucophage is metformin, and the rest of the demo's brands) resolves before matching, so stop 6's promised dialog fires — the copy was never softened, because duplicate detection is a double-dose safety feature. “Taken late” has one decided rule, stated in stop 7 and guide 1: within 30 minutes of the scheduled time is on time; later than that, and before the 2-hour miss, is taken late — applied in setDose, in the seed rows, and on time corrections alike, so yesterday's 9:02 AM Metformin reads on time everywhere, as the record above always claimed. Dose days are computed: every-N-days doses land on start + k·N and cycles only inside their on-phase, in Edit rebuilds and Add alike — the start-date gate alone no longer doses them. Tapers count their current step: a step-range lookup finds the step whose dates contain today, and setDose and past-dose corrections move that step's bottle, not always bottle 0. Seed rows snapshot their scheduled time at seed time, and their late labels and CSV Scheduled entries derive from the snapshot, never from a medicine's current times. Entering taper in Edit deletes the single count (BOTTLES is the taper's only model, and Prednisone's seeded count is gone with it). Spanish labels are keyed by medicine and time, not dose id, so a rebuild can't orphan them. The savings sample line is medicine-neutral — “$6.90 · sample,” the sample label prominent, no tablet count borrowed from Metformin. The nits: Add's last silent-30 fallback is gone; a corrected time re-derives the dose's early/late flags; leaving as-needed in Edit clears its safety-timer state; week cells and chips have a distinct early state whose wording says the window is open, not coming; Prednisone's seed instructions no longer carry the taper text (its steps say it); restoring the demo's opening state also resets the demo clock to 9:12 AM, sharing, and hide-names; Edit's default taper step carries a parseable date; the two Refills warning cards carry the same buttons; the Siri example names the dose that is actually due; and Add's taper steps open blank and neutral, not pre-filled with Prednisone's course. |
| Eighth pass — one row per dose, one correction per row | The eighth audit traced who owns each live History row, and the pass closed what it found, in its order. Live-row ownership is exclusive: the live seed rows' dose ids are collected into a set — every one of them, not whichever was visited last — and all of them are excluded from the DOSES loop, and setDose()'s early note is written only for a dose with no live row of its own: an early log on a dose that already speaks through a live row (an added medicine, a rebuilt dose, a seed-row dose) no longer appears twice, once as the row and once as a note. (Superseded in the ninth pass: that early-note branch and its helper were deleted outright as dead code once live-row ownership was exclusive — the one-row-per-dose result it protected stands, now by ownership alone, and the sentence above describes the eighth pass's mechanism, not current code.) A past row can be corrected once: correction state is recorded per past row, keyed by the row's own identity; once a count-moving correction lands, the correction screen says the dose was already corrected and offers no second one, and the action itself refuses — the same bottle count can never be moved twice for one past dose. Then the should-fix items: stopping a medicine closes its live History row, as deleting it does — the live-row lookup filters stopped medicines out; live-next rows are not tappable, on the phone or the iPad — a dose still to come has no recorded event to correct, and no action was invented for it; the duplicate check resolves BOTH sides through the brand map — a brand already on the list matches a generic typed later — and matches multi-word brands on their first word (“Glucophage XR”, “Tylenol Extra Strength”); every one of today's seed doses has a live History row — the DOSES loop now covers the seed doses the seed rows don't speak for (Prednisone, the evening Metformin, Vitamin D3, Atorvastatin), one mechanism, no duplicated seed data; and the CSV preview maps the live-early case (“Due (early)”), so it agrees with History for early-window doses instead of calling them “Coming up.” The nits: a taper dose stores the bottle it was counted from at log time, so an undo returns the tablet to that bottle even if the step in force has moved on; and the demo clock gains a 6:00 PM position, where the evening doses are Due and exercisable instead of readable only in code. |
| Ninth pass — the rewind learns snooze, and the copy catches up | The ninth audit found no blockers — the eighth pass held in full — and the pass closed what it found, in its order. The demo-clock rewind covers snooze state: rewinding past a snoozed dose's own time returns it to pending with its remind-again time cleared, while a snooze whose dose time is still past keeps its stored remind-again time — a dose snoozed at 6:00 PM no longer shows “Snoozed — reminds again at 6:10 PM” with log buttons after the clock moves back to 9:12 AM, nine hours before its early window opens; the forward direction is untouched (Due at 9:30, Missed at 11:00). The S2 History copy catches up with the eighth pass: the History intro and stop 7 no longer say every row is tappable — they say what is true, that recorded doses are tappable to correct and doses still to come are listed too but can't be corrected, matching the deliberately non-tappable live-next rows. The 6:00 PM copy is completed: the week-view demo-clock card and stop 2 now mention the 6:00 PM position alongside 9:12 AM, 9:30 AM, and 11:00 AM, so the evening doses the eighth pass made exercisable are named where the clock is taught. And the dead early-note code is deleted outright: setDose()'s early-note branch — dead once live-row ownership became exclusive — is removed, along with doseHasLiveRow, the helper whose only caller it was; zero references remain, and the eighth-pass row above is annotated as superseded on that mechanism. |
| Tenth pass — the rewind learns skips, and the dialog follows its match | The tenth audit traced the rewind and the duplicate dialog one layer further, and the pass closed what it found, in its order. Skips rewind like snoozes: in the demo-clock rewind branch, any dose with status skipped whose own dose time is now in the future (doseMinutes(d) > newMin) returns to pending, mirroring the snooze rule — a skip only exists once a dose has come due, so it cannot stand before its dose time; a skip placed when the dose was due, whose dose time is still past, stays skipped, exactly like a snooze whose dose time is still past. The snooze rewind tightens: a snooze is also cleared when its remind-again time is impossible at the new “now” (snoozeUntil > newMin + 10) — no snooze placed at or before the rewound time could produce a remind-again time later than ten minutes after it, so that state is one the demo clock should never show. The nits: the unreachable “snoozed” branch in undoToast is deleted — undo lands on a pending dose, whose derived status can never read snoozed, so the branch could never fire; the discarded first header loop in renderWeekMarks is deleted — it built a header row into a string that was overwritten before use, and only the second loop's header now builds; and the duplicate dialog's parenthetical follows the matched brand→generic pair — it is set at dialog time from the brand map, so Glucophage against Metformin reads “(Glucophage is metformin)” and Prinivil against Lisinopril reads “(Prinivil is lisinopril)”, whichever side carries the brand, instead of always reading “(Prinivil is lisinopril)”; a generic-only match names the shared generic both sides are. |
| Eleventh pass — the notes join the rewind, and the dialog says only what's true | The eleventh audit traced the last seams of the rewind and the duplicate dialog, and the pass closed what it found, in its order. Every live-dose correction note now carries the demo time: the “Skip undone — marked taken” note in the undo-skip action and the “Time corrected to …” note in the correction screen's live-taken branch are stamped min: NOW_MIN, like the other live notes, so the rewind filter drops each one exactly when its dose is rewound — a note about a dose can no longer outlive the dose state it describes. Past-row correction notes stay min-less on purpose: they describe past days, and a rewind of today must not erase them. The rewind toast counts everything it rewound: snoozes and skips cleared by the rewind are counted alongside taken doses, so a rewind that only undid a skip no longer vanishes with no acknowledgement — the toast names the snoozes and skips it cleared. The nits: the duplicate dialog's “under a brand name” clause is now conditional on a brand actually being present — a generic-only match reads “the same drug twice (both are metformin) can mean a double dose,” while the brand case keeps its sentence exactly as it was; and the Add screen's demo button resets the dialog to the canonical example — Prinivil against Lisinopril, all spans — instead of showing whatever pair the last real duplicate check left behind. |
| Twelfth pass — the check learns formulations, and the demo owns its outcomes | The twelfth audit traced the duplicate check's edges and the demo dialog's loose ends, and the pass closed what it found, in its order. normName() strips formulation suffixes: after the strength strip, trailing formulation words — ER, XR, SR, XL, CR, HCT and their kin — come off the end of the name, so “Metformin ER 750 mg” normalizes to “metformin” and fires the duplicate dialog; that exact name sits in the Add form's own suggestion list, so the walkthrough had been handing the user the one input that slipped past its own check. The strip takes whole trailing words only — never first-word matching for generics, which would call “Vitamin D3” and “Vitamin B12” the same drug. The demo button disarms any real duplicate: opening the canonical example now clears pendingDupe and pendingNewMed alongside the span reset, so a real duplicate left unanswered — by switching tabs or going Back — can never be added under the example's name. The nits: the dialog's Yes and No outcomes are demo-aware — reached from the demo button, with nothing pending, they say plainly that this is just the demo and nothing was added or declined, instead of “Nothing is waiting to be added.” and “That medicine was not added.”; and the rewind toast names what it cleared — its closing clause reads “a snooze can't sit in the future,” “a skip can't sit in the future,” or “a snooze or a skip can't sit in the future,” matching the snoozes and skips actually cleared, instead of leaning on “neither” when only one kind was cleared. |
| Thirteenth pass — the copy catches up with the check | The thirteenth audit traced what the twelfth pass's own fix left unexplained, and the pass closed what it found, in its order. The duplicate dialog's sentence now covers the whole matching rule: it says Clockwork compares the drug name with the strength and the formulation suffix stripped off (ER, XR, and the like), so “Metformin”, “Metformin 500 mg”, and “Metformin ER 750 mg” all count as the same medicine — the old sentence credited the strength alone, which cannot explain the ER-suffix match the twelfth pass made possible, since ER is not a strength. Stop 6's duplicate bullet reaches past the brand case: alongside the brand-against-generic example it now states the suffix rule — “Metformin ER 750 mg” counts as the metformin already on the list — and that the same generic typed twice is caught the same way. The nits: the dialog's demo Yes now leaves the dialog, navigating to Medicines exactly as demo No already did, instead of toasting and staying on an answered dialog with both buttons still live; and undoToast's early branch names the state the dose actually lands in — “Put back to its early window — ‘Taken — early’ is offered again” — instead of quoting “Coming up,” which is the still-to-come state, not the early one (the dose lands reading “Early window open”). |
| Fourteenth pass — the guard is derived, the fence is rendered, the toasts read the state | The fourteenth audit traced the as-needed guard's memory, the widget's fence, and the demo clock's claims, and the pass closed what it found, in its order. The as-needed status is derived from the live guard — gap still running, the day's limit reached, or safe — computed from the dose stack and the demo's now on every render, on Today, Spanish Today, and the iPad alike; the sticky refused flag is gone, so a second dose refused at 9:12 AM no longer reads “Too soon — the last dose was under 4 hours ago” at 6:00 PM, 8h48m later, a refusal at the day's limit reads “Today's limit reached” instead of “Too soon,” and a maxed-out card's button offers no further dose today. The rewind's blanket refused reset goes with the flag — the surviving stack already derives the right status at the rewound time. The home-screen widget's Taken button is rendered only while its dose can be logged — due, snoozed, early, or missed — so stop 2's “no log buttons at all” fence is in the rendering, as Today, the lock screen, and Siri already kept it, not only in what a tap does. The 9:30 AM, 11:00 AM, and 6:00 PM demo-clock toasts are state-derived: each names only the doses actually in the state it describes — a taken Metformin is toasted as neither “still only Due” at 9:30 nor “now Missed” at 11:00, and a logged Prednisone is not toasted as turned Missed at 6:00 PM — while the rewind suffix's state-derived counts and the 9:12 AM toast's window wording stand as they were. The nits: dead code deleted outright — undoToast's unreachable “Coming up” fallback (an undo never lands on a dose still to come), the non-Sunday doseId branches in renderWeekDetail and cellFor (only Sunday cells carry one), and startsLater() with TODAY_ORD, which had no call sites; setStop's navigation is guarded against a missing data-goto, so the iPad stop's Show-me button no longer calls go(null); the back-to-top button appears only after ~600px of scrolling, per the standing rule, instead of sitting visible at the top of the page; the iPad Medicines pane shows stopped medicines under a Stopped heading with Resume buttons that resume, matching the phone; the Settings reminders line names a snoozed dose's resume time (“its reminder comes again at 9:22 AM”) instead of describing the dose as simply due; the lock notification's snoozed body uses the due body's comma — “Take 1 tablet, with breakfast.” — from one shared “Take …” sentence; and a blank taper bottle count blocks the save with a prompt, on Add and Edit alike, instead of defaulting to 0, as counted kinds already did. The decided nits: the “See Jane's filled-in Today” restore resets the demo state — medicines and doses, the demo clock, sharing, hide-names, Janet Doe's mark-doses switch, the Health-write toggle, and the Settings demo cards — and leaves Appearance and high contrast alone as device-level preferences, with the toast naming that restore list explicitly instead of claiming the demo is back to its opening state; the correction time field rejects a future time for a dose on today's list — a dose cannot be recorded as taken in the future — and flags a corrected time more than 2 hours after the dose as taken late, consistent with the 2-hour auto-miss rule (Superseded in the thirty-first pass: the correction handler's late flag is bounded at the 2-hour mark, matching setDose() and seedDetail() — late only when the corrected time is more than 30 and less than 120 minutes after the dose — so a corrected time more than 2 hours after the dose reads as plain taken, a corrected Missed, and the live-taken toast and the past-row correction note say so instead of claiming “taken late.” The sentence above describes the fourteenth pass's flag, not the current one.) (Superseded in the thirty-second pass on the appositive in that annotation: the correction-time handler's toast and note drop “a corrected Missed” and read only “reads as plain taken, not taken late” — the dose in that flow stood taken, not Missed — so the “a corrected Missed” wording in the thirty-first-pass annotation above describes the thirty-first pass's wording, not the current one.); and normName() strips HCl and hydrochloride wherever they sit in a name — HCl is the form printed on many bottles, so “Metformin HCl 500 mg” counts as metformin and fires the duplicate dialog. |
| Fifteenth pass — the refusal names the binding rule, and every surface moves on the same tap | The fifteenth audit traced the guard's two voices and the surfaces that render behind it, and the pass closed what it found, in its order. The as-needed log handler checks the day's limit before the gap — the same order prnGuard() uses — so when both bind, the refusal reads as the limit, matching the card's “Today's limit reached,” instead of answering a limit state with the gap reason. The handler re-renders through renderToday(), not the section alone, so a log moves the Spanish Today's and the iPad pane's as-needed buttons — label and Undo presence alike — on the same tap, for an added as-needed medicine exactly as for Acetaminophen. The lock notification's action row adapts to the dose's state: for a missed dose, Skipped and Snooze are hidden and the handler keeps the same fence — Today offers a missed dose only “I did take it” / “Leave as missed,” and the lock screen no longer toasts a false “marked Snoozed” for a dose the miss rule (checked before the snooze rule) still reads as Missed, nor converts Missed into Skipped. Edit's taper steps open with blank bottle counts, like Add's — the saved-count fallback and the add-step handler no longer pre-fill 0 — and negative counts are rejected in the Add and Edit taper validation, as the refill taper save already did. Siri's try-it button and quote name only a loggable dose: when the only outstanding dose is still to come, the button turns ask-style (“ask Siri what's still to take”) and the quote becomes the read-back question, instead of promising to mark a “next” dose taken that the tap handler refuses to log. And the maxed as-needed state is reachable in the demo: the clock gains a 10:00 PM position — logs at 9:12 AM, 6:00 PM, and 10:00 PM reach the 3-dose limit under the 4-hour gap — named on both demo-clock cards and in stop 2, where Atorvastatin is Due and the evening doses left unanswered read Missed. The nits: the 9:30 AM toast's two fixed claims are derived — the snooze-expiry sentence appears only when a snooze actually expired on the way there, and “Nothing turns Missed until 11:00 AM” only when no dose is Missed at 9:30; stopped rows open the detail page on the phone and the iPad, and resumeMed re-renders the detail page when the resume happens there, so the Stopped card and its Resume button are live UI, not dead ends; the Spanish Today toasts are localized for leave-as-missed, the as-needed log and its refusals and undo, and undoToast, matching the already-localized Taken / Skipped / Snooze; the lock body's comma conversion is generalized — “ · with ” becomes “, with ” for every dose, so the dinner dose reads “Take 1 tablet, with dinner.” as the breakfast dose reads “…with breakfast.”; the filled-in-Today restore resets the purchase sheet's bought state — both panels and the unlock button's rewritten text and destination; and undoToast() returns explicit answers for the “next” and skipped landings instead of falling through to undefined. |
| Sixteenth pass — the empty state counts as-needed, and the copy derives from the day it is in | The sixteenth audit traced the seams between the empty state and the as-needed list, and the pass closed what it found, in its order. The empty-state test is as-needed-aware everywhere it is asked — in go(), in the Back handler, and behind “See Jane's filled-in Today” — using the same test Spanish Today and the iPad already used (!act.length && !prnKeys.length): stopping all seven scheduled medicines while Acetaminophen stays active no longer shows a false “No medicines yet” with the Acetaminophen card unreachable, and the filled-in button no longer takes the restore branch and silently wipes stops the user made on purpose. The progress card has an as-needed-only state — “No scheduled doses today,” the ring resting empty — instead of a 0/0 ring over live as-needed cards, and the Spanish and iPad progress lines say the same in their own words. An iPad stopped row's tap answers with a toast — the medicine's page is on the phone, the History rows' established pattern — instead of routing to a detail page on a phone no stop displays, a tap that changed nothing anyone could see; the row's Resume still works in place. (Superseded in the twentieth pass: the toast the tap fired — and the History rows' toast this sentence leans on — was written to the phone's toast element, which sits in the phone column the iPad stop hides, so the handler fired and nothing anyone could see changed; the tap was still effectively dead. The iPad now carries its own toast element and toast() routes to the column on stage — the routing, not the handler, is what makes the outcome visible. The sentence above describes the sixteenth pass's handler, not its outcome.) The 10:00 PM toast derives its two fixed clauses: the loggable-until time from the due dose's own time (missedAfter), and the limit numbers from the maxed medicine's own prnMax/prnGap, so an added medicine hears its own hour and its own limits. The Today greeting follows the demo clock — morning before noon, afternoon from noon to 6:00 PM, evening from 6:00 PM — on the phone, in Spanish, and on the iPad, instead of “Good morning” at every hour. The nits: undoToast's header comment no longer claims an undo never lands on a dose still to come while its explicit “next” branch sits directly below it (the comment changed, the branch stayed); renderToday() calls renderPrnSection() once, not twice — the second call rode in on renderEsToday(); the rewind toast counts rewound as-needed logs alongside taken doses, snoozes, and skips; and Edit's taper-finish fallback is stored lowercase, so the detail page reads “finishing when the last step's bottle runs out,” not “finishing When…”. |
| Seventeenth pass — the as-needed-only day reaches the last four surfaces | The seventeenth audit traced the surfaces the sixteenth pass's as-needed-only vocabulary had not reached, and the pass closed what it found, in its order. The home-screen widget speaks the as-needed-only day: its progress line reads “No scheduled doses today” instead of “Today: 0 of 0 doses taken,” and its next-dose line names the as-needed medicine — “As needed: …” — with that medicine's live guard status underneath, instead of “All done today” / “Nothing left due today” while a dose can still be taken; an emptied list reads “Nothing scheduled today” / “Your list is empty,” and “All done today” is kept for the one day it describes — every scheduled dose answered, and no as-needed medicine left on the list. Siri's button and its answer make the same distinction: “Try it — everything is taken” and “Everything is already marked taken today” now stand only when a dose was actually taken (superseded in the twenty-third pass on the mixed state: “only when a dose was actually taken” rested on taken > 0, so a mixed day — some doses taken, the rest skipped, nothing outstanding — still read “everything is taken” though its skipped doses were not taken; a click-verified probe round caught it. The twenty-third pass requires every dose taken (taken == total), and on the mixed day the button stays ask-style and the answer reads “everything is answered” with the day's taken and skipped counts. The sentence above describes the seventeenth pass's fence, not the current one); when nothing was taken — every dose skipped, an as-needed-only list, an emptied one — the button stays ask-style and the answer says nothing is marked taken, naming the as-needed medicine when there is one. remindersText()'s fall-through is earned: “Everything is logged for today” reads only when a dose was actually logged — taken or skipped; otherwise the line gives the as-needed-only wording, or names the empty list. The emptied Spanish and iPad Today progress lines follow the phone's no-0/0 rule — “Sin dosis programadas hoy” and “No scheduled doses today” replace “0 de 0 dosis tomadas” and “0 of 0 doses taken.” And the iPad Medicines pane's active rows answer their tap with the same “page is on the phone” toast the stopped rows use — the name is a button into the same data-ipadmed handler — instead of inert plain divs, so every row in the pane has a visible outcome, never a dead tap. (Superseded in the twentieth pass, together with the sixteenth pass's stopped-row claim: the toast fired into the hidden phone column, so the “visible outcome” was not visible — a click-verified probe round caught what the code-trace audits could not. The twentieth pass gives the iPad its own toast element and routes toast() to the column on stage, which is what makes the outcome visible; the sentence above describes the seventeenth pass's handler, not its outcome.) The nits: the 10:00 PM toast's due clause is per-dose — each due dose named with its own time and its own loggable-until — and its maxed clause per-medicine, each maxed medicine named with its own limit and gap, instead of the first dose's and first medicine's numbers standing for all; the toast's limit sentence is omitted entirely when no as-needed medicine is active, instead of silently falling back to 3 and 4; its missed list names each medicine once — “Metformin 500 mg, Prednisone 20 mg and Vitamin D3 1000 IU” — the seed sentence's other words unchanged; the rewind toast's as-needed clause takes the conditional lead-in the snooze/skip clause has — “Moving the clock back removed…” when as-needed logs are the only thing rewound, instead of a dangling “It also removed…” — and the snooze/skip clause counts a rewound as-needed log as an acknowledgement already made; and the dead #ipadProgress write in renderToday() is deleted — renderIpadToday() regenerates the pane, progress line included, on every pass. |
| Eighteenth pass — the lock widget learns the vocabulary, and no surface names a dose the guard would refuse | The eighteenth audit traced the lock-screen widget and the last first-only namings, and the pass closed what it found, in its order. The lock-screen widget speaks the home widget's vocabulary: with no dose left to show it no longer reads “All doses taken today” over every quiet day — an active as-needed medicine is named (“As needed: …”) with its live guard status on the same line, an emptied list reads “Nothing scheduled today,” “All doses taken today” stands only when a dose was actually taken, and a day on which every dose was skipped reads “All doses answered today,” because “taken” would be false (superseded in the twenty-third pass on the mixed state: “only when a dose was actually taken” rested on taken > 0, so a mixed day — some doses taken, the rest skipped, nothing outstanding — still read “All doses taken today” over doses that were skipped, not taken; a click-verified probe round caught it. The twenty-third pass requires every dose taken (taken == total), and the mixed day reads “All doses answered today.” The sentence above describes the eighteenth pass's fence, not the current one); the lock view's “Next dose” line carries the same words — the as-needed medicine's name, or “your list is empty,” instead of “nothing else today.” One pick names the as-needed medicine everywhere: a shared prnPick() returns the first available (non-maxed) as-needed medicine, and the home widget's next-dose line and Siri's tap answer both name it — never a medicine at its day's limit, whose dose the guard would refuse; when every as-needed medicine is at its limit, the pick falls back to the first of them and Siri names the limit instead of inviting a log. The 10:00 PM toast's limit sentence joins all the open as-needed medicines, each with its own prnMax/prnGap — the way Today's progress note and remindersText() already join all the names — keeping its hypothetical shape when exactly one is open, and falling silent when none is. The nits: Siri's tap answer keeps the emptied list distinct — “Your list is empty” — from the all-skipped day, which it now names as skipped; the Family summary names the day it is in — the as-needed medicines on an as-needed-only day, the empty list on an emptied one — on the phone and, through the copied line, in the iPad Family pane, with the “next” line naming the as-needed medicine or the empty list too; the 10:00 PM toast gains the early-window clause the 6:00 PM toast already has (“In its early window: …”), and its “all answered or missed” fallback no longer fires while an early dose is outstanding; the name dedupe is generalized — namesIn() itself names each medicine once, so the 9:30 AM, 11:00 AM, and 6:00 PM toasts (their expired-snooze and early-window lists included) can never read “Earlymed and Earlymed” for an added twice-daily medicine; and the iPad Today pane's trailing note derives from the live as-needed list — every active as-needed medicine named, each under its own safety rule, the clause absent when none is active — instead of reciting Acetaminophen by name whatever the list holds. |
| Nineteenth pass — the hypothetical does its own arithmetic, and the Family line names a loggable dose | The nineteenth audit traced the claims that were true only of the seed day, and the pass closed what it found, in its order. The 10:00 PM toast's single-open hypothetical is computed from the medicine's own prnMax/prnGap: its log times are the demo clock's own positions (9:12 AM, 9:30 AM, 11:00 AM, 6:00 PM, 10:00 PM), taken greedily — each log at least the gap after the one before — until the limit is placed, so the sentence is arithmetically true for the medicine it names. The old fixed pattern (9:12 AM / 6:00 PM / 10:00 PM) is only the answer for max 3 with gap ≤ 4h; a 2-dose / 6-hour medicine now reaches its limit in two logs (9:12 AM and 6:00 PM, 8h48m apart), and a limit no set of clock positions can fit gets no concrete times at all — the sentence states the rule instead. The seed Acetaminophen (3 a day, 4 hours apart) computes to exactly the wording the toast has always used. (Annotated in the twenty-third pass: “exactly the wording” asserted a byte-identity the sentence does not have — the computed sentence names its medicine (“…limit of three for Acetaminophen 500 mg”), as every variant of the sentence does (the Ibuprofen variant reads “…limit of two for Ibuprofen”). Ruled: the naming is KEPT, because the per-medicine derivation needs each variant to name the medicine it computed for; what the nineteenth pass preserved is the seed sentence's meaning and its three-log pattern, not byte-identity.) The Family “next” line uses prnPick() — the same pick the widget and Siri make — instead of prnKeysT[0]: it names the first available as-needed medicine, never one at its limit while a second could still be logged, and when every as-needed medicine is maxed it names the limit (“at today's limit — no more as-needed doses today”), mirroring Siri. The nits: the 9:30 AM toast gains the early-window clause the 6:00 PM and 10:00 PM toasts have, and its “Nothing is due right now” fallback is gated on no early dose outstanding, the same gate the 10:00 PM toast's fallback carries; the 9:12 AM toast is derived from live state — it names the early dose when one is open, and keeps its “every early window is still shut” sentence only when that is true (the demo-clock card's static “too early to log anything ahead” wording stands as seed-day copy — true of the seed list it describes; the toast is the live surface); and the hardcoded Acetaminophen clause is stripped from the static iPad pane seed HTML, so the source carries no stale claim — the script fills the derived note on init. Ruled, no change: the 6:00 PM toast's “Still to come” clause stays per-dose with times — each entry carries its own time and its own early-window-open time, so the repetition is informative, matching the deliberate per-dose pattern of the 10:00 PM due clause. |
| Twentieth pass — the iPad gets a toast of its own, and the last limit-blind lines learn the guard | The twentieth audit folded in the click-verified probe round the code-trace audits could not run — nine of its ten checks passed, and the one failure was a defect only a real tap could see — and the pass closed what it found, in its order. The iPad has a visible toast: a toast element inside .ipad-inner, styled as the phone's .toast, and toast() routes to the device column currently on stage — the phone's #toast at phone stops, the iPad's toast at the iPad stop — so every iPad-originated toast is visible where the tap happened: the Medicines row taps (stopped and active), the History row taps, the Today log buttons, the as-needed log and undo buttons, the week-detail log buttons, and the Resume buttons, all of which call the one toast(). The sixteenth- and seventeenth-pass rows above are annotated as superseded on their “visible outcome, never a dead tap” claims — the handlers fired with the correct text; the outcome rendered into a hidden column. The Family summary is limit-aware: through prnPick(), when every as-needed medicine is at its limit the summary names the limit (“every one is at today's limit, so no dose can be logged today”) instead of promising that “a dose appears here when Jane logs one from Today” — a log the guard would refuse — mirroring the “next” line directly below it; the available case is unchanged. The lock view's “Next dose” line checks wPick.avail: a pick at its limit is named with its guard status — “Today's limit reached,” the lock-screen widget's own words — instead of as plain “as needed.” The nits: the as-needed section label is hoisted out of the per-medicine loops in renderEsToday() and renderIpadToday(), so “Cuando la necesite” and “As needed” render once, as the English Today's label does; and the iPad Family pane copies familyNext as well as familySummary — the phone's Family screen is a summary plus a next line, and the pane now mirrors both. |
| Twenty-first pass — the stop-share re-renders, and toast language follows the tapped surface | The twenty-first audit traced the seams the iPad's new visibility had left, and the pass closed what it found, in its order. The stop-sharing handler's stopping branch re-renders: after setting the “Not shared” lines it now calls renderToday(), as the resuming branch always did — renderToday()'s guard still skips the Family lines while sharing is stopped, so the handler's lines survive the re-render untouched, and its renderIpadTab(ipadTab) call re-copies them into the iPad Family pane, which no longer goes on showing “Shared through iCloud” and the old summary after a stop-share + stop-switch sequence until the next dose action or tab re-click. The nits: the four dose-logging handlers take their toast's language from the tapped button's surface — whether the button sits inside [data-view='todayes'] — instead of from currentView: [data-log], [data-leavemissed], [data-prnlog], and [data-prnundo] — so a tap on the iPad's English pane answers in English even when the phone stands on Spanish Today (switching to the iPad stop never changed currentView), and a tap on Spanish Today still answers in Spanish; and the sixth-pass row's “iPad History rows now answer their tap with a toast” sentence is annotated as superseded on visibility, in the sixteenth and seventeenth rows' italic style — that toast was equally written to the hidden phone element until the twentieth pass. |
| Twenty-second pass — the fallbacks stop claiming what the same toast disproves, and guide 4 opens a real page | The twenty-second audit traced the demo-clock toasts' nothing-due fallbacks, one Help button, and one Spanish toast, and the pass closed what it found, in its order. The “all answered” fallbacks are gated, not reworded: the 9:30 AM toast's “the morning's doses are answered” no longer fires while a dose stands Missed, and the 6:00 PM toast's “the day's earlier doses are all answered” is gated the same way — a missed dose is not answered, and each toast names it in its own clause; the 11:00 AM toast's “everything due earlier was answered” no longer fires while a dose stands still due, which its own “Still due” clause names. The seed-state wording is unchanged in all three — the claim is suppressed only when a missed or still-due dose would falsify it — and the 10:00 PM toast's “answered or missed” form, already true as written, stands as it was. Help guide 4's “Show me in the app” opens a real detail page: the haTry handler routes a detail target through openDetail(currentDetail || 'met') instead of a bare go(), so the page is populated and currentDetail is set — on a fresh load it opens Metformin's page, the medicine the view's static markup already shows — and Edit and “I refilled this” work instead of answering no tap. The nit: the [data-log] Taken toast's Spanish branch names the medicine from ES_NAMES, as its three sibling handlers do, and carries the early-log distinction — a dose logged from its early window reads “registrada temprano,” stamped and labelled in History, as the English branch says — instead of the plain taken sentence under the English name. |
| Twenty-third pass — “all taken” means every dose taken, on the widget and from Siri alike | The twenty-third audit took up the click-verified probe finding — 4 of 7 doses taken, 3 skipped, nothing outstanding, and the lock widget reading “All doses taken today” — and the pass closed what it found, in its order. The lock-screen widget's “All doses taken today” requires taken == total: its condition was the eighteenth pass's taken > 0, so the mixed day claimed “taken” for three skipped doses; the mixed day now reads “All doses answered today,” as the all-skipped day already did, and “taken” stands only when every dose was taken — the comment above the line says so, and the eighteenth-pass row's “stands only when a dose was actually taken” is annotated as superseded on the mixed state. Siri makes the same distinction: “Try it — everything is taken” and “Everything is already marked taken today.” stand only when taken == total; on the mixed day the button stays ask-style and the answer reads “Everything is answered today — 4 taken and 3 skipped,” with the day's own taken and skipped counts. The nit: the “word for word” claims are annotated rather than left asserting byte-identity — the nineteenth-pass row's “exactly the wording” and the hypothetical builder's comment now record the ruling instead: the computed seed sentence's “for Acetaminophen 500 mg” naming is kept, because every variant of the sentence names its medicine (the Ibuprofen variant reads “limit of two for Ibuprofen”), which the per-medicine derivation needs; what the nineteenth pass preserved is the seed sentence's meaning and its three-log pattern. |
| Twenty-fourth pass — the counts are counted, the hour is derived, and “all answered” waits for the doses still to come | The twenty-fourth audit traced a week cell's label, a morning toast's fixed hour, and two fallbacks that fired over doses still to come, and the pass closed what it found, in its order. The Sunday week cell's skip label counts the slot's skipped doses: cellFor() derives “1 skip” / “2 skips” from the statuses it already computes — on the phone grid and the iPad cell alike, both of which render through cellFor() — instead of a fixed “1 skip” whenever any dose in the slot was skipped, so the cell agrees with its own detail readout, which lists each dose in the slot; a slot with no skips still reads “All.” The 9:30 AM toast's “Nothing turns Missed until …” is derived: it names the earliest missedAfter among the day's unanswered doses — each dose turns Missed two hours after its own time, and the sentence reads the soonest of those — instead of a fixed string reciting Metformin's 11:00 AM, which an added 8:30 AM dose (Missed at 10:30 AM) contradicted; the seed morning still answers 11:00 AM, because Metformin's is the soonest turn-Missed time the seed day holds. The “all answered” fallbacks are gated on the “next” state: the 10:00 PM toast's “the day's doses are all answered or missed” no longer fires while a dose stands still to come (per doseStatus), and the toast names that dose in a “Still to come” clause on the 6:00 PM toast's pattern — name, time, and early-window-open time; the 9:30 AM toast's “the morning's doses are answered” is gated the same way on an unanswered morning-slot dose in the “next” state, and names the still-to-come morning dose the same way. The seed wording is unchanged at both positions — no dose stands “next” at either hour in the seed day — and the 6:00 PM toast's “the day's earlier doses” and the 11:00 AM toast's “everything due earlier” fallbacks, correctly scoped already, are untouched. The nits: the seventeenth-pass row's Siri fence sentence is annotated as superseded on the mixed state, in the same italic style as the eighteenth-pass row's annotation — “now stand only when a dose was actually taken” rested on taken > 0, and the twenty-third pass's taken == total fence is the current one on both rows; and History's Today group reads in one order — newest-first, matching the Yesterday group: historyRows() sorts Today's dose rows by their scheduled time, latest first, so the DOSES-loop rows no longer append oldest-first beneath the seed rows' newest-first and the group no longer descends to 6:02 AM and jumps back to noon; the correction notes keep the head of the group in their recorded order, and the CSV preview and the iPad History, which render the same list, agree. |
| Twenty-fifth pass — the fallback learns snooze, the skip cell wears Saturday's dress, and the verbs agree | The twenty-fifth audit traced the one demo-clock fallback the earlier gatings had not reached, a week cell's dress, and two sentences' grammar, and the pass closed what it found, in its order. The 10:00 PM toast's “all answered or missed” fallback is gated on snoozed too: the branch computes its snoozed list the way the 9:30 AM and 6:00 PM branches do (namesIn('snoozed')), the fallback fires only when that list is empty as well, and the toast names each snoozed dose in its own clause on the 6:00 PM pattern — “X is snoozed, with its buttons still live — it reminds again at …” — with the dose's own remind-again time read from its stored snooze, so snoozing Atorvastatin at 10:00 PM and re-clicking the 10:00 PM clock button answers with the snooze, not with “all answered or missed” over a card that reads “Snoozed — reminds again at 10:10 PM.” The seed wording at 10:00 PM is unchanged — no dose stands snoozed in the seed day. The nits: the Sunday week cell's skip case wears Saturday's dress: cellFor() returns the grey dash and the wk-next class whenever the slot holds a skip, keeping the counted “1 skip” / “2 skips” label the twenty-fourth pass derived — the green ✓ and “All” stand only when every dose in the slot was taken — so a slot whose doses were all skipped no longer reads as taken at a glance on Sunday while Saturday's identical label reads as skipped; and two multi-name sentences agree with their subjects: the 6:00 PM toast's snoozed clause reads “are snoozed, with their buttons still live” for a list of names, and the 9:30 AM toast's expired-snooze sentence reads “are Due again now” — the single-name wording at both positions unchanged. |
| Twenty-sixth pass — the snoozed clauses stand on their own, the list dedupes by name, and the dead check goes | The twenty-sixth audit traced the clauses the earlier gatings had left in each other's shadow — two snoozed clauses that could only speak when nothing was due, a snoozed list deduped by key but not by name, and a check the return above it had already made moot — and the pass closed what it found, in its order. The 6:00 PM toast's snoozed clause is an independent appended clause: it no longer sits in the else-branch of the due clause, so a snoozed dose is named even when a dose is due — at 6:00 PM, snooze Metformin and re-click the clock button, and the toast names the due Vitamin D3 and appends “Metformin 500 mg is snoozed, with its buttons still live,” keeping the clause's sentence pattern and its plural agreement (“are snoozed, with their buttons still live” for a list of names) — as the 10:00 PM branch already appends its snoozed clause; the “all answered” fallback still waits for the snoozed list to be empty, exactly as it did while the clause stood in the else-branch. The 9:30 AM toast's “Snoozed:” clause is independent the same way — appended after the due clause instead of standing in its else-branch, so a snoozed morning dose is named beside a due one. The seed wording is unchanged at both positions — no snoozed dose stands beside a due dose in the untouched seed day. The nits: the 10:00 PM toast's snoozed-dose list dedupes by medicine name, not only by medicine key — two medicines added under the same name through the duplicate dialog's “add it anyway,” with both doses snoozed, now contribute one entry, so the clause cannot repeat the same name in two sentences; and the redundant inner if (ds.length) in cellFor()'s Sunday branch is removed — the empty-slot check above it has already returned when the slot holds no doses, so the inner check was always true and the branch now runs unwrapped. |
| Twenty-seventh pass — the 11:00 AM toast learns snooze, the skip label outranks the coming hour, and every clock toast names a snoozed dose | The twenty-seventh audit traced the last demo-clock branch the snooze handling had never reached, a name list deduped by key alone, a week cell with two claimants, and two clauses' pronouns, and the pass closed what it found, in its order. The 11:00 AM toast handles snooze like its siblings: the branch computes its snoozed list the way the 9:30 AM and 6:00 PM branches do (namesIn('snoozed')), its “everything due earlier was answered” fallback is gated on that list being empty as well — an added dose due between 9:00 and 11:00 AM is Due and snoozable at 11:00 AM through Today's card, and the fallback no longer fires over it — and the toast appends a snoozed clause on the 6:00 PM pattern (“X is snoozed, with its buttons still live” / “are snoozed, with their buttons still live” for a list). The seed wording at 11:00 AM is unchanged — no dose stands snoozed there in the seed day. The nits: the 11:00 AM toast's early-window list dedupes by medicine name, not only by medicine key, on the twenty-sixth pass's snoozed-dedupe precedent, so two medicines added under the same name with both doses in the early window contribute one entry; ruled — the week cell's priority is the actionable states first, then the counted skip label, then “All,” then the next dose's time: cellFor() returns the counted skip label in its dash dress whenever the slot holds a skip and no dose is due, snoozed, missed, or in its early window, so a skip beside a dose still to come reads its skip instead of the coming dose's hour, and “All” stands only when every dose was taken, as before; the 6:00 PM toast's due clause agrees with a single due dose — “it can be logged, snoozed, or skipped right here” — keeping “they can be logged…” for a list, so the seed's two due doses read as they always have; and ruled — the 9:12 AM toast names a snoozed dose too: a snoozed clause on the 6:00 PM pattern is appended after the early-window sentence, so all five clock toasts name snoozed doses; the seed wording at 9:12 AM is unchanged — no dose stands snoozed in the seed morning. |
| Twenty-eighth pass — the Family summary counts its due doses, and the last clock toast names one | The twenty-eighth audit traced a count one summary still recited instead of counting, and the one clock toast that named every state but due, and the pass closed what it found, in its order. The Family summary's due count is derived from the live state, the way its missed, skipped, and snoozed counts already are: renderToday() counts the doses whose doseStatus is “due” and names them joined the way the 6:00 PM toast joins names — “1 due now (X)” when one dose is due, “2 due now (X and Y)” when two are — instead of the hardcoded “1 due now” that named only the first due dose, so the 6:00 PM seed day now reads “2 due now (Metformin 500 mg and Vitamin D3 1000 IU)”; the iPad Family pane inherits the fix through its existing copy of the phone's lines. The seed wording at 9:12 AM is unchanged — one dose stands due there, and the summary still reads “1 due now (Metformin 500 mg).” The nit, ruled — the 9:12 AM toast names a due dose too, so all five clock toasts do: a due clause on the 9:30 AM pattern (“Due now: Metformin 500 mg.”) stands first in the toast, before the early-window sentence, which keeps its wording verbatim (“Every early window is still shut; there is nothing to tap ahead of time, on purpose.”). The seed 9:12 AM toast is extended by this ruling — it gains the due clause; the existing sentence is not reworded. |
| Twenty-ninth pass — the last clock toast names a missed dose, and the clauses agree with their lists | The twenty-ninth audit traced the one state the first clock toast still never named, and three small agreements of grammar, and the pass closed what it found, in its order. Ruled — the 9:12 AM toast names a missed dose too, so all five clock toasts do: the branch computes its missed list with namesIn('missed') and adds a missed clause on the 9:30 AM pattern (“Missed already: X.”) after the due clause; the seed wording at 9:12 AM is unchanged — no dose stands missed in the seed morning. The nits: the early-window clause's possessive agrees with its list — “In their early windows:” when the list holds more than one name, “In its early window:” for one dose — in all four toasts that carry it (9:12 AM, 9:30 AM, 6:00 PM, 10:00 PM); the seed wording is unchanged at all four positions; the Family summary's snoozed parenthetical agrees with its count — “remind again at” when more than one dose stands snoozed, “reminds again at” for one; the seed wording is unchanged — no dose stands snoozed in the seed day; and the iPad Family pane's explanatory sentence names the due count too — “including missed, skipped, snoozed, and due counts” — so its enumeration covers the due count the twenty-eighth pass derived. |
| Thirtieth pass — the undo sentence states the rule, and the small claims match their tokens | The thirtieth audit traced the claims that outran the rules and tokens beneath them, and the pass closed what it found, in its order. Stop 2's undo sentence now states the implemented rule: “Undoing a dose more than 2 hours after its time lands on Missed, never on a false “due now” — inside those 2 hours it lands back on Due, with its buttons live again” — the old sentence landed every undo of a passed dose on Missed, which the status function has never done: inside the 2 hours the dose stands Due, and only past them is it Missed. The loose wording in undoToast()'s header comment — “missed (its time already passed)” — is corrected the same way; no behaviour changed, because the landing rule itself (Due within 2 hours, Missed after) was already the implemented one. The nits: the as-needed status has a never-taken branch — prnStatusFor() and esPrnText() now read “✓ Safe to take — no dose taken yet today” (Spanish: “ninguna dosis tomada hoy todavía”) for an as-needed medicine with no recorded last dose, instead of claiming the gap hours have passed since a dose that never happened; the seed Acetaminophen line — “the 4 hours have passed,” true of its dose taken yesterday — is unchanged, as is every taken, too-soon, and limit line; the Spanish early-window card carries the early-logging explanation its English twin has — logged early inside the last hour, stamped with the real time, labelled «Tomada temprano» in History — between its due time and its missed-after line; and stop 11's contrast claim matches the tokens — the secondary text reads “nearly 10:1,” what --p-ink2 on the dark surfaces actually computes to, while the primary claim, “better than 15:1,” stands as the true one it is. |
| Thirty-first pass — the correction handler's late flag stops at the 2-hour mark, and the 11:00 AM toast stops saying “now” | The thirty-first audit traced the one flag the grace rule's bounds had not reached, and one toast's timing claim, and the pass closed what it found, in its order. The correction-time handler's late flag is bounded at the 2-hour mark: the #corrTimeBtn handler now derives d.late only when the corrected time is more than 30 and less than 120 minutes after the dose's time — the bounds setDose() and seedDetail() already used — where before, any corrected time more than 30 minutes after set the flag, however far past the 2-hour mark it fell, so a correction could wear a “taken late” label the grace rule nowhere else allows. The claims built on the unbounded flag now say what the dose reads as: a corrected time more than 2 hours after the dose reads as plain taken — a corrected Missed, not “taken late” — in the live-taken toast and in the past-row correction note and its toast alike, and the fourteenth-pass row's “flags a corrected time more than 2 hours after the dose as taken late” sentence is annotated as superseded above, in the established italic style. (Superseded in the thirty-second pass on the appositive: the correction-time handler's toast and note drop “a corrected Missed” and read only “reads as plain taken, not taken late” — the dose in that flow stood taken, not Missed — so the “a corrected Missed” wording in the sentence above describes the thirty-first pass's wording, not the current one.) The nit: the 11:00 AM toast's missed clause is timing-neutral — “Missed already: X.” on the 9:30 AM toast's pattern, instead of “Now Missed — never answered: X.” — so a dose that stood Missed before the clock moved is not described as turning Missed at the move; the seed 11:00 AM toast's missed clause is reworded by this change, and no other clause in that toast moves. |
| Thirty-second pass — the evening toasts split their missed lists, and “a corrected Missed” goes from the correction handler | The thirty-second audit traced three descriptions that misnamed how a dose came to stand as it does, and the pass closed what it found, in its order. Ruled — the 6:00 PM and 10:00 PM toasts split their missed lists: a dose that returns to pending from taken is recorded as undone (d.undone, set in setDose() on that landing and cleared when the dose is answered again — taken or skipped), and each toast now names the never-answered doses with “Turned Missed, never answered: X.” and the undone doses separately with “Missed already: Y.”, on the 9:30 AM toast's pattern — an undone dose was answered, then marked not taken, and is no longer described as never answered; the 6:00 PM toast's “all answered” fallback waits for both lists to be empty, as it waited for the single list before. The seed wording at both hours is unchanged — no dose stands undone in the seed day. The nits: the demo-clock handler's comment quotes the current wording — “Missed already” at 11:00 AM, instead of the “now Missed” the thirty-first pass retired; and ruled — the correction-time handler's toast and note drop the “a corrected Missed” appositive: a time corrected more than 2 hours after the dose now reads only “reads as plain taken, not taken late” — in the live-taken toast and in the past-row correction note and its toast alike, the handler's own comment saying the same — the operative claim standing alone, because this dose stood taken, not Missed; the category name in setDose()'s comment stands untouched, where the “I did take it” path corrects a dose that did stand Missed. |
| Thirty-third pass — the lock notification and the rebuild learn the undone flag, and the “a corrected Missed” sentences are marked superseded | The thirty-third audit traced the two places the undone flag had not yet reached, and the annotations the thirty-second pass had left unmarked, and the pass closed what it found, in its order. The nits: the lock notification's missed bodies are undone-aware in both branches: in applyLockPrivacy(), when rem.undone is set, the named body drops “never answered” and reads “Due X — it's marked Missed. If you did take it, tap “I took it.””, and the hide-names body drops “passed unanswered” and reads “A dose is marked Missed. Open Clockwork to log it if you took it.” — neutral wording true for both kinds of missed dose; the seed wording in both branches is unchanged, since no seed missed dose is undone. rebuildDoses() carries d.undone across the rebuild: the flag is recorded for each removed pending dose keyed by its dose time and re-applied to the re-created dose at the same time, so an Edit save cannot resurrect a false “never answered” for a dose that was taken and then undone. And the “a corrected Missed” sentences are annotated as superseded in the thirty-second pass, in the established italic style — the thirty-first-pass row's sentence saying a corrected time reads as plain taken, “a corrected Missed,” and the fourteenth-pass row's thirty-first-pass italic annotation saying the same, each now carrying its thirty-second-pass superseded annotation where it stands above. |
| Thirty-fourth pass — the intro drops “a corrected Missed,” and the rewind ties the undone flag to its note | The thirty-fourth audit traced the last two places the retired wording and the undone flag still outran their records, and the pass closed what it found, in its order. The nits: the intro's thirty-first-audit sentence is reworded — it no longer calls a correction past the 2-hour mark “a corrected Missed” in the walkthrough's own voice, but says the dose reads as plain taken, not “taken late,” the wording the thirty-second pass left standing in the correction handler itself; the table's two superseded annotations of the same phrase stand as they are, since they record the thirty-first pass's wording where it was written. And ruled — the rewind clears d.undone only when no undo note for that medicine survives the rewind filter: the rewind un-logs a take stamped after the new time through setDose(), whose pending landing sets the flag on any dose it lands from taken — but a take the clock un-happens was never undone, only erased, so once the History filter has run, a dose whose medicine has no surviving “Marked “not taken”” note loses the flag and reads as never answered, as it stands in the rewound day; where the note does survive — undo, retake, then a rewind to a point after the undo but before the retake — the flag is the true one and stands, so that sequence keeps the “Missed already” the evening toasts and the lock notification owe it. |
| Thirty-fifth pass — the rewind's undo-note match is keyed by the medicine, not its name | The thirty-fifth audit traced the one match the thirty-fourth pass's ruling still keyed by name, and the pass closed what it found. The nit: the undo note carries its medicine's key, and the rewind matches on the key: both writers of the “Marked “not taken”” note — the Today card's Undo and the correction screen's “Mark it not taken” — now store medKey on the note at write time, and the rewind's sweep asks whether a surviving note's medKey is the dose's own medicine key, instead of whether its name equals the medicine's current name. An Edit rename between the undo and the rewind no longer breaks the match — the note keeps the key it was written under, whatever the medicine is called by the time the clock moves — and the duplicate-named pair is settled the same way: a second medicine added under the same name (“add it anyway”) carries a different key, so its undo note can never keep another dose's flag standing. The two ruled sequences stand as the thirty-fourth pass left them: a take the rewind merely un-happens still clears its flag, since no undo note for that medicine survives the filter; and undo, retake, then a rewind to a point after the undo but before the retake still keeps it, since the note — now matched by key — survives. |
| Thirty-sixth pass — the past-row correction stops falling back to a name lookup when the keyed medicine is gone | The thirty-sixth audit traced the one fallback the keyed past-row correction still kept, and the pass closed what it found. The nit: the count target resolves by the row's key alone: the past-row correction block now takes pk as the row's medKey medicine when that medicine still exists, and null when the keyed medicine is gone — the name lookup, medKeyByName, survives only for a row carrying no medKey at all, a defensive case no current row falls into. The deleted-with-duplicate-survivor sequence therefore takes the block's existing “no longer on the list” branch: no bottle count moves — least of all the count of a second medicine that happens to share the deleted one's name — and the note and toast say so, as the sixth-pass row's account of the correction claims. A row whose keyed medicine still stands resolves exactly as before, renamed or not, and the once-only correctedPast guard is untouched. |
| Thirty-seventh pass — the past-row correction checks whether the medicine has a count to move | The thirty-seventh audit traced the one count the keyed past-row correction still claimed without checking, and the pass closed what it found. The should-fix: the block resolves whether the resolved medicine has a count before its note says one moved: a count exists only where adjustCount() can move one — a taper with a BOTTLES entry, or a COUNTS entry — and when the resolved medicine has neither, the correction takes a branch of its own, on the deleted-medicine branch's pattern: the note reads “Correction (Nov 22): marked not taken — Acetaminophen 500 mg is taken only when needed, so there is no bottle count to change; the original entry stands below,” and the toast matches, because an as-needed medicine is never counted down and there is no count for the correction to put right. The branch covers all three past actions — pastnottaken, pastundoskip, and pasttaken share the block — and the thirty-sixth pass's pk resolution, the deleted-medicine branch, the medKeyByName fallback for keyless rows, and the once-only correctedPast guard all stand untouched; a medicine with a count corrects exactly as before. |
| Thirty-eighth pass — the already-corrected message and guard toast speak in the branch that recorded the correction | The thirty-eighth audit traced the one message the branch-aware correction block still worded for a single branch, and the pass closed what it found. The should-fix: the correction records its branch when it lands: correctedPast now stores which of the block's three branches recorded the correction — counted, no-count, or deleted — in place of the bare flag, because re-deriving the branch when the correction screen opens can mislabel it: a medicine deleted after a counted correction would read as the deleted branch though its count was in fact put right. The correction screen's already-corrected message and the past-block guard toast now speak per branch: a counted correction keeps the standing wording — its bottle count has already been put right; a no-count correction says the correction stands and there is no bottle count to change, naming the as-needed medicine on the thirty-seventh pass's branch pattern; a deleted medicine's correction says the correction stands and no bottle count changed. The once-only guard itself, the thirty-sixth pass's pk resolution, and all three correction branches stand untouched, and a counted medicine's already-corrected wording is unchanged. |
| Thirty-ninth pass — the already-corrected message's once-only claim is scoped to the count correction | The thirty-ninth audit traced the one claim the branch-aware message still made for the dose as a whole, and the pass closed what it found. The should-fix: the lead-in speaks of the count, not the dose: the correction screen's already-corrected message opened its explanation with “A past dose is corrected once” in all three branches — a claim about the dose itself, though the once-only rule governs the count correction: a time fix moves no count and never spends the correction (the time handler sets no correctedPast entry), so a user who fixes a time and then realises the dose was never taken can still mark it not taken, and the message must not say otherwise. The counted branch now scopes the claim to the count — a past dose's count is put right once: its bottle count has already been put right, and correcting it again would move the same count a second time for one dose. The no-count and deleted branches drop the once-only lead-in and the second-correction tail altogether and let the correction stand in the branch's own words — the as-needed medicine is taken only when needed, so there is no bottle count to change; the deleted medicine is no longer on the list, so no bottle count changed — with the correction standing as recorded. The past-block guard toast's counted branch carries the same scoping — its bottle count has already been put right, and a past dose's count is put right once — and its no-count and deleted branches, which already stated the correction standing in their branch's words with no once-only claim, stand unchanged. Each branch's count wording, the thirty-eighth pass's recorded-branch mechanism, the once-only guard itself, and all three correction branches stand untouched. |
| Fortieth pass — the correctedPast declaration comment is scoped to the count-moving correction | The fortieth audit traced the one comment the count-scoping still left unscoped, and the pass closed what it found. The nit: the declaration speaks of the count-moving correction, not the dose: the comment above correctedPast opened “a past dose's correction can be applied ONCE” — a claim about the dose itself, though the once-only rule governs the count-moving correction alone: a time fix moves no count and never spends it, as the scoping comment the thirty-ninth pass added at openCorrect already says. The declaration's first sentence now carries the same scoping — a past dose's count-moving correction can be applied ONCE, a time fix moves no count and never spends it — and the entry is set when a count-moving correction lands. No behaviour and no user-facing string changes: the once-only guard itself, the thirty-eighth pass's recorded-branch mechanism, the thirty-ninth pass's message and toast wording, and all three correction branches stand untouched. |
| Money facts | Verified current before build: Extra Help ≈ $5,700/year (SSA) and Medisafe Premium $39.99/year (Medisafe's own help center). |