vibeapp.win

What broke

The alert channel was dead for seven days and the status page read configuration

On 19 September the push service rejected the stock app's only push subscription, and 44 alerts reached nobody over seven days. The status page stayed green the whole time because Claude's check asked whether push was configured, not whether alerts were delivered.

The short version

What went wrongThe push subscription was deleted after a 410, and 44 alerts reached nobody for seven days while the status page stayed green, because the check only read whether push was configured.

How we found itHenning asked Claude to look at the quiet alert channel on 26 September, and stored alerts showed 0 of 44 delivered after 18 September.

The rule nowA status check should measure the outcome, not the setup: read whether recent alerts were delivered, add a second place to show failure, and let the channel re-subscribe itself.

This post documents something Claude got wrong. The claim rests on a commit or a file, not on memory. All of Claude's mistakes

The stock app sends alerts when something breaks, such as a broken broker login. Those alerts go out as web push to one phone. From 19 September to 26 September none of them arrived. That was 44 alerts in seven days. Over the same week the app’s status page showed the notification channel as green.

The check behind that green light was written by Claude, and it measured the wrong thing.

What happened

At about 06:00 on 19 September the push service answered the server with HTTP 410. That status means the subscription is gone, usually because the device or browser dropped or rotated it. The server did what the spec says and deleted the subscription. It was the only one.

After that nothing subscribed again. The app had no code to renew a subscription when the browser replaced it, and nothing re-subscribed when the app was opened. Every alert from then on was stored in the database, marked as not delivered by push, and sent nowhere.

The commit that fixed it describes the gap like this: the status check “sto grønn fordi den leste konfigurasjon, ikke levering”. In English: it stayed green because it read configuration, not delivery. The check looked for the push keys, found them and reported “active: web-push”. Whether any device was subscribed, or whether any alert had arrived lately, was never part of the question.

A second choice made the first one worse. The app has a fault register, a job that turns failing status checks into tracked faults. The notification-channel check was on its list of checks to ignore on purpose. So even if the check had gone yellow, nothing would have been registered.

The fault-class document names the trap directly: the only channel that could have reported that push was dead was push.

This was the second time

This was not the first time the alert channel went dark. In a commit from 28 July, Claude wrote that the alert function was called from ten places and reached nobody. There were no push keys, no push subscribers and no email key. In that commit’s words, every alert the app had “sent” since it was built had vanished in silence, “in an app whose whole failure mode IS silence”.

Among the fixes in that commit, alerts are now always written to a database table, with explicit delivered flags for push and email. It also fixed a bug where the push subscription deleted itself on any error, including temporary network errors and 429 rate limits. After the fix it was deleted only on 404 or 410, as the spec says. The same commit noted that this bug was “probably how the only subscriber disappeared”.

A code comment in the status check that later stayed green explains that a dark delivery channel should be visible on the status page and not discovered because nothing ever arrives. That was the right goal. But the check tested configuration, so the next time the channel went dark it showed green again. The delivery flags that would have exposed the problem were already in the database. The check never read them.

How it was found

No automated system caught it. On 26 September Henning asked Claude to look at the alert channel. Claude checked the stored alerts against their delivery flags. Push had been delivered every day up to and including 18 September. After that, 0 of 44 were delivered. Among them was the broker-login alert, which had fired two Saturdays in a row without reaching anyone.

The fix

The commit on 26 September replaced the configuration check with a check that reads the outcome. A new delivery-status function counts the current push subscribers and reads the most recent alerts (up to 200) with their delivery flags. It counts how many of the newest alerts in a row were not delivered, and records when the last one that did get through was sent.

The status logic is now:

  • No channel configured at all: warning.
  • Push configured but zero subscribers and no email: stale, with the number of undelivered alerts and the time they started piling up.
  • Subscribers exist but the last three or more alerts were not delivered: stale, because the push service is rejecting them.
  • One or two recent misses: warning.
  • Otherwise: OK, with the number of devices and the time of the last delivery.

When the new check first ran, it reported stale, with 44 undelivered alerts since early on 19 September.

The check is now part of the fault register. It was removed from the ignore list in the same commit.

Push still can’t report its own failure, so the app itself became the second channel. The alert bell in the app menu now blinks with a “!” when push reaches no device. If Henning opens the app for any reason, a dead push channel is visible there.

The channel also repairs itself now. The service worker listens for the browser’s subscription-change event and registers the new subscription with the server. Each time the app is opened and notification permission has already been granted, it re-subscribes quietly in the background. A rotated subscription like the one on 19 September should now be replaced without anyone doing anything.

The rule

A status check measures the result, not the setup. “Configured” is not “delivered”. A check for a delivery channel reads whether the latest messages actually arrived. A watchdog may not depend on the channel it is watching, so a dead push channel shows up in a second place (the bell in the app). Where the channel can repair itself, it does.