Package com.tnsai.accountability
Enum Class LiabilityClass
- All Implemented Interfaces:
Serializable,Comparable<LiabilityClass>,Constable
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)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionExternal-system mutation with material consequence.Low-risk side effect with a cheap reversal path.Mutates state inside the framework or a system the framework controls.Internal, no observable side effect.Action with regulatory or financial reach. -
Method Summary
Modifier and TypeMethodDescriptionstatic LiabilityClassReturns the enum constant of this class with the specified name.static LiabilityClass[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
NONE
Internal, no observable side effect. Plumbing actions: emit a log line, increment a counter. Auditors typically skip these. -
LOW
Low-risk side effect with a cheap reversal path. Read-only external lookups, cache writes, debug events. -
MEDIUM
Mutates state inside the framework or a system the framework controls. Database writes, file changes, internal queue puts. Reversible with operator intervention. -
HIGH
External-system mutation with material consequence. Posting to a public channel, opening a PR, sending a message, triggering a build. -
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
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
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 nameNullPointerException- if the argument is null
-