[P0] Mark Consolidation Complete on Mem0 Unavailability #8

Closed
opened 2025-12-05 13:48:53 +00:00 by blightbow · 1 comment
Owner

Problem

When Mem0 is down:

  • Consolidation is marked incomplete and retries forever
  • Progress data grows stale without completing

Suggested Fix

Detect Mem0 unavailability and mark consolidation complete (with error state) to prevent infinite retry loop.

Priority

P0 — Immediate (Blocks Production)

Source

Architecture Audit 2025-12-03, Critical Gaps Section 5: External Service Degradation

## Problem When Mem0 is down: - Consolidation is marked incomplete and retries forever - Progress data grows stale without completing ## Suggested Fix Detect Mem0 unavailability and mark consolidation complete (with error state) to prevent infinite retry loop. ## Priority **P0 — Immediate (Blocks Production)** ## Source Architecture Audit 2025-12-03, Critical Gaps Section 5: External Service Degradation
Author
Owner

Implementation Complete

Committed in 54cf6b1db: Fix infinite retry loop when Mem0 unavailable during sleep

Changes

  • Added specific CircuitOpenError handler in run_sleep_consolidation()
  • Sets completion_state='error_unavailable' to prevent infinite retry
  • Added completion_state='success' on successful consolidation
  • Created test_sleep_consolidation.py with 5 tests

The sleep phase now correctly transitions to "dreaming" even when Mem0 is unavailable.

## Implementation Complete Committed in `54cf6b1db`: Fix infinite retry loop when Mem0 unavailable during sleep ### Changes - Added specific `CircuitOpenError` handler in `run_sleep_consolidation()` - Sets `completion_state='error_unavailable'` to prevent infinite retry - Added `completion_state='success'` on successful consolidation - Created `test_sleep_consolidation.py` with 5 tests The sleep phase now correctly transitions to "dreaming" even when Mem0 is unavailable.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
blightbow/evennia_ai#8
No description provided.