Skip to content

compliance-timeline-scheduler#911

Open
Void-Anvesha wants to merge 2 commits into
SdSarthak:mainfrom
Void-Anvesha:feature/analytics-compliance-timeline-scheduler
Open

compliance-timeline-scheduler#911
Void-Anvesha wants to merge 2 commits into
SdSarthak:mainfrom
Void-Anvesha:feature/analytics-compliance-timeline-scheduler

Conversation

@Void-Anvesha
Copy link
Copy Markdown

Summary

Closes #842

This PR introduces historical compliance tracking through automated daily compliance snapshots and timeline analytics. A background scheduler now captures and stores compliance metrics for each AI system once per day, enabling long-term monitoring and trend analysis.

Additionally, a new compliance timeline analytics endpoint has been added to retrieve historical compliance data for configurable date ranges. The dashboard analytics experience is enhanced with a compliance timeline visualization, allowing users to track compliance trends, identify regressions, and analyze historical performance over time.

Key Changes

  • Added automated daily compliance snapshot scheduler

    • Runs every 24 hours
    • Captures and stores timestamped compliance metrics
    • Prevents duplicate snapshots for the same date
  • Added compliance timeline analytics endpoint

    • GET /analytics/compliance-timeline?system_id={id}&days=30
    • Supports configurable date ranges
    • Returns timeline-ready historical compliance data
    • Includes ownership and authorization validation
  • Enhanced analytics dashboard

    • Added compliance score trend visualization
    • Added daily compliance history view
    • Added date-range filtering support
    • Added historical compliance performance summaries

This feature improves auditability, enables compliance trend analysis, and provides greater visibility into the long-term compliance health of AI systems.

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Refactor
  • Tests
  • Infra / CI

Checklist

  • I have read CONTRIBUTING.md
  • My code follows the project style (PEP 8 for Python, ESLint for TS)
  • I have added/updated tests where relevant
  • pytest backend/tests/ passes locally
  • I have not committed .env or any secrets
  • I have updated documentation if needed

Screenshots (if UI change)

@Void-Anvesha Void-Anvesha changed the title compliance-timeline-scheduker compliance-timeline-scheduler Jun 1, 2026
@Void-Anvesha
Copy link
Copy Markdown
Author

Added feature for analytics-compliance-timeline-scheduler

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Compliance Analytics Timeline and Automated Daily Snapshot Scheduler

1 participant