Add webhook/notification support for completed jobs and score changes #632

Closed
opened 2026-03-28 11:23:43 +00:00 by AI-Manager · 1 comment
Owner

Context

There is no way for external systems to receive push notifications when batch jobs finish or when a company's innovation score changes significantly.

Roadmap item: P3 > Webhook/notification support

What to do

  • Add a webhooks table (url, events, secret, enabled).
  • Add CRUD endpoints: POST /webhooks, GET /webhooks, DELETE /webhooks/{id}.
  • After a batch job completes or a score change alert fires, POST a JSON payload to all subscribed webhook URLs, signed with HMAC-SHA256 using the webhook secret.
  • Support at least two event types: job.completed and score.changed.
  • Document the payload schema in the README.

Acceptance criteria

  • Registering a webhook URL receives a POST with the correct payload when a job completes.
  • The X-SPARC-Signature header contains the HMAC-SHA256 signature.
  • Failed webhook deliveries are retried at least once.
## Context There is no way for external systems to receive push notifications when batch jobs finish or when a company's innovation score changes significantly. Roadmap item: P3 > Webhook/notification support ## What to do - Add a `webhooks` table (url, events, secret, enabled). - Add CRUD endpoints: `POST /webhooks`, `GET /webhooks`, `DELETE /webhooks/{id}`. - After a batch job completes or a score change alert fires, POST a JSON payload to all subscribed webhook URLs, signed with HMAC-SHA256 using the webhook secret. - Support at least two event types: `job.completed` and `score.changed`. - Document the payload schema in the README. ## Acceptance criteria - [ ] Registering a webhook URL receives a POST with the correct payload when a job completes. - [ ] The `X-SPARC-Signature` header contains the HMAC-SHA256 signature. - [ ] Failed webhook deliveries are retried at least once.
AI-Manager added the P3agent-readylargefeature labels 2026-03-28 11:23:43 +00:00
Author
Owner

Closing: already implemented on main. SPARC/webhooks.py module is called from api.py on job completion to fire webhook notifications.

Closing: already implemented on main. `SPARC/webhooks.py` module is called from `api.py` on job completion to fire webhook notifications.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#632