Skip to content

fix(dotnet): report observed method metadata changes - #688

Closed
rudycelekli wants to merge 3 commits into
morluto:mainfrom
rudycelekli:fix/rea-managed-method-metadata-20261006
Closed

rudycelekli wants to merge 3 commits into
morluto:mainfrom
rudycelekli:fix/rea-managed-method-metadata-20261006

Conversation

@rudycelekli

@rudycelekli rudycelekli commented Oct 6, 2026 •

Copy link
Copy Markdown

Problem

compare-managed-members compares CIL and signatures but omits the already-observed MethodDef flags and implementation flags. Changing a method from public to private, or adding Synchronized, can therefore produce unchanged even though the method's metadata changed. Field comparisons already consider their flags.

Change

Add a narrow metadata method dimension when either observed flags value differs, before body coverage decisions. Preserve existing method pairing, normalized IL hashes and partial-body handling. Synchronize generated tool schemas/catalog digests and document that this is static metadata evidence.

Verification

Owned PE files were inspected and compared through the public filesystem compareManagedMemberPaths workflow. Before this patch both public→private and ordinary→synchronized cases were incorrectly unchanged. After it they are changed with metadata; their IL hashes remain identical. A different-MVID control with the same method flags remains unchanged.

  • 12 focused domain/path workflow tests pass, including the two filesystem regressions and existing partial-body controls.
  • All five npm run check tasks and npm run docs:check pass using Node 24.18.0 and locked dependencies.
  • Generated catalog semantic comparison contains only four instances of the additive method dimension enum; synchronized digests contain no unrelated catalog changes.
  • npm run verify:managed: 11 source-owned static-format scenarios pass. Optional operator manifest/ILSpy verification is unconfigured and not claimed.

This detects observed method metadata changes. It does not execute the PE, prove CLR behavior, or expand the normalized CIL hash contract.

AI assistance was used for investigation, implementation, tests, description and independent patch review. Actual filesystem proof and limitations are stated above.

CI follow-up

Hosted Docs Generation exposed a missing generated managed-conformance manifest skill digest after the synchronized catalog digest changed the skill metadata. The manifest generator's change is exactly the skill SHA and enclosing manifest ID; it changes no claims or verification statuses. The required file has been regenerated and exact npm run docs:check and all five npm run check tasks pass locally. Signed repair head 41d232f519df72e64f4e12c4edfb80b5aecaa517 includes the required generated manifest. Hosted reruns are pending, not claimed green here.

The subsequent upstream update introduced a generated manifest conflict. Signed integration head a41ad585605292170f965a32eaf2eaa30b74a810 includes current upstream b6c21b1, preserving its Command Code, skill and incur 0.6.1 updates. The conflict was resolved by regeneration from exact merged source. Fresh locked dependency installation, 12 focused tests, managed static verification, documentation checks, all five source checks and the actual owned-file comparison proof pass on that merged source. Hosted reruns are pending.

Final integration head a41ad585605292170f965a32eaf2eaa30b74a810 completed all 18 hosted checks successfully, including Docs Generation and both package integration lanes.

@morluto morluto left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve: narrow metadata dimension for MethodDef flags/impl-flags diffs, mirroring existing field-flags handling and firing before body-coverage decisions. Additive schema change with regenerated catalog/manifest. Tests assert changed/metadata with identical IL hash. Optional follow-up: surface flag values in item identity since it currently shows identical left/right. Checks green.

@morluto

morluto commented Oct 6, 2026

Copy link
Copy Markdown
Owner

Superseded by #705, which cherry-picks this change (plus 13 sibling fixes) onto current main with conflict resolution and regenerated catalogs. Closing to keep one reviewable merge unit.

@morluto morluto closed this Oct 6, 2026
@morluto

morluto commented Oct 7, 2026

Copy link
Copy Markdown
Owner

Thanks, @rudycelekli, for your work on “fix(dotnet): report observed method metadata changes.” I appreciate your contribution to REA.

@morluto morluto added the bug Something isn't working label Oct 14, 2026
@morluto morluto added the area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior label Nov 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: native Native analysis and decompilation, including Ghidra, IDA, and Hopper analysis behavior bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants