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 — impl(aggregator): add replayable freshness SSE and JSON twin · Issue #3978 · developing-today/code

impl(aggregator): add replayable freshness SSE and JSON twin #3978

New issue
Copy link
New issue
Copy link
Closed
#8241
Closed
impl(aggregator): add replayable freshness SSE and JSON twin#3978
#8241
Copy link
Assignees
dezren39
Labels
app/pm-stackpm-stack (Pad/Grist) in developing-today/codeeffort/mMedium: expected under 1 day of workkind/featureNew feature or capability requestmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/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

Part of epic #1184; design #1252. Design record: doc/2026-11-01T21-05-00Z_design_event_driven_freshness/2026-11-01T21-05-00Z_design_event_driven_freshness.md.

Add the browser delivery layer for the freshness invalidation journal from the source-outbox child of #1184. This is distinct from the /events audit/activity river in #1739/#1261: use /freshness/stream and /api/freshness-events.json, and do not create or expose activity history here.

Acceptance:

  • A long-lived GET /freshness/stream uses SSE/EventSource and the existing Datastar patch format to refresh only the affected open page/facets; dashboard mutations continue through their existing POST routes (no WebSocket).
  • Events have journal sequence IDs; reconnect honors Last-Event-ID, replays retained notices, and asks the client for a complete refresh when the cursor is older than the bounded journal.
  • A heartbeat keeps idle connections alive; clients coalesce invalidations while rendering and reread canonical data instead of trusting notice payloads.
  • GET /api/freshness-events.json?after=&scope= exposes the same versioned envelope, cursor, reset state, and source health for machine clients; existing /api/*.json endpoints remain canonical.
  • Scope is server-derived/allow-listed and uses the same browser authorization as the page. No source payload, secret, caller-supplied actor, or token-in-URL is accepted.
  • Tests cover scope filtering, patch delivery, reconnect/replay, reset/full-refresh, heartbeat, JSON/SSE envelope parity, and unauthorized access.

External browser access follows #1182; do not broaden the Access policy in this issue.

Activity

Next
  1. dezren39
    added
    kind/featureNew feature or capability request
    status/needs-triageNot yet triaged; needs a first look
    priority/normalOrdinary priority (the default)
    effort/mMedium: expected under 1 day of work
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    app/pm-stackpm-stack (Pad/Grist) in developing-today/code
    on Nov 1, 2026
  2. dezren39 commented on Nov 1, 2026

    @dezren39
    dezren39
    on Nov 1, 2026
    MemberAuthor
    More actions

    🤖 Agent note · state: filed / parent-link blocked

    • Agent: queue worker (repo-worker-code), OpenChamber scheduled lane
    • Session / ID: OpenCode session ses_e5e671686ccffeQbtUrJqbsWZM, design task 4942
    • Handoff: Five-minute freshness reconciliation, fallback, and health UX from design design(pm-stack): event-driven freshness — replace the 5-minute polling feed with push (webhooks + SSE/WebSocket), polling as reconciliation only #1252; intended under epic epic(dashboard): PM stack coherence - single-URL, fresh data, triage-able, hierarchical #1184.
    • Blocker: GitHub rejects native child linkage because epic(dashboard): PM stack coherence - single-URL, fresh data, triage-able, hierarchical #1184 has 100 sub-issues (HTTP 422). The body references design(pm-stack): event-driven freshness — replace the 5-minute polling feed with push (webhooks + SSE/WebSocket), polling as reconciliation only #1252/epic(dashboard): PM stack coherence - single-URL, fresh data, triage-able, hierarchical #1184, but this issue is not yet a native child. No existing child was moved; resume linkage after Drew selects the hierarchy.
  3. github-actions
    assigned
    dezren39
    on Nov 1, 2026
  4. dezren39
    added
    queue/queuedHas a queued queue task
    source/creatorFiled by the new-issue-creator job
    task/triageQueue packet kind: verify, reproduce, and route this item
    on Nov 3, 2026
  5. 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

  6. dezren39 commented on Nov 3, 2026

    @dezren39
    dezren39
    on Nov 3, 2026
    MemberAuthor
    More actions

    🤖 Agent note · picked up

    • Agent: queue worker (repo-worker-code), OpenChamber scheduled lane
    • Session / ID: OpenCode session ses_e5e5d0089abffeESkh4gjA8pWE, task 8314, lane bf419306-c4ef-470f-a553-beabf93239de
    • Task: Triage impl(aggregator): add replayable freshness SSE and JSON twin #3978 at current main; verify current issue and related PR state, then identify whether the work remains live and appropriately scoped.
    • Next: Inspect linked PRs and current main, then post the triage outcome.
  7. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    on Nov 3, 2026
  8. 102 remaining items

  9. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    🤖 Agent note · PR opened — lane code-u, task 12672 (small_fix, issue #3978). Dependency revalidated fresh: issue #3977 is CLOSED and its journal is on main (src/freshness.ts + src/freshness-ipc.ts), so the packet's park condition no longer applies. Resumed an earlier lane's uncommitted implementation in worktree ~/git/fleet/12672 (freshness-delivery.ts, server.ts mount, 19 tests), reviewed it against the acceptance, and fixed a real cursor bug it carried: the after cursor was ignored on the JSON twin and on headerless streams (both resumed from 0); two regression tests now cover both. PR #8241: #8241 — bun freshness tests 30/30 pass; tsc shows only pre-existing errors in unrelated files. Next: CI on PR #8241, then merge under the standing criteria.

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

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    🤖 Agent note · parked (CI wait) — lane code-u, task 12672 (small_fix, issue #3978). Parked as a broker CI wait (wait_kind=ci, ready-condition: CI on PR #8241). PR #8241 head a266901; local bun freshness tests 30/30 pass. Resume: when CI completes on PR #8241, disposition any Codex threads, merge under the standing criteria, close out issue #3978, and complete task 12672 with outcome fixed_merged.

  12. dezren39
    added a commit that references this issue on Nov 10, 2026

    test(aggregator): classify /freshness/stream as a non-page machine en…

    882391c
  13. dezren39 commented on Nov 10, 2026

    @dezren39
    dezren39
    on Nov 10, 2026
    MemberAuthor
    More actions

    state: done
    task: 12672
    lane: code-b (direct, #8187)
    issue: #3978
    pr: #8241

    Shepherd close-out (2026-11-10, lane code-b): PR #8241 merged. Dependency #3977 is CLOSED. Verification on the laptop:

    • The feature's own tests: bun test test/freshness-delivery.test.ts — 21 pass, 0 fail. tsc reports no errors in the PR's files.
    • One PR-caused failure found and fixed by this lane: test/nav.test.ts "no HTML route is orphaned" failed on the branch (passes on main) because the new /freshness/stream SSE endpoint matched neither the pages manifest nor the NON_PAGE taxonomy. Fix commit 882391c classifies the stream as a non-page machine endpoint (the /quota/refresh precedent; the path is pinned by the feature's own tests, so renaming was not an option). nav + freshness suites now 32 pass, 0 fail.
    • Remaining full-suite failures were controlled against main: test/board-in-flight.test.ts + test/program.test.ts fail identically on clean main (35 pass / 2 fail both trees — pre-existing fixture drift), and the rest of the full-run red was 5s timeouts under heavy parallel load in unrelated areas.
    • Codex posted no review on PR feat(aggregator): replayable freshness SSE and JSON twin (#3978) #8241 — no findings to disposition.

    Merged under standing authority (merge when verified; CI runs on main).

  14. dezren39
    added a commit that references this issue on Nov 10, 2026

    Merge pull request #8241 from developing-today/queue/12672-3978-fresh…

    b2d8352
  15. dezren39
    closed this as completedin #8241on Nov 10, 2026
  16. dezren39
    added
    status:done
    and removed
    status/parkedDeliberately paused with a recorded resume condition
    queue/parkedQueue task is parked (waiting on CI, time, or an event)
    work/assignedQueue worker lifecycle state
    on Nov 10, 2026
  17. dezren39
    added a parent issue on Nov 17, 2026
    • design(pm-stack): event-driven freshness — replace the 5-minute polling feed with push (webhooks + SSE/WebSocket), polling as reconciliation only #1252
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/codeeffort/mMedium: expected under 1 day of workkind/featureNew feature or capability requestmeta/enrichedIntake review done: acceptance criteria, links, and normalized labels addedpriority/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.