Repository navigation
Conversation
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.
A prepared xorb containing mostly committed chunks could be adopted and uploaded whole for a tiny edit. Adopt only wholly selected, unresolved prepared xorbs; repack mixed sources using missing chunks while retaining committed placements. Gather residual requests across files before reading so each shared source is verified once. Run residual compression and finalization on blocking workers so lease-renewal and upload tasks remain schedulable.
Depends on the bounded residual staging PR. Ordered recipe occurrences still build complete file terms. Source verification, remote authority revalidation, snapshot lifetime and flush-before-pointer publication remain at their existing owners.
Before-change evidence reproduces full prepared-body upload and repeated source reads. The regression uses a real 32 MiB staged prepared body with 516 chunks, tests both 515 and one committed chunks, verifies the reconstructed file recipe, and requires the uploaded chunk set to equal exactly the unresolved set. Both cases open the prepared source once; observed upload bytes are 21,434 and 33,454,308 respectively.
Validation: 19 focused CLI tests pass, including catalog corruption/size conflicts, existing encoding adoption, protected publication, cross-repository cold add, prepared concurrency, bounded packing/backpressure and upload error draining. Four staging cancellation/corruption/batching tests, strict staging all-target Clippy and formatting pass. The original r6 runner failed after its 19 product tests passed because diagnostics were captured; r7 enables
--nocaptureand preserves every assertion. Exact-source fresh 10 GiB and broader lifecycle qualification remain open; these focused checks do not establish the full performance goal.Evidence map: capsule push calls
prepare_delta; verified catalog/global placements determine missing chunks; sharedCoalescedChunkReadPlansupplies bounded source reads;XorbBuilderpacks residuals off the async worker; immutable publication provides xorb receipts before shard/catalog visibility. Native packing uses the same bounded staging reader. Existing complete prepared-body adoption remains for wholly new outgoing payloads. Current main has no capsule Xet publication module; #598 permits mixed prepared adoption, and its source-bound failing probes are retained.Is this the best fix? Selection belongs at publication, where current committed placements are known. Repacking only unresolved chunks preserves deduplication without changing add-time ownership or creating per-file payload copies. Compression moves to the existing Tokio blocking pool, one bounded batch at a time. Publication code growth is limited to selection and offloading; the regression protects full recipes and single-source reads.
Draft only. The advisor plan and both excluded large-file audit reports are absent. No inventory, baseline, ignore, or product assertion is relaxed.