Skip to content

feat(relay): timestamp receiver diagnostic events and support safe attempt correlation #172

Closed

Description

@abruption

Summary

The opt-in receiver lifecycle events (device serve --diagnostic-events) have no event timestamp and no correlation key. During the RC4 campaign (#164), a single no_authenticated_route (stage peer_connect, received close 1001) could not be attributed. Relay room events in journald have timestamps, but receiver events (for example keepalive 1011 sent or relay_websocket timeout) could only be ordered by file position, and an external wrapper could only add the time a line was observed.

Proposal

  • Add a UTC millisecond event time to each receiver lifecycle event.
  • Consider a random, per-attempt correlation ID that is generated by the client and echoed only in metadata events on the client, Relay and receiver. It must not be derived from identities, room names or request contents. Design and privacy review first.
  • Keep events opt-in, metadata-only and allowlisted.

Acceptance

  • Tests assert the event time format and that no identity, room, URL, header, credential or payload appears.
  • An operator can match one failed client attempt to at most one Relay room and one receiver leg when the evidence exists, and can mark it unattributed otherwise.

Activity

  1. added this to the v1.0.1 milestone on Sep 24, 2026
  2. changed the title [-]feat(relay): let macOS/Linux receivers locate or pin the Codex executable explicitly[/-] [+]feat(relay): timestamp receiver diagnostic events and support safe attempt correlation[/+] on Sep 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions