Vedi23/internet-diagnosis-env
Your README.md should now start like this:title: Internet Diagnosis Env emoji: ๐ colorFrom: blue colorTo: green sdk: docker pinned: false license: mit ---
๐ Internet Outage Diagnosis Environment
An OpenEnv environment where an AI agent diagnoses real-world internet connectivity failures.
What is this?
This environment simulates a real-world network support scenario. An AI agent receives network diagnostic data (ping times, packet loss, signal strength, DNS status) and must identify the root cause of internet outages.
This is a task humans actually do every day โ network engineers, ISP support staff, and IT helpdesks diagnose these issues constantly.
Observation Space
What the AI sees at each step:
Action Space
What the AI can do:
Along with:
failing_componentโ what specifically is brokensuggested_fixโ how to fix itconfidenceโ how sure the AI is (0.0 to 1.0)
Tasks
Task 1 โ Easy: Single Point Failure
- 2 scenarios with one obvious failure
- Max 3 steps per episode
- Pass score: 0.6
Task 2 โ Medium: Multi-Layer Diagnosis
- 2 scenarios requiring careful analysis
- Max 5 steps per episode
- Pass score: 0.5
Task 3 โ Hard: Complex Intermittent Failure
- 2 scenarios with overlapping issues
- Max 7 steps per episode
- Pass score: 0.4
Reward Function
Baseline Scores
Running baseline.py with llama-3.1-8b-instant via Groq:
Setup Instructions
Option 1 โ Run Locally
Step 1 โ Install dependencies:
pip install -r requirements.txtStep 2 โ Start the server:
python server.pyStep 3 โ Run baseline:
export GROQ_API_KEY=your-key-here
python baseline.pyStep 4 โ Visit interactive docs:
http://127.0.0.1:7860/docsOption 2 โ Run with Docker
Step 1 โ Build:
docker build -t internet-diagnosis-env .Step 2 โ Run:
docker run -p 7860:7860 internet-diagnosis-envAPI Endpoints
Project Structure
internet-diagnosis-env/
โโโ models.py # Pydantic data models
โโโ scenarios.py # Network failure scenarios
โโโ tasks.py # Tasks and graders
โโโ environment.py # Core step/reset/state logic
โโโ server.py # FastAPI server
โโโ baseline.py # Baseline inference script
โโโ openenv.yaml # OpenEnv metadata
โโโ Dockerfile # Container setup
โโโ requirements.txt # Dependencies
โโโ README.md # This file
