refactor(regeneration): extract shared selection primitives into core/regeneration
Summary
Extracts the regeneration selection primitives shared by the proposed-change pipeline and the branch-merge follow-up out of proposed_change/tasks.py into a new leaf package core/regeneration/. This removes the import cycle between the proposed-change and branch-merge task modules and lets the post-merge dispatcher import its collaborators at module scope.
Jira: https://opsmill.atlassian.net/browse/IFC-2908
What moved
New leaf package backend/infrahub/core/regeneration/:
models.py—DefinitionSelect,ImpactScope,ImpactedSubscribers,PredicateOutcome,RegenerationDefinitionpredicates.py— query-changed / definition-changed / transform-changed checks, the repository-diff lookup helper, the query-relevant node-change filter, and the triggering-action helpersmembers.py— subscriber-by-member map, artifact render decision, generator execution decisiondefinitions.py— artifact-definition gather query and its edge parserimpact.py— field-level impacted-subscriber resolution and the subscriber gather
Names crossing the package boundary are public. The merge/selective_regen/ package now sources these primitives from core/regeneration instead of reaching into proposed-change internals.
Behaviour
Behaviour-neutral relocation. No schema, GraphQL, REST, event, CLI, config, or migration change.
🤖 Generated with Claude Code