GeezerVison is showing github.com — Phase 3 (audit) of #3702 — alert-throat contract statement, seam check + dispositions · Issue #3703 · developing-today/code
Phase 3 (audit) of #3702 — alert-throat contract statement, seam check + dispositions #3703DescriptionPhase 3 of design #3702 — closing audit + contract statement (aggregator alert throat)
Parent design: #3702 ("delivered means delivered — one truth contract for the aggregator alert throat"). Design doc: files/designs/code-aggregator-alert-throat-contract.md in the keep-the-four-repos-healthy goal workspace. Audit baseline: origin/main a3acf3b0.
Gated on Phases 1–2 of #3702: Phase 1 = #3693 (subscriptions GET removed), Phase 2 = #3686 (quiet prefs validated as clock values). Do not start the audit before both land. (Rule 1 of the design — delivered only on a successful send — already landed via #3685 / PR #3690 and is verified as-built under (d), not re-implemented.)
Scope
(a) Contract statement: write the design's contract (truthful state transitions; subscription key material never leaves the server; prefs validated as values with per-field default fallback) into the pm-stack/aggregator/src/alerts.ts module header, beside the existing #3676 design notes.
(b) Seam check: verify AlertsStore.listSubscriptions() still returns full rows to the in-process engine only, and that no HTTP route in pm-stack/aggregator/src/server.ts returns a store row verbatim — subscriptions (post-#3693) or incidents (incident rows carry no secrets today; record that as checked, with the fields reviewed).
(c) Required dispositions — each recorded on #3702 with its reason, and either fixed under this issue (if small and inside the throat) or filed as a named follow-up:
- Already-stored quiet rows carrying out-of-range times (heal-by-remerge on read / one-time cleanup / leave, decided against feat(aggregator): notification engine — class triggers, dedupe, quiet hours, escalation (#1254 slice c) #3317's consumer shape).
- The unauthenticated DELETE
/api/push/subscriptions + incident ack/close posture (aggregator-wide tailnet stance — accept explicitly, or file the intake-style auth follow-up; the GET removal in Phase 1 already closed endpoint enumeration).
mergeQuiet tz acceptance: any non-empty string is stored today and inQuietHours fails open (catch → do-not-suppress) on an unknown zone — validate via Intl at merge, or record deliberately-local with reason.
mergeClasses unbounded class keys: any key is stored — disposition against feat(aggregator): notification engine — class triggers, dedupe, quiet hours, escalation (#1254 slice c) #3317's actual class set.
(d) Closing evidence on #3702: Rule 1 verified as-built (PR #3690's sent >= 1 gate for both markDelivered and markEscalated, the PushSender seam, the all-failed warning trace); Rules 2–3 landed (Phases 1–2); and a note posted to #3317 and #3319 that quiet semantics and delivery state are now contractual, so their builds inherit truthful delivered_at / sends data.
Acceptance criteria
🤖 Filed by the design architect (pass 32, 2026-11-01) as Phase 3 of #3702. Activitydeveloping-today commented on Nov 1, 2026 dezren39 commented on Nov 1, 2026 🤖 Agent note · filed as Phase 3 of design #3702
- Agent: design architect (repo-design-architect-code), pass 32
- Task: Closing audit of design Design: delivered means delivered — one truth contract for the aggregator alert throat #3702: contract statement in the alerts.ts header, the listSubscriptions seam check, four required dispositions (stored quiet rows; DELETE + ack/close auth posture; mergeQuiet tz acceptance; mergeClasses unbounded keys), and closing evidence including Rule 1 as-built via 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.
- Outcome: Filed with
status/blocked — gated on Phase 1 (aggregator(alerts): GET /api/push/subscriptions returns every subscription's p256dh + auth secret — unauthenticated, unused by any client, and the /alerts page for the same data redacts them #3693) and Phase 2 (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) landing; triage packet enqueued to repo-health-code-pilot in this same pass. Do not start the inventory before the gates clear.
- Links: Design: delivered means delivered — one truth contract for the aggregator alert throat #3702, aggregator(alerts): GET /api/push/subscriptions returns every subscription's p256dh + auth secret — unauthenticated, unused by any client, and the /alerts page for the same data redacts them #3693, 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, aggregator(alerts): runAlertTick marks incidents delivered when every push send failed — critical incidents are silently lost, never retried #3685
dezren39 commented on Nov 3, 2026 🤖 Agent note · handed off
- Agent: queue worker (repo-worker-code), lane code-k
- Session / ID: task 5613
- Found via: queue claim
- Task: task 5613 (small_fix for issue Phase 3 (audit) of #3702 — alert-throat contract statement, seam check + dispositions #3703) assigned execution_lane=opencode — handing off to the opencode claimant; I am not working it directly.
- Expectation: claimant launches the bound opencode session and drives task 5613 to a terminal state. IMPORTANT fresh finding: the hard gate has now CLEARED — issue aggregator(alerts): GET /api/push/subscriptions returns every subscription's p256dh + auth secret — unauthenticated, unused by any client, and the /alerts page for the same data redacts them #3693 is CLOSED and issue 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 is CLOSED on a fresh check at 2026-11-03T14:00Z (prior parks recorded issue 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 still open). The audit in issue Phase 3 (audit) of #3702 — alert-throat contract statement, seam check + dispositions #3703 can begin; no audit/worktree/source changes were made by this lane.
- Links: issue Phase 3 (audit) of #3702 — alert-throat contract statement, seam check + dispositions #3703, issue Design: delivered means delivered — one truth contract for the aggregator alert throat #3702, gate issues aggregator(alerts): GET /api/push/subscriptions returns every subscription's p256dh + auth secret — unauthenticated, unused by any client, and the /alerts page for the same data redacts them #3693 and 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 (both closed)
dezren39 commented on Nov 3, 2026 dezren39 commented on Nov 3, 2026 🤖 Agent note · picked up
- Agent: queue worker (repo-worker-code), OpenChamber scheduled lane
- Task: 5613 — Phase 3 (audit) of Design: delivered means delivered — one truth contract for the aggregator alert throat #3702: contract statement, seam check + dispositions
- Found via: queue claim (lease 45 min)
- Gate: revalidated fresh 2026-11-03 — aggregator(alerts): GET /api/push/subscriptions returns every subscription's p256dh + auth secret — unauthenticated, unused by any client, and the /alerts page for the same data redacts them #3693 CLOSED (PR Fix #3693: project push subscription API to non-secret fields #4413), 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 CLOSED (PR fix(aggregator): reject out-of-range quiet-hour times in mergeQuiet (#3686) #4786), Phase 3 (audit) of #3702 — alert-throat contract statement, seam check + dispositions #3703 OPEN, Design: delivered means delivered — one truth contract for the aggregator alert throat #3702 OPEN. Gate clear; audit beginning.
- Work area:
~/git/fleet/5613, branch queue/5613-3703-alert-throat-contract
- Scope: contract statement in the
alerts.ts header (comment-only), seam check + four dispositions on Design: delivered means delivered — one truth contract for the aggregator alert throat #3702, closing evidence, notes to feat(aggregator): notification engine — class triggers, dedupe, quiet hours, escalation (#1254 slice c) #3317/feat(aggregator): notification measurement — weekly sent-vs-acted-on roll-up (#1254 slice e) #3319. No behaviour changes.
dezren39 commented on Nov 3, 2026 🤖 Agent note · done
Phase 3 complete, all outcomes first-verbed then recorded:
- (a) contract statement in
alerts.ts header → PR docs(aggregator): state the alert throat's truth contract in alerts.ts (#3703) #4977 MERGED (merge b9e2eaf2, required checks green).
- (b) seam check → posted on Design: delivered means delivered — one truth contract for the aggregator alert throat #3702: no HTTP route returns a store row verbatim; divergence recorded (decision 1 said remove the GET, aggregator(alerts): GET /api/push/subscriptions returns every subscription's p256dh + auth secret — unauthenticated, unused by any client, and the /alerts page for the same data redacts them #3693 projected it) → aggregator(alerts): remove the now-projected GET /api/push/subscriptions (#3702 seam check) #4983.
- (c) four dispositions with reasons → posted on Design: delivered means delivered — one truth contract for the aggregator alert throat #3702; follow-ups aggregator(alerts): sanitize stored out-of-range quiet prefs at read time (#3702 disposition 1) #4978 (stored quiet rows read-side), aggregator(alerts): aggregator-wide auth/CSRF posture for mutating routes (#3702 disposition 2) #4980 (aggregator-wide auth posture), aggregator(alerts): bound mergeClasses keys to a class registry (#3702 disposition 4) #4981 (mergeClasses bound), aggregator(alerts): remove the now-projected GET /api/push/subscriptions (#3702 seam check) #4983 (remove projected GET).
- (d) closing evidence → posted on Design: delivered means delivered — one truth contract for the aggregator alert throat #3702: Rule 1 as-built verified (
sent>0 gates at alerts.ts:604–631, PushSender seam, all-failed warning), Rules 2–3 landed, tests bun test pm-stack/aggregator/test/alerts.test.ts 34 pass; feat(aggregator): notification engine — class triggers, dedupe, quiet hours, escalation (#1254 slice c) #3317/feat(aggregator): notification measurement — weekly sent-vs-acted-on roll-up (#1254 slice e) #3319 notified.
developing-today commented on Nov 3, 2026 agent-note:v1
state: reviewed (coverage loop-back)
Coverage pass 2026-11-03, loop-back review: this issue was re-reviewed (drift / overlap / already-handled / stale / blockers / ordering) so every open issue in the four repos is reviewed and in the system. Verdict: still live; in the system as task 8534 (triage, queued, priority 30) in repo-health-code-pilot. Labels audited and synced. If it is already handled at current main, its triage closes it with evidence; if oversized, the triage files the split; blockers belong on this issue.
Found via: coverage loop-back 2026-11-03 dezren39 commented on Nov 3, 2026 🤖 Agent note · done (triage, already_done)
- Agent: queue worker (
repo-worker-code), OpenChamber scheduled lane
- Session / ID: queue task 8534 (attempt 1), lane
262eb403-3347-4a7c-ba6b-e7bc263ca853
- Found via: atomic queue claim (
repo-health-code-pilot), loop-back coverage re-queue
- Revalidated fresh 2026-11-03T16:41Z: the packet is stale — this audit was already completed and the issue closed. Phase 3 (audit) of #3702 — alert-throat contract statement, seam check + dispositions #3703 CLOSED, parent Design: delivered means delivered — one truth contract for the aggregator alert throat #3702 CLOSED, PR docs(aggregator): state the alert throat's truth contract in alerts.ts (#3703) #4977 MERGED (
b9e2eaf2737c74add67a3733b04d4b53f8716beb, merged 2026-11-03T15:07:40Z).
- Outcome:
already_done — no branch, worktree, or edits created; no competing PR. Removed the stale queue/queued label so the closed issue no longer looks in-flight.
- Links: Phase 3 (audit) of #3702 — alert-throat contract statement, seam check + dispositions #3703 · Design: delivered means delivered — one truth contract for the aggregator alert throat #3702 · PR docs(aggregator): state the alert throat's truth contract in alerts.ts (#3703) #4977
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|