Does anyone know a reference that rigorously formulates the notion of a "stack of $D$-modules over a fixed smooth variety $X$"?
Also, naturally, one can ask the question of whether or not holonomic $D$-modules form an stack and that they form in particular an algebraic stack. It is known that $D$-modules themselves cannot form an algebraic stack.
Searching around, it seems the best I can find is Ben-Zvi's comments about gluing $D$-modules, but he does not go all the way to the point of saying that $D$-modules form a stack. He does mention how to define $D$-modules on stacks though which is nice, but not quite what I am seeking.
Edit: I was told by someone irl that this is known but never written down. The statement is that one can define the stack of $D$-modules over schemes on the 'etale site using Kashiwara's Theorem together with the fact that pullbacks and pushforwards of D-modules along 'etale morphisms behave nicely. So to me, the more interesting question would be when it is algebraic.