Cotal TypeScript packages
    Preparing search index...

    Function agentSecretKeysUnder

    • Enumerate the store keys of every per-agent standing secret currently materialized under this root — the reset/backstop sweep (clean all; despawn owns the primary delete). Deliberately filename-driven over the LOCAL creds dir: this surface is the FS composition (a hosted reset rides its own store), and a file only maps to a key if a valid spawn could have written it — health files and strays are left to the caller's raw cleanup.

      ROOT-WIDE AND MIGRATION-FREE, both deliberate. It takes no space because clean all resets the whole root, so it enumerates EVERY tenant's segment; and it is a DELETER (§3.1), so it addresses what is on disk rather than resolving through agentCredsDir — moving material into the path a sweep is about to delete is work done to undo itself, and a §2 rule 3 or 4 refusal must not fail a reset over material the reset does not care about.

      It reports BOTH levels: this space's segment (auth/creds/space.<hex>/<file>) and any pre-P1 file still sitting flat in the creds dir. Dropping the flat level would be the same defect this series exists to end, reintroduced in the sweeper — a reset that leaves an unmigrated root's agent creds on disk and reports success.

      Parameters

      • root: string

      Returns string[]