Repository navigation
feat(il2cpp): read member names, string literals and metadata versions 24 and 27 - #5326
Merged
Merged
Conversation
…s 24 and 27 Adds field, property, event and parameter names with their owners, managed string literals, and the version 24 and 27 header layouts to inspect_il2cpp_metadata, with filtered pages for the new collections. Member decoding yields between row batches like the other row readers.
This was referenced Oct 20, 2026
gensokyo-dev
marked this pull request as ready for review
October 20, 2026 10:44
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Contributor
[Medium impact] The PR appears safe to merge; the previous test gap is addressed and no new blocking issue was found. SummaryExtends IL2CPP metadata inspection with member names, owners, string literals and version 24/27 layouts.
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart LR
File["Selected metadata file"] --> Decode["Check layout and decode rows"]
Decode --> Evidence["Retain complete Evidence"]
Evidence --> Summary["Return counts"]
Evidence --> Pages["Filter and page original rows"]
Reviews (2) · Last reviewed commit: "test(il2cpp): cover nonempty property an..." · Reviewed by Greptile |
3 tasks done
kangyishuai
pushed a commit
to kangyishuai/rea
that referenced
this pull request
Oct 20, 2026
…ansition-view Resolve the inspect_analysis_view description conflict with main's IL2CPP member and string-literal change (morluto#5326). The description keeps main's text and adds this branch's capture_browser_scenario additions. Co-Authored-By: Claude Opus 5.5 <[email protected]>
7 of 22 tasks
This was referenced Oct 20, 2026
7 of 29 tasks
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
Extends
inspect_il2cpp_metadatawith field, property, event and parameter names and owners, byte-preserving managed string literals, and the observed version24/27 layouts. An analyst can now find a method and request its parameters bymethod_indiceswithout transferring the entire parameter table. MCP still defaults to a retained summary; full Evidence remains available through CLI/MCP.Original implementation and cross-version investigation: @8rulerstar, commit
0c583ba61, retained in this branch. Follow-ups synchronize main1417bf943: runtime changes at90cab680ecomplete ownership, resource and compatibility boundaries;84d1a2244adds test coverage without changing production code. This is the metadata-only slice of #3784, preceding #5327/#5112 native-address work.Workflow and examples. Static caller-selected metadata only: no target execution, native registration, decryption, mutation or new dependencies/installers. Version24 coverage is the264-byte header layout used by the cited2019.4 sample; other24.x layouts are not guessed.
Executed validation
npm run checkpassed all6 static tasks and architecture guards at90cab680e; typecheck/lint passed after the test-only review follow-up. 92 focused tests passed across file/provider/service/domain and public CLI/MCP boundaries, including actual SDK/AJV2020 advertised schemas. Docs generation/check and 5 README tests passed.853f78ede(main052956af3+ head84d1a2244, tree5c7fe1011622014568096abc6c0c11b88071c7ba) passed all92 relevant tests again. Its real Windows SDK/MCP selected-owner task and full Evidence export also passed:6RPC,32,535 estimated used-declaration tokens,256,814 all-input tokens,10.30s wall,12.31s family CPU,1.019GiB sampled family RSS. This integration run includes newer main catalog changes and is separate from the paired measurements below.5691bdd9161d054db69cc842397c7a42c6bf4a544060f05d741e99a6a3a07d29; Android3814d666a9f83388a71d7ad7ffb67b2cdaf7f2fef5c48c021ddf43373cdad64e.Images/types/methods also matched: Windows55/7,261/49,148, Android37/6,838/48,004. Original contributor-reported self-built24/27/31/39 verification remains credited; those real versions/platforms were not rerun here. Generated fixtures exercise supported layouts and malformed inputs, not real-engine qualification. Native-address/Ghidra claims belong to #5327.
Completed-task measurements
Runtime revision90cab680e: context, latency, CPU and memory
Task: read all130 fields of
IngameDebugConsole.DebugLogManagerand all3 parameters ofReceivedLog(logString,stackTrace,logType), retaining source-scoped row indices and exporting complete Evidence. The old API requires a512-row parameter scan; the new owner selector answers directly. Both delivery variants below use runtime revision90cab680e, identical files/facts/coverage and Evidence access. The later review commit changes only three test files; production code is identical. Alternating real variants were run in both orders.Tokenx estimates include used input declarations, arguments, full replies and extra RPCs. The all-declarations counter and whole-wire artifacts include catalog costs; actual model usage/rendering/tool-selection/compaction is unmeasured. Small input is the source-defined fixture, not a real-provider claim.
Original implementation at
5e233013f: real task105RPC /2,152,408 used-declaration tokens /2,376,687 all-input tokens /14.64s wall /19.77s CPU /3.029GiB sampledRSS. Admission and validation add work; no general decoder speedup is claimed. The primary benefit comes from avoiding unnecessary transfer and repeated queries. Small inputs incur47 extra estimated tokens for explicit selection; latency varies with host load.Whole harness includes client/catalog/schema validation, initial full decoding, projection, export and teardown. Separate retained-field reads: [24.68, 27.92, 22.11] ms; probes are excluded from primary counters. The complete parent is immutable and reused without re-reading the source.
Linux/Node24.18,2CPU affinity,3GiB V8 heaps,8GiB family stop guard; no guard stops/OOM/retries in measured tasks. RSS sampled20ms across the process family may double-count shared pages or miss short peaks. Runtime caches fresh, OS caches/host load uncontrolled. Engine-only costs unmeasured. The64MiB encoded-report budget is not a total-RSS bound. Reference tools/SDK lived in private verification directories and were not added to REA.
Expected effects:
Author readiness
Human owner: @gensokyo-dev
Original contribution: @8rulerstar.
The human owner explicitly authorized this work, delegated technical review and validation to Codex, directed these declarations on their behalf, and requested ready-for-review submission and normal merge. This records that direction; it does not assert an independent human review of the follow-up or that the original contributor reviewed these later commits.
Before merge
type(scope): outcome.