Cotal TypeScript packages
    Preparing search index...

    Function staleSystemCreds

    • The $SYS cred files whose issuer is not sysPub: the ONE staleness question, asked in one place so every surface answers it identically.

      This exists because expiry cannot see the failure. A rotation that committed the trust record and then died leaves credential files that parse, are nowhere near their expiry, and are refused by the broker, because the account that signed them no longer exists as far as the successor config is concerned. Comparing the two files to each other is not enough either: a crash BEFORE either write leaves them stale but mutually consistent. Only the persisted record settles it, which is why this takes sysPub and why the callers are the two surfaces that hold it: the boot path, which warns before it renders a config the files cannot serve, and cotal doctor auth, which must never call this state healthy. The delivery daemon is deliberately NOT a caller: it never loads the signer.

      Absent files are not stale (an unprovisioned space is a different, separately reported state), and the mutating/default path reports an unreadable file with no iss. A read-only observation refuses a required migration or an unreadable protected input instead of guessing issuer state, except a file other accounts can open: it is left unjudged, because the read-only caller reads each file itself and names that exposure and its repair.

      Parameters

      Returns StaleSystemCred[]