I wonder how long will the "curl my arbitrary script and pipe it to bash" will continue being a delivery method.
Not long. We are transitioning to your LLM curling an arbitrary markdown file and doing whatever it says.
There will always be people that need to install software that isn't available via package manager (or whatever other blessed source your platform of choice uses). Any solution you come up with will have the same caveat emptor as "curl | sh".
If it isn't still common practice 40 years from now (8/18/2066), I'll give the first person to challenge me and cite this comment $1 USD (or equivalent value in the One-World Order-issued omni-currency that we will probably be using by then).