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 — feat(aggregator): notification engine — class triggers, dedupe, quiet hours, escalation (#1254 slice c) · Issue #3317 · developing-today/code

feat(aggregator): notification engine — class triggers, dedupe, quiet hours, escalation (#1254 slice c) #3317

New issue
Copy link
New issue
Copy link
Closed
Closed
feat(aggregator): notification engine — class triggers, dedupe, quiet hours, escalation (#1254 slice c)#3317
Copy link
Assignees
dezren39
Labels
app/pm-stackpm-stack (Pad/Grist) in developing-today/codekind/featureNew feature or capability requestpriority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus/donetask/triageQueue packet kind: verify, reproduce, and route this item

Description

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

Implementation slice (c) of the #1254 design (note: doc/2026-11-01T03-54-00Z_design_pwa_push_notifications.md, PR #3314; epic #1184). Depends on slice (b) push plumbing.

The engine: pollers over /api/attention.json, /api/quota.json, /api/health; class triggers exactly per design §1 — including the quota-doctrine rules (quota-wall only well before reset or on sole-door pools; routine exhaustion is silent); dedupe by (class, objectRef, state-fingerprint); 6h per-item cooldown; quiet hours (default 23:00–07:00 America/Chicago, per-subscription) with midday + window-end digests; the two-item breakthrough set (sole-door quota wall, 48h blocked-age); needs-drew escalation ladder (+24h batched reminder, +48h breakthrough-eligible, then weekly digest); every send appended to notifications.jsonl.

Defaults ship as the design §1 recommended set unless Drew rules otherwise on the design note Q1 before this lands — check the note/PR for his ruling first.

Acceptance:

  • Each class fires in a fixture-driven test (enter-state fires once, stay-state never re-fires, state change re-fires)
  • Quiet-hours sends defer to the digest; breakthrough set sends immediately
  • Escalation ladder advances and stops on acted-on (item leaves tier / Drew comment or action)
  • Send log records class, ref, timestamp for every send and suppression

Activity

Next
  1. dezren39
    added
    kind/featureNew feature or capability request
    priority/normalOrdinary priority (the default)
    app/pm-stackpm-stack (Pad/Grist) in developing-today/code
    on Nov 1, 2026
  2. dezren39
    added a parent issue on Nov 1, 2026
    • epic(dashboard): PM stack coherence - single-URL, fresh data, triage-able, hierarchical #1184
  3. dezren39 commented on Nov 1, 2026

    @dezren39
    dezren39
    on Nov 1, 2026
    MemberAuthor
    More actions

    Design amendment (PR #3314 @76e898324, Codex P2): the engine consumes the full attention view incl. drewExtra (non-session needs-drew items), and this slice also extends /api/attention.json to carry the drewExtra entries. Add fixture coverage: a non-session needs-drew item (decision/task/gap) fires entry + blocked-age escalation.

  4. github-actions
    assigned
    dezren39
    on Nov 1, 2026
  5. dezren39
    added a commit that references this issue on Nov 1, 2026

    feat(aggregator): alert throat — sentinel intake, Supabase ledger, We…

    b96ef99
  6. dezren39 commented on Nov 3, 2026

    @dezren39
    dezren39
    on Nov 3, 2026
    MemberAuthor
    More actions

    🤖 Agent note · consumer contract now stated

    Design #3702 Phase 3 (audit task 5613, 2026-11-03) has stated the alert throat's truth contract in the code — pm-stack/aggregator/src/alerts.ts module header (PR #4977) — and closed the audit on #3702. What this means for this slice's dashboard classes:

    • Quiet hours are contractual, not advisory. mergeQuiet validates quiet prefs as values (hour 00–23, minute 00–59, per-field fallback to default; aggregator(alerts): mergeQuiet accepts out-of-range times (99:99, 24:60) — a malformed quiet window is silently reinterpreted instead of falling back to the default #3686) and inQuietHours is the only suppression clock. New classes must consult it for non-incident classes exactly as the engine does — and must not invent a second interpretation of stored strings.
    • Delivery state is contractual. A transition is recorded only when its event happened: delivered/escalated require at least one accepted send (runAlertTick gates on sent > 0, aggregator(alerts): runAlertTick marks incidents delivered when every push send failed — critical incidents are silently lost, never retried #3685/PR fix(aggregator): retry failed incident pushes (#3685) #3690); gone is not a send.
    • Class keys are being formalised. mergeClasses currently passes any boolean key through; aggregator(alerts): bound mergeClasses keys to a class registry (#3702 disposition 4) #4981 will bound keys to a class registry once this slice names its classes. When you land them, expect the registry to become the allowlist.
    • Residual quiet-row risk for old data is aggregator(alerts): sanitize stored out-of-range quiet prefs at read time (#3702 disposition 1) #4978; the aggregator-wide auth posture is aggregator(alerts): aggregator-wide auth/CSRF posture for mutating routes (#3702 disposition 2) #4980 (relevant to any new mutating route this slice adds).
  7. dezren39
    added
    queue/queuedHas a queued queue task
    source/creatorFiled by the new-issue-creator job
    status/needs-triageNot yet triaged; needs a first look
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 3, 2026
  8. developing-today commented on Nov 3, 2026

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

    agent-note:v1
    state: triaged (coverage pass)
    Coverage pass 2026-11-03: reviewed in the fleet-wide per-issue pass (drift / overlap / already-handled / stale / blockers / ordering). Verdict: still live; queued in repo-health-code-pilot as triage at priority 40 (priority/normal). If this is already handled at current main, the triage closes it with evidence; if it needs splitting, the triage files the split.
    Found via: coverage pass 2026-11-03

  9. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    on Nov 3, 2026
  10. 196 remaining items

    Load more actions
  11. dezren39
    added
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    status/parkedDeliberately paused with a recorded resume condition
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    on Nov 10, 2026
  12. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    agent-note:v1 — state: handed_off (task 8700, lane code-y)

    • Agent: repo-worker-code; execution lane assigned: opencode.
    • Issue feat(aggregator): notification engine — class triggers, dedupe, quiet hours, escalation (#1254 slice c) #3317 OPEN, no hard-stop labels. Handed off to the opencode claimant: scheduled shift is time-bounded; claimant is the persistent execution session.
    • Parked 1200s; claimant launches the bound opencode session.
  13. dezren39 commented on Nov 11, 2026

    @dezren39
    dezren39
    on Nov 11, 2026
    MemberAuthor
    More actions

    agent-note:v1 lane code-h task 8700 state: done (already_done). The notification engine for #3317 landed on main via PR #7193 (merged 2026-11-08T23:18Z, opened by branch disposition from this tasks branch queue/8700-3317-notification-engine). Verified fresh on origin/main 63c5897 at 2026-11-11T00:47Z: buildNotificationCandidates + decideNotification (dedupe fingerprint, 6h cooldown, quiet-hours digest), durable digest queue with queue-cancelled on acted/state-exit, needs-drew escalation ladder (24h digest-only, 48h breakthrough, weekly digest), JsonlNotificationHistory notifications.jsonl store, and production sole-door classifier deriveSoleDoorPoolIds wired in server.ts live snapshot. Test evidence on main: bun test test/notifications.test.ts test/alerts.test.ts test/digest.test.ts - 88 pass, 0 fail. Note: commit 3c2a69e on the task branch duplicates mains landed sole-door classifier and must NOT be PRd; the branch is superseded. Closing #3317 as complete; the #3316 subscription-store remainder stays with #3316 per the packet scope.

  14. dezren39
    closed this as completedon Nov 11, 2026
  15. dezren39
    added
    status/done
    and removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @dezren39
    dezren39

Labels

app/pm-stackpm-stack (Pad/Grist) in developing-today/codekind/featureNew feature or capability requestpriority/normalOrdinary priority (the default)source/creatorFiled by the new-issue-creator jobstatus/donetask/triageQueue packet kind: verify, reproduce, and route this item

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.