Commit 04498a9
fix(agents): run codex + antigravity harnesses on the tempdir/host path (#33)
* fix(antigravity): pin google-antigravity 0.1.7 to load on glibc 2.35
The pinned 0.1.5 localharness binary requires the GLIBC_ABI_DT_RELR ABI
(glibc 2.36+), so it fails to load on the eval agents' Ubuntu 22.04 (glibc
2.35), taking down the antigravity tempdir/host path (the activation suite
and container-less skills tasks) while docker-driver tasks stay fine. 0.1.7
links without DT_RELR (max required symbol GLIBC_2.26) and loads on 2.35+.
The manylinux_2_17 wheel tag alone does not guarantee this, so the pin
comment documents verifying ELF load before any future bump.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix(codex): use full-access sandbox on coder_eval-managed tempdir path
Codex's read-only / workspace-write sandboxes shell out to an OS-level
helper (Landlock, or a bwrap re-exec) that fails to initialize on managed CI
hosts ("bwrap: execvp .../codex: Permission denied" where unprivileged user
namespaces or exec mounts are restricted); its writes/execs then fail
silently and the task produces no artifacts. The docker path already avoids
this via CODER_EVAL_IN_CONTAINER. Thread a `sandbox_managed` signal through
Agent.start() so the tempdir driver — where coder_eval's ephemeral per-task
dir is the isolation boundary — also falls back to full-access, matching
Claude Code (no in-agent OS sandbox on that path). Hard isolation of
untrusted actions remains the docker driver's job.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* test: accept sandbox_managed kwarg in agent test doubles
The orchestrator now threads `sandbox_managed` into `Agent.start()`, and
the codebase's convention is that agent test doubles mirror the ABC
signature exactly. Add the keyword-only param (accepted and ignored,
like `env_path_prepend`) to every double that declares `start()`, so the
orchestrator-routed doubles (MockAgent and the inline DummyAgents) stop
raising `unexpected keyword argument 'sandbox_managed'`.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix(deps): bump pyasn1 to 0.6.4 for GHSA-8ppf-4f7h-5ppj / GHSA-hm4w-wwcw-mr6r
pyasn1 0.6.3 (transitive via google-auth → pyasn1-modules) carries two
High advisories fixed in 0.6.4. Pre-existing on main; bumping the lock
clears both osv-scanner and pip-audit. No suppression entry is added
because a fix is available (osv-scanner.toml is only for unfixable advisories).
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* chore(deps): upgrade agent SDKs to latest (claude 0.2.124, codex 0.144.4)
- claude-agent-sdk 0.2.82 -> 0.2.124
- openai-codex 0.1.0b3 -> 0.144.4, and its pinned cli-bin 0.137.0a4 -> 0.144.4
(the SDK version now tracks the codex CLI line; the 0.144.x jump is a
re-numbering, not an API rewrite). The public API surface codex_agent.py
depends on — Codex/Thread/turn, the notification method strings, item types,
and token-usage fields — stayed source-compatible, so no agent code changed.
- google-antigravity already at 0.1.7 (latest; pinned by the tempdir fix).
Full suite incl. the live codex integration tests is green on all three.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* ci(release): publish a prerelease from a non-main branch
Dispatching release.yml from a branch (github.ref != main) now runs a
prerelease instead of a real release: stamp a throwaway <next-patch>rcN
version into pyproject/__init__, refresh uv.lock, build, publish the wheel
to public PyPI (OIDC) and a :<version> GHCR agent image. It does NOT move
:latest, tag, commit, or push to main. This lets a branch be dry-run on the
ADO nightly infra (pinned via coderEvalVersion) before merge. The main path
is unchanged; the bump input is ignored off main.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix(codex): always run full-access; drop the in-process OS sandbox
coder_eval always owns a run's isolation boundary — a docker container
(docker driver) or an ephemeral per-task tempdir it creates and discards
(tempdir driver); those are the only two drivers — so Codex's own
in-process OS sandbox (Landlock/seatbelt) is always redundant. Worse, it
breaks on the paths we rely on: Landlock is unavailable in the container,
the bwrap re-exec is denied on constrained CI agents, and Windows has no
OS sandbox at all — in each case a read-only/workspace-write run fails its
writes/execs silently and scores 0. This is what left the Windows
uipath-rpa tasks unable to run `uip` (exit -1) even after the earlier
container/tempdir fallback landed.
Run full-access unconditionally (approval_mode stays deny_all), matching
Claude Code and Antigravity, which run with no in-agent OS sandbox; hard
isolation of untrusted actions is the docker driver's job. Removes the
now-obsolete sandbox_managed plumbing and the per-mode sandbox mapping.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* refactor(codex): drop dead sandbox branch + honest full-access messaging
Addresses review on PR #33 (always-full-access):
- Collapse the sandbox assignment to `Sandbox.full_access` and delete the
now-unreachable `workspace-write` network-opener branch (dead since the
mode became a constant).
- `_log_config_enforcement` now emits the [SECURITY] full-access notice for
EVERY permission_mode, not just bypassPermissions — all modes resolve to
full-access, so the old per-mode warning misled operators.
- Document that permission_mode does not confine Codex and that the docker
driver is the OS-level write boundary (code comment + TASK_DEFINITION_GUIDE).
- Note the test matrix's os_name/in_container dims are invariance-by-construction.
- Disclose in the release.yml `bump` input that it is ignored off-main.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent f1f4f9f commit 04498a9
9 files changed
Lines changed: 255 additions & 173 deletions
File tree
- .github/workflows
- docs
- src/coder_eval/agents
- tests
- fixtures
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
16 | 23 | | |
17 | 24 | | |
18 | 25 | | |
19 | 26 | | |
20 | 27 | | |
21 | | - | |
| 28 | + | |
22 | 29 | | |
23 | 30 | | |
24 | 31 | | |
| |||
47 | 54 | | |
48 | 55 | | |
49 | 56 | | |
50 | | - | |
51 | | - | |
52 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
53 | 60 | | |
54 | 61 | | |
55 | 62 | | |
| |||
58 | 65 | | |
59 | 66 | | |
60 | 67 | | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
61 | 72 | | |
62 | 73 | | |
| 74 | + | |
63 | 75 | | |
64 | 76 | | |
65 | 77 | | |
| |||
70 | 82 | | |
71 | 83 | | |
72 | 84 | | |
73 | | - | |
74 | | - | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
75 | 88 | | |
76 | 89 | | |
77 | 90 | | |
| |||
83 | 96 | | |
84 | 97 | | |
85 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
86 | 125 | | |
87 | 126 | | |
88 | 127 | | |
89 | 128 | | |
90 | 129 | | |
| 130 | + | |
91 | 131 | | |
92 | 132 | | |
93 | 133 | | |
| |||
105 | 145 | | |
106 | 146 | | |
107 | 147 | | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
108 | 185 | | |
109 | | - | |
| 186 | + | |
110 | 187 | | |
111 | 188 | | |
112 | 189 | | |
| |||
119 | 196 | | |
120 | 197 | | |
121 | 198 | | |
122 | | - | |
| 199 | + | |
123 | 200 | | |
124 | 201 | | |
125 | 202 | | |
126 | | - | |
| 203 | + | |
127 | 204 | | |
128 | 205 | | |
129 | 206 | | |
130 | 207 | | |
131 | 208 | | |
132 | 209 | | |
133 | | - | |
| 210 | + | |
134 | 211 | | |
135 | 212 | | |
136 | 213 | | |
137 | 214 | | |
138 | 215 | | |
139 | 216 | | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
146 | 224 | | |
147 | | - | |
| 225 | + | |
148 | 226 | | |
149 | 227 | | |
150 | 228 | | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
| 248 | + | |
151 | 249 | | |
152 | 250 | | |
153 | | - | |
| 251 | + | |
154 | 252 | | |
155 | 253 | | |
156 | 254 | | |
157 | 255 | | |
158 | | - | |
| 256 | + | |
159 | 257 | | |
160 | 258 | | |
161 | 259 | | |
| |||
164 | 262 | | |
165 | 263 | | |
166 | 264 | | |
167 | | - | |
| 265 | + | |
168 | 266 | | |
169 | 267 | | |
170 | 268 | | |
171 | 269 | | |
172 | 270 | | |
173 | | - | |
174 | | - | |
175 | | - | |
| 271 | + | |
176 | 272 | | |
177 | | - | |
| 273 | + | |
178 | 274 | | |
179 | 275 | | |
180 | 276 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
| 133 | + | |
| 134 | + | |
133 | 135 | | |
134 | 136 | | |
135 | 137 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
| 89 | + | |
90 | 90 | | |
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
97 | | - | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
98 | 103 | | |
99 | 104 | | |
100 | 105 | | |
101 | | - | |
| 106 | + | |
102 | 107 | | |
103 | 108 | | |
104 | 109 | | |
| |||
130 | 135 | | |
131 | 136 | | |
132 | 137 | | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
139 | 146 | | |
140 | 147 | | |
141 | 148 | | |
| |||
0 commit comments