Rule 8 of 9 · Chapter III — Package & Ship
Ship managed solutions to any environment you don't own.
Why this rule exists
Unmanaged solutions merge into the target's default layer and become effectively un-uninstallable. Managed solutions keep a clean layer you can service and remove.
In practice
Export --managed for test and prod. Keep the unmanaged source in dev (and in source control via pac solution clone/sync), and treat the managed zip as a build artifact.
When it doesn't apply
Your own throwaway dev sandbox can take unmanaged imports — that is what it is for.
Related rules in this book
Sources
- Microsoft Learn — Managed and unmanaged solutions — Layering model behind this rule