[OneDev #17] Compact auto-memory MEMORY.md (354 lines, truncating at load time) #23
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from OneDev issue #17 (id 35305)
Original project: internal-joseph
Original state: Closed
Original submitterId: 5
Original submitDate: 2026-04-11T21:31:49.430+00:00
Original lastActivity: {'date': '2026-04-18T13:30:17.228+00:00', 'description': "changed state to 'Closed'", 'userId': 5}
Original fields:
Problem
Local auto-memory index at
C:/Users/Joseph/.claude/projects/C--Users-Joseph-OCD-devtech---Documents/memory/MEMORY.mdis now 354 lines / ~56KB. The system reminder explicitly warns:This means session startups are already truncating the index — entries near the bottom may not load into context on cold starts. Given the index is sorted newest-first, the oldest entries are most likely to be lost; but since it's supposed to be an active reference index, old-but-active entries (like the
labentry that was just updated) are in the truncation zone.Scope
file.md) for full detail.topic.mdfiles undermemory/if they aren't already.wc -lto verify the new line count.Constraints
feedback_*.mdpointers are load-bearing for avoiding repeated mistakes. The index line can be shorter, but the topic file stays.Gate (acceptance)
wc -l MEMORY.md≤ 200grep -cE '^- \[' MEMORY.mdaccurately reflects number of index entriesEffort
S — 1 session, mostly editorial judgment on what's load-bearing vs archival
Refs
labproject entry.Imported from OneDev comment id 381 on issue #17
Original userId: 5
Original date: 2026-04-18T13:30:14.196+00:00
Compacted 2026-04-18.
Before: 435 lines / 78KB (target file was actually the devtech-workspace MEMORY at
C:/Users/Joseph/.claude/projects/C--Users-Joseph-OCD-devtech---Documents/memory/MEMORY.md, which had grown past the 354 reported here).After: 199 lines / 20KB / 109 indexed entries. Under the 200-line gate.
Approach (aggressive):
internal-joseph/archive/memory/MEMORY-2026-04-18-pre-compact.md(8fe4596) so history is recoverable.feedback_*rules (hard-won), current LIVE service state (Dex, Conduit, Stack Dashboard, m365-tool, Manifold, Pulse, RC-AT, Station, Snipboard, Cloudzy WG, Skyhook, bridge, portal, lab), Proxmox gotchas, SSHubble gotchas, NetBird state, localinf inference config, port map, user preferences, active Deferred/Known Issues.journal-<date>-*.mdindex entry (files still on disk, can grep directly); superseded projects (Vaultwarden, Authentik decomm, breach_check done, agent-journal); the OneDev Project Tree and Repo Architecture sections (derivable from OneDev); the long "Topic Files" directory listing; "Publishable Skills" and "Pulse migrated" sections; stale status lines.SSH PowerShell+PowerShell over SSH;spec location+plan location+document location; HTML theming trio).Post-compaction monitoring: flag any session where a recalled fact turns out to be missing from the index (likely pruned too aggressively) — it should be added back as a short one-liner pointing to the topic file that still exists on disk.