Repository navigation
fix(grader): canonicalize verifier paths before provenance checks - #467
Conversation
Signed-off-by: Narendran Raghavan <[email protected]>
Retain incoming main changelog order and the owned verifier provenance entry. Grader implementation and tests remain unchanged. Signed-off-by: Narendran Raghavan <[email protected]>
Signed-off-by: Narendran Raghavan <[email protected]>
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]>
|
Expanded post-merge review on current main |
rng1995
left a comment
There was a problem hiding this comment.
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.
Summary
On macOS, importing a checkout through
/tmpcan leave verifier paths under that alias while the source root resolves to/private/tmp.validate-graderthen 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.Release Impact