Skip to content

feat(tier3): report pass@k uncertainty and paired outcomes - #63

Merged
chrisknvidia merged 6 commits into
NVIDIA:mainfrom
AdemVessell:arkhe/tier3-paired-evidence
Aug 25, 2026
Merged

chrisknvidia merged 6 commits into
NVIDIA:mainfrom
AdemVessell:arkhe/tier3-paired-evidence

Conversation

@AdemVessell

Copy link
Copy Markdown
Contributor

Summary

  • add two-sided 95% Wilson score intervals to each condition's case-level
    pass@k rate;
  • add direction-preserving paired outcome counts and paired rate delta;
  • add a two-sided exact McNemar diagnostic only for completely paired cases;
  • render the new evidence in the Tier 3 HTML report and document its limits.

Why

An aggregate with-skill minus without-skill rate does not reveal whether gains
and regressions occurred on the same cases, and a point estimate alone obscures
small-sample uncertainty. The additional fields make the existing result more
auditable without changing its pass/fail policy.

Scientific boundary

The intervals and exact test describe one configured run. They do not establish
task independence, correct leakage, prove generalization, or make the test set a
random sample. Partial/unidentified pairings receive no exact-test result.

Validation

  • PATH="$PWD/.venv/bin:$PATH" make test PYTHON=.venv/bin/python
    • 4,862 passed, 17 skipped, 4 deselected
  • make lint PYTHON=.venv/bin/python
    • passed
  • focused collector/report tests
    • 34 passed
  • make build PYTHON=.venv/bin/python
    • wheel and source archive built

Compatibility

This is an additive JSON/report change. Existing pass@k values and verdict
thresholds are unchanged.

Addresses #62.

Verification checklist

  • I am familiar with the Contributing Guidelines
  • Added or updated focused tests
  • Updated documentation for user-visible changes
  • Ran make lint
  • Ran make test
  • Ran make build
  • Did not add credentials, private datasets, or proprietary benchmark content

Release impact

  • Updated CHANGELOG.md

@AdemVessell

Copy link
Copy Markdown
Contributor Author

Pushed follow-up 444af99 after a hostile correctness review of the paired
pass@k evidence.

The follow-up:

  • prevents small nonzero exact McNemar probabilities from being rounded to
    zero and preserves decimal plus exact-rational representations (with a
    null numeric approximation instead of false zero on float underflow);
  • reports the minimum attainable p-value for the observed discordant-pair count
    and labels results that are resolution-limited at alpha 0.05;
  • derives the arm pass-rate delta from counts, avoiding contradictions caused
    by subtracting already-rounded rates;
  • renders the paired delta, suppresses the zero-pair row when pairing is
    unavailable, and keeps the exact test restricted to complete pairing; and
  • adds a collector-path regression where reward IDs are absent and case IDs
    are derived from Harbor trial metadata.

Validation on the final head:

  • full suite: 4,874 passed, 17 skipped, 4 deselected;
  • focused collector/report suite: 81 passed;
  • Ruff and diff checks: clean;
  • wheel and sdist build: passed;
  • Fern docs check: zero errors (redirect check skipped without Fern auth).

An independent cold re-review found no remaining actionable defect. The new
statistics remain diagnostic for one configured run; they do not establish
task independence, generalization, or causal skill benefit. This follow-up also
corrects an existing pass-lift rounding defect, so the stored delta may change
by one unit in the fourth decimal while verdict thresholds remain unchanged.

@chrisknvidia chrisknvidia 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.

Reviewed exact head 444af99. I reproduced the collector, canonical-payload, and production HTML paths, including real Chrome layout. The statistical calculations are sound on the tested inputs, but the valid-input failure, report-loss, compatibility, performance, and rendering regressions below should be addressed before merge. Focused tests passed; no live provider-backed Harbor matrix was run.

@AdemVessell
AdemVessell force-pushed the arkhe/tier3-paired-evidence branch 2 times, most recently from 023eefc to 89afdc0 Compare August 24, 2026 17:34
@AdemVessell

