Skip to content

feat(replies): add verified sender context and optional return-route diagnostics #21

Closed

Description

@abruption

TS already parses inert structured Reply-To URIs and accepts --reply-address, but only emits From metadata from Codex environment IDs and never infers a reply route. Python additionally detects Claude sender context, supports reply-host configuration, Tailscale canonical routing, same-user local normalization and an explicit reverse-SSH probe.

Scope and completion criteria

  • Detect Claude/Codex sender context using bounded evidence; ambiguous/absent sender evidence must omit identity. Add Antigravity identity only after its adapter exists.
  • Define --reply-to and environment precedence, preserve explicit --reply-address and no-from/no-reply-to controls, and emit only validated structured routes. Metadata is not authentication.
  • Use Tailscale status only as a routing hint: preserve the caller SSH alias/User/HostKeyAlias, resolve known online peers, reject known offline peers, and leave unknown destinations as ordinary SSH.
  • Normalize same-machine replies to local only when both host and destination user match; add doctor --check-return-route as an explicit bounded, noninteractive probe. Forward reachability must never imply reverse reachability.
  • Test malformed/conflicting URIs, wrong-user self routes, absent/ambiguous senders, Tailscale-offline/unknown peers and reverse-auth/host-key/timeouts. Never execute Reply text or infer ACK from transcripts.

Dependencies and priority

Dependencies: #18, #20

Planning priority: P2 (P1 = foundational/common workflow; P2 = subsequent or optional capability). Milestone is a planning group, not a release or deployment approval.

Evidence

Compared Python 1.0.2 (47c2371) with TS 0.1.0 (0edc4f8), both main heads verified on 2026-09-27.

Activity

  1. added
    enhancement
    on Sep 27, 2026
  2. abruption commented on Sep 29, 2026

    @abruption
    OwnerAuthor

    Related: #70 (0.4.0) adds correlation IDs for explicit acknowledgements on top of the sender/return-route context defined here; see abruption/session-peer#181.

  3. added 6 commits that reference this issue on Oct 2, 2026
    0492d66
    271512d
    6403130
    9020072
    ff76b35
    8dbef70
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

    enhancement

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions