pub fn session_key(agent: &str, dir: &str, name: &str) -> StringExpand description
Compute a deterministic session key from agent, directory, and optional name.
Uses SHA-256 of "agent\0dir\0name" (hex encoded). The null byte separator
prevents collisions between e.g. ("a","b\0c","") and ("a\0b","c","").