Cotal TypeScript packages
    Preparing search index...

    Function agentSecretKeysForSpace

    • agentSecretKeysUnder narrowed to ONE tenant — what cotal space rm reaps, and what it can list before it commits to reaping.

      IT DOES NOT REPORT THE FLAT LEVEL, and that is the whole difference between the two. clean all resets the root, so it must name a pre-P1 file sitting directly in the creds dir or leave it behind. A per-space reap must NOT: a flat file names no tenant, so attributing it to the tenant being removed is a guess, and acting on the guess deletes what may be a survivor's live material. That case is refused up front by assertAgentSecretsReapable rather than resolved here.

      Migration-free for the same reason as the root-wide sweep: this is a DELETER (§3.1).

      Parameters

      • root: string
      • space: string

      Returns string[]