Repository navigation
fix(tier3): show N/A for N/A metrics in the terminal Skill Lift and the HTML trial drill-down - #411
Merged
Merged
Conversation
The Tier 3 terminal summary printed NO SCORE in the Skill Lift column of an evaluator or dimension that is N/A in either arm. The Markdown, HTML and CLI reporter tables already print N/A there. Most runs with a baseline hit this: Skill Execution, Efficiency and Discoverability are N/A in a baseline with no skill it could activate, and the judged metrics are N/A when the cases have no ground_truth or expected_behavior. The lift cell now reads N/A when either arm records the row as N/A and there is no delta. A lift missing for any other reason still reads NO SCORE. The evaluator table caption says N/A metrics are left out of scores and lift. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Describe when accuracy, goal_accuracy, behavior_check, skill_execution and skill_efficiency are N/A, how the reward files record them, that scores, dimensions, pass@k and Skill Lift leave them out, and that the terminal summary shows N/A for their scores and lift. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
In a baseline-only run (--skip-with-skill) the terminal summary printed NO SCORE in every Skill Lift cell, while the docs and the Markdown and CLI reporters say skipped. The lift cell now reads N/A for a row that is N/A in either arm, then skipped when the with-skill arm never ran, then NO SCORE, in the same order as the other reporters. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Pin three behaviors of the Harbor verifier that no test caught: - A trial with no trajectory fails the judges its case defines, but a judge without its reference stays N/A, so the arm's mean keeps the scored trials' value. - A judge that answers N/A for a case that defines its reference makes main() exit 1, and the collector cannot score the trial. - The verifier's own reference check counts 0, 0.0 and False as references and empty values as missing. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Name the current fields: behavior_check is N/A without assertions (legacy expected_behavior), accuracy and goal_accuracy without expected_output (legacy ground_truth). Say that an empty reference counts as missing, instead of a 0/false example users cannot author. Say that details.<metric> holds the not_applicable status and reason, that an all-N/A dimension makes the agent's verdict NEUTRAL, and that in a baseline-only run the lift of every row that is not N/A reads skipped. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
A baseline trial with no trajectory must keep skill_execution and skill_efficiency N/A, like the baseline trials that ran. Scoring them 0 would turn the baseline's Discoverability and Efficiency into 0.0 and give the with-skill arm lift from skill activation alone. No test pinned this branch of the verifier's no-trajectory path. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…l-down The HTML report's Per-Evaluator Drill-Down printed a dash for every metric a trial did not score, so an N/A metric looked the same as a missing score. The cell now reads N/A, says why on hover and carries data-not-applicable="true". It reads the trial's not_applicable_metrics, which the report payload already records, and the display layer keeps only metric names that can be N/A. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
Only `skillevaluator tier3 ./my-skill` and `tier3 init-harbor-task` reject an empty expected_output. Other entry points accept it, and the verifier then records accuracy and goal_accuracy as N/A. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
The docs said an all-N/A dimension makes the agent's verdict NEUTRAL without naming the arm. The verdict reads only the with-skill arm, so Discoverability and Efficiency, which are N/A in a baseline with no skill it could activate, never block a PASS. Say so, give the with-skill example (Correctness without expected_output), and pin both cases with a saved-run test. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
The reasons for an N/A accuracy, goal_accuracy or behavior_check named only the legacy fields ground_truth and expected_behavior. The HTML report's Not applicable evaluators list and drill-down tooltips showed them for agentskills datasets too, whose fields are expected_output and assertions. Name the current field first and the legacy name after it. The verifier's own sidecar reasons are unchanged. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
The N/A paragraph said a dimension with no with-skill score makes the agent's verdict NEUTRAL. That is not always so: a skill that never activated gives INCONCLUSIVE, and the verdict table on the same page gives FAIL when another dimension is below 0.40. The paragraph now says only that the agent cannot PASS and points to the verdict table. A new test checks that claim on saved runs with a passing rest, with Security below 0.40 and with a skill that never activated, and another checks that the paragraph names no other verdict. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Nov 9, 2026
rng1995
marked this pull request as ready for review
November 9, 2026 19:49
rng1995
requested review from
chrisknvidia,
mosheabr and
rmalani-nv
as code owners
November 9, 2026 19:49
rng1995
commented
Nov 12, 2026
rng1995
left a comment
Collaborator
Author
There was a problem hiding this comment.
Reviewed the full production diff, callers, report/runner contracts and affected regression coverage; no actionable findings. Existing CI on reviewed head b4902e3: 20 successful checks, 2 skipped; no failed or pending checks. Fresh merge-tree verification against current main ce52a09 succeeds without conflicts. No code changes or local test rerun were needed. #425 remains stacked on this PR.
3 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The Tier 3 terminal summary printed
NO SCOREin every Skill Lift cell it could not compute. The Markdown, HTML and CLI reports printN/Afor a row that is N/A in either arm, thenskippedwhen the with-skill arm never ran, andNO SCOREonly for anything else. The HTML report's per-trial drill-down printed—for an N/A metric, the same as for a missing score.tier3/result_display.py: the lift cell in Results by Evaluator and Results by Dimension now follows the same order. It readsN/Awhen either arm records the row as N/A, thenskippedin a baseline-only run (--skip-with-skill), thenNO SCORE. Numeric lifts are unchanged. Custom metric rows can readskippedbut neverN/A.N/Awhen the trial recorded the metric as N/A, withdata-not-applicable="true"and aNot applicable: <reason>tooltip. A score missing for another reason still reads—.not_applicable_metrics, which the report payload already records (evaluation/tier3_report.py). It is set only when every row of the logical trial records the metric as N/A.reporting/html.pykeeps only names that can be N/A in that list, so a malformed saved payload cannot turn a security cell intoN/A. A newnot_applicable_reasontemplate filter reads the reason fromNOT_APPLICABLE_REASONSintier3/harbor/metrics.py.tier3/harbor/metrics.py: the reasons inNOT_APPLICABLE_REASONSforaccuracy,goal_accuracyandbehavior_checknamed only the legacy fieldsground_truthandexpected_behavior. They now nameexpected_outputandassertionsfirst, for exampleNo assertions (legacy expected_behavior) defined, so there is no workflow to check. The HTML report shows these reasons in its Not applicable evaluators list and in the drill-down tooltips, and the report payload'snot_applicable_evaluatorscarries them. The verifier's own reasons inskill_evaluator_reward.jsonare unchanged.docs/tier3-live-evaluation.mdx(Reading results) now explains N/A scores. The public docs did not describe them before. The section covers:assertions,expected_output) and their legacy namesskillevaluator tier3 ./my-skillandtier3 init-harbor-taskreject an emptyexpected_output, so with them only legacy cases withoutground_truthmakeaccuracyandgoal_accuracyN/A. Other entry points accept an emptyexpected_output, and the verifier then records both metrics as N/A.skill_evaluator_reward.json(nullvalue,statusandreasonunderdetails.<metric>) andreward.json(metric left out) record itexpected_output) has no with-skill score, so the agent cannot PASS. The sentence names no other verdict and points to the verdict table: which one applies depends on the other dimensions and on whether the skill activated. A dimension that is N/A only in the baseline (Discoverability and Efficiency without the skill) does not affect the verdict.summary.jsonfieldsdocs/reports.mdx:N/Ain their score and lift cells, and in a baseline-only run the lift of every row that is not N/A readsskipped.N/Aand says why on hover, and a score missing for another reason reads—.tier3 compare, which still prints-for them. Open PR fix(tier3): show the run's Overall lift in tier3 compare when a metric is N/A in one arm #386 changes how compare reads the same summaries, so this is a follow-up after fix(tier3): show the run's Overall lift in tier3 compare when a metric is N/A in one arm #386.The closed plugin-evaluation PR #28 carried a version of this fix inside its larger change; this PR lands the generic part on its own.
Why
Most runs with a baseline hit this. Skill Execution, Efficiency and Discoverability are N/A in a baseline with no skill it could activate.
behavior_checkis N/A when the cases have noassertions(legacyexpected_behavior), andaccuracyandgoal_accuracywhen they have noexpected_output(legacyground_truth). For example, on main a run whose cases have noassertionsprints these rows in Results by Evaluator (score bars left out):and this in Results by Dimension:
NO SCOREreads like a failed or missing measurement, while the metric was never applicable. With this PR these lift cells readN/A.In a baseline-only run every lift cell also read
NO SCORE, whiledocs/reports.mdxand the Markdown and CLI reports sayskipped. With this PR an Accuracy row readsskipped 0.60 skipped, and a Skill Execution row, which is N/A in the baseline, readsskipped N/A N/A, as in the other reports.The N/A reasons in the HTML report's Not applicable evaluators list, and now in the drill-down tooltips, named only
ground_truthandexpected_behavior. Datasets in the current format have neither field: they useexpected_outputandassertions, and the docs this PR adds name those first. The reasons now name both.Kept from public
Main already has the scoring part of this fix (#258, released in 0.7.0), so this PR changes only the terminal and drill-down cells, the report-side N/A reasons, docs and tests:
0,0.0andfalsecount as references:templates/eval.pyjudge_accuracy,judge_goal_accuracy,judge_behavior_checkand_has_judge_reference, mirrored ineval_core/llm_judge.py._call_required_judge(..., allow_not_applicable=...)turns an N/A answer for a case with a reference into a judge error, and the trial stays unscored._reward_overallaverages each dimension over its applicable metrics.reward.jsondrops N/A metrics, andskill_evaluator_reward.jsonkeepsnullwithstatus: "not_applicable"underdetails.<metric>.metrics.py(metric_is_not_applicable,mark_not_applicable,dimension_scores), lift (lift_basis.py), pass@k,summary.json(not_applicable_metrics,not_applicable_counts) and the report payload already handle N/A. Their sidecar reads stay bounded and no-follow.tests/tier3/test_metric_applicability_producer.py,tests/reporting/test_applicability_saved_runs.py). They did not pin four verifier behaviors or the verdict rule the docs now describe, so this PR adds tests for them. See Tests._agent_quality_verdict(evaluation/tier3_report.py) already reads only the with-skill dimension scores; this PR documents that._NO_GROUND_TRUTH_REASONand_NO_EXPECTED_BEHAVIOR_REASONintemplates/eval.pyandeval_core/llm_judge.py), whichskill_evaluator_reward.jsonrecords, keep main's text. Open PR fix(tier3): treat placeholder expected_script and behavior values as no expectation #402 edits the code next to them.not_applicable_metrics: N/A in every row of the logical trial) rather than adding a second per-trial field.templates/metric.py, which the adapter copies into each generated dataset, still rejects a reward that leaves out an N/A metric. Main pins that check (test_standalone_metric_rejects_incomplete_or_invalid_default_rewards), and Harbor 0.24 runs a dataset'smetric.pyonly for package datasets, not for the local datasets SkillEvaluator runs. This PR leaves it alone.Open PRs, checked against the open PRs listed today, and main at
35ef01e6:e5c100a7. Main has since merged fix(tier3): read evaluation datasets as UTF-8 #355, Keep report navigation persistent and evidence accessible #352 and test(tier3): run the Bedrock judge-deadline retry test on a manual clock #393.git merge-tree --write-treeof this branch withorigin/main35ef01e6is clean. The suite runs in Tests that say so used that merge. Main has since also merged feat(plugin): recognize native OpenClaw manifests in the private plugin helpers #391, fix(tier3): end feedback chat URL spans where a path after them can start #389 and feat(ci): add three-tier onboarding and private report feedback #349, and the merge with current main86f1a1f0is clean too.docs/tier3-live-evaluation.mdxabout 120 lines below this PR's N/A paragraphs, and a tooltip on the baseline cells of the HTML dimension table. Its docs agree with this PR's: Security is always scored, an N/A dimension is left out of an arm's overall score, and Discoverability and Efficiency are N/A in a no-skill baseline. docs(tier3): document per-arm dimension applicability for the no-skill baseline #398 does not describe the verdict; this PR's verdict sentence covers only the with-skill arm. Until docs(tier3): document per-arm dimension applicability for the no-skill baseline #398 merges, the page's formula block, which this PR leaves alone, still divides the overall by 5 (overall = (Security + Correctness + Discoverability + Effectiveness + Efficiency) / 5), which disagrees with this PR's sentence that a dimension whose metrics are all N/A drops out of the overall. docs(tier3): document per-arm dimension applicability for the no-skill baseline #398 rewrites that block asmean(scored(...)), so the page is consistent once both merge. On a merge of both with main, docs(tier3): document per-arm dimension applicability for the no-skill baseline #398's two test modules and this PR's four pass (229 tests).expected_scriptand behavior values) makes placeholder assertions such as["None"]count as missing. It editstemplates/eval.pyandeval_core/llm_judge.pynext to the verifier's N/A reasons, so this PR leaves those alone and changes only the report-side reasons intier3/harbor/metrics.py. This PR's docs list only what main counts as missing today, which fix(tier3): treat placeholder expected_script and behavior values as no expectation #402 extends without contradicting. On a merge of both with main, fix(tier3): treat placeholder expected_script and behavior values as no expectation #402's nine changed test modules and this PR's four pass (2660 passed, 1 skipped).tier3/result_display.py,report.html.j2,reporting/html.py,docs/reports.mdxandCHANGELOG.md, in different hunks. On a merge of both with main, this PR's four test modules pass (92 tests) and feat(tier3): fail cases on unmet goals and security issues, independent of lift #395's 14 changed test modules pass (581 passed, 4 skipped).Every successful agent has a dimension below 0.40) predicts FAIL when Correctness has no with-skill score and Security scores 0.1, but main's_agent_quality_verdictreturns NEUTRAL at the first dimension with no score. On a merge of both with main, that PR's two changed test modules and this PR's four pass (637 tests).tier3 comparereads the same summaries (see the follow-up in Summary).tier3/result_display.py,report.html.j2,reporting/html.pyor the two docs pages, and nearly every open PR adds a CHANGELOG entry. None editstier3/harbor/metrics.py, the drill-down cell,_sanitize_tier3_trial, the template filter list or the test modules this PR changes.35ef01e6without a conflict that main alone does not have. fix(tier1): scope ownership email policy and retain completeness diagnostics #333, fix(reporting): stop validate from repeating its header in short terminals #368 and feat(cli): show the wordmark in terminals narrower than 115 columns #369 already conflict with main, in the same files. The 6 fork PRs (fix(tier3): decode inline and Promise.allSettled Codex wrappers (#235) #325, fix(reporting): let default Tier 3 runs with a baseline pass publication #332, feat(quality): configure Reliability error handling in the quality config #336, fix(quality): derive instruction tokens from parsed frontmatter #356, fix(tier2): retain trailing shell comments in deduplication #357, feat(tier3): add fixed-source skill interaction evaluation #392) have no ref here. They share onlyCHANGELOG.mdwith this PR, and feat(tier3): add fixed-source skill interaction evaluation #392 alsodocs/tier3-live-evaluation.mdx.Tests
tests/tier3/test_metric_applicability_display.py, 2 new tests:test_terminal_lift_reads_na_when_either_arm_is_narenders a two-arm agent with N/A metrics in one arm and in both arms, a metric that is missing but not N/A, and scored metrics. N/A evaluator and dimension rows readN/Ain the lift column, the missing metric still readsNO SCORE, and scored rows keep+0.40.test_terminal_lift_reads_skipped_in_a_baseline_only_run_unless_the_row_is_narenders a--skip-with-skillresult. Scored rows readskippedin the with-skill and lift cells, and rows that are N/A in the baseline readN/Ain the lift.tests/tier3/test_metric_applicability_producer.py, 15 new cases for the Harbor verifier that runs in each trial:test_template_trial_without_trajectory_keeps_reference_less_judges_na: a trial with no trajectory fails the judges its case defines, keeps the others N/A, and does not pull the arm's mean down.test_template_baseline_trial_without_trajectory_keeps_skill_metrics_na: a baseline trial (has_skill: false) with no trajectory leavesskill_executionandskill_efficiencyout ofreward.jsonand records them as N/A inskill_evaluator_reward.json, like the baseline trials that ran.test_template_trial_is_unscored_when_a_judge_claims_na_for_a_defined_reference(3 cases, one per judge):main()exits 1, the sidecar records the judge error, and the collector cannot score the trial.test_template_reference_check_counts_false_and_zero_but_not_empty_values(10 cases): the verifier's own_has_judge_referencecounts0,0.0,Falseand"0"as references andNone, empty, blank and empty-list values as missing. Main tested only the host copy ineval_core/llm_judge.py.tests/reporting/test_tier3_baseline_trial_views.py, 4 new cases for the HTML drill-down:test_drilldown_reads_na_for_not_applicable_trial_cells: an N/A with-skill Accuracy cell and N/A baseline Skill Execution and Skill Efficiency cells readN/Awithdata-not-applicable="true"and the reason in the tooltip. A Goal Accuracy score missing without the N/A marker still reads—, and scored cells keep their scores.test_display_keeps_only_eligible_na_metric_names(3 cases): a saved trial whose list also namessecurityand an unknown metric keeps onlyaccuracy, a list stored as a string or a mapping becomes empty, and the Security cell stays—.tests/reporting/test_applicability_saved_runs.py, 7 new cases on saved runs:test_verdict_reads_only_with_skill_na_dimensions(2 cases). With N/A Discoverability and Efficiency in the baseline and 0.95 everywhere with the skill, the verdict ispass. Whenaccuracyandgoal_accuracyare also N/A in every with-skill trial, Correctness has no with-skill score and the verdict isneutral.test_with_skill_na_dimension_never_lets_the_agent_pass(3 cases): with Correctness N/A in every with-skill trial, the verdict is notpasswhen the other dimensions score 0.95, when Security scores 0.1, or when the skill never activated. It checks only what the docs promise, so it holds on main and with feat(tier3): fail cases on unmet goals and security issues, independent of lift #395 (neutral,neutral,inconclusive) and with fix(tier3): report FAIL when a scored dimension is below 0.40 even if another is N/A #414 (neutral,fail,inconclusive).test_docs_name_only_the_shared_outcome_of_a_with_skill_na_dimension: the docs paragraph on N/A with-skill dimensions says the agent cannot PASS and names no other verdict.test_na_evaluator_reasons_name_the_dataset_field_and_its_legacy_name: the report'snot_applicable_evaluatorsreasons start withNo expected_output (legacy ground_truth) definedforaccuracyandgoal_accuracyandNo assertions (legacy expected_behavior) definedforbehavior_check.mark_not_applicablerecords the same text.src/frommainand this PR's tests, the 2 new display tests fail (['0.80', 'N/A', 'NO SCORE'] == ['0.80', 'N/A', 'N/A']and['skipped', '0.50', 'NO SCORE'] == ['skipped', '0.50', 'skipped']). The other 42 tests in the two applicability modules pass.src/frommain, the 4 new drill-down cases fail ('—' == 'N/A', and the unsanitized lists come back as stored), and so does the reason test ('No ground_truth defined, so there is no reference answer to judge against'does not start withNo expected_output). The other 43 tests in the two reporting modules pass.src/from this branch before the reason commit, the reason test and the drill-down tooltip check fail, and the other 46 tests in the two reporting modules pass.so the agent cannot PASS), and on main's docs, which have no such paragraph.if not skill_metrics_on:block on the no-trajectory path fails the baseline no-trajectory test; passingallow_not_applicable=Trueto all three judges fails the 3 unscored-trial cases; making_has_judge_referencereturnbool(value)fails 5 reference cases (0,0.0,False, blank, blank items)._agent_quality_verdictskip a dimension with no with-skill score fails theneutralcase and the never-pass case whose other dimensions score 0.95, and making it also require a baseline score fails thepasscase.tests/reporting/test_tier3_baseline_trial_views.py: 29 passed (25 on main).tests/reporting/test_applicability_saved_runs.py: 19 passed (18 withsrc/from main).35ef01e6, the modules that render the terminal summary or read the changed docs or CHANGELOG: 1165 passed. They aretests/test_tier3_result_display.py,tests/test_tier3_case_summary.py,tests/test_commands.py,tests/test_cli.py,tests/test_harbor_timeout_recovery.py,tests/test_harbor_claude_refusal_fallback.py,tests/reporting/test_terminal_polish.py,tests/reporting/test_skill_activation_reporting.py,tests/reporting/test_shared_run_status.py,tests/tier3/test_skip_with_skill.py,tests/tier3/test_metric_applicability_display.py,tests/tier3/test_metric_applicability_producer.py,tests/test_accuracy_arithmetic.py,tests/test_benchmark_rollout_docs.py,tests/test_ci_change_classifier.py,tests/test_oss_packaging.py,tests/test_tier3_public_runtime.py,tests/ci/test_image_build.py,tests/tier3/test_private_loose_source.pyandtests/test_ci_workflows.py.tests/tier3, 9716 passed and 3 skipped.tests/reporting, which renders the HTML report, 1821 passed.ruff checkandruff format --checkare clean on the changed Python files, andscripts/check_oss_boundary.pypasses.🤖 Generated with Claude Code