Politics, like other facets of contemporary life, are influenced by ever-evolving societal attitudes.

This year’s midterm elections offered a potent example in the explosive — and ironic — emergence of artificial intelligence as both an issue to sway voters and a tool to create persuasive television and internet ads.

An NBC poll found that 56% of voters said AI and data centers were a “crucial or major factor” in their vote for Congress. Democrats sensed the rising public concern over AI’s potential effects on jobs and data centers’ needs for water and electric power and spent more than $100 million on ads casting Republicans as being too accommodating to AI companies.

Voters flipped control of Congress and imposed dozens of local bans or moratoriums on data centers.

California, home to many AI companies, is not immune to this rebellion, rooted in fears about catastrophic consequences and the not-in-my-backyard resistance to massive data centers. The fears were encapsulated in a recent interview of ex-Gov. Jerry Brown by San Francisco Chronicle political columnist Joe Garofoli.

“Without question, a lot of bright people are very concerned about this,” Brown said. “We don’t know what it can do. Those agents can do things. So they could get into the nuclear codes, they could get into communications, the air controllers. The biggest danger, the most consequential, is that terrorists, or other bad actors, use AI to engineer a pathogen that kills millions, or hundreds of millions of people. That’s possible.”

The AI backlash also is reflected in the shifting posture of Brown’s successor, Gov. Gavin Newsom, a very likely 2028 candidate for the White House.

Newsom, who has been closely aligned with the tech industry throughout his political career, had been reluctant to embrace tough AI regulation. But last month he issued a lengthy report advocating just such oversight, implying he would pursue the issue in a presidential campaign.

“The federal government’s reckless failure to create any form of meaningful AI oversight or accountability should alarm every American,” Newsom said. “Instead of protecting the public, Donald Trump shrugs his shoulders and leaves AI regulation up to the companies themselves — allowing the fox to guard the henhouse. California isn’t waiting until it is too late.”

Newsom said in a Sacramento Press Club interview last week he is willing to call a special legislative session to enact AI guardrails. He also joined other Democrats in denouncing Trump’s role in persuading the board of Nvidia, a major AI company, to reinstate its CEO, Jensen Huang, who had been ousted for having a series of affairs, including one with a suspected Chinese agent.

Yet hopes of closing the state budget’s large deficit heavily depend on the continuation of the AI-driven surge in the stock market and on taxing those getting rich from it, such as the newly minted millionaires from the stock sales of Anthropic, another big AI player.

Anthropic’s valuation briefly surged to $2 trillion last month. Company insiders holding stock options are a new tranche of tech-wealthy Californians scooping up mansions in the Bay Area and straining the supply of private chefs for dinner parties.

The state’s income tax revenues have been running well above projections recently, thanks to a system weighted toward affluent taxpayers. Gov.-elect Xavier Becerra needs it to continue if he hopes to balance the budget.

The Legislature’s budget analyst, Gabe Petek, warned last week, “if the current AI boom is a speculative bubble that ends in a bust, there will be severe budget shortfalls … the state’s reserves and borrowing capacity will be insufficient, almost certainly necessitating sizable ongoing cuts or revenue increases within a couple of years.”

AI is the yin and yang of California’s politics.

Dan Walters is one of most decorated and widely syndicated columnists in California history, authoring a column four times a week that offers his view and analysis of the state’s political, economic,...