Repository navigation
Preserve the who cache after partial pull request reads - #14
Open
jishnuvenugopal wants to merge 2 commits into
Open
jishnuvenugopal wants to merge 2 commits into
jishnuvenugopal wants to merge 2 commits into
Conversation
jishnuvenugopal
marked this pull request as ready for review
November 11, 2026 03:19
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.
Thank you, @ashhart, for keeping time-limited refreshes out of the
whocache in8c2f6af. This extends that protection to partial peer-file reads while preserving publication/cache separation.What this changes
boardand ordinaryoverlapcan receive a partial file list for a peer and still overwrite.git/atc/traffic.json. A laterwhocan then report no PR for an omitted file while returningcomplete: true.Both writers now skip the cache write if any other-author PR being cached has a partial file read. Complete refreshes still update it; own PRs stay excluded, and publication-only checks still never write this cache.
04fe862(0.9.3), two commits. Integration checked againstc8787cc(0.9.6).tests/publicationScope.test.js, keeping them working after the upstream fixture extraction. No application behavior changes in that follow-up.Verified outcome
Partial refreshes preserve the earlier cache and its timestamp. With no valid earlier cache,
whoreportspullFilesUnavailableinstead. Regressions inspect cache bytes and callwho, including mixed-peer orderings.The retained observation can still omit newly opened PRs and expires after 30 minutes. A standing partial peer can keep
whounavailable repository-wide after expiry. Invalid-path handling and read budgets are unchanged. No replay rule, command, field, enum, config key, or dependency changes.Checks
Head:
9256ef8a3a90ad0d05660068df4fd6b0f26e0749.npm run check— 411 passed, no failures or skips.npm run check— 473 passed, no failures or skips.25a285e, with parentsc8787ccand9256ef8; its tree matches the locally tested integration. The macOS/Node 22.16 log explicitly reports 473 passed, no failures or skips.Reproduce the red result without modifying the checkout:
Expected: 23 assertion failures and 5 passing controls; all 28 cache tests pass with the fix.
Receipt and limits
Tests use fake GitHub and disposable local repositories; no live GitHub writes are needed. Local qualification used macOS ARM64 and Apple Git 2.50.1. Git 2.38, sustained operation, and real agent-client operation remain unverified. Exchange/cloud changes: n/a.