The guards must be crazy. These soldiers were tailing me at the very start of the insurrection, before the bloodshed began. They never got aggressive, just very tight-lipped about who they are and what they're doing. When I got ambushed in the streets, they just watched from a distance, and after I got the bandit on the run, then one of them stepped in to finish the job.
Now after I cleared out the gobbos and another wave of amphibian people, I determined that whoever was behind them wasn't down in the dungeons, and because they were all generic nameless goblins, more were sure to spawn. The soldiers had fought with me and after it was over they stood guard in the keep over the only two priests were left alive. Hardly enough to entertain in the court with, so I left to get booze and snooze. These moronic guards followed me again, all the way to my preferred tavern(s). I stopped to talk to them, still friendly, then headed back to the keep, but they did not keep up.
When I got back to the keep, no one was standing guard but a trio of goblins. The soldiers slowly straggled in and started working their way through the goblins all over again, but there really wasn't much point because no one was left alive to run the place. This time they got their asses handed to them; only five came back and all of them crippled in one way or another. This place isn't going to become defensible without an influx of fresh troops. I just don't like this town enough to do it myself.