doosaganesh commited on
Commit
ccc882a
·
verified ·
1 Parent(s): fbd855c

Upload 7 files

Browse files
Files changed (2) hide show
  1. .gitignore +9 -0
  2. openenv.yaml +5 -63
.gitignore CHANGED
@@ -18,3 +18,12 @@ __pycache__/
18
  # OS generated files
19
  .DS_Store
20
  Thumbs.db
 
 
 
 
 
 
 
 
 
 
18
  # OS generated files
19
  .DS_Store
20
  Thumbs.db
21
+
22
+ # Hackathon research files (not part of submission)
23
+ *.pdf
24
+ hackathon_*.txt
25
+ hackathon_*.pdf
26
+ problem_statement.txt
27
+
28
+ # Leftover subdirectory
29
+ openenv-git-conflict-resolver/
openenv.yaml CHANGED
@@ -1,64 +1,6 @@
 
1
  name: git-conflict-resolver
2
- version: "1.0.0"
3
- description: >
4
- An RL environment where AI agents learn to resolve Git merge conflicts.
5
- The agent receives a file containing conflict markers (<<<<<<<, =======, >>>>>>>)
6
- and must produce a clean, correctly resolved version of the file.
7
- Tasks range from resolving a single obvious conflict to combining additive
8
- changes from both branches in a semantically correct way.
9
-
10
- author: "Agent Smith"
11
- license: MIT
12
- tags:
13
- - openenv
14
- - git
15
- - code-review
16
- - software-engineering
17
- - conflict-resolution
18
-
19
- tasks:
20
- - name: single_conflict
21
- difficulty: easy
22
- description: "Resolve a single Git conflict block by accepting the correct incoming change."
23
- - name: multi_conflict
24
- difficulty: medium
25
- description: "Resolve three conflict blocks, each requiring a different resolution strategy."
26
- - name: logic_conflict
27
- difficulty: hard
28
- description: "Resolve two conflict blocks by combining additive changes from both branches."
29
-
30
- action_space:
31
- type: text
32
- description: "The agent outputs the full resolved file content as a string."
33
-
34
- observation_space:
35
- type: structured
36
- fields:
37
- - task_name: string
38
- - task_description: string
39
- - filename: string
40
- - file_language: string
41
- - conflicted_content: string
42
- - branch_ours: string
43
- - branch_theirs: string
44
- - num_conflicts: integer
45
- - last_attempt: string (nullable)
46
- - last_error: string (nullable)
47
- - step: integer
48
- - max_steps: integer
49
- - done: boolean
50
-
51
- reward:
52
- type: float
53
- range: [0.0, 1.0]
54
- shaped: true
55
- description: >
56
- Shaped reward per step. Components include:
57
- improvement bonus (score delta), marker-free bonus,
58
- perfect-match bonus, stagnation penalty, and step cost.
59
-
60
- endpoints:
61
- reset: POST /reset
62
- step: POST /step
63
- state: GET /state
64
- health: GET /health
 
1
+ spec_version: 1
2
  name: git-conflict-resolver
3
+ type: space
4
+ runtime: fastapi
5
+ app: server.app:app
6
+ port: 7860