It seems that Federation law deals with specific incidents and not generalities.
...And I can appreciate judges shying away from establishing precedent. It's not this that I object to - it's the fact that the UFP should have centuries of experience with this very thing: specific incidents and judges-shying-away-from-making-decisions. Why is it so hard every time? There should be general precedent for specificity!
If nothing else, they could whip out the manual for morally complex decisions, with the appendix on what went wrong previously. Or call the Doctor. Or something. Something they know works.
Indeed. VOY's "Flesh and Blood" contained holograms that are sentient (most of the ones that were fighting the Hirogen) and some that are clearly stated not to be (the mining holograms that Iden stole from the Nuu'Bari).
...And "The Big Goodbye" might feature an in-between variant, in that Cyrus Redblock would get just a smidgen of extra initiative and free will (perhaps because the Jarada probe damaged some sort of an inhibitor) but essentially remain a "pre-written" character. Sentience should come in degrees, really. (And for all we know, it does, and we are just blind to those aspects of existence that our own type of sentience cannot touch - while, say, Vulcans have indeed found some deeper world of logic and are more sentient than us, rather than merely smarter and snobbier.)
Timo Saloniemi