docs(ai-explainer): document impl-diff pipeline step#228
Merged
Conversation
Expands the README's "Proxy Upgrade Detection" section to cover the new implementation-diff feature shipped in #226 and #227: - All three recognized upgrade selectors (incl. OZ ProxyAdmin's upgradeAndCall) and the ProxyUpgrade dataclass returned. - Selector short-circuit before calldata decoding (no Sourcify lookup for non-upgrade calls). - Structural diff between old/new impl: function add/remove/changed visibility, storage layout safety with OZ trailing-gap consumption, EIP-7201 namespaced storage detection. - Default-internal state vars now captured (visibility no longer required); function locals excluded via brace-depth tracking. Updates the example assembled prompt to show the new "--- Proxy Upgrade ---" block content (with Old/New impl labels and function/state diff) and adds utils/impl_diff.py to the module-structure listing. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Docs-only follow-up to #226 and #227. The pipeline gained a structural implementation-diff step that wasn't reflected in `utils/llm/README.md`.
Changes
"Proxy Upgrade Detection" section (now "Proxy Upgrade Detection & Implementation Diff") covers:
Example assembled prompt updated to show the new `--- Proxy Upgrade ---` block content (Old/New impl labels, function add list, storage-layout verdict).
Module structure lists `utils/impl_diff.py`.
No code changes
Pure README update. CI will be fast.