bakery: add caveat id to third party checker function