Conversation
a96a4be to
c9c5e5c
Compare
rymiwe
added a commit
that referenced
this pull request
Mar 18, 2026
Alternative to #71 (Interval) — same behavior, different class structure. RepeatingWithin subclasses Within to make the relationship explicit. V1I24MF2026-03-31 = complete 1 every 24 months from March 31, 2026. After satisfaction, consuming app calls reactivated_notation(date) to start the next window. Overrides from Within: - recurring? → true (Within is false) - to_s → "every...from" format (Within uses "within...range") - extend_period → no-op (re-anchors instead of extending) - last_completed → returns from_date (current window anchor) - expiration_of → returns final_date - satisfied_by? → checks anchor <= final_date - start_date/final_date → nil-safe for dormant state Also adds reactivated_notation(date) alias for activated_notation to make the re-anchoring call site self-documenting.
4 tasks
4ce236a to
956f865
Compare
rbazinet
approved these changes
Mar 20, 2026
New cycle type for repeating windows anchored to a from_date. V1I24MF2026-03-31 = complete 1 every 24 months from March 31, 2026. After completion, the consuming app re-anchors via activated_notation. Addresses QUAL-6317
956f865 to
7be6041
Compare
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.
Summary
New cycle type for repeating windows anchored to a from_date, split from #69 per review feedback.
V1I24MF2026-03-31= complete 1 every 24 months from March 31, 2026. After completion, the consuming app re-anchors from the completion date viaactivated_notation(completion_date).Review feedback addressed (from #69)
RecurringtoIntervalto avoid collision withCycle#recurring?predicate (which means "does this cycle type repeat?" — Lookback, Calendar, EndOf all returntrue)RtoIto match the convention (every kind uses its first letter: Lookback, Calendar, Within, EndOf, Interval)def self.dormant_capable? = trueon the class (uses the pattern from Move dormant_capable? from Parser to cycle classes #73 instead of editing Parser's hardcoded list)#to_suses"every...from"format vs Within's"within...range";#descriptionexplains re-anchoring;#examplesshow the distinctionInotation makes re-anchoring intent explicit in the notation string, so consuming apps don't need external metadata to know whichWcycles should re-anchorKey differences from Within
W)I)recurring?falsetruedormant_capable?truetrue#to_s(active)"1x within start - end""1x every 24 months from start"#to_s(dormant)"1x within 24 months""1x every 24 months"extend_periodDownstream (qualify)
Inotationsactivated_notation(completion_date)when an Interval obligation is satisfiedTest plan
Addresses QUAL-6317
Supersedes #69 (Interval portion)
Built on #73 (merged) and #70 (merged)