CoolFace
Apppublic

ansh1705/ops_metaXscalar

sourceHugging Faceupdated 6mo agoView on Hugging Face
0likes
App README

OpsArena Reliability Decision Engine

A multi-step AI system that converts cloud telemetry into structured deployment decisions with confidence scoring.

![Python 3.10+](https://python.org) ![Gradio](https://gradio.app) ![Docker](https://www.docker.com)


Instant Clarity: The Value Proposition

OpsArena simulates the high-stakes decision loop of a Cloud NOC (Network Operations Centre).

  • —Who it is for: SRE, CloudOps, and platform teams managing deployment risk under deadlines.
  • —The Problem: Human operators must manually balance dependencies, SLA deadlines, and resource failures.
  • —The Solution: OpsArena is a Reliability Decision Engine that outputs score, risk, confidence, and ranked operator actions.

🧩 Real Intelligence: How it Works

OpsArena is not a single model wrapper; it is an Engineered Multi-Step Decision System.

The Reasoning Pipeline

  1. 1.Input Parsing: Consumes telemetry plus operator mission brief.
  2. 2.Intent Detection: Classifies objective (SLA-first, incident recovery, cost efficiency, throughput).
  3. 3.Constraint Filtering: Removes illegal actions (dependency/order/type checks).
  4. 4.Policy Inference (RLM/Greedy/Random): Selects the best valid action.
  5. 5.Post-Processing: Produces score, risk, ranked factors, and action recommendations.
  6. 6.Meta Intelligence Layer: Confidence scoring + contradiction validation before final report.

📊 System Architecture

mermaid
graph LR
    subgraph Environment
    A[Telemetry] --> B[Observation Space]
    end
    subgraph Agent Loop
    B --> C{Reasoning Engine}
    C --> D[Priority Filter]
    C --> E[Slack Analysis]
    C --> F[Load Prediction]
    D & E & F --> G[Linear Model Inference]
    G --> H[Action Dispatch]
    end
    H --> I[State Transition]
    I --> A

Production-Grade Utility

Post-Deployment Audit

Every simulation run produces a Decision Engine Report:

  • —Score: normalized reliability score.
  • —Risk Band: Low/Medium/High operational risk.
  • —Decision Confidence: meta-layer confidence estimate.
  • —Ranked Factors: completion, priority alignment, timeliness, and efficiency.
  • —Recommended Actions: prioritized next steps for the operator.

Example output format:

text
Final Score: 0.87/1.00
Category: Optimized
Risk: Low
Confidence: 82%
Top Insight: Timeliness is the main bottleneck.
Recommendation: Reserve capacity for near-deadline tasks.
Why: Completion=1.00, Timeliness=0.78, Efficiency=0.66

Comparison Mode

  • —Run two engines on the same scenario/seed.
  • —Get side-by-side metrics and a recommended winner.
  • —Useful for policy selection before rollout.
  • —This is the standout “wow” feature for judge demos.

Benchmarking & Credibility

ModelOverall Avg Score (Hard)Status
Randomcomputed from results/eval_RandomAgent*.jsonBaseline
Greedy (EDF)computed from results/eval_GreedyAgent*.jsonHeuristic
RLM (trained)computed from results/eval_RLAgent*.jsonLearning policy

Credibility checklist for demos:

  • —Report number of tested runs (difficulty x seeds).
  • —Include latency per run.
  • —Show comparison-mode output for policy selection.
  • —Do not present fixed constants; show only values calculated from current run artifacts.

Engineering & Constraint Handling

OpsArena handles real-world complexity that simple demos ignore:

  • —Dependency Chains: Tasks cannot start until prerequisites are satisfied (DAG support).
  • —Resource Failures: Simulated hardware outages force the agent to dynamically reroute workloads.
  • —Deadlock Avoidance: The RLM learns to reserve capacity for high-priority arrivals mid-episode.

Quick Start & Deployment

Local Start

bash
pip install -r requirements.txt
python -m app.interface  # -> http://localhost:7860

Docker / Hugging Face

bash
docker build -t opsarena .
docker run -p 7860:7860 opsarena

Why OpsArena Wins

  • —System Thinking: explicit pipeline from intent detection to validated decision output.
  • —Decision, not paragraph: structured outputs for operator actionability.
  • —A/B Policy Selection: comparison mode makes model choice measurable.
  • —100% Traceable: feature-driven reasoning with auditable metrics.
  • —Compliance: OpenEnv compatible evaluation and API surface.