Repository navigation
fix(worker): skip Git metadata in model cache recovery - #129
Merged
Merged
Conversation
austinjiann
changed the base branch from
codex/tracking-call-receipt
to
main
November 21, 2026 04:17
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The LHM prior archive includes a 4.68 GB duplicate Sapiens checkpoint under
.git/lfs. Cache setup downloads and inventories that repository metadata even though inference uses the separate runtime.pt2. Skip exact.gitcomponents while preserving all runtime paths. Range recovery seeks past skipped payloads; fresh streaming extraction still consumes and hashes the complete source archive. Existing partial metadata is retained on disk and excluded from runtime inventory.The pinned upstream archive audit found 145 metadata entries totaling 4,678,648,303 bytes (24.9% of the archive). Receipts now distinguish skipped member sizes from actual network bytes. Source length/ETag checks and incomplete-attempt refusal remain enforced.
Validation: 28 focused tests passed on Python 3.11 and 3.12; Ruff, repository formatting and diff checks passed. The range test verifies no request overlaps the Git blob and runtime weights remain byte-identical. Live validation on the final recovery slot completed: 145 Git entries (4,678,648,303 declared bytes) were skipped, while all required runtime files were inventoried. The call fetched 2,175,449,183 range bytes and reused 65 entries. This is not a wall-time A/B comparison: earlier attempts had different partial-cache states. Stacked on #128.