Skip to content

Fix latest session selection by start time#80

Merged
Siddhant-K-code merged 2 commits into
Siddhant-K-code:mainfrom
grp06:fix-latest-session-started-at
May 20, 2026
Merged

Fix latest session selection by start time#80
Siddhant-K-code merged 2 commits into
Siddhant-K-code:mainfrom
grp06:fix-latest-session-started-at

Conversation

@grp06
Copy link
Copy Markdown
Contributor

@grp06 grp06 commented May 19, 2026

Summary

  • Sort TraceStore sessions by started_at descending with a session ID tie-breaker.
  • Add a latest-session metadata helper and use it for freshness checks.
  • Update the storage ADR and add regression coverage for chronological ordering plus malformed metadata skipping.

Tests

  • PYTHONPATH=src python -m unittest tests.test_store tests.test_freshness -v
  • PYTHONPATH=src python -m unittest discover -s tests -v
  • Manual proof script for opposing session ID and timestamp ordering

grp06 and others added 2 commits May 19, 2026 12:33
@Siddhant-K-code Siddhant-K-code merged commit ebb97d9 into Siddhant-K-code:main May 20, 2026
4 checks passed
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.

2 participants