Skip to main content

How risk is determined

Risk class comes from two sources — the highest wins:

Source 1: Autonomy level

LevelInferred risk
L1, L2minimal
L3, L4limited
L5high

Source 2: Project profile

From .complior/profile.json (created during complior init):
DomainInferred risk
healthcare, finance, hr, education, law_enforcement, justicehigh
Biometric/medical/financial datahigh
Platform systemlimited
Internal with public dataminimal

Resolution: highest wins

Example: HR recruitment agent + L3 autonomy.
  • Autonomy: L3 → limited
  • Profile: hr → high
  • Result: high (highest of the two)
Without profile (.complior/profile.json not found): only autonomy is used.

Dynamic applicable articles

Based on risk class, getApplicableArticles() returns:
Risk ClassApplicable Articles
prohibitedArt.5
highArt.6, 9, 11, 12, 13, 14, 26, 27, 49, 50
limitedArt.50, 52
minimalArt.50