Repository navigation
feat(reporting): add quantitative skill performance dashboard - #179
Conversation
Follow-up enhancements and fixes (pushed to this branch)@chrisknvidia: I merged main into the branch, then added 18 follow-up commits from a review and enhancement pass. Every commit is signed off. The full local suite passes (11,861 tests); the only 2 failures are sidecar tests that fail the same way on main in my environment. Head is Merges
Correctness
Performance
Safety
UX
Install and docs
Hygiene
Deferred, not in this PR
A full inline review of the whole PR follows separately. |
rng1995
left a comment
There was a problem hiding this comment.
Automated review: 14 findings (0 P1, 5 P2, 9 P3); 14 posted inline.
Review follow-upI posted 14 verified inline findings (5 P2, 9 P3). All are fixed, replied to, and resolved, one commit each (the two docs findings share one). Head is now
@chrisknvidia, three decisions are yours:
|
|
@rng1995 I checked the 14 resolved findings and their fixes, including the edge cases around incomplete coverage, repeated attempts, missing telemetry, overlapping inputs, and launcher shutdown. No additional correction was needed for those findings. For the three remaining questions:
I merged current Rebase follow-up: the branch is now rebased onto Validation on
No live provider evaluation was run. The local dashboard server and test processes have been stopped. |
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
Main's canonical Tier 3 report now collapses reward rows that share one physical trial into one logical trial and omits their token counters, and the collector's num_trials counts logical trials (num_reward_rows counts the rows). The dashboard found multi-step trials only through duplicate trial IDs in canonical trials, so after the merge a retained multi-step run without step_results reported the root mirror's tokens as the trial's usage. Count shared reward trial IDs in the retained trial directories, require authoritative step_results for those trials, and keep the ambiguity notice. The test fixture now writes the collector's current summary shape. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
After the merge, canonical Tier 3 trials take main's representation: they leave out the token record when prompt or completion usage was not measured instead of writing null counters. Update the changelog entry and the dashboard guide to match. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
The Windows CI job decodes encoding-less read_text/write_text as cp1252, so every dashboard test file read or write now passes encoding="utf-8". AppTest's default_timeout is a wall-clock budget, and the first st.dataframe in each xdist worker imports pandas and pyarrow inside that timed thread (about 7 s cold against 1.5 s warm). Import them before AppTest and raise the ceiling to 60 s; passing runs are not slower. A cold `-n 8` run of tests/reporting had two AppTest failures that passed on the next run. Also assert that `dashboard` is listed under Core workflows in --help. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
…ime rule Canonical Tier 3 JSON records each single-step trial's agent execution time as `agent_seconds`, but the dashboard only read a per-trial `duration_seconds` that no producer writes. Agent time and its delta were therefore blank for every uploaded, canonical, or validate report. Read `agent_seconds` first; an invalid value stays unavailable rather than falling back, and the legacy field is still read for hand-built payloads. Retained runs now use Harbor's shared `agent_execution_seconds`, which treats timestamps without a timezone as unavailable, so a run's dashboard time matches what its own canonical JSON and HTML report record. Label the column "Agent time" so it is not mistaken for wall-clock duration, add a contract test that builds the canonical payload with the producer and checks the dashboard against its `resources` block, and document the rule. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
…eport Harbor names each repeated attempt <task>__<random> without an attempt ordinal, so the dashboard treated every --n-attempts run above 1 as unpaired: scores and pass@k were blanked and every comparison was shown as mismatched coverage. The HTML report pairs these runs by matching case counts. Unnumbered attempts now pair by case count when every attempt has its own trial ID, which is the recorded identity of a physical attempt. Missing or shared trial IDs, mixed numbered and unnumbered attempts, and differing explicit attempt sets still fail closed. The dashboard no longer guesses attempt numbers from trial names, which also misread authored case IDs such as retry-attempt1. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
… loader bound The report loader caps each JSON artifact at 2 MiB, and Harbor trajectories are bounded by node count, not bytes. One large with-skill trajectory recorded an artifact_loading reason, and the dashboard then treated the whole report as truncated trial coverage and blanked every score, pass@k and comparison. The HTML report keeps those scores, because a trajectory feeds only per-trial tokens and steps, and canonical trials then omit tokens so coverage counts already keep token totals unavailable. Treat trajectory-only loader reasons as telemetry. Any other artifact, a malformed reason list, or a bare truncated marker still blocks comparisons, and the separate trial-count check still catches a missing trial. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
…la escaping Report notices can carry text taken from a shared report, such as agent keys, upload names and catalog paths. Streamlit parses alert bodies as Markdown, so a crafted key could render a remote image or a link. Each notice now renders with st.text under one fixed warning, and the expander counts unique notices instead of every duplicate. The CSV export also missed full-width formula prefixes (for example U+FF1D), which spreadsheets fold to "=". Text cells are now probed after NFKC normalization, and tests cover the CR, LF and NBSP cases too. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
…ports Streamlit reruns the whole script on every widget change, so each filter click reloaded every command-line path and re-decoded every upload. On a large retained run that made a filter change take seconds. Command-line inputs are now cached by path plus a cheap stat fingerprint, so a rewritten file or a new entry directly inside a directory is picked up on the next interaction. Deeper edits inside a directory, such as a run still writing trials, appear after the new Reload reports button. Uploads are cached by their widget file ID instead of hashing the bytes. The size check now uses the upload's recorded size, and every message and source label is unchanged. Both CSV download buttons no longer trigger a rerun, and new AppTests cover the upload path, including the 16 MB boundary and invalid JSON. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
The dashboard skipped only inputs whose resolved paths were equal, so natural invocations such as a results directory plus a run inside it, a results directory plus its latest symlink, or a run plus its result.json loaded the same rows twice under the same source. Every pair then read as ambiguous duplicate conditions with blank deltas, and the condition row count doubled. Uploading the same file twice doubled the rows and the run count too. Rows reloaded from the same source, report, agent and condition are now kept once with a notice. That key is unique within one parse, so identical embedded reports in one file are still separate rows, and a CLI path and an upload of the same file keep their distinct sources. Byte-identical uploads are skipped with a notice; the digest is computed inside the cached upload parse, so it runs once per uploaded file. The existing notice-count test loads a directory and a file inside it, so it now also expects the overlap notice. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
…eir own row A declared trial count of about 2**64 or more passed the count check, and when the trials could not be keyed it became the row's trial count. The performance table then failed Arrow conversion, so one malformed report blanked every valid report on the page. Counts above one million, far beyond the 512-trial loader bound, are now treated as invalid coverage counts, so that row shows the usual notice with no score or usage. An unreadable trials directory in a retained run raised out of the run loader and dropped every agent and condition in the run. That condition now gets a notice and blank usage totals while the run's other rows load. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
…un loader The retained-run loader hard-coded 512 and 4096, the same trial bounds the canonical report loader uses, with nothing tying the two together. They are now named constants, and a test checks that they still match report_data. A repeated directory check that could never trigger is removed, the JSON reader stats each file once, the catalog and discovery limit notices are written once, _set_usage always takes an explicit expected count, and the multi-step ambiguity notice is matched exactly rather than by a copied substring. Messages and behaviour are unchanged. New tests cover the trial discovery limit without creating 513 directories, the local JSON size limit at and just past the boundary, and that a resolved multi-step scope leaves no ambiguity notice. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
"incomplete or mismatched coverage" covered several different causes, so users had to read the JSON to learn why a pair had no deltas. A new Comparison reason column, included in every comparison view and in the CSV, names the first failing check: a failed or skipped arm, invalid trial counts, truncated trial data, incomplete coverage in one arm, different cases or attempts, a different dataset or attempt policy, a missing arm, or an arm loaded more than once. comparison_status and the pairing rules are unchanged. The status filter also ran before pairing, so filtering to succeeded rows turned a recorded failed baseline into "missing condition". Status now narrows the performance table only, like the condition filter, and the comparison shows the failed arm as the reason instead. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
When the filters excluded every row, the comparison tab still told users to load reports with both conditions, although such reports were loaded. It now says that no rows match the filters, as the performance tab does. When pairs exist but none is comparable, an info line points to the Comparison reason column. Coverage cells now read "1 trial" instead of "1 trials". No SkillEvaluator command writes dashboard_metadata.harness_features, so every evaluator-produced run shows features as unknown. When no loaded row records features, a caption says how to add them, and the reports guide states that the field is added by hand. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
The performance table showed only usage totals summed over each row's trials, so a model or harness that ran more trials looked proportionally more expensive. Issue #170 is about comparing models and harnesses, where trial counts can differ. Each row now also carries tokens, agent time, and cost per trial. A total is published only when every expected trial is measured, so dividing it by the expected trial count gives an exact mean, and the per-trial value stays blank whenever the total does. The columns sit right after the score in the table and CSV; the totals remain. Comparison deltas are unchanged because pairs already require identical trial keys. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
… extra skillevaluator is not published on PyPI, so the pip install command in the missing-extra error and the reports guide could not succeed and invited dependency confusion. Point both at the same uv tool install from GitHub that the installation guide uses, with [all,dashboard] so a reinstall keeps the evaluator extras. List the dashboard extra in the extras table and stop saying [all] installs every extra. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
…ctory and prompts The launcher ran python -m streamlit from the caller's directory, so a streamlit.py there ran instead of Streamlit, a project .streamlit/config.toml could reopen CORS, and the reporting package directory shadowed stdlib html. Start Streamlit with -P from a dedicated dashboard_ui directory, restrict WebSocket Host headers to loopback, and pin CORS and XSRF protection. An explicit headless=false made Streamlit ask for an email and exit 255 without a TTY, so headless is now set only for --no-browser and the prompt is off. The file watcher banner and developer toolbar are switched off too. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
The Unreleased Fixed entry for omitting unmeasured token usage describes behaviour main shipped in v0.5.0 (#83), and this PR changes no producer; the second Fixed entry describes the dashboard, which is itself new. Fold both into one Added entry that names what the dashboard compares, where time and cost come from, and how inputs are cached. In the reports guide, describe a performance row and the pairing rule precisely (same report and agent, dataset digest and attempt policy), drop the advice to regenerate canonical JSON (no command does that), describe multi-step trials as v0.5.0 canonical JSON writes them, document the agent_result token fallback, and list the accepted harness_features forms and their precedence. Two tests pin the precedence and the accepted forms. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
…ccurately The reports guide said every loader truncation other than an oversized trajectory blocks comparisons, but truncation limited to diagnostic details leaves pairs comparable with a notice, as a test already pins. The CHANGELOG entry placed per-trial means among the paired differences; they appear only in the performance table. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
…coverage When a canonical condition listed fewer trials than num_trials, the usage coverage denominator added the shortfall on top of the declared count, so 9 of 10 trials read "tokens 9/11". Trials missing from the declared count are now counted once; totals still stay unavailable until every trial is measured. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
…ned runs Retained runs were parsed through the canonical builder with its 2 MiB embedded-report budget, so a large multi-agent run lost every non-best agent's trials and showed "0 trials" with no score. The builder now takes enforce_embedded_size (default True for every other caller), and the dashboard turns it off because it never embeds the payload; loader truncation is still recorded. Canonical JSON that was pruned this way still fails closed, but the row now shows the declared trial count and the comparison reason says the trial details were pruned and to load the retained run directory. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
…nreadable A malformed, oversized, or symlinked trajectory.json made the whole retained trial unmeasured, dropping the agent time and cost that result.json records and the documented agent_result token fallback. The canonical export keeps that time, so the retained run showed less than its own export. Now only the trajectory is skipped, with a per-trial notice, and tokens fall back to agent_result. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
…g.json The guide says to add dashboard_metadata to run_config.json by hand, but the loader read that file only when result.json had no embedded run_config, and every real run embeds one, so hand-added features stayed "unknown". The run directory's run_config.json now wins; the embedded copy is used, with a notice, only when the file cannot be read. The test fixture now embeds run_config in result.json the way the runner does. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
…vailable Canonical exports written before v0.5.0 recorded missing token counters as zero, and the dashboard showed those zeros as measured and published token differences against them. When a report's evaluator_version is earlier than 0.5.0, zero token counters are now unavailable and the source gets a notice pointing to the retained run directory. Missing or unparsable versions keep their values. Retained runs read counters from disk and do not show the notice. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
A directory input is cached on the directory's own fingerprint, which does not change when a file inside it is rewritten in place. When the directory came before that file on the command line, dedupe_rows kept the directory's stale rows and dropped the file's fresh ones. Load the deepest inputs first so the explicitly named file wins. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
A directory input with a subdirectory the user cannot search (such as a root-owned trial directory from a container run) raised PermissionError from the native-run probe, and main() let it replace the whole page with a traceback. The directory walk now records a notice for that subdirectory and keeps going, and main() turns any unexpected load error for one input into a notice so the other inputs still render. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
The long-attempt test only set trial_id, which stopped carrying attempt numbers when attempt pairing moved to the attempt and attempt_index fields, so it passed regardless of how attempts were normalized. It now sets a 5000-digit attempt with leading zeros on one arm and checks that it pairs with the same value, and not with a different one. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
The directory-walk test created a symlink without the OSError guard the other symlink tests use, so it errored on Windows hosts without symlink rights. The malformed and missing-input checks now live in their own test, and the symlink test skips when the host cannot create one. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
The launcher limits browser connections to 127.0.0.1 and localhost through server.allowedHosts, which Streamlit added in 1.61. Older releases ignore the setting without a warning, so the dashboard extra now requires 1.61. A new test checks that every setting the launcher passes exists in the installed Streamlit, and the packaging test pins the new floor. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
When a signal killed Streamlit, the launcher passed the negative return code to SystemExit, so a forwarded SIGHUP exited 255 and SIGKILL 247. The launcher now exits 128 plus the signal number (129 and 137), as a shell does, and the busy-port hint stays limited to Streamlit's own errors. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
…ts it The launcher assumed Ctrl+C always reached the whole process group. A SIGINT sent to the launcher's pid alone left Streamlit serving the port for 10 seconds until it was terminated. The launcher now sends SIGINT to Streamlit before waiting, outside Windows. A new test covers the timeout path that terminates a Streamlit that does not stop. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
…ompacted Since #77 the embedded-size budget compacts a non-best agent's conditions (status, errors and attempt counts) instead of dropping them, so requiring empty conditions no longer recognized a pruned agent. Its canonical row then read "0 with / 0 without" with a generic reason. Detect pruning from the truncation marker and the emptied trial lists only, which covers both report shapes. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
The launcher tests replaced importlib.util.find_spec for every module with a
stub that returned a bare object(). Under coverage, a sys.path change makes
coverage look up the measured package through find_spec while the CLI runs;
it got the stub, raised AttributeError ('object' has no attribute 'origin'),
and the command exited 1. The Python 3.12 CI job (serial, with coverage)
failed test_launch_uses_loopback_and_literal_absolute_paths and
test_explicit_port_failure_has_hint this way. Fake only the "streamlit"
lookup, with a real ModuleSpec, and pass every other name through.
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
d636f02 to
d2b0656
Compare
|
@chrisknvidia Thanks. I checked the rebase:
I updated the description with the rebased head and your three decisions, and dropped the size-limit question from the follow-ups. Commit SHAs quoted in earlier comments predate the rebase; their content is unchanged. |
Brings in #179 (performance dashboard). No conflicts. uv.lock and pyproject.toml match main (this branch changes no dependencies), and regenerating tests/golden/cli_surface.json with `PYTHONPATH=src python tests/golden/generate_cli_surface.py` produced no change: the merged surface is main's (now including `dashboard`) plus --previous-skill. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
Brings in #179 (performance dashboard). No conflicts; uv.lock and pyproject.toml match main (this branch changes no dependencies). The dashboard reads per-agent execution_status only and applies no strict key schema to result.json, so the branch's error_code field needs no dashboard change. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
Sync with main at 6068b3a: #124 (one versioned five-dimension overall-score policy, custom-only ranking and compare), #183 (Runta and Mosaic), #140 (GKE mode, Vertex AI routing for Claude Code, MCP declaration validation), #179 (performance dashboard) and the commits between them. Conflicts and resolutions: - CHANGELOG.md: main's Added entries (dashboard, GKE, Vertex AI, MCP validation) next to the PR's under Unreleased; main's Fixed entries were already present. One Added, Changed and Fixed heading each. - docs/cli-reference.mdx: the PR's agents row (experimental Hermes) and main's 27-mode env row (runta and mosaic selectable). - docs/reports.mdx, docs/tier3-live-evaluation.mdx: main's lift units and range sentence added to the PR's same-basis, N/A-aware lift text. - tier3/harbor/__init__.py: Docker Codex keeps the PR's subagent-aware local_agents wrapper; Docker Claude Code uses main's container wrapper. - tier3/harbor/local_agents.py: main's Vertex-aware SkillEvaluatorClaudeCode now also takes the PR's SetupNetworkErrorAgent mixin (every wrapper must rename setup network failures); the local and NVIDIA Build Claude Code wrappers inherit it from there; the PR's AgentSetupNetworkError and Codex rollout wrapper are kept. - tier3/harbor/adapter.py: main's MCP declaration models and fail-closed validate_mcp_server_declarations, and the PR's strict plugin_mcp_servers.toml loader; every loaded file, plugin servers included, now passes main's MCP security policy. - tier3/harbor/metrics.py: main's score policies, canonical dimension mean and overall_score_from_metrics, made N/A-aware: an N/A metric drops out of its dimension, a dimension with none scored drops out of the mean; the PR's finite_number replaces main's _finite_number. - tier3/harbor/templates/eval.py: main's dimension-mean overall with the PR's N/A exclusion (_reward_overall), main's Vertex token refresh, and the PR's fnmatch import. - tier3/harbor/templates/metric.py: main's metric-set and score-policy validation; a metric absent from the numeric-only reward.json is N/A (an explicit null or out-of-range value still fails); the overall is the dimension mean over scored dimensions; runs on older Pythons (future annotations, tuple isinstance). - tier3/harbor/collector.py: main's #124 policy handling ported into the PR's per-arm collector: each arm records its score policy (mixed policies fail it), its overall follows the policy, ambiguous policies reconcile and conflicting ones fail both conditions before any lift; the paired lift uses the shared policy, needs equal metric sets, and equals the difference of the condition overalls when both arms scored the same cases and metrics; pass@k lift needs equal metric sets; summaries carry score_policy and the results the per-condition overall, metrics and policy keys; N/A metrics stay in the run's metric list. - tier3/harbor/report_data.py: main's metric_set and score_policy keys, per arm key. - tier3/harbor/progress.py, runner.py, utils/redaction.py: both sides (secret-name regex, GKE imports and Vertex checks next to Hermes, ya29 redaction next to prefixed tokens). - tier3/commands.py (compare): main's policy and metric-set checks and custom-only handling with the PR's N/A rows; the Overall lift compares the metrics both arms scored. - tier3/result_display.py: main's policy-aware overall with N/A, main's custom-only Overall label with the PR's members and partial-run labels. - evaluation/tier3_report.py: _build_agent scores each arm by the score policy (N/A-aware for the current policy) and keeps the PR's same-basis lift, sum-of-parts and integration blocks; arms under different policies or metric sets get no lift; partial report builders resolve the same policy; main's attempt-policy read and the PR's dataset source. - uv.lock: main's lock plus the PR's regex dependency (uv lock --check). - tests (conftest, metrics truth, collector truth, public runtime, installed agent bootstrap): both sides. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
* feat(reporting): add quantitative skill performance dashboard * fix(dashboard): preserve trial coverage and resource ownership * docs(dashboard): clarify unavailable measurement reasons * fix(dashboard): enforce provenance and bounded artifact loading * fix(dashboard): reject invalid coverage and align upload limits Signed-off-by: Christopher Kevin <[email protected]>
* fix(dashboard): detect multi-step reward rows in retained runs * docs(dashboard): describe unmeasured token usage as omitted * style(dashboard): apply ruff format to dashboard_app.py * test(dashboard): use UTF-8 test I/O and a wider AppTest budget * fix(dashboard): read canonical agent_seconds and share main's agent-time rule * fix(dashboard): pair repeated Harbor attempts by case like the HTML report * fix(dashboard): keep scores comparable when only a trajectory hit the loader bound * fix(dashboard): show report notices as plain text and widen CSV formula escaping * perf(dashboard): cache loaded reports across reruns and add Reload reports * fix(dashboard): load each report once when inputs overlap * fix(dashboard): keep malformed counts and unreadable trials inside their own row * refactor(dashboard): name native trial bounds and tidy the retained-run loader * feat(dashboard): explain why a pair is not comparable * feat(dashboard): clearer empty states and an unrecorded-features notice * feat(dashboard): add per-trial token, time, and cost columns * fix(dashboard): give a working install command and list the dashboard extra * fix(dashboard): isolate the Streamlit launcher from the caller's directory and prompts * feat(dashboard): use the next free port unless --port is given * fix(dashboard): forward SIGTERM so the Streamlit server is not orphaned * docs(dashboard): align reports guide and CHANGELOG with recorded data * docs(dashboard): describe diagnostic truncation and per-trial means accurately * fix(dashboard): count a canonical row's missing trials once in usage coverage * fix(dashboard): keep non-best agents' trials when loading large retained runs * fix(dashboard): keep retained time and cost when trajectory.json is unreadable * fix(dashboard): read harness features from a retained run's run_config.json * fix(dashboard): treat zero token counters in pre-0.5.0 exports as unavailable * fix(dashboard): show a rewritten file over a stale directory copy * fix(dashboard): keep other inputs when a subdirectory is unreadable * test(dashboard): exercise long attempt values in the attempt fields * test(dashboard): skip the directory symlink check where symlinks fail * fix(dashboard): require Streamlit 1.61 for the allowed-hosts check * fix(dashboard): exit with 128 plus the signal when Streamlit is killed * fix(dashboard): pass SIGINT on to Streamlit when only the launcher gets it * fix(dashboard): detect pruned non-best agents whose conditions were compacted * test(dashboard): fake only Streamlit's module lookup in CLI tests Signed-off-by: Narendran Raghavan <[email protected]>
Brings in #179 (performance dashboard). No conflicts; uv.lock and pyproject.toml match main (this branch changes no dependencies). The dashboard reads per-agent execution_status only and applies no strict key schema to result.json, so the branch's error_code field needs no dashboard change. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
Brings in #179 (performance dashboard). No conflicts. uv.lock and pyproject.toml match main (this branch changes no dependencies), and regenerating tests/golden/cli_surface.json with `PYTHONPATH=src python tests/golden/generate_cli_surface.py` produced no change: the merged surface is main's (now including `dashboard`) plus --previous-skill. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
Sync with main at 6068b3a: #124 (one versioned five-dimension overall-score policy, custom-only ranking and compare), #183 (Runta and Mosaic), #140 (GKE mode, Vertex AI routing for Claude Code, MCP declaration validation), #179 (performance dashboard) and the commits between them. Conflicts and resolutions: - CHANGELOG.md: main's Added entries (dashboard, GKE, Vertex AI, MCP validation) next to the PR's under Unreleased; main's Fixed entries were already present. One Added, Changed and Fixed heading each. - docs/cli-reference.mdx: the PR's agents row (experimental Hermes) and main's 27-mode env row (runta and mosaic selectable). - docs/reports.mdx, docs/tier3-live-evaluation.mdx: main's lift units and range sentence added to the PR's same-basis, N/A-aware lift text. - tier3/harbor/__init__.py: Docker Codex keeps the PR's subagent-aware local_agents wrapper; Docker Claude Code uses main's container wrapper. - tier3/harbor/local_agents.py: main's Vertex-aware SkillEvaluatorClaudeCode now also takes the PR's SetupNetworkErrorAgent mixin (every wrapper must rename setup network failures); the local and NVIDIA Build Claude Code wrappers inherit it from there; the PR's AgentSetupNetworkError and Codex rollout wrapper are kept. - tier3/harbor/adapter.py: main's MCP declaration models and fail-closed validate_mcp_server_declarations, and the PR's strict plugin_mcp_servers.toml loader; every loaded file, plugin servers included, now passes main's MCP security policy. - tier3/harbor/metrics.py: main's score policies, canonical dimension mean and overall_score_from_metrics, made N/A-aware: an N/A metric drops out of its dimension, a dimension with none scored drops out of the mean; the PR's finite_number replaces main's _finite_number. - tier3/harbor/templates/eval.py: main's dimension-mean overall with the PR's N/A exclusion (_reward_overall), main's Vertex token refresh, and the PR's fnmatch import. - tier3/harbor/templates/metric.py: main's metric-set and score-policy validation; a metric absent from the numeric-only reward.json is N/A (an explicit null or out-of-range value still fails); the overall is the dimension mean over scored dimensions; runs on older Pythons (future annotations, tuple isinstance). - tier3/harbor/collector.py: main's #124 policy handling ported into the PR's per-arm collector: each arm records its score policy (mixed policies fail it), its overall follows the policy, ambiguous policies reconcile and conflicting ones fail both conditions before any lift; the paired lift uses the shared policy, needs equal metric sets, and equals the difference of the condition overalls when both arms scored the same cases and metrics; pass@k lift needs equal metric sets; summaries carry score_policy and the results the per-condition overall, metrics and policy keys; N/A metrics stay in the run's metric list. - tier3/harbor/report_data.py: main's metric_set and score_policy keys, per arm key. - tier3/harbor/progress.py, runner.py, utils/redaction.py: both sides (secret-name regex, GKE imports and Vertex checks next to Hermes, ya29 redaction next to prefixed tokens). - tier3/commands.py (compare): main's policy and metric-set checks and custom-only handling with the PR's N/A rows; the Overall lift compares the metrics both arms scored. - tier3/result_display.py: main's policy-aware overall with N/A, main's custom-only Overall label with the PR's members and partial-run labels. - evaluation/tier3_report.py: _build_agent scores each arm by the score policy (N/A-aware for the current policy) and keeps the PR's same-basis lift, sum-of-parts and integration blocks; arms under different policies or metric sets get no lift; partial report builders resolve the same policy; main's attempt-policy read and the PR's dataset source. - uv.lock: main's lock plus the PR's regex dependency (uv lock --check). - tests (conftest, metrics truth, collector truth, public runtime, installed agent bootstrap): both sides. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Summary
Closes #170.
Saved reports have to be inspected one at a time to compare agent skill quality and resource usage across models and harnesses. This PR adds an optional Python/Streamlit dashboard,
skillevaluator dashboard, that loads canonical Tier 3 JSON, consolidated reports, local catalogs, or retained Tier 3 run directories. It shows:Measurement rules:
agent_seconds(fix: target dependency coverage and Tier 3 result integrity #196) or from retainedagent_execution, under the same timezone-aware rule main uses. Cost appears only when a retained run recordsagent_result.cost_usd.Loading and safety:
python -P. It disables usage telemetry and the first-run email prompt, uses the next free port unless--portis given, and forwards SIGTERM/SIGHUP to Streamlit.The dashboard reads saved outputs only. It never starts evaluations or estimates prices.
Changes
skillevaluator dashboard [PATHS...] [--port N] [--no-browser]under Core workflows;dashboardoptional extra (streamlit>=1.61,<2; 1.61 is the first release that honours the allowed-hosts setting)reporting/dashboard_data.py: normalization, pairing, fail-closed totals, bounded loaders, row dedupereporting/dashboard_app.py(cached loading, filters, tables, CSV) andreporting/dashboard_ui/skillevaluator_dashboard.py(isolated Streamlit entry script)reporting/dashboard.pydocs/reports.mdx;docs/cli-reference.mdx;dashboardrow in thedocs/installation.mdxextras table; CHANGELOG; third-party noticesFollow-up commits on this branch
After the original five commits, the branch got 18 follow-up commits from an enhancement pass, then 13 more that address a 14-finding inline review (all threads resolved), a fix for #77's compacted pruned-agent conditions, and a CI-only test fix. Their details are in the PR comments and review threads. The branch is now rebased onto main
9f81039(40 signed-off commits, no merge commits); rebasing changed the commit SHAs quoted in earlier comments, but not their content.Verification
Signed-off commits; documentation, changelog and third-party notices updated.
Final head
d2b0656(rebased onto main9f81039): all 17 CI checks pass, including Tests (Python 3.12 and 3.13), Tier 2 on Windows and macOS, DCO, Gitleaks and CodeQL. Its tree is identical to the reviewed merged636f02, and the dashboard sources and tests are byte-identical to the pre-rebase head. Before the rebase, two launcher tests failed only in the serial Python 3.12 coverage job, because they stubbedfind_specfor all modules;d2b0656stubs only the Streamlit lookup. Local full suite (Python 3.13, Streamlit 1.65) before the rebase: 13,090 passed, 22 skipped. The 6 local failures were all outside the dashboard: 2test_harbor_secure_docker_environmentsidecar tests that fail the same way on main in this environment, and 4 bridge/preflight timing tests that pass on rerun.Dashboard and CLI gate
tests/reporting tests/test_cli.py tests/golden tests/test_oss_packaging.py: passed. Includes producer-contract tests that run main's canonical exporter and check that the dashboard's totals and deltas match the report'sresourcesfor 1 and 3 attempts.ruff check src tests,ruff formaton the PR files,uv lock --check,git diff --check, andfern check(no errors; the authenticated redirect check is skipped without a Fern token).Launcher behaviour checked live against Streamlit 1.65:
streamlit.pyin the current directory no longer runs;.streamlit/config.tomlcan't open CORS;Original author verification at
7b0448f:These were not all re-run after the follow-up commits; the automated suites above were.
No credentials, private datasets or proprietary benchmark content added.
No provider-backed agent evaluation or billing request ran. Physical mobile/Safari devices, assistive technology, and AppTest upload support on the Streamlit 1.61 floor were not tested; the upload tests skip if AppTest lacks
file_uploader.Deferred follow-ups
dashboard_metadata.harness_features, which would make those columns populate without hand edits.Review decisions
enforce_embedded_size: it defaults toTrue. Only the read-only dashboard opts out of embedded-payload pruning. Loader bounds and truncation reporting still apply, and exported reports keep their size cap.Outstanding review gate
The original author asked for dedicated Bugbot and Security Review passes, which were unavailable in their session. A multi-area review with adversarial verification has since run on this branch (see the review threads), but it does not replace those specific passes if they are still required.
Release Impact
CHANGELOG.md🤖 Generated with Claude Code