Skip to content

fix(tier3): rank baseline-only agents by "baseline" for root dataset sufficiency - #450

Merged
rng1995 merged 1 commit into
mainfrom
naren/fix-dataset-sufficiency-baseline-key
Nov 10, 2026
Merged

rng1995 merged 1 commit into
mainfrom
naren/fix-dataset-sufficiency-baseline-key

Conversation

@rng1995

@rng1995 rng1995 commented Nov 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

#400 added a root dataset_sufficiency block to Tier 3 results. When the report's findings picker returns no agent, the runner falls back to the canonical best-agent picker. In a baseline-only run (--skip-with-skill), that fallback ranked agents by "without_skill". Canonical agent payloads carry the baseline-only score as "baseline" (see _build_agent and build_agent_eval_payload in evaluation/tier3_report.py), so no agent ranked. The fallback only covered the single-agent case.

The effect: a --skip-with-skill run with two or more agents left the dataset-size status out of result.json and the tier3 evaluate summary, while BENCHMARK.md still showed one. This PR ranks by "baseline", as the canonical report does, so the root block comes from the agent with the best baseline score.

Run Before After
--skip-with-skill, 2+ agents no root dataset_sufficiency; no Dataset size: line root block from the best-baseline agent; Dataset size: shown
--skip-with-skill, 1 agent shown (single-agent fallback) unchanged
Normal and never-activated runs shown unchanged

This was the remaining part of a #400 review follow-up (multi-agent --skip-with-skill). Two independent re-checks reproduced it after #400 merged.

Verification

  • I am familiar with the Contributing Guidelines
  • Added or updated focused tests
  • Updated documentation for user-visible changes (none needed; docs already describe this behavior)
  • Ran make lint (ruff check and ruff format --check on the changed files)
  • Ran make test (subset below)
  • Ran make build
  • Did not add credentials, private datasets, or proprietary benchmark content

Tests:

  • New test_skipped_with_skill_agents_rank_root_dataset_sufficiency_by_baseline (two --skip-with-skill agents). It fails on main with KeyError: 'dataset_sufficiency' and passes with the fix.
  • tests/test_tier3_progress.py, tests/reporting/test_dataset_sufficiency_rendering.py and tests/tier3/test_dataset_sufficiency.py: 174 passed.
  • tests/tier3, tests/reporting, tests/test_tier3_progress.py and tests/test_tier3_result_display.py: 12,504 passed and 13 failed. The 13 failures are in tests/tier3/test_judge_failure_artifacts.py. Their generated scripts run under the host's Python 3.9 python3 and fail the same way on main.

Release Impact

  • No user-visible release note needed
  • Updated CHANGELOG.md (Unreleased → Fixed)

🤖 Generated with Claude Code

…sufficiency

The root dataset_sufficiency fallback ranked canonical agent payloads by
"without_skill", but those payloads carry the baseline-only score as
"baseline". With two or more agents and --skip-with-skill, no agent ranked,
so result.json and the tier3 evaluate summary dropped the dataset-size
status while BENCHMARK.md still showed one. Use "baseline", as the
canonical report does, and add a two-agent regression test.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
@rng1995
rng1995 merged commit d717f22 into main Nov 10, 2026
22 checks passed
@rng1995
rng1995 deleted the naren/fix-dataset-sufficiency-baseline-key branch November 10, 2026 17:58
rng1995 added a commit that referenced this pull request Nov 11, 2026
Brings in main up to d717f22 (#450).

Conflicts:
- src/skillevaluator/evaluation/tier3_report.py: both sides rewrote the
  _agent_quality_verdict docstring. Main (#395) added a required-check FAIL
  after the never-activated check; the branch lets a dimension below 0.40
  fail the agent when another dimension has no score. Kept main's summary
  line ("required checks, then dimensions") and the branch's explanation of
  the missing-dimension rule. The function body merged without conflict:
  main's required-check FAIL runs first, then the branch's dimension gate.
- CHANGELOG.md: both sides appended to Unreleased > Fixed. Kept main's
  tier3 compare entry and put this branch's verdict entry after it.

Signed-off-by: Narendran Raghavan <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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.

1 participant