Skip to content

fix(grader): canonicalize verifier paths before provenance checks - #467

Merged
rng1995 merged 3 commits into
mainfrom
naren/grader-source-path-canonicalization
Nov 12, 2026
Merged

rng1995 merged 3 commits into
mainfrom
naren/grader-source-path-canonicalization

Conversation

@rng1995

@rng1995 rng1995 commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

On macOS, importing a checkout through /tmp can leave verifier paths under that alias while the source root resolves to /private/tmp. validate-grader then fails constructing its final provenance report after attempts have run.

Resolve each verifier source before checking containment and constructing its relative identity. Preserve all12 per-file identities and the framed aggregate hash; reject files and symlinks resolving outside the package source. This also closes the previous lexical containment check's internal-symlink escape.

Discovered during SKILLEVAL-21/SKILLEVAL-99 qualification. No grading, scoring policy or provider defaults change.

Verification

Current DCO head: 91caa165dd6faaedd8e1e4ed2d51cb803b3e6165, including main487910ef. Fix source/tests remain identical to reviewed0079e00c; subsequent changes integrate upstream and relocate our changelog entry.

  • RED:3 failed/3 passed before the fix; all6 passed afterward.
  • Focused grader/provenance/packaging suite:353 passed,1 native Windows skip.
  • Independent review:7 focused checks and actual alias/canonical CLI runs passed with complete reports,12 files and identical framed aggregate hashes; no provider calls or actionable findings.
  • Main-sync focused scope:83 passed with canonical PYTHONPATH. Ruff, whitespace, wheel/sdist build/replay and pinned Fern gates passed in their recorded scopes.
  • All six squash orders with fix(tier3): apply case-specific skill metric applicability across reports #425/fix(tier3): keep negative controls out of missed-activation advice #466 converge against main487910ef. Exact-head hosted CI passed before merge; no fresh local full-suite or broad live-agent acceptance claim.

Release Impact

  • Contributing/DCO requirements followed; focused regressions and CHANGELOG updated.
  • No credentials/private datasets added; strict provenance containment retained.
  • Exact-head hosted verification passed:24 successful checks,4 skipped, no failures/pending. Squash merged to main as03c27bf15d1e012ddda62081981fc6f69f22fbb7.

Retain incoming main changelog order and the owned verifier provenance entry. Grader implementation and tests remain unchanged.

Signed-off-by: Narendran Raghavan <[email protected]>
@rng1995
rng1995 marked this pull request as ready for review November 12, 2026 19:54
@rng1995
rng1995 merged commit 03c27bf into main Nov 12, 2026
29 checks passed
@rng1995
rng1995 deleted the naren/grader-source-path-canonicalization branch November 12, 2026 19:55
rng1995 added a commit that referenced this pull request Nov 12, 2026
Brings in main through b38b71b (#416, #417, #420, #422, #423, #428,
#429, #467). Merged without conflicts; CHANGELOG, docs, decoys.py and
eval_core/checks.py auto-merged with both sides' edits in separate hunks.

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

rng1995 commented Nov 13, 2026

Copy link
Copy Markdown
Collaborator Author

Expanded post-merge review on current main b64e351f: read the complete canonicalization diff plus the qualifier CLI and verifier-file callers; no actionable finding. The qualifier source and grader-validation tests are unchanged from merged #467. The full grader-validation module passed in a combined 87-test run. Its provenance cases cover src/site-packages roots, symlink aliases, deterministic framed relative-path hashes, direct and symlink escapes, and no report on rejected escapes. No repository changes were needed.

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

Completed the full source/caller review at 91caa165: qualifier source-root resolution, per-file canonical paths before sorting, framed relative-path hashes, and CLI/adapter callers preserve stable provenance while rejecting direct and symlink escapes. No actionable finding. The qualifier source and regression module were unchanged in the current-main verification tree, where the full grader-validation module passed as part of the recorded 87-case run (two SDK2-specific skips belonged to another module). Reviewed src/site-packages aliases, deterministic hashes, and no report on rejected escapes. No new test or source change is claimed for this final review record.

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