Ghost in the Machine (episode)

When the crew gets trapped in the holodeck by a mysterious malfunction, they aren't sure what's programmed or what's real.
== Summary ==
The crew of the is in the holodeck trying to formulate a plan to leave the Romulan Neutral Zone and safely approach Starfleet. Unfortunately, every scenario they attempt ends in failure, leading the group to conclude that they can never go to the Federation. Hologram Janeway comes in and notes the dismal mood before recommending that everyone get some rest and look at the problem with fresh eyes tomorrow. After commiserating over bowls of ice cream in the mess hall, they take Hologram Janeway's advice and all head to bed.
Soon, they all start seeing and hearing strange things, including a character named Glittersmooch from Rok's "Delta Heart Magical Veterinarian" holodeck program. Soon, a strange fog rolls in and they find themselves on a dark island where they come across a lighthouse which Zero recognizes immediately. It's the headquarters for the "Cellar Door Society" milquetoast mystery program. Zero informs the group that means that they're still on the holodeck. When their attempts to exit fail, they contact Hologram Janeway who states that she's working on the problem which was apparently caused by some subspace interference.
Zero theorizes that they should be able to leave the holodeck once they solve a "Cellar Door Society" mystery. As per for the norm for the program, a letter should arrive at midnight which will reveal what the mystery is. When multiple letters arrive, Rok correctly guesses that the individual letters must be a code that's revealed when all pages are placed on top of one another. The code reveals that this is "The Case of the Lost Skeleton Key." The crew search the library for the key for a little while before noticing that a brightly backlit door has appeared, accompanied by a new soundtrack.
The group walk through the door and find themselves in an alley facing a group of menacing bikers who all look exactly like Dr. Noum, the Tellarite who insulted Jankom weeks earlier at the Denaxi Depot. Apparently, Jankom's been letting off steam in a street fighting sim with the bikers. When Jankom faces off with the bikers, they knock out one of his teeth, and he realizes that the holodeck safeties must be turned off. Dal calls holo Janeway for help, but she claims to be unable to work on essential functions, so he gives her his command code to override whatever has gone wrong with the program. When it doesn't work, Rok subdues the bikers herself. They discover that one of the bikers has a tattoo on his chest of a skeleton key, but the arch doesn't appear when they capture him. Upon closer examination, it isn't just a tattoo of a key - it's a tattoo of the logo of The Key Club.
This clue leads them a black and white film-noir 1920s-era club called The Key Club. The group realizes this program must belong to Murf when he jumps on stage and begins singing, or perhaps lip syncing to an old jazz song. Meanwhile, Gwyn heads to the bar to order a jumja tea and ask about the skeleton key. However, she is astonished to see that the bartender looks exactly like her father.
As Gwyn lays out her problem to the sympathetic bartender, Rok and Zero deduce that because it is only using their holoprograms rather than pulling randomly from the database, the holodeck must have a motive rather than a simple malfunction, and Dal and Jankom contend with some seedy gangsters who all resemble Noum. Suddenly, Rok notices that the piano sounds funny and surmises that the lost key may refer to a piano key. She flips up the missing key, opening a portal in the piano that the crew escapes through before the gangsters can catch them.
The portal leads them onto an old style pirate ship. Recognizing his program, Dal orders his pirate crew, who now all look like Noum, to find the lost key. Meanwhile, a giant sea creature emerges – Rok's holo-creation, "Sparkle Sea-Hugger" – and almost hugs them all to death. Rok is able to defeat it by providing it with healthy food, but the ship begins to sink as a result of the damage it sustained from being hugged. Murf finds a compass with a skeleton key on it. At this point, Zero deduces that the holodeck isn't randomly malfunctioning. It appears to be actively keeping them trapped. They declare that they must stop following the clues - the only way to win is to refuse to play "her" game.
At this point, the program end. When a relieved Holo Janeway enters, she is accused of locking them all in the holodeck. When she denies it, Zero says that she believes she is telling the truth, but her program must've been corrupted by a pre-programmed "secret subroutine" triggered by the living construct when the crew decided to give up going to Starfleet. The security logs show that she, unknowingly, used Dal's command codes to take over the ship, exit the Neutral Zone and set a course for the Terran sector. Hologram Janeway is horrified. She says that she would never do anything to hurt the crew, but that Zero must be right - something is wrong with her.
Suddenly, an alarm blares and the crew find themselves nose to nose with the Dauntless and locked out of controls. Hologram Janeway appears on the bridge and says, "I'm sorry."
== Memorable quotes ==
"The mystery is afeet."
:- Zero, when letters are deposited at each of their feet at the start of their "Cellar Door Society" holodeck mystery program.
"My father put the fate of our world on my shoulders without ever asking me."
"Sounds like despite your pop's intentions, you gotta find your own way."
:- Gwyn and Hologram Diviner
"Let's pop this blow-stand."
"I don't think that's how it goes."
:- Gwyn and Dal
"I'm so sorry. I'd never intentionally do anything to hurt you... I don't remember doing any of this. I, I think Zero's correct. There's something wrong with me."
:- Hologram Janeway
== Background information ==
=== Title ===
* The title was announced by Paramount+ on . 
* The phrase "" refers to a consciousness dwelling within a computer, in this case, Hologram Janeway being manipulated by the living construct.
=== Production ===
* Like , which was aired by in some European countries such as Croatia, Hungary, and Poland ahead of US release, this episode was originally scheduled to be aired there on . However, other programming was aired instead on that day. 
* The episode was released on on CANAL+ online in Poland ahead of US release.
* "Mr. Murfy No Shoes'" song "Smile and Forget It" was written by Troy Kline and acquired through , a platform whose content is licensed for use in films and television.
* Dal's command code, GB64N32X, appears to obliquely reference several video game systems. With GB being an abbreviation for , 64N derived from and its abbreviation N64 and 32X referring to Sega's .
=== Continuity ===
* In 2369, the crew of the experienced a very similar situation, where the holographic (who like Hologram Janeway, was also sentient) similarly attempted to take control of the ship. Moriarty's plan also consisted of trapping the crew in an endless holodeck simulation that was intended to trick them into believing they had left the holodeck. ()
* In The Key Club, Gwyn orders a jumja tea, a drink first featured in that the Bajorans in the mirror universe were fond of and was the favorite beverage of Intendant .
* The map towards Earth showed the Protostars current location in the Neutral Zone as being adjacent to the Yadalla sector, was originally from the Star Trek: Star Charts and Stellar Cartography: The Starfleet Reference Library reference books, but were later shown in , , and .
* Although there is no stardate referenced within the episode, a log by the Dauntless computer on the "Star Trek Logs" Instagram account dated the episode to Stardate 61401.5. 
** Due to the cliffhanger ending of , said "log" is a file not found error since Admiral Janeway is incapacitated and was unable to record the log.
== Links and references ==
=== Cast ===
* Rylee Alazraqui as Rok-Tahk
* Dee Bradley Baker as Murf
* Brett Gray as Dal
* Angus Imrie as Zero
* Ella Purnell as Gwyn
* Jason Mantzoukas as Jankom Pog
* John Noble as 
* Jimmi Simpson as Drednok 
;And
* Kate Mulgrew as "Hologram Janeway"/"Vice Admiral Janeway" 
* Jason Alexander as Doctor (s) 
* Bonnie Gordon as Ship Computer
=== Uncredited co-stars ===
* Troy Kline as Mr. Murfy No Shoes
* Unknown actors as
** Glittersmooch gangster hologram
** Human gangster hologram
=== Background characters ===
* Noum(s) 
* Human gangster holograms
* Human piano man hologram
=== References ===
24-hour clock; adventure; arch; "aye"; alley; Augment; banana; barista; black and white; bones; "brace for impact"; briefcase; Brikar; cannon; "cap'n"; (title); ""; ""; ""; Cellar Door Society; chapter; clue; combadge; command code; compass; computer virus; control panel; coordinates; cream; dance; databanks; ; ; Delta Heart Magical Veterinarian (aka Delta Heart Hospital, Delta Heart Vet); detective (aka amateur sleuth); ; envelope; evasive maneuvers; father (aka ""); Federation; Federation space; fedora; feral; fiber; formal wear; fruit; funeral; gibberish; Glittersmooch; gold-pressed latinum; grand piano; grandfather clock; hand; happy place; headquarters; heirloom; holodeck; holoemitters; holo-pet; holo-program (aka holo, holo-sim, sim, simulation); hooligan (aka ruffian); hug; Human; hybrid; ice cream; jazz; jowl; Jumja tea; kettle; Key Club; ; "ladies and gentlemen"; language; library; library book; life sign; lighthouse; "like you've seen a ghost"; linguistic skills; lip sync; living construct (aka construct); "look what the cat dragged in"; lunatic; mail slot; malfunction; malnutrition (aka malnourished); maze; "me hearties"; Medusan; Mellanoid slime worm; mess hall; microphone; midnight; milquetoast mystery; monster; Morse code; motion floor tracking; motive; motorcycle; music soundtrack; neon sign; Noum; ; paper; patient; percent; Petri dish; phaser beam; piano key; piano man; pirate ship; ; ; pull-up; purveyor; puzzle; recreational time; rock and roll; rogue; Romulan; Romulan Neutral Zone; sadness; safety protocols; scoop; scribble; security feed; shields; singing; skeleton key; slap; "Smile and Forget It"; snack; song; sparkle sea-hugger; speak; Starfleet; ; street fighting sim; subspace disruption; tattoo; Tellarite; tentacle; torch; tractor beam; treasure; Vau N'Akat; Vau N'Akat language; vet; visual horizon manipulation; water; whipped cream; whipping; words
==== LCARS references ====
active line; auto scan; comm center; diagnostic check; impulse engine control; operations; synch; system update; Terran sector; Yadalla sector
=== External links ===
* 
* 
pl:Ghost in the Machine