Skip to content

Add opt-in coverage-aware grader qualification policies - #497

Merged
rng1995 merged 7 commits into
mainfrom
naren/opt-in-grader-qualification
Nov 13, 2026
Merged

rng1995 merged 7 commits into
mainfrom
naren/opt-in-grader-qualification

Conversation

@rng1995

@rng1995 rng1995 commented Nov 13, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

tier3 validate-grader --qualification-policy FILE now assesses an operator-owned policy against held-out assessment cases. Missing required metrics, pass/fail classes, observed categories or rates produce insufficient_evidence instead of silently passing. Coverage counts distinct cases rather than repeated judgments or behavior steps; correctly expected abstentions can demonstrate category coverage without supplying binary scored cases.

Offline checks report label readiness without inference. Insufficient live preflight retains a not_run receipt; evaluated receipts retain the effective policy, canonical hash, per-metric checks, reasons and conservative verifier Git provenance. Policies cannot be combined with standalone rate gates or tuning/mixed splits. Existing no-policy behavior stays available.

Resource report metadata and HTML explain observed consumption, failed outcomes, historical baseline reuse and comparability limits. The experimental example intentionally exposes missing negative security/efficiency coverage in the bundled suite; its limits and one-case floors are illustrative, not defaults or statistical qualification. Scores, raw deltas, baseline-reuse eligibility and reference-suite labels are unchanged. No automatic release gate or paid schedule is introduced.

Verification

  • I am familiar with the Contributing Guidelines
  • Added or updated focused tests
  • Updated documentation for user-visible changes
  • Ran make lint
  • Ran full default suites in hosted CI (pytest, the make test target)
  • Ran make build
  • Did not add credentials, private datasets, or proprietary benchmark content

Auto-merged into main on 13 November 2026 at 10:44:51 UTC as f41c5c03. Main reachability and preservation of the reviewed qualification/resource implementation files were verified.

Final CI tested merge 5ae436ad (head 9e949463 plus base 5aacb5e1): all 15 jobs passed. Python 3.12, 3.13 and 3.14 each passed 31,500 tests, with 81 skipped. Security, image verification, DCO and NVSkills guard passed; final checks total 23 successful and 4 skipped. No required gate was bypassed.

Local evidence:

  • 274 focused policy/grader/report/CLI-golden/deadline-artifact tests passed on the preceding integration with identical feature implementation.
  • 15 installed-wheel CLI probes passed on head 9e949463, with zero provider/network access. All 328 tested-head package members match source, wheel and installed bytes.
  • Head 9e949463 lint, build, Fern and source/wheel/sdist OSS boundary checks passed. Fern reported 0 errors and its existing unauthenticated redirect-check warning.
  • All three timing cases from an earlier interrupted local full run passed on the current head with unchanged deadlines. That earlier run remains incomplete (7,349 passed, 7 skipped, 3 failed); its callback readiness timeout also reproduced on isolated base e939a03b.
  • Independent whole-branch and upstream-integration reviews approved. Original untracked user files were preserved.

No real provider/model reliability qualification was run. Existing native Windows CI selects other platform suites; the new policy's portability regressions simulate unavailable platform flags. Operator criteria and live reliability/release acceptance remain separate decisions; scores, Overall and resource-delta calculations are unchanged.

Release Impact

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

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed all 14 files in the feature diff, the CLI and qualification callers, policy loader, report-scope validation, verifier provenance, documentation, and resource-report interpretation at 1348027. No actionable source findings.

Verified distinct-case metric/class/category floors, correctly expected abstention coverage, unavailable-rate rejection, insufficient-evidence precedence, assessment-only scope, provider-free preflight and retained not-run receipts. The existing attempt-level rate/score formulas and baseline-reuse eligibility are preserved. The bundled example intentionally reports missing failing security/efficiency coverage; it makes no live qualification or release-approval claim.

