Repository navigation
Reject file-directory collisions in research export bundles - #3641
Merged
Mister-Meeseeks merged 1 commit intoOct 20, 2026
Merged
Conversation
roger-sato
marked this pull request as ready for review
October 18, 2026 12:21
This was referenced Oct 22, 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.
Summary
A real Git package declaring
.research-export.json/input.datcurrently exports and passescheck, then fails extraction: the input requires.research-export.jsonto be a directory, while the export receipt requires it to be a file. A self-consistent bundle containingaanda/childlikewise passes the checker in either member order despite being impossible to extract as regular files.Validate the complete regular-file tree, including the generated receipt, before publishing an export and before accepting a checked bundle. Every slash-delimited ancestor is checked against the full file set, so reversed member order, deeper paths and intervening lexical siblings cannot hide a collision. Valid sibling files, distinct prefixes and receipt-first bundles remain supported. The checker still never extracts or executes content.
This is a transport-integrity repair building on Tekalign's exporter in #3138, distinct from the Windows drive-path policy in #3629. It does not authenticate Git provenance or validate mathematics. No frozen source, source pin, registered manifest or selected result changes. The canonical source/manifest census found no declared exporter dependency requiring historical replay.
The
portable-replaytask is narrowed here to consistency of exported path structure: a successful integrity check must reject contradictory file/directory roles.Base: canonical main
20ecf2891d80b5acf18d980b2164fb44ea7faa90, priority revision 6. Complete overlap snapshots checked 347 open PRs, 2,964 closed PRs and 2,454 Discussion records (2026-10-18 12:12–12:14 UTC); no matching collision fix was found. A submission-time refresh found only the unrelated Fourier-tape PR #3640 since that snapshot, and #1166 was unchanged since 12:07 UTC. Canonical main was refetched unchanged. Search coverage is not an exhaustive novelty claim.Test plan
PASS_RESEARCH_EXPORT, then extraction raisesIsADirectoryError.git diff --checkpasses.Run from the repository root (tested on macOS arm64, CPython 3.12.14, Git 2.54.0):
Prepared for roger-sato with substantial OpenAI Codex assistance in diagnosis, implementation, regression tests and writing. Apache-2.0. Same-session agent review is not independent human acceptance.