Repository navigation
feat(il2cpp): retain v108 header and string evidence - #9925
Merged
Merged
Conversation
dhruvac29
marked this pull request as ready for review
November 11, 2026 02:41
Codex Review Summary: ✅ CompletedThis 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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: bfcadc2e00
ℹ️ About Codex in GitHub
Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".
3 tasks done
Open
3 tasks done
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
Expose a bounded header and metadata-string observation for IL2CPP metadata version 108 in the existing refusal Evidence. This is the partial path requested in #9791. Full type, method, literal and binary decoding remains unresolved, so this draft does not close the issue.
Problem and expected behavior
Unity 6000.6 metadata reports version 108. REA currently returns
unsupported_targetwith source identity only. A caller needs the section extents and a small string inventory even before the changed record and native registration layouts can be verified.Change and scope
The existing IL2CPP provider now recognizes a v108 header, validates section bounds and overlap, counts NUL-terminated metadata strings, and retains up to 16 string samples of 128 bytes each. Invalid UTF-8 samples retain base64 bytes. The response remains an
unsupported_targeterror with partial Evidence, so callers do not mistake unknown type and method inventories for empty ones. Files incompatible with the unverified header layout remain unsupported and retain source Evidence.Header order is based on LibCpp2IL's v108 header reader. The reporter's 13,733,560-byte file is not attached, so this layout has only synthetic verification.
Follow the contribution scope. This is a read-only extension of an existing local metadata reader; a new provider or target execution capability is not involved.
Contract and boundary impact
Il2cppMetadataProvider, immediately after the stable metadata snapshot.unsupported_targetpartial Evidence gainsversion_108_partial_inventory; MCP retains it by Evidence reference.Expected effects:
Evidence and regression coverage
unsupported-versionand carries no header or string inventory. The source layout is from LibCpp2IL; no real v108 artifact was available.details.partial_observation.normalized_result.version_108_partial_inventoryincludesheader_bytes, 41 sections,strings.terminated_count, andstrings.sample. MCP returns aretained-evidencereference to that partial Evidence.Boundary coverage includes incompatible section bounds, padding after the assumed header, and unsupported but recognized metadata. The existing stable artifact reader and provider lifecycle are unchanged; no new lifecycle path is introduced.
For evidence-bearing changes:
Validation performed
npm run test:focused -- tests/boundary/il2cpp/il2cppMetadataProvider.test.ts— 32 passed, including padding, unverified-layout refusal, BOM preservation and cancellation during a large v108 scan.npm run test:focused -- tests/acceptance/il2cppMetadataCli.test.ts— 22 passed.npm run check:fast— typecheck and lint passed.npm run verify:test-discovery— all 3362 test files discovered once.oxfmt --checkon changed files andgit diff --check— passed.Compatibility, safety, and release
Author readiness
Human owner: @dhruvac29
Before merge
type(scope): outcome.