Safety Features & Idempotency

Idempotency (24hr TTL)

Problem: Duplicate Operations

Same command executed multiple times

Solution: Redis Cache

Hash: device_id + command + timestamp
If operation exists in last 24hrs → return cached result

Result: No duplicate config changes, safe re-runs

Human-in-the-Loop

HITL Guarantee

No config changes without approval

Approval Card Shows:

  • Root cause analysis
  • Proposed fix (CLI commands)
  • Agent confidence score
  • Affected devices
  • Rollback plan

Audit Trail: Every decision logged with timestamp

Additional Safety

Deduplication

One approval per device+agent

Tool Abstraction

Agents never SSH directly

Validation

Post-fix verification

Circuit Breaker

Token budget limits