Enum Class LiabilityClass

java.lang.Object
java.lang.Enum<LiabilityClass>
com.tnsai.accountability.LiabilityClass
All Implemented Interfaces:
Serializable, Comparable<LiabilityClass>, Constable

public enum LiabilityClass extends Enum<LiabilityClass>
Severity tier the agent's authority scope ( AuthorityScope) classifies an action with (TNS-298).

Auditors filter records by class to find regulatory-relevant actions quickly; the reputation ledger weights records by class (one HIGH miss outweighs many LOW misses).

Tiers are deliberately coarse — five tiers cover the common cases without forcing operators to do nuanced classification at every call site.

Since:
0.10.0 (TNS-298)
  • Enum Constant Details

    • NONE

      public static final LiabilityClass NONE
      Internal, no observable side effect. Plumbing actions: emit a log line, increment a counter. Auditors typically skip these.
    • LOW

      public static final LiabilityClass LOW
      Low-risk side effect with a cheap reversal path. Read-only external lookups, cache writes, debug events.
    • MEDIUM

      public static final LiabilityClass MEDIUM
      Mutates state inside the framework or a system the framework controls. Database writes, file changes, internal queue puts. Reversible with operator intervention.
    • HIGH

      public static final LiabilityClass HIGH
      External-system mutation with material consequence. Posting to a public channel, opening a PR, sending a message, triggering a build.
    • REGULATORY

      public static final LiabilityClass REGULATORY
      Action with regulatory or financial reach. Payments, regulated data egress, anything covered by a compliance regime. Auditors review every record at this level.
  • Method Details

    • values

      public static LiabilityClass[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static LiabilityClass valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null