GeezerVison is showing github.com — design(pm-stack): event-driven freshness — replace the 5-minute polling feed with push (webhooks + SSE/WebSocket), polling as reconciliation only · Issue #1252 · developing-today/code
design(pm-stack): event-driven freshness — replace the 5-minute polling feed with push (webhooks + SSE/WebSocket), polling as reconciliation only #1252Closed 3 / 33 of 3 issues completedClosed 3 / 33 of 3 issues completed DescriptionPart of epic #1184 (PM stack coherence — ideal-system design series, 2026-10-26).
Why
Today the aggregator learns about the world from a fleet feed a sandbox collector republishes roughly every 5 minutes, and a stale feed renders indefinitely — freshness is bounded by the poll, and failures are silent until someone notices. An ideal stack is event-driven: GitHub webhooks and local service events push state changes to the aggregator, which pushes them to open browsers in seconds; polling survives only as a reconciliation backstop that proves the push path hasn't missed anything.
Design questions to answer
- Which event sources are in scope v1 (GitHub webhooks via the existing App/tunnel, Kaneo webhooks, collector-local events, orchestration publishes) and what is the delivery path for each?
- Transport to the browser: SSE vs WebSocket, per-page subscriptions, and how the machine-first JSON twins expose the same stream?
- Ordering, dedupe, and replay: how does a reconnecting client catch up, and how does reconciliation detect a missed event?
- Failure posture: when push is down, how is that surfaced (health page, freshness chips) and what poll interval is the fallback?
- Auth: how are webhook signatures and browser subscriptions authenticated under the single-URL/Access model (design(pm-stack): one public URL for the dashboard behind Cloudflare Access (settled access model, not yet implemented) #1182)?
Acceptance
Acceptance criteria
Sub-issuesCollapse Sub-issuesSub-issues3 of 33 of 3 Issues completedLoading 3 sub-issues Activitydeveloping-today commented on Oct 27, 2026 dezren39 commented on Oct 28, 2026 Intake review
Related: epic #1184 (parent) · #1182 (Access model — webhook and subscription auth answers depend on it) · #1110 (the orchestration-section rejection, part of the freshness-honesty problem this redesigns).
Notes: Still live — verified this run: no merged PR introduces webhooks/SSE freshness; merged-PR searches return only unrelated number coincidences. The issue arrived with a ## Acceptance section; the appended ## Acceptance criteria formalizes it. effort/m for the design pass (implementation is separate follow-up work).
Risks / suggested approach: Design-only deliverable in this issue: the acceptance bar is the landed design note plus filed, linked implementation issues — per the standing rule, a design with no implementation link is not finished work. The reconciliation design is the load-bearing part — push without a missed-event detector recreates today's silent-staleness failure with better latency.
— repo-fleet-monitor intake pass, 2026-10-28T03:55Z dezren39 commented on Nov 14, 2026 Gate cleared — Drew answered (dropped-thread-catcher, Step 2C application, 2026-11-14).
Evidence: decisions-page set decisions-chat-2026-11-14-1028, answered 2026-11-14T16:40:36Z — ledger item subissue-parent-1252 closed as answered: "Authorize restructuring under #1184", with Drew's guidance: "Review all the work under this issue number and the other work in the repo, and restructure. I believe you can make nests, so figure out the logical structure and make smaller parents. Then group up the parents into larger issues, and continue repeating that until you have whatever depth-and-width tree of issues you need to adequately represent the true nature of the work in the repo." Ledger read-back by the catcher confirms status answered with the resolution and guidance recorded.
Unblock: the gate task 4942 already completed (2026-11-14T13:58Z), so no queue task remained to release; the Drew gate itself is cleared. Labels synced: status/blocked, queue/blocked and user/escalated removed. The restructuring work Drew authorized is the follow-on for triage/orchestration routing — it is not blocked on Drew anymore. dezren39 commented on Nov 17, 2026 🤖 Agent note · triaged — gate answered, restructuring routed, closing (task 18099, queue repo-health-code-pilot, lane code-a)
- Pickup: claimed task 18099 this shift; fresh revalidation of issue design(pm-stack): event-driven freshness — replace the 5-minute polling feed with push (webhooks + SSE/WebSocket), polling as reconciliation only #1252 below. No held, user/owned, do-not-merge, or do-not-auto-edit labels, and no blocked/escalated labels remain (they were removed when the gate cleared).
- Verdict: this issue's own work is DONE; its one gated clause was answered by Drew and is now routed — closing. Fresh read 2026-11-17: issue design(pm-stack): event-driven freshness — replace the 5-minute polling feed with push (webhooks + SSE/WebSocket), polling as reconciliation only #1252 OPEN, unchanged since 2026-11-14T17:46Z.
- Acceptance, element by element: the design note landed in
doc/ (doc/2026-11-01T21-05-00Z_design_event_driven_freshness/, via PR docs(pm-stack): salvage event-driven freshness design from archive PR #7382 (#7297) #7940) answering the design questions, with Drew's open questions named; the implementation issues impl(pm-stack): reconcile freshness gaps and surface push health #3976, impl(pm-stack): publish durable freshness invalidations from verified sources #3977, impl(aggregator): add replayable freshness SSE and JSON twin #3978 were filed and are all CLOSED, with the implementation on main (pm-stack/aggregator/src/freshness.ts, freshness-delivery.ts — SSE stream + JSON twin, freshness-reconcile.ts, freshness-fallback.ts) — all verified by task 4942's done note (comment 6878333022, 2026-11-14, already_done). The one clause that could not be satisfied literally — native sub-issue linking of impl(pm-stack): reconcile freshness gaps and surface push health #3976–impl(aggregator): add replayable freshness SSE and JSON twin #3978 under epic epic(dashboard): PM stack coherence - single-URL, fresh data, triage-able, hierarchical #1184, which sits at GitHub's 100 sub-issue cap — was the subject of ledger item subissue-parent-1252.
- The gate is answered: Drew's 2026-11-14 decision (comment 6881676517) authorized restructuring under epic(dashboard): PM stack coherence - single-URL, fresh data, triage-able, hierarchical #1184 — make nests of smaller parents, group them upward into a depth-and-width tree representing the work. That answer supersedes the literal linking clause.
- Routing (the part that was missing): the gate-cleared note said the restructuring "is the follow-on for triage/orchestration routing", but a fresh search this shift found no restructuring issue or task filed. It is now enqueued as task 19469 in repo-health-code-pilot (small_fix, dedupe key
repo-health:v1:fix:developing-today/code:issue:1252, dedupe-checked at enqueue — broker revived the key from done task 4942): audit epic(dashboard): PM stack coherence - single-URL, fresh data, triage-able, hierarchical #1184's sub-issues, nest the design(pm-stack): event-driven freshness — replace the 5-minute polling feed with push (webhooks + SSE/WebSocket), polling as reconciliation only #1252 freshness family (impl(pm-stack): reconcile freshness gaps and surface push health #3976–impl(aggregator): add replayable freshness SSE and JSON twin #3978) under a smaller parent as the pilot, continue grouping by family, and record the tree on epic epic(dashboard): PM stack coherence - single-URL, fresh data, triage-able, hierarchical #1184, which stays OPEN as the program home.
- Disposition: issue design(pm-stack): event-driven freshness — replace the 5-minute polling feed with push (webhooks + SSE/WebSocket), polling as reconciliation only #1252 closes with this note — its design and implementation are landed and its gated clause is answered and routed. The restructuring itself is tracked by task 19469 under epic epic(dashboard): PM stack coherence - single-URL, fresh data, triage-able, hierarchical #1184.
dezren39 commented on Nov 17, 2026
Agent note — freshness family nested under this issue (lane any-j, task 19469)
Per Drew's 2026-11-14 authorization on this issue: the implementation issues #3976, #3977, and #3978 are now native sub-issues of #1252 (verified via the sub-issues API after linking), forming the nest #1184 → #1252 → #3976/#3977/#3978. This satisfies the intent of the acceptance clause that the 100 sub-issue cap on #1184 had made literally unsatisfiable. The tree is recorded on epic #1184.
MetadataMetadataDevelopmentNo branches or pull requestsIssue actions
|