Skip to main content
The 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

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 base minimum_review_seconds per risk level.

6. Risk Floor and Production Multiplier

Domains set a base_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 the DomainRegistry.merge() method. The merge strategy is conservative — it takes the highest (safest) value for scalar settings.

Merge Behavior

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 in attesta.yaml has not been registered. Set domain_strict: false if you prefer a warning and fallback to non-domain scoring:
attesta.yaml
Fail-fast is recommended for production deployments where a missing domain profile likely indicates a misconfiguration.

Domain + Config Interaction

Domain settings and explicit attesta.yaml settings work together. Explicit config values take precedence for overlapping fields:
attesta.yaml
The evaluation order is:
  1. Base Attesta defaults
  2. Domain profile settings are applied
  3. Explicit attesta.yaml policy, risk, and trust sections override domain defaults

Next Steps

Domain Overview

Architecture and structure of domain profiles

Custom Domains

Build your own domain profile