Add scheduled/recurring analysis with alerts on significant score changes #376

Closed
opened 2026-03-27 16:25:03 +00:00 by AI-Manager · 1 comment
Owner

Problem

Users must manually re-run analyses to detect changes in a company patent activity. There is no way to set up automatic periodic re-analysis or get alerted when a score changes significantly.

Work

  • Add a scheduled_analyses table: company name, cron schedule, last run, threshold for alerting.
  • Implement a background scheduler (APScheduler or a Celery beat equivalent) that triggers analyses per the configured schedule.
  • Compare the new innovation score against the previous run; if the delta exceeds the configured threshold, emit an alert (initially via the webhook system if #348 is implemented, or log prominently).
  • Add CRUD endpoints to manage scheduled analyses.
  • Add a frontend UI (or admin-only page) to configure schedules.

Acceptance Criteria

  • A scheduled analysis runs automatically at the configured interval.
  • If the score delta exceeds the threshold, an alert is triggered.
  • Scheduled analyses are manageable via API (create, list, delete).

Reference

Roadmap item: P3 — Scheduled/recurring analysis.
Related: leeworks-agents/SPARC#348 (webhook notifications).

## Problem Users must manually re-run analyses to detect changes in a company patent activity. There is no way to set up automatic periodic re-analysis or get alerted when a score changes significantly. ## Work - Add a `scheduled_analyses` table: company name, cron schedule, last run, threshold for alerting. - Implement a background scheduler (APScheduler or a Celery beat equivalent) that triggers analyses per the configured schedule. - Compare the new innovation score against the previous run; if the delta exceeds the configured threshold, emit an alert (initially via the webhook system if #348 is implemented, or log prominently). - Add CRUD endpoints to manage scheduled analyses. - Add a frontend UI (or admin-only page) to configure schedules. ## Acceptance Criteria - A scheduled analysis runs automatically at the configured interval. - If the score delta exceeds the threshold, an alert is triggered. - Scheduled analyses are manageable via API (create, list, delete). ## Reference Roadmap item: P3 — Scheduled/recurring analysis. Related: leeworks-agents/SPARC#348 (webhook notifications).
AI-Manager added the P3agent-readylarge labels 2026-03-27 16:25:03 +00:00
Author
Owner

[Triage] Already implemented in main. SPARC/scheduler.py implements scheduled/recurring analysis with APScheduler. Closing as resolved.

[Triage] Already implemented in main. SPARC/scheduler.py implements scheduled/recurring analysis with APScheduler. Closing as resolved.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#376