> Its also anything produced by a artistic production process e.g. in software- aka build-artifacts or documentation.
You can drop "artistic" from that, as it comes with a connotation that doesn't necessarily apply. The first part of the term comes from the more general meaning of ars/art, which would nearly translate into English as "craft".
If you follow the (Latin) origin it is even wider, in Italian artifact is artefatto where while the art (arte) part is as you say, the fatto comes from fare (Latin facere) which translate to "made".
And we say "fatto ad arte" to mean that it is "intentionally made" i.e. artefatto is something that doesn't happen normally or naturally and/or does not exist in nature.