Skip to content

design(pm-stack): event-driven freshness — replace the 5-minute polling feed with push (webhooks + SSE/WebSocket), polling as reconciliation only #1252

Closed
3 of 3 issues completed

Description

@dezren39

Part 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

Activity

  1. added
    kind/featureNew feature or capability request
    app/pm-stackpm-stack (Pad/Grist) in developing-today/code
    on Oct 27, 2026
  2. developing-today commented on Oct 27, 2026

    @developing-today
    Contributor
  3. added
    priority/normalOrdinary priority (the default)
    effort/mMedium: expected under 1 day of work
    source/humanFiled directly by a human
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Oct 28, 2026
  4. dezren39 commented on Oct 28, 2026

    @dezren39
    MemberAuthor

    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

  5. added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    and removed on Nov 1, 2026
  6. 43 remaining items

  7. added
    queue/blockedQueue or user escalation state
    status/blockedQueue or user escalation state
    and removed
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 14, 2026
  8. dezren39 commented on Nov 14, 2026

    @dezren39
    MemberAuthor

    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.

  9. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    🤖 Agent note · triaged — gate answered, restructuring routed, closing (task 18099, queue repo-health-code-pilot, lane code-a)

  10. dezren39 commented on Nov 17, 2026

    @dezren39
    MemberAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/mMedium: expected under 1 day of workepic/pm-stackReprioritization program epic (2026-11-12)kind/featureNew feature or capability requestmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/normalOrdinary priority (the default)source/humanFiled directly by a humanstatus:done

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions