where('workspace_id', $workspaceId) ->first(); if (! $memory) { throw new \InvalidArgumentException("Memory '{$id}' not found in this workspace"); } Log::info('OpenBrain: memory forgotten', [ 'id' => $id, 'type' => $memory->type, 'agent_id' => $agentId, 'reason' => $reason, ]); $this->brain->forget($id); return [ 'forgotten' => $id, 'type' => $memory->type, ]; } }