HIGH story-pause-status-change-notifications-coordinator-003 13 pts
13
Story Points
High
Priority
Pause Status Change Notifications
Feature

User Story

As a Coordinator
I want to receive an automatic notification when a peer mentor's certification expires and the system automatically transitions them to paused status
So that I am immediately aware of compliance-driven unavailability, can initiate the certification renewal process, and can update contact assignments before any service disruption occurs

Acceptance Criteria

  • Given the nightly-scheduler runs and the certification-expiry-checker finds a mentor with an expired certification, when the check completes, then the mentor-status-service sets the mentor's status to 'paused' with pause_reason='certification_expired' within the same nightly job execution
  • Given a mentor is auto-paused due to certification expiry, when the pause-notification-orchestrator processes the event, then the coordinator receives a push notification with the subject 'Certification Expired – [Mentor Name] auto-paused' and a body that distinguishes it from a voluntary pause
  • Given the auto-pause notification is received, when the coordinator taps the notification, then the deep link navigates to the mentor detail screen which shows the certification-expiry-warning-banner prominently at the top of the screen
  • Given the mentor is auto-paused, when the hlf-website-sync-service runs, then the mentor is removed from the public chapter website listing within 15 minutes of the status change
  • Given a coordinator receives the certification-expiry notification, when they tap the 'Renew Certification' call-to-action in the notification, then the app navigates to the certification renewal workflow pre-populated with the mentor's details
  • Given multiple mentors have expired certifications in the same nightly run, when notifications are dispatched, then each mentor generates a separate notification card in the coordinator's notification centre rather than being batched into an unreadable aggregate
  • Given the mentor subsequently renews their certification, when the certification-status-repository is updated with a valid certificate, then the pause-management-service automatically reactivates the mentor and the coordinator receives a 'Mentor Reactivated' notification

Business Value

HLF's certification programme is a cornerstone of quality assurance for their peer mentor service. An expired certificate represents a compliance risk: if an uncertified mentor continues to appear available and is assigned contacts, HLF faces reputational and potentially legal exposure. Automating the pause-on-expiry flow and instantly notifying coordinators removes human error from the compliance loop, ensures the public-facing website always reflects accurate mentor availability, and creates an auditable trail that demonstrates due diligence to certification standards. This is a MUST requirement for HLF's go-live decision.