Repository navigation
fix(tier3): apply case-specific skill metric applicability across reports - #425
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]>
In the with-skill arm the verifier gave skill_efficiency 1.0 for every negative case, and gave skill_execution and skill_efficiency 1.0 for a case that names no expected_skill (a legacy case without expected_skill and should_trigger, or should_trigger true without expected_skill). Those free scores raised the trial overall, pass@k and the arm averages. Record both as N/A instead, with a null score and status "not_applicable" plus a case-level reason under details.<metric>, so the overall and every aggregate leave them out. A negative case keeps its skill_execution negative check. A positive case without tool calls keeps its 0.0. A trial without a trajectory keeps the same metrics N/A rather than 0.0. The library scorers score_skill_execution and score_skill_efficiency follow the same rules, and the activation summary treats an N/A skill_execution as not applicable, as it did the old skip messages. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
The HTML report's Not applicable evaluators list and the drill-down tooltip explained every N/A skill_execution or skill_efficiency with "This arm has no skill under test installed". With the skill installed, these metrics are now N/A only because of the eval case: a negative case or one that names no expected_skill. Add not_applicable_reason() with case-level text for the with-skill arm and use it in both places. The baseline arm, including a baseline-only run, keeps its text. Signed-off-by: Narendran Raghavan <[email protected]> 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]>
…led execution Three verifier tests use a negative case and expected skill_efficiency 1.0 in reward.json, and one library test expected an unlabeled case to score skill_execution 1.0. Both metrics are now N/A there: reward.json leaves skill_efficiency out, the overall averages the other dimensions, and the merged sidecar keeps the trial scoreable. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…checks Give the negative case a goal_accuracy of 1.0 so its attempt passes on the overall alone. An attempt that also fails on an unmet goal would hide whether the N/A efficiency was left out of its score. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
The partial-N/A collector test gave its negative case a Discoverability of 0.4, but the negative check scores only 0.0 or 1.0. The case now scores 0.0 (its agent read the skill under test) with Correctness 0.6, so it still passes at 0.55 without the N/A Efficiency and would fail at 0.44 if that N/A counted as 0.0. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…wards
mark_not_applicable always wrote the baseline reason ("This arm has no
skill under test installed"). The collector uses it for the rewards it
builds or restores for a multi-step trial, so a with-skill negative
case's collected reward claimed that the skill was not installed.
mark_not_applicable now keeps a reason the reward already records for
its N/A metric, and otherwise takes the reason the caller passes, cut
to 512 characters. The collector passes the reason each step's verifier
recorded when it restores step and root rewards, and the steps' reasons
when it builds the logical reward. Without a recorded reason the
metric's generic reason still applies.
Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
The baseline-only test called _not_applicable_evaluators directly, so it never checked that _build_agent asks for the baseline reasons in a --skip-with-skill run. It now collects a baseline-only Harbor job and builds the report payload: the mode is baseline_only and both skill metrics keep "This arm has no skill under test installed". A second test collects a with-skill arm whose cases are all negative. Discoverability keeps its negative-check score, Efficiency is N/A, and the verdict is neutral, as the docs now say. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…unscored The N/A list and the CHANGELOG said only that a dataset where no case names an expected_skill cannot PASS. A dataset whose cases are all negative, such as a run filtered to the negative cases, cannot PASS either: Efficiency has no with-skill score there, while the negative check still scores Discoverability. The docs now state the rule (some case must be positive with an expected_skill) and when Discoverability is unscored too. The legacy flat format section of eval-datasets.mdx now says that an entry without expected_skill and should_trigger leaves Discoverability and Efficiency N/A. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…al checks The all-negative run scored 0.9 on Goal Accuracy and Security. Open work that fails a case on an unmet goal would make its verdict fail instead of neutral. The run now meets its goals with no security finding, so only the N/A Efficiency keeps it from PASS. With Efficiency scored 1.0 instead, the same run passes. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
…e candidate A no-skill arm that stages a skill the case could activate is scored on the skill metrics, but a negative case still leaves skill_efficiency N/A and a case without expected_skill leaves both N/A. Pin that in the verifier, and say so in the docs and the changelog entry. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
rng1995
left a comment
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 f60e896: 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. Merge #411 before this stacked PR.
rng1995
left a comment
There was a problem hiding this comment.
Cross-PR published-route audit found one new file-relative MDX link that Fern does not resolve.
Signed-off-by: Narendran Raghavan <[email protected]>
rng1995
left a comment
There was a problem hiding this comment.
Addressed the published-link finding in 95bc4ca61b33. The one-link correction passes the pinned Fern check (0 errors; existing authenticated-redirect warning) and git diff --check; the inline thread is resolved. The earlier full production/test review remains applicable, with no code changes in this follow-up. CI for the updated head is running; retain the stack and merge #411 first.
Signed-off-by: Narendran Raghavan <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
Preserve case-level N/A scoring, corrected applicability documentation and baseline context explanations while retaining the merged verdict, terminal and mixed-judge reporting changes. Signed-off-by: Narendran Raghavan <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]> # Conflicts: # CHANGELOG.md
rng1995
left a comment
There was a problem hiding this comment.
Reviewed the concurrent applicability refinements on 7426197 and retained its published-route repair, contextual N/A helpers, baseline-case explanations and regression tests. Resolved its remaining CHANGELOG conflict with main 487910e, preserving both entries. The combined applicability, N/A display, FAIL-precedence, judge-comparison and baseline-tooltip selection passed 84 tests; make lint and pinned Fern check passed. Final head 651c146 was pushed normally after fresh live-head/main checks. Base is now main because #411 was merged externally.
Retain incoming main changelog order and the owned case applicability entries. All owned source, test and documentation blobs remain unchanged. Signed-off-by: Narendran Raghavan <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
rng1995
left a comment
There was a problem hiding this comment.
The required macOS Tier 2 job exposed a report-template import regression in the concurrent tooltip refinement.
Signed-off-by: Narendran Raghavan <[email protected]>
rng1995
left a comment
There was a problem hiding this comment.
Fixed the new CI import-boundary regression in f94818b: a context-aware N/A filter prevents Jinja from importing runtime metrics during passive template compilation while preserving both tooltip contexts. The existing regression failed before the fix and passes after it; a main-only control also passes. All 98 focused private/static/public report tests, Ruff, formatting and pinned Fern checks pass. The four previous failed CI jobs each had only this same failure. Both inline findings are resolved; fresh CI is running on the final head.
Signed-off-by: Narendran Raghavan <[email protected]> # Conflicts: # CHANGELOG.md
rng1995
left a comment
There was a problem hiding this comment.
Reviewed 73f69d3: its delta from f94818b is limited to changelog grouping; all production code, templates, tests and docs are byte-identical, including contextual N/A behavior and the lazy-import fix. Seven current-head import-boundary and N/A smoke cases pass; Ruff and pinned Fern checks pass. Fresh merge-tree verification against main 487910e is clean. The earlier 98 focused cases exercised the same source, and both findings remain resolved.
rng1995
left a comment
There was a problem hiding this comment.
Reviewed the external main merge at 2c537b1. Its entire tree equals Git’s clean automatic merge of reviewed head 73f69d3 and main 335628d, with no manual or unexpected source delta. The context-aware N/A filter and published documentation route are preserved. Current-head validation: 100 private-runtime/static-report, saved-run applicability and baseline view tests passed, including the optional-runtime import regression; Ruff and pinned Fern checks passed. CI currently has 9/10 required checks green, with Python 3.12 still running.
Brings in #410, #412, #413, #419, #421, #425, #430 and #444. Conflicts: CHANGELOG.md (kept both Unreleased Fixed entries) and evaluation/options.py (kept main's tolerate_baseline_timeouts field and this PR's backend field). Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Narendran Raghavan <[email protected]>
Summary
Negative cases no longer receive a free Efficiency 1.0, and cases without
expected_skillno longer receive free skill-metric credit. The verifier records these metrics as N/A; collection, activation summaries, terminal/HTML reports and documentation preserve the case-specific reasons. Negative Discoverability checks and genuine positive no-tool penalties remain scored.Correct the per-arm applicability table and baseline N/A fallbacks for case-level exclusions and staged alternates. Preserve the concurrent lazy Jinja
@pass_contextimport correction so base-only installations can compile/render HTML without Harbor. Numeric policy, historical saved rewards and the Skill Lift formula are unchanged.Tracks SKILLEVAL-21, SKILLEVAL-96 and SKILLEVAL-100. This PR now targets main; prerequisite #411 is merged, as are #414 and #418.
Verification
Current head:
2c537b191904df7ee032cdb99ff11dd1e0d4b556, preserving the reviewed73f69d32/f94818b4 changes and merging main335628df. The concurrent main merge has not been overwritten.The package-dataset
templates/metric.pylimitation remains separate: it requires every reward field and cannot distinguish absent N/A fields without their sidecar. SkillEvaluator's local datasets do not use that package aggregation path; this PR preserves its fail-closed behavior rather than skipping missing metrics.Release Impact
Latest-main integration review
Both squash orders with exact #466 head f2919d1 combine cleanly against main4a34bd3, then latest mainb38b71be; latest converged preview tree
edcd27dfae7db6c6c043ba181786581982e12505. All970 non-owned pinned-main blobs are unchanged;15 owned425 files match2c exactly, and the3 #416 overlap files are independently reconstructed from425 plus the incoming timeout-report patch. Applicability, P3 fallback reasons, deferred Jinja imports and upstream tool-productivity classifiers/dimension constants are preserved.Combined preview:1,038 focused regressions passed, excluding only the4 existing513-case capped-report variants. Latest #417 documentation delta:9 passed; inherited readiness correction:1 selected case passed. Ruff18 changed Python files and pinned Fern passed(0errors, existing optional auth warning). These scoped results overlap earlier evidence and are not a full-suite claim. Exact2c hosted Python3.12/13/14 and all other gates passed. The coverage job completed20:48:55UTC, before the20:48:59UTC merge. No new integration defect was found in tested scopes, and no failed/pending gate is being bypassed.
Merge receipt
GitHub confirms squash merge88506620 into main. A final source-preservation audit reproduces its actual tree by merging the reviewed combined preview with concurrent main #464(Harbor0.25) and #419(saved feedback reuse). The earlier Harbor0.24 live-run evidence remains historical; current0.25 runtime/feedback contracts are checked separately and broad live/human qualification remains open in Jira.