Skip to content

Conversation

@daveey
Copy link
Contributor

@daveey daveey commented Jan 17, 2026

Add BoundaryFilter that checks if target is at the boundary between two collectives.
This is the Python config side; C++ adjacency tracking implementation will follow.

  • BoundaryFilter: filter_type="boundary", collective_a, collective_b
  • AtBoundary() helper function for easy filter creation
  • Pass condition: target belongs to collective_a AND is adjacent to collective_b
  • Useful for events that trigger at territorial boundaries

Co-Authored-By: Claude Opus 4.5 noreply@anthropic.com

Copy link
Contributor Author

daveey commented Jan 17, 2026

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.
Learn more


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • add-to-merge-queue - adds this PR to the back of the merge queue
  • add-to-merge-queue-as-hotfix - for urgent hot fixes, skip the queue and merge this PR next

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.

@daveey daveey marked this pull request as ready for review January 17, 2026 04:11
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a 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: 873027b844

ℹ️ 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".

@blacksmith-sh

This comment has been minimized.

@datadog-official

This comment has been minimized.

@openhands-ai
Copy link

openhands-ai bot commented Jan 17, 2026

Looks like there are a few issues preventing this PR from being merged!

  • GitHub Actions are failing:
    • Test and Benchmark

If you'd like me to help, just leave a comment, like

@OpenHands please fix the failing actions on PR #4959 at branch `01-16-feat_mettagrid_add_boundaryfilter_for_filtering_objects_at_collective_boundaries_add_boundaryfilter_that_checks_if_target_is_at_the_boundary_between_two_collectives._this_is_the_python_config_side_c_adjacency_tracking_implementa`

Feel free to include any additional details that might help me get this PR into a better state.

You can manage your notification settings

@daveey daveey force-pushed the 01-16-feat_mettagrid_add_boundaryfilter_for_filtering_objects_at_collective_boundaries_add_boundaryfilter_that_checks_if_target_is_at_the_boundary_between_two_collectives._this_is_the_python_config_side_c_adjacency_tracking_implementa branch from 873027b to bed664d Compare January 17, 2026 04:30
@daveey daveey force-pushed the 01-16-feat_mettagrid_add_statsmutation_for_logging_stats_add_statsmutation_that_logs_a_stat_with_a_specified_delta._useful_for_events_to_track_when_they_fire_or_record_custom_metrics._co-authored-by_claude_opus_4.5_noreply_anthropic.c branch 2 times, most recently from 40b8869 to cfd9196 Compare January 17, 2026 04:37
@daveey daveey force-pushed the 01-16-feat_mettagrid_add_boundaryfilter_for_filtering_objects_at_collective_boundaries_add_boundaryfilter_that_checks_if_target_is_at_the_boundary_between_two_collectives._this_is_the_python_config_side_c_adjacency_tracking_implementa branch from bed664d to 54094ca Compare January 17, 2026 04:37
@daveey daveey force-pushed the 01-16-feat_mettagrid_add_statsmutation_for_logging_stats_add_statsmutation_that_logs_a_stat_with_a_specified_delta._useful_for_events_to_track_when_they_fire_or_record_custom_metrics._co-authored-by_claude_opus_4.5_noreply_anthropic.c branch from cfd9196 to 717b742 Compare January 17, 2026 04:42
@daveey daveey force-pushed the 01-16-feat_mettagrid_add_boundaryfilter_for_filtering_objects_at_collective_boundaries_add_boundaryfilter_that_checks_if_target_is_at_the_boundary_between_two_collectives._this_is_the_python_config_side_c_adjacency_tracking_implementa branch from 54094ca to 17ab37e Compare January 17, 2026 04:42
@daveey daveey changed the base branch from 01-16-feat_mettagrid_add_statsmutation_for_logging_stats_add_statsmutation_that_logs_a_stat_with_a_specified_delta._useful_for_events_to_track_when_they_fire_or_record_custom_metrics._co-authored-by_claude_opus_4.5_noreply_anthropic.c to graphite-base/4959 January 17, 2026 04:54
@daveey daveey force-pushed the 01-16-feat_mettagrid_add_boundaryfilter_for_filtering_objects_at_collective_boundaries_add_boundaryfilter_that_checks_if_target_is_at_the_boundary_between_two_collectives._this_is_the_python_config_side_c_adjacency_tracking_implementa branch from 17ab37e to aba6974 Compare January 17, 2026 04:59
@daveey daveey force-pushed the graphite-base/4959 branch from 717b742 to 14d48ae Compare January 17, 2026 04:59
@daveey daveey changed the base branch from graphite-base/4959 to 01-16-feat_mettagrid_add_statsmutation_for_logging_stats_add_statsmutation_that_logs_a_stat_with_a_specified_delta._useful_for_events_to_track_when_they_fire_or_record_custom_metrics._co-authored-by_claude_opus_4.5_noreply_anthropic.c January 17, 2026 04:59
@daveey daveey force-pushed the 01-16-feat_mettagrid_add_boundaryfilter_for_filtering_objects_at_collective_boundaries_add_boundaryfilter_that_checks_if_target_is_at_the_boundary_between_two_collectives._this_is_the_python_config_side_c_adjacency_tracking_implementa branch from aba6974 to a671ff1 Compare January 17, 2026 05:07
@daveey daveey force-pushed the 01-16-feat_mettagrid_add_statsmutation_for_logging_stats_add_statsmutation_that_logs_a_stat_with_a_specified_delta._useful_for_events_to_track_when_they_fire_or_record_custom_metrics._co-authored-by_claude_opus_4.5_noreply_anthropic.c branch from 14d48ae to cb22d29 Compare January 17, 2026 05:07
@daveey daveey force-pushed the 01-16-feat_mettagrid_add_boundaryfilter_for_filtering_objects_at_collective_boundaries_add_boundaryfilter_that_checks_if_target_is_at_the_boundary_between_two_collectives._this_is_the_python_config_side_c_adjacency_tracking_implementa branch from a671ff1 to 817e45c Compare January 17, 2026 05:17
@daveey daveey force-pushed the 01-16-feat_mettagrid_add_statsmutation_for_logging_stats_add_statsmutation_that_logs_a_stat_with_a_specified_delta._useful_for_events_to_track_when_they_fire_or_record_custom_metrics._co-authored-by_claude_opus_4.5_noreply_anthropic.c branch 2 times, most recently from 46a0e5c to 32c29a2 Compare January 17, 2026 05:19
@daveey daveey force-pushed the 01-16-feat_mettagrid_add_boundaryfilter_for_filtering_objects_at_collective_boundaries_add_boundaryfilter_that_checks_if_target_is_at_the_boundary_between_two_collectives._this_is_the_python_config_side_c_adjacency_tracking_implementa branch from 817e45c to 12a5ea7 Compare January 17, 2026 05:19
@daveey daveey force-pushed the 01-16-feat_mettagrid_add_boundaryfilter_for_filtering_objects_at_collective_boundaries_add_boundaryfilter_that_checks_if_target_is_at_the_boundary_between_two_collectives._this_is_the_python_config_side_c_adjacency_tracking_implementa branch from 12a5ea7 to aafa6cf Compare January 17, 2026 05:25
@daveey daveey force-pushed the 01-16-feat_mettagrid_add_statsmutation_for_logging_stats_add_statsmutation_that_logs_a_stat_with_a_specified_delta._useful_for_events_to_track_when_they_fire_or_record_custom_metrics._co-authored-by_claude_opus_4.5_noreply_anthropic.c branch from 32c29a2 to a64686c Compare January 17, 2026 05:25
@daveey daveey requested a review from sasmith January 17, 2026 05:38
@daveey daveey force-pushed the 01-16-feat_mettagrid_add_boundaryfilter_for_filtering_objects_at_collective_boundaries_add_boundaryfilter_that_checks_if_target_is_at_the_boundary_between_two_collectives._this_is_the_python_config_side_c_adjacency_tracking_implementa branch from aafa6cf to c6c113e Compare January 17, 2026 05:43
@daveey daveey force-pushed the 01-16-feat_mettagrid_add_statsmutation_for_logging_stats_add_statsmutation_that_logs_a_stat_with_a_specified_delta._useful_for_events_to_track_when_they_fire_or_record_custom_metrics._co-authored-by_claude_opus_4.5_noreply_anthropic.c branch 2 times, most recently from 6c64e32 to 110061e Compare January 17, 2026 07:04
@daveey daveey force-pushed the 01-16-feat_mettagrid_add_boundaryfilter_for_filtering_objects_at_collective_boundaries_add_boundaryfilter_that_checks_if_target_is_at_the_boundary_between_two_collectives._this_is_the_python_config_side_c_adjacency_tracking_implementa branch from c6c113e to 924a56d Compare January 17, 2026 07:04
@@ -0,0 +1,282 @@
# Mechanic-Based Curriculum Design
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove this file

