CodeBug / openenv.yaml
vinith17's picture
fix: cleanup openenv.yaml schema and make graders self-contained to fix Phase 2 validation
f00408b
Raw History Blame Contribute Delete
1.38 kB
name: "CodeBug Review Environment"
version: "1.2.0"
description: "RL environment where an AI agent reviews code snippets to identify bugs. Five tasks covering logic and security. Reward strictly in (0,1) per step."
entry_point: "main:app"
environment_class: "environment.CodeBugEnvironment"
action_class: "models.CodeReviewAction"
observation_class: "models.CodeReviewObservation"
author: "vinith17"
tags: ["rl", "code-review", "security", "agent", "pytorch-hackathon"]
tasks:
- id: "task_easy_001"
name: "Balance Transfer Boundary Bug"
description: "Detect strict > instead of >= in balance check."
difficulty: "easy"
grader: "tasks.easy.grader:grade"
- id: "task_medium_002"
name: "Find Max Off-by-One"
description: "Detect range(len(x)-1) skipping the last element."
difficulty: "medium"
grader: "tasks.medium.grader:grade"
- id: "task_hard_003"
name: "SQL Injection Detection"
description: "Detect f-string SQL injection."
difficulty: "hard"
grader: "tasks.hard.grader:grade"
- id: "task_extra_004"
name: "Hardcoded API Key"
description: "Detect hardcoded secrets."
difficulty: "hard"
grader: "tasks.extra1.grader:grade"
- id: "task_extra_005"
name: "Division by Zero"
description: "Detect division without zero-check."
difficulty: "medium"
grader: "tasks.extra2.grader:grade"