Skip to content

Add a note to OptimizationContext::SharedNodeData about allowable usages. - #4775

Draft
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_964356589
Draft

Add a note to OptimizationContext::SharedNodeData about allowable usages.#4775
copybara-service[bot] wants to merge 1 commit into
mainfrom
test_964356589

Conversation

@copybara-service

Copy link
Copy Markdown

Add a note to OptimizationContext::SharedNodeData about allowable usages.

Some LLM agents recently tried to fix optimization bugs by smuggling data between passes/invocations of passes using the SharedNodeData to store shared state.

This is not a behavior we want to allow. SharedNodeData is purely a performance optimization and the NodeData held within it must always be fully recreatable at any point.

Add a note to the documentation to clue agents in on the fact that stashing data in this location is forbidden.

…ges.

Some LLM agents recently tried to fix optimization bugs by smuggling data between passes/invocations of passes using the SharedNodeData to store shared state.

This is not a behavior we want to allow. SharedNodeData is purely a performance optimization and the NodeData held within it must always be fully recreatable at any point.

Add a note to the documentation to clue agents in on the fact that stashing data in this location is forbidden.

PiperOrigin-RevId: 964356589
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