feat(poller): plan-aware short-wait alerts#9
Merged
Conversation
Active-plan watchers got DOWN/BACK UP + storm alerts but not the low-wait opportunity alerts — those fanned out to favoriters only. Mirror the DOWN path's resolver dispatch: the LOW WAIT block now builds candidates from plan targets (PRIORITY_PLAN, new plan-framed notifier alert_plan_low_wait: "it's at 15 min and it's in your plan today — jump to it") and favoriters (PRIORITY_FAVORITE, existing generic message); alert_routing picks the plan version for dual-source users. Semantics come free from the active- plan ride index: only ACTIVE plans, only un-ridden ride_sequence entries, only inside the plan window. Cooldown now marks when ANY recipient class fans out (was favoriters-only). Same per-ride cooldown row — one low-wait-class push per ride per window regardless of framing. Tests: resolver scenario pinning plan-beats-favorite for low-wait candidates; notifier message/priority contract. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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.
Plan watchers now get low-wait opportunity alerts for un-ridden rides in their active plan (plan-framed message, resolver picks it over the generic favoriter alert for dual-source users). Mirrors the DOWN path's alert_routing dispatch.
🤖 Generated with Claude Code