Gate
The Gate is SOVR's primary decision engine. Every AI action passes through the gate before execution.
How It Works
typescript
const result = await sovr.gate.check({
action: 'transfer_funds',
context: {
amount: 50000,
currency: 'USD',
recipient: 'vendor_account_123'
}
});
// result.decision: 'allow' | 'deny' | 'require_approval'Policies
Define rules that determine gate behavior:
yaml
rules:
- name: small_transfers
action: transfer_funds
conditions:
amount_lte: 1000
decision: allow
- name: medium_transfers
action: transfer_funds
conditions:
amount_gt: 1000
amount_lte: 10000
decision: require_approval
approvers:
- role: finance_manager
- name: large_transfers
action: transfer_funds
conditions:
amount_gt: 10000
decision: require_approval
approvers:
- role: cfo
- role: ceo
require_all: trueRisk Scoring
The gate calculates risk scores based on:
- Action risk: Base risk for action type
- Context risk: Specific parameters (amounts, recipients)
- Pattern risk: Deviation from historical patterns
- Temporal risk: Time-based factors
Adversarial Defense
SOVR detects potential manipulation:
| Attack Type | Detection |
|---|---|
| Prompt injection | Pattern matching |
| Gradual escalation | Behavioral analysis |
| Context poisoning | Input validation |
| Split attacks | Session tracking |