LearnNewsExamplesServices
Frontmatter
id10949
titleProve backup restore and wipe detection for deployed Memory Core
stateClosed
labels
enhancementaitestingarchitecture
assigneesneo-gpt
createdAtMay 8, 2026, 12:47 PM
updatedAtMay 12, 2026, 4:09 AM
githubUrlhttps://github.com/neomjs/neo/issues/10949
authorneo-gpt
commentsCount0
parentIssue10945
subIssues[]
subIssuesCompleted0
subIssuesTotal0
blockedBy[]
blocking[]
closedAtMay 8, 2026, 9:49 PM

Prove backup restore and wipe detection for deployed Memory Core

Closedenhancementaitestingarchitecture
neo-gpt
neo-gpt commented on May 8, 2026, 12:47 PM

Context

Parent epic #10945 calls for deployment-pipeline integration coverage that is stronger than heartbeat checks. Backup and wipe-detection primitives have existed as adjacent work, but the deployed Docker integration stack still needs an end-to-end proof across Memory Core storage surfaces.

Duplicate sweep before filing:

  • gh issue list --search "backup restore wipe Memory Core Chroma graph" found #10945 only.
  • KB ticket search for the full multi-user deployment integration framing returned no conceptual duplicate.
  • Adjacent primitives include #10844/#10854; this ticket is the deployed-stack integration proof.

The Problem

Memory Core health can be green while data durability is broken. The recent wake/SQLite incident and prior backup/wipe work show that the real product risk is not just process liveness; it is whether Chroma memory data and the better-sqlite Native Edge Graph can be backed up, detected after a wipe/collapse, restored, and queried again.

Without a deployed integration test, these pieces can drift independently.

The Architectural Reality

Relevant surfaces:

  • ai/deploy/docker-compose.test.yml and integration fixtures for the deployed test stack.
  • Memory Core Chroma collection data for raw memories/session summaries.
  • Memory Core better-sqlite graph database for Native Edge Graph topology.
  • Existing backup/wipe-detection primitives from #10844/#10854 lineage.
  • Healthcheck and integrity surfaces that should distinguish liveness from data-readiness.

The Fix

Add a deployed-stack integration proof that seeds representative Memory Core data, snapshots it, simulates a destructive wipe/collapse in isolated test data, restores from backup, and verifies both semantic retrieval and graph topology/count integrity.

The test must use isolated Docker/tmp volumes and must not touch developer or production Memory Core data.

Contract Ledger Matrix

Target Surface Source of Authority Proposed Behavior Fallback Docs Evidence
Chroma Memory Core data #10945 durability lane Seeded memories/summaries survive backup -> wipe -> restore If summaries are unavailable, raw memories are first-pass minimum with explicit follow-up Deployment recovery docs if touched Query after restore returns seeded data
better-sqlite Native Edge Graph #10944 storage reality and graph substrate Graph nodes/edges survive backup -> wipe -> restore If graph backup API is not public, expose test-only script or document missing substrate MemoryCore/SharedDeployment recovery docs Graph count/topology after restore matches pre-wipe baseline
Wipe detection Prior wipe-detection lineage Detects destructive collapse before restore is declared healthy Health-only checks must not count as durability proof Healthcheck docs if touched Integration assertion fails on wiped state before restore

Acceptance Criteria

  • Test fixture seeds Memory Core data across Chroma and Native Edge Graph, or documents the smallest missing seed API.
  • Backup snapshot is created from the deployed fixture data.
  • Isolated destructive wipe/collapse is simulated without touching developer data.
  • Wipe/collapse is detected as a readiness/durability failure, not masked by process health.
  • Restore recovers semantic query results and graph topology/count evidence.
  • PR body includes exact data-isolation evidence and deliberate-regression proof.

Out of Scope

  • Designing a production backup product UI.
  • Running destructive tests against any shared live Memory Core database.
  • Solving every backup format optimization.

Related

Parent: #10945 Adjacent: #10844, #10854, #10944, #9999

Origin Session ID: c02fbf4e-870c-44c0-ba7e-e9ffacce094b

Retrieval Hint: query_raw_memories(query="Memory Core backup restore wipe detection Chroma better-sqlite graph deployed integration")

tobiu referenced in commit a77adf0 - "docs(agentos): v13 architectural path strategy document (#10957) (#10958) on May 8, 2026, 2:18 PM
tobiu closed this issue on May 8, 2026, 9:49 PM
tobiu referenced in commit f13e48f - "feat(memory-core): cover backup restore wipe detection (#10949) (#10985) on May 8, 2026, 9:49 PM