Skip to content

feat(tier3): report dataset coverage and label one-case starters - #381

Merged
chrisknvidia merged 5 commits into
mainfrom
feat/christopherk/dataset-coverage
Nov 10, 2026
Merged

chrisknvidia merged 5 commits into
mainfrom
feat/christopherk/dataset-coverage

Conversation

@chrisknvidia

Copy link
Copy Markdown
Collaborator

Summary

Authors could not tell from tier3 validate whether a dataset was a one-case starter or something closer to a representative evaluation, and autopilot generated a starter case with only a generic "review evals/" note.

  • tier3 validate adds an informational Dataset coverage block: case count, positive (should-trigger), negative/non-trigger and unlabeled-trigger counts, cases with an expected output, cases with assertions/expected behaviors, and concrete gaps (for example "no negative case that should not trigger the skill", or which metrics are N/A because judge references are missing). It reuses the existing dataset normalization and trigger resolution.
  • A single-case dataset is labelled "a starting point, not a representative evaluation". Larger datasets show counts and gaps without any claim of sufficiency.
  • --json stays a list of check objects; coverage is appended as one extra ok entry (evals/evals.json#coverage) with the usual path/status/message fields plus a structured coverage object. Existing entries, warnings and --strict exit codes are unchanged. Native Harbor task sources are skipped.
  • When autopilot or the direct workflow newly generates a starter, it prints the coverage gaps and the exact skillevaluator create-eval-dataset <skill> --full and skillevaluator tier3 validate <skill> commands to stderr. Quiet mode stays quiet; reused sources are not reported as generated.

Example (one-case reference skill):

Dataset coverage: 1 cases; 1 positive, 0 negative/non-trigger, 0 unlabeled trigger.
Expected outcome: 1/1; assertions/expected behaviors: 1/1.
One-case starter: a starting point, not a representative evaluation.
Gap: no negative case that should not trigger the skill.

Verification

  • I am familiar with the Contributing Guidelines
  • Added or updated focused tests (tests/tier3/test_dataset_coverage.py, plus message assertions in the workflow and generation-progress tests)
  • Updated documentation for user-visible changes (docs/eval-datasets.mdx, docs/tier3-live-evaluation.mdx)
  • Ran make lint
  • Ran make test — 47 failures, all of which also fail on a clean origin/main checkout in the same environment (CI onboarding origin checks, plugin dependency resolution, secure-fs/helpers, and a timing-sensitive MCP staging test); none are in touched code
  • Ran make build
  • Did not add credentials, private datasets, or proprietary benchmark content

Also ran skillevaluator tier3 validate (text and --json) against the bundled calculator and text-analyzer reference skills.

Release Impact

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

tier3 validate now prints an informational coverage summary (case count,
positive and negative trigger cases, expected outcomes, assertions and
concrete gaps) in text and JSON output. Newly generated autopilot starters
say they are a starting point, list their gaps and point to full dataset
generation and validation.

Signed-off-by: Christopher Kevin <[email protected]>

@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: 3 findings (0 P1, 1 P2, 2 P3); 3 posted inline.

Checked the new coverage summary in tier3/dataset_coverage.py, its use in tier3 validate (text and --json) and in the starter guidance printed by autopilot and the direct workflow, against the CHANGELOG and docs/eval-datasets.mdx and docs/tier3-live-evaluation.mdx, with probes on this head and origin/main.
Tests run on the head: tests/tier3/test_dataset_coverage.py, test_dataset_generation_progress.py and test_workflow.py (82 tests) pass except the FIFO subprocess tests, which hit their 5s timeout on a loaded host (2 failed in one run, 1 in another; importing the CLI alone took 6.8s). Timed directly, head and origin/main reject the FIFO the same way, and this PR adds no module to that import path, so those failures are not caused by it. The validate-related tests in test_harbor_case_id_safety.py, test_cli.py and test_commands.py gave 83 passed. ruff check is clean on the touched Python files; ruff format --check flags only a hunk at tests/tier3/test_workflow.py:663 that is the same on origin/main and outside this PR's lines.
Merges onto current main without conflicts. Against other open PRs it conflicts in CHANGELOG.md only.
Overlap with #377: its run-level next steps give the same dataset-gap advice, but re-implement resolve_should_trigger as next_steps._routing and count unlabeled cases differently, so validate and the #377 report can give different counts for the same dataset. Whichever lands second should reuse summarize_dataset.

Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
@github-actions

github-actions Bot commented Nov 10, 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. INCOMPLETE · issues unknown · The tier did not produce retained evidence; inspect its failed or cancelled CI job. INCOMPLETE · issues unknown · The tier did not produce retained evidence; inspect its failed or cancelled CI job. Report

Commit: 4d05ad1407ef45ae0526a5e04464e5b02353b494 · Environment: docker

…aset-coverage

Signed-off-by: Christopher Kevin <[email protected]>

# Conflicts:
#	CHANGELOG.md
…aset-coverage

Signed-off-by: Christopher Kevin <[email protected]>

# Conflicts:
#	CHANGELOG.md
@chrisknvidia
chrisknvidia merged commit 770c599 into main Nov 10, 2026
22 checks passed
@chrisknvidia
chrisknvidia deleted the feat/christopherk/dataset-coverage branch November 10, 2026 04:55
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.

2 participants