Refactor: Rename CodeEvaluator to SystemEvaluator
Rename CodeEvaluator to SystemEvaluator to align with its focus on system-level metrics. A CodeEvaluator alias is kept in evaluators.py for backward-compatibility.
Fresh follow-up after the existing REQUEST_CHANGES review:
One additional polish item I don't see captured yet:
Low / release-note gap — the public rename needs an Unreleased changelog entry and an alias policy.
This PR introduces SystemEvaluator as the preferred public name while keeping CodeEvaluator = SystemEvaluator as a compatibility alias. That's the right compatibility shape, but CHANGELOG.md still only documents the older CodeEvaluator behavior from v0.2.2 and has no note for the rename or the support policy for the alias.
Suggested addition under Unreleased after the rebase:
- Added
SystemEvaluatoras the preferred name for deterministic/code-defined metrics. - Kept
CodeEvaluatoras a backward-compatible alias; state whether it is permanent or deprecated-but-supported.
That matters because users reading release notes need to know whether to migrate imports immediately or whether existing CodeEvaluator code remains supported.
Thanks Haiyuan! Addressed all comments on this PR.
Addressed all prior feedback. Thanks for following up on this! Appreciate it!
Fresh review against current head e861dc3.
The proposed follow-up comments check out against the source.
Findings:
-
B1:
CodeEvaluator().namecontract changed.CodeEvaluatoris now a true alias ofSystemEvaluator, andCodeEvaluator().nameresolves tosystem_evaluatorinstead of the legacycode_evaluator. That meansEvaluationReport.evaluator_namechanges for direct legacy constructor callers. This may be intentional, but it should be treated as a user-visible compatibility decision. Recommended resolution: keep the alias if that is the intended API shape, and document the evaluator-name change explicitly in the CHANGELOG/migration note. -
H1: notebook formatting noise is back. The notebook diff is still mostly reformat churn. My count on this head is about 2,601 changed notebook lines, with only 51 lines matching the evaluator rename surface. The exact count differs slightly from the earlier 2,595/43 number, but the conclusion is the same: the signal is buried in unrelated notebook churn.
-
H2: deprecation wording and behavior disagree. The CHANGELOG says
CodeEvaluatoris “deprecated but supported,” but the current alias cannot emit aDeprecationWarning. Either add an actual warning path, or soften the wording to “backward-compatible alias” without calling it deprecated. -
H3: unrelated scope leaks remain.
dashboard/app.pyis import-formatting only, andscripts/quality_report.pyremoves a blank line. Neither has evaluator rename relevance; thequality_report.pyhunk is also likely to conflict with #174 once that lands.
Additional process note: this PR is currently behind main and overlaps heavily with #123 in the evaluator migration surface. Before final review, please rebase after removing the notebook/scope noise and make the intended stack/merge order explicit so reviewers are not comparing stale migration text across overlapping PRs.
Thanks Haiyuan for your feedback on this! The latest round of feedback has been addressed.
Thank you! Addressed these final requests.