pub fn session_dir(name: &str) -> Result<PathBuf>Expand description
Full filesystem path for a named session’s WIRE_HOME root —
<sessions_root>/by-key/<hash> where the by-key hash is derived
from the (sanitized) operator-typed name. Inside this dir the
standard wire layout applies: config/wire/... and state/wire/....
RFC-006 Part A (1.0 format freeze): there is now exactly ONE physical
session layout — by-key/<hash>. A named session’s key is its name;
an agent session’s key is its session id. Both hash into the same
store, so every reader (list_sessions, find_session_home_by_name,
the supervisor) handles one shape instead of straddling the old
sessions/<name>/ top-level layout AND by-key/<hash>/.
Operator-facing CLI paths that accept a user-typed name should still
prefer find_session_home_by_name: it resolves both a named
session (key == name) AND an agent session typed by its DID-derived
persona handle (key == session id, name on disk is the hash).