Cotal TypeScript packages
    Preparing search index...

    Function localTrustOfSpace

    • The LOCAL trust position a remote-authority manager must know about, read without ever composing or validating another tenant's material (#1944).

      The one question under remote authority is "does THIS space's own local signing trust exist under this store", because that alone is the conflict of authorities a supervisor refuses. Three facts answer it, and nothing else is read:

      • this space's own account record key (auth/account.<key>.json) — its presence IS the space's split-layout trust, whatever the bytes say;
      • the legacy monolith key (auth/auth.json) — a value that names this space is the pre-split layout's same fact. A value that names another space is that tenant's trust and reports nothing here. The parse rides the STORE's own discipline (parseStoreRecord semantics, same message the composed reader prints), so an unreadable value refuses loud rather than being swallowed into a proceed — but errors carry only the KEY and the space label, never stored bytes.
      • the broker record key (auth/broker.json) is deliberately NOT consulted: it is one per root and shared by every static space in the split layout, so it names no tenant and can never be this space's own trust.

      Exported for the manager (the one remote-authority caller); lives here so the key spellings and the parse message cannot drift from the reader that owns them.

      Parameters

      Returns Promise<{ present: boolean }>