aegis-runtime-mv
Native Rust agent runtime: Axum WebSocket/SSE/REST gateway, heartbeat scheduler, dependency-aware task workflow, SQLite storage. Attachment of AienOS. Pre-alpha.
Brought by drakestapleton
aegis-runtime-mv / src / execution / broker.rs
| 1 | use crate::defense::DoctrineDecision; |
| 2 | use async_trait::async_trait; |
| 3 | use serde::{Deserialize, Serialize}; |
| 4 | |
| 5 | #[derive(Debug, Clone, Serialize, Deserialize)] |
| 6 | pub struct ActionRequest { |
| 7 | pub session_id: String, |
| 8 | pub run_id: String, |
| 9 | pub capability: String, |
| 10 | pub intent: String, |
| 11 | pub target: String, |
| 12 | pub params: serde_json::Value, |
| 13 | } |
| 14 | |
| 15 | #[async_trait] |
| 16 | pub trait ExecutionAuthority: Send + Sync { |
| 17 | async fn authorize(&self, request: &ActionRequest) -> Result<DoctrineDecision, String>; |
| 18 | } |