agent-ssh 0.3.6

Arrange agent terminal layouts and reconnect through provider attachment plans
Documentation
1
2
3
4
5
6
7
8
9
# Linux transport observation

`socket_verified` defaults to false for older observations. True means an exact SSH_CONNECTION tuple was corroborated by a current ESTABLISHED proc TCP row and the same socket inode was owned by an FD in the tmux client's observed ancestor chain. Logical SSH metadata remains available when proof is inaccessible, ambiguous or changes; that is not a transport-health claim.

The observation follows at most 64 ancestors, retains only SSH_CONNECTION from bounded environment reads, and checks process parent/start identities before and after. Every matching ancestor environment must agree. Network tables are read within the relevant ancestor network namespace, capped at 8MiB each, and socket-FD enumeration is capped at 4,096 entries total. A shared 25-second deadline bounds the observation. It requires one exact namespace/inode, checks tables again, rereads owning FD symlinks, and rechecks namespace, process and SSH metadata identities. Missing permissions, malformed or changed data yield false; no privilege escalation or attachment action is attempted.

The Linux kernel documents the endpoint/state/inode fields in [/proc/net/tcp and tcp6](https://docs.kernel.org/networking/proc_net_tcp.html). Socket FD symlinks expose `socket:[inode]` for correlation with proc network tables; access can be denied by ptrace permission checks. [proc_pid_fd(5)](https://man7.org/linux/man-pages/man5/proc_pid_fd.5.html). Parent PID and process start time come from documented proc stat fields. [proc_pid_stat(5)](https://man7.org/linux/man-pages/man5/proc_pid_stat.5.html). Address words are decoded in native byte order and ports from hexadecimal; IPv4-mapped IPv6 addresses are canonicalized consistently. Native-word formatting is visible in the kernel's [IPv6 TCP table implementation](https://github.com/torvalds/linux/blob/master/net/ipv6/tcp_ipv6.c).

Tests cover IPv4, IPv6, mapped addresses, exact ports, established state, nonzero inode and malformed rows. This change was cross-target checked with the published tmux-session0.1.3 against x86_64-unknown-linux-gnu. Actual Linux SSH/provider execution remains an integration acceptance check owned by the root task.