Provenance and logging

TBD