Repository navigation
Reuse physical image digests across CPA export occurrences - #1144
Merged
Merged
Conversation
Keep lazy content facts on ImageFileRevision, reject unstable first reads, and retain CPA source projection validation order. Update obsolete source-root test fixtures and pin the merged PolyStore compact transport fix. Refs #1143.
This was referenced Oct 8, 2026
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.
CPA export reread and hashed the same physical image for each independent image-number/channel occurrence.
ImageFileRevisionnow owns a lazy MD5 fact with the existing physical identity and timestamp key and a 4096-entry bound. The source projection uses that fact at the original digest boundary, after header, geometry and frame validation. Header-only consumers do no new content reads; failed, stale or changing first reads are not cached.The saved QC domain has 120 source cells backed by 10 TIFFs. One saved-file replay found 99.8 ms less read/hash work, with all 120 MD5 values equal to the saved SQLite outputs. This is local replay evidence, not a measured pipeline gain; fresh combined end-to-end qualification remains pending.
Validation: the serialization and CPA export suite produced 120 passes plus five stale source-root fixture failures. Exact original Gitblob modules reproduced all five failures. Declaring
source_workspace_rooton the existing fixture restored those five tests (5 passes); eight new controls cover lazy reuse, same-size rewrite with restored mtime, replacement/deletion/recreation, stale and changing reads, uncached read errors, cross-axis/channel identity and frame-error order. Both original failure logs are retained.The PolyStore gitlink also advances to merged commit
3938236from PolyStore PR #31, bringing compact runtime encoding to development checkouts. The PyPI requirement floor remains unchanged until 0.3.4 is published.This follows the earlier same-occurrence projection repair (#946); it reuses the physical fact across independent occurrences. No new export cache, authority or eager digest path is introduced.
Closes #1143