Copy link
Copy Markdown
Contributor Author

Review update for head 89afdc0 (implementation d7b9ff6):

  • Addressed all eight review findings: digit-safe exact serialization; bounded unpaired-ID diagnostics across collector and legacy report loading; symmetric/recurrence McNemar performance; legacy delta compatibility plus additive count_derived_delta; adaptive interval and paired-effect precision; narrow-viewport scroll access; and explicit unavailable-pairing status.
  • Added exact boundary regressions at 14,285 / 14,286 / 15,000 discordances and a 10,000-vs-10,000 performance regression.
  • Added a 2,400-disjoint-cases-per-arm artifact -> loader -> canonical payload -> HTML budget regression.
  • Real Playwright verification at 375px: clientWidth=307, scrollWidth=720, afterScrollLeft=413, reachedEnd=true, final Lift column x=341.
  • Focused changed-surface suite: 91 passed.
  • Repository-wide Ruff: passed.
  • Isolated sdist + wheel build: passed.
  • Branch is current with upstream main and every non-merge PR commit carries the required DCO sign-off.

No live provider-backed Harbor matrix was run; the validation above is deterministic/local and preserves that boundary. Current CI, DCO, and Security workflow runs are awaiting maintainer approval.

@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.

Reviewed the current head after the latest follow-up. The 91-test changed-surface suite passes; Ruff and diff checks are clean; the exact McNemar implementation matched direct binomial sums across all small splits checked; and all 15 GitHub CI/DCO/security checks are green. I found four remaining correctness/contract issues below. No live provider-backed Harbor run was performed.

Comment thread docs/reports.mdx Resolved
@AdemVessell

Copy link
Copy Markdown
Contributor Author

Follow-up for the four findings in review 5011450517 is now on head 7cc966a (repair commit 55e8787).

  • Exact-rational serialization respects the active Python integer-string limit and fails into the documented omission contract instead of aborting collection.
  • Wilson bounds retain sub-four-decimal endpoint uncertainty.
  • Paired deltas retain nonzero direction beyond the former rounding boundary.
  • The report contract now qualifies exact-rational availability and documents the omission fields.

Verification on the exact pushed head:

  • Maintainer reproductions: 0/100,000 Wilson upper bound 3.841311258303963e-05; 1/25,000 paired delta 4e-05; PYTHONINTMAXSTRDIGITS=640 returns a bounded exact-field omission rather than ValueError.
  • Integrated collector/report/upstream suite: 291 passed, 4 skipped.
  • Full suite: 4,896 passed, 17 skipped, 4 deselected.
  • Repository-wide Ruff lint, changed-file formatting, and git diff --check: passed.
  • Fern 5.66.1: 0 errors; one unrelated warning because redirect validation is unauthenticated.
  • Isolated sdist and wheel builds: passed.

Each review thread has a finding-specific response and is resolved. No live provider-backed Harbor matrix was run; this is deterministic local verification, and upstream CI/review/merge remain the acceptance boundary.

@chrisknvidia chrisknvidia 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.

Thanks for the resolving the previous comments, Re-reviewed the current head after the latest precision fixes. All previously posted threads are resolved, but these three additional correctness cases still reproduce on this commit. Details and regression expectations are inline.

Comment thread src/skillevaluator/reporting/html.py Resolved
@chrisknvidia
chrisknvidia force-pushed the arkhe/tier3-paired-evidence branch from 7dbbec7 to 965cb0d Compare August 25, 2026 08:24
@chrisknvidia
chrisknvidia merged commit 009aa30 into NVIDIA:main Aug 25, 2026
22 of 24 checks passed
@AdemVessell

Copy link
Copy Markdown
Contributor Author

Thank you for the rigorous review and collaboration, especially the edge cases and final precision refinement. I learned a great deal from the process and am glad the contribution is now part of SkillEvaluator.

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.

3 participants