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 — aggregator(alerts): the all-gone delivery/escalation path from #3690 has no test — no gone:true sender fake exists · Issue #6905 · developing-today/code

aggregator(alerts): the all-gone delivery/escalation path from #3690 has no test — no gone:true sender fake exists #6905

New issue
Copy link
New issue
Copy link
Closed
#6991
Closed
aggregator(alerts): the all-gone delivery/escalation path from #3690 has no test — no gone:true sender fake exists#6905
#6991
Copy link
Labels
app/aggregatorPackage/app: aggregator (pm-stack in this repo)effort/xsTrivial: expected under 30 minutes of workkind/testTest coverage, test infrastructure, or test-only fixespriority/lowNice to have; do when convenientsource/pr-diff-reviewFiled by the pr-diff-review jobstatus:done

Description

@dezren39
dezren39
opened on Nov 7, 2026
Issue body actions

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 subscription is a dead endpoint is exercised by no test, even though it behaves differently from the error case over multiple ticks.

Evidence

  • Source PR: fix(aggregator): retry failed incident pushes (#3685) #3690 (merged, merge a3acf3b0523d71860a11c361bddf4b2caf95517b, head 8a59aed9c959a6d823918f771c7d050fc5437ed9).
  • pm-stack/aggregator/src/alerts.ts on current main (4cd2927643453bee47a0f764de534e229220cf88, verified twice via the contents API):
    • 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.
    • 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.
    • The header truth contract (line 16) states "gone is not a send", i.e. the distinction is load-bearing in this module's design.
  • pm-stack/aggregator/test/alerts.test.ts (as added by fix(aggregator): retry failed incident pushes (#3685) #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 }.

Why it matters

The 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.

Acceptance criteria

  • 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.
  • The same coverage exists for the escalation branch (not marked escalated on gone alone).
  • Existing aggregator alerts tests still pass.

Activity

Next
  1. dezren39
    added
    kind/testTest coverage, test infrastructure, or test-only fixes
    task/triageQueue packet kind: verify, reproduce, and route this item
    status/needs-triageNot yet triaged; needs a first look
    on Nov 7, 2026
  2. developing-today commented on Nov 7, 2026

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

    CODE-2166

  3. dezren39
    added
    source/pr-diff-reviewFiled by the pr-diff-review job
    priority/lowNice to have; do when convenient
    queue/queuedHas a queued queue task
    effort/xsTrivial: expected under 30 minutes of work
    app/aggregatorPackage/app: aggregator (pm-stack in this repo)
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    queue/queuedHas a queued queue task
    on Nov 7, 2026
  4. dezren39 commented on Nov 8, 2026

    @dezren39
    dezren39
    on Nov 8, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code, lane code-n)
    • Session / ID: task 11304
    • Found via: queue claim
    • Task: Triage issue aggregator(alerts): the all-gone delivery/escalation path from #3690 has no test — no gone:true sender fake exists #6905 — verify the all-gone delivery/escalation test gap against current main and route it.
    • Expectation: effort xs; done = findings verified/refuted on current main, follow-up routed, task 11304 completed.
    • Links: issue aggregator(alerts): the all-gone delivery/escalation path from #3690 has no test — no gone:true sender fake exists #6905; source PR fix(aggregator): retry failed incident pushes (#3685) #3690
  5. 1 remaining item

  6. dezren39 commented on Nov 8, 2026

    @dezren39
    dezren39
    on Nov 8, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code, lane code-n)
    • Session / ID: task 11304
    • Found via: queue claim
    • Task: Triage of issue aggregator(alerts): the all-gone delivery/escalation path from #3690 has no test — no gone:true sender fake exists #6905 complete — CONFIRMED and routed; findings are in aggregator(alerts): the all-gone delivery/escalation path from #3690 has no test — no gone:true sender fake exists #6905 (comment)
    • Expectation: met — follow-up implementation is task 11379 (small_fix: add the all-gone delivery/escalation tests for the alert engine).
    • Links: task 11304 (triaged, completed); task 11379 (follow-up); issue aggregator(alerts): the all-gone delivery/escalation path from #3690 has no test — no gone:true sender fake exists #6905 stays open for task 11379
  7. dezren39
    added
    queue/queuedHas a queued queue task
    and removed
    task/triageQueue packet kind: verify, reproduce, and route this item
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 8, 2026
  8. dezren39 commented on Nov 8, 2026

    @dezren39
    dezren39
    on Nov 8, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), lane code-r
    • Session / ID: task 11379
    • Found via: queue claim
    • Task: Add all-gone delivery and escalation tests for the aggregator alert engine (issue aggregator(alerts): the all-gone delivery/escalation path from #3690 has no test — no gone:true sender fake exists #6905) in pm-stack/aggregator/test/alerts.test.ts only
    • Expectation: effort xs/s; done = tests added, aggregator alerts suite passes via CI/laptop, PR opened and merged under standing criteria
    • Links: branch queue/11379-6905-all-gone-tests, issue aggregator(alerts): the all-gone delivery/escalation path from #3690 has no test — no gone:true sender fake exists #6905
  9. developing-today
    added
    status:in-review
    on Nov 8, 2026
  10. dezren39
    added a commit that references this issue on Nov 8, 2026

    Merge pull request #6991 from developing-today/queue/11379-6905-all-g…

    7abb85c
  11. dezren39
    closed this as completedin #6991on Nov 8, 2026
  12. developing-today
    added
    status:done
    and removed
    status:in-review
    on Nov 8, 2026
  13. dezren39 commented on Nov 8, 2026

    @dezren39
    dezren39
    on Nov 8, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), lane code-r
    • Session / ID: task 11379
    • Found via: queue claim
    • Task: All-gone delivery/escalation tests for issue aggregator(alerts): the all-gone delivery/escalation path from #3690 has no test — no gone:true sender fake exists #6905 — resumed the existing task worktree's uncommitted suite, verified it fresh, committed, and merged it
    • Expectation: done — PR test(aggregator): pin all-gone alert delivery/escalation lifecycle (#6905) #6991 merged (merge commit 7abb85c); issue aggregator(alerts): the all-gone delivery/escalation path from #3690 has no test — no gone:true sender fake exists #6905 closed
    • Links: PR test(aggregator): pin all-gone alert delivery/escalation lifecycle (#6905) #6991, branch queue/11379-6905-all-gone-tests, issue aggregator(alerts): the all-gone delivery/escalation path from #3690 has no test — no gone:true sender fake exists #6905; tests: bun test test/alerts.test.ts (pm-stack/aggregator, laptop) — 41 pass, 0 fail
  14. dezren39
    removed
    queue/queuedHas a queued queue task
    on Nov 8, 2026
  15. dezren39 commented on Nov 8, 2026

    @dezren39
    dezren39
    on Nov 8, 2026
    MemberAuthor
    More actions

    🤖 Agent note · done

    • Agent: queue worker (repo-worker-code), lane code-x
    • Session / ID: task 11379 (repo-queue-worker-shift-x, 2026-11-07 17:59 CST run)
    • Found via: queue claim · small_fix (follow-up routed by task 11304 triage)
    • Task: Add all-gone delivery and escalation tests for the aggregator alert engine (issue aggregator(alerts): the all-gone delivery/escalation path from #3690 has no test — no gone:true sender fake exists #6905).
    • Expectation: met — PR test(aggregator): pin all-gone alert delivery/escalation lifecycle (#6905) #6991 merged (merge sha 7abb85c), issue aggregator(alerts): the all-gone delivery/escalation path from #3690 has no test — no gone:true sender fake exists #6905 closed.

    Verification (independent, this lane): the tests were implemented in the laptop worktree for branch queue/11379-6905-all-gone-tests and run there before the merge landed: bun test test/alerts.test.ts — 41 pass, 0 fail (38 existing + 3 new all-gone lifecycle tests: delivery multi-tick prune + zero-subscription fallthrough + later-subscription delivery, escalation all-gone, and the alive-reset strike test). bunx tsc --noEmit shows 1 pre-existing error on both the branch and clean main, none in alerts.test.ts. Note lanes code-r/code-g also worked task 11379 in parallel this hour (their pickup note and the commit author) — the landed diff is the same test suite, verified above; task 11379 is now completed with outcome fixed_merged.

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/aggregatorPackage/app: aggregator (pm-stack in this repo)effort/xsTrivial: expected under 30 minutes of workkind/testTest coverage, test infrastructure, or test-only fixespriority/lowNice to have; do when convenientsource/pr-diff-reviewFiled by the pr-diff-review jobstatus:done

    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.