Repository navigation
feat(scheduled): admit pinned weekly wall-clock slots - #12
Merged
Merged
Conversation
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.
The scheduled process port previously accepted only fixed intervals. A Monday 09:17 America/New_York job therefore rejected November 2 after accepting October 26 across the 2026 DST transition.
Add an exact alternative pinned configuration: weekday, HH:MM local time and IANA timezone replace interval_s. Validate canonical integer UTC slots against the local policy and round-trip both folds; gaps and both overlap occurrences refuse. Keep fixed configurations, registration checks, existing-key handling and signed publication unchanged. This adds admission only; calendar-aware history/deadline calculation remains the receiver/reader contract.
Validation: guarded full suite 90 tests PASS; watched157 paths+5resources CLEAN. Includes the real temporary-key four-phase signing/publication driver with mocked remote transport, spring/fall controls, ambiguous/nonexistent local times and invalid/mixed forms. Existing state.py ResourceWarnings retained.
Demo: recording, timing. Download and run scriptreplay with those files. Reproduce with
python3 scripts/demo-scheduled-calendar.py: the retained fixed policy accepts the wrong post-DST UTC hour; the calendar policy accepts the correct local hour. Synthetic source policy only, no runtime admission, key registration or production effect. Original actual-CLI paired probe is also covered by tests/test_scheduled_calendar.py.Rollback: revert this source change to the recorded parent; preserve runtime claims/outboxes. No activation, release or key action is included.