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(reporting): retain fully denied run budget context in HTML (#661)

Christopher Kevin27fd7f4a09ee
diff --git a/CHANGELOG.md b/CHANGELOG.md
index c9710b77..0f662921 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -313,6 +313,8 @@ All notable changes to SkillEvaluator are documented in this file.
### Fixed
+- HTML reports retain budget context for fully budget-denied runs without
+ restoring untrusted score evidence.
- Fully budget-denied runs exit successfully and finish progress without an
execution error, while retaining skipped arms and an incomplete quality verdict.
- `--backend nemo-gym` no longer rejects a malformed `evals/environment/mcp_servers.toml`
diff --git a/src/skillevaluator/reporting/html.py b/src/skillevaluator/reporting/html.py
index 614171c7..7ffe81bc 100644
--- a/src/skillevaluator/reporting/html.py
+++ b/src/skillevaluator/reporting/html.py
@@ -3067,6 +3067,15 @@ class HTMLReporter(ReporterBase):
display["summary"]["harbor_viewer"] = preserved["summary"]["harbor_viewer"]
if preserved.get("_serialization_truncated") is True:
display["_serialization_truncated"] = True
+ from skillevaluator.tier3.harbor.run_budget import budget_fully_denied
+
+ if (
+ selected_execution_status == "skipped"
+ and not preserved.get("execution_errors")
+ and budget_fully_denied(preserved.get("budget"))
+ ):
+ display["budget"] = preserved["budget"]
+ display["budget_summary"] = preserved.get("budget_summary")
result_errors = [error for result in results for error in result.errors]
result_diagnostics = [
diff --git a/tests/reporting/test_budget_denied_html_context.py b/tests/reporting/test_budget_denied_html_context.py
new file mode 100644
index 00000000..74617a9b
--- /dev/null
+++ b/tests/reporting/test_budget_denied_html_context.py
@@ -0,0 +1,51 @@
+# SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
+# SPDX-License-Identifier: Apache-2.0
+
+import pytest
+
+from skillevaluator.evaluation.tier3_report import _validation_result_from_payload, build_agent_eval_payload
+from skillevaluator.reporting import HTMLReporter
+from skillevaluator.tier3.harbor.run_budget import BudgetController
+
+
[email protected]("change", [None, "error", "started", "reason", "empty", "missing"])
+def test_html_preserves_only_fully_denied_budget_context(change):
+ budget = BudgetController(max_attempts_total=0, planned=4)
+ for arm in ("with", "without"):
+ for attempt in (1, 2):
+ assert not budget.admit(agent="opencode", arm=arm, case_id="case", attempt=attempt)
+ condition = {
+ "execution_status": "skipped",
+ "skip_reason": "budget_exhausted",
+ "expected_attempts": 0,
+ "scored_attempts": 0,
+ }
+ payload = build_agent_eval_payload(
+ "skill",
+ {
+ "opencode": {
+ "execution_status": "skipped",
+ "execution_errors": [],
+ "conditions": {"with_skill": condition, "without_skill": condition},
+ }
+ },
+ run_config={"budget": budget.metadata()},
+ use_llm_judge=False,
+ )
+ if change == "error":
+ payload["execution_errors"] = ["real execution failure"]
+ elif change == "started":
+ payload["budget"]["started_attempts"] = 1
+ elif change == "reason":
+ payload["budget"]["not_run"][0]["reason"] = "execution_failed"
+ elif change == "empty":
+ payload["budget"]["not_run"] = []
+ elif change == "missing":
+ payload.pop("budget")
+ validation = _validation_result_from_payload(payload)
+ rendered = HTMLReporter(report_scope="tier3").render_all([validation])
+ assert ("Budget exhausted (attempts 0 of 0)" in rendered) is (change is None)
+ if change is None:
+ assert not validation.errors
+ assert 'data-verdict="incomplete"' in rendered
+ assert "with-skill not run due to budget" in rendered