pub fn record_deployment(
conn: &Connection,
entry_id: &str,
field: &str,
target_id: &str,
applied_sha256: &str,
at: &str,
ok: bool,
result: &str,
run_id: Option<&str>,
) -> Result<bool, String>Expand description
Records what a node reported for one secret on one target (R12): the generation that is active
now, the hash that was applied, and the outcome. A success sets applied_*; a failure keeps
what an earlier success recorded and changes only the outcome, so “the last good deployment” is
never lost to a failed retry. A secret with no active generation (the vault has not recorded
one) is skipped and false returned.