harbor run -t xiaoboai/task-00054-memory-management-workflow-designharbor download xiaoboai/task-00054-memory-management-workflow-designSo here's the situation — we've been running our AI assistant's memory system for a few months now and it's... not great. Users are complaining about outdated info being surfaced, duplicates piling up, and the cleanup jobs don't seem to be doing their job. I've been meaning to do a proper audit and redesign but haven't had the bandwidth.
Everything you need is in the workspace: configs, the actual memory store, operation logs, cleanup history, the old architecture doc, user requirements, scheduling configs, and some other supporting files. There's a lot there and I suspect not all of it is consistent — we've had multiple people touching these configs over time and I wouldn't be surprised if things have drifted.
What I need from you is a comprehensive workflow design document saved to memory_workflow_design.md. It should cover:
An audit of the current state: what's actually configured, what's actually running, where things are broken or inconsistent across the various config files and logs. Don't just take any single file at face value — cross-reference them.
A diagnosis of why the memory system is degrading (stale items, duplicates, missed cleanups, etc.), backed by evidence from the logs and data files.
A redesigned workflow for memory management that addresses the user requirements, including how recurring vs. ad-hoc items should be handled, retention policies, deduplication strategy, cleanup scheduling, and categorization.
Specific recommendations for resolving any configuration conflicts you find — which values should be authoritative and why.
A section on the embedding/vector search setup and whether the current configuration would actually work for similarity-based duplicate detection.
A self-check procedures section: describe specifically how the system should periodically audit its own state — what checks should run automatically, at what frequency, what conditions should trigger alerts (approaching storage limits, failed cleanups, detected near-duplicates), and how the system validates that its scheduled jobs are actually executing as intended.
Be thorough. I'd rather have a document that's too detailed than one that glosses over real issues. If you find files that contradict each other, call it out explicitly and recommend the correct resolution.