Build a Git-compatible storage backend for AI agent memories. It should allow agents to query, branch, and revert state like a codebase.