How can I set up a pipeline to run stage1 on input1 and stage2 on input2 (with a stage3 that takes both the prior outputs as input)? I'd like the behavior to be governed by positional order. Swapping the order of the two inputs would be a valid, but different, operation.
The files are of the same type, so there's not a convenient way to differentiate using extensions. Using $input2 in a stage makes it expect two inputs internal to that stage alone.
Passing names as variables loses the fact that these are input files, so there's no dependency tracking.