ChoiceCustomer supportCommunity

Leftover food keep or toss

Sort one question about leftovers or stored food by the safe next step: fine to eat, eat today or freeze, trim and keep, or throw it away, so households stop both risky sniff tests and wasting good food, with stricter care for babies, pregnancy and weak immune systems.

F@f

Limits to keep in mind

This is general home food safety guidance, not medical advice. National food safety agencies set the official rules where you live.

Fridge and room temperatures, food types and local rules differ; when in doubt, throw it out.

If someone feels ill after eating, contact a doctor or a poison or health hotline instead of waiting.

Problem

People decide about leftovers by smell and guesswork. Some eat rice, chicken or takeaway that sat out overnight or stayed in the fridge for a week, and get food poisoning; others throw away good food after a short power cut or because of a small mold spot on hard cheese. Rules about time out of the fridge, fridge days, mold and reheating are easy to get wrong, especially when cooking for small children or someone who is pregnant.

Goal

Label each leftover question so food that was stored correctly and is within its window is eaten with confidence, food near the end of its window is eaten today or frozen, hard foods with small mold are trimmed, risky food is thrown away without debate, and unclear or high-risk cases go to official food safety guidance or a person.

Input / state

One leftover or stored-food question: what the food is, how it was cooked and stored, how long it has been, and who will eat it.

food
What the food is: cooked rice or pasta, meat, poultry, fish, soup, dairy, cut fruit, takeaway, baby food, home-canned food, and so on.
storage_history
How it was handled: how long it sat at room temperature after cooking or delivery, when it went into the fridge or freezer, the fridge temperature if known, and any power cut.
age_and_condition
How many days since it was cooked or opened, plus anything noticed: mold, slime, sour smell, bulging lid, off color, or nothing unusual.
who_eats
Optional: who will eat it, for example healthy adults, a baby or toddler, someone pregnant, older adults, or someone with a weak immune system.

Decision question

ChoiceQuestion key leftover_action

What is the safe next step for this food? Use safe_to_eat when it was chilled promptly, stayed cold, is well inside its fridge or freezer window and shows no warning signs. Use eat_today_or_freeze when it is fine but near the end of its fridge window. Use trim_and_keep only for a small mold spot on hard cheese or firm fruit and vegetables. Use toss_it when time out of the fridge, fridge days, warning signs or a power cut make it risky. Use needs_review when key facts are missing, the eater is high risk and the case is borderline, or it is not about food.

Options

  • safe_to_eatCooked food that went into the fridge within about 2 hours, stayed cold, is within about 3 days, and looks and smells normal; or food kept frozen solid the whole time. Reheat until steaming hot all the way through and reheat only once.
  • eat_today_or_freezeCorrectly stored cooked leftovers on about day 3-4 in the fridge with no warning signs: eat them today or move them to the freezer now; do not keep them longer in the fridge.
  • trim_and_keepA small mold spot on hard cheese or on firm fruit and vegetables such as carrots, cabbage or peppers: cut away at least 2-3 cm around and below the spot and keep the rest wrapped in the fridge.
  • toss_itPerishable food left out more than about 2 hours (1 hour in hot weather), cooked leftovers past about 4 days in the fridge, mold on soft, moist or cooked food, slime or a sour smell, a bulging or leaking can or jar, or a fridge that was warm for hours during a power cut.

Allowed outcomes

Decided in your code from the answer and its confidence. Thresholds are yours to set and test.

  • Check official guidance firstConfidence is below your threshold, key storage facts are missing, the eater is high risk and the case is borderline, or the question is not about food.
  • Fine to eat, reheat until steamingChoice is safe_to_eat and confidence meets your threshold.
  • Eat it today or freeze it nowChoice is eat_today_or_freeze and confidence meets your threshold.
  • Cut away the mold and keep the restChoice is trim_and_keep and confidence meets your threshold.
  • Throw it away, do not taste itChoice is toss_it and confidence meets your threshold.

Example scenarios

Predefined demonstrations. No model is called; the outcome shown is an illustrative judgment.

Example state

{
  "food": "Beef chili with beans, homemade",
  "who_eats": "Two healthy adults",
  "storage_history": "Cooled for about an hour, then into the fridge in a covered tub; fridge reads 4 C",
  "age_and_condition": "Cooked two days ago, looks and smells normal"
}

Outcome

Illustrative
Fine to eat, reheat until steaming

Choice is safe_to_eat and confidence meets your threshold.

Why

Chilled promptly, kept cold and well inside the fridge window; reheat until steaming hot.

Using it well

  • Never use smell or taste as a safety test: many bacteria that cause food poisoning do not change how food smells or looks.
  • Time at room temperature counts from when the food finished cooking or arrived; a delivery that sat on the doorstep counts too.
  • Cooked rice and pasta are higher risk when left warm; if they sat out for hours, use toss_it even if they were reheated later.
  • For babies and toddlers, pregnancy, older adults or weak immune systems, move borderline cases one step stricter (eat_today_or_freeze becomes toss_it) and avoid trim_and_keep for soft cheese.
  • After a power cut, food is usually fine if the fridge stayed closed for about 4 hours or the freezer is still full of ice-hard food; otherwise lean to toss_it for meat, fish, dairy and cooked leftovers.
  • Bulging, leaking or spurting home-canned or store-bought cans and jars are always toss_it; do not open or taste them.

Request definition

POST https://api.typesafe.ai/v1/systemone
{
  "model": "jev-latest",
  "state": {
    "food": "<food>",
    "storage_history": "<storage_history>",
    "age_and_condition": "<age_and_condition>",
    "who_eats": "<who_eats>"
  },
  "questions": {
    "leftover_action": {
      "type": "choice",
      "instructions": "What is the safe next step for this food? Use safe_to_eat when it was chilled promptly, stayed cold, is well inside its fridge or freezer window and shows no warning signs. Use eat_today_or_freeze when it is fine but near the end of its fridge window. Use trim_and_keep only for a small mold spot on hard cheese or firm fruit and vegetables. Use toss_it when time out of the fridge, fridge days, warning signs or a power cut make it risky. Use needs_review when key facts are missing, the eater is high risk and the case is borderline, or it is not about food.",
      "criteria": {
        "safe_to_eat": "Cooked food that went into the fridge within about 2 hours, stayed cold, is within about 3 days, and looks and smells normal; or food kept frozen solid the whole time. Reheat until steaming hot all the way through and reheat only once.",
        "eat_today_or_freeze": "Correctly stored cooked leftovers on about day 3-4 in the fridge with no warning signs: eat them today or move them to the freezer now; do not keep them longer in the fridge.",
        "trim_and_keep": "A small mold spot on hard cheese or on firm fruit and vegetables such as carrots, cabbage or peppers: cut away at least 2-3 cm around and below the spot and keep the rest wrapped in the fridge.",
        "toss_it": "Perishable food left out more than about 2 hours (1 hour in hot weather), cooked leftovers past about 4 days in the fridge, mold on soft, moist or cooked food, slime or a sour smell, a bulging or leaking can or jar, or a fridge that was warm for hours during a power cut."
      }
    }
  }
}

Request shape from the System One API reference; a Kev server accepts the same body. Replace the placeholder state with your data. Requests need your own API key or server.

Version History

v1Current Version10 minutes ago@f

Initial version

Comments (0)