Skip to content

Commit 067378e

Browse files
committed
Strip explanatory comments from ladder/agent config additions
1 parent f838b81 commit 067378e

5 files changed

Lines changed: 2 additions & 17 deletions

File tree

codeclash/agents/utils.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ class GameContext(BaseModel):
2626
round: int
2727
rounds: int
2828
working_dir: str
29-
# Arena's static description (CodeArena.description), exposed to prompt templates as
30-
# {{arena_description}}. Optional so non-pvp GameContext construction sites keep working.
3129
arena_description: str = ""
3230

3331
def _render_prompt_templates(self) -> dict:

codeclash/arenas/battlesnake/battlesnake.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,8 +203,6 @@ def validate_code(self, agent: Player) -> tuple[bool, str | None]:
203203
error_msg.append(f"There should be a `{func}` function implemented in `{self.submission}`")
204204
if len(error_msg) > 0:
205205
return False, "\n".join(error_msg + ["Don't change the function signatures!"])
206-
207-
# `python main.py` boots the server via the __main__ entrypoint.
208206
if "__main__" not in bot_content or "run_server" not in bot_content:
209207
return False, (
210208
f"`{self.submission}` must keep its server entrypoint so the bot starts: the "

configs/ablations/ladder/ladder_prompt.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
# Shared task instructions for a model climbing a CC:Ladder run (all arenas). Each ladder run
2-
# config pulls this in on its `prompts:` line, so the framing lives in one place. Uses vars the
3-
# ladder already provides: player_id, arena_description, rounds, round, working_dir.
4-
# Deliberately says nothing about ladders/rungs/advancement — just: write code to beat one opponent.
5-
# NOTE: keep the include-directive token out of these comments; the resolver matches it on any line.
61
game_description: |-
72
You are a software developer ({{player_id}}) competing in a coding game. You are matched against a
83
single opponent, and your job is to write and improve the code for your bot so that it defeats theirs.
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
1-
# Shared advancement rule for every CC:Ladder run config. Each <arena>[__<model>].yaml pulls
2-
# this in on its `ladder_rules:` line, so the win condition stays consistent across all
3-
# arenas/models in one place.
4-
min_round_wins: 2 # whole number of agent rounds to win to advance (1..tournament.rounds)
5-
win_last_k: 0 # must win the last K rounds (0 = off; must be <= min_round_wins)
1+
min_round_wins: 2
2+
win_last_k: 0

configs/mini/default.yaml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,4 @@ instance_template: |
102102
You cannot continue working in any way on this task after submitting.
103103
step_limit: 30
104104
cost_limit: 0
105-
# Global observation format for every model/tournament/arena. ClashAgent pushes this onto the
106-
# model config (mini-swe-agent renders observations model-side). The leading banner surfaces the
107-
# per-round step budget so the model can pace itself; the rest is mini's default observation body.
108105
observation_template: "[Step {{n_model_calls}}/{{step_limit}} used - {{step_limit - n_model_calls}} left]\n{% if output.exception_info %}<exception>{{output.exception_info}}</exception>\n{% endif %}<returncode>{{output.returncode}}</returncode>\n<output>\n{{output.output}}</output>"

0 commit comments

Comments
 (0)