If you can define the things you don't want it to do with mathematical precision, there is a trivial way to prevent it from doing them: your definition encodes a selector that you can apply to its output.
The real problem: you don't really know what exactly you don't want it to do. How do you suppose the LLM could?
Practically: when you don't want your model to tell people about XYZ, don't tell your model about XYZ in the first place, or don't let your model talk to people.
Just like with humans, the idea of "absolute certainty" is anathema to the principle of their function.
> Practically: when you don't want your model to tell people about XYZ, don't tell your model about XYZ in the first place, or don't let your model talk to people.
The problem is that this drastically reduces the potential usefulness of agents. For example, this means you can't safely deploy an agent that acts like a customer support person, since that agent must take input from the outside but also have access to information that people on the outside must not have access to.