Skip to content

Pathfinding for Stacked Space - #3678

Closed
codebreaker32 wants to merge 8 commits into
mesa:mainfrom
codebreaker32:feat/stacked_space
Closed

codebreaker32 wants to merge 8 commits into
mesa:mainfrom
codebreaker32:feat/stacked_space

Conversation

@codebreaker32

@codebreaker32 codebreaker32 commented Apr 1, 2026 •

Copy link
Copy Markdown
Collaborator

Pathfinding for adding stacked spaces architecture to Mesa. This builds upon the foundational ideas discussed in #2585 and #3458.

  1. It introduces a bidirectional sync mechanism allowing agents to seamlessly operate across a continuous physical space (the primary space) and discrete patches (like OrthogonalMooreGrid), solving the multi-space routing challenge.
  2. It introduces an unified agent SpatialAgent that automatically pushes updates from its continuous position downward to all registered discrete spaces.
  3. Which example model can be used to best evaluate it?
  4. Any suggestions on API ergonomics? Architecture? Naming?

Please see Architectural Diagram

@codebreaker32
codebreaker32 marked this pull request as draft April 1, 2026 19:50
@github-actions

github-actions Bot commented Apr 1, 2026

Copy link
Copy Markdown

Performance benchmarks:

Model Size Init time [95% CI] Run time [95% CI]
BoltzmannWealth small 🔵 -1.4% [-1.9%, -0.9%] 🔵 -1.2% [-1.5%, -0.9%]
BoltzmannWealth large 🔵 +1.1% [+0.5%, +1.8%] 🔵 +2.1% [+0.1%, +4.5%]
Schelling small 🔵 +2.8% [+2.2%, +3.3%] 🔵 +0.9% [+0.1%, +1.8%]
Schelling large 🔵 +1.3% [+0.1%, +2.5%] 🔵 +4.3% [+2.0%, +7.1%]
WolfSheep small 🔵 +0.5% [+0.0%, +0.9%] 🔵 +1.7% [-1.8%, +5.3%]
WolfSheep large 🔵 +1.0% [-0.0%, +2.0%] 🔵 +4.7% [+2.3%, +7.2%]
SugarscapeG1mt small 🟢 -3.9% [-4.6%, -3.2%] 🔵 -2.2% [-3.7%, -0.6%]
SugarscapeG1mt large 🔵 -1.5% [-3.0%, -0.0%] 🔵 -1.1% [-2.9%, +0.8%]
BoidFlockers small 🔵 -0.7% [-1.0%, -0.3%] 🔵 +3.1% [+2.6%, +3.5%]
BoidFlockers large 🔵 -1.3% [-1.6%, -1.0%] 🔵 +2.0% [+1.7%, +2.2%]

@codebreaker32
codebreaker32 requested a review from quaquel April 2, 2026 09:17
@EwoutH

EwoutH commented Apr 9, 2026

Copy link
Copy Markdown
Member

Thanks for the PR. Always appreciate a bit of pathfinding.

I think we need to get the primitives in place first. See #3458 (comment).

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.

2 participants