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] apm pack --format plugin for a multi-target producer ships one primitive in several renderings, and a Claude consumer keeps the wrong one #3686
area/distributionInstallers (curl/PowerShell/Brew/Scoop), self-update, devcontainer, codespaces.pillar/producePillar: author, package, publish and patch with confidencestatus/acceptedHuman scope approval; verify the issue's approval record and review contact before work.type/bugSomething does not work as documented.
When the producer's apm.yml targets more than one runtime (for example claude and copilot) and a dependency has an agent and an applyTo-scoped instruction, the plugin bundle contains both renderings: agents/reviewer.agent.md and agents/reviewer.md, instructions/x.instructions.md and instructions/x.md (plus .mdc with cursor). Installing the bundle into a fresh Claude project prints "Skipped .claude/rules/x.md: file exists with different content" and keeps the Copilot rendering, so a **/*.py-scoped instruction loses its scoping in Claude. The pack output already says bundles are target-agnostic.
To reproduce
Producer targets [claude, copilot], depends on a package with an agent and an instruction with applyTo: "**/*.py".
apm pack --format plugin, then install the bundle into a fresh Claude project.
Expected behavior
One rendering per primitive in the bundle, and the consumer gets the correct target rendering.
Actual behavior
Duplicate renderings, a collision warning, and the wrong rule kept.
Options
Keep only the Claude rendering per primitive stem.
Build plugin components from the source primitive once (target-agnostic).
Deterministic stem precedence with a warning.
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.
area/distributionInstallers (curl/PowerShell/Brew/Scoop), self-update, devcontainer, codespaces.pillar/producePillar: author, package, publish and patch with confidencestatus/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 12, 2026
Decision (maintainer): deferred to 0.37.0.
danielmeppiel commentedon Nov 21, 2026
Moved from 0.38.0 to 0.39.0 in the 0.38 release cut (2026-11-21). Scope and acceptance are unchanged.
18 remaining items
fix(#3686): native rule renderings collide; split services.py under i…
fix(#3686): pick renderings by primitive identity and plugin format
fix(#3686): Grok Build instructions keep their source name in pack an…
test(install): red-first bundle cell for numeric frontmatter keys (#3686
fix(install): scan decoded frontmatter with non-string keys (#3686)
test(install): red-first cell for a hidden character in a YAML set (#…
fix(install): scan YAML sets and non-string keys as decoded text (#3686)
Merge pull request #4693 from microsoft/danielmeppiel-fix-3686-pack-p…