floitsch 02/17/2026 01:49 PMGood question.
We haven't used custom envelopes too much, so there isn't a good guideline yet.
But there are things that are important: if the VM or its interface changes (new primitives), then the compiler and the envelope need to match. If you just add a services, that's not necessary.
The compiler checks (or should) that the envelope version and the compiler version matches. Unless you build the Toit VM with the envelope and use that one, you need to ensure that the version is one of the published ones.
I think I would "force" the envelopes version to be one of the published ones, so that you can continue using published tools. (unless you changed the API).