domain field in attesta.yaml activates one or more registered domain profiles. Domain profiles add industry-specific risk patterns, compliance rules, escalation policies, and challenge templates on top of the base Attesta configuration.
Domain profiles must be registered as presets before they can be referenced in
attesta.yaml. See Custom Domains for how to create and register profiles.Quick Activation
- Single Domain
- Multiple Domains
- Using Aliases
attesta.yaml
What Activation Does
When you activate a domain profile, Attesta layers domain-specific behavior on top of the base configuration:1. Risk Patterns
Domain-specific regex patterns are added to the risk scorer:2. Sensitive Terms
A dictionary of domain-specific terms with risk weights is loaded into the scorer:3. Critical and Safe Actions
Actions that are always CRITICAL or always LOW are registered:4. Escalation Rules
Domain-specific escalation rules define when additional approvers or notifications are required.5. Review Time Overrides
Domains can override the baseminimum_review_seconds per risk level.
6. Risk Floor and Production Multiplier
Domains set abase_risk_floor (minimum risk for any action) and production_multiplier (applied when the environment is production).
Combining Multiple Domains
When you activate multiple domains, Attesta merges them using theDomainRegistry.merge() method. The merge strategy is conservative — it takes the highest (safest) value for scalar settings.
Merge Behavior
| Field | Merge Strategy |
|---|---|
risk_patterns | Union of all patterns from both domains |
sensitive_terms | Union; if same term exists, take highest weight |
critical_actions | Union of both lists |
safe_actions | Union of both lists |
escalation_rules | Union of both lists |
min_review_overrides | Per-level max |
base_risk_floor | Take the higher floor |
production_multiplier | Take the higher multiplier |
The conservative merge strategy means that combining domains always results in stricter policies, never weaker ones.
Programmatic Activation
You can activate domains programmatically without a YAML file:Strict Mode
By default, Attesta fails fast if a domain profile name referenced inattesta.yaml has not been registered. Set domain_strict: false if you prefer a warning and fallback to non-domain scoring:
attesta.yaml
Domain + Config Interaction
Domain settings and explicitattesta.yaml settings work together. Explicit config values take precedence for overlapping fields:
attesta.yaml
- Base Attesta defaults
- Domain profile settings are applied
- Explicit
attesta.yamlpolicy,risk, andtrustsections override domain defaults
Next Steps
Domain Overview
Architecture and structure of domain profiles
Custom Domains
Build your own domain profile