Skip to content

feat: identify sender agents and verify tailnet hosts - #58

Merged
abruption merged 2 commits into
mainfrom
feat/57-sender-agent-magicdns
Sep 15, 2026
Merged

abruption merged 2 commits into
mainfrom
feat/57-sender-agent-magicdns

Conversation

@abruption

@abruption abruption commented Sep 15, 2026 •

Copy link
Copy Markdown
Owner

Summary

Messages sent from Codex previously omitted a usable sender identity, and SSH-backed commands did not verify a known Tailscale peer's current MagicDNS name. This change emits agent-qualified From: and reply targets for Claude and Codex, resolves known online peers through tailscale status --json, and routes SSH to the verified FQDN while preserving the caller's SSH config alias and host-key lookup.

The test modules now live under tests/, with CI and local discovery updated accordingly. Root-level session_peer.py, install.sh, and the frozen compatibility cc_peer.py remain in place because raw installs, self-update URLs, packaging, and migration compatibility treat them as public paths.

Closes #57

Type

  • feat
  • fix
  • docs
  • chore / refactor / test / perf

Checklist

  • python3 session_peer.py list --agent codex works locally
  • python3 session_peer.py list --host <Tailscale IP> works over SSH
  • --dry-run resolves the current Codex thread without posting anything
  • Commits follow Conventional Commits
  • Docs updated for the changed behavior
  • No secrets, tokens, session contents, or tailnet names are included in the diff

Validation

  • python3 -m unittest discover -s tests — 174 passed after merging current main
  • python3 -m unittest discover — 174 passed
  • python3 -m compileall -q cc_peer.py session_peer.py tests
  • uv build — wheel and sdist built successfully
  • Local Codex list and explicit-home current-thread dry-run succeeded with submitted: false
  • Read-only remote list by Tailscale IP succeeded through the verified MagicDNS HostName; JSON returned canonical host and original sshHost
  • GitHub CI passed on Ubuntu/macOS Python 3.9 and 3.13, Windows Python 3.13, package build, install smoke test, shellcheck, and GitGuardian

Verified against

macOS 26.6.2 arm64, Python 3.14.7, and a live Tailscale SSH peer.

Notes

SSH keeps the supplied destination as its config alias, prepends HostName=<verified MagicDNS FQDN>, and retains HostKeyAlias=<supplied hostname or IP>. This lets existing Host, User, Port, IdentityFile, and known_hosts settings continue to apply while the network destination uses the current MagicDNS identity. A peer reported offline fails before SSH; a destination absent from the tailnet map stays a normal SSH target.

The branch includes current main commit 25ae1d3 from #56. Its multi-home Codex safeguards and JSON metadata are preserved alongside the sender/MagicDNS behavior; the remote dispatch integration test now isolates Tailscale status from the mocked Codex queue subprocess.

@abruption
abruption merged commit e93d706 into main Sep 15, 2026
9 checks passed
@abruption
abruption deleted the feat/57-sender-agent-magicdns branch September 18, 2026 07:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: identify sender agent and canonicalize Tailscale SSH targets

1 participant