The VALIDATED tenant inventory of an auth dir - the ONE read of "how many tenants" every other
surface derives from (the broker-wide guards, soleSpaceOf, cotal status, the target
resolver). Four surfaces each reading the disk their own way is how an under-count slips past
exactly one of them; there must be a single answer.
spaces are the tenants whose account records are regular files that parse, carry a space
equal to their own injective filename key, and round-trip. corrupt is every entry that
OCCUPIES the account namespace (account.*.json) yet fails any of that - including a
non-regular entry (symlink, directory): Dirent.isFile() is lstat-semantics, so skipping those
would drop a tenant whose record was symlinked while loadSpaceAccountAuth's path still
resolved it - the exact under-count the guards exist to refuse. The authoritative name is the
record's own space, never inferred from the filename. corrupt is what turns the guards
fail-CLOSED: an unreadable record is uncertainty about how many tenants exist, and a
broker-wide operation must not proceed on an under-count.
The VALIDATED tenant inventory of an auth dir - the ONE read of "how many tenants" every other surface derives from (the broker-wide guards,
soleSpaceOf,cotal status, the target resolver). Four surfaces each reading the disk their own way is how an under-count slips past exactly one of them; there must be a single answer.spacesare the tenants whose account records are regular files that parse, carry aspaceequal to their own injective filename key, and round-trip.corruptis every entry that OCCUPIES the account namespace (account.*.json) yet fails any of that - including a non-regular entry (symlink, directory):Dirent.isFile()is lstat-semantics, so skipping those would drop a tenant whose record was symlinked whileloadSpaceAccountAuth's path still resolved it - the exact under-count the guards exist to refuse. The authoritative name is the record's ownspace, never inferred from the filename.corruptis what turns the guards fail-CLOSED: an unreadable record is uncertainty about how many tenants exist, and a broker-wide operation must not proceed on an under-count.