Skip to content

feat(memory): retention policy and redacted export - #88

Open
HugoXK wants to merge 2 commits into
mainfrom
janus/20-retention
Open

HugoXK wants to merge 2 commits into
mainfrom
janus/20-retention

Conversation

@HugoXK

@HugoXK HugoXK commented Nov 26, 2026

Copy link
Copy Markdown
Owner

Refs JAN-020.

What changed

  • New core/janus/memory/retention.py: source/kind retention rules, optional fallback window, dry-run reporting, and deletion of only expired observations.
  • Redaction masks named fields at any depth without mutating stored observations; export_redacted writes JSONL exports.
  • CLI adds janus retention apply and janus retention export.
  • Tests cover rule matching, dry runs, unmatched-source retention, policy round-tripping, deep redaction, non-mutation, and both CLI paths.

Verification

  • tests/test_retention.py: 9 tests pass locally.
  • No schema migration and no key material is stored in the repository.

@HugoXK
HugoXK requested a review from HugoXK-bot as a code owner November 26, 2026 02:54
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