Repository navigation
fix: run the daily reminder at five past the hour, not on the hour - #24
Merged
Merged
Conversation
The Recurrence trigger can fire a fraction of a second early. On the hour, the midnight check then read the local hour as 23, failed its own trigger condition and left the work to the 01:00 run, so the reminder arrived an hour late (seen in production on 2026-10-07). The trigger now starts at minute 5. The local-hour 0-3 gate is unchanged, so runs happen at 00:05, 01:05, 02:05 and 03:05 local time. Solution version 1.0.0.4 -> 1.0.0.5. Contract, research R5/R13, data model, quickstart, tasks and README updated to the new times. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Copilot review overview
🟡 Changes recommended
Documentation still reports the prior solution version and gives incomplete guidance for non-whole-hour time zones.
Review effort: Balanced
Findings: 2
Open (2)
What changed in this PR
Moves the daily reminder away from the hourly boundary to prevent early trigger evaluations from delaying reminders.
Changes:
- Schedules hourly evaluations at five past the hour.
- Bumps the solution version to
1.0.0.5. - Updates reminder timing documentation and operational guidance.
| File | Description |
|---|---|
README.md |
Documents reminder and retry times. |
specs/004-schedule-page-reminders/tasks.md |
Records the schedule adjustment. |
specs/004-schedule-page-reminders/research.md |
Documents production evidence and rationale. |
specs/004-schedule-page-reminders/quickstart.md |
Updates nightly verification expectations. |
specs/004-schedule-page-reminders/data-model.md |
Updates the retry cutoff time. |
specs/004-schedule-page-reminders/contracts/reminder-flow.contract.md |
Revises the recurrence contract. |
solution/src/Workflows/MedTrackDailyReminder-B148B1E4-91C0-F111-AAAF-70A8A59D4F56.json |
Moves recurrence start to 00:05Z. |
solution/src/Other/Solution.xml |
Bumps the solution version. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| </LocalizedNames> | ||
| <Descriptions /> | ||
| <Version>1.0.0.4</Version> | ||
| <Version>1.0.0.5</Version> |
Comment on lines
+640
to
642
| - **Half-hour-offset time zones**: with an hourly trigger the check runs at 00:35 local in | ||
| such zones, outside SC-006's 15-minute target. Not the owner's zone. Moving to a | ||
| 30-minute trigger fixes it if ever needed. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Problem
In production the daily reminder went out at 1 AM instead of midnight.
The flow wakes every hour and only runs when the local hour is 0 to 3. A Recurrence trigger does not fire exactly on time: of 24 hourly evaluations in production, 7 started before the hour, by up to 0.4 s. On 2026-10-07 the midnight evaluation started at
03:59:59.597Z, which is 23:59:59 Eastern, so the trigger condition read hour23and skipped the run. The 01:00 retry did the work an hour late, outside SC-006's 15 minutes.No reminder was lost. The hourly retries caught it.
Change
startTimemoves from2026-01-01T00:00:00Zto2026-01-01T00:05:00Z. The local-hour 0–3 gate is unchanged, so runs happen at 00:05, 01:05, 02:05 and 03:05 local time.1.0.0.4→1.0.0.5.spec.mdis unchanged: "at local midnight" is the requirement, and 00:05 is within its 15-minute target.Checks
scripts/ci/assert-no-envvar-values.ps1 -Path solution/srcpasses.After merge
🤖 Generated with Claude Code