Skip to main content

accept

Function accept 

Source
pub fn accept(
    memories: &MemoryRepo<'_>,
    candidate_id: &MemoryId,
    updated_at: DateTime<Utc>,
    audit: &MemoryAcceptanceAudit,
    policy: &PolicyDecision,
    proof_closure: &ProofClosureReport,
) -> LifecycleResult<MemoryId>
Expand description

Accept a previously persisted candidate by id after validating stored lineage and composing the ADR 0026 acceptance policy.

proof_closure MUST be ProofState::FullChainVerified; the lifecycle layer refuses with LifecycleError::ProofClosureRefusal otherwise and no store boundary call is made. The stable invariant LIFECYCLE_ACCEPT_PROOF_CLOSURE_INVARIANT documents the refusal.