From sci-fi to state law: California’s plan to prevent AI catastrophe