| Crates.io | iron_runtime_state |
| lib.rs | iron_runtime_state |
| version | 0.3.0 |
| created_at | 2025-12-16 16:01:18.181596+00 |
| updated_at | 2025-12-16 16:01:18.181596+00 |
| description | Runtime state management for Iron Cage agents |
| homepage | |
| repository | https://github.com/.../iron_runtime |
| max_upload_size | |
| id | 1988180 |
| size | 78,927 |
Agent execution state management and audit logging.
[dependencies]
iron_runtime_state = { path = "../iron_runtime_state" }
use iron_runtime_state::StateManager;
use std::sync::Arc;
// Create shared state manager
let state = Arc::new(StateManager::new("./state.db")?);
// Update agent state (thread-safe)
state.update_agent("agent_001", AgentState::Running)?;
// Retrieve current state
let agent = state.get_agent("agent_001")?;
// Log audit event
state.log_event("agent_001", "PII detected and redacted")?;
Responsibilities: Manages agent execution state with fast in-memory access (DashMap) for real-time dashboard updates and persistent SQLite storage for compliance audit trails. Provides thread-safe concurrent access for multiple crates reading and writing state simultaneously.
In Scope:
Out of Scope:
| File | Responsibility |
|---|---|
| lib.rs | Type-safe state management for Iron Cage runtime |
Notes:
Apache-2.0