Repository navigation
refactor(domain): move the .NET metadata readers into src/domain/managed - #11544
Merged
Merged
Conversation
Codex Review Summary: ❌ FailedThis 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. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Contributor
[Low impact] This refactor appears safe to merge. SummaryMoves 17 .NET metadata readers and three tests into
Diagram%%{init: {'theme': 'neutral'}}%%
flowchart LR
A["Artifact inspection"] --> D["Shared domain readers"]
N[".NET inspection adapters"] --> D
D --> L["Metadata layout"]
D --> B["Shared memory budget"]
D --> F["Read failures and partial results"]
Reviews (3) · Last reviewed commit: "Merge remote-tracking branch 'origin/mai..." · Reviewed by Greptile |
…ed-metadata-readers-domain # Conflicts: # scripts/lib/module-layers.baseline.json # tests/conformance/providers/managed/managedNativeVerification.test.ts
This was referenced Nov 15, 2026
11 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
Moves the .NET (ECMA-335) metadata readers from
src/dotnet/intosrc/domain/managed/, usinggit mvand specifier rewrites. Each file's content is unchanged apart from its relative imports.Moved (17 modules, renamed to the domain lower-camel convention; three tests move with their modules):
ManagedMetadataLayout,ManagedMetadataRowSizes,ManagedMetadataHeaps(+ test),ManagedMetadataInventory,ManagedMetadataInventoryRows;ManagedTypeDefinitionRows,ManagedTypeMemberLists,ManagedTypeNesting,ManagedTypeReferences,ManagedSignatureTypeNames(+ test);ManagedMemberInspectorCore,ManagedMemberOwnership,ManagedMemberPointers,ManagedMemberReferenceRows;ManagedPeReader,ManagedDecodeBudget(+ test) andManagedReaderFailure.The set is the full closure of what the artifacts provider imports (
DesktopFileInspectionreads the CLI metadata layout, assembly reference names and the reader failure). Every file in it depends only on domain modules and on other files in the set.artifacts -> dotnet(3) leaves thecrossProviderbaseline.Refs #11359. Part of plan W9. This was waiting for #10905, which has landed.
Problem and expected behavior
Artifacts read .NET metadata through the dotnet provider's internals. Expected: I/O-free format readers live in domain next to the other managed facts (
domain/managed/), and both providers import them inward, as for native in #11482.Change and scope
ManagedStaticProvider, snapshot, comparison and inspection adapters) import the readers from domain.cli-option-text-outside-cliandraw-buffer-readentries with the same counts. The parser-folder guards already coversrc/domain/managed/.Not included: other dotnet modules. Nothing outside dotnet imports them.
Contract and boundary impact
src/domain/managed. No behaviour change.docs/public/product-catalog.json), package, or installation impact: none.Expected effects (check known effects; use documentation-only on its own).
Unchecked items do not establish absence; leave uncertainties visible.
Evidence and regression coverage
Tests added or updated: specifier updates only; three tests move with their modules.
Base reproduction or other evidence:
node scripts/verify-module-boundaries.mjs --shrink-layer-baselinereportedartifacts -> dotnet: 0, baseline 3.User-visible CLI/MCP output (if applicable): none.
Remaining proof gaps: none.
Observed, derived, and inferred claims remain distinguishable.
Artifact identity, source provenance, and failed attempts remain preserved.
Unsupported, incomplete, unavailable, or uncertain outcomes remain visible.
Validation performed
npm run check:fast: passed, including the architecture guards.node scripts/verify-module-boundaries.mjs: passed after lowering the baseline.npm run test:focused --on the 22 changed test files: 747 passed, 1 skipped (13 s).npm run test:focused -- tests/boundary/filesystem/desktopApplication.test.ts tests/conformance/formats/mzPeAdmission.test.ts: 94 passed, 1 skipped.Compatibility, safety, and release
This is a pure move (
git mv, specifier rewrites and baseline re-keys), so the squash commit goes in.git-blame-ignore-revsafter merge.Author readiness
Human owner:
Before merge
type(scope): outcome.