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 <noreply@anthropic.com>
This commit is contained in:
sora 2026-09-18 04:01:48 +00:00
parent de847206e5
commit 2a2335f842

View File

@ -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 ----