Skip to content

Expose movement observed by the unit spatial sweep - #525

Merged
Frotty merged 1 commit into
masterfrom
codex/spatial-native-movement
Nov 13, 2026
Merged

Frotty merged 1 commit into
masterfrom
codex/spatial-native-movement

Conversation

@Frotty

@Frotty Frotty commented Nov 13, 2026

Copy link
Copy Markdown
Member

Change

Expose a configurable position observation from the existing Lua spatial sweep. It runs on the first sample and when a later sample changes position. Query cache writes cannot consume the observation. The callback receives the current position after the index is updated.

Evidence

Castle Fight consumes this callback in the cage unit ledger. With the same attack order at the same coordinates, a lone ground fighter stays inside the diagonal wall while overlapping fighters can cause the attacker to cross the corner. Before the change the crossed fighter kept its caged credit. After it, the same fighter crosses and moves to the uncaged ledger.

  • Warcraft III 3.0.1.24371, Lua, deno task e2e --suite=cage-rules --minimized in Castle Fight.
  • Before, stdlib 26b096b, failed cr-northern-overlap-keeps-credit-current. Artifact cage-rules-2026-11-13T17-00-28-545Z/result.json.
  • After, stdlib 02e7bfc, all 61 assertions passed. Artifact cage-rules-2026-11-13T17-17-36-033Z/result.json.
  • Stdlib grill typecheck --quiet passed and grill test UnitSpatialIndexTests --quiet passed 5/5.
  • Map integration is tracked in Castle Fight PR 477.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 13, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-13T17:22:19.946281Z 02e7bfc PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@Frotty
Frotty merged commit 4fb06c4 into master Nov 13, 2026
3 checks passed
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