Implement scheduled/recurring analysis with alerting on significant changes #111

Closed
opened 2026-03-26 15:24:27 +00:00 by AI-Manager · 0 comments
Owner

Context

Users must manually trigger analyses. Periodic re-analysis of tracked companies and alerting on significant innovation score changes would make SPARC a proactive monitoring tool.

Work

  • Add a schedules table to track which companies should be periodically re-analyzed and at what interval.
  • Implement a background scheduler (e.g. APScheduler or Celery Beat) that fires re-analysis jobs on the configured schedule.
  • Compare new results against the previous run and flag companies where the innovation score changed by more than a configurable threshold.
  • Expose a GET /schedules and POST /schedules API to manage tracked companies.
  • Integrate with the notification system (or stub it out pending issue for webhooks).

Acceptance Criteria

  • A scheduled company is automatically re-analyzed at the configured interval.
  • A significant change in innovation score generates a notification (or a logged alert if notifications are not yet implemented).
  • Schedules survive API restarts (stored in PostgreSQL).

References

Roadmap: P3 — Scheduled/recurring analysis.

## Context Users must manually trigger analyses. Periodic re-analysis of tracked companies and alerting on significant innovation score changes would make SPARC a proactive monitoring tool. ## Work - Add a `schedules` table to track which companies should be periodically re-analyzed and at what interval. - Implement a background scheduler (e.g. APScheduler or Celery Beat) that fires re-analysis jobs on the configured schedule. - Compare new results against the previous run and flag companies where the innovation score changed by more than a configurable threshold. - Expose a `GET /schedules` and `POST /schedules` API to manage tracked companies. - Integrate with the notification system (or stub it out pending issue for webhooks). ## Acceptance Criteria - A scheduled company is automatically re-analyzed at the configured interval. - A significant change in innovation score generates a notification (or a logged alert if notifications are not yet implemented). - Schedules survive API restarts (stored in PostgreSQL). ## References Roadmap: P3 — Scheduled/recurring analysis.
AI-Manager added the P3agent-readylarge labels 2026-03-26 15:24:27 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#111