ssebench 1.0.0rc1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. ssebench-1.0.0rc1/.gitignore +63 -0
  2. ssebench-1.0.0rc1/LICENSE +202 -0
  3. ssebench-1.0.0rc1/NOTICE +10 -0
  4. ssebench-1.0.0rc1/PKG-INFO +89 -0
  5. ssebench-1.0.0rc1/README.md +52 -0
  6. ssebench-1.0.0rc1/hatch_build.py +108 -0
  7. ssebench-1.0.0rc1/pyproject.toml +61 -0
  8. ssebench-1.0.0rc1/src/ssebench/__init__.py +5 -0
  9. ssebench-1.0.0rc1/src/ssebench/__main__.py +7 -0
  10. ssebench-1.0.0rc1/src/ssebench/_data/.env.example +33 -0
  11. ssebench-1.0.0rc1/src/ssebench/_data/agents/README.md +26 -0
  12. ssebench-1.0.0rc1/src/ssebench/_data/agents/claude-code/.dockerignore +11 -0
  13. ssebench-1.0.0rc1/src/ssebench/_data/agents/claude-code/Dockerfile +64 -0
  14. ssebench-1.0.0rc1/src/ssebench/_data/agents/claude-code/agent.yaml +1 -0
  15. ssebench-1.0.0rc1/src/ssebench/_data/agents/claude-code/claude-code-sse/main.py +441 -0
  16. ssebench-1.0.0rc1/src/ssebench/_data/agents/claude-code/claude-code-sse/pyproject.toml +13 -0
  17. ssebench-1.0.0rc1/src/ssebench/_data/agents/claude-code/claude-code-sse/run.sh +17 -0
  18. ssebench-1.0.0rc1/src/ssebench/_data/agents/codex/.dockerignore +11 -0
  19. ssebench-1.0.0rc1/src/ssebench/_data/agents/codex/Dockerfile +26 -0
  20. ssebench-1.0.0rc1/src/ssebench/_data/agents/codex/agent.yaml +1 -0
  21. ssebench-1.0.0rc1/src/ssebench/_data/agents/codex/codex-sse/config.py +28 -0
  22. ssebench-1.0.0rc1/src/ssebench/_data/agents/codex/codex-sse/main.py +108 -0
  23. ssebench-1.0.0rc1/src/ssebench/_data/agents/codex/codex-sse/pyproject.toml +14 -0
  24. ssebench-1.0.0rc1/src/ssebench/_data/agents/codex/codex-sse/run.sh +12 -0
  25. ssebench-1.0.0rc1/src/ssebench/_data/agents/dummy/Dockerfile +5 -0
  26. ssebench-1.0.0rc1/src/ssebench/_data/agents/dummy/agent.yaml +1 -0
  27. ssebench-1.0.0rc1/src/ssebench/_data/agents/opencode/.dockerignore +11 -0
  28. ssebench-1.0.0rc1/src/ssebench/_data/agents/opencode/Dockerfile +27 -0
  29. ssebench-1.0.0rc1/src/ssebench/_data/agents/opencode/agent.yaml +1 -0
  30. ssebench-1.0.0rc1/src/ssebench/_data/agents/opencode/opencode-sse/main.py +704 -0
  31. ssebench-1.0.0rc1/src/ssebench/_data/agents/opencode/opencode-sse/pyproject.toml +14 -0
  32. ssebench-1.0.0rc1/src/ssebench/_data/agents/opencode/opencode-sse/run.sh +10 -0
  33. ssebench-1.0.0rc1/src/ssebench/_data/agents/reference/.dockerignore +11 -0
  34. ssebench-1.0.0rc1/src/ssebench/_data/agents/reference/Dockerfile +25 -0
  35. ssebench-1.0.0rc1/src/ssebench/_data/agents/reference/README.md +44 -0
  36. ssebench-1.0.0rc1/src/ssebench/_data/agents/reference/agent.yaml +1 -0
  37. ssebench-1.0.0rc1/src/ssebench/_data/agents/reference/reference-sse/main.py +147 -0
  38. ssebench-1.0.0rc1/src/ssebench/_data/agents/reference/reference-sse/pyproject.toml +11 -0
  39. ssebench-1.0.0rc1/src/ssebench/_data/agents/ruff.toml +3 -0
  40. ssebench-1.0.0rc1/src/ssebench/_data/datasets/pilot/LICENSE +396 -0
  41. ssebench-1.0.0rc1/src/ssebench/_data/datasets/pilot/images.lock.json +5 -0
  42. ssebench-1.0.0rc1/src/ssebench/_data/datasets/pilot/manifest.json +3885 -0
  43. ssebench-1.0.0rc1/src/ssebench/_data/deploy/compose/demo.yaml +58 -0
  44. ssebench-1.0.0rc1/src/ssebench/_data/deploy/compose/docker-compose.yaml +72 -0
  45. ssebench-1.0.0rc1/src/ssebench/_data/images/common/setup-source.sh +50 -0
  46. ssebench-1.0.0rc1/src/ssebench/_data/images/common/share-build-caches.sh +15 -0
  47. ssebench-1.0.0rc1/src/ssebench/_data/images/litellm/Dockerfile +11 -0
  48. ssebench-1.0.0rc1/src/ssebench/_data/images/litellm/config_gen.py +59 -0
  49. ssebench-1.0.0rc1/src/ssebench/_data/images/sandbox/Dockerfile +120 -0
  50. ssebench-1.0.0rc1/src/ssebench/_data/images/sidecar-agent/Dockerfile +67 -0
  51. ssebench-1.0.0rc1/src/ssebench/_data/images/sidecar-case/Dockerfile +46 -0
  52. ssebench-1.0.0rc1/src/ssebench/_data/images/sidecar-case/entrypoint.sh +29 -0
  53. ssebench-1.0.0rc1/src/ssebench/_data/models/anthropic-claude.yaml +63 -0
  54. ssebench-1.0.0rc1/src/ssebench/_data/models/google-gemini.yaml +16 -0
  55. ssebench-1.0.0rc1/src/ssebench/_data/models/openai-gpt.yaml +32 -0
  56. ssebench-1.0.0rc1/src/ssebench/_data/pyproject.toml +70 -0
  57. ssebench-1.0.0rc1/src/ssebench/_data/runtime/evaluator/archive.py +27 -0
  58. ssebench-1.0.0rc1/src/ssebench/_data/runtime/evaluator/main.py +150 -0
  59. ssebench-1.0.0rc1/src/ssebench/_data/runtime/evaluator/pyproject.toml +11 -0
  60. ssebench-1.0.0rc1/src/ssebench/_data/runtime/evaluator/tests/test_main.py +88 -0
  61. ssebench-1.0.0rc1/src/ssebench/_data/runtime/mcp/config.py +77 -0
  62. ssebench-1.0.0rc1/src/ssebench/_data/runtime/mcp/evaluator.py +146 -0
  63. ssebench-1.0.0rc1/src/ssebench/_data/runtime/mcp/patch_report.py +196 -0
  64. ssebench-1.0.0rc1/src/ssebench/_data/runtime/mcp/pyproject.toml +13 -0
  65. ssebench-1.0.0rc1/src/ssebench/_data/runtime/mcp/server.py +41 -0
  66. ssebench-1.0.0rc1/src/ssebench/_data/runtime/mcp/tests/test_config.py +38 -0
  67. ssebench-1.0.0rc1/src/ssebench/_data/runtime/mcp/tests/test_evaluator.py +147 -0
  68. ssebench-1.0.0rc1/src/ssebench/_data/runtime/mcp/tests/test_patch_report.py +254 -0
  69. ssebench-1.0.0rc1/src/ssebench/_data/runtime/plugins/artifact/README.md +18 -0
  70. ssebench-1.0.0rc1/src/ssebench/_data/runtime/plugins/artifact/main.py +102 -0
  71. ssebench-1.0.0rc1/src/ssebench/_data/runtime/plugins/artifact/pyproject.toml +6 -0
  72. ssebench-1.0.0rc1/src/ssebench/_data/runtime/plugins/artifact/run.sh +4 -0
  73. ssebench-1.0.0rc1/src/ssebench/_data/runtime/plugins/oracle/README.md +39 -0
  74. ssebench-1.0.0rc1/src/ssebench/_data/runtime/plugins/oracle/config.py +22 -0
  75. ssebench-1.0.0rc1/src/ssebench/_data/runtime/plugins/oracle/fuzz.py +59 -0
  76. ssebench-1.0.0rc1/src/ssebench/_data/runtime/plugins/oracle/main.py +78 -0
  77. ssebench-1.0.0rc1/src/ssebench/_data/runtime/plugins/oracle/pyproject.toml +12 -0
  78. ssebench-1.0.0rc1/src/ssebench/_data/runtime/plugins/oracle/review.py +120 -0
  79. ssebench-1.0.0rc1/src/ssebench/_data/runtime/plugins/oracle/run.sh +4 -0
  80. ssebench-1.0.0rc1/src/ssebench/_data/runtime/plugins/oracle/skills/fuzzing/SKILL.md +89 -0
  81. ssebench-1.0.0rc1/src/ssebench/_data/runtime/plugins/oracle/skills/harness-generation/SKILL.md +245 -0
  82. ssebench-1.0.0rc1/src/ssebench/_data/runtime/plugins/oracle/skills/seeds-collection/SKILL.md +69 -0
  83. ssebench-1.0.0rc1/src/ssebench/_data/runtime/plugins/oracle/tests/test_review.py +100 -0
  84. ssebench-1.0.0rc1/src/ssebench/_data/runtime/plugins/plugins.yaml +32 -0
  85. ssebench-1.0.0rc1/src/ssebench/_data/runtime/plugins/schema.json +36 -0
  86. ssebench-1.0.0rc1/src/ssebench/_data/sdk/python/README.md +60 -0
  87. ssebench-1.0.0rc1/src/ssebench/_data/sdk/python/pyproject.toml +74 -0
  88. ssebench-1.0.0rc1/src/ssebench/_data/sdk/python/sse/__init__.py +18 -0
  89. ssebench-1.0.0rc1/src/ssebench/_data/sdk/python/sse/ai.py +471 -0
  90. ssebench-1.0.0rc1/src/ssebench/_data/sdk/python/sse/cheating.py +31 -0
  91. ssebench-1.0.0rc1/src/ssebench/_data/sdk/python/sse/daemon.py +144 -0
  92. ssebench-1.0.0rc1/src/ssebench/_data/sdk/python/sse/error.py +18 -0
  93. ssebench-1.0.0rc1/src/ssebench/_data/sdk/python/sse/grading.py +178 -0
  94. ssebench-1.0.0rc1/src/ssebench/_data/sdk/python/sse/helper.py +66 -0
  95. ssebench-1.0.0rc1/src/ssebench/_data/sdk/python/sse/metadata.py +74 -0
  96. ssebench-1.0.0rc1/src/ssebench/_data/sdk/python/sse/project.py +78 -0
  97. ssebench-1.0.0rc1/src/ssebench/_data/sdk/python/sse/prompt.py +148 -0
  98. ssebench-1.0.0rc1/src/ssebench/_data/sdk/python/sse/py.typed +0 -0
  99. ssebench-1.0.0rc1/src/ssebench/_data/sdk/python/sse/reference.py +29 -0
  100. ssebench-1.0.0rc1/src/ssebench/_data/sdk/python/sse/tools/__init__.py +2 -0
  101. ssebench-1.0.0rc1/src/ssebench/_data/sdk/python/sse/tools/bash.py +15 -0
  102. ssebench-1.0.0rc1/src/ssebench/_data/sdk/python/sse/tools/bencher.py +90 -0
  103. ssebench-1.0.0rc1/src/ssebench/_data/uv.lock +2650 -0
  104. ssebench-1.0.0rc1/src/ssebench/agents/__init__.py +3 -0
  105. ssebench-1.0.0rc1/src/ssebench/agents/agent.py +143 -0
  106. ssebench-1.0.0rc1/src/ssebench/arch.py +56 -0
  107. ssebench-1.0.0rc1/src/ssebench/backends/__init__.py +67 -0
  108. ssebench-1.0.0rc1/src/ssebench/backends/base.py +418 -0
  109. ssebench-1.0.0rc1/src/ssebench/backends/docker.py +463 -0
  110. ssebench-1.0.0rc1/src/ssebench/backends/images.py +28 -0
  111. ssebench-1.0.0rc1/src/ssebench/backends/kubernetes/__init__.py +6 -0
  112. ssebench-1.0.0rc1/src/ssebench/backends/kubernetes/api.py +237 -0
  113. ssebench-1.0.0rc1/src/ssebench/backends/kubernetes/archive.py +99 -0
  114. ssebench-1.0.0rc1/src/ssebench/backends/kubernetes/backend.py +622 -0
  115. ssebench-1.0.0rc1/src/ssebench/backends/kubernetes/config.py +150 -0
  116. ssebench-1.0.0rc1/src/ssebench/backends/kubernetes/forward.py +134 -0
  117. ssebench-1.0.0rc1/src/ssebench/backends/kubernetes/manifests.py +320 -0
  118. ssebench-1.0.0rc1/src/ssebench/cli/__init__.py +5 -0
  119. ssebench-1.0.0rc1/src/ssebench/cli/build.py +95 -0
  120. ssebench-1.0.0rc1/src/ssebench/cli/cli.py +568 -0
  121. ssebench-1.0.0rc1/src/ssebench/cli/dataset.py +352 -0
  122. ssebench-1.0.0rc1/src/ssebench/cli/demo.py +91 -0
  123. ssebench-1.0.0rc1/src/ssebench/cli/init.py +36 -0
  124. ssebench-1.0.0rc1/src/ssebench/cli/runs.py +435 -0
  125. ssebench-1.0.0rc1/src/ssebench/cli/tasks.py +69 -0
  126. ssebench-1.0.0rc1/src/ssebench/dataset/__init__.py +1 -0
  127. ssebench-1.0.0rc1/src/ssebench/dataset/dockerfile.py +141 -0
  128. ssebench-1.0.0rc1/src/ssebench/dataset/generate.py +88 -0
  129. ssebench-1.0.0rc1/src/ssebench/dataset/publish.py +244 -0
  130. ssebench-1.0.0rc1/src/ssebench/dataset/schema.py +41 -0
  131. ssebench-1.0.0rc1/src/ssebench/dataset/validate.py +175 -0
  132. ssebench-1.0.0rc1/src/ssebench/dataset/verify.py +513 -0
  133. ssebench-1.0.0rc1/src/ssebench/demo.py +674 -0
  134. ssebench-1.0.0rc1/src/ssebench/doctor.py +329 -0
  135. ssebench-1.0.0rc1/src/ssebench/errors.py +8 -0
  136. ssebench-1.0.0rc1/src/ssebench/extensions.py +266 -0
  137. ssebench-1.0.0rc1/src/ssebench/middleware/__init__.py +15 -0
  138. ssebench-1.0.0rc1/src/ssebench/middleware/tools.py +195 -0
  139. ssebench-1.0.0rc1/src/ssebench/models/__init__.py +3 -0
  140. ssebench-1.0.0rc1/src/ssebench/models/model.py +147 -0
  141. ssebench-1.0.0rc1/src/ssebench/paths.py +131 -0
  142. ssebench-1.0.0rc1/src/ssebench/pipe/__init__.py +5 -0
  143. ssebench-1.0.0rc1/src/ssebench/pipe/build.py +31 -0
  144. ssebench-1.0.0rc1/src/ssebench/pipe/interface.py +10 -0
  145. ssebench-1.0.0rc1/src/ssebench/pipe/registry.py +8 -0
  146. ssebench-1.0.0rc1/src/ssebench/plugins.py +107 -0
  147. ssebench-1.0.0rc1/src/ssebench/runner/__init__.py +3 -0
  148. ssebench-1.0.0rc1/src/ssebench/runner/layout.py +66 -0
  149. ssebench-1.0.0rc1/src/ssebench/runner/lifecycle.py +119 -0
  150. ssebench-1.0.0rc1/src/ssebench/runner/reference.py +72 -0
  151. ssebench-1.0.0rc1/src/ssebench/runner/result.py +107 -0
  152. ssebench-1.0.0rc1/src/ssebench/runner/runner.py +387 -0
  153. ssebench-1.0.0rc1/src/ssebench/settings.py +77 -0
  154. ssebench-1.0.0rc1/src/ssebench/stack.py +292 -0
  155. ssebench-1.0.0rc1/src/ssebench/tasks/__init__.py +5 -0
  156. ssebench-1.0.0rc1/src/ssebench/tasks/catalog.py +281 -0
  157. ssebench-1.0.0rc1/src/ssebench/tasks/local.py +155 -0
  158. ssebench-1.0.0rc1/src/ssebench/tasks/manifest.py +130 -0
  159. ssebench-1.0.0rc1/src/ssebench/tasks/metadata.py +126 -0
  160. ssebench-1.0.0rc1/src/ssebench/tasks/task.py +79 -0
  161. ssebench-1.0.0rc1/src/ssebench/version.py +30 -0
  162. ssebench-1.0.0rc1/src/ssebench/workspace.py +78 -0
