- A ship is intelligent.
- It plays tricks on its crew to keep them alert. Sometimes they think it goes too far.
- The crew shut it down for a period of time as punishment.
- Space pirates then chase and board the ship.
- Comedy ensues.
Note: There is a story listed on ISFDB with the title "Durance Vile" by Michael Cobley. However, it is listed as "unpublished" and therefore has no date, which leaves me gnashing my teeth in useless despair.