Multi-tier framework for evaluating AI agent skills and plugins with quality gates, security scanning, harness compatibility checks, semantic overlap detection, synthetic evaluation dataset generation, and live agent evaluation that measures how skills affect agent behavior. Ships reusable CI templates that bring every check to any repository.
Python agent-evaluationagent-pluginsagent-securityagent-skillsagentic-aibenchmarkci-templatesclaude-codecodexevaluateevaluationharnesspluginplugin-evaluationsecurity-scannerskill-evalskill-evaluationskill-evaluatorskill-gap-analysisskills
fix(tier3): complete Gym cleanup progress after teardown (#592)
Christopher Kevin18b1baa9253a
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 7eec5438..10247e24 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -252,6 +252,8 @@ All notable changes to SkillEvaluator are documented in this file.### Fixed+- Native NeMo Gym teardown now completes its cleanup progress stage after a+ successful stop, instead of reporting an interrupted cleanup on cancellation.- Native NeMo Gym cleanup now also stops run-owned detached server processesafter startup timeouts, interruptions and early exits, without targeting other runs.- NeMo Gym results reject verifier rewards that identify a different stageddiff --git a/src/skillevaluator/tier3/nemo_gym/runner.py b/src/skillevaluator/tier3/nemo_gym/runner.pyindex 781a83a3..7e65806d 100644--- a/src/skillevaluator/tier3/nemo_gym/runner.py+++ b/src/skillevaluator/tier3/nemo_gym/runner.py@@ -632,6 +632,8 @@ def _run_gym(_kill_group()except (OSError, RuntimeError) as exc:_confirm_stopped(exc)+ if reporter is not None:+ reporter.emit(ProgressEvent(stage="cleanup", state="complete", detail="NeMo Gym stopped"))except KeyboardInterrupt:force_detached_cleanup = True_kill_group()diff --git a/tests/test_nemo_gym_backend.py b/tests/test_nemo_gym_backend.pyindex dfa2cc50..e877b1a6 100644--- a/tests/test_nemo_gym_backend.py+++ b/tests/test_nemo_gym_backend.py@@ -1448,6 +1448,39 @@ def test_gym_timeout_kills_the_whole_process_group(tmp_path: Path) -> None:pytest.fail("child of the Gym leader survived")[email protected]("interrupt", [False, True])+def test_successful_gym_teardown_completes_cleanup_progress(tmp_path: Path, interrupt: bool) -> None:+ import sys++ from skillevaluator.tier3.nemo_gym.runner import _run_gym++ script = "import os, signal, time; time.sleep(0.5); "+ if interrupt:+ script += "os.kill(os.getppid(), signal.SIGINT); "+ script += "time.sleep(60)"+ reporter = _RecordingReporter()+ with (tmp_path / "gym.log").open("w") as log:++ def run():+ return _run_gym(+ [sys.executable, "-c", script],+ cwd=tmp_path,+ env=dict(os.environ),+ log=log,+ timeout_s=1,+ reporter=reporter,+ )++ if interrupt:+ with pytest.raises(KeyboardInterrupt):+ run()+ else:+ assert run() is None+ cleanup = [event for event in reporter.events if event.stage == "cleanup"]+ assert [event.state for event in cleanup] == ["running", "complete"]+ assert cleanup[-1].detail == "NeMo Gym stopped"++@pytest.mark.parametrize("exit_early", [False, True])def test_gym_cleanup_stops_detached_servers_but_not_other_runs(tmp_path: Path, exit_early: bool) -> None:import socket