Skip to content

Replace #13146 TODO with resolution note - #13645

Merged
gnodet merged 1 commit into
masterfrom
fix/13146-remove-todo
Oct 22, 2026
Merged

gnodet merged 1 commit into
masterfrom
fix/13146-remove-todo

Conversation

@gnodet

@gnodet gnodet commented Oct 20, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Replace the TODO(#13146) in DefaultModelBuilder with a note explaining why no additional action is needed
  • Same-id repository shadowing from external-model profiles is already mitigated by REQUEST_DOMINANT merging in the dependency resolution path: the request's repositories always take precedence, the scope is limited to the dependency's own subtree, and there is no actionable fix for users beyond what already happens automatically

Closes #13146

🤖 Generated with Claude Code

Same-id repository shadowing from external-model profiles is already
mitigated by REQUEST_DOMINANT merging in the dependency resolution path.
No additional WARN/FAIL policy is needed.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>

@gnodet-bot gnodet-bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM. The claim that REQUEST_DOMINANT merging already neutralises same-id repository shadowing is correct: DefaultArtifactDescriptorReader always invokes the model builder with RepositoryMerging.REQUEST_DOMINANT, so repositoryFactory.aggregate() places the request's repositories as dominant — any same-id entry contributed by a dependency profile (including a shadowed central) is silently dropped before it can be used. The comment accurately reflects this and the scope (externalOrigin path only). Closing the TODO is appropriate.

This review was generated by an AI agent, Hermès on behalf of @gnodet.

@gnodet
gnodet merged commit 5ce3878 into master Oct 22, 2026
22 of 23 checks passed
@gnodet
gnodet deleted the fix/13146-remove-todo branch October 22, 2026 10:12
@github-actions github-actions Bot added this to the 4.2.0 milestone Oct 22, 2026
@github-actions

Copy link
Copy Markdown
Contributor

@gnodet Please assign appropriate label to PR according to the type of change.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[MNG] Warn or fail when an external-model profile repository shadows central

2 participants