OpenEnv Environment · Live

CI/CD + Docker
Debug Environment

An OpenEnv-compatible environment where AI agents learn to debug broken GitHub Actions workflows and Dockerfiles. Built for the OpenEnv Hackathon by Scaler School of Technology.

6
Task Categories
30
Unique Scenarios
12
API Endpoints
0.547
Baseline Score (Llama 70B)

How It Works

Three-phase loop: receive broken configs, fix them, get graded.

📥

1. Reset

Agent receives broken Dockerfile or GitHub Actions YAML, error messages, and available secrets.

🔧

2. Observe → Act

Read errors, analyze files, edit content, replace lines, or request hints. Up to 10 steps per episode.

📊

3. Grade

Deterministic scoring based on issues fixed, efficiency, and hint usage. Score range: 0.0 → 1.0.

The 6 Tasks

30 scenarios across 6 categories with clear difficulty progression.

dockerfile_syntax Easy

Dockerfile Syntax Errors

Simple typos and instruction errors that break docker build — misspelled filenames, invalid base images, broken line continuations.

5 scenarios
dockerfile_runtime Medium

Dockerfile Runtime Errors

Dockerfile builds but the container crashes at runtime — missing WORKDIR, CMD/ENTRYPOINT conflicts, permission issues.

5 scenarios
workflow_syntax_structure Easy

Workflow Syntax & Structure

GitHub Actions YAML with structural problems — missing runs-on, invalid triggers, steps without actions.

5 scenarios
workflow_secrets_permissions Medium

Secrets & Permissions

Secrets exist but aren't wired correctly — missing env: blocks, wrong syntax, missing token permissions.

5 scenarios
ci_docker_integration Medium-Hard

CI + Docker Integration

Workflow and Dockerfile interact — fixing one alone isn't enough. Build context mismatches, missing login steps.

5 scenarios
multi_stage_pipeline_matrix Hard

Multi-Stage & Matrix Pipelines

Complex pipelines with 2-3 interacting bugs across multiple files. Artifact mismatches, matrix failures, cross-job dependencies.

5 scenarios

Grading System

Deterministic and dynamic — same actions always produce the same score.

40%

Partial Fixes

Proportional to fraction of issues fixed

30%

Complete Bonus

All-or-nothing bonus when every issue is fixed

30%

Efficiency

Bonus for solving in minimal steps

−5%

Hint Penalty

Per hint requested by the agent

Baseline Results

Tested with meta-llama/Llama-3.1-70B-Instruct via HuggingFace router.

dockerfile_syntax
1.000
dockerfile_runtime
1.000
workflow_syntax_structure
0.000
workflow_secrets_permissions
1.000
ci_docker_integration
0.000
multi_stage_pipeline_matrix
0.283
OVERALL
0.547

API Endpoints

12 endpoints for environment control, grading, and introspection.

Endpoint Method Description
/health GET Health check — returns {"status": "healthy"}
/metadata GET Environment name, description, version, tags
/schema GET Action, observation, and state JSON schemas
/reset POST Start a new episode (optional: task_id, scenario_id, seed)
/step POST Take an action and receive observation + reward
/state GET Get current observation without acting
/info GET Task list with metadata
/tasks GET All tasks with difficulty levels
/grader POST Grade a trajectory (list of step dicts)
/baseline POST Run built-in heuristic baseline
/mcp POST JSON-RPC 2.0 MCP endpoint
/docs GET Interactive Swagger API documentation

Quick Start

Run a full episode in 3 commands.

# 1. Start an episode curl -X POST http://localhost:8000/reset \ -H "Content-Type: application/json" \ -d '{"task_id": "dockerfile_syntax", "scenario_id": "typo_filename"}' # 2. Fix the typo curl -X POST http://localhost:8000/step \ -H "Content-Type: application/json" \ -d '{"action": {"action_type": "edit_file", "edits": [{"file_path": "Dockerfile", "old_content": "COPY requirments.txt .", "new_content": "COPY requirements.txt ."}]}}' # 3. Submit curl -X POST http://localhost:8000/step \ -H "Content-Type: application/json" \ -d '{"action": {"action_type": "submit"}}'