-
Notifications
You must be signed in to change notification settings - Fork 47
feat(mettagrid): add AlignToCollectiveMutation for direct collective alignment #4957
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 01-16-feat_mettagrid_add_collectivefilter_for_filtering_by_collective_membership_add_collectivefilter_that_checks_if_target_belongs_to_a_specific_collective._used_by_events_to_select_objects_by_their_collective_membership._co-authored
Are you sure you want to change the base?
feat(mettagrid): add AlignToCollectiveMutation for direct collective alignment #4957
Conversation
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: b509f8f519
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
89bfaf4 to
cdb5d2d
Compare
a79ebd0 to
4a8d25d
Compare
cdb5d2d to
162ef91
Compare
4a8d25d to
04ce093
Compare
162ef91 to
2ea8636
Compare
04ce093 to
22299ef
Compare
2ea8636 to
3155039
Compare
3155039 to
cc254e0
Compare
0403df0 to
fb85dab
Compare
75cd391 to
e04bec5
Compare
139a420 to
6c3fee4
Compare
e04bec5 to
094c395
Compare
094c395 to
fd2d361
Compare
59c2983 to
731c8af
Compare
fd2d361 to
54f81b3
Compare
…alignment Add AlignToCollectiveMutation that aligns target to a specific collective by name. Unlike AlignmentMutation (which aligns to actor's collective), this allows direct alignment to any named collective - useful for events that don't have an actor. Python: - AlignToCollectiveMutationConfig with mutation_type="align_to_collective" and collective field - AlignToCollective() helper function - Added to AnyMutation union C++: - AlignToCollectiveMutationConfig struct in handler_config.hpp - AlignToCollectiveMutation class in mutation.hpp with set_collective() method - Added to MutationConfig variant Tests: - test_align_to_collective_mutation.py with creation, helper, serialization tests Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
731c8af to
15bac33
Compare
54f81b3 to
83c898c
Compare

Add AlignToCollectiveMutation that aligns target to a specific collective by name.
Unlike AlignmentMutation (which aligns to actor's collective), this allows direct
alignment to any named collective - useful for events that don't have an actor.
Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com