Trying to relocate a series I read a while back.
The premise behind the series is that humanity is all but wiped out by an alien attack. The stories take place on a world which may be the last human colony. It has been cut off from outside communication and lost all its technology. There are several "states," and all are ruled by a theocracy that was set up to suppress technological advances so that they would remain undiscovered by the aliens, but all the technological knowledge was stored on the planet in some kind of AI installation until enough time passes that humanity can re-establish itself and build weapons to protect itself against the aliens, who are hidebound and not adept at innovation. The theocracy has become corrupt, and the AI installation has created an android that goes to an island "state" that it considers the best chance for standing up to the theocracy and creating a new government that can foster the innovation, because it feels that enough time has passed.
The "state" it has chosen is an island that has a strong trade base, and the ruler has recently married the ruler of another state. The android reintroduces gunpowder, schooner rigs for ships, etc.
Does this sound familiar to anyone?