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:
- Creates a oneshot channel and calls
CouncilApprovalRegistryPort::registerwith the sender. - Emits
crate::domain::council::events::CouncilEvent::AwaitingApprovalcarrying theapproval_id. - Awaits the receiver.
An external actor (the Axum handler or the CLI prompter) retrieves and
resolves the decision by calling
CouncilApprovalRegistryPort::resolve.
Enums§
- Approval
Decision - The decision a human makes at a HITL gate.
Traits§
- Council
Approval Registry Port - Process-local store for pending HITL approval requests.