With miniscript it's impossible to do a round trips for many scripts, including ones used in LN. Thus, while miniscript can be used to detect public keys or their hashes, it can't be used for replacing keys with tweaked version. A new mechanism of deterministic key replacement must be proposed, that also has to take into an account that all copies of the key must be replaced with a tweaked version
With miniscript it's impossible to do a round trips for many scripts, including ones used in LN. Thus, while miniscript can be used to detect public keys or their hashes, it can't be used for replacing keys with tweaked version. A new mechanism of deterministic key replacement must be proposed, that also has to take into an account that all copies of the key must be replaced with a tweaked version