A hypothetical system would actually function almost exactly the same as the much derided MCAS. If angle of attack sensors indicate an inappropriate angle of ascent/descent, overcompensate for or override the pilot inputs.
As we've learned at great cost, angle of attack sensors are wrong more often than pilots are homicidal though, which is part of the reason why the form of intelligence used to deter and attempt to prevent obviously deadly pilot actions is a lump of meat called a copilot.