[Question] Theory of Causal Models with Dynamic Structure?

I’m looking for any work done involving causal models with dynamic structure, i.e. some variables in the model determine the structure of other parts of the model.

I know some probabilistic programming languages support dynamic structure (e.g. the pyro docs mention it directly at one point). And of course one can always just embed the dynamic structure in a static structure (i.e. a model of any general-purpose computer), although that’s messy enough that I’d expect it to create other problems.

I haven’t found much by quick googling (too many irrelevant things use similar terms) so I’d appreciate any pointers at all. At this point I’ve found basically-zero directly relevant work other than PPLs, and I don’t even know of any standard notation.