…ve boundaries

Add BoundaryFilter that checks if target is at the boundary between two collectives.
Passes if target belongs to collective_a AND is adjacent to collective_b.

Python:
- BoundaryFilterConfig with filter_type="boundary", collective_a, collective_b fields
- AtBoundary() helper function
- Added to AnyFilter union

C++:
- BoundaryFilterConfig struct in handler_config.hpp
- BoundaryFilter class in filter.hpp with AdjacencyCallback for grid integration
- Added to FilterConfig variant

Tests:
- test_boundary_filter.py with creation, helper, serialization tests

Note: Adjacency checking requires grid integration via set_adjacency_callback().

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@daveey daveey changed the base branch from 01-16-feat_mettagrid_add_statsmutation_for_logging_stats_add_statsmutation_that_logs_a_stat_with_a_specified_delta._useful_for_events_to_track_when_they_fire_or_record_custom_metrics._co-authored-by_claude_opus_4.5_noreply_anthropic.c to graphite-base/4959 January 18, 2026 06:01
Design for automatic curriculum that promotes game mechanics:
- Threshold-based graduation
- Random selection from ungraduated mechanics
- Scaffolding removal after graduation
- Configurable batch size

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@daveey daveey force-pushed the graphite-base/4959 branch from 110061e to 232df60 Compare January 18, 2026 06:02
@daveey daveey force-pushed the 01-16-feat_mettagrid_add_boundaryfilter_for_filtering_objects_at_collective_boundaries_add_boundaryfilter_that_checks_if_target_is_at_the_boundary_between_two_collectives._this_is_the_python_config_side_c_adjacency_tracking_implementa branch from 924a56d to 1958dbd Compare January 18, 2026 06:02
@daveey daveey changed the base branch from graphite-base/4959 to 01-16-feat_mettagrid_add_statsmutation_for_logging_stats_add_statsmutation_that_logs_a_stat_with_a_specified_delta._useful_for_events_to_track_when_they_fire_or_record_custom_metrics._co-authored-by_claude_opus_4.5_noreply_anthropic.c January 18, 2026 06:02
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.

3 participants