A Jewish person is employed as a linecook in a restaurant and cooks an omelette on Shabbath for a customer.
Can any leftovers from the omelette (let’s say they made a double portion accidentally) be eaten by other people after Shabbath? Is any food that cook makes afterwards categorically prohibited?
Even when the cook is engaged in direct melakha, it’s unlikely they’re doing so with full and flagrant intent to transgress the law. Here in Israel, unless you know for sure the cook (or essential participant in cooking) is דתל”ש, the probable assumption is that they are אנוס or תנוק שנשבה in some way (like most “Hiloni” Israelis), partially educated here and there (and trustworthy in factual matters to which they can attest, like whether the meat they serve has a hekhsher or whether it was cooked with any dairy ingredients or in a recently used dairy pot) but ultimately denying them full legal culpability for their transgression. They don’t have sufficient knowledge to transgress במזיד and certainly not בפרהסיה.
These are important factors imho.
There is an implicit assumption behind denying restaurants certification for opening and serving customers on Shabbath: it’s that any Jewish person who transgresses the Shabbath must be doing so with full knowledge and awareness of their transgression and with full intent to transgress, and so therefore must be “prosecuted” (or at least judged unfavorably) to the full extent of the law.
Does this assumption match reality? No, I don’t think so.
Does this assumption reflect a healthy attitude towards one’s fellow Jewish people? No, I don’t think it does.
I’m not here to tell anyone what they should or shouldn’t eat. But I think this din requires public clarification.