Skip to content

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.

fix(tier3): record the execution backend in the Tier 3 report data (#693)

Christopher Kevin63c77f62bb10
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0903f4f4..c45f5719 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -6,6 +6,9 @@ All notable changes to SkillEvaluator are documented in this file.
### Added
+- The Tier 3 report data and JSON report record which execution backend ran the
+ evaluation, as `execution_backend` (`harbor` or `nemo-gym`), next to the sandbox
+ `environment`.
- Document measured real-provider saved-catalog scale separately from 5,000-entry
in-memory qualification, as fixture-dependent examples rather than guarantees.
- `harness` results flag a project skill that has a same-named copy in a user-level
diff --git a/src/skillevaluator/evaluation/tier3_report.py b/src/skillevaluator/evaluation/tier3_report.py
index d0456d22..2476fdc1 100644
--- a/src/skillevaluator/evaluation/tier3_report.py
+++ b/src/skillevaluator/evaluation/tier3_report.py
@@ -576,6 +576,7 @@ def agent_eval_result_from_directory(
evaluated_source=evaluated_source,
use_llm_judge=use_llm_judge,
enforce_embedded_size=enforce_embedded_size,
+ execution_backend=_execution_backend_name(engine_result, persisted_result, run_config),
)
_apply_engine_failure(payload, engine_result if isinstance(engine_result, dict) else persisted_result)
with contextlib.suppress(Exception):
@@ -795,6 +796,7 @@ def build_agent_eval_payload(
evaluated_source: dict[str, Any] | None = None,
use_llm_judge: bool = True,
enforce_embedded_size: bool = True,
+ execution_backend: str | None = None,
) -> dict[str, Any] | None:
"""Assemble the canonical Tier 3 ``agent_eval`` payload from loaded agent data.
@@ -1072,6 +1074,7 @@ def build_agent_eval_payload(
"required_checks": verdict_source.get("required_checks") if verdict_source else None,
"security_clean": verdict_source.get("security_clean") if verdict_source else None,
"environment": env_mode,
+ "execution_backend": execution_backend,
"runtime_seconds": _finite_float(runtime_seconds) or 0.0,
"evaluated_at": evaluated_at,
"evaluator_version": evaluator_version,
@@ -1878,6 +1881,7 @@ def _replace_with_minimal_payload(payload: dict[str, Any], report_budget: _Repor
"security_clean",
"verdict_reason",
"environment",
+ "execution_backend",
"runtime_seconds",
"score_policy",
"execution_status",
@@ -4894,6 +4898,20 @@ def _read_attempt_policy(run_dir: Path) -> dict[str, Any]:
return policy
+def _execution_backend_name(*sources: object) -> str:
+ """Return the backend a run recorded; Harbor runs record none."""
+ from skillevaluator.tier3.nemo_gym.backend import EXECUTION_BACKENDS, HARBOR_BACKEND
+
+ for source in sources:
+ if not isinstance(source, dict):
+ continue
+ backend = source.get("execution_backend")
+ name = backend.get("name") if isinstance(backend, dict) else backend
+ if name in EXECUTION_BACKENDS:
+ return str(name)
+ return HARBOR_BACKEND
+
+
def _read_run_config(run_dir: Path) -> dict[str, Any]:
run_config_file = run_dir / "run_config.json"
if run_config_file.exists():
diff --git a/tests/reporting/test_execution_backend_reporting.py b/tests/reporting/test_execution_backend_reporting.py
new file mode 100644
index 00000000..a6c5c805
--- /dev/null
+++ b/tests/reporting/test_execution_backend_reporting.py
@@ -0,0 +1,71 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
+"""The Tier 3 report payload names the execution backend a run used."""
+
+from __future__ import annotations
+
+import json
+
+import pytest
+
+from skillevaluator.evaluation import tier3_report
+from skillevaluator.tier3.harbor import report_data
+from skillevaluator.tier3.harbor.metrics import DEFAULT_METRICS
+
+
+def _agents():
+ scores = dict.fromkeys(DEFAULT_METRICS, 1.0)
+ baseline = dict.fromkeys(DEFAULT_METRICS, 0.5)
+ return {
+ "agent": {
+ "execution_status": "succeeded",
+ "with_skill": scores,
+ "without_skill": baseline,
+ "rewards": [{**scores, "entry_id": "case", "trial_id": "case__attempt1"}],
+ "rewards_baseline": [{**baseline, "entry_id": "case", "trial_id": "case__attempt1"}],
+ "num_trials": 1,
+ "num_trials_baseline": 1,
+ }
+ }
+
+
+def _payload(monkeypatch, run_dir, **kwargs):
+ monkeypatch.setattr(report_data, "load_agent_data", lambda *_args, **_kwargs: _agents())
+ result = tier3_report.agent_eval_result_from_directory(
+ run_dir / "demo", run_dir, env_mode="docker", use_llm_judge=False, **kwargs
+ )
+ assert result is not None
+ return result.metadata["agent_eval"]
+
+
+ ("result_json", "expected"),
+ [
+ ({}, "harbor"),
+ ({"execution_backend": {"name": "nemo-gym", "version": "0.7.0rc0", "sandbox": "docker"}}, "nemo-gym"),
+ ({"execution_backend": {"name": "unknown"}}, "harbor"),
+ ],
+)
+def test_payload_records_the_backend_from_result_json(monkeypatch, tmp_path, result_json, expected):
+ (tmp_path / "result.json").write_text(json.dumps(result_json))
+
+ payload = _payload(monkeypatch, tmp_path)
+
+ assert payload["summary"]["execution_backend"] == expected
+ assert payload["summary"]["environment"] == "docker"
+
+
+def test_live_engine_result_and_run_config_name_the_backend(monkeypatch, tmp_path):
+ gym = {"execution_backend": {"name": "nemo-gym", "version": "0.7.0rc0", "sandbox": "docker"}}
+ assert _payload(monkeypatch, tmp_path, engine_result=gym)["summary"]["execution_backend"] == "nemo-gym"
+
+ (tmp_path / "run_config.json").write_text(json.dumps(gym))
+ assert _payload(monkeypatch, tmp_path)["summary"]["execution_backend"] == "nemo-gym"
+
+
+def test_payload_built_without_a_run_leaves_the_backend_unset():
+ payload = tier3_report.build_agent_eval_payload("demo", _agents(), use_llm_judge=False)
+
+ assert payload is not None
+ assert payload["summary"]["execution_backend"] is None