Skip to main content
The trust section of attesta.yaml configures Attesta’s Bayesian trust engine. The trust engine tracks each agent’s history and uses it to reduce friction for consistently reliable agents, while maintaining hard safety limits that trust can never bypass.

Configuration

attesta.yaml

How Trust Affects Risk

The trust engine adjusts the risk score downward for agents with high trust. The adjustment formula is:
For example, an agent with a trust score of 0.8 and default influence: 0.3:
The base score of 0.65 (HIGH) is reduced to 0.59 (still HIGH). Trust nudges risk rather than replacing primary risk signals.
Trust never reduces CRITICAL actions. This is a hardcoded safety invariant (critical_always_verify = True on the Policy dataclass). If the base risk is CRITICAL (0.8+), trust adjustments are skipped entirely. This ensures that the most dangerous operations always receive full verification.

Parameters

influence

The influence parameter scales how strongly trust can move risk up or down around the neutral trust point (0.5):
A higher influence value means trusted agents experience significantly less friction. Set it lower (e.g., 0.1) in high-security environments where you want trust to have minimal impact. Set it higher (e.g., 0.5) in development environments where trusted agents should move faster.

ceiling

The ceiling parameter is a hard cap on the trust score. No agent can exceed this value, regardless of their approval history. This prevents any agent from reaching “fully trusted” status and eliminates the possibility of trust completely bypassing challenges.

initial_score

The initial_score parameter sets the starting trust level for agents with no history. This affects the first interaction:
Setting initial_score higher than 0.5 means new, unproven agents receive meaningful risk reduction on their very first action. Use this only when agents are pre-vetted through an external process.

decay_rate

The decay_rate parameter controls how quickly trust erodes when an agent is inactive. Trust decay is exponential:
This ensures that agents that have been idle for extended periods do not retain high trust. An agent that was trusted 3 months ago with a different codebase should not automatically receive trust benefits today.

Programmatic Configuration

The Policy dataclass stores trust parameters and provides a convenience method to extract them:
You can also configure the trust engine directly:

Security Profiles

Here are recommended trust configurations for different security postures:
For regulated environments (healthcare, finance, government):

Trust Feedback Loop

The trust engine updates after every gated action:

Next Steps

Trust Engine

Deep dive into the Bayesian trust model

Domain Activation

Activate domain profiles that adjust trust settings