Skip to content

feat: query AI checkpoint recovery candidates#1969

Open
svarlamov wants to merge 1 commit into
mainfrom
feat/ai-recovery-ckpts
Open

feat: query AI checkpoint recovery candidates#1969
svarlamov wants to merge 1 commit into
mainfrom
feat/ai-recovery-ckpts

Conversation

@svarlamov

Copy link
Copy Markdown
Member

Summary

  • add one batched, bounded lookup for nearby AI checkpoint metrics
  • retain original ai_agent and ai_tab checkpoints while excluding human, mock_ai, malformed, and recovery-generated events
  • reuse the existing metrics_event_ts_kind index; no schema or index migration
  • parse checkpoint path, session, tool/model, repository, and base-commit metadata for the recovery solver in the child PR

Tests

  • filter and metadata parsing coverage, including zero-addition checkpoints
  • EXPLAIN QUERY PLAN assertion that the lookup uses metrics_event_ts_kind without a metrics-table scan

Copy link
Copy Markdown
Member Author

@svarlamov
svarlamov marked this pull request as ready for review July 23, 2026 15:48

@devin-ai-integration devin-ai-integration Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

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