How It Works
A domain profile layers on top of Attesta’s base 5-factor risk scorer to add industry-specific signals:- Risk Patterns — regex patterns that boost the risk score when matched against function names, arguments, or docstrings
- Sensitive Terms — individual words with associated risk weights
- Critical / Safe Actions — function name patterns that always score as CRITICAL or LOW
- Escalation Rules — conditions that trigger additional approvers or notifications
- Challenge Templates — domain-specific verification questions
- Risk Floor & Production Multiplier — minimum scores and environment amplification
DomainProfile Dataclass
Each profile is aDomainProfile dataclass:
Creating a Domain Profile
Using Domain Profiles
DomainRegistry
TheDomainRegistry manages profile registration, retrieval, and merging:
Merge Behavior
When merging multiple profiles, the registry follows these rules:Configuration via YAML
attesta.yaml
Domain names in
attesta.yaml must match presets registered via register_preset() before loading the config. See Custom Domains for setup instructions.Custom Domains
Build your own domain profile
Domain Overview
Architecture and merge strategy