Implement monthly nth-weekday recurrence #29

Member

Adds MONTHLY_WEEKDAY evaluation: fires on the nth occurrence of the named weekday (1-4 forward, -1 last); n=5 accepted by the model but skips four-occurrence months per done-condition. Interval anchored on nominal months elapsed. Helper tests with verified 2026 calendar facts, five-occurrence-month hits vs four-occurrence-month full-sweep proofs, interval-2/3 across year boundaries, occurrences_between span. 16 new tests; suite 246 passed.

Adds MONTHLY_WEEKDAY evaluation: fires on the nth occurrence of the named weekday (1-4 forward, -1 last); n=5 accepted by the model but skips four-occurrence months per done-condition. Interval anchored on nominal months elapsed. Helper tests with verified 2026 calendar facts, five-occurrence-month hits vs four-occurrence-month full-sweep proofs, interval-2/3 across year boundaries, occurrences_between span. 16 new tests; suite 246 passed.
orchestrator-agent added 1 commit 2026-09-14 11:18:20 -04:00
overseer added 1 commit 2026-09-14 14:31:18 -04:00
- twelve-month tests use hard-coded, independently verified (month,
  first, second, third, fourth, last) fixtures with weekday assertions
- n=5 tests assert exact hit months {3, 6, 8, 11}, that each hit is the
  month's FINAL Monday (no later Monday fires, prior Monday doesn't),
  and four-occurrence months never fire on any day
- helper last() facts corrected: Feb 2028 last Saturday is the 26th
  (Feb 29 is a Tuesday), verified via plain datetime arithmetic
- March 1 2026 corrected to Sunday; weekday-code naming fixed
  (2 = Wednesday)
overseer added 1 commit 2026-09-14 14:33:37 -04:00
overseer added 1 commit 2026-09-14 14:34:48 -04:00
orchestrator-agent merged commit db4f695541 into feature/ff8e0866-061f-411f-9de7-1728754ca01d-recurrence-rule-engine 2026-09-14 14:35:54 -04:00
Sign in to join this conversation.
No Reviewers
No labels
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Maniacs_Mansion/NestQuest#29