If only we could make something like that

But now we would need each script to independently do their own caching, which isn’t all bad. At least you have more cross runner compatibility and resilience

Wireit really is that. The script declares dependencies and input, Wireit caches based on the direct inputs and dependency outputs.