I saved an alchemist and he told me how to imbue armors. So I tried to imbue a nice leather armor artifact that I found with an agate. Indeed, I expected the stat boost to stack and, instead, the agate boost just replaced the previous bonus, ruining the artifact

Is it a bug or an intended behavior?