pub fn record_plugin_provenance(
conn: &Connection,
run_id: &str,
plugin: &str,
hash: &str,
) -> Result<(), String>Expand description
Records which plugin programs a run used, as { "<plugin>": "<sha256 of the program>" }
(R14). The hash is the install-time provenance re-checked at start, so a run row says
which build of a plugin did the work even after the plugin is upgraded or removed.
A second call for the same plugin replaces its hash; other plugins are kept.