selfSendApprovalDelivery is the HITL-gated counterpart of performSelfSend: it writes ONLY the inbound row (via loopback.DeliverInbound) and returns an identity.SendResult shaped for ApproveAndSend's send callback. The pre-existing held outbound row is finalized to status=sent by ApproveAndSend itsel
( ctx context.Context, agent *identity.AgentIdentity, req outbound.SendRequest, )
| 123 | // Operator-visible symptom: a "self-message" inbox row with no matching |
| 124 | // status=sent outbound row. |
| 125 | func (a *API) selfSendApprovalDelivery( |
| 126 | ctx context.Context, |
| 127 | agent *identity.AgentIdentity, |
| 128 | req outbound.SendRequest, |
| 129 | ) (identity.SendResult, error) { |
| 130 | return loopback.DeliverInbound(ctx, a.store, agent, req, a.fromDomain) |
| 131 | } |
no test coverage detected