Skip to content

Fix motif collapse dropping activities on duplicate matches - #34

Open
matthewmoorcroft wants to merge 2 commits into
unify/reconcile-internalfrom
pr/motif-collapse-duplicate-drop
Open

Fix motif collapse dropping activities on duplicate matches#34
matthewmoorcroft wants to merge 2 commits into
unify/reconcile-internalfrom
pr/motif-collapse-duplicate-drop

Conversation

@matthewmoorcroft

Copy link
Copy Markdown
Member

Closes #28

What

When the same motif matched twice in one pipeline, collapse_motifs deduped by motif_id and continue-skipped the second match — dropping its activities from the output and leaving dangling depends_on edges → invalid dependency graph at deploy.

Now each detected match is tracked by identity and gets a unique task_key per occurrence (motif_X, motif_X_2, …) via a task_key_suffix, recording every member's task_key → motif mapping so _rewire_dependencies still redirects edges correctly.

Scope

src/flowx/motifs/collapser.py only. Intra-pipeline bug — independent of the lineage epic (#23/#24).

Testing

make test full unit suite green; test_motifs.py passes.

This pull request and its description were written by Isaac.

matthewmoorcroft and others added 2 commits September 1, 2026 11:14
Rewrite internal package-proxy URLs (pypi-proxy.dev.databricks.com) to
pypi.org / files.pythonhosted.org so public CI resolves deps. Same pinned
versions and hashes; matches main.

Co-authored-by: Isaac <no-reply@databricks.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant