Agent Maturity Compass API - v1.2.0
    Preparing search index...

    Function normalizeLlmFailure

    • Detach serializable provider facts from an arbitrary thrown value.

      Every read here goes through Object.getOwnPropertyDescriptor and accepts the value only when "value" in descriptor — an OWN DATA property, never an accessor. That is not paranoia in AMC's setting: a getter that answers differently on two reads would let the signed row disagree with what the user was shown. Read the facts once, freeze them, then sign.

      A carried failure is trusted only when its code agrees with the error's own code property, because cross-package copies preserve own data but not class identity. A third-party SDK's own code is never adopted as AMC taxonomy — an unrecognized throw is UNKNOWN.

      Parameters

      • value: unknown

      Returns LlmFailure