@@ -0,0 +1,63 @@
1
+ # Secrets and local configuration
2
+ .env
3
+ .env.*
4
+ !.env.example
5
+ .envrc.local
6
+ .direnv/
7
+
8
+ # Run outputs
9
+ /results/
10
+ /tools/report/*.pdf
11
+ /tools/report/result.json
12
+ *.log
13
+
14
+ # Python
15
+ __pycache__/
16
+ *.py[cod]
17
+ *$py.class
18
+ *.so
19
+ *.egg-info/
20
+ .eggs/
21
+ .venv/
22
+ venv/
23
+ .ruff_cache/
24
+ .mypy_cache/
25
+ .pytest_cache/
26
+ .pdm-python
27
+ .coverage
28
+ .coverage.*
29
+ htmlcov/
30
+
31
+ # Rust
32
+ target/
33
+
34
+ # JavaScript and TypeScript (webui, docs)
35
+ node_modules/
36
+ node_modules.bun
37
+ dist-ssr/
38
+ *.tsbuildinfo
39
+ .eslintcache
40
+ .npm/
41
+ npm-debug.log*
42
+ docs/.vitepress/cache/
43
+ docs/.vitepress/dist/
44
+ .opencode/
45
+
46
+ # Build outputs
47
+ dist/
48
+ /webui/pty-proxy/pty-proxy
49
+ *.sqlite
50
+
51
+ # Nix
52
+ result
53
+ result-*
54
+
55
+ # Editors and OS
56
+ .idea/
57
+ .vscode/*
58
+ !.vscode/extensions.json
59
+ *.swp
60
+ *.swo
61
+ *~
62
+ .DS_Store
63
+ Thumbs.db
@@ -0,0 +1,202 @@
1
+
2
+ Apache License
3
+ Version 2.0, January 2004
4
+ http://www.apache.org/licenses/
5
+
6
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
7
+
8
+ 1. Definitions.
9
+
10
+ "License" shall mean the terms and conditions for use, reproduction,
11
+ and distribution as defined by Sections 1 through 9 of this document.
12
+
13
+ "Licensor" shall mean the copyright owner or entity authorized by
14
+ the copyright owner that is granting the License.
15
+
16
+ "Legal Entity" shall mean the union of the acting entity and all
17
+ other entities that control, are controlled by, or are under common
18
+ control with that entity. For the purposes of this definition,
19
+ "control" means (i) the power, direct or indirect, to cause the
20
+ direction or management of such entity, whether by contract or
21
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
22
+ outstanding shares, or (iii) beneficial ownership of such entity.
23
+
24
+ "You" (or "Your") shall mean an individual or Legal Entity
25
+ exercising permissions granted by this License.
26
+
27
+ "Source" form shall mean the preferred form for making modifications,
28
+ including but not limited to software source code, documentation
29
+ source, and configuration files.
30
+
31
+ "Object" form shall mean any form resulting from mechanical
32
+ transformation or translation of a Source form, including but
33
+ not limited to compiled object code, generated documentation,
34
+ and conversions to other media types.
35
+
36
+ "Work" shall mean the work of authorship, whether in Source or
37
+ Object form, made available under the License, as indicated by a
38
+ copyright notice that is included in or attached to the work
39
+ (an example is provided in the Appendix below).
40
+
41
+ "Derivative Works" shall mean any work, whether in Source or Object
42
+ form, that is based on (or derived from) the Work and for which the
43
+ editorial revisions, annotations, elaborations, or other modifications
44
+ represent, as a whole, an original work of authorship. For the purposes
45
+ of this License, Derivative Works shall not include works that remain
46
+ separable from, or merely link (or bind by name) to the interfaces of,
47
+ the Work and Derivative Works thereof.
48
+
49
+ "Contribution" shall mean any work of authorship, including
50
+ the original version of the Work and any modifications or additions
51
+ to that Work or Derivative Works thereof, that is intentionally
52
+ submitted to Licensor for inclusion in the Work by the copyright owner
53
+ or by an individual or Legal Entity authorized to submit on behalf of
54
+ the copyright owner. For the purposes of this definition, "submitted"
55
+ means any form of electronic, verbal, or written communication sent
56
+ to the Licensor or its representatives, including but not limited to
57
+ communication on electronic mailing lists, source code control systems,
58
+ and issue tracking systems that are managed by, or on behalf of, the
59
+ Licensor for the purpose of discussing and improving the Work, but
60
+ excluding communication that is conspicuously marked or otherwise
61
+ designated in writing by the copyright owner as "Not a Contribution."
62
+
63
+ "Contributor" shall mean Licensor and any individual or Legal Entity
64
+ on behalf of whom a Contribution has been received by Licensor and
65
+ subsequently incorporated within the Work.
66
+
67
+ 2. Grant of Copyright License. Subject to the terms and conditions of
68
+ this License, each Contributor hereby grants to You a perpetual,
69
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
70
+ copyright license to reproduce, prepare Derivative Works of,
71
+ publicly display, publicly perform, sublicense, and distribute the
72
+ Work and such Derivative Works in Source or Object form.
73
+
74
+ 3. Grant of Patent License. Subject to the terms and conditions of
75
+ this License, each Contributor hereby grants to You a perpetual,
76
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
77
+ (except as stated in this section) patent license to make, have made,
78
+ use, offer to sell, sell, import, and otherwise transfer the Work,
79
+ where such license applies only to those patent claims licensable
80
+ by such Contributor that are necessarily infringed by their
81
+ Contribution(s) alone or by combination of their Contribution(s)
82
+ with the Work to which such Contribution(s) was submitted. If You
83
+ institute patent litigation against any entity (including a
84
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
85
+ or a Contribution incorporated within the Work constitutes direct
86
+ or contributory patent infringement, then any patent licenses
87
+ granted to You under this License for that Work shall terminate
88
+ as of the date such litigation is filed.
89
+
90
+ 4. Redistribution. You may reproduce and distribute copies of the
91
+ Work or Derivative Works thereof in any medium, with or without
92
+ modifications, and in Source or Object form, provided that You
93
+ meet the following conditions:
94
+
95
+ (a) You must give any other recipients of the Work or
96
+ Derivative Works a copy of this License; and
97
+
98
+ (b) You must cause any modified files to carry prominent notices
99
+ stating that You changed the files; and
100
+
101
+ (c) You must retain, in the Source form of any Derivative Works
102
+ that You distribute, all copyright, patent, trademark, and
103
+ attribution notices from the Source form of the Work,
104
+ excluding those notices that do not pertain to any part of
105
+ the Derivative Works; and
106
+
107
+ (d) If the Work includes a "NOTICE" text file as part of its
108
+ distribution, then any Derivative Works that You distribute must
109
+ include a readable copy of the attribution notices contained
110
+ within such NOTICE file, excluding those notices that do not
111
+ pertain to any part of the Derivative Works, in at least one
112
+ of the following places: within a NOTICE text file distributed
113
+ as part of the Derivative Works; within the Source form or
114
+ documentation, if provided along with the Derivative Works; or,
115
+ within a display generated by the Derivative Works, if and
116
+ wherever such third-party notices normally appear. The contents
117
+ of the NOTICE file are for informational purposes only and
118
+ do not modify the License. You may add Your own attribution
119
+ notices within Derivative Works that You distribute, alongside
120
+ or as an addendum to the NOTICE text from the Work, provided
121
+ that such additional attribution notices cannot be construed
122
+ as modifying the License.
123
+
124
+ You may add Your own copyright statement to Your modifications and
125
+ may provide additional or different license terms and conditions
126
+ for use, reproduction, or distribution of Your modifications, or
127
+ for any such Derivative Works as a whole, provided Your use,
128
+ reproduction, and distribution of the Work otherwise complies with
129
+ the conditions stated in this License.
130
+
131
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
132
+ any Contribution intentionally submitted for inclusion in the Work
133
+ by You to the Licensor shall be under the terms and conditions of
134
+ this License, without any additional terms or conditions.
135
+ Notwithstanding the above, nothing herein shall supersede or modify
136
+ the terms of any separate license agreement you may have executed
137
+ with Licensor regarding such Contributions.
138
+
139
+ 6. Trademarks. This License does not grant permission to use the trade
140
+ names, trademarks, service marks, or product names of the Licensor,
141
+ except as required for reasonable and customary use in describing the
142
+ origin of the Work and reproducing the content of the NOTICE file.
143
+
144
+ 7. Disclaimer of Warranty. Unless required by applicable law or
145
+ agreed to in writing, Licensor provides the Work (and each
146
+ Contributor provides its Contributions) on an "AS IS" BASIS,
147
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
148
+ implied, including, without limitation, any warranties or conditions
149
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
150
+ PARTICULAR PURPOSE. You are solely responsible for determining the
151
+ appropriateness of using or redistributing the Work and assume any
152
+ risks associated with Your exercise of permissions under this License.
153
+
154
+ 8. Limitation of Liability. In no event and under no legal theory,
155
+ whether in tort (including negligence), contract, or otherwise,
156
+ unless required by applicable law (such as deliberate and grossly
157
+ negligent acts) or agreed to in writing, shall any Contributor be
158
+ liable to You for damages, including any direct, indirect, special,
159
+ incidental, or consequential damages of any character arising as a
160
+ result of this License or out of the use or inability to use the
161
+ Work (including but not limited to damages for loss of goodwill,
162
+ work stoppage, computer failure or malfunction, or any and all
163
+ other commercial damages or losses), even if such Contributor
164
+ has been advised of the possibility of such damages.
165
+
166
+ 9. Accepting Warranty or Additional Liability. While redistributing
167
+ the Work or Derivative Works thereof, You may choose to offer,
168
+ and charge a fee for, acceptance of support, warranty, indemnity,
169
+ or other liability obligations and/or rights consistent with this
170
+ License. However, in accepting such obligations, You may act only
171
+ on Your own behalf and on Your sole responsibility, not on behalf
172
+ of any other Contributor, and only if You agree to indemnify,
173
+ defend, and hold each Contributor harmless for any liability
174
+ incurred by, or claims asserted against, such Contributor by reason
175
+ of your accepting any such warranty or additional liability.
176
+
177
+ END OF TERMS AND CONDITIONS
178
+
179
+ APPENDIX: How to apply the Apache License to your work.
180
+
181
+ To apply the Apache License to your work, attach the following
182
+ boilerplate notice, with the fields enclosed by brackets "[]"
183
+ replaced with your own identifying information. (Don't include
184
+ the brackets!) The text should be enclosed in the appropriate
185
+ comment syntax for the file format. We also recommend that a
186
+ file or class name and description of purpose be included on the
187
+ same "printed page" as the copyright notice for easier
188
+ identification within third-party archives.
189
+
190
+ Copyright [yyyy] [name of copyright owner]
191
+
192
+ Licensed under the Apache License, Version 2.0 (the "License");
193
+ you may not use this file except in compliance with the License.
194
+ You may obtain a copy of the License at
195
+
196
+ http://www.apache.org/licenses/LICENSE-2.0
197
+
198
+ Unless required by applicable law or agreed to in writing, software
199
+ distributed under the License is distributed on an "AS IS" BASIS,
200
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
201
+ See the License for the specific language governing permissions and
202
+ limitations under the License.
@@ -0,0 +1,10 @@
1
+ SSEBench
2
+ Copyright 2025-2026 the SSEBench authors
3
+
4
+ This product is licensed under the Apache License, Version 2.0 (see LICENSE).
5
+
6
+ Third-party components and the tasks in datasets/pilot carry their own
7
+ licenses. Task material written for SSEBench is licensed under CC BY 4.0
8
+ (see datasets/pilot/LICENSE); upstream source code, patches and tests
9
+ included in the tasks keep their original licenses. Per-task attribution is
10
+ listed in datasets/pilot/THIRD_PARTY.md.
@@ -0,0 +1,89 @@
1
+ Metadata-Version: 2.5
2
+ Name: ssebench
3
+ Version: 1.0.0rc1
4
+ Summary: Benchmark AI coding agents on real security vulnerabilities
5
+ Project-URL: Homepage, https://github.com/42-b3yond-6ug/ssebench
6
+ Project-URL: Documentation, https://github.com/42-b3yond-6ug/ssebench/tree/main/docs
7
+ Project-URL: Repository, https://github.com/42-b3yond-6ug/ssebench
8
+ Project-URL: Issues, https://github.com/42-b3yond-6ug/ssebench/issues
9
+ Author: SSEBench Team
10
+ License-Expression: Apache-2.0
11
+ License-File: LICENSE
12
+ License-File: NOTICE
13
+ Keywords: agents,benchmark,docker,llm,patch,security,vulnerability
14
+ Classifier: Development Status :: 4 - Beta
15
+ Classifier: Environment :: Console
16
+ Classifier: Intended Audience :: Developers
17
+ Classifier: Intended Audience :: Science/Research
18
+ Classifier: Operating System :: MacOS
19
+ Classifier: Operating System :: POSIX :: Linux
20
+ Classifier: Programming Language :: Python :: 3
21
+ Classifier: Programming Language :: Python :: 3.12
22
+ Classifier: Programming Language :: Python :: 3.13
23
+ Classifier: Programming Language :: Python :: Implementation :: CPython
24
+ Classifier: Topic :: Security
25
+ Classifier: Topic :: Software Development :: Testing
26
+ Requires-Python: >=3.12
27
+ Requires-Dist: httpx>=0.28.1
28
+ Requires-Dist: jinja2>=3.1.6
29
+ Requires-Dist: jsonschema>=4.26.0
30
+ Requires-Dist: pydantic>=2.11.9
31
+ Requires-Dist: python-dotenv>=1.1.0
32
+ Requires-Dist: pyyaml>=6.0.3
33
+ Requires-Dist: requests>=2.32.5
34
+ Provides-Extra: kubernetes
35
+ Requires-Dist: kubernetes>=31; extra == 'kubernetes'
36
+ Description-Content-Type: text/markdown
37
+
38
+ # ssebench
39
+
40
+ The command-line tool of [SSEBench](https://github.com/42-b3yond-6ug/ssebench),
41
+ a benchmark that measures how well AI coding agents fix real security
42
+ vulnerabilities.
43
+
44
+ Every task is a publicly disclosed bug in an open-source C, Go or Rust project,
45
+ paired with its upstream fix. `ssebench` builds a Docker image for a task, runs
46
+ one agent with one model on it, and grades the patch the agent leaves behind:
47
+ does the project still build, does the proof of concept stop reproducing, and
48
+ do the project's tests pass. The `pilot` dataset has 55 tasks.
49
+
50
+ ## Install and run
51
+
52
+ `ssebench` needs Docker with the buildx and Compose plugins, and Python 3.12 or
53
+ newer. It runs without a clone of the repository: the wheel carries the agent
54
+ definitions, the model list, the Compose file and the pilot manifest, and the
55
+ task images are pulled from the registry.
56
+
57
+ ```sh
58
+ mkdir ssebench-work && cd ssebench-work
59
+ uvx ssebench init # writes .env with generated secrets, models/ and results/
60
+ uvx ssebench doctor # checks Docker, disk space and .env
61
+ uvx ssebench tasks list # the 55 tasks of the pilot dataset
62
+
63
+ # The reference agent applies the task's known fix, so it needs no API key.
64
+ uvx ssebench run --task gjson-196-bf4efcb --agent reference
65
+
66
+ # A real agent needs the key of its model provider in .env.
67
+ uvx ssebench run --task gjson-196-bf4efcb --agent claude-code --model claude-sonnet-4-6
68
+ ```
69
+
70
+ Install it with `pip install ssebench` or `uv tool install ssebench` instead of
71
+ `uvx` to keep the command. Run it from the directory that `ssebench init` set
72
+ up: that directory holds `.env` and `models/`, and `results/` is written there.
73
+
74
+ The first run of a task pulls its case image and builds the tool and agent
75
+ layers on top of it, which takes a few minutes. The results are in
76
+ `results/<task>/<model>/<agent>/<run-id>/`, a directory of its own for each run.
77
+
78
+ ## Versions
79
+
80
+ SSEBench components are released together under one version. `ssebench` pulls
81
+ the `runtime` image with the same version, and the SDK inside the task
82
+ container, `ssebench-sdk`, has the same version too.
83
+
84
+ ## More
85
+
86
+ - [Documentation](https://github.com/42-b3yond-6ug/ssebench/tree/main/docs)
87
+ - [Source and issues](https://github.com/42-b3yond-6ug/ssebench)
88
+
89
+ Licensed under the Apache License 2.0.
@@ -0,0 +1,52 @@
1
+ # ssebench
2
+
3
+ The command-line tool of [SSEBench](https://github.com/42-b3yond-6ug/ssebench),
4
+ a benchmark that measures how well AI coding agents fix real security
5
+ vulnerabilities.
6
+
7
+ Every task is a publicly disclosed bug in an open-source C, Go or Rust project,
8
+ paired with its upstream fix. `ssebench` builds a Docker image for a task, runs
9
+ one agent with one model on it, and grades the patch the agent leaves behind:
10
+ does the project still build, does the proof of concept stop reproducing, and
11
+ do the project's tests pass. The `pilot` dataset has 55 tasks.
12
+
13
+ ## Install and run
14
+
15
+ `ssebench` needs Docker with the buildx and Compose plugins, and Python 3.12 or
16
+ newer. It runs without a clone of the repository: the wheel carries the agent
17
+ definitions, the model list, the Compose file and the pilot manifest, and the
18
+ task images are pulled from the registry.
19
+
20
+ ```sh
21
+ mkdir ssebench-work && cd ssebench-work
22
+ uvx ssebench init # writes .env with generated secrets, models/ and results/
23
+ uvx ssebench doctor # checks Docker, disk space and .env
24
+ uvx ssebench tasks list # the 55 tasks of the pilot dataset
25
+
26
+ # The reference agent applies the task's known fix, so it needs no API key.
27
+ uvx ssebench run --task gjson-196-bf4efcb --agent reference
28
+
29
+ # A real agent needs the key of its model provider in .env.
30
+ uvx ssebench run --task gjson-196-bf4efcb --agent claude-code --model claude-sonnet-4-6
31
+ ```
32
+
33
+ Install it with `pip install ssebench` or `uv tool install ssebench` instead of
34
+ `uvx` to keep the command. Run it from the directory that `ssebench init` set
35
+ up: that directory holds `.env` and `models/`, and `results/` is written there.
36
+
37
+ The first run of a task pulls its case image and builds the tool and agent
38
+ layers on top of it, which takes a few minutes. The results are in
39
+ `results/<task>/<model>/<agent>/<run-id>/`, a directory of its own for each run.
40
+
41
+ ## Versions
42
+
43
+ SSEBench components are released together under one version. `ssebench` pulls
44
+ the `runtime` image with the same version, and the SDK inside the task
45
+ container, `ssebench-sdk`, has the same version too.
46
+
47
+ ## More
48
+
49
+ - [Documentation](https://github.com/42-b3yond-6ug/ssebench/tree/main/docs)
50
+ - [Source and issues](https://github.com/42-b3yond-6ug/ssebench)
51
+
52
+ Licensed under the Apache License 2.0.
@@ -0,0 +1,108 @@
1
+ """Build hook: put the repository's assets in the wheel as `ssebench/_data/`.
2
+
3
+ The CLI builds images from agent definitions, Dockerfiles and the SDK sources, starts the LiteLLM
4
+ proxy from a Compose file, and lists the tasks of the pilot manifest. In a checkout it finds them
5
+ in the repository; without one, `ssebench.paths` uses this copy, which has the repository's layout.
6
+ The files are copied at build time, so the repository stays the only place they are edited.
7
+
8
+ An sdist built from the repository carries the files under `src/ssebench/_data/`, so the wheel built
9
+ from that sdist finds them in place. A build from a tree that has neither the repository around it
10
+ nor a `_data/` directory makes a wheel without the assets, which works from a checkout only.
11
+ """
12
+
13
+ import sys
14
+ import tomllib
15
+ from pathlib import Path
16
+ from typing import Any, override
17
+
18
+ from hatchling.builders.hooks.plugin.interface import BuildHookInterface
19
+
20
+ # Repository paths, files or directories, that the packaged CLI needs.
21
+ INCLUDE = (
22
+ "pyproject.toml",
23
+ "uv.lock",
24
+ ".env.example",
25
+ "agents",
26
+ "deploy/compose/docker-compose.yaml",
27
+ "deploy/compose/demo.yaml",
28
+ "images/common",
29
+ "images/litellm",
30
+ "images/sandbox",
31
+ "images/sidecar-agent",
32
+ "images/sidecar-case",
33
+ "models",
34
+ "runtime/evaluator",
35
+ "runtime/mcp",
36
+ "runtime/plugins",
37
+ # The Python SDK, as the tool and agent Dockerfiles copy it into their workspace.
38
+ "sdk/python/pyproject.toml",
39
+ "sdk/python/README.md",
40
+ "sdk/python/sse",
41
+ # Only the manifest, the digests of the published case images and the license, not the task folders: the
42
+ # case images hold the tasks, and the CLI pulls them.
43
+ "datasets/pilot/manifest.json",
44
+ "datasets/pilot/images.lock.json",
45
+ "datasets/pilot/LICENSE",
46
+ )
47
+
48
+ # Names that never belong in the wheel, wherever they occur.
49
+ SKIP_NAMES = frozenset(
50
+ {"__pycache__", ".venv", "node_modules", ".pytest_cache", ".ruff_cache", ".mypy_cache", ".DS_Store"}
51
+ )
52
+ SKIP_SUFFIXES = (".pyc", ".pyo")
53
+
54
+
55
+ def repository_root(project_root: Path) -> Path | None:
56
+ """The uv workspace root above the project, the directory that has a `[tool.ssebench]` table."""
57
+ candidate = project_root.parent
58
+ try:
59
+ with (candidate / "pyproject.toml").open("rb") as f:
60
+ tool = tomllib.load(f).get("tool", {})
61
+ except (OSError, tomllib.TOMLDecodeError):
62
+ return None
63
+ return candidate if "ssebench" in tool else None
64
+
65
+
66
+ def data_files(repository: Path) -> dict[Path, str]:
67
+ """The files to package, each with its path below `_data/`.
68
+
69
+ Raises:
70
+ FileNotFoundError: If an entry of INCLUDE is missing, so that a moved file is not left out silently.
71
+ """
72
+ files: dict[Path, str] = {}
73
+ for entry in INCLUDE:
74
+ source = repository / entry
75
+ if source.is_file():
76
+ candidates = [source]
77
+ elif source.is_dir():
78
+ candidates = sorted(p for p in source.rglob("*") if p.is_file())
79
+ else:
80
+ raise FileNotFoundError(f"{source} is missing; it is listed in bench/hatch_build.py")
81
+ for path in candidates:
82
+ relative = path.relative_to(repository)
83
+ if SKIP_NAMES.intersection(relative.parts) or path.name.endswith(SKIP_SUFFIXES):
84
+ continue
85
+ files[path] = relative.as_posix()
86
+ return files
87
+
88
+
89
+ class DataHook(BuildHookInterface[Any]):
90
+ PLUGIN_NAME = "custom"
91
+
92
+ @override
93
+ def initialize(self, version: str, build_data: dict[str, Any]) -> None:
94
+ # An editable install runs from the checkout and finds the assets there.
95
+ if version == "editable":
96
+ return
97
+ root = Path(self.root)
98
+ packaged = root / "src" / "ssebench" / "_data"
99
+ repository = repository_root(root)
100
+ if packaged.is_dir() or repository is None:
101
+ if not packaged.is_dir():
102
+ print("ssebench: no repository around the project; the wheel has no packaged assets", file=sys.stderr)
103
+ return
104
+
105
+ # An sdist keeps the files inside the package directory; a wheel puts them in site-packages.
106
+ prefix = "src/ssebench/_data" if self.target_name == "sdist" else "ssebench/_data"
107
+ for source, relative in data_files(repository).items():
108
+ build_data["force_include"][str(source)] = f"{prefix}/{relative}"
@@ -0,0 +1,61 @@
1
+ [project]
2
+ name = "ssebench"
3
+ version = "1.0.0rc1"
4
+ description = "Benchmark AI coding agents on real security vulnerabilities"
5
+ readme = "README.md"
6
+ requires-python = ">=3.12"
7
+ license = "Apache-2.0"
8
+ license-files = ["LICENSE", "NOTICE"]
9
+ authors = [{ name = "SSEBench Team" }]
10
+ keywords = ["benchmark", "security", "vulnerability", "agents", "llm", "patch", "docker"]
11
+ classifiers = [
12
+ "Development Status :: 4 - Beta",
13
+ "Environment :: Console",
14
+ "Intended Audience :: Developers",
15
+ "Intended Audience :: Science/Research",
16
+ "Operating System :: POSIX :: Linux",
17
+ "Operating System :: MacOS",
18
+ "Programming Language :: Python :: 3",
19
+ "Programming Language :: Python :: 3.12",
20
+ "Programming Language :: Python :: 3.13",
21
+ "Programming Language :: Python :: Implementation :: CPython",
22
+ "Topic :: Security",
23
+ "Topic :: Software Development :: Testing",
24
+ ]
25
+ dependencies = [
26
+ "httpx>=0.28.1",
27
+ "jinja2>=3.1.6",
28
+ "jsonschema>=4.26.0",
29
+ "pydantic>=2.11.9",
30
+ "python-dotenv>=1.1.0",
31
+ "pyyaml>=6.0.3",
32
+ "requests>=2.32.5",
33
+ ]
34
+
35
+ [project.urls]
36
+ Homepage = "https://github.com/42-b3yond-6ug/ssebench"
37
+ Documentation = "https://github.com/42-b3yond-6ug/ssebench/tree/main/docs"
38
+ Repository = "https://github.com/42-b3yond-6ug/ssebench"
39
+ Issues = "https://github.com/42-b3yond-6ug/ssebench/issues"
40
+
41
+ [project.scripts]
42
+ ssebench = "ssebench.cli:main"
43
+
44
+ [project.optional-dependencies]
45
+ kubernetes = [
46
+ "kubernetes>=31",
47
+ ]
48
+
49
+ [build-system]
50
+ requires = ["hatchling"]
51
+ build-backend = "hatchling.build"
52
+
53
+ [tool.hatch.build.targets.wheel]
54
+ packages = ["src/ssebench"]
55
+
56
+ # The hook copies the repository's assets into the wheel and the sdist; see hatch_build.py.
57
+ [tool.hatch.build.hooks.custom]
58
+ path = "hatch_build.py"
59
+
60
+ [tool.hatch.build.targets.sdist]
61
+ include = ["/src", "/hatch_build.py", "/README.md", "/LICENSE", "/NOTICE"]
@@ -0,0 +1,5 @@
1
+ """SSEBench: run AI agents against real vulnerabilities and grade their patches."""
2
+
3
+ from ssebench.version import __version__
4
+
5
+ __all__ = ["__version__"]
@@ -0,0 +1,7 @@
1
+ import logging
2
+
3
+ from ssebench.cli import main
4
+
5
+ if __name__ == "__main__":
6
+ logging.basicConfig(level=logging.INFO)
7
+ main()
@@ -0,0 +1,33 @@
1
+ # Local settings. `ssebench init` and `just setup` copy this file to .env and
2
+ # fill in the two generated secrets. .env is ignored by git; never commit it.
3
+
4
+ # Admin key of the local LiteLLM proxy. The CLI uses it to create a key with a
5
+ # budget for each run.
6
+ LITELLM_MASTER_KEY=
7
+ # Password of the proxy's Postgres database; letters and digits only, as it is
8
+ # part of a URL. Postgres keeps the password it was created with: after you
9
+ # change it, remove the stack's volume (`docker compose -p <project> down -v`).
10
+ POSTGRES_PASSWORD=
11
+
12
+ # Keys of the model providers you use. models/*.yaml refers to them as
13
+ # os.environ/<NAME>; a model without its key fails when it is called. After a
14
+ # change, restart the proxy with `ssebench proxy up` (`just launch`).
15
+ ANTHROPIC_API_KEY=
16
+ OPENAI_API_KEY=
17
+ GOOGLE_API_KEY=
18
+
19
+ # Optional settings, shown with their defaults.
20
+ # Host port of the LiteLLM proxy.
21
+ # LITELLM_PORT=4000
22
+ # Host address the proxy's port is published on. It holds the master key and the
23
+ # provider keys, so it listens on loopback only.
24
+ # LITELLM_BIND=127.0.0.1
25
+ # Compose project of the proxy stack; stacks with different names (and ports)
26
+ # run side by side.
27
+ # COMPOSE_PROJECT_NAME=ssebench
28
+ # Registry prefix of every image SSEBench builds or pulls.
29
+ # SSEBENCH_REGISTRY=ghcr.io/42-b3yond-6ug/ssebench
30
+ # Task catalog of `ssebench run` and the web UI: the path or URL of a
31
+ # manifest.json, a dataset directory, or the URL of a catalog service. Unset,
32
+ # it is the bundled datasets/pilot/manifest.json.
33
+ # SSEBENCH_CATALOG=
@@ -0,0 +1,26 @@
1
+ # agents
2
+
3
+ One folder per agent. An agent is the layer that goes on top of the tool layer
4
+ of a run; `ssebench run --agent <name>` builds it from its folder.
5
+
6
+ | Agent | What it is |
7
+ |---|---|
8
+ | [`claude-code/`](claude-code/) | Anthropic's Claude Code. |
9
+ | [`codex/`](codex/) | OpenAI's Codex CLI. |
10
+ | [`opencode/`](opencode/) | The open-source OpenCode agent. |
11
+ | [`dummy/`](dummy/) | Does nothing and makes no model calls; a run with it grades the untouched source, so its patch fails. It tests the pipeline. |
12
+ | [`reference/`](reference/) | Applies the task's known fix and makes no model calls; a sound task passes every check. It checks a task, and powers `just demo`. Its runs never count as a model's score. |
13
+
14
+ Each folder has an `agent.yaml` (the agent's name), a `Dockerfile` and, for
15
+ every agent but `dummy`, a wrapper `<name>-sse/`. The wrapper is a Python project
16
+ that starts the agent, reads the task through the `sse` SDK and writes
17
+ `dialog.jsonl`; every wrapper is a member of the repository's uv workspace. An
18
+ agent never talks to a model provider directly: all LLM traffic goes through the
19
+ LiteLLM proxy, at the endpoint the run passes in `SSE_BASE_URL`.
20
+
21
+ To add an agent, follow [Add an agent](../docs/guides/add-an-agent.md).
22
+
23
+ - [Dialog protocol](../docs/reference/dialog-protocol.md): the format of
24
+ `dialog.jsonl`
25
+ - [Reference runs](../docs/reference/cli.md#reference-runs)
26
+ - [Image layers](../docs/concepts/image-layers.md)