Validation: 145 focused policy/grader/resource-report/CLI-golden tests passed in 95.02s; Ruff and formatting passed; pinned Fern reported 0 errors and 1 existing warning; diff check passed. Two independent read-only policy/caller reviews found no actionable issues and 10 actual-helper/literal-input probes passed. Current main 3523764 merges clean in merge-tree, so no freshness-only main merge was made.

This is a source-review receipt, not a merge approval. Exact-head hosted CI currently has 22 successful checks, 4 skipped checks and Python 3.12 coverage still running. Keep the PR draft while full-suite verification is pending. No paid/NVSkills run was triggered, and no PR was merged.

@rng1995
rng1995 marked this pull request as ready for review November 13, 2026 10:14

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed the integrated head 7884d94. The seven policy, validation, resource/template and focused-test blobs are byte-for-byte identical to the fully reviewed 1348027; its policy semantics and independent probe receipts remain applicable. No actionable source finding was introduced.

Integrated main's functional #492 CI change so pull requests run the complete Python 3.12 suite in parallel without coverage, while main retains serial coverage. After #456 merged externally, resolved its two actual conflicts: retain both complete changelog entries and retain the newer task-outcome guidance with the canonical published-doc URL. No manual source/test change, timeout relaxation, score change or baseline-reuse change.

Final integrated validation: 189 workflow/policy/grader/resource/CLI-golden tests passed in 46.97s; full Ruff, pinned Fern (0 errors, 1 existing warning) and diff checks passed. All seven reviewed feature blobs were verified unchanged. The intermediate CI merge separately passed the same 189 tests. These overlapping scopes are not summed.

Normal fast-forward push only; the author's current non-draft state is preserved. Exact-head hosted CI must complete before merge readiness is established. No paid/NVSkills job was dispatched manually, no settings were changed and no PR was merged by this review.

@rng1995
rng1995 enabled auto-merge (squash) November 13, 2026 10:28

@rng1995 rng1995 left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed current head 9e94946 after the external GitHub main merge. Its parents are previously reviewed 7884d94 and main 5aacb5e; tree 8a63dfb5 exactly equals Git's automatic merge. All seven policy/validation/resource/template and focused-test blobs remain byte-for-byte identical to the original fully reviewed 1348027. No manual source/test changes or branch push were made in this adoption.

The upstream delta adopts already-merged #486 local-process handling and #489 runner identity/privacy changes. I inspected the JSON-report/identity overlap; existing resource-report, CLI-golden and workflow controls pass 54 cases in 7.89s on this exact head. Full Ruff and diff checks pass. Earlier 189 integration cases remain evidence for the preserved feature blobs; these overlapping scopes are not summed.

The author's historical local full make test at 134 remains incomplete: 7,349 passed, 7 skipped, 3 failed before interruption, with retained serial and base controls. No completed clean local full-suite pass is claimed. The new exact-head hosted full suites are running separately. No live provider/model qualification or native Windows execution of the new policy CLI was performed; existing Windows CI selects other platform contracts. No PR was merged by this review.

@rng1995
rng1995 merged commit f41c5c0 into main Nov 13, 2026
27 checks passed
@rng1995
rng1995 deleted the naren/opt-in-grader-qualification branch November 13, 2026 10:44
rng1995 added a commit that referenced this pull request Nov 13, 2026
* docs(changelog): move post-0.9.0 entries to Unreleased

#497 and #459 merged after v0.9.0 was cut, but their entries landed in the
0.9.0 section that the release prep had just created. Move them, unchanged, to
Unreleased. The 0.9.0 section now matches the released v0.9.0 notes exactly.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>

* docs(changelog): move #369 and #475 entries out of 0.9.0

#369 and #475 merged after v0.9.0 was cut, but their entries landed in
the 0.9.0 section. Move them to Unreleased (Changed and Fixed) so 0.9.0
matches the released notes again.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>

---------

Signed-off-by: Narendran Raghavan <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
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