Repository navigation
Assign unit identity at entry and remove lazy lookup allocation - #522
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 539edf6a95
ℹ️ 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".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 867e7ca157
ℹ️ 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".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 31d5f0cd52
ℹ️ 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".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 8778ad9251
ℹ️ 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".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 391108ea24
ℹ️ 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".
|
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 325874241b
ℹ️ 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".
|
@codex review |
|
Codex Review: Didn't find any major issues. 👍 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
Assign identity during native entry, before ordinary enter consumers and before runtime creation returns. Store the association before
onUnitIndex, retain it through death, and release it on leave/deindex. Missing or stale identity is a critical error:getIndex()andtoUnitIndex()never allocate or repair it.Keep consumer/spatial exclusions independent of identity. Preserve nonfatal absence handling for optional listener registration, event routing and order history. Once identity exists, route through configured
getIndex(). ResolveUnitIndexobjects through strictly validated backing allocator IDs; validate backing ownership before comparing a captured configured ID. Reentrant deindex cannot attach listeners to slot zero or resurrect cancelled startup registrations.Preserve and document native zero self-damage before entry. Tornado Slow Aura emits these notifications even with no allowed targets; damage callbacks do not allocate identity.
Publish portable lifecycle, birth-damage, optional-routing and allocator checks. The checked-in preparer executes lifecycle/birth tests in both default and indexing profiles and offers a configured-provider profile. The latter overrides only
getIndex()and exercises native events, order history, default object lookup, captured lifetimes and native removal.Validation:
64b0da7: 393/393 JASS and 393/393 guarded Lua, zero uncaught errors and one intentional caught allocator probe each. Artifacts:construction-lifetime-2026-11-02T17-47-34-830Zandconstruction-lifetime-2026-11-02T17-47-56-974Z.construction-lifetime-2026-11-02T17-41-25-384Z,construction-lifetime-2026-11-02T16-41-37-336Z.construction-lifetime-2026-11-02T17-19-07-483Zbefore,construction-lifetime-2026-11-02T17-19-35-283ZLua after,construction-lifetime-2026-11-02T17-21-21-083ZJASS after. The preceding routing-only control also failed 5/9 before and passed 9/9 after.Artifacts are local under the investigating map checkout's
artifacts/cf-e2e/. Warcraft executable: 3.0.1.24371. The final portable Lua run uses compiler PR #1593 at720e3be; JASS and standalone profiles use the installed compiler. No installed compiler was replaced by this work.Compatibility: lazy lookup is removed. Release indexed state during deindex while the association remains valid. UnitIndex subclasses use
getUnit()instead of the removed protected_unitfield.Limits: the original full automatic suite still has one flat-terrain fixture failure (107 passed, one failed); interactive UI checks remain pending. The old Lua compiler fails the stale typed-destroy allocator regression; this PR does not fix the compiler. The production stale destroyer remains unidentified, same-class stale reuse and allocator parity remain separate compiler work, and single-client native passes do not establish multiplayer synchronization or prove the original replay fixed.
Optional spatial refresh, order-history clearing, and explicit unindexed order construction observe absence before strict lookup. The default-provider spatial control records two caught missing-index errors before the fix and passes 426/426 with zero errors after (before artifact: construction-lifetime-2026-11-02T17-40-55-675Z). Both new order-history unit tests fail independently on the old default implementation.