Restore decision audit context identity binding

This commit is contained in:
Meta Vens 2026-08-21 21:46:28 +02:00
commit 173d6a45d7

View file

@ -782,6 +782,7 @@ fn audit_decision_context_from_cache(
cache: &CultCache,
context: &EpiphanyDecisionContext,
) -> Result<Option<EpiphanyDecisionAuditProjection>> {
let context_id = context.context_id.as_str();
let basis = cache
.get::<EpiphanyReasoningBasis>(&context.basis_id)?
.ok_or_else(|| anyhow!("decision audit context lost its reasoning basis"))?;