{
  "project": "Agent Memory Move",
  "current_bridge": {
    "name": "openbrain-bridge",
    "transport": "stdio",
    "implementation": "mcp/openbrain_bridge.py",
    "virtualenv": ".venv-openbrain",
    "backing_data": [
      "index/archive.db",
      "approved-memory/install-batch-proposed.jsonl",
      "approved-memory/source-only-index.jsonl"
    ]
  },
  "target_backend": {
    "provider": "Supabase + PostgreSQL + pgvector",
    "canonical_table": "thoughts",
    "bert_views": [
      "bert_memory_candidates",
      "bert_approved_memories"
    ],
    "bert_indexes": [
      "memory_type",
      "review_status",
      "project",
      "source",
      "source_chunk_id",
      "sensitivity"
    ],
    "mcp_surface": "hosted MCP endpoint or edge function"
  },
  "tool_surface_contract": [
    "status",
    "search_archive",
    "search_approved_memories",
    "list_approved_memories",
    "get_memory",
    "get_source_only",
    "get_source_chunk",
    "list_review_items"
  ],
  "swap_sequence": [
    "create hosted backend",
    "apply schema and indexes",
    "import approved memories with provenance",
    "expose MCP-compatible tools",
    "switch Hermes MCP config",
    "verify retrieval and rollback path"
  ],
  "rollback": [
    "restore Hermes MCP entry to openbrain-bridge",
    "keep local bridge and archive index intact"
  ]
}