Skip to content

Commit fac8bf5

Browse files
fix!: rename public agent
BREAKING CHANGE: use -a autoresearchexam-terminus in Harbor commands.
1 parent 3453e9f commit fac8bf5

7 files changed

Lines changed: 18 additions & 18 deletions

File tree

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ name.
5757
harbor run \
5858
-p tasks \
5959
-i cpu-decoder-graph-executor \
60-
-a AutoResearchExamAgent \
60+
-a autoresearchexam-terminus \
6161
-m openai/gpt-5.6-sol \
6262
-e docker \
6363
--plugin autoresearch-exam \
@@ -78,7 +78,7 @@ Remove the `-i` task filter to run every task in the downloaded dataset:
7878
```bash
7979
harbor run \
8080
-p tasks \
81-
-a AutoResearchExamAgent \
81+
-a autoresearchexam-terminus \
8282
-m openai/gpt-5.6-sol \
8383
-e docker \
8484
--plugin autoresearch-exam \

‎src/harbor_autoresearch/agent.py‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ class AutoResearchExamAgent(Terminus2):
104104
@staticmethod
105105
def name() -> str:
106106
"""Return the stable public name recorded by Harbor."""
107-
return "AutoResearchExamAgent"
107+
return "autoresearchexam-terminus"
108108

109109
def __init__(
110110
self,
@@ -176,17 +176,17 @@ async def resume(
176176
"""Continue the existing conversation and terminal for another experiment."""
177177
if self._chat is None or self._session is None:
178178
raise RuntimeError(
179-
"AutoResearchExamAgent cannot resume before its first run"
179+
"autoresearchexam-terminus cannot resume before its first run"
180180
)
181181

182182
self._n_episodes = 0
183183
if not await self._session.is_session_alive():
184184
raise RuntimeError(
185-
"AutoResearchExamAgent cannot resume because its terminal session has "
186-
"ended"
185+
"autoresearchexam-terminus cannot resume because its terminal "
186+
"session has ended"
187187
)
188188
if self.remaining_turns <= 0:
189-
raise RuntimeError("AutoResearchExamAgent has exhausted max_turns")
189+
raise RuntimeError("autoresearchexam-terminus has exhausted max_turns")
190190
if self._iteration_started_monotonic is None:
191191
self.begin_timed_iteration()
192192
self._iteration_started_monotonic = time.monotonic()

‎src/harbor_autoresearch/plugin.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
from .config import TimedWindowConfig, validate_backend
2323

24-
_AGENT_NAME = "AutoResearchExamAgent"
24+
_AGENT_NAME = "autoresearchexam-terminus"
2525
_AGENT_IMPORT_PATH = "harbor_autoresearch.agent:AutoResearchExamAgent"
2626
_MODAL_STORAGE_LIMIT_MB = 512 * 1024
2727
_MODAL_MAX_SANDBOX_TIMEOUT_SECONDS = 24 * 60 * 60

‎tests/test_agent.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515

1616
def test_agent_uses_the_public_release_name() -> None:
17-
assert agent_module.AutoResearchExamAgent.name() == "AutoResearchExamAgent"
17+
assert agent_module.AutoResearchExamAgent.name() == "autoresearchexam-terminus"
1818
assert agent_module.AutoResearchExamAgent.import_path() == (
1919
"harbor_autoresearch.agent:AutoResearchExamAgent"
2020
)

‎tests/test_docker_integration.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def test_harbor_cli_runs_one_timed_window_with_local_docker(tmp_path: Path) -> N
134134
"--jobs-dir",
135135
str(jobs_dir),
136136
"--agent",
137-
"AutoResearchExamAgent",
137+
"autoresearchexam-terminus",
138138
"--model",
139139
"openai/test-model",
140140
"--env",

‎tests/test_harbor_compat.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ def test_trial_constructs_against_the_supported_harbor_release(
4444
task=task_config,
4545
trials_dir=tmp_path / "trials",
4646
agent=AgentConfig(
47-
name="AutoResearchExamAgent",
47+
name="autoresearchexam-terminus",
4848
import_path="harbor_autoresearch.agent:AutoResearchExamAgent",
4949
model_name="openai/test-model",
5050
kwargs={

‎tests/test_plugin.py‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def _valid_job(
4343
task=task_config,
4444
trials_dir=tmp_path / "trials",
4545
agent=AgentConfig(
46-
name="AutoResearchExamAgent",
46+
name="autoresearchexam-terminus",
4747
model_name="provider/model",
4848
kwargs={
4949
"min_time_per_iteration": 0,
@@ -97,7 +97,7 @@ async def test_plugin_accepts_and_preserves_the_public_agent_name(
9797
) -> None:
9898
job = _valid_job(tmp_path)
9999
agent = job._trial_configs[0].agent
100-
agent.name = "AutoResearchExamAgent"
100+
agent.name = "autoresearchexam-terminus"
101101
agent.import_path = None
102102
monkeypatch.setattr(
103103
"harbor_autoresearch.plugin.EnvironmentFactory.run_preflight",
@@ -107,7 +107,7 @@ async def test_plugin_accepts_and_preserves_the_public_agent_name(
107107

108108
await plugin.on_job_start(job)
109109
try:
110-
assert agent.name == "AutoResearchExamAgent"
110+
assert agent.name == "autoresearchexam-terminus"
111111
assert agent.import_path == ("harbor_autoresearch.agent:AutoResearchExamAgent")
112112
finally:
113113
await plugin.on_job_end(object())
@@ -120,7 +120,7 @@ async def test_plugin_forwards_all_public_agent_settings(
120120
) -> None:
121121
job = _valid_job(tmp_path)
122122
agent = job._trial_configs[0].agent
123-
agent.name = "AutoResearchExamAgent"
123+
agent.name = "autoresearchexam-terminus"
124124
agent.import_path = None
125125
monkeypatch.setattr(
126126
"harbor_autoresearch.plugin.EnvironmentFactory.run_preflight",
@@ -170,7 +170,7 @@ async def test_plugin_rejects_conflicting_agent_settings_without_overwriting_the
170170
) -> None:
171171
job = _valid_job(tmp_path)
172172
agent = job._trial_configs[0].agent
173-
agent.name = "AutoResearchExamAgent"
173+
agent.name = "autoresearchexam-terminus"
174174
agent.import_path = None
175175
agent.kwargs = {setting: agent_value}
176176
plugin = TimedWindowPlugin(
@@ -182,7 +182,7 @@ async def test_plugin_rejects_conflicting_agent_settings_without_overwriting_the
182182
with pytest.raises(ValueError, match=f"Conflicting {setting}"):
183183
await plugin.on_job_start(job)
184184

185-
assert agent.name == "AutoResearchExamAgent"
185+
assert agent.name == "autoresearchexam-terminus"
186186
assert agent.import_path is None
187187
assert agent.kwargs == {setting: agent_value}
188188

@@ -205,7 +205,7 @@ async def test_failed_preflight_does_not_mutate_agent_configuration(
205205
with pytest.raises(ValueError, match="tests/Dockerfile"):
206206
await plugin.on_job_start(job)
207207

208-
assert agent.name == "AutoResearchExamAgent"
208+
assert agent.name == "autoresearchexam-terminus"
209209
assert agent.import_path is None
210210
assert agent.kwargs == {"min_time_per_iteration": 0}
211211

0 commit comments

Comments
 (0)