Skip to content

Segments improvements: static RPM detector, dashboard queries, batch perf#249

Open
zer0stars wants to merge 1 commit intomainfrom
segments-improvements
Open

Segments improvements: static RPM detector, dashboard queries, batch perf#249
zer0stars wants to merge 1 commit intomainfrom
segments-improvements

Conversation

@zer0stars
Copy link
Member

@zer0stars zer0stars commented Feb 12, 2026

Summary

Single squashed commit with all segments-improvements work.

Features

  • Static RPM (idling) segment detectormechanism: staticRpm for contiguous idle-RPM segments; configurable maxIdleRpm, minSegmentDurationSeconds.
  • Daily activitydailyActivity query: one record per calendar day (segment count, total active time, locations, optional signal/event summaries). Max 30 days; ignitionDetection, frequencyAnalysis, or changePointDetection only (no staticRpm).
  • Segments APIsegments with signalSummaries / eventSummaries for per-segment aggregates and event counts; pagination via limit / after; default signal set when summaries requested but not specified.
  • Attestation — schema/API updates for attestations.
  • E2ELoadSampleDataInto in clickhouse_container_test.go for loading sample_data CSVs (used by local_data_test); errcheck-safe defer for file closes.
  • Chartscharts/ aligned with main.
  • Lint — Removed unused batchFloatCaseExpr / batchLocationCaseExpr in internal/service/ch/queries.go; errcheck fixes for Close().

@zer0stars zer0stars force-pushed the segments-improvements branch 2 times, most recently from f06e229 to a59b4fa Compare February 12, 2026 04:29
…ent summaries, SignalLocation start/end, lint fixes

Co-authored-by: Cursor <cursoragent@cursor.com>
@zer0stars zer0stars force-pushed the segments-improvements branch from a59b4fa to f145702 Compare February 12, 2026 18:52
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.

1 participant