CFY-1049 expose metadata to policy templates with ctx