Repository navigation
chore: bump revengai to 4.72.2 - #178
Merged
Merged
Conversation
The vendor tree under reai_toolkit/vendor is what the plugin actually imports: both reai_toolkit_entry.py and tests/conftest.py prepend it to sys.path ahead of site-packages. build_vendor.sh resolved it with `uv pip install .`, which ignores uv.lock and re-resolves from the pyproject floors, so the shipped tree drifted away from the lockfile -- revengai 4.20.0 vendored against 4.72.2 locked, libbs 3.8.1 vendored against 2.16.5 locked. Every test run to date resolved the vendored 4.20.0, so the SDK bump was never actually exercised. Export the locked runtime set and install that instead, and add scripts/check_vendor.py to assert the tree matches uv.lock (environment markers evaluated, so Windows-only pins are not reported missing on macOS). build_vendor.sh now runs the check on every rebuild. Raise the libbs floor to 3.8.1. The lock sat on the 2.16.5 floor, whose decompilers/ida/compat.py does a bare `import ida` on the headless path and fails to import under IDA 9.3 idalib; 3.8.1 is what the drifted tree had been shipping, so this codifies the working version rather than changing it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
revengai 4.72.2 tightened the pydantic constraints on two models the plugin constructs by hand: FunctionBoundary.mangled_name StrictStr -> min_length=1, max_length=4096 FunctionBoundary.start_address StrictInt -> ge=0 FunctionBoundary.end_address StrictInt -> ge=0 Symbols.base_address StrictInt -> ge=0 Symbols.function_boundaries List -> max_length=200000 collect_symbols_from_ida fed idc.get_func_name() straight into mangled_name. That returns "" for an unnamed function, which now fails min_length=1 and raises ValidationError out of the whole collection pass -- so upload would break outright on any binary containing one. The boundary list was also unbounded, and a negative image base would trip ge=0. Skip boundaries with no name rather than inventing one, truncate over-long names, clamp the base address, and cap the list, warning when either the skip count or the cap is non-zero so the truncation is not silent. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
revengai 4.72.2 marks 85 operations deprecated, up from 25. Eight of the nine
the plugin called now emit a DeprecationWarning at call time and have a v3
successor; this moves them over.
Every v2 operation returned a BaseResponseX envelope with a .data attribute.
Every v3 operation returns a flat *OutputBody. So each migration is: swap the
method, drop the .data unwrap, remap fields.
ConfigApi.get_config -> ConfigApi.v3_get_config
AnalysesCoreApi.get_analysis_status -> AnalysesCoreApi.v3_get_analysis_operation
AnalysesCoreApi.get_analysis_function_map
-> FunctionsCoreApi.v3_get_analysis_func_maps
AnalysesCoreApi.list_analyses -> AnalysesCoreApi.v3_list_analyses
AnalysesCoreApi.upload_file -> BinariesApi.v3_upload_file
SearchApi.search_binaries -> BinariesApi.v3_search_binaries
SearchApi.search_collections -> CollectionsApi.v3_list_collections
FunctionsAIDecompilationApi.upsert_ai_decompilation_rating
-> ..._api.v3_upsert_ai_decompilation_rating
Notes on the non-obvious ones:
SearchApi is now deprecated in its entirety -- it has zero non-deprecated
operations. Binary search moves to GET /v3/binaries and collection search to
GET /v3/collections; both swap page/page_size for limit/offset.
CollectionListItemBody renames six fields off CollectionSearchResult
(scope, last_updated_at, created_at, owned_by, tags, size).
Analysis status moves to the long-running-operation endpoint
GET /v3/operations/analyses/{analysis_id}, whose CreateMetadata.status carries
the same platform status string v2 returned, so the Complete/Error state
machine is unchanged.
v3_upload_file drops packed_password. That parameter was dead plumbing here:
declared and threaded between _upload_file_req and upload_user_file but never
supplied by any caller. Archive passwords moved to the sandbox side of the
platform (SandboxConfig.archive_password), so it is removed rather than
reimplemented.
Also handle the types_applied AI-decompilation stream event, new in 4.72.2 as
the EventTypesApplied oneOf variant. The hand-rolled SSE parser keys off event
names and had no branch for it, so those events were dropped silently.
AnalysesCoreApi.create_analysis stays on v2: POST /v2/analyses is deprecated
but has no v3 successor in the live v4.73.0 spec. It is now the only deprecated
SDK call left in the plugin. The remaining /v2 calls -- IAMUsersApi.get_me and
the seven ConversationsApi operations -- are not deprecated and have no /v3
paths in the spec.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This was referenced Oct 20, 2026
refactor: migrate the deprecated v2 endpoints onto v3
fix: guard symbol collection against 4.72.2 validation constraints
fix: build the vendor tree from uv.lock and raise the libbs floor
brettwold
approved these changes
Oct 20, 2026
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.
Auto-generated by
.github/workflows/bump-revengai-sdk.yaml.SDK:
revengai4.20.0→4.72.2This is a rolling PR.
Review for schema/breaking changes before merging.