Expand description
Phase 3.6 approval channels.
A channel is a delivery mechanism that gets an ApprovalRequest in
front of a human. The kernel treats channels as fire-and-forget
sinks: on failure the request stays in the approval store and can
still be fetched via GET /approvals/pending, matching the
fail-closed rule in the HITL protocol.
Two channels ship in this phase:
WebhookChannel– blocking HTTP POST to a configured URL. Production integrations wire this into their own dashboard or ticketing system.RecordingChannel– captures every dispatch in an in-memory ring so tests (and host adapters) can assert that a dispatch fired without standing up an HTTP listener.
Structs§
- Recording
Channel - In-memory channel that captures every dispatched
ApprovalRequestfor later inspection. Useful in tests and for theapi-polldispatch mode (where the “channel” is really the local store itself). - Webhook
Channel - Blocking HTTP webhook channel. Uses
ureq, which is already in the kernel’s dependency tree. - Webhook
Payload - Payload shape delivered by
WebhookChannel. Stable so receivers can parse it without pulling in kernel types.