Module council_approvals

Module council_approvals 

Source
Expand description

Port trait for the orchestrator approval registry.

The approval registry is a process-local store that pairs an approval_id with a tokio::oneshot::Sender<ApprovalDecision>. When the executor reaches a HITL gate it:

  1. Creates a oneshot channel and calls CouncilApprovalRegistryPort::register with the sender.
  2. Emits crate::domain::council::events::CouncilEvent::AwaitingApproval carrying the approval_id.
  3. Awaits the receiver.

An external actor (the Axum handler or the CLI prompter) retrieves and resolves the decision by calling CouncilApprovalRegistryPort::resolve.

Enums§

ApprovalDecision
The decision a human makes at a HITL gate.

Traits§

CouncilApprovalRegistryPort
Process-local store for pending HITL approval requests.