Sync v2→v3: brain.store() API, agents table, remove dead code (-73% smaller)