Repository navigation
Tolerate hydration count drift in status estimates - #2146
Draft
Tyrie Vella (tyrielv) wants to merge 2 commits into
Draft
Tyrie Vella (tyrielv) wants to merge 2 commits into
Tyrie Vella (tyrielv) wants to merge 2 commits into
Conversation
Accept complete nonnegative observations across different count populations. Share estimated display and preserve raw diagnostics without changing database records or cache lookup budgets. Assisted-by: GPT-6.1 Sol Signed-off-by: Tyrie Vella <tyrielv@gmail.com>
Read modified paths from the mount's existing collection during background hydration. Avoid the mount's self-pipe before readiness. Preserve empty-entry filtering, the external pipe and disk fallback, and cache lookup budgets. Add provider and percentage-boundary tests. Isolate branch-switch test paths. Delete retained folders. Require a stable cache identity before reuse assertions. Assisted-by: GPT-6.1 Sol Signed-off-by: Tyrie Vella <tyrielv@gmail.com>
Tyrie Vella (tyrielv)
force-pushed
the
tyrielv/hydration-count-drift
branch
from
November 5, 2026 23:43
5454a3f to
a2bd5b7
Compare
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.
Problem and Context
Hydration status adds placeholder and modified-path counts, then compares those sums with index-based totals. These sources count different populations.
New paths, overlapping records, and retained folders after branch switches can exceed the totals without a calculation failure.
Current status handling rejects those results. The diagnostic contract from #2144 is already on master.
Background hydration also requests modified paths through the mount's own pipe. If the request arrives before mount readiness, the mount rejects it.
Its disk fallback conflicts with the mount's open writer. A clean status cache can then prevent another hydration refresh.
Changes
n/awhen a positive sum has a zero denominator.Estimated hydration: files ...; folders .... Apply that format togvfs health --statuseven when the status-hook feature is disabled.