Skip to content

Commit e1d4f25

Browse files
mikasenghaasclaude
andauthored
chore: drop rlm_max_turns from RLM harness config (#1511)
Companion to the rlm-harness change that removes the max_turns turn cap. The harness no longer reads RLM_MAX_TURNS, so stop setting it: remove the RLM_DEFAULT_MAX_TURNS constant, the rlm_max_turns config field, and the RLM_MAX_TURNS program env var. Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 6085c1f commit e1d4f25

2 files changed

Lines changed: 0 additions & 5 deletions

File tree

packages/harnesses/harnesses/rlm.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212

1313
RLM_DEFAULT_REPO_URL = "github.com/PrimeIntellect-ai/rlm-harness.git"
1414
RLM_DEFAULT_REPO_REF = "main"
15-
RLM_DEFAULT_MAX_TURNS = 100
1615
RLM_DEFAULT_EXEC_TIMEOUT = 300
1716
RLM_DEFAULT_MAX_DEPTH = 0
1817
RLM_DEFAULT_INSTRUCTION_PATH = "/rlm/instruction.txt"
@@ -27,7 +26,6 @@ class RLMProgramConfig(vf.ProgramConfig):
2726
instruction_path: str = RLM_DEFAULT_INSTRUCTION_PATH
2827
rlm_repo_url: str = RLM_DEFAULT_REPO_URL
2928
rlm_repo_ref: str = RLM_DEFAULT_REPO_REF
30-
rlm_max_turns: int = RLM_DEFAULT_MAX_TURNS
3129
rlm_exec_timeout: int = RLM_DEFAULT_EXEC_TIMEOUT
3230
rlm_max_depth: int = RLM_DEFAULT_MAX_DEPTH
3331
summarize_at_tokens: int | None = None
@@ -74,7 +72,6 @@ def resolve(self) -> vf.ProgramConfig:
7472
"OPENAI_MODEL": "runtime.model",
7573
"RLM_MODEL": "runtime.model",
7674
"RLM_TOOLS": ",".join(self.rlm_tools),
77-
"RLM_MAX_TURNS": str(self.rlm_max_turns),
7875
"RLM_EXEC_TIMEOUT": str(self.rlm_exec_timeout),
7976
"RLM_MAX_DEPTH": str(self.rlm_max_depth),
8077
**self.env_vars,

tests/test_v1_rlm_swe.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ def test_rlm_harness_accepts_typed_config_surface():
8282
program=RLMProgramConfig(
8383
local_checkout="/tmp/checkout",
8484
rlm_tools=["bash", "edit"],
85-
rlm_max_turns=7,
8685
rlm_exec_timeout=11,
8786
env_vars={"CUSTOM": "1"},
8887
)
@@ -93,7 +92,6 @@ def test_rlm_harness_accepts_typed_config_surface():
9392

9493
assert harness.config.program.rlm_tools == ["bash", "edit"]
9594
assert program_env["RLM_TOOLS"] == "bash,edit"
96-
assert program_env["RLM_MAX_TURNS"] == "7"
9795
assert program_env["RLM_EXEC_TIMEOUT"] == "11"
9896
assert program_env["CUSTOM"] == "1"
9997

0 commit comments

Comments
 (0)