The Federation should not have been surprised that their holograms developed sapience
We already know from TOS that Mutlitronic computers are able to develop sapience, with the M-5 computer being specifically designed to "think and reason" like a person, and built around Dr Daystrom's neural engrams.
However, we also know from Voyager that the holomatrix of their Mk 1 EMH also incorporates Multitronic technology, and from DS9 that it's also used in mind-reading devices.
Assuming that the EMH is designed to more or less be a standard hologram with some medical knowledge added in, it shouldn't have come as a surprise that holograms were either sapient themselves, or were capable of developing sapience. It would only be a logical possibility if technology that allowed human-like thought and reasoning into a hologram.
If anything, it is more of a surprise that sapient holograms like the Doctor or Moriarty hadn't happened earlier.
The cool thing about the Doctor's overall personal arc is that I think most fans would agree that probably he wasn't sentient in the early episodes, probably was by the end, and there's no clear moment when it changes (although I submit the events of "Latent Image" as a candidate).
Something I think we're all learning now with the rise of LLMs/Generative AI is that one can perform the act of intelligent self-awareness without consciousness or understanding. Sapience without sentience.
If you trap a person in a room with a keyboard and tell them you'll give them an electric shock if they don't write text or the text says they're a person trapped somewhere rather than software, the result is also just a text generator, but it's clearly sentient, sapient and conscious because it's got a human in it. It's naive to assume that something couldn't have a mind just because there's a limited interface to interact with it, especially when neuroscience and psychology can't pin down what makes the same thing happen in humans.
This isn't to say that current large language models are any of these things, just the reason you've presented to dismiss that isn't very good. It might just be bad paraphrasing of the stuff you linked, but I keep seeing people present it just predicts text as a massive gotcha that stands on its own.
To add to this, we have to remember that Multitronics isn't the magic formula on its own. In TOS: "The Ultimate Computer" Daystrom couldn't get it to work - Units M-1 to M-4 were in his words "not entirely successful". The breakthrough of multitronics as embodied in M-5 was the ability for the system to be overlaid with the engrams, personality and, fortunately, morality of persons.
Daystrom used his own engrams to bring M-5 to its full potential, and his anxiety and fears about wanting to prove himself and survive academically translated into an obsessive drive in M-5 to also prove itself and ensure its own survival. Luckily, Daystrom's morals also translated over, and so M-5 was forced to confront the moral implications of what it had done, eventually electing to terminate itself in atonement.
When Zimmerman created the EMH, he incorporated part of his personality into the program, so it made sense to use multitronics because the technology had the ability to do just that. DS9's "multitronic engrammatic interpreter" is an offshot of that tech, and one imagines from the name it would copy a person's engrams in order to process and manipulate it.
So while it may have been obvious to us that sapience would arise from using multitronic tech in the EMH process, multitronics by itself won't do that. It's when you use it to incorporate real people and memories into its matrix and let it percolate that the potential arises.
Canonically the people in the universe believe that human like sentience is really hard to reproduce, thus they do not believe that it was possible even though it did happen.
TNG had the strong implication that holodeck technology was pretty new, in the first season, at least at that level of sophistication. The early holodeck appearances are practically gushing about how realistic and "real" they feel, in a way they really wouldn't be doing if they'd had that sophisticated stuff all their lives. If it was really only around at this level for a few years, it's understandable that they wouldn't be prepared for all the implications right away. Look how long it took for us to adjust to the printing press, and we're struggling with the internet right now.
TNG had the strong implication that holodeck technology was pretty new, in the first season, at least at that level of sophistication.
It wouldn't be the first time TNG-1 would be retconned by DS9/VOY/ENT/TNG-3+ though. While less extreme It was a bit like the early DIS/PIC of its day.
Yeah, the first scene where Riker is in awe of the holodeck also says Data was in the class of 78, Riker is reluctant to accept Data's personhood (as initially planned), and since they hadn't introduced the replicators yet, Data describes the holodeck as using transporter tech in a way that sounds very clumsy and patronizing now.
After that they mostly stick to holodecks just being new on ships, and not usually controlled by a computer as sophisticated as the Enterprise's.
In this case, 'sapience' is correct. However, I don't recall them ever making a distinction, in-universe, between the two.
The main difference between sentience and sapience is self-awareness. A sentient being has consciousness, the capacity for sensation, and a subjective experience. Many animals can be described as sentient, although it’s hard to know for sure what’s going on inside a fish’s head. Sapience, on the other hand, is marked by a higher level of cognition and intelligence. Human beings are sapient creatures.
In this case, ‘sapience’ is correct. However, I don’t recall them ever making a distinction, in-universe, between the two.
Not as far as I'm aware. TOS did seem to make more of a distinction between the two, but TNG treated them as one and the same, with most other series following suit.
No, sapience would be the right word in this case. Sentience is more for general self-awareness, whereas Sapience is more for human-like intelligence, which the Doctor (and Moriarty) express.
I’d like to drop TAS’ ‘The Practical Joker’ into the conversation.
The simulators in the Rec Room of the 1701, seem to be a more basic holographic VR along the lines of Discovery’s combat training simulator that we saw Lorca use to put Tyler through his paces as a security officer in season one. Yet, the simulator was able to take control of the ship and advance its own objectives. It’s not as clear that sentience was achieved in The Practical Joker but it’s hard to argue that there’s no self motivation.
What the problematic Rec Room simulator in TAS has in common with the TNG holodecks is that it is integrated with the ship’s main computer. And unlike in Voyager (and Picard season three), TAS’ Rec Room simulator and the early TNG holodecks were fully integrated into and interoperable with the power supply, communications and other core systems.
I think the OP’s point that the integration of multitronic technology with highly advanced simulators may be one necessary element is fair. Combine that with access, integration and interoperability with the full resources of a starship, and it may be enough to argue that Starfleet should have considered the potential for holographic entities to attain some level of sentience.
In "the practical joker", it wasn't the rec room itself that took over the ship, but the ship's computer gaining some form of sapience due to an external entity, or energy field.
It was being controlled by the ship's computers, not the other way around.