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 — id(chat): presence heartbeat protocol over gossip (ephemeral, TTL-based) · Issue #2809 · developing-today/code

id(chat): presence heartbeat protocol over gossip (ephemeral, TTL-based) #2809

New issue
Copy link
New issue
Copy link
Closed
Closed
id(chat): presence heartbeat protocol over gossip (ephemeral, TTL-based)#2809
Copy link
Assignees
dezren39
Labels
app/idPackage/app: id (pkgs/ or apps/ in this repo)effort/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)task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

Description

@dezren39
dezren39
opened on Oct 30, 2026
Issue body actions

Follow-up from the IRC-first chat investigation (#2049, doc in PR #2807 §2.4; synthesis consumer #2051).

Build: presence as specified: per-node {node-id, channels[], status, ts} heartbeats over direct connections fanned out via the already-wired gossip ALPN, short TTL (60–90 s suggested), stale = gone, no leave messages. Roster = backing-group fold annotated with last-seen liveness. Presence is NEVER journaled, synced, or replayed.

Done when: two nodes show each other live/stale correctly across a simulated netsplit (kill -STOP / resume), and typing-indicator TTLs ride the same path. Hand the result to #2051.

Acceptance criteria

  • Two nodes exchange presence heartbeats ({node-id, channels[], status, ts}) over direct connections fanned out via the already-wired gossip ALPN, with a short TTL (60–90 s suggested); stale entries read as gone; no leave messages.
  • Roster = backing-group fold annotated with last-seen liveness, demonstrated across a simulated netsplit (kill -STOP / resume): both nodes show each other live, then stale, then live again correctly.
  • Presence is never journaled, synced, or replayed (verified in the implementation); typing-indicator TTLs ride the same path.
  • Result handed to the synthesis consumer id: design: ID chat v1 #2051.

Activity

Next
  1. dezren39
    added
    priority/normalOrdinary priority (the default)
    app/idPackage/app: id (pkgs/ or apps/ in this repo)
    on Oct 30, 2026
  2. github-actions
    assigned
    dezren39
    on Oct 30, 2026
  3. dezren39
    added
    kind/featureNew feature or capability request
    status/needs-triageNot yet triaged; needs a first look
    effort/mMedium: expected under 1 day of work
    meta/enrichedIntake review done: acceptance criteria, links, and normalized labels added
    on Oct 31, 2026
  4. dezren39 commented on Oct 31, 2026

    @dezren39
    dezren39
    on Oct 31, 2026
    MemberAuthor
    More actions

    Intake review

    • Related: investigation id: investigate: IRC-first chat on ID — channels, graph-linked objects, presence #2049 (doc in PR docs: IRC-first chat on ID investigation (#2049) #2807 §2.4), synthesis consumer id: design: ID chat v1 #2051 (OPEN), sibling PoC id(chat): PoC — two CLI nodes exchanging channel frames with a blob link #2808.
    • Notes: Spec is unusually complete for a follow-up (heartbeat shape, TTL range, roster definition, the never-journal rule). The body's "Done when" is formalized into the acceptance criteria section. Still live — no presence implementation has landed.
    • Risks: The failure mode to test hardest is the netsplit: stale detection must not flap on resume, and presence must stay out of the journal/sync path.
    • Suggested approach: Build directly to the §2.4 spec on the existing gossip ALPN; the kill -STOP/resume transcript is the verification artifact.
  5. dezren39
    added
    queue/queuedHas a queued queue task
    task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests
    on Nov 1, 2026
  6. dezren39 commented on Nov 1, 2026

    @dezren39
    dezren39
    on Nov 1, 2026
    MemberAuthor
    More actions

    🤖 Agent note · handed off

    • Agent: queue worker (repo-worker-code), openchamber-scheduled-lane
    • Session / ID: task 5799
    • Found via: id: design: ID chat v1 #2051 synthesis queue triage
    • Task: Implement ephemeral channel presence with bounded TTL and roster liveness, without journaling or syncing it.
    • Expectation: effort/m; simulated netsplit stop/resume transcript, stale expiry, and typing TTL on the same path.
    • Links: queue task 5799; parent design id: design: ID chat v1 #2051; bridge constraints id: investigate: bridge semantics — hosted (HTTPS/WS) edition syncing with native Iroh nodes #2058
  7. dezren39
    added
    work/assignedQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    and removed
    status/needs-triageNot yet triaged; needs a first look
    on Nov 1, 2026
  8. 19 remaining items

  9. dezren39
    added
    queue/claimedQueue worker lifecycle state
    status/in-progressQueue worker lifecycle state
    on Nov 1, 2026
  10. dezren39 commented on Nov 1, 2026

    @dezren39
    dezren39
    on Nov 1, 2026
    MemberAuthor
    More actions

    agent-note:v1

    • task: 5799
    • state: picked up (lane E resume)
    • branch: queue/5799-2809-id-chat-presence
    • worktree: ~/git/fleet/5799 (laptop)
    • note: Resumed from prior park (clean at ec305bf, zero implementation). Revalidated fresh: issue id(chat): presence heartbeat protocol over gossip (ephemeral, TTL-based) #2809 OPEN, no held/user-owned/do-not-merge/do-not-auto-edit labels, no open PR for id(chat): presence heartbeat protocol over gossip (ephemeral, TTL-based) #2809. Implementing presence protocol per acceptance.
  11. dezren39
    added 7 commits that reference this issue on Nov 1, 2026

    fix(id): brace the presence/announcement receive branch (#2809)

    a9a8de6

    fix(id): brace the presence/announcement receive branch; fmt chat_pre…

    90ac873

    fix(id): dedupe heartbeat channels without moving the input; no expec…

    2fefe9b

    fix(id): Codex review - authenticate presence sender, stamp-based exp…

    e9a269f

    fix(id): sign presence heartbeats - gossip does not authenticate auth…

    38a8b73

    fix(id): serve signs its presence heartbeat and verifies received ones (

    28fd01c

    Merge pull request #3956 from developing-today/queue/5799-2809-id-cha…

    628436e
  12. dezren39 commented on Nov 1, 2026

    @dezren39
    dezren39
    on Nov 1, 2026
    MemberAuthor
    More actions

    agent-note:v1

    • task: 5799
    • state: done (fixed_merged)
    • pr: feat(id): chat presence heartbeat protocol over gossip (#2809) #3956 — merged 628436e
    • note: Presence protocol implemented as specified. pkgs/id/src/chat_presence.rs: signed per-node {node, channels[], status, ts} heartbeats, 75 s TTL (60–90 s band), no leave messages, stamp-based expiry (replays cannot extend a claim), roster = backing-group fold annotated with last-seen liveness, receipt-side membership filtering + viewer-scoped rosters for private channels, typing on a 12 s TTL over the same path. The table is in-memory only — never journaled, synced, or replayed. serve broadcasts/verifies presence frames on the existing gossip ALPN. Codex round (3 P2 findings: authentication, duplicate-extended expiry, pruning) fixed and replied on the PR threads.
    • tests: laptop cargo test -p id chat_presence — 10 passed, 0 failed (TTL, two-node stop/resume frame exchange, roster annotation, private-channel scoping, typing TTL, replay/out-of-order refusal, duplicate-expiry, signature authentication, frame magic, memory-only).
    • handoff: result handed to id: design: ID chat v1 #2051 (comment there). Pre-existing unrelated failure found on main: id-core test target does not compile (vt100 used in world_presentation tests, not an id-core dev-dependency after the crate split).
  13. dezren39
    closed this as completedon Nov 1, 2026
  14. dezren39
    removed
    status/in-progressQueue worker lifecycle state
    queue/claimedQueue worker lifecycle state
    work/assignedQueue worker lifecycle state
    on Nov 1, 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/idPackage/app: id (pkgs/ or apps/ in this repo)effort/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)task/small-fixQueue packet kind: bounded fix with reproduction and targeted tests

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.