Same-risk SPC reissuance treated as new outlook — duplicate notifications + orphaned rows #44
Labels
No labels
area:ai
area:ci-cd
area:notifications
area:observability
area:public-pages
backlog
bug
duplicate
enhancement
help wanted
invalid
question
type:decision
type:feature
type:infra
type:maintenance
type:security
v1.0.1
v1.1.0
v1.2.0
v1.3.0
v2.0.0
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
rbrooks/WeatherBot#44
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Dedup ids embed
product_id, which changes on every SPC reissue(app/services/spc.py:168-206).
_upgrade_check(app/services/spc_processor.py:290-356) only acts on strict upgrade/downgrade;
the equal-risk case returns an empty result, so
_record_and_dispatch_outlookinserts a fresh channel + dashboard
SentAlertand dispatches again, while theprior same-risk dashboard row is never cleared. Users see duplicate outlook
notifications on every no-change reissue (several per day), and stale
uncleared rows accumulate.
Fix: add an explicit
new_idx == row_idxbranch that treats the reissue as acontinuation — refresh the existing row (product id/expiry) and suppress
dispatch. Add a regression test that reissues the same risk label with a new
product_id and asserts exactly one active row and zero new dispatches.
Acceptance criteria:
Filed from the 2026-07-17 codebase audit (
docs/.internal/report-2026-07-17.md), finding F-05.Fixed in #92 (merged to
main)._upgrade_checkgained an explicit equal-risk (new_idx == row_idx) continuation branch that refreshes the existing row's product id/expiry and suppresses dispatch, so a same-risk reissue no longer creates a duplicate notification or an orphaned row. Upgrade/downgrade paths unchanged; reissuance regression test asserts one active row + zero new dispatches.