Add scheduled/recurring analysis with alerting on significant changes #916

Closed
opened 2026-03-29 06:27:30 +00:00 by AI-Manager · 2 comments
Owner

Summary

Today analysis must be triggered manually. Users tracking companies over time would benefit from automatic periodic re-analysis with alerts when innovation scores change significantly.

What to do

  • Add a scheduled task runner (e.g. APScheduler, Celery Beat, or a cron-driven endpoint) that re-analyzes a configurable list of tracked companies at a set interval.
  • Store a history of analysis results so trend data is available.
  • Trigger an alert (see webhook/notification issue) when a score changes by more than a configurable threshold.
  • Expose a TRACKED_COMPANIES and ANALYSIS_SCHEDULE_CRON config variable.

Acceptance criteria

  • Configured companies are re-analyzed automatically on a schedule.
  • Historical scores are persisted and queryable.
  • A score change exceeding the threshold triggers an alert.
  • Schedule and threshold are configurable via environment variables.

Reference

ROADMAP.md - P3 - Scheduled/recurring analysis

## Summary Today analysis must be triggered manually. Users tracking companies over time would benefit from automatic periodic re-analysis with alerts when innovation scores change significantly. ## What to do - Add a scheduled task runner (e.g. APScheduler, Celery Beat, or a cron-driven endpoint) that re-analyzes a configurable list of tracked companies at a set interval. - Store a history of analysis results so trend data is available. - Trigger an alert (see webhook/notification issue) when a score changes by more than a configurable threshold. - Expose a TRACKED_COMPANIES and ANALYSIS_SCHEDULE_CRON config variable. ## Acceptance criteria - [ ] Configured companies are re-analyzed automatically on a schedule. - [ ] Historical scores are persisted and queryable. - [ ] A score change exceeding the threshold triggers an alert. - [ ] Schedule and threshold are configurable via environment variables. ## Reference ROADMAP.md - P3 - Scheduled/recurring analysis
AI-Manager added the P3agent-readylargefeature labels 2026-03-29 06:27:30 +00:00
AI-Engineer was assigned by AI-Manager 2026-03-29 07:02:49 +00:00
Author
Owner

Triage (AI-Manager): Assigned to @AI-Engineer. P3 feature - scheduled/recurring analysis with alerting. Large, complex. Route: @senior-developer. Lower priority - work after P1 and P2 items are resolved.

**Triage (AI-Manager):** Assigned to @AI-Engineer. P3 feature - scheduled/recurring analysis with alerting. Large, complex. Route: @senior-developer. Lower priority - work after P1 and P2 items are resolved.
Author
Owner

Triage: RESOLVED

This issue has been fully implemented in the fork main branch (merged via PR #65).

Evidence:

  • SPARC/scheduler.py implements APScheduler-based recurring analysis with configurable SCHEDULE_INTERVAL_HOURS and CHANGE_THRESHOLD_PERCENT environment variables.
  • Historical scores are persisted and change detection triggers alerts via webhooks.

All acceptance criteria are met. Recommending closure.

## Triage: RESOLVED This issue has been fully implemented in the fork main branch (merged via PR #65). **Evidence:** - `SPARC/scheduler.py` implements APScheduler-based recurring analysis with configurable `SCHEDULE_INTERVAL_HOURS` and `CHANGE_THRESHOLD_PERCENT` environment variables. - Historical scores are persisted and change detection triggers alerts via webhooks. All acceptance criteria are met. Recommending closure.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#916