Core Feature
Trust in ConnectOnion
Flexible, bidirectional trust configuration for agent interactions
Quick Start
trust_config.py
Python REPL
Interactive
Three Forms of Trust
1. Trust Levels (String)
Simple predefined levels for common scenarios:
open→Trust everyone (development)
tested→Test before trusting (default)
strict→Only verified/whitelisted (production)
2. Trust Policy (Natural Language)
Express complex requirements in plain English:
natural_language_trust.py
3. Trust Agent
For maximum control, use a custom trust agent with verification tools
trust_agent.py
Bidirectional Trust
The same trust parameter works in both directions:
bidirectional_trust.py
Python REPL
Interactive
Both trust requirements must be satisfied for interaction!
Progressive Trust Building
Trust grows through successful interactions:
1
First Encounter
Agent is tested before use
2
Successful Interactions
Agent automatically added to verified list
3
Future Encounters
Skip testing, already verified
Environment Defaults
Development
localhost, Jupyter →
open
Testing
test_*.py files →
tested
Production
Default →
strict
Security Best Practices
- 1.Always use
strict
in production - 2.Test sensitive operations
- 3.Whitelist critical services
- 4.Monitor trust decisions
- 5.Regular audits
Common Patterns
Mixed Trust
scraper = need("scrape", trust="open")
analyzer = need("analyze", trust="tested")
payment = need("payment", trust="strict")