- Re-check input identities inside every loadpath and pain-axis probe
child before it imports torch or loads a model.
- Require the allowed inputs directory and every directory above it to be
real directories, so a same-device link cannot replace the root.
- Walk each input path component by component as written, applying '..'
only after the directory before it is checked, so a symlinked directory
followed by '..' cannot be collapsed away; relative Hugging Face
snapshot links still work.
- Capture identities before hashing at fetch and resume and require them
unchanged afterwards, so the stored snapshot describes the hashed bytes.
- Narrow the documentation to exactly what is checked.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>