The following model will ignore the fact v is a derived variable from data and treat v as a random variable. This is a known limitation of DynamicPPL. I am opening this issue to track it and discuss ideas on how to fix/disallow it.
@model function demo(y, sigma)
m ~ Normal(0, sigma)
v = y
v ~ Normal(m, sigma)
end