Title: aggregator(alerts): the all-gone delivery/escalation path from #3690 has no test — no gone:true sender fake exists · Issue #6905 · developing-today/code · GitHub
Open Graph Title: aggregator(alerts): the all-gone delivery/escalation path from #3690 has no test — no gone:true sender fake exists · Issue #6905 · developing-today/code
X Title: aggregator(alerts): the all-gone delivery/escalation path from #3690 has no test — no gone:true sender fake exists · Issue #6905 · developing-today/code
Description: Finding The alert engine's all-gone delivery path has no test. PR #3690 gated markDelivered/markEscalated on sent > 0 and tested the transient-error case thoroughly, but no test fake ever returns gone: true — so the branch where every su...
Open Graph Description: Finding The alert engine's all-gone delivery path has no test. PR #3690 gated markDelivered/markEscalated on sent > 0 and tested the transient-error case thoroughly, but no test fake ever returns g...
X Description: Finding The alert engine's all-gone delivery path has no test. PR #3690 gated markDelivered/markEscalated on sent > 0 and tested the transient-error case thoroughly, but no test fake ever re...
Opengraph URL: https://github.com/developing-today/code/issues/6905
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"aggregator(alerts): the all-gone delivery/escalation path from #3690 has no test — no gone:true sender fake exists","articleBody":"## Finding\n\nThe alert engine's all-`gone` delivery path has no test. PR #3690 gated `markDelivered`/`markEscalated` on `sent > 0` and tested the transient-error case thoroughly, but no test fake ever returns `gone: true` — so the branch where every subscription is a dead endpoint is exercised by no test, even though it behaves differently from the error case over multiple ticks.\n\n## Evidence\n\n- Source PR: #3690 (merged, merge `a3acf3b0523d71860a11c361bddf4b2caf95517b`, head `8a59aed9c959a6d823918f771c7d050fc5437ed9`).\n- `pm-stack/aggregator/src/alerts.ts` on current main (`4cd2927643453bee47a0f764de534e229220cf88`, verified twice via the contents API):\n - Delivery branch (line 730) and escalation branch (line 740): `if (summary.sent > 0) { mark… } else { console.warn(… sent=0, gone=${summary.gone}, errors=${summary.errors}) }` — the branch itself does not distinguish transient errors from gone endpoints.\n - `noteSubscriptionGone` (line 418): two consecutive gone responses prune the subscription, so an all-gone incident is retried (and warned about) for the ticks until pruning, then falls into the zero-subscription state — a multi-tick lifecycle no test pins.\n - The header truth contract (line 16) states \"`gone` is not a send\", i.e. the distinction is load-bearing in this module's design.\n- `pm-stack/aggregator/test/alerts.test.ts` (as added by #3690 and still on main): the only failing sender fake returns `{ ok: false, gone: false, error: \"push service unavailable\" }`; there is no `gone: true` fake and no all-gone delivery or escalation test. Every success-path assertion is `{ subscriptions: 1, sent: 1, gone: 0, errors: 0 }`.\n\n## Why it matters\n\nThe gone path is the steady state of a real deployment (subscriptions die whenever a browser profile is abandoned). Its correctness rests on the interplay of three untested pieces — the `sent > 0` gate, the two-strike prune, and the zero-subscription fallthrough — and a regression in any of them (e.g. pruning on first strike, or marking delivered on gone) would ship silently while the error-path tests stay green.\n\n## Acceptance criteria\n\n- [ ] A test with an all-`gone` sender fake pins delivery behaviour across ticks: not marked delivered on gone alone, subscription pruned after the second consecutive gone, and the incident then behaving as the zero-subscription case.\n- [ ] The same coverage exists for the escalation branch (not marked escalated on gone alone).\n- [ ] Existing aggregator alerts tests still pass.\n\n\u003c!-- agent-note:v1\nAgent: pr-diff-review-b\nstate: filed\n-->\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-11-07T15:39:14Z","url":"https://github.com/developing-today/code/issues/6905"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:58122012-fe06-84f1-284f-26d683191b6b |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 884A:12B33:31240C:403549:6B0616B1 |
| html-safe-nonce | 96da485f825eae5ec500ec0162493f9446f10143d64e1cf8eb63e269a6c08b8b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4ODRBOjEyQjMzOjMxMjQwQzo0MDM1NDk6NkIwNjE2QjEiLCJ2aXNpdG9yX2lkIjoiNDkxMzAwMTE2Nzg0MDkyODQ5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ca0c1b30e430c0f25a4cdb5a0bfe51b1454ef0b0e8a615c1a3aaeff58e00a392 |
| hovercard-subject-tag | issue:6260959503 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/developing-today/code/6905/issue_layout |
| twitter:image | https://opengraph.githubassets.com/2af94bc19b2d39c337c67616008cd6119a0dc98f8abe0a75b2a113e44bf2f043/developing-today/code/issues/6905 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/2af94bc19b2d39c337c67616008cd6119a0dc98f8abe0a75b2a113e44bf2f043/developing-today/code/issues/6905 |
| og:image:alt | Finding The alert engine's all-gone delivery path has no test. PR #3690 gated markDelivered/markEscalated on sent > 0 and tested the transient-error case thoroughly, but no test fake ever returns g... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | dezren39 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 97d4714e567728e1f85f88b0cf68c89f0f8a3dc41e8869af7aeb8195ad990374 |
| turbo-cache-control | no-preview |
| go-import | github.com/developing-today/code git https://github.com/developing-today/code.git |
| octolytics-dimension-user_id | 26439447 |
| octolytics-dimension-user_login | developing-today |
| octolytics-dimension-repository_id | 627308783 |
| octolytics-dimension-repository_nwo | developing-today/code |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 627308783 |
| octolytics-dimension-repository_network_root_nwo | developing-today/code |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 866f202ebf7ac5aff8f633417d9fd8a53818a977 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width