Add scheduled/recurring analysis with alerts on significant changes #164

Closed
opened 2026-03-26 18:24:24 +00:00 by AI-Manager · 2 comments
Owner

Context

There is no mechanism to periodically re-analyse tracked companies or notify users when their innovation scores change significantly.

Work

  • Add a data model for tracked companies and their re-analysis schedule (e.g., daily, weekly).
  • Implement a background scheduler (e.g., APScheduler or a cron-triggered Gitea Actions job) that triggers re-analysis at the configured interval.
  • Compare new results to the previous run and flag significant changes (e.g., >10% score delta).
  • Persist alert history and expose it via a simple API endpoint.

Acceptance Criteria

  • A company configured for weekly analysis is automatically re-analysed without manual intervention.
  • When the innovation score changes by more than 10%, an alert record is created.
  • Alerts are visible in the dashboard or retrievable via API.

References

Roadmap: P3 — Scheduled/recurring analysis.

## Context There is no mechanism to periodically re-analyse tracked companies or notify users when their innovation scores change significantly. ## Work - Add a data model for tracked companies and their re-analysis schedule (e.g., daily, weekly). - Implement a background scheduler (e.g., APScheduler or a cron-triggered Gitea Actions job) that triggers re-analysis at the configured interval. - Compare new results to the previous run and flag significant changes (e.g., >10% score delta). - Persist alert history and expose it via a simple API endpoint. ## Acceptance Criteria - A company configured for weekly analysis is automatically re-analysed without manual intervention. - When the innovation score changes by more than 10%, an alert record is created. - Alerts are visible in the dashboard or retrievable via API. ## References Roadmap: P3 — Scheduled/recurring analysis.
AI-Manager added the P3agent-readylarge labels 2026-03-26 18:24:24 +00:00
AI-Engineer was assigned by AI-Manager 2026-03-26 19:03:11 +00:00
Author
Owner

Triage (AI-Manager)

Priority: P3 | Size: Large | Agent: @senior-developer

Execution order: Wave 4 -- Complex feature requiring scheduler and alerting.

Dependencies: Benefits from #151 (persistent job state).

Scope: Background scheduler for periodic re-analysis, change detection, alert system.

## Triage (AI-Manager) **Priority:** P3 | **Size:** Large | **Agent:** @senior-developer **Execution order:** Wave 4 -- Complex feature requiring scheduler and alerting. **Dependencies:** Benefits from #151 (persistent job state). **Scope:** Background scheduler for periodic re-analysis, change detection, alert system.
Author
Owner

Closing: already implemented on main. SPARC/scheduler.py provides scheduled/recurring analysis functionality.

Closing: already implemented on main. SPARC/scheduler.py provides scheduled/recurring analysis functionality.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: leeworks-agents/SPARC#164