Cotal TypeScript packages
    Preparing search index...

    Function preloadSpaceAccounts

    • The accounts a broker config must PRELOAD: every tenant this auth dir holds, with current first.

      The MEMORY resolver is a whole-broker map, so the rendered config IS the tenant list - it does not add the space being booted to whatever the running broker already trusts, it replaces the set. Rendering from the one space a cotal up was asked for therefore evicts every sibling silently: the broker starts, that space works, and every cred minted under the others is refused with nothing printed anywhere. A render reads this, never a single space.

      current comes from the CALLER because the caller's copy can be fresher than the disk - a space minted moments ago, or an account whose trust record this same boot just rotated - and rendering the stale on-disk copy of the space being booted is the other half of the same bug.

      Fail-CLOSED on a corrupt record, like the guards above: a file that occupies the account namespace but will not validate may be a real tenant, and rendering without it is precisely the silent eviction this exists to prevent.

      Parameters

      Returns SpaceAccountAuth[]