agent: Remove wrapQuery, call setMeta directly