Repository navigation
feat(tier3): report whether a dataset is big enough for its claims - #400
Conversation
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
rng1995
left a comment
There was a problem hiding this comment.
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).
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
Signed-off-by: Christopher Kevin <[email protected]>
SkillEvaluator CI resultsRequired gate: Skipped Only Tier 1 blocks CI; Tier 2 and Tier 3 are advisory.
Commit: |
rng1995
left a comment
There was a problem hiding this comment.
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).
Signed-off-by: Christopher Kevin <[email protected]>
…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]>
…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
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):sufficientonly 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.dataset_sufficiencyblock (policy, status, checks with observed and required values, reason) is added to the per-agent and root report payloads.tier3 evaluate, thevalidateAGENT_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-datasetand dataset validation print a coverage-only note before any run. It is informational and doesn't change validation status.docs/eval-datasets.mdxanddocs/reports.mdxdocument the policy.Verification
make lint(ruff check and format on the changed files)make test(focused: 11 sufficiency tests and 341 reporting/validate tests passed)make buildRelease Impact
CHANGELOG.md