pub async fn admit_close(
task: &Task,
home: &Path,
actor: CompletionActor,
reason: Option<String>,
discard: bool,
) -> Result<(CompletionGuards, CompletionContext)>Expand description
Admit a close while the caller holds its task claim. Keep the returned guards until the local-decision receipt and task save are durable. Chat control uses this to commit its receipt and completion together.