From 2a2335f84267b89e67ec7a069983c0c333eb77c4 Mon Sep 17 00:00:00 2001 From: sora <2075279110@qq.com> Date: Fri, 18 Sep 2026 04:01:48 +0000 Subject: [PATCH] swe_agentic: accept adapter kwarg in __init__ (get_env uniform signature) Without it get_env('swe_agentic') raised TypeError at env creation -- and the swallowed exception silently degraded the run to SINGLE-TURN prose generation (421s of model monologue, no container, empty trajectory). This was the agentic 'run' that looked like it worked. Co-Authored-By: Claude --- evalharness/agent/envs/swe_agentic.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/evalharness/agent/envs/swe_agentic.py b/evalharness/agent/envs/swe_agentic.py index 7bc968c..f99b212 100644 --- a/evalharness/agent/envs/swe_agentic.py +++ b/evalharness/agent/envs/swe_agentic.py @@ -111,7 +111,9 @@ def _docker(args, timeout=300): class SWEAgenticEnvironment(Environment): """Self-running env: one persistent container per sample.""" - def __init__(self): + def __init__(self, adapter=None, **_): + # adapter arg: get_env uniform signature (unused here; the adapter + # is passed to run_task per sample) self.container = '' # ---- container lifecycle ----