Repository navigation
fix(tier3): treat placeholder expected_script and behavior values as no expectation - #402
Conversation
…no expectation 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]>
There was a problem hiding this comment.
Automated review: 2 findings (0 P1, 1 P2, 1 P3); 2 posted inline.
Checked the shared normalizer, the dataset loader, template and LLM generation, the staged Harbor evaluator and the script/efficiency check entry points, comparing base and head with probes on the scaffold check, tier3 init-harbor-task, _prepare_dataset and LLM generation. The PR's 9 changed test files pass (2569 tests), and the existing suites for the touched code pass (404 tests: test_commands, test_harbor_scaffold_transactions, test_dataset_utils, test_workflow, test_runtime_eval_directories, test_judge_failure_artifacts, test_generated_script_line_endings). Ruff is clean on the 17 changed .py files.
Merges cleanly into main. Real file conflict with #403 in tier3/harbor/adapter.py (adjacent staged-module lines) and tier3/harbor/templates/eval.py; keep both staged modules and this PR's normalized expected_behavior line, because #403's judged_count = len(expected_behavior) otherwise counts placeholder steps that judge_behavior_check drops. Suggested order: this PR before #403. Other open PRs: CHANGELOG.md only.
With #382: its _requirements prefers assertions and flags a source conflict when they differ from expected_behavior, so a case with assertions ['None', 'Ran the script'] gets both requirements marked not_checked. Normalizing assertions too (see the inline comment) avoids this; do it before #382 lands, or update #382.
Signed-off-by: Christopher Kevin <[email protected]>
SkillEvaluator CI resultsRequired gate: Skipped Only Tier 1 blocks CI; Tier 2 and Tier 3 are advisory.
Commit: |
rng1995
left a comment
There was a problem hiding this comment.
Automated review: 1 findings (0 P1, 0 P2, 1 P3); 1 posted inline.
Re-checked our 2 comments at head 4510acb, plus fix commit 4821a08 and the two main merges after it.
Both are fixed: authored assertions now get the same placeholder normalization as expected_behavior, so the scaffold conflict check passes, and a truthy non-string expected_script is rejected with an entry-indexed error instead of being turned into a string. There is one new P3 inline, on the error message for a malformed model reply.
Tests: 2612 passed across the 10 test files this PR changes, run at head. Probes were also run against head, the reviewed head and main.
Merge state: up to date with main (1af2693 is an ancestor) and merges cleanly. GitHub shows it mergeable and waiting on review.
Approved from our side.
Signed-off-by: Christopher Kevin <[email protected]>
Main gained a first line in check_tool_efficiency (#402) right under the docstring this branch rewrites. Both are kept: this branch's docstring, then main's expected_script normalization. Signed-off-by: Narendran Raghavan <[email protected]> Co-Authored-By: Claude Opus 5.5 <[email protected]>
finkabbey-hue
left a comment
There was a problem hiding this comment.
python -m pip install --upgrade 'skillevaluator[all]==0.9.0'**Fixes #609 **
Summary
A placeholder such as
"expected_script": "None"was treated as a real script filename. Script and efficiency checks then deducted for never running a script calledNone, lowering Discoverability and Efficiency for a case that had no script expectation. The same happened with"expected_behavior": ["None"], which created a judged step. JSONnulland""already meant "no expectation". This PR makes common placeholders mean the same thing everywhere.normalize_optional_reference(tier3/eval_core/optional_reference.py) mapsNone,null,N/Aand-(case-insensitive, whole value only) and whitespace-only strings toNone. A real name such asnone.shis kept.normalize_expected_behaviorsdrops placeholder-only steps."None"is written asnull), in the packaged Harbor evaluator (staged like the other shared modules), and in the shared script and efficiency check entry points.expected_behavior: ["None"]now behaves like[]:behavior_checkis N/A with the existing reason.ground_truthis not normalized, because a literal "None" can be a real answer.nulland say that placeholders are treated asnull.Verification
make lint(ruff check and format on the changed files)make test(focused tier3 suites)make buildRelease Impact
CHANGELOG.md