Skip to content

feat: Phase 3 temporal features - bi-temporal indexing, ChangeEvent, history API/CLI#51

Closed
linhdmn wants to merge 1 commit into
mainfrom
feat/v2-temporal-features
Closed

feat: Phase 3 temporal features - bi-temporal indexing, ChangeEvent, history API/CLI#51
linhdmn wants to merge 1 commit into
mainfrom
feat/v2-temporal-features

Conversation

@linhdmn
Copy link
Copy Markdown
Member

@linhdmn linhdmn commented May 18, 2026

Summary

  • Enable Graphiti bi-temporal indexing with valid_from, valid_to, created_at, updated_at fields
  • Implement ChangeEvent model for tracking element changes
  • Add temporal query API endpoints: GET /api/v2/history, GET /api/v2/snapshot
  • Add leankg history CLI command with --element, --as-of, --from, --to, --env, --limit, --snapshot options

Test plan

  • cargo build --release passes
  • cargo test --lib - 352 passed
  • cargo run --release -- history --help works
  • API endpoints respond correctly

…history API/CLI

- Add bi-temporal timestamps (valid_from, valid_to, created_at, updated_at) to CodeElement and Relationship
- Add ChangeEvent model for tracking code element changes over time
- Add temporal query functions: query_change_history, query_element_snapshot, query_all_snapshots
- Add REST API endpoints: /api/v2/history and /api/v2/snapshot
- Add `leankg history` CLI command with --element, --as-of, --from, --to, --snapshot options
- Add migration 007 for bi-temporal schema support
- Add chrono dependency for timestamp formatting
@linhdmn linhdmn force-pushed the feat/v2-temporal-features branch from e7efa7e to 5d68814 Compare May 21, 2026 07:23
@linhdmn linhdmn closed this May 21, 2026
@linhdmn linhdmn deleted the feat/v2-temporal-features branch May 21, 2026 08: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