SAN FRANCISCO — If a law firm wants to compel arbitration of a dispute with a former client, it had better make sure it signed its attorney-client agreement.

That’s the lesson of a ruling Friday from San Francisco Superior Court Judge John Munter that keeps alive a would-be class action against Century City’s Initiative Legal Group.