Title: pm-stack notifications Phase 2: Cloudflare edge relay + Durable Object dead-man's switch — push that survives the stack being down · Issue #8569 · developing-today/code · GitHub
Open Graph Title: pm-stack notifications Phase 2: Cloudflare edge relay + Durable Object dead-man's switch — push that survives the stack being down · Issue #8569 · developing-today/code
X Title: pm-stack notifications Phase 2: Cloudflare edge relay + Durable Object dead-man's switch — push that survives the stack being down · Issue #8569 · developing-today/code
Description: Phase 2 — Cloudflare edge relay: push that survives the stack Design: pm-stack-notifications-design-2026-11-11.md (goal keep-the-four-repos-healthy, files/). Depends on Phase 1: #8568. Context: #1254 / #3676 (the laptop-side throat + Web...
Open Graph Description: Phase 2 — Cloudflare edge relay: push that survives the stack Design: pm-stack-notifications-design-2026-11-11.md (goal keep-the-four-repos-healthy, files/). Depends on Phase 1: #8568. Context: #12...
X Description: Phase 2 — Cloudflare edge relay: push that survives the stack Design: pm-stack-notifications-design-2026-11-11.md (goal keep-the-four-repos-healthy, files/). Depends on Phase 1: #8568. Context: #12...
Opengraph URL: https://github.com/developing-today/code/issues/8569
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"pm-stack notifications Phase 2: Cloudflare edge relay + Durable Object dead-man's switch — push that survives the stack being down","articleBody":"## Phase 2 — Cloudflare edge relay: push that survives the stack\n\nDesign: `pm-stack-notifications-design-2026-11-11.md` (goal keep-the-four-repos-healthy, files/). Depends on Phase 1: #8568. Context: #1254 / #3676 (the laptop-side throat + Web Push this mirrors).\n\n### The decision (go / no-go on the Cloudflare move)\n\n- **NO-GO: moving the board / aggregator itself to Workers.** Every primary data source is laptop-local and tailnet-only (OpenCode :13420, queue broker :4801, Kaneo Postgres, projector DB, `~/.local/state/pm-aggregator/*`). An edge board would be a cache of a dead source at exactly the moment it matters, and the board's job is live local state.\n- **GO: a small edge notification relay** — one Worker + one Durable Object (`pm-notify`). The notification path is the one piece that must survive the laptop being down, and it is tiny: events in, subscriptions, push sends, answers in. The fleet already operates Workers (webhook-gateway on workers.dev, infra/github-backup/worker, pkgs/github-ci/worker, pkgs/id/hosted-worker), wrangler is packaged in-repo, and a day-to-day CF API token already lives in Bitwarden by name.\n\n### Shape\n\n- The aggregator throat mirrors every push-worthy event (incident raised/escalated, needs-drew raised, quota wall) to the Worker via authenticated POST (shared secret, same pattern as the throat intake token). The DO stores the mirror log + a subscription mirror.\n- The laptop stack sends a heartbeat POST every ~60s. The DO sets an alarm on each heartbeat; a missed heartbeat window (~2 missed beats) fires `stack.silent`: the DO itself sends a Web Push (\"the PM stack is down\", with since-when) using the mirrored subscriptions and a VAPID keypair whose private key lives as a Worker secret. This is the dead-man's switch — no cron, no laptop, no Muse in the path.\n- Edge answer intake: notification action taps and answer pages are served by the Worker from DO state (question + full option list), so Drew can answer while the laptop is down. Answers are stored in the DO and flushed to the aggregator's answers outbox (Phase 1 path) on the next heartbeat/event contact; if the laptop is up, the Worker can also forward immediately through the existing tunnel ingress pattern.\n- Dual-send discipline during transition: for classes the edge owns (`stack.silent` only, at first) the laptop never sends; for mirrored classes the laptop remains the sender and the edge is a silent mirror until a later, separately-reviewed cutover.\n\n### Acceptance (Drew's terms)\n\n- Stop the whole laptop stack (or kill the tunnel) → a \"stack down\" push reaches Drew's phone in under 2 minutes with zero cron and zero Muse involvement.\n- Answer a needs-drew question from the push while the laptop is down → when the stack returns, the ledger shows it answered and the blocked task unblocks; nothing is lost or double-applied.\n- Stack recovers → one \"recovered\" push naming the downtime length; no duplicate down pushes for the same episode.\n- The page-health-push cron narrows the day this ships: its page checks retire (the DO owns them) and it becomes a daily canary only — is the DO itself alive and did it receive yesterday's heartbeats.\n","author":{"url":"https://github.com/dezren39","@type":"Person","name":"dezren39"},"datePublished":"2026-11-11T07:17:18Z","url":"https://github.com/developing-today/code/issues/8569"}
| 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:f7405a8a-ac52-76c0-b594-709403d939f8 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B2DE:572F9:AAC702:E4867E:6B064232 |
| html-safe-nonce | 75d8e19d13d9bb01a6be71d4585ab6d330652a09eb6cd93e67734ae69a5c77f8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMkRFOjU3MkY5OkFBQzcwMjpFNDg2N0U6NkIwNjQyMzIiLCJ2aXNpdG9yX2lkIjoiMjk0NDI1Mjc0ODA5MjU1NTgyNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | cd18ecc83d805ca3b7722154c63cbbb5b49e7381385ec9eb7a222e108f9a002b |
| hovercard-subject-tag | issue:6323626751 |
| 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/8569/issue_layout |
| twitter:image | https://opengraph.githubassets.com/31dc81c2a099ec5a96646ef2f328fe62c5bf37a3cb24edfae7a831e4cde97d40/developing-today/code/issues/8569 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/31dc81c2a099ec5a96646ef2f328fe62c5bf37a3cb24edfae7a831e4cde97d40/developing-today/code/issues/8569 |
| og:image:alt | Phase 2 — Cloudflare edge relay: push that survives the stack Design: pm-stack-notifications-design-2026-11-11.md (goal keep-the-four-repos-healthy, files/). Depends on Phase 1: #8568. Context: #12... |
| 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 | 1bff4f6bfaa96dc9c42cacf315424c24ebb548b06142ced5e3aaccb2a42dd652 |
| 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 | ac613d3698d3d8565651455086e1f74da07bf277 |
| 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