Add contract reference table to LLM reports - #346
Merged
Conversation
Preserve role and description pairs in the reference table, decode calldata nested in bytes arrays and tuples, and use schedule-safe executor wording. Align the documentation with emitted roles and full explorer links.
Collaborator
Author
|
Resolved the review findings in
Added regression tests for multi-role addresses, Validation:
|
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.
Summary
## Referencetable to full Wavey Gist reportsbytes, arrays, and tuples using the existing offline decoder and recursion limitInspired by the Reference section in this Wavey Gist.
Example
0x4B174afbeD7b98BA01F50E36109EEE5e6d327c320x11F6FAb3f4D8635880C3e80cbae8AEF8136D4189setRate(address,uint256)0x6439eb9DADC7977BC1ADC027B10Fb1749AF869A5escrowtosetRate(address,uint256)Protocol context: Resolved by the INFINIFI protocol adapter
0x79e1B8e45932A7C802eA3dAb3844e5DEa68d971f0xE4C72b4dE5b0F9ACcEA880Ad0b1F944F85A9dAA0LLM cost
None. The table is generated locally after the LLM response from data already collected for the report. The only size increase is the final gist Markdown payload.
Testing
uv run pytest tests/— 867 passed, 4 skippeduv run ruff check .uv run ruff format --check .uv run mypy --follow-imports=skip utils/llm/report.pyuv audit --preview-features audit-commanduvx prek run