Skip to content

routine: memory-deprecated-at (2026-07-24) - #116

Draft
jim4226 wants to merge 1 commit into
mainfrom
claude/daily-2026-07-24-memory-deprecated-at
Draft

routine: memory-deprecated-at (2026-07-24)#116
jim4226 wants to merge 1 commit into
mainfrom
claude/daily-2026-07-24-memory-deprecated-at

Conversation

@jim4226

@jim4226 jim4226 commented Jul 24, 2026

Copy link
Copy Markdown
Owner

Summary

MemoryStore.promote() already stamps promoted_at on the entries it moves to live, but deprecate_live() only recorded a deprecated_reason — no timestamp. This adds a deprecated_at: Optional[float] field to MemoryEntry and stamps it in deprecate_live(), giving the audit trail parity: "how long has this entry been deprecated" is now a direct field read instead of a re-derivation from the event log.

  • Source: Claude Code CHANGELOG, v2.1.214 (2026-07-18)"Added modified timestamp to memory file frontmatter."
  • Theme: 4 — Persistent memory + context (memory tools, context-window management)
  • Touches: csis/contracts.py (MemoryEntry.deprecated_at), csis/memory/store.py (deprecate_live()), tests/test_memory.py (new regression test)
  • Size: trivial (≤50 LOC)
  • Risk: low — does not touch the cycle-9 chokepoints (Coordinator.__init__, _BackendTracker, writer_iteration_id, promotion CAS); the field is optional and backward-compatible, matching the existing writer_iteration_id optional-field pattern.

Test plan

  • python -m pytest tests/ -q — 251 passed (was 250; added test_deprecate_live_stamps_deprecated_at)
  • New regression test asserts deprecated_at is populated within a [before, after] window around the deprecate_live() call

Opened by the CSIS daily-improvement routine per .claude/routines/daily-improvement.md. Full day's triage (including deferred items) lands in brain/routines/2026-07-24.md via a separate log PR.


Generated by Claude Code

promote() already records promoted_at; deprecate_live() recorded a
reason but not a timestamp, so the audit trail couldn't answer "how
long has this been deprecated" without re-deriving it from the event
log. Mirrors Claude Code 2.1.214's addition of a modified timestamp to
memory file frontmatter (2026-07-18).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Smd58WtDGyWszXyEcVbG6h
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.

2 participants