From f499c5c4b3609feafa5ea85dc35f8c1fe06cfea4 Mon Sep 17 00:00:00 2001 From: ai-bot Date: Sat, 3 Oct 2026 12:03:09 +0000 Subject: [PATCH] Read the new contact status in the follow-up alert (section 23.1) --- alerts.py | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/alerts.py b/alerts.py index 480a411..6a5f668 100644 --- a/alerts.py +++ b/alerts.py @@ -27,6 +27,9 @@ _CLOUD_KEY_UNAVAILABLE_MESSAGE = ( "Check the provider status and replace the key before continuing; " "the remaining checks for this key cannot be recorded." ) +# The stored contact status that asks for an update of the user's own records +# (section 23.1). +_CONTACT_NEEDS_UPDATE = "Needs external update" def build_alerts(record): @@ -194,12 +197,17 @@ def _security_alerts(security_check): def _contact_alerts(record): - """Return the alert for contact information that is not confirmed.""" - if record.get("contact_info_verified") == 0: + """Return the alert for contact details that need an external update. + + Only the stored status is read; the app never stores contact details + (section 23.1). + """ + if record.get("contact_info_verified") == _CONTACT_NEEDS_UPDATE: return [_alert( "contact_info_unconfirmed", INFO, "Contact information", - "Contact information is not confirmed. Update it in your external documentation.", + "The contact details for this key need an external update. " + "Update them in your external documentation.", )] return []