Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
71bfdd1
feat(reporting): add quantitative skill performance dashboard
chrisknvidia Oct 5, 2026
d48a36d
fix(dashboard): preserve trial coverage and resource ownership
chrisknvidia Oct 5, 2026
059a59c
docs(dashboard): clarify unavailable measurement reasons
chrisknvidia Oct 5, 2026
a175d20
fix(dashboard): enforce provenance and bounded artifact loading
chrisknvidia Oct 5, 2026
b0a95ad
fix(dashboard): reject invalid coverage and align upload limits
chrisknvidia Oct 5, 2026
0800f03
fix(dashboard): detect multi-step reward rows in retained runs
rng1995 Oct 14, 2026
dac9ec8
docs(dashboard): describe unmeasured token usage as omitted
rng1995 Oct 14, 2026
1b489e5
style(dashboard): apply ruff format to dashboard_app.py
rng1995 Oct 16, 2026
6a7665b
test(dashboard): use UTF-8 test I/O and a wider AppTest budget
rng1995 Oct 16, 2026
30f173f
fix(dashboard): read canonical agent_seconds and share main's agent-t…
rng1995 Oct 16, 2026
088cebe
fix(dashboard): pair repeated Harbor attempts by case like the HTML r…
rng1995 Oct 16, 2026
da9f1b2
fix(dashboard): keep scores comparable when only a trajectory hit the…
rng1995 Oct 16, 2026
c91d6ec
fix(dashboard): show report notices as plain text and widen CSV formu…
rng1995 Oct 16, 2026
46dea66
perf(dashboard): cache loaded reports across reruns and add Reload re…
rng1995 Oct 16, 2026
ab55db6
fix(dashboard): load each report once when inputs overlap
rng1995 Oct 16, 2026
305dd66
fix(dashboard): keep malformed counts and unreadable trials inside th…
rng1995 Oct 16, 2026
d2cab48
refactor(dashboard): name native trial bounds and tidy the retained-r…
rng1995 Oct 16, 2026
b95986f
feat(dashboard): explain why a pair is not comparable
rng1995 Oct 16, 2026
e09ee6b
feat(dashboard): clearer empty states and an unrecorded-features notice
rng1995 Oct 16, 2026
7b5a0c0
feat(dashboard): add per-trial token, time, and cost columns
rng1995 Oct 16, 2026
03c831e
fix(dashboard): give a working install command and list the dashboard…
rng1995 Oct 16, 2026
08a67f8
fix(dashboard): isolate the Streamlit launcher from the caller's dire…
rng1995 Oct 16, 2026
bef6ea0
feat(dashboard): use the next free port unless --port is given
rng1995 Oct 16, 2026
d489828
fix(dashboard): forward SIGTERM so the Streamlit server is not orphaned
rng1995 Oct 16, 2026
d44ff81
docs(dashboard): align reports guide and CHANGELOG with recorded data
rng1995 Oct 16, 2026
e1d68e6
docs(dashboard): describe diagnostic truncation and per-trial means a…
rng1995 Oct 16, 2026
af3aa73
fix(dashboard): count a canonical row's missing trials once in usage …
rng1995 Oct 16, 2026
ace27f6
fix(dashboard): keep non-best agents' trials when loading large retai…
rng1995 Oct 16, 2026
9cd96b7
fix(dashboard): keep retained time and cost when trajectory.json is u…
rng1995 Oct 16, 2026
45dc37f
fix(dashboard): read harness features from a retained run's run_confi…
rng1995 Oct 16, 2026
9071ab7
fix(dashboard): treat zero token counters in pre-0.5.0 exports as una…
rng1995 Oct 16, 2026
01aed41
fix(dashboard): show a rewritten file over a stale directory copy
rng1995 Oct 16, 2026
a77d4ff
fix(dashboard): keep other inputs when a subdirectory is unreadable
rng1995 Oct 16, 2026
b6e5bee
test(dashboard): exercise long attempt values in the attempt fields
rng1995 Oct 16, 2026
263fedd
test(dashboard): skip the directory symlink check where symlinks fail
rng1995 Oct 16, 2026
09d00f5
fix(dashboard): require Streamlit 1.61 for the allowed-hosts check
rng1995 Oct 16, 2026
aecf9f4
fix(dashboard): exit with 128 plus the signal when Streamlit is killed
rng1995 Oct 16, 2026
c6d1a33
fix(dashboard): pass SIGINT on to Streamlit when only the launcher ge…
rng1995 Oct 16, 2026
9d539d2
fix(dashboard): detect pruned non-best agents whose conditions were c…
rng1995 Oct 16, 2026
d2b0656
test(dashboard): fake only Streamlit's module lookup in CLI tests
rng1995 Oct 16, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ All notable changes to SkillEvaluator are documented in this file.

