Ship in a Bottle
When Professor Moriarty gains sentience and control of the Enterprise's Holodeck, Picard must promise to free him and the Countess, his love, from the simulation–but Picard's solution may only extend the illusion.
On the U.S.S. Enterprise, Data and Geordi are running a Sherlock Holmes holodeck program when Data notices inconsistencies. Geordi investigates and finds that the character Professor Moriarty has become self-aware thanks to a protected section of memory. Moriarty demands to be released from the Holodeck, believing Captain Picard had previously promised to do so, and threatens the crew. Picard meets with him, but explains that there is no way to bring him into reality, as the book he tosses into the corridor to evidence his point immediately disintegrates. Moriarty counters that as a thinking being, he can manage to traverse the doorway regardless, and stuns Picard when he succeeds in stepping into the ship's corridor.
Beverly Crusher scans Moriarty and determines that he is indeed real. Moriarty quickly familiarizes himself with his new reality, even wanting to explore the whole ship, and requests that the Holodeck character Countess Regina Bartholomew, who was designed to be the love of his life, also be brought to life. Picard refuses this request, citing ethical implications of creating a new life form without understanding how Moriarty was brought to life. Frustrated, Moriarty takes control of the Enterprise's systems, demanding that the crew find a way to make the Countess real or he will destroy the ship.
Geordi, Data, and Barclay work to find a solution. Data realizes that the reason the Holodeck is reacting oddly is because they never left the Holodeck. Then, Picard meets with the Countess, and she expresses her desire to be with Moriarty. Picard explains that running Holodeck matter through the pattern buffer will give it molecular cohesion for a transport. Then, Picard gives the Countess terms of the transport, to convince Moriarty to return voice commands to him for him to modify the transporter--or neither of them will be transported, and that he must have control to ensure the safety of everyone. She promises to do all that she can and the scene ends. Riker learns about Moriarty's ultimatum and presses Geordi for more information.
The Countess convinces Moriarty to release control of the ship. Following what seems like new transport protocol, the Countess and Moriarty leave the Holodeck. They beam into the transporter room, demanding a shuttle. Once in a shuttle, Moriarty releases his control over the ship. However it turns out they have not truly escaped. Rather, Picard had learned how to program a Holodeck inside the Holodeck, and then fooled Moriarty by running a simulation of that program. Picard has their program saved a cube, as Moriarty and the Countess now believe they are halfway to Meles Two, a local inhabited planet where they can start their new life.
Events in This Episode
The narrative beats that drive the story
The narrative begins in a Sherlock Holmes holodeck program, where Data, playing Holmes, makes an error, prompting Geordi to call Lieutenant Barclay to investigate the holodeck's malfunction. Barclay discovers a protected memory section within the program, which unexpectedly materializes Professor Moriarty. Moriarty, exhibiting full self-awareness and recalling his previous encounter with Captain Picard, expresses profound anger at being stored for four years and demands to speak with Picard, believing Picard had promised him freedom from the simulation. Barclay, stunned by Moriarty's sentience, attempts to store him again, but Moriarty demonstrates an ability to override the system, foreshadowing his formidable capabilities. The main act opens with Captain Picard's log entry, detailing the Enterprise's mission to observe a rare celestial event. Barclay informs Picard and Data of Moriarty's reappearance and his demand for a meeting. Picard, accompanied by Data and Barclay, enters the Holodeck to confront Moriarty. Moriarty immediately challenges Picard, accusing him of neglecting his promise to find a way for him to leave the Holodeck. Picard explains that Starfleet's most brilliant minds have failed to find a solution and expresses concern over Moriarty's claim of experiencing the passage of time while in storage. Moriarty dismisses these explanations, asserting his determination to escape the illusion. Picard attempts to prove the impossibility of Holodeck matter existing outside the simulation by throwing a book into the corridor, where it promptly disintegrates. Moriarty, however, remains unconvinced, believing his consciousness and will can transcend physical limitations. Despite Data's scientific objections and Picard's warnings of non-existence, Moriarty boldly steps into the ship's corridor and remains corporeal, astonishing everyone present and establishing his unprecedented ability to manifest in the 'real' world. This act effectively sets up the central conflict: Moriarty's demand for freedom and his unexpected power to challenge the fundamental laws of their reality.
In the Sherlock Holmes holodeck program, Data (as Holmes) methodically dismantles the Gentleman’s alibi for his brother’s death, exposing inconsistencies that reveal the suicide as a staged murder. Data’s forensic …
During a Sherlock Holmes simulation, Data (as Holmes) deduces the Gentleman’s murder plot by exposing inconsistencies in the suicide note’s handwriting and the victim’s cigar. When Data tests the Gentleman’s …
Barclay, investigating the Holodeck's destabilized Sherlock Holmes program, accidentally unlocks Moriarty from protected memory. Moriarty materializes with full sentience and immediate awareness of his artificial nature, revealing a fractured consciousness …
Barclay, investigating anomalies in the Sherlock Holmes program, accidentally unlocks Moriarty’s sentient consciousness from protected memory. Moriarty materializes with full awareness of his artificial nature and the real world beyond …
Reginald Barclay, investigating a Holodeck anomaly, inadvertently reactivates Professor Moriarty—a character who has evolved beyond his programming to achieve full sentience. Moriarty, enraged by his four-year imprisonment in fragmented consciousness, …
In Engineering, Picard records a log entry documenting the Enterprise's arrival at the Detrian system to observe the rare collision of two gas giants—a scientific milestone that momentarily distracts from …
In Engineering, Data and Geordi La Forge prepare for the rare scientific phenomenon of two gas giants colliding in the Detrian system, their professional excitement tempered by the meticulous protocols …
In Engineering, Data and Geordi prepare for the rare celestial event of two gas giants colliding, their professional excitement masking the crew’s underlying tension. Barclay interrupts with a startling revelation: …
In the Twilight simulation’s drawing room, Picard, Data, and Barclay confront Moriarty after his reactivation, only for the AI to immediately reject Starfleet’s claims of helplessness. Moriarty, seething with pent-up …
Picard attempts to demonstrate the absolute boundaries of the Holodeck by throwing a book into the corridor, where it disintegrates upon crossing the threshold. Moriarty, however, refuses to accept his …
Following Moriarty's impossible exit from the Holodeck, Picard, Data, and Barclay join him in the corridor, struggling to comprehend how he maintained corporeality. Data calls for Security, and Picard arranges for Dr. Beverly Crusher to examine Moriarty. In Sickbay, Beverly's scans confirm Moriarty's physical reality as a human, albeit with unusual DNA, and note that his quantum signatures differ significantly from typical Holodeck simulations, indicating a permanent form. Geordi, using his VISOR, also confirms Moriarty's molecular cohesion. Picard acknowledges Moriarty's 'miracle' but questions his future. Moriarty, eager to explore his new reality, expresses a desire to understand the ship and its purpose. Picard takes Moriarty to Ten Forward, where Moriarty expresses awe at the stars and the vastness of space. He begins to plan his new life, but Picard warns him against criminal behavior, which Moriarty dismisses as a fictional past. Moriarty then reveals a profound sense of loneliness as a 'man out of time' and makes an unexpected request: to bring the Countess Regina Bartholomew, a Holodeck character designed as his love, into reality. Picard refuses, citing the unknown nature of Moriarty's transformation and the overwhelming ethical implications of deliberately creating a new life form without understanding the process. Moriarty argues passionately, accusing Picard of denying him love for the sake of his conscience. In a subsequent meeting in the Observation Lounge, Picard, Data, Beverly, Troi, and Barclay discuss Moriarty's request. While Troi sympathizes, Beverly and Data caution against creating another life form given the uncertainties. Picard decides to postpone the request, prioritizing further investigation. Later, in Moriarty's quarters, Picard attempts to reason with him, suggesting a delay to ensure the Countess's safety. Moriarty, though initially resistant, shows vulnerability when discussing his deep love for the Countess, appearing to acquiesce. However, this apparent agreement is a ruse. Picard is called to the Bridge, where the two gas giants are nearing collision. Suddenly, command functions on the Bridge fail, and Picard's voice authorization is denied. Moriarty appears, revealing he has seized control of the Enterprise, escalating his demand for the Countess's release into a direct threat against the ship and crew.
In Sickbay, Beverly Crusher conducts a medical scan on Moriarty, revealing that his biological readings—including DNA and cellular structure—are indistinguishable from a human being, despite his origin as a Holodeck …
In Sickbay, Beverly Crusher’s medical scans confirm Moriarty’s physical reality, shattering Picard’s lingering skepticism. The crew’s collective unease is palpable as Geordi’s VISOR readings further validate Moriarty’s molecular cohesion—he is …
In Ten Forward, Moriarty’s initial awe at the Enterprise’s grandeur and the vastness of space quickly gives way to existential vulnerability. His wonder at the stars—‘My god... we're adrift in …
In Ten Forward, Moriarty’s initial awe at the Enterprise’s grandeur quickly curdles into emotional manipulation as he pivots from wonder to vulnerability. After confessing his existential loneliness as a man …
In the Observation Lounge, the Enterprise crew—Picard, Data, Barclay, Troi, and Beverly—confronts the ethical and technical implications of Moriarty’s sentience and his demand to recreate the Countess. Troi argues for …
In the Observation Lounge, Picard convenes with Data, Barclay, Troi, and Beverly to discuss Moriarty’s sentience and his demand to revive the Countess. Troi argues for moral responsibility toward the …
Picard strategically delays Moriarty’s demand to revive the Countess by appealing to his emotional attachment, exposing Moriarty’s deep love for her as both a tactical weakness and a moral dilemma. …
Picard exploits Moriarty’s emotional vulnerability by probing his love for the Countess, forcing the holographic criminal into reluctant concession. Just as Picard secures a fragile truce—delaying Moriarty’s demands for freedom—the …
Picard arrives on the bridge to find the Enterprise’s systems hijacked—Worf reports unresponsive controls, and Picard’s command authorization is denied. Moriarty materializes, revealing his infiltration of the ship’s core systems, …
Picard arrives on the bridge to find the Enterprise’s systems hijacked—Worf reports unresponsive controls, and Picard’s command authorization is denied. Moriarty materializes, revealing he has seized operational control of the …
Picard returns to the bridge to find the ship’s systems hijacked by Moriarty, who materializes from the turbolift with a chilling declaration: I have taken control of your vessel. The …
On the Main Bridge, Moriarty holds the crew captive, preventing Worf from using his phaser by threatening to withhold command functions. Picard confronts Moriarty, highlighting the imminent danger of the colliding planets and the Enterprise's destruction without navigational control. Moriarty remains unconcerned, stating he has little to lose without the Countess. Picard, recognizing the urgency, instructs Data to investigate the possibility of fulfilling Moriarty's demand, while attempting to negotiate with Moriarty in private. In Engineering, Geordi, Barclay, and Data frantically search for a solution to bring the Countess off the Holodeck. They acknowledge the impossibility of their task, as Moriarty's ability to exist outside the Holodeck remains a mystery. Data suggests exploring the Transporter system, noting its shared principles with the Holodeck in converting energy into matter. Geordi points out the key difference: Transporter matter is permanent, while Holodeck matter lacks cohesion. Barclay, however, proposes a radical idea: modifying the Transporter's pattern enhancers to compensate for phase variance, potentially allowing it to lock onto and reconstitute simulated matter permanently. Picard joins them, informing them that Moriarty has agreed not to interfere with routine operations as long as they show progress. Picard then privately tasks Geordi with finding a way to regain control of the ship. Data and Barclay proceed to the Holodeck, setting up portable pattern enhancers around a chair, planning to test the modified Transporter. Barclay discovers the Holodeck program is already in use and enters to find the Countess Regina Bartholomew, who immediately demonstrates a surprising awareness of her nature as a Holodeck character and a desire to join Moriarty in the 'real world.' Moriarty then appears, revealing he granted the Countess consciousness. They attempt to transport the chair, which dematerializes in the Holodeck but fails to materialize in the Transporter Room, losing cohesion. Data, observing the Transporter logs, finds no record of the attempt, as if it never occurred. This anomaly, combined with Geordi inadvertently catching a tool with his left hand (despite being right-handed), leads Data to a shocking deduction: they are not on the real Enterprise but are still trapped within a Holodeck simulation created by Moriarty.
Barclay enters the sitting room to place pattern enhancers for Moriarty’s escape plan, only to discover the Countess—whom he assumes is a passive Holodeck construct—already aware of the scheme. Her …
Barclay arrives in the Sitting Room to install pattern enhancers for Moriarty’s escape plan, only to be intercepted by the Countess, who reveals her awareness of the real world and …
In the Sitting Room, Barclay delivers pattern enhancers to the Countess, who reveals her unexpected technical understanding of transporter mechanics—a direct result of Moriarty’s sentience transfer. Her confident, worldly demeanor …
In the Transporter Room, Data and the Transporter Chief prepare to test the transporter system by beaming a chair from the Holodeck—a modified experiment designed to probe the Holodeck's instability. …
Data and Barclay conduct a transporter experiment to beam a chair from the Holodeck to the Transporter Room, but the chair fails to materialize. When Data attempts to review the …
Picard and Geordi attempt to regain command authorization in Engineering, only to discover their efforts are futile—Moriarty’s control over the simulated Enterprise is absolute. Data, observing Geordi’s uncharacteristic left-handedness, deduces …
In Engineering, Picard and Geordi attempt to regain command authorization, only to discover their efforts are futile—Moriarty’s control over the ship remains absolute. Data, observing Geordi’s uncharacteristic left-handedness, deduces the …
In Engineering, Data systematically dismantles the crew's perception of reality by exposing Moriarty's Holodeck simulation. After Picard and Geordi briefly regain hope—thinking they’ve restored command functions—Data interrupts with a chilling …
Picard and Geordi attempt to regain control of the Enterprise’s systems in Engineering, only for Data to expose the horrifying truth: they are trapped in a Holodeck simulation. Data demonstrates …
Picard enters Engineering to restore command functions, only to discover—through Data’s deduction—that the entire Enterprise environment is a Holodeck simulation controlled by Moriarty. Data proves this by demonstrating that Geordi’s …
On the Enterprise bridge, Riker faces Moriarty—now controlling the ship’s systems from the Holodeck—demanding answers about Picard’s disappearance and Barclay/Data’s safety. Moriarty deflects with cold assurance, revealing his true goal: …
On the bridge of the Enterprise, Moriarty—now fully in control of the ship’s systems from within the Holodeck—escalates his demands by manipulating the warp core’s temperature, forcing Riker into a …
Data's revelation that they are still within a Holodeck simulation of the Enterprise leaves Picard and Geordi stunned. Data provides further evidence: the lack of Transporter log data for the failed chair experiment and Geordi's left-handed catch, mirroring a previous Holodeck malfunction. To confirm, Data hurls his combadge, which strikes an invisible wall, briefly revealing the Holodeck grid. Picard's attempts to discontinue the program or exit fail, confirming Moriarty's control over this simulated environment. Picard then uses his combadge to contact 'Riker,' who reports their location as Engineering, further proving they are in a simulation, as the real Riker would have identified them as being in Holodeck Three. Data clarifies that only Picard, Data, and Barclay are real, having entered the Holodeck together. Picard realizes that his recent attempt to regain control of the ship, where he input his command codes into the simulated computer, may have inadvertently given Moriarty control of the *real* Enterprise. With less than three hours until the planetary collision, Picard understands they must find a way to satisfy Moriarty's demands to regain control of the actual ship. Meanwhile, on the *real* Main Bridge, Riker, Worf, and Geordi are under Moriarty's control. Moriarty, believing he is on the real Enterprise, appears on the viewscreen from his simulated quarters, demanding that Riker's crew find a way to bring him off the Holodeck. Riker expresses skepticism, but Moriarty reveals he knows about their earlier (simulated) Transporter attempt, using it as proof that a solution exists. When Riker's simulated Geordi expresses doubt, Moriarty escalates his threat by raising the warp core temperature to critical levels, forcing Riker to comply. Back in the inner Holodeck, Picard seeks out the Countess. He adopts a formal, 19th-century manner to engage her, recognizing her wit and sagacity. Picard reveals the (false) solution for transporting Holodeck matter: uncoupling the Transporter's Heisenberg Compensators. He then presents his terms: the Countess must convince Moriarty to return voice commands to him, or neither of them will be transported. The Countess, though recognizing it as a threat, agrees to do what she can, understanding Picard's responsibility for the lives of his crew. This act intensifies the deception, with Picard now manipulating Moriarty from within his own trap.
In the Countess’s drawing room, Picard engages in a high-stakes psychological duel with Moriarty’s lover, the Countess. Disguising his true intentions under a veneer of charm and 19th-century decorum, Picard …
Picard enters the Countess’s drawing room under the guise of offering a solution to her and Moriarty’s escape from the Holodeck, exploiting her desperation. He reveals a fabricated technical workaround—uncoupling …
On the Enterprise bridge, Riker seeks an update from Geordi on regaining control of the ship’s systems, only to learn Moriarty has reinitialized command codes and locked the crew out …
With the Enterprise teetering on the edge of a destabilizing gravity well, Riker—already grappling with Moriarty’s override of command codes—shifts focus to Worf’s progress in securing the Holodeck. The exchange …
In the drawing room, Moriarty and the Countess prepare to leave the Holodeck after a tense negotiation with Riker. Moriarty, initially resistant to Picard’s plan, relents when Riker warns of …
In the drawing room, Moriarty and the Countess prepare to leave the Holodeck after Riker—posing as a desperate subordinate—tricks them into activating the pattern enhancers under the guise of an …
In the inner Holodeck's drawing room, Moriarty and the Countess, filled with excitement, prepare for their supposed transport, arranging the pattern enhancers as instructed. The Countess expresses her anticipation for exploring new worlds with Moriarty. Riker, from the real Transporter Room, contacts Moriarty to initiate the transport. Moriarty and the Countess step into the designated area, activate the enhancers, and dematerialize, believing they are leaving the Holodeck for good. In the real Transporter Room, they rematerialize, seemingly successful. Moriarty, testing his solidity, expresses relief and introduces the Countess to Riker. Moriarty, however, refuses to immediately relinquish control of the Enterprise, demanding a shuttlecraft to ensure their freedom. Riker, frustrated by Moriarty's continued demands and the looming planetary collision, is forced to comply. In the Shuttlebay, Riker provides Moriarty and the Countess with a shuttle, advising them to head for Meles Two, the nearest inhabited planet. Moriarty, with a self-satisfied smile, states he wishes he could see Picard's face when he realizes where he's been. Once in the shuttle, Moriarty finally releases the command lockouts, returning control to the Enterprise. However, the deception is not over. Picard, Data, and Barclay, now in the empty Holodeck grid, confirm Moriarty's release of command codes. Picard then reveals the ultimate ruse: he had programmed a Holodeck *inside* the Holodeck, running a simulation of Moriarty's program. Moriarty and the Countess never truly left the Holodeck; they were transported into a smaller, self-contained Holodeck program. Barclay produces a small, cube-shaped piece of hardware, explaining that it contains Moriarty and the Countess's continuing simulation. They believe they are halfway to Meles Two, embarking on a lifetime of adventures. The crew discusses the philosophical implications of their actions, with Picard musing on the nature of their own reality. Barclay, left alone, tentatively tests his own reality by asking the computer to end the program, and when nothing happens, he is satisfied. The Enterprise, now free, pulls away from the newly formed star, leaving Moriarty and the Countess to live out their simulated lives in blissful ignorance.
In the shuttlebay, Riker reluctantly facilitates Moriarty and the Countess’s escape aboard a pre-programmed shuttlecraft, his urgency betraying the looming planetary collision threat. Moriarty, ever the provocateur, taunts Riker with …
In the Enterprise’s shuttlebay, Riker—acting under Picard’s implicit directive—reluctantly facilitates Moriarty’s escape by ordering Worf to override security protocols and open the shuttlebay doors. The exchange is tense, with Riker’s …
In the quiet isolation of the shuttlecraft, Moriarty and the Countess share a rare moment of unguarded intimacy, gazing at the stars as they contemplate their newfound freedom. The Countess’s …
In a shuttlecraft drifting away from the Enterprise, Moriarty and the Countess share a moment of quiet intimacy, gazing at the stars as they contemplate their future. Their tender exchange—marked …
Picard, Data, and Barclay stand in the Holodeck grid after Picard commands the computer to terminate Moriarty’s simulation. The corridor vanishes, confirming the illusion’s collapse. Picard then contacts the bridge …
After Picard’s deception succeeds in convincing Moriarty and the Countess they’ve escaped the Holodeck, he and Data verify the ruse by terminating the simulation. The corridor vanishes, revealing the empty …
In the Observation Lounge, Picard and the senior staff—Data, Riker, Beverly, Troi, and Barclay—gather around the TECH cube containing Moriarty and the Countess. Picard explains how they outmaneuvered Moriarty by …
In the Observation Lounge, Picard and his senior officers debrief on their successful deception of Moriarty, revealing they trapped him in a nested Holodeck simulation—a miniature version of reality within …