From 3c9d686ac9ec6fb7f6260a5a7b000179f421a356 Mon Sep 17 00:00:00 2001 From: Brendan O'Leary Date: Wed, 1 Apr 2026 12:31:09 -0400 Subject: [PATCH 1/3] Fix duplicate function definition in _remove_readonly PR #74 introduced a duplicate function definition that causes an IndentationError, breaking all benchmark registrations. This removes the duplicate line and the errant func(path) call that was outside the try/except block. --- scripts/lib_agent.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/scripts/lib_agent.py b/scripts/lib_agent.py index 7f261bf..4c4c362 100644 --- a/scripts/lib_agent.py +++ b/scripts/lib_agent.py @@ -366,14 +366,12 @@ def prepare_task_workspace(skill_dir: Path, run_id: str, task: Task, agent_id: s _BOOTSTRAP_FILES = ["SOUL.md", "BOOTSTRAP.md", "USER.md", "IDENTITY.md", "HEARTBEAT.md", "TOOLS.md"] - def _remove_readonly(func, path, _): def _remove_readonly(func, path, _): try: os.chmod(path, stat.S_IWRITE) func(path) except OSError: pass - func(path) saved_bootstrap: dict[str, bytes] = {} if workspace.exists(): From 14dc538e212508af27457d76ee27ce41be13acba Mon Sep 17 00:00:00 2001 From: Brendan O'Leary Date: Wed, 1 Apr 2026 12:39:06 -0400 Subject: [PATCH 2/3] Trigger CI re-run From 530ee3526f41a04fb77de0df5272dd2537eb5cb8 Mon Sep 17 00:00:00 2001 From: Brendan O'Leary Date: Wed, 1 Apr 2026 12:40:21 -0400 Subject: [PATCH 3/3] Fix ruff E402 lint error in test file The import after sys.path manipulation triggers E402. Adding noqa comment since this pattern is necessary for the test to import from scripts/. --- tests/test_lib_grading.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_lib_grading.py b/tests/test_lib_grading.py index 8588715..8f48a58 100644 --- a/tests/test_lib_grading.py +++ b/tests/test_lib_grading.py @@ -10,7 +10,7 @@ if str(SCRIPTS_DIR) not in sys.path: sys.path.insert(0, str(SCRIPTS_DIR)) -from lib_grading import _combine_grades, _normalize_judge_response, GradeResult +from lib_grading import _combine_grades, _normalize_judge_response, GradeResult # noqa: E402 class JudgeNormalizationTests(unittest.TestCase):