Skip to content

feat: add population-level reliability analysis - #15

Merged
BLCCoreStudio merged 17 commits into
mainfrom
feat/population-reliability
Sep 2, 2026
Merged

BLCCoreStudio merged 17 commits into
mainfrom
feat/population-reliability

Conversation

@BLCCoreStudio

@BLCCoreStudio BLCCoreStudio commented Sep 2, 2026 •

Copy link
Copy Markdown
Owner

Summary

Adds a repeated-task population reliability layer for TurkishEvalKit 0.10.0 while keeping it separate from same-stimulus calibration and from evaluator correctness/ranking.

Reliability model

A PopulationReliabilitySpec contains multiple independent task units. Each task contains two or more evaluator submissions and is revalidated through the existing evaluation/calibration core.

Dataset-level invariants:

  • unique task ids across the dataset
  • one evaluation type and one rubric id/version
  • each task independently satisfies same-stimulus calibration invariants
  • explicit minimum_task_count >= 3
  • dataset must meet its declared minimum

The declared minimum is an inclusion guardrail, not a universal sample-size sufficiency claim.

Metrics and applicability

Krippendorff alpha

  • scalar 1–5 criteria: ordinal alpha
  • pairwise A/Tie/B criteria: nominal alpha
  • pairwise overall preference: nominal alpha
  • pairwise preference strength 1–3: ordinal alpha
  • supports variable evaluator counts/identities when each task remains pairable

Fleiss kappa

  • pairwise nominal judgments only
  • requires the same number of ratings on every task
  • evaluator identities may vary by task
  • scalar ordinal ratings are not silently treated as nominal

ICC(A,1)

  • scalar rubric criteria and normalized aggregate scalar score
  • two-way random-effects, absolute-agreement, single-measure form
  • requires the same evaluator identities on every task
  • not applied to derived signed pairwise preference scores

Every coefficient is a typed ReliabilityEstimate containing value, applicable, reason, and explicit assumptions. Unsupported dataset designs return applicable=false instead of a coerced statistic. Negative coefficients are preserved.

CLI and public API

Adds:

turkisheval reliability examples/reliability-text.json
turkisheval reliability examples/reliability-text.json --json
turkisheval reliability examples/reliability-text.json --output reliability-report.json

Public API includes ReliabilityTask, PopulationReliabilitySpec, ReliabilityEstimate, CriterionReliability, PopulationReliabilityReport, and build_population_reliability_report.

Trust boundary

Population reliability is read-only with respect to TurkishEvalKit workspace artifacts. It does not mutate evaluations, workflows, revisions, calibrations, queue state, or disagreement projections. It does not infer which evaluator is correct, rank evaluators, or define universal pass/fail thresholds.

The 0.10.x scope is deliberately core + CLI + portable JSON. A future browser surface should reuse the same statistics core rather than implement a second engine.

Documentation

  • package/public version bumped to 0.10.0
  • new docs/RELIABILITY.md
  • README and architecture distinguish same-stimulus calibration from repeated-task reliability
  • self-authored repeated-task text fixture
  • dedicated Population Reliability workflow
  • stale Disagreement Explorer public-version smoke assertion updated from 0.9.0 to the actual 0.10.0 package version without weakening that regression check

Validation

Validated in pull-request context on Python 3.11, 3.12, and 3.13:

  • Ruff: passed
  • strict mypy: passed across 17 source files
  • full pytest suite: 133 passed
  • total coverage: 90.91% with the existing 90% gate unchanged
  • reliability.py coverage: 93%
  • wheel/package-data smoke: passed
  • installed CLI smoke: passed
  • live localhost HTTP/persistence regression: passed
  • desktop/mobile Chromium E2E: passed
  • dedicated Population Reliability tests/public API/CLI/wheel gate: passed
  • Disagreement Explorer regression gate: passed
  • Calibration Dashboard regression gate: passed
  • Revision Lineage regression gate: passed
  • Review Queue regression gate: passed

@BLCCoreStudio
BLCCoreStudio merged commit 0d05430 into main Sep 2, 2026
15 checks passed
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