Skip to content

Recognize client-local native values in optimizer locality analysis - #1221

Merged
Frotty merged 5 commits into
masterfrom
agent/recognize-local-native-values
Aug 10, 2026
Merged

Recognize client-local native values in optimizer locality analysis#1221
Frotty merged 5 commits into
masterfrom
agent/recognize-local-native-values

Conversation

@Frotty

@Frotty Frotty commented Aug 9, 2026

Copy link
Copy Markdown
Member

What changed

  • centralize native return values that may differ between clients in LocalPlayerContextAnalyzer
  • propagate camera, locale, local client/world, and frame-state values through the existing optimizer locality barriers
  • keep synchronized mouse, key, and frame event response natives outside the local-value set
  • add a compiler regression proving BranchMerger does not hoist across a stored camera-derived condition
  • add direct positive and negative native-classification coverage

Why

The optimizer locality analysis previously seeded taint only from GetLocalPlayer(). Other asynchronous or client-local native values could therefore look synchronized to optimizer passes, allowing control-flow rewrites across those conditions.

Validation

  • focused new regressions: passed
  • complete OptimizerTests: passed
  • full Gradle test suite: passed (BUILD SUCCESSFUL)
  • git diff --check: passed

Frotty commented Aug 9, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

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: 72069bb263

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

Frotty commented Aug 9, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

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: d39511399a

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

Frotty commented Aug 9, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

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: ab48151cdd

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

Frotty commented Aug 9, 2026

Copy link
Copy Markdown
Member Author

Expanded the locality audit in 49ed91f to cover visibility-dependent lightning results and unsynchronized special-effect handles/getters, with behavioral branch-merger regressions. Full OptimizerTests is green.

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

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: 49ed91f185

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

Frotty commented Aug 9, 2026

Copy link
Copy Markdown
Member Author

Narrowed the locality registry in baba1e2 to intrinsically client-local return values. User-managed UI/audio/visual state and locally populated handle storage are now explicitly excluded to avoid suppressing broad classes of safe optimizations. Full OptimizerTests is green.

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

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: baba1e2b05

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

Comment on lines +56 to +59
// Localized data may vary with the client's language.
"GetLocalizedString",
"GetLocalizedHotkey",
"GetObjectName",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Seed SkinManagerGetLocalPath as a locality source

When clients use different UI skins, SkinManagerGetLocalPath (declared in common.j:3443) can return different asset paths without map code mutating local state. Because it is omitted here, a condition derived from that path remains untainted and BranchMerger may hoist synchronized work across client-local control flow; include this native and add a behavioral regression covering the branch-merger case.

AGENTS.md reference: AGENTS.md:L63-L63

Useful? React with 👍 / 👎.

@Frotty
Frotty marked this pull request as ready for review August 10, 2026 08:59
@Frotty
Frotty merged commit c882db5 into master Aug 10, 2026
6 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