Skip to content

fix(memory): Archive expired memories opportunistically - #663

Merged
dcramer merged 1 commit into
mainfrom
codex/archive-expired-memories
Jun 28, 2026
Merged

dcramer merged 1 commit into
mainfrom
codex/archive-expired-memories

Conversation

@dcramer

@dcramer dcramer commented Jun 28, 2026

Copy link
Copy Markdown
Member

Expired memory rows now archive from scoped memory store entry points instead of only being filtered out at read time. The archive path is bounded to visible scopes, skips already superseded rows, removes derived embeddings in the same transaction, and lets expired idempotency rows be recreated safely.

Passive memory extraction now runs the same cleanup before building existing-memory context, so expired rows do not keep influencing extraction retries. Coverage exercises archival, embedding cleanup, superseded-row preservation, and idempotent recreation after expiry.

Archive expired memory rows from scoped memory store entry points so lifecycle state matches read visibility. Remove derived embeddings in the same transaction and allow expired idempotency rows to be recreated safely.

Refs GH-658
Co-Authored-By: GPT-5 Codex <[email protected]>
@vercel

vercel Bot commented Jun 28, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
junior-docs Ready Ready Preview, Comment Jun 28, 2026 6:22am

Request Review

@dcramer
dcramer marked this pull request as ready for review June 28, 2026 06:27
@dcramer
dcramer merged commit 643862b into main Jun 28, 2026
16 checks passed
@dcramer
dcramer deleted the codex/archive-expired-memories branch June 28, 2026 16:49

This branch was successfully deployed

1 active deployment
Preview – junior-docs — 4d759396 Deployed Jun 28, 2026 by vercel[bot]
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