Skip to content

feat: memory aging with auto-cleanup policy - #70

Merged
ajianaz merged 1 commit into
developfrom
feat/memory-aging-cleanup
May 30, 2026
Merged

ajianaz merged 1 commit into
developfrom
feat/memory-aging-cleanup

Conversation

@ajianaz

@ajianaz ajianaz commented May 29, 2026

Copy link
Copy Markdown
Collaborator

Closes #44

Changes

  • ****: Add (total, hot, warm, cold, never_accessed) and (deleted count)
  • ****: Add (SQL query with age/access filters), (delete matching rows),
  • ****: Add , , — cleanup also removes from vector index
  • ****: Add subcommand with , , variants

CLI shape

uteke aging status
uteke aging preview [--older-than-days 180] [--max-access-count 1]
uteke aging cleanup [--older-than-days 180] [--max-access-count 1] [--yes]

Verification

  • cargo check --workspace
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo test --workspace (15 tests pass)
  • cargo fmt --all -- --check

@coderabbitai

coderabbitai Bot commented May 29, 2026 •

Copy link
Copy Markdown

Warning

Review limit reached

@ajianaz, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 57 minutes and 57 seconds. Learn how PR review limits work.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 3006471a-06de-47a8-a5ba-01d84d52483c

📥 Commits

Reviewing files that changed from the base of the PR and between aecc1ed and 5c0406f.

📒 Files selected for processing (4)
  • crates/uteke-cli/src/main.rs
  • crates/uteke-core/src/lib.rs
  • crates/uteke-core/src/memory/store.rs
  • crates/uteke-core/src/memory/types.rs
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/memory-aging-cleanup

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Add aging commands: status, preview (dry-run), cleanup.

- AgingStatus type: total, hot, warm, cold, never_accessed counts
- CleanupResult type: deleted count
- Store: find_aged(), cleanup_aged(), count_never_accessed()
- Uteke: aging_status(), aging_preview(), aging_cleanup()
- CLI: uteke aging status|preview|cleanup subcommands
- aging_cleanup removes entries from vector index (like forget)
- cleanup requires --yes confirmation flag

Closes #44
@ajianaz
ajianaz force-pushed the feat/memory-aging-cleanup branch from 606f50e to 5c0406f Compare May 30, 2026 00:05
@ajianaz
ajianaz merged commit fdcda89 into develop May 30, 2026
6 checks passed
@ajianaz
ajianaz deleted the feat/memory-aging-cleanup branch May 30, 2026 04:55
ajianaz added a commit that referenced this pull request Aug 13, 2026
feat: memory aging with auto-cleanup policy
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.

feat: memory aging with auto-cleanup policy

1 participant