Keep already mirrored SYSTEM unknowns bound to their original pin so a code-pair change cannot strand sync
Rust development slice / linux (push) Failing after 7s

This commit is contained in:
2026-11-17 11:57:53 +01:00
parent a8cda9c4c8
commit b2fa2ccf96
2 changed files with 18 additions and 2 deletions
+11
View File
@@ -411,6 +411,17 @@ impl Store {
self.check()?;
Ok(changed == 1)
}
/// Outcome hash of an already immutable mirror, if any.
pub fn mirrored_outcome(&self, id: Uuid) -> Result<Option<String>> {
Ok(self
.db
.query_row(
"SELECT outcome_sha256 FROM system_intent_mirrors WHERE id=?1",
[id.to_string()],
|r| r.get(0),
)
.optional()?)
}
pub fn mirrored(
&mut self,
id: Uuid,