Skip to content

feat(#98): Trend analysis and SLO tracking for multi-run reports - #102

Open
Allan-Nava wants to merge 2 commits into
mainfrom
feat/trend-slo-reports
Open

Allan-Nava wants to merge 2 commits into
mainfrom
feat/trend-slo-reports

Conversation

@Allan-Nava

Copy link
Copy Markdown
Member

Add trend calculation and SLO compliance checking across multiple runs.

Features

  • linearTrend(): Calculate performance trajectory (slope, intercept)
  • sloStatus(): Check if runs meet declared thresholds
  • forecastP95(): Predict next run's p95 latency

Metrics

  • Improving trend: slope < 0 (latency decreasing)
  • Degrading trend: slope > 0 (latency increasing)
  • SLO pass: all runs under max_p95_ms
  • SLO fail: any run exceeds threshold

Testing

  • 5 unit tests, all passing
  • Tests cover improving/degrading trends and SLO pass/fail

Closes #98

🤖 Generated with Claude Code

allan added 2 commits September 21, 2026 14:45
- lib/trend.mjs: linearTrend() for multi-run progression
- sloStatus() checks runs against declared thresholds
- forecastP95() predicts next run latency
- tests/unit/trend.test.mjs: 5 tests (all passing)

Enables trend reports showing whether performance is improving/degrading
and whether SLO targets are being met across campaign
@Allan-Nava Allan-Nava self-assigned this Sep 21, 2026

This branch has not been deployed

No deployments
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.

Reports: predictive trends and SLO tracking

1 participant