pub fn detect_identity_split() -> Option<IdentitySplit>Expand description
Detect a session-identity split (see IdentitySplit). None in the
healthy case (served identity == live Claude session), when either side is
unresolvable (bare CLI, uninitialized), or when the operator DELIBERATELY
pinned WIRE_HOME to share one identity across sessions (not a bug). Run
INSIDE a long-lived MCP/daemon this catches the frozen-identity case the old
env-vs-pidfile check missed: the served home is stale, the PID-file is live,
they differ. Reads the (cached) parent-chain PID-files — cheap on the
session-start health check, not a per-message hot path.