Spaces:
Sleeping
Sleeping
commit
Browse files1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677name: code-review-envversion: "1.0.0"description: >An OpenEnv reinforcement-learning environment where AI agents learn toreview source code for syntax errors, logic bugs, and security vulnerabilities.Agents receive partial reward signals at each step, enabling curriculum learningfrom easy syntax checks up to multi-vulnerability security audits.author: Simran Shaikhtags:- openenv- code-review- security- software-engineering- real-worldlanguage: pythontasks:- id: easy_syntaxname: "Python Syntax Error Detection"difficulty: easymax_steps: 5description: >Identify and fix a syntax error hidden in a short Python function.Graded on: correct issue_type, description accuracy, and fix validity.- id: medium_logicname: "Logic Bug: Off-by-One in Palindrome Check"difficulty: mediummax_steps: 8description: >Find and fix a subtle off-by-one indexing bug in a palindrome checker.Fix is verified by executing 5 deterministic test cases.- id: hard_securityname: "Security Vulnerability: SQL Injection, Path Traversal & Weak Hashing"difficulty: hardmax_steps: 10description: >Perform a full security audit of an authentication module containingthree distinct vulnerabilities. All must be identified and remediated.api:reset: POST /resetstep: POST /stepstate: GET /statetasks: GET /tasksreward:min: 0.0max: 1.0type: continuouspartial_credit: trueobservation_space:task_id: stringtask_name: stringdifficulty: stringlanguage: stringcode_snippet: stringcontext: stringstep_number: integermax_steps: integerprevious_feedback: string | nullaction_space:identified_issues:type: arrayitems:line_number: integer | nullissue_type: "syntax_error | logic_bug | security_vulnerability | performance | style"description: stringseverity: "low | medium | high | critical"suggested_fix: string | nullexplanation: stringdone: boolean123456spec_version: 1name: code_review_envtype: spaceruntime: fastapiapp: server.app:appport: 7860
openenv.yaml+6-77