Skip to content

feat(tier3): report whether a dataset is big enough for its claims - #400

Merged
chrisknvidia merged 15 commits into
mainfrom
feat/christopherk/dataset-sufficiency
Nov 10, 2026
Merged

chrisknvidia merged 15 commits into
mainfrom
feat/christopherk/dataset-sufficiency

Conversation

@chrisknvidia

@chrisknvidia chrisknvidia commented Nov 9, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

A score from a handful of cases looks as authoritative as one from a well-covered dataset. This PR adds a versioned, documented policy that labels every Tier 3 result as sufficient or provisional and says why. Verdicts, scores and exit codes don't change.

Policy dataset-sufficiency-v1 (src/skillevaluator/tier3/dataset_sufficiency.py):

Check Requirement
coverage at least 10 distinct cases, including at least 1 negative case
pass_rate_reliability 95% Wilson interval half-width no more than 0.20
lift_comparison at least 10 cases scored by both arms
  • Status is sufficient only when every check is met. A check that can't be assessed, such as a skipped baseline, keeps the result provisional and gives the reason. Repeated attempts count once per distinct case.
  • A dataset_sufficiency block (policy, status, checks with observed and required values, reason) is added to the per-agent and root report payloads.
  • The same line renders in tier3 evaluate, the validate AGENT_EVAL section, the HTML overview (styled as a warning when provisional) and BENCHMARK.md, for example:
    Dataset size: provisional — 4 cases (policy needs 10), 0 negative cases (needs 1); pass-rate interval ±0.40 is wider than ±0.20 (policy dataset-sufficiency-v1)
  • create-eval-dataset and dataset validation print a coverage-only note before any run. It is informational and doesn't change validation status.
  • Wording avoids claims of statistical significance. The thresholds are defaults for discussion, and feedback is welcome.
  • docs/eval-datasets.mdx and docs/reports.mdx document the policy.

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: 11 sufficiency tests and 341 reporting/validate tests passed)
  • 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: 6 findings (0 P1, 0 P2, 6 P3); 6 posted inline.

Checked the dataset-sufficiency-v1 module and every surface that shows it (tier3 evaluate, result.json, the validate AGENT_EVAL section and dataset check, create-eval-dataset, the HTML overview, BENCHMARK.md) at 0ee3d0c, with head/base probes for multi-agent runs, re-rendered legacy runs, malformed YAML and persisted files, and HTML payloads over 256 KiB.
Tests at 0ee3d0c: 452 passed in the PR's focused suites (sufficiency, rendering, advisory skip verdict, tier3 source), and 12160 passed (7 skipped) across tests/reporting, tests/tier3, tests/evaluation and five Tier 3 report/collector suites.
Merges cleanly into main (86f1a1f). Real file conflicts with #401 (tier3/generate_dataset.py, the end-of-run summary prints; #405 and #406 inherit it through their stacks), #404 (tier3/harbor/runner.py), #405 (report.html.j2, generate_dataset.py) and #399 (docs/reports.mdx); #225, #377, #381 and #403 conflict in CHANGELOG.md only. #406 is stacked on this branch and already contains this head, so merge this first.
#381 counts negative cases differently (resolve_should_trigger vs expected_skill is None): for a 10-case agentskills file with one should_trigger: false case, this PR prints "0 negative cases (needs 1)" and #381 prints "9 positive, 1 negative/non-trigger", and both lines appear in tier3 validate once both land. Settle one counter before either merges.
#377 treats 5 skill cases as enough for the verdict direction, while this policy needs 10, so a 7-case run gets no "more cases" next step but is labeled "Dataset size: provisional". Settle one threshold with #377.
With #404, coverage reads the staged total_tasks, so a budget-partial run whose remaining attempts were not_run still passes the 10-case check. With #225, the Gym runner builds its own results, so Gym runs get no Dataset size line in tier3 evaluate or result.json (the HTML report still gets one).

Comment thread src/skillevaluator/tier3/evals_spec.py Resolved
Comment thread docs/eval-datasets.mdx Resolved
@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. 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: 878299f7eb2b7e49859eb9ad6a57982d24d4e2fd · 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: 2 findings (0 P1, 0 P2, 2 P3); 2 posted inline.

Re-checked our 6 comments at head a90a05b, plus fix commit 66e69a6.
4 of 6 fixed. The other two fixes work for my original repros, but each one breaks a nearby case (both inline). The new root-block picker drops the Dataset size line from tier3 evaluate and result.json for never-activated and --skip-with-skill runs. The unknown-negative-count fix also hides recorded negatives when only some tasks are unclassified.
Tests at a90a05b: the sufficiency, rendering, case-id, tier3 source, failure-reason and advisory-skip suites passed 554; test_tier3_progress.py plus the activation HTML regressions passed 157; the public benchmark gate and benchmark card tests passed 698. Probes at a90a05b and 0ee3d0c reproduce both inline items.
Merges cleanly into main (main is 1 commit ahead; GitHub reports mergeable, clean).

…aset-sufficiency

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

# Conflicts:
#	CHANGELOG.md
…aset-sufficiency

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

# Conflicts:
#	CHANGELOG.md
…aset-sufficiency

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

# Conflicts:
#	CHANGELOG.md
…aset-sufficiency

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

# Conflicts:
#	CHANGELOG.md
#	src/skillevaluator/reporting/templates/report.html.j2
#	src/skillevaluator/tier3/generate_dataset.py
…aset-sufficiency

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

# Conflicts:
#	CHANGELOG.md
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