Skip to content

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

Closed
rng1995 wants to merge 1 commit into
mainfrom
naren/fix-skip-with-skill-root-sufficiency
Closed

rng1995 wants to merge 1 commit into
mainfrom
naren/fix-skip-with-skill-root-sufficiency

Conversation

@rng1995

@rng1995 rng1995 commented Nov 10, 2026

Copy link
Copy Markdown
Collaborator

Summary

#400 added a run-level dataset_sufficiency block to result.json. When _pick_best_agent finds no eligible agent, the block comes from a fallback in run_harbor_eval, which ranks the canonical agent payloads.

The problem is baseline-only (--skip-with-skill) runs. There the fallback ranked agents by "without_skill", but _build_agent publishes that score as "baseline". Every agent therefore ranked as unscored, and the fallback picked no agent. A single-agent run is still caught by the one-agent shortcut, but a baseline-only run with two or more agents wrote no root dataset_sufficiency, and tier3 evaluate printed no Dataset size: line.

This PR ranks by "baseline", as the canonical report already does for baseline-only runs (tier3_report.py).

Changes

File Change
src/skillevaluator/tier3/harbor/runner.py Baseline-only fallback ranks by "baseline" instead of "without_skill"
tests/test_tier3_progress.py New test_skipped_with_skill_agents_get_root_dataset_sufficiency_from_best_baseline: two --skip-with-skill agents, and the root block must equal the higher-baseline agent's. It fails on main with KeyError: 'dataset_sufficiency'.
CHANGELOG.md One sentence added to the unreleased dataset-sufficiency entry. #400 is not released yet, so there is no separate Fixed entry.

Testing

  • The new test fails on main (b61b1ef) and passes with the fix.
  • Focused files pass: tests/test_tier3_progress.py, tests/tier3/test_dataset_sufficiency.py, and the reporting tests for dataset sufficiency, advisory skip verdict and evidence volume (622 passed).
  • tests/reporting and the tests that read CHANGELOG.md pass (2172 passed).
  • ruff check and ruff format --check are clean.
  • End to end on real collect_harbor_results output for --skip-with-skill runs with 2 and 3 agents:
    • The root block is now present, and it comes from the same agent the canonical report picks as best.
    • A failed agent is never picked over a successful one.
    • Ties pick deterministically, and a run where every agent fails still has no block and doesn't crash.
    • The never-activated multi-agent paired run is unchanged.

🤖 Generated with Claude Code

…fficiency

The root dataset_sufficiency fallback in run_harbor_eval ranked canonical
agent payloads by "without_skill" in baseline-only (--skip-with-skill)
runs, but _build_agent publishes that score as "baseline". Every agent
ranked as unscored, so a baseline-only run with two or more agents wrote
no run-level dataset_sufficiency block and `tier3 evaluate` printed no
"Dataset size:" line. Rank by "baseline", as the canonical report does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
@rng1995 rng1995 closed this Nov 10, 2026
@rng1995
rng1995 deleted the naren/fix-skip-with-skill-root-sufficiency branch November 10, 2026 18:04
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