Skip to content

[BUG]: --skip-baseline crashes CLI reporting and fabricates zero evaluator lift #240

Closed

Description

@Tomauskasz

Observed on SkillEvaluator v0.6.0 (5320d93), Python 3.13, macOS.

A completed Tier 3 run with --skip-baseline --report cli,json,html crashed during console output. Because emit_reports() prints CLI first, the exception also prevented the requested JSON and HTML files from being written.

Minimal reproduction (no model or Docker calls):

from rich.console import Console
from skillevaluator.reporting.cli import CLIReporter
CLIReporter._print_agent_eval_tables({
    "verdict": "pass",
    "composite_lift": None,
    "evaluators": {"overall": {
        "with_skill": 0.95, "baseline": None, "lift": None,
    }},
}, Console())

Actual: reporting/cli.py:392, f"{bl:.2f}", raises TypeError: unsupported format string passed to NoneType.__format__. The with-skill cell has the same problem for an unavailable score. A saved completed run confirmed empty without_skill and overall_without_skill: null; this is an intentionally absent baseline, not a failed model call.

There is also a shared-data defect in evaluation/tier3_report.py::_build_evaluators: it changes unavailable lift into 0.0. Report replay then presents +0.00 even though no baseline exists. That falsely suggests a measured tie.

Expected: unavailable score/lift stays None in canonical data and JSON and displays as N/A. Real numeric zeroes remain 0.00/+0.00. All requested reporters finish. No grading criteria or thresholds need changing.

Minimal local repair:

  • In the console evaluator table, use absent-key defaults of None for with-skill, baseline and lift; format with-skill and baseline only when non-None (lift already has a guard).
  • In _build_evaluators, retain "lift": lift instead of replacing None with 0.0.

Local regression proof exercises 27 combinations of None/0.0/0.95, absent keys, the real payload builder plus emit_reports(cli,json,html), unchanged payloads and JSON null preservation, and paired equal scores with measured zero lift. All pass after the repair. The originally failed completed run also replays to all three report formats without additional model calls.

This is separate from the evidence-conversion/reference issues in #236. No upstream PR has been opened for this report fix.

Activity

  1. Tomauskasz commented on Oct 27, 2026

    @Tomauskasz
    ContributorAuthor

    Local verification is complete. Both production fixes are installed through a checksum-gated patch manifest.

    • Four focused regression tests pass, including 27 None/0.0/0.95 score combinations, absent keys, direct console output, combined CLI/JSON/HTML emission, JSON null preservation, Markdown and dimension-judge input. Paired equal scores retain real zero lift.
    • Independent mutation checks restore each original file and make the regression proof fail on that defect. A simulated pristine two-file reinstall applies both patches, then applies zero changes on repeat.
    • The saved completed --skip-baseline run now renders all three requested formats with baseline and lift unavailable. No new model/Docker calls were needed.
    • Reporting suite: 916 passed, 5 skipped because the optional Streamlit dashboard dependency is absent. One existing upstream assertion initially failed because it explicitly expected | Accuracy | 0.90 | N/A | +0.00 |; the corrected expectation is | Accuracy | 0.90 | N/A | N/A |, with explicit assertions that canonical baseline and lift are None. The 916-pass result uses that corrected regression test. The original failure is preserved.
    • Fourteen repository launcher/installer tests pass; prior rubric, wrapper, native-event and provenance proof scripts still pass. Focused lint, formatting, types and whitespace checks pass.

    Minimal shared-data patch:

    -            "lift": lift if lift is not None else 0.0,
    +            "lift": lift,

    Console table correction:

    -                ws = scores.get("with_skill", 0.0)
    -                bl = scores.get("baseline", 0.0)
    -                lift = scores.get("lift", 0.0)
    +                ws = scores.get("with_skill")
    +                bl = scores.get("baseline")
    +                lift = scores.get("lift")
    ...
    -                    f"{ws:.2f}",
    -                    f"{bl:.2f}",
    +                    f"{ws:.2f}" if ws is not None else "N/A",
    +                    f"{bl:.2f}" if bl is not None else "N/A",

    Rubric criteria, scoring weights and thresholds are unchanged. Existing reports are not retroactively regraded. This proves the repaired reporting paths, not general evaluator correctness or a new live agent evaluation. No upstream PR or merge is claimed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions