Skip to main content
Domain profiles allow you to apply industry-specific risk policies to Attesta. Each profile configures risk patterns, sensitive terminology, compliance frameworks, escalation rules, and minimum review overrides tailored to a specific regulatory or operational context. Attesta provides the domain profile framework (types, registry, scorer); you create profiles for your industry.

How It Works

A domain profile layers on top of Attesta’s base 5-factor risk scorer to add industry-specific signals:
  1. Risk Patterns — regex patterns that boost the risk score when matched against function names, arguments, or docstrings
  2. Sensitive Terms — individual words with associated risk weights
  3. Critical / Safe Actions — function name patterns that always score as CRITICAL or LOW
  4. Escalation Rules — conditions that trigger additional approvers or notifications
  5. Challenge Templates — domain-specific verification questions
  6. Risk Floor & Production Multiplier — minimum scores and environment amplification

DomainProfile Dataclass

Each profile is a DomainProfile dataclass:

Creating a Domain Profile


Using Domain Profiles

Or register as a preset for YAML-based activation:

DomainRegistry

The DomainRegistry manages profile registration, retrieval, and merging:

Merge Behavior

When merging multiple profiles, the registry follows these rules:
Merging profiles is useful for organizations that span multiple regulated domains — for example, a company that has created custom profiles for two different compliance contexts can merge them for comprehensive coverage.

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