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.


2. Decision Map (5 Typed, Inspectable Decisions)

Every incoming incident produces 5 typed, inspectable decision objects explaining the exact rule, model, and rationale:

  1. 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.
  2. SeverityDecision (Deterministic Impact Matrix 0–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.
  3. 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, or DENIED_DESTRUCTIVE (permanently blocking destructive actions such as drop_stale_table).
  4. EscalationDecision (Confidence Threshold + Margin + SEV1 Human Gate): Triggers mandatory human escalation whenever confidence < 0.72, ambiguity margin < 0.15, severity is SEV1, or any requested action requires approval / violates RBAC.
  5. ActionAuditEntry Execution & 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 systemStateVersion and 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, and DENIED_DESTRUCTIVE boundaries before any tool executes.
  • Confidence Thresholds: Automated execution requires confidence >= 0.72 and 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_fraud decision, 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_table permanently rejected by RBAC DENIED_DESTRUCTIVE).
    • Malformed input rejection (negative affected-user / item counts rejected cleanly without corrupting state).
    • Multi-domain ambiguity tie escalation (overlapping signals with margin < 0.15 trigger human escalation instead of guessing).
    • Live recovery from an incorrect decision (operator marks decision wrong, rolls back systemStateVersion to 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

Share this project:

Updates

Submission history