Skip to main content

build_notification

Function build_notification 

Source
pub fn build_notification(
    entries: &[HumanInboxEntry],
    store_dir: &str,
    run_id: &str,
    secret: Option<&str>,
) -> WebhookNotification
Expand description

Builds the notification for one run’s pending inbox entries: a CLI-owned envelope (pointlockWebhook: 1, precedent: pointlockReport) around the R14 inbox DTO projections, with the local forensics path and the recovery hint (06 §4.2). Receivers deduplicate by each entry’s requestId — re-notification after another suspension is legal and expected (notify is idempotent).