Skip to main content

Module pinned_disk

Module pinned_disk 

Source
Expand description

Bounded-memory, exact-commit projection for path-based model loaders.

The selected Git tree is enumerated without reading blob bodies. A packaged Git CLI streams packed or loose blobs to private disk files; each body is hashed against its tree OID. Resolved LFS/XET payloads are verified against the captured pointer before any loader path is published. Payload names are then unlinked, leaving only read-only descriptors and private /proc/self/fd aliases for the lifetime of this value. No worktree file is read or aliased.

Structsยง

DiskPinnedTreeProjection
Exact-tree files backed by disk, but not by the selected worktree.
ProjectionPolicy
Trusted server-side capture policy. Never deserialize this from an RPC. Existing callers keep the 2 GiB ceiling and remote pointer resolver.