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:0.8 and default influence: 0.3:
0.65 (HIGH) is reduced to 0.59 (still HIGH). Trust nudges risk rather than replacing primary risk signals.
Parameters
influence
influence parameter scales how strongly trust can move risk up or down around the neutral trust point (0.5):
| Trust Score | Influence 0.3 (multiplier) | Influence 0.5 (multiplier) | Influence 0.1 (multiplier) |
|---|---|---|---|
| 0.3 | 1.06 (risk increases) | 1.10 (risk increases) | 1.02 (risk increases) |
| 0.5 | 1.00 (neutral) | 1.00 (neutral) | 1.00 (neutral) |
| 0.9 | 0.88 (risk decreases) | 0.80 (risk decreases) | 0.96 (risk decreases) |
ceiling
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
initial_score parameter sets the starting trust level for agents with no history. This affects the first interaction:
| Initial Score | Effect on First Action |
|---|---|
0.0 | No trust benefit — full risk scoring |
0.3 (default) | Slight risk reduction (up to -0.09 with default influence) |
0.5 | Moderate risk reduction (up to -0.15 with default influence) |
0.7 | Significant risk reduction — use only for pre-vetted agents |
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
decay_rate parameter controls how quickly trust erodes when an agent is inactive. Trust decay is exponential:
| Days Inactive | Trust (from 0.8) | Decay Rate 0.01 |
|---|---|---|
| 0 | 0.80 | No change |
| 7 | 0.75 | ~6.8% decrease |
| 30 | 0.59 | ~25.9% decrease |
| 60 | 0.44 | ~45.1% decrease |
| 90 | 0.33 | ~59.3% decrease |
Programmatic Configuration
ThePolicy dataclass stores trust parameters and provides a convenience method to extract them:
Security Profiles
Here are recommended trust configurations for different security postures:- High Security
- Standard (default)
- Development
For regulated environments (healthcare, finance, government):
Trust Feedback Loop
The trust engine updates after every gated action:| Outcome | Trust Impact |
|---|---|
| Action approved and executed | Trust increases (weighted by recency) |
| Action denied by operator | Recorded but no trust increase |
| Challenge failed (wrong quiz answer) | Recorded but no trust increase |
| Security incident flagged | Penalty multiplier applied, trust drops rapidly |
Next Steps
Trust Engine
Deep dive into the Bayesian trust model
Domain Activation
Activate domain profiles that adjust trust settings