pub trait GateBackend: Send + Sync {
// Required method
fn check(
&self,
agent_id: &str,
action: &str,
context: &Value,
) -> GateDecision;
}Expand description
Trait for gate backends that make access-control decisions.
Implementations include:
CapabilityGate— wraps the existingCapabilityCheckerfor binary Permit/Deny decisions.TileZeroGate(behindtilezerofeature) — three-way Permit/Defer/Deny with cryptographic receipts.
Required Methods§
Sourcefn check(&self, agent_id: &str, action: &str, context: &Value) -> GateDecision
fn check(&self, agent_id: &str, action: &str, context: &Value) -> GateDecision
Check whether an agent is allowed to perform an action.
§Arguments
agent_id- The agent requesting the action.action- The action being attempted (e.g. “tool.shell_exec”, “ipc.send”, “service.access”).context- Additional context for the decision (tool args, target PID, etc.).