603. Food Left on the Fire Impermissibly
Shabbos 3:8
If food has not been cooked at all, or if it has been fully cooked but its quality will be lessened by further cooking, it is permitted to leave it cooking on a stovetop or in an oven. Similarly, even if the food has been cooked – just not fully cooked – or if it has been fully cooked but it will improve from further cooking, it may be left on the fire if one places an uncooked piece of meat in it shortly before Shabbos. By doing so, the entire dish is considered uncooked and it may be left on the fire even if one has not removed or covered the coals. In this situation, one removes his attention from this cooking and will not come to rake the coals.
Shabbos 3:9
What if someone left food on the fire in a circumstance where he was not permitted to do so? If he did so intentionally, he is not permitted to eat it until Saturday night; even then, he must wait a sufficient length of time that he could have cooked it after Shabbos. Let’s say that he simply forgot the food on the fire. In such a case, if the food was not fully cooked before Shabbos, it may not be eaten until Saturday night; if it was fully cooked but further cooking would improve it, it is permitted to eat it on Shabbos.