Katie did this. I closed the bedroom door and she stopped.
She is now 7 and went through a phase this fall where she would run outside to pee like a good girl, then shortly after, would poop in the living room. I closed off the living room and made her spend the day in the kitchen. Verbal prompts to "go poop Katie", when turned out (just like I did when she was a 10 week old pup) must have kicked in. Still, I made her spend a week in the kitchen during the day. I always did the verbal prompt and a reward for asked deposit. I've had no problem since then
(just FYI, I stated in another thread long ago that when I have problems with Katie's constitution/off character behavior, it is always around the solstice or equinox. This poop-in-the house behavior started 4 days after the autumnal equinox. Coincidence? Maybe.)