Skip to content

fix(tier3): treat placeholder expected_script and behavior values as no expectation - #402

Merged
rng1995 merged 8 commits into
mainfrom
fix/christopherk/empty-expected-script
Nov 10, 2026
Merged

rng1995 merged 8 commits into
mainfrom
fix/christopherk/empty-expected-script

Conversation

@chrisknvidia

@chrisknvidia chrisknvidia commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

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 called None, lowering Discoverability and Efficiency for a case that had no script expectation. The same happened with "expected_behavior": ["None"], which created a judged step. JSON null and "" already meant "no expectation". This PR makes common placeholders mean the same thing everywhere.

  • A new shared normalize_optional_reference (tier3/eval_core/optional_reference.py) maps None, null, N/A and - (case-insensitive, whole value only) and whitespace-only strings to None. A real name such as none.sh is kept. normalize_expected_behaviors drops placeholder-only steps.
  • The normalizer is applied in the dataset loader, in dataset generation (template and model-parsed cases, so a model reply of "None" is written as null), 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_check is N/A with the existing reason.
  • ground_truth is not normalized, because a literal "None" can be a real answer.
  • The dataset field docs tell authors to use null and say that placeholders are treated as null.

Verification

  • I am familiar with the Contributing Guidelines
  • Added or updated focused tests
  • Updated documentation for user-visible changes
  • Ran make lint (ruff check and format on the changed files)
  • Ran make test (focused tier3 suites)
  • Ran make build
  • Did not add credentials, private datasets, or proprietary benchmark content

Release Impact

  • No user-visible release note needed
  • Updated CHANGELOG.md

@NVIDIA NVIDIA deleted a comment from devin-ai-integration Bot Nov 9, 2026

@rng1995 rng1995 left a comment •

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@github-actions

github-actions Bot commented Nov 9, 2026 •

Copy link
Copy Markdown

Evaluation run

SkillEvaluator CI results

Required gate: Skipped

Only Tier 1 blocks CI; Tier 2 and Tier 3 are advisory.

Skill Tier 1: Static and Security Validation Tier 2: Deduplication Tier 3: Live Agent Evaluation Report
No skills evaluated SKIPPED · issues unknown · No selected skills changed; Tier 1 evaluation did not run. SKIPPED · issues unknown · No selected skills changed; evaluation did not run. SKIPPED · issues unknown · No selected skills changed; evaluation did not run. Report

Commit: 35e40e7966d31c8001ffcc74b69c53b397503be5 · Environment: docker

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@rng1995
rng1995 merged commit 6e11779 into main Nov 10, 2026
27 checks passed
@rng1995
rng1995 deleted the fix/christopherk/empty-expected-script branch November 10, 2026 03:27
rng1995 added a commit that referenced this pull request Nov 10, 2026
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 finkabbey-hue left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

python -m pip install --upgrade 'skillevaluator[all]==0.9.0'**Fixes #609 **

This branch was previously deployed

1 inactive deployment
skillevaluator — 35e40e79 Deployed Nov 10, 2026 by chrisknvidia via skills / paid-tiers (3) #53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants