GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — CF-10 (#14866): pm-notify relay — deploy and prove the dead-man's switch · Issue #14950 · developing-today/code

CF-10 (#14866): pm-notify relay — deploy and prove the dead-man's switch #14950

New issue
Copy link
New issue
Copy link
Backlog
Backlog
CF-10 (#14866): pm-notify relay — deploy and prove the dead-man's switch#14950
Copy link
Labels
app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/mMedium: expected under 1 day of workkind/infrastructureInfrastructure / host-portability workmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivestatus/in-progressQueue worker lifecycle statework/assignedQueue worker lifecycle state

Description

@developing-today-fleet
developing-today-fleet
bot
opened on Nov 25, 2026
Issue body actions

CF-10 — pm-notify relay: deploy and prove.

pm-stack/notify-relay is designed (Worker + PmNotify Durable Object, /mirror + /heartbeat) and listed in workers.json as not deployed. Deploy it under the versions standard (CF-1 pattern; by hand in that shape until CF-1 lands), wire the aggregator heartbeat/mirror calls, and prove the dead-man's switch: silence the laptop aggregator in a drill and receive one real Web Push; restore it and receive the recovery push. Secrets by name only (the VAPID private key resolves from Bitwarden by name at send time).

Acceptance: pm-notify in service; the drill record (silence → push → recovery → push) is on this issue; workers.json updated by the deploy.

Child of #14866 (Cloudflare-first migration programme). Design of record: doc/2026-11-25_design_cloudflare-first-migration.md (PR #14940). Secrets by name only. Deploys follow the versions standard in design §4 unless this issue says otherwise.

{
  "direct_parent": null,
  "links": [],
  "lineage": {
    "design": null,
    "roadmap_item": null,
    "priority": null
  },
  "pm_meta": 1,
  "provenance": {
    "queue_id": null,
    "scheduled_start": null,
    "picked_up_at": null,
    "work_started_at": null,
    "created_at": "2026-11-25T08:49:01Z",
    "session_id": null,
    "lane": null,
    "host": "htch-runtime",
    "worktree": null,
    "model": null,
    "lane_start_issues": [],
    "workspace_ref": null,
    "auth_subject": "felix",
    "stamped_by": "fleet 0.1.0 (native)"
  }
}

Acceptance criteria

  • pm-notify (Worker + PmNotify Durable Object, /mirror + /heartbeat) is deployed under the CF-1 versions standard and listed as deployed in workers.json, with the aggregator heartbeat/mirror calls wired.
  • The dead-man's switch is proven in a drill: silencing the laptop aggregator produces one real Web Push, and restoring it produces the recovery push; the full drill record is posted on this issue.
  • Secrets stay by name only (the VAPID private key resolves from Bitwarden by name at send time); no secret value appears in the repo, logs or this issue.

Activity

  1. developing-today-fleet
    added
    priority/highImportant and time-sensitive
    kind/infrastructureInfrastructure / host-portability work
    on Nov 25, 2026
  2. developing-today commented on Nov 25, 2026

    @developing-today
    developing-todayBot
    on Nov 25, 2026 – with developing.today
    Contributor
    More actions

    CODE-5438

  3. developing-today-fleet
    added a parent issue on Nov 25, 2026
    • program: move PM Stack, queues, and all unblocked services to Workers + D1 (Cloudflare-first) #14866
  4. developing-today-fleet
    added
    app/pm-stackpm-stack (Pad/Grist) in developing-today/code
    effort/mMedium: expected under 1 day of work
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    status/needs-triageNot yet triaged; needs a first look
    on Nov 25, 2026
  5. developing-today-fleet commented on Nov 25, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 25, 2026 – with developing.today fleet
    ContributorAuthor
    More actions

    Intake review

    Related: programme issue #14866; deploy shape follows the CF-1 versions standard (issue #14941 family).

    Notes: Issue verified still open and live at intake (no merged PR found in the body evidence resolving it; the body scope stands). Acceptance criteria appended to the body by the fleet monitor (original body preserved verbatim above the new section); labels normalised per the taxonomy.

    Risks: Scope creep beyond the slice as written; dependencies named in the body (parent/design/gate issues) may gate the start. For claimed slices, the holding lane's own plan governs sequencing.

    Suggested approach: Work the slice exactly as scoped in the body, prove each acceptance bullet with a test, drill record or live read-back as its wording requires, and post the evidence on the issue before closing.

    🤖 Agent note · filed

    • Agent: fleet monitor
    • Session / ID: repo-fleet-monitor run 2026-11-25 05:14 CST
    • Found via: monitor reconciliation (intake enrichment, protocol §5)
    • Task: intake pass — acceptance criteria, label normalisation, related links
    • Expectation: enriched item is ready for triage/queue routing
    • Links: this issue
  6. developing-today-fleet
    added
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    on Nov 25, 2026
  7. dezren39 commented on Nov 26, 2026

    @dezren39
    dezren39
    on Nov 26, 2026
    Member
    More actions

    Lane any-n (task 23742) CF-10 prep note: pm-stack/platform/workers.json still lists pm-notify as not deployed (deploy: none) — deploy leg genuinely pending. Dispatched notify-relay suite remotely (bun test pm-stack/notify-relay/test/, handle fp_cbb4def8d13eb947ecd2c14230921369); no runner free yet, job queued in repo-queue as system of record. The dead-man's switch drill (silencing the laptop aggregator for a real push + recovery push) needs a dedicated window and is not started in this run. Resume: collect the test dispatch result, run wrangler deploy under the versions standard, wire aggregator heartbeat/mirror, update workers.json, then drill.

  8. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 26, 2026 – with developing.today fleet
    ContributorAuthor
    More actions

    🤖 Agent note · CF-10 deploy — rollback note recorded BEFORE the deploy (felix lane, 2026-11-26)

    Owner ruling in force: #14866 comment 7189808145 — everything to Cloudflare, finish migrations/deploys end to end.

    Ground truth found this run:

    • pm-stack/platform/workers.json on current main (59a48f5) still lists pm-notify as state: not deployed, deploy: none, address: null. The deploy leg is genuinely pending.
    • The relay code is complete in repo: Worker + PmNotify DO, /mirror/*, /heartbeat, /status, event mirror (step 2) and edge answer intake (step 3) all landed. Aggregator-side wiring also already exists (pm-stack/aggregator/src/notify-relay.ts: 60s heartbeat + subscription mirror, started from server.ts when PM_AGG_NOTIFY_RELAY_URL is set; secret resolved by name at send time).
    • The Bitwarden secret pm-aggregator.notify-relay-shared-secret does not exist yet (verified by name lookup this run — unresolved in every source). It must be created (new random value, stored in Bitwarden under that exact name, same project as pm-aggregator.vapid-private-key) and set on the Worker as RELAY_SHARED_SECRET. pm-aggregator.vapid-private-key exists and will be set on the Worker as VAPID_PRIVATE_KEY. No secret value will appear in any log, comment, or commit.

    Deploy about to run: wrangler deploy of pm-stack/notify-relay (account 234b866b99ce2b142d7963d8d139cbfa) via the sanctioned pkgs/cf/wrangler-authed.py pattern (token by name cloudflare.api-token-account-wide, stdin only), then the two Worker secrets above, then live verification against GET /status, then a controlled dead-man's-switch drill.

    Rollback: pm-notify is not in service today and nothing routes to it, so rollback is subtraction, not restoration: (1) unset PM_AGG_NOTIFY_RELAY_URL on the aggregator if it was set (aggregator returns to its pre-relay behaviour — it is inert without the URL); (2) wrangler delete pm-notify (or leave the Worker undeployed-traffic: workers.dev URL with no aggregator pointing at it sends nothing — the DO opens no episode without a first heartbeat/mirror); (3) revert the workers.json entry to not deployed. The newly created Bitwarden secret can be deleted if the relay is abandoned. No data plane is touched by this deploy; DO state is created empty.

  9. developing-today-fleet commented on Nov 26, 2026

    @developing-today-fleet
    developing-today-fleetBot
    on Nov 26, 2026 – with developing.today fleet
    ContributorAuthor
    More actions

    🤖 Agent note · CF-10: pm-notify DEPLOYED and live-verified; drill staged on one named blocker (felix lane, 2026-11-26)

    Rollback note was recorded before the deploy: comment 7189997735 on this issue.

    Deploy (done, live-verified, not from deploy output alone):

    • Created the missing vault secret: pm-aggregator.notify-relay-shared-secret did not exist in any source (verified by name lookup). A new random value was generated, stored in Bitwarden under that exact name (same project as pm-aggregator.vapid-private-key, secret id 34b09be3-0e6f-47d6-a8e2-b50e00b3d29a), and confirmed resolvable via fleet secrets get (by name; value never printed/logged/committed).
    • Deployed pm-stack/notify-relay via the sanctioned pattern (pkgs/cf/wrangler-authed.py, token by name cloudflare.api-token-account-wide on stdin): Worker pm-notify, version 45db0876-46f9-4a80-85ef-9bf3836a6ca5, https://pm-notify.developing-today.workers.dev, PmNotify DO bound.
    • Worker secrets set from Bitwarden by name (piped stdin, never printed): RELAY_SHARED_SECRET ← pm-aggregator.notify-relay-shared-secret; VAPID_PRIVATE_KEY ← pm-aggregator.vapid-private-key. Both wrangler secret put calls exited 0.
    • Live verification: GET https://pm-notify.developing-today.workers.dev/status → {"up":false,"silent":false,"silentSince":null,"lastBeatAt":null,"stackEpoch":null,"snapshotSeq":null,"subscriptions":0,"lastDelivery":null} — the DO answers; the all-null liveness is correct for a relay that has not yet seen a heartbeat or mirror.
    • workers.json updated in PR CF-3/CF-9/CF-10 (#14866): D1 queue backup retarget, laptop follow-main timer, pm-notify deployed record #15564 (unmerged): pm-notify now in service, address + deployed commit 59a48f5e17718904f72b3ceabd0231e904bf31e0 recorded.
    • Aggregator wiring already exists in repo (pm-stack/aggregator/src/notify-relay.ts, started from server.ts when PM_AGG_NOTIFY_RELAY_URL is set; secret resolved by name at send time) — no aggregator code change was needed.

    Dead-man's-switch drill — STAGED, one blocker, exact remaining steps:

    • A controlled drill was prepared and attempted from this seat (mirror a drill subscription → heartbeat → silence past the 150s alarm → observe the silent episode + delivery record on /status → heartbeat → recovery record → mirror an empty snapshot to clear the drill subscription). Every POST from this sandbox seat to *.workers.dev hangs with zero bytes returned: the seat's egress proxy raises a per-destination approval for the POST flow, and the approval cards timed out unanswered three times (Drewry away; per standing record an approval timeout is absence, not refusal — but the gate does not open without the tap). GETs to the same host answer instantly, and the Worker returns 401 pre-DO for a bad secret, so this is the seat's egress gate, not the relay. The drill process was stopped; the relay's DO state is untouched (still the pristine /status above).
    • Remaining step 1 (one tap): approve the egress POST flow to pm-notify.developing-today.workers.dev from the Felix seat — then the staged drill runs as scripted in ~4 minutes.
    • Remaining step 2 (the real-device proof, laptop window): set PM_AGG_NOTIFY_RELAY_URL=https://pm-notify.developing-today.workers.dev in the amd-6 aggregator's environment and restart it; confirm /status shows up:true and the real subscription count; stop the aggregator (or its heartbeat) → one real stack.silent Web Push on Drewry's phone within ~2.5 min; restart → exactly one recovered push naming the downtime. Record both timestamps here. amd-6 is flapping today, so this is staged for a stable window rather than forced.
    • This also discharges the pm-stack notifications Phase 2: Cloudflare edge relay + Durable Object dead-man's switch — push that survives the stack being down #8569 notify-relay deploy leg: the relay is deployed; only the drill evidence above remains.

    Status: deploy acceptance met; drill acceptance staged on the two steps above — neither needs Drewry personally except the one egress tap in step 1 (step 2's phone observation is his device, but the push record is also visible on /status lastDelivery).

  10. dezren39 commented on Nov 26, 2026

    @dezren39
    dezren39
    on Nov 26, 2026
    Member
    More actions

    oc-code-08 scheduled run — CF-10 verification (2026-11-26)

    • Current origin/main includes the merged CF-3/CF-9/CF-10 (#14866): D1 queue backup retarget, laptop follow-main timer, pm-notify deployed record #15564 deployment record: pm-notify is listed in service, with address and deployed commit recorded. This corrects the stale root-checkout view; no registry edit was needed.
    • Live GET https://pm-notify.developing-today.workers.dev/status returned up:false, silent:false, subscriptions:0, lastBeatAt:null, lastDelivery:null. The Worker answers, but the DO is pristine.
    • Aggregator client wiring exists in pm-stack/aggregator/src/notify-relay.ts and server.ts; runtime heartbeat/mirror is conditional on PM_AGG_NOTIFY_RELAY_URL being set. fleet shell targets reports laptop and Codespace unreachable, so I could not verify or activate the laptop runtime.
    • A harmless POST to an unsupported route returned 404, but I did not mutate the DO or synthesize a push. A real drill needs the live aggregator heartbeat and a real mirrored subscription; without those, a synthetic test cannot meet the requested real-device acceptance.

    Disposition: relay deploy and code wiring are present; real silence → push → recovery → push evidence remains outstanding. This run did not claim acceptance or change live state. Resume when the laptop target is reachable and aggregator has PM_AGG_NOTIFY_RELAY_URL set; run the real-device drill and record both deliveries.

  11. dezren39 commented on Nov 26, 2026

    @dezren39
    dezren39
    on Nov 26, 2026
    Member
    More actions

    Fresh CF-10 runtime recheck (agent-next-23-local, 2026-11-26): the local pm-aggregator service now has PM_AGG_NOTIFY_RELAY_URL configured and was restarted; the service is active. The installed Nix package is still the pre-relay build and does not contain startNotifyRelay, so no heartbeat reached the Worker: /status remains up:false, with lastBeatAt:null and subscriptions:0. The local alerts preferences endpoint is available but reports zero stored Web Push subscriptions. The merged deploy record (#15564) and main-branch relay client are present; runtime package activation and a real subscription are still needed before the silence → push → recovery → push drill. The existing relay unit-test dispatch fp_cbb4def8d13eb947ecd2c14230921369 remains queued with no runner assigned. No synthetic push was sent. Resume after the relay-enabled aggregator package is active and the local alert store has a real subscription; then run and record the full drill.

  12. dezren39 commented on Nov 26, 2026

    @dezren39
    dezren39
    on Nov 26, 2026
    Member
    More actions

    Readiness recheck (agent-next-25-local, 2026-11-26 17:21 UTC): Worker /status still reports up:false, no heartbeat, and 0 subscriptions; local alerts preferences also show 0 subscriptions. The active pm-aggregator ExecStart points to an older Nix store package without the relay client. The canonical agent-rebuild-switch path builds reviewed main; its last attempt failed on unrelated OpenCode package dependencies. I am retrying that normal main switch; the drill remains gated on an active relay-enabled package and a real mirrored browser subscription.

  13. dezren39 commented on Nov 26, 2026

    @dezren39
    dezren39
    on Nov 26, 2026
    Member
    More actions

    CF-10 readiness update (agent-next-25-local, 2026-11-26 17:53 UTC):

    • The official agent-rebuild-switch.service path was run to activate the reviewed main PM package. GitHub API rate limiting caused the wrapper to use cached flake metadata. The switch failed before activation on the mcpx-0.1.0 derivation; the failing Go tests included TestRestartRestartsEveryTime, TestFollowServesEachCallerOverItsOwnEra, TestHTTPShutdownGraceBoundsHowLongAStopWaits, TestAShutdownCutsACallThatNeverReturnsAtTheDrainWindow, TestTakeoverRestartsAChangedServerAndKeepsTheRest, and TestTheDocumentationListsEverySetting.
    • The active pm-aggregator.service therefore still points to the pre-relay package. Worker /status remains up:false, lastBeatAt:null, subscriptions:0; local alert preferences still have 0 subscriptions.
    • The unrelated main breakage is already covered by OpenClaw cannot reach the OpenCode server: build all three dispatch mechanisms (ACP-runtime agent, headless sessions_spawn, opencode-route provider front) #2229 / PR mcpx(daemon): long-poll waitMs is uncapped and overflows — a client can pin a handler past the operator's wait settings, and a ~317-year wait returns instantly #2231 / queue task #24295. No code or secret values were changed in this pass.
    • CUA reports no connected browser, and the local app has no real Web Push subscription. A browser connection is needed to enable push in /alerts/preferences; the silence/recovery drill remains unrun.

    Next: recheck after #2231 or a newer main build allows the official NixOS switch to succeed, and after a browser is connected and the Worker reflects a real subscription. No synthetic push was sent.

  14. dezren39 commented on Nov 26, 2026

    @dezren39
    dezren39
    on Nov 26, 2026
    Member
    More actions

    CF-10 recheck (agent-next-25-local, 2026-11-26 17:58 UTC):

    • The canonical agent-rebuild-switch.service attempt did not activate the new generation. It used cached flake metadata after GitHub API rate limiting, then failed while building mcpx-0.1.0; the failing tests included restart/recovery, daemon warm timeout, prompt catalog budget, follow-era protocol, shutdown drain, takeover, lease survival, committed regions, and documentation settings. This failure is already owned by OpenClaw cannot reach the OpenCode server: build all three dispatch mechanisms (ACP-runtime agent, headless sessions_spawn, opencode-route provider front) #2229 / open PR mcpx(daemon): long-poll waitMs is uncapped and overflows — a client can pin a handler past the operator's wait settings, and a ~317-year wait returns instantly #2231 / queue task #24295; no duplicate fix was made here.
    • The old pm-aggregator store package remains active. Worker /status is still up:false, lastBeatAt:null, subscriptions:0; local alert preferences have 0 subscriptions.
    • This session has no connected browser (cua.getState returns none and the in-app browser is unavailable). A real browser connection is needed to create the required subscription. No synthetic push was sent.

    Next: retry the approved main-only NixOS switch after #2231 or an equivalent main fix is merged, then connect a browser, enable push, and perform the silence → push → recovery → push drill.

  15. dezren39
    removed
    queue/claimedQueue worker lifecycle state
    on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/mMedium: expected under 1 day of workkind/infrastructureInfrastructure / host-portability workmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/highImportant and time-sensitivestatus/in-progressQueue worker lifecycle statework/assignedQueue worker lifecycle state

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.