### Added

- Optional `skillevaluator dashboard` tables for comparing saved Tier 3 reports
and retained runs across skills, models, harnesses, recorded harness
features, and skill conditions. Paired with/without differences cover score,
pass@k, tokens, and agent execution time, plus USD cost when retained runs
record it; the performance table also shows per-trial means alongside
totals. Comparisons require matching complete trial coverage (repeated
attempts pair by case, as in the HTML report) and name the reason when a
pair is not comparable. Inputs are read once and reused between
interactions (**Reload reports** re-reads them); browser uploads are limited
to 16 MB. Install it with the `dashboard` extra.
- Tier 3 support for Harbor GKE execution mode (`--env-mode gke`) and `--ek`
argument forwarding. API keys, bearer tokens, and passwords passed in `--ek`
keys or values are rejected to keep credentials out of process listings, while
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ SkillEvaluator release or commit. See [CITATION.cff](CITATION.cff).
## Documentation

See [the documentation](https://docs.nvidia.com/skills/skillevaluator/) for
setup, tier guides, reports, CI integration, and the CLI reference.
setup, tier guides, reports, CI integration, CLI reference, and
[performance dashboard](docs/reports.mdx#performance-dashboard).

## Installation and third-party software

Expand Down
1 change: 1 addition & 0 deletions THIRD_PARTY_NOTICES.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ records the exact resolved dependency set used for this release.
| LLM | Anthropic (MIT), Boto3 (Apache-2.0), LiteLLM (MIT), OpenAI (Apache-2.0) |
| Tier 3 | Harbor (Apache-2.0), MCP (MIT), OAuthLib (BSD-3-Clause), PyJWT (MIT), python-dotenv (BSD-3-Clause) |
| Security | Bandit (Apache-2.0), pip-audit (Apache-2.0) |
| Dashboard | Streamlit (Apache-2.0) |

## Unicode security data

Expand Down
22 changes: 22 additions & 0 deletions docs/cli-reference.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ commands referenced below.
| [init-harbor-task](#init-harbor-task) | Scaffold a bring-your-own-task Harbor starter | Nothing |
| [view](#view) | Open the latest HTML live-evaluation report | A previous `tier3 evaluate` run |
| [compare](#compare) | Compare live-evaluation results across agents | A previous `tier3 evaluate` run |
| [dashboard](#dashboard) | Filter quantitative tables and paired usage differences | Saved JSON reports or retained runs; dashboard extra |
| [harbor-view](#harbor-view) | Browse retained Harbor job artifacts | A run made with `--harbor-keep-jobs` |
| [doctor](#doctor) | Live-evaluation readiness check | Nothing |
| [health-check](#health-check) | Quick CLI + backend readiness check | Nothing |
Expand Down Expand Up @@ -501,6 +502,27 @@ skillevaluator compare ./my-skill
| --- | --- | --- |
| `--results-dir DIRECTORY` | unset | Results directory to read from. |

## dashboard

Open the optional local tables dashboard. Install the
[`dashboard` extra](installation.mdx#choosing-extras) first, then pass JSON
reports, retained run directories, or directories containing reports. With no
paths, upload JSON files in the browser.

```bash
skillevaluator dashboard reports/run-a.json reports/run-b.json
skillevaluator dashboard --no-browser --port 8502
```

| Option | Default | Description |
| --- | --- | --- |
| `--port` | `8501`, or the next free port | Local port on 127.0.0.1, from 1 through 65535. Pass it to require a specific port; the command fails if that port is busy. |
| `--no-browser` | off | Start the server without opening a browser. |

The server listens on `127.0.0.1`; Ctrl+C stops it. See the
[dashboard guide](reports.mdx#performance-dashboard) for measurements and
comparison eligibility.

## harbor-view

Open retained Harbor job artifacts with Harbor's trajectory browser. Takes a jobs directory as its argument and has no options. Jobs are only retained when the original run passed `--harbor-keep-jobs`. `skillevaluator tier3 harbor-view` is an identical tier-prefixed spelling.
Expand Down
3 changes: 2 additions & 1 deletion docs/installation.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,11 @@ and environment backends.
| `tier3` | Docker, local, and cloud live-agent evaluation through Harbor (pins `harbor==0.24.0` and requires `python-dotenv>=1.2.0`); includes `llm` |
| `security` | Bandit and pip-audit |
| `all` | `tier2`, `tier3`, and `security` in one bundle |
| `dashboard` | Local Streamlit tables for comparing saved reports and retained runs (`skillevaluator dashboard`); not included in `all` |
| `dev` | Build, test, coverage, and formatting tools for contributors |

<Tip>
`[all]` installs every SkillEvaluator extra. External scanner tools, Docker, agent CLIs, and the Harbor extras for managed sandbox backends (such as `harbor[modal]==0.24.0`) stay separate no matter which extra you pick — see [Agents & Sandboxes](agents-and-sandboxes.mdx#where-trials-run).
`[all]` installs the evaluator extras (`tier2`, `tier3`, `security`); add `dashboard` with `[all,dashboard]`. External scanner tools, Docker, agent CLIs, and the Harbor extras for managed sandbox backends (such as `harbor[modal]==0.24.0`) stay separate no matter which extra you pick — see [Agents & Sandboxes](agents-and-sandboxes.mdx#where-trials-run).
</Tip>

## System tools
Expand Down
113 changes: 113 additions & 0 deletions docs/reports.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,119 @@ skillevaluator harbor-view ./my-skill/evals/results/20260709_141530_12345_a1b2c3
(`skillevaluator tier3 harbor-view` is the same command under its expert
alias.)

## Performance dashboard

Install the optional Python dashboard and open saved JSON reports or individual
retained Tier 3 run directories:

```bash
uv tool install --python 3.13 --reinstall "skillevaluator[all,dashboard] @ git+https://github.com/NVIDIA/SkillEvaluator.git"
skillevaluator dashboard reports/run-a.json reports/run-b.json
skillevaluator dashboard ./my-skill/evals/results/<run-id>
# Start with an empty dashboard and upload several JSON reports in the browser:
skillevaluator dashboard
```

From a checkout, use `uv run --extra dashboard skillevaluator dashboard ...`.
For live reload while developing the dashboard, run
`PYTHONPATH=src uv run --extra dashboard streamlit run src/skillevaluator/reporting/dashboard_ui/skillevaluator_dashboard.py -- PATH`;
`PYTHONPATH=src` lets Streamlit watch the package modules for changes.
The server runs at `http://127.0.0.1:8501`, or the next free port when 8501 is
busy; pass `--port 8502` to require a specific port. Use `--no-browser` to
suppress opening a browser, and Ctrl+C to stop it.
The dashboard runs from its own package directory, so Streamlit settings or
secrets in your project's `.streamlit/` folder are not applied. It accepts
browser connections only for 127.0.0.1 and localhost.
Browser uploads accept up to 16 MB (16,000,000 bytes) per file. Local JSON files
accept up to 16 MiB (16,777,216 bytes); larger files produce a notice while other
valid reports remain available.

Filter the sortable tables by skill, model, harness, recorded harness features,
condition, and execution status. The status and condition filters narrow the
performance table only, so comparisons keep both arms; the other filters also
remove arms from comparisons. Download the visible performance or comparison
rows as CSV. Each performance row is one run, agent (harness and model),
recorded feature configuration, and condition.
Per-trial columns are means over the row's measured trials and stay blank when
any trial is unmeasured. They help compare rows with different trial counts,
but runs on different datasets are still not like-for-like.
The comparison table calculates **with skill minus without skill**, and percent
change relative to without skill. A negative usage difference means less usage;
a positive score difference means higher performance. Comparisons stay within
the same report and agent and require successful conditions with matching trial
coverage, the same dataset digest, and the same attempt policy.
When a pair's differences stay blank, the **Comparison reason** column says why.
Repeated attempts pair by case, as in the HTML report: each arm must record the
same number of attempts for every case, and each attempt must have its own
trial ID. A trajectory above the report loader's size bound leaves that trial's
token counts unavailable in canonical JSON but does not block score comparisons.
Truncation limited to diagnostic details, such as evidence, raw reward fields,
or non-best agent details, also leaves comparisons available, with a notice.
Truncation that drops trials or other trial artifacts, or that is not
explained, keeps comparisons unavailable.

The dashboard reads each input once and reuses it while you filter or switch
views. Rewriting a JSON file passed on the command line, or adding an entry
directly inside a directory input, is picked up on the next interaction. Edits
deeper inside a directory input (for example a run that is still writing trials)
or in reports a catalog references appear after **Reload reports** in the
sidebar; a browser refresh does not re-read them. Overlapping inputs, such as a
results directory and a run inside it, are loaded once. Byte-identical uploads
are skipped with a notice.

Missing measurements stay unavailable, and cost is shown only when recorded in
USD. Canonical Tier 3 JSON records each single-step trial's agent execution time
(`agent_seconds`) when Harbor's timestamps carry a timezone. Timestamps without a
timezone are treated as unavailable, as in the HTML report's
[measured agent resources](#measured-agent-resources). Agent time excludes
environment setup and verification. Canonical JSON never records USD cost; open
the retained run directory to show Harbor's recorded `agent_result.cost_usd` and
multi-step totals. For retained runs whose trajectory lacks token totals or
cannot be read, the dashboard falls back to Harbor's `agent_result` token
counters and keeps the trial's agent time and cost.
Exports written before v0.5.0 could encode missing token counters as zero, so
when a canonical JSON report's `evaluator_version` is earlier than 0.5.0 the
dashboard shows its zero token counters as unavailable and adds a notice; open
the retained run directory to recover recorded counters.
Cached tokens are shown separately and are not added again
to prompt plus completion tokens. No pricing estimates or new agent evaluations
are performed. Adverse conditions and harness features are displayed when
explicitly recorded; the dashboard does not run these experiments.

Since v0.5.0, canonical JSON collapses multi-step trials without per-trial token
or time totals, so they show as unmeasured. Older exports that repeat a trial ID
across reward rows show an ambiguity notice. Open the retained run directory to
recover totals from authoritative step results.

### Recorded harness features

Features are experiment metadata, not inferred from the harness name. Current
SkillEvaluator commands do not record this field; add it to the canonical JSON
or to `run_config.json` by hand. In a canonical Tier 3 JSON payload, an agent or
Comment thread
rng1995 marked this conversation as resolved.
Resolved
condition can include:

```json
"dashboard_metadata": {
"harness_features": ["claude-rules:enabled", "memory:disabled"]
}
```

`harness_features` can be a list of strings, a non-empty string, or a JSON
object. For canonical JSON the condition's value wins over the agent's, which
wins over the report's. For retained runs the order is the condition's
`summary.json`, then the agent entry in `run_config.json`, then the root of
`run_config.json`. Edit the run directory's `run_config.json`; the copy embedded
in `result.json` is used only when that file cannot be read. An empty feature
list records that no features were enabled and is shown as **none (recorded)**;
an absent field is displayed as **unknown**. Differing recorded models or
feature configurations are kept separate when pairing conditions.

An explicitly imported adverse condition uses `conditions.adverse`,
`trials_adverse`, `num_trials_adverse`, and `adverse` for its score in the same
agent payload. It appears in the performance table; usage differences are
calculated for with/without pairs only. Adverse conditions are import-only
metadata: no evaluator command produces them, and the dashboard does not run them.

## Machine-readable contract

For CI and tooling, two JSON entry points matter:
Expand Down
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,11 @@ security = [
"bandit>=1.9.4",
"pip-audit>=2.10.0",
]
# Optional local UI for comparing saved reports; never imported by base commands.
dashboard = [
# server.allowedHosts, which limits the dashboard to loopback host names, needs 1.61.
"streamlit>=1.61,<2",
]
# Full public install convenience bundle.
all = [
"skillevaluator[tier2,tier3,security]",
Expand Down
22 changes: 21 additions & 1 deletion src/skillevaluator/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def _validate_similarity_threshold(_ctx: click.Context, _param: click.Parameter,

_TOP_LEVEL_COMMAND_HELP_GROUPS = (
("Tier workflows", ("tier1", "tier2", "tier3")),
("Core workflows", ("validate", "health-check", "doctor", "models")),
("Core workflows", ("validate", "health-check", "doctor", "models", "dashboard")),
(
"Tier 1 · Static and security",
("quality-check", "rubric-eval", "security-scan", "pii-scan", "lint-scripts"),
Expand Down Expand Up @@ -3054,6 +3054,26 @@ def models_command(limit: int, as_json: bool) -> None:
raise SystemExit(run_models_command(limit=limit, as_json=as_json))


@cli.command("dashboard")
@click.argument("paths", nargs=-1, type=click.Path(exists=True, path_type=Path))
@click.option(
"--port",
type=click.IntRange(1, 65535),
default=None,
help="Local port on 127.0.0.1 (default 8501, or the next free port).",
)
@click.option("--no-browser", is_flag=True, help="Start the server without opening a browser.")
def dashboard_command(paths: tuple[Path, ...], port: int | None, no_browser: bool) -> None:
"""Compare saved JSON reports or retained Tier 3 run directories in tables.

Install skillevaluator[dashboard] first. With no PATHS, upload JSON reports
in the browser. The server listens on 127.0.0.1; Ctrl+C stops it.
"""
from skillevaluator.reporting.dashboard import launch_dashboard

raise SystemExit(launch_dashboard(paths, port=port, no_browser=no_browser))


@cli.command()
@click.option(
"-a",
Expand Down
20 changes: 15 additions & 5 deletions src/skillevaluator/evaluation/tier3_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -461,8 +461,13 @@ def agent_eval_result_from_directory(
evaluator_version: str | None = None,
evaluated_source: dict[str, Any] | None = None,
use_llm_judge: bool = True,
enforce_embedded_size: bool = True,
) -> ValidationResult | None:
"""Build the canonical ``AGENT_EVAL`` result for one explicit Harbor run."""
"""Build the canonical ``AGENT_EVAL`` result for one explicit Harbor run.

Read-only consumers that never embed the payload pass
``enforce_embedded_size=False`` to keep every agent's trial details.
"""
# Imported lazily so base-only Tier 1 workflows do not load Tier 3 helpers.
from skillevaluator.tier3.harbor.report_data import (
load_agent_data,
Expand Down Expand Up @@ -511,6 +516,7 @@ def agent_eval_result_from_directory(
publication_target_conflict=run_truth.get("publication_target_conflict"),
evaluated_source=evaluated_source,
use_llm_judge=use_llm_judge,
enforce_embedded_size=enforce_embedded_size,
)
return _validation_result_from_payload(payload)

Expand Down Expand Up @@ -621,6 +627,7 @@ def build_agent_eval_payload(
publication_target_conflict: str | None = None,
evaluated_source: dict[str, Any] | None = None,
use_llm_judge: bool = True,
enforce_embedded_size: bool = True,
) -> dict[str, Any] | None:
"""Assemble the canonical Tier 3 ``agent_eval`` payload from loaded agent data.

Expand All @@ -633,7 +640,8 @@ def build_agent_eval_payload(
``trials`` + ``pass_at_k``) feeds the Trials tab, deterministic + LLM
``conclusions`` / ``recommendations`` / ``suggestions`` feed the Insights tab,
and ``provenance`` (raw evaluators, raw lift, raw trial rewards) feeds the
Diagnostics tab.
Diagnostics tab. ``enforce_embedded_size=False`` skips the embedded-report
size pruning; loader truncation is still recorded in ``report_truncation``.
"""
from skillevaluator.tier3.harbor.report_data import (
build_dataset_snapshot,
Expand Down Expand Up @@ -920,7 +928,7 @@ def build_agent_eval_payload(
evidence_links,
)
payload = _sanitize_json_numbers(payload)
_enforce_report_payload_budget(payload, report_budget)
_enforce_report_payload_budget(payload, report_budget, enforce_size=enforce_embedded_size)
return payload


Expand Down Expand Up @@ -1188,7 +1196,9 @@ def _prune_pass_at_k_pairing_diagnostics(payload: dict[str, Any], report_budget:
report_budget.omit("unpaired_case_ids", omitted)


def _enforce_report_payload_budget(payload: dict[str, Any], report_budget: _ReportBudget) -> None:
def _enforce_report_payload_budget(
payload: dict[str, Any], report_budget: _ReportBudget, *, enforce_size: bool = True
) -> None:
"""Keep the complete self-contained payload within a hard serialized budget.

Cardinality limits normally keep the payload comfortably below the cap. The
Expand All @@ -1207,7 +1217,7 @@ def refresh_signal() -> None:
# best-agent and top-level projections.
_prune_pass_at_k_pairing_diagnostics(payload, report_budget)
refresh_signal()
if _serialized_payload_size(payload) <= _MAX_EMBEDDED_REPORT_BYTES:
if not enforce_size or _serialized_payload_size(payload) <= _MAX_EMBEDDED_REPORT_BYTES:
return

provenance = payload.get("provenance")
Expand Down
Loading
Loading