Skip to content

Deleting a memory that a backup already holds returns 503 'retry' until the backup is gone #342

Closed

Description

@varun369

When a backup snapshot was taken after a memory was stored, DELETE /api/memories/{id} removes and tombstones the memory but then reports the erasure as unverified (residue=['backup_copies']) and answers 503 with Retry-After. Every retry gets the same answer for as long as the snapshot exists, so a client that follows Retry-After never sees success.

Present since before 4.2.31 (core/transactions/erasure.py _journal_proofs, compliance/erasure_outcome.py). Seen in tests/test_integration/test_embedding_switch_e2e.py on CI when the backup timer fires before the test's mid-job erase.

Expected: a delete that is persisted and journalled outside every backup answers success and reports the pending backup obligation (backup_obligations_pending) instead of a retryable failure.

Daemon log:

Erasure not verified for <id>: state=FAILED persisted=True tombstoned=True residue=['backup_copies']
Erasure unverified for <id> — returning retryable failure

Activity

  1. varun369 commented on Nov 20, 2026

    @varun369
    MemberAuthor

    Fixed in 4.2.33 (#345). A delete that is done and recorded outside the backups now answers success, with backup_obligations_pending naming how many backups still hold the memory; restoring one of them removes the memory again. erasure_verified stays false until those backups are gone. A delete whose restore record could not be written still asks for a retry. Checked on a live store: fresh backup, then delete → success: true, backup_obligations_pending: 1. Upgrade with pip install -U superlocalmemory (or npm i -g superlocalmemory, or your plugin channel), then slm restart.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions