RiskLevel enum. Each level determines the challenge type presented to the human operator.
Risk Level Thresholds
Boundary values are inclusive on the lower bound. A score of exactly
0.3 is MEDIUM, a score of exactly 0.6 is HIGH, and a score of exactly 0.8 is CRITICAL.The RiskLevel Enum
from_score() Classification Logic
Visual Risk Bar
When using the TerminalRenderer, Attesta displays a colored risk bar in the terminal showing the score and level:Default Challenge Map
The default mapping from risk levels to challenges is:Overriding the Challenge Map
Trust-Adjusted Risk
The Trust Engine can shift the effective risk level for agents with a proven track record. A trusted agent’s MEDIUM action might be treated as LOW, reducing friction. However, a critical safety invariant applies:Comparison Table
Risk Scoring
How the 5-factor scorer produces a numeric score
Challenges
The challenge system and how levels map to challenges