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.
Three-phase loop: receive broken configs, fix them, get graded.
Agent receives broken Dockerfile or GitHub Actions YAML, error messages, and available secrets.
Read errors, analyze files, edit content, replace lines, or request hints. Up to 10 steps per episode.
Deterministic scoring based on issues fixed, efficiency, and hint usage. Score range: 0.0 → 1.0.
30 scenarios across 6 categories with clear difficulty progression.
Simple typos and instruction errors that break docker build — misspelled filenames, invalid base images, broken line continuations.
Dockerfile builds but the container crashes at runtime — missing WORKDIR, CMD/ENTRYPOINT conflicts, permission issues.
GitHub Actions YAML with structural problems — missing runs-on, invalid triggers, steps without actions.
Secrets exist but aren't wired correctly — missing env: blocks, wrong syntax, missing token permissions.
Workflow and Dockerfile interact — fixing one alone isn't enough. Build context mismatches, missing login steps.
Complex pipelines with 2-3 interacting bugs across multiple files. Artifact mismatches, matrix failures, cross-job dependencies.
Deterministic and dynamic — same actions always produce the same score.
Proportional to fraction of issues fixed
All-or-nothing bonus when every issue is fixed
Bonus for solving in minimal steps
Per hint requested by the agent
Tested with meta-llama/Llama-3.1-70B-Instruct via HuggingFace router.
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 |
Run a full episode in 3 commands.