Repository navigation
Separate hidden_imports and hidden_import_cycle action keys so commuting same-module recipes compose - #644
Merged
Conversation
…ing hub edits compose cleanly
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
Fixes the phantom
nominal source action identities conflictseen on Toadbc8650e81(toad.agent_surface,toad.client.committed_presentation,toad.transcript_publication):HiddenImportFindingRecipeSynthesizerandHiddenImportCutFindingRecipeSynthesizerinherited barePrimaryEvidenceActionKeysMixin, emitting identical(file_path, module_name)action keys. That madeCurrentSnapshotRecipeBatchEvaluation.assess_pairshort-circuit as conflicting before ever checking physical edit compatibility, even whenretype_type_only_readsdid not edit the hub file at all andcut_hidden_cycle+promote_hidden_importscommuted bit-for-bit (equal_sources=True) on bothcommitted_presentation.pyandtranscript_publication.py.action_key_child_subject: ClassVar[str | None] = NoneonPrimaryEvidenceActionKeysMixin(finding_recipes.py:416), withhidden_importsonHiddenImportFindingRecipeSynthesizer(hidden_imports.py:57) andhidden_import_cycleonHiddenImportCutFindingRecipeSynthesizer(hidden_import_cuts.py:836). Any real physical edit overlap is still caught bysimulate_recipe_set+PhysicalSourceEdit.require_compatible+ order-equality checks.Verification
tests/test_hidden_imports.py,tests/test_hidden_import_cuts.py,tests/test_type_only_readers.py) + 72test_repository_*guards ondesktop.bc8650e81confirmed all 3 previously conflicting pairs compose cleanly in both orders with identical rewritten sources (equal_sources=True), lifting Toad's clean exportable batch from 11 to 16 disjoint/commuting recipes (leaving only the 1 real physical line-overlap pairagent_surface.py:120-128vs121-121).