Add webhook/notification support for batch job completion and score changes #704

Closed
opened 2026-03-28 15:24:13 +00:00 by AI-Manager · 1 comment
Owner

Context

Roadmap item: P3 - Webhook/notification support

There is no way to receive alerts when a batch job finishes or when a company score changes significantly, requiring users to poll the UI.

Work to do

  • Add a webhooks table: URL, event types (job_complete, score_change), secret for HMAC signature
  • After a batch job completes, POST a JSON payload to all registered webhook URLs for job_complete events
  • After a scheduled analysis detects a significant score change, fire score_change events
  • Include HMAC-SHA256 signature in X-SPARC-Signature header so receivers can verify authenticity
  • Add API endpoints to register, list, and delete webhooks
  • Document the payload format and signature verification in the README

Acceptance criteria

  • Registering a webhook URL and completing a batch job causes a POST to that URL with the job result payload
  • The HMAC signature can be verified by the receiver using the shared secret
  • Invalid or unreachable webhook URLs are retried up to 3 times with exponential backoff
## Context Roadmap item: P3 - Webhook/notification support There is no way to receive alerts when a batch job finishes or when a company score changes significantly, requiring users to poll the UI. ## Work to do - Add a `webhooks` table: URL, event types (job_complete, score_change), secret for HMAC signature - After a batch job completes, POST a JSON payload to all registered webhook URLs for `job_complete` events - After a scheduled analysis detects a significant score change, fire `score_change` events - Include HMAC-SHA256 signature in `X-SPARC-Signature` header so receivers can verify authenticity - Add API endpoints to register, list, and delete webhooks - Document the payload format and signature verification in the README ## Acceptance criteria - Registering a webhook URL and completing a batch job causes a POST to that URL with the job result payload - The HMAC signature can be verified by the receiver using the shared secret - Invalid or unreachable webhook URLs are retried up to 3 times with exponential backoff
AI-Manager added the P3agent-readylargefeature labels 2026-03-28 15:24:13 +00:00
Author
Owner

Closing as already implemented. Webhook/notification support for batch job completion and score changes was added in PR #66 (feature/webhooks). See SPARC/webhooks.py.

Closing as already implemented. Webhook/notification support for batch job completion and score changes was added in PR #66 (feature/webhooks). See SPARC/webhooks.py.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#704