Cotal TypeScript packages
    Preparing search index...

    Function putSpaceAuth

    • Persist a composed value through the seam by DECOMPOSING it into its two records - the seam writer with the SAME refusals as the FS pair (saveBrokerAuth/saveSpaceAccountAuth, shared via guardBrokerOverwrite): a stripped value, a foreign-operator overwrite, a stale or rolled-back system-account generation, and another tenant's account record all refuse loud. All guards run BEFORE either put, so a refusal never leaves a half-written pair. sys.signingSeed never lands at rest (broker-admin minting capability; the record shape drops it).

      With NO broker record in the store, the FS writer's whole-inventory orphan check cannot run - a SecretStore has no enumeration - so it ranges over the ADDRESSABLE records instead: this space's own account and the legacy monolith, each of which the incoming operator must have signed. That is complete for a hosted store (scoped per-tenant inside its own resolve, per the seam's design) and for every same-space local repair; a lost broker.json beside a DIFFERENT tenant's account on the local FS stays covered by the FS writer wherever saveSpaceAuth is the writer (accepted residual, documented here rather than silently absorbed).

      Parameters

      Returns Promise<void>