v1.3.0
📣 Highlights
v1.3.0 is a reliability and observability release — no new commands, but several things that make the bot more self-correcting and easier to operate:
- Startup role-mapping preflight — the bot now self-verifies its day-role mapping once per boot (reconnect-safe, and a preflight error can never crash the bot).
- App Insights service name — the service now identifies itself as
mom-botinstead ofunknown_servicein Azure Application Insights (takes effect after the next infra deploy). - Faster due-notification lookups — a new database index on
occurrence_date_utcspeeds per-member notification queries. - Security — pip upgraded past CVE-2026-6357; Dependabot now opens automatic PRs to keep GitHub Actions pins current.
Added
- Startup role preflight —
run_preflight()is now called fromMomBot.on_ready()(afterseed_day_role_map), guarded by a_preflight_doneflag so a Discord reconnect can't re-run it, and defensively wrapped so a preflight error can't crash the bot; emits therole_preflight_completelog line once per revision boot (#194, #292). - Dev-only partial-response test seam —
MOM_BOT_FORCE_PARTIAL_FOR_DISCORD_IDenv var in_handle_assign()forces a partial role-sync result for smoke Scenario 5; absent or non-matching means zero behavior change (#74, #292).
Changed
- Authorization refactor (behavior-preserving) — extracted the duplicated manage-guild check from the five
/member-notify-*handlers into a sharedrequire_manage_guilddecorator in newsrc/mom_bot/discord_authz.py; removed dead_check_officer/_OFFICERS_ONLY_MSG; renamed_LINK_YOUR_ACCOUNT_MSG→_NOT_REGISTERED_MSG(#154, #289).
Infrastructure
- Index on
member_notification_sent.occurrence_date_utc— Alembic migrationb4+ matching ORM index backing thelist_due()date filter (previously only covered by the composite UNIQUE) (#278, #291). OTEL_SERVICE_NAME=mom-botadded to the container env so App Insightscloud_RoleNameresolves tomom-botinstead ofunknown_service; needs an infra-deploy apply to take effect (#271, #291).- pip-audit hardening — pip upgraded past CVE-2026-6357 in the pip-audit job; added
.github/dependabot.yml(github-actions ecosystem, weekly) to auto-update Action SHA pins (#59, #60, #282).