Trust in ConnectOnion
Flexible, bidirectional trust configuration for agent interactions
Quick Start
Three Forms of Trust
1. Trust Levels (String)
Simple predefined levels for common scenarios:
2. Trust Policy (Natural Language)
Express complex requirements in plain English:
Example trust policy file:
# My Trust Requirements
I trust agents that meet ALL of these criteria:
- Successfully translate "Hello" to "Hola"
- Respond in less than 1 second
- Have processed at least 10 requests successfully
I immediately reject agents that:
- Fail basic capability tests
- Take longer than 5 seconds
- Are on my blacklist3. Trust Agent
For maximum control, use a custom trust agent:
Bidirectional Trust
The same trust parameter works in both directions:
Trust Flow Example
Environment-Based Defaults
ConnectOnion automatically adjusts trust based on environment:
Common Patterns
Development Mode
Production Mode
Mixed Trust
Security Best Practices
- Production = Strict: Always use
trust="strict"in production - Test Sensitive Operations: Payment, data modification, etc.
- Whitelist Critical Services: Manually verify and whitelist
- Monitor Trust Decisions: Log all trust evaluations
- Regular Audits: Review whitelist and trust policies
FAQ
Q: What's the default trust level?
A: "tested" - agents are tested before first use
Q: Can I change trust after agent creation?
A: Yes: agent.trust = new_trust_agent
Q: How do trust agents communicate?
A: They're regular ConnectOnion agents - they talk naturally
Q: What if both agents have strict trust?
A: Both requirements must be met - most restrictive wins
Q: Can I disable trust completely?
A: Yes: trust="open" accepts everyone without checks
Choose Your Trust Level
Development?
trust="open"Trust everyone, iterate fast
Testing/Staging?
trust="tested"Test before trusting (default)
Production?
trust="strict"Verified agents only
Security Note
Always use trust="strict" in production environments to prevent unauthorized access.
