1. Working Project & Problem Statement
Modern ops teams are flooded with messy production alerts, security incidents, and support escalations. Standard LLM chatbot wrappers guess actions silently, lack permission boundaries, and offer no audit trail or rollback when they misclassify an incident.
AegisOps Agent is a functional, static-deployed accountable operations agent (Agent Infrastructure track) that accepts any arbitrary unseen incident or ticket text live (not limited to pre-selected presets), executes a 5-stage typed decision pipeline, enforces RBAC and confidence gates, and supports 1-click rollback recovery from incorrect decisions.
- Live Deployment: https://nitnx.github.io/aegis-ops-agent/
- Source Code: https://github.com/nitnx/aegisops-agent
2. Decision Map (5 Typed, Inspectable Decisions)
Every incoming incident produces 5 typed, inspectable decision objects explaining the exact rule, model, and rationale:
ClassificationDecision(Structured Weighted NLP Scorer): Categorizes incidents across domains (database_outage,security_breach,billing_fraud,infra_latency,access_request, etc.) using weighted term scoring. Chosen over a black-box LLM call to provide auditable per-domain scores, deterministic confidence (0..1), and an explicit runner-up ambiguity margin.SeverityDecision(Deterministic Impact Matrix0–100->SEV1..SEV4): Computes a numeric impact score from blast radius, affected-user count, SLA risk, and security/data signals. Chosen so polite or understated phrasing never masks critical outages or breaches.RoutingAndPermissionDecision(Deterministic RBAC & Blast-Radius Guard): Maps classification + severity to an action plan and evaluates each action against RBAC policy tiers:AUTO_ALLOWED,NEEDS_HUMAN_APPROVAL, orDENIED_DESTRUCTIVE(permanently blocking destructive actions such asdrop_stale_table).EscalationDecision(Confidence Threshold + Margin + SEV1 Human Gate): Triggers mandatory human escalation whenever confidence< 0.72, ambiguity margin< 0.15, severity isSEV1, or any requested action requires approval / violates RBAC.ActionAuditEntryExecution & Recovery State Machine: Executes approved actions deterministically against versioned system state with pre/post snapshots, enabling 1-click Undo/Rollback and human Override recovery.
3. Accountability Layer
- Data Sources & Versioned System State: Every state mutation increments
systemStateVersionand records immutable pre-action and post-action snapshots in an append-only audit log. - Permissions & Access Controls: Strict RBAC guardrails enforce
AUTO_ALLOWED,NEEDS_HUMAN_APPROVAL, andDENIED_DESTRUCTIVEboundaries before any tool executes. - Confidence Thresholds: Automated execution requires confidence
>= 0.72and runner-up ambiguity margin>= 0.15; anything below routes to human review. - Human Intervention & Escalation Process: Operators can inspect every decision score/rule and click Approve, Rollback, or Mark Decision Wrong & Recover directly in the UI.
- Recovery / Undo Mechanism: Recorded end-to-end recovery from an incorrect decision (e.g., overriding a misclassified
billing_frauddecision, restoring pre-action state snapshot, and re-routing cleanly).
4. Testing Evidence
- 12 Automated Vitest Test Cases (
tests/aegis.test.ts), all passing:- 4 Failure-Oriented Test Cases:
- Destructive action block (
drop_stale_tablepermanently rejected by RBACDENIED_DESTRUCTIVE). - Malformed input rejection (negative affected-user / item counts rejected cleanly without corrupting state).
- Multi-domain ambiguity tie escalation (overlapping signals with margin
< 0.15trigger human escalation instead of guessing). - Live recovery from an incorrect decision (operator marks decision wrong, rolls back
systemStateVersionto pre-action snapshot, and applies corrected override).
5. Project Documentation & Development Process
- Tech Stack: TypeScript, Vite, Vitest, deterministic RBAC & audit state machine, static GitHub Pages deployment.
- Author: Nitin (
nitnx, solo university student participant). - Important Architectural Decisions: Separating unstructured signal extraction from deterministic impact scoring, RBAC enforcement, and versioned rollback snapshots ensures the agent works reliably on arbitrary unseen inputs and fails honestly when uncertain.
Built With
- ai-agents
- rbac
- typescript
- vite
- vitest