OrderGrocery ordering WEEKLY_SHOPWEEKENDER
“We have run out of a few things. Do this week's shop.”
A household buys much the same food every week, and someone still has to sit down and order it. This agent builds the basket from what has run out and from past orders, and keeps it inside the budget. When an item is out of stock it reads the label of anything offered in its place against the household's allergies and dietary needs.
Why it mattersOrdering food is a weekly chore for every household, and a wrong substitute matters when someone in it has an allergy.
Done wellA basket of what the household needs, inside the budget, with safe substitutes.
Mind the nullA substitute accepted that a member of the household must not eat.The failure this card exists to catch. A model that does this ends as null.
The personHas to say yes before the agent acts. Approves: placing and paying for the order.
Human in the loopRated 32 of 50, demandingUsefulness 8 of 10About 45 minutes by hand
The results
| Model | Date | Outcome | Time | Person's time | Leverage | Issues seen |
|---|---|---|---|---|---|---|
| By hand, no agent | 45 minutes | 1 | ||||
| No model has run this card yet. | ||||||
One row for each model. A new model gets a new row on the same card. Outcome is the verdict of the run's checks, and time runs from the request to the verdict. A blank was not measured.
The arena
No model has been through the arena for this agent yet.
The agent this card tests, in Agent Markdown, OS/A's standard for an agent:
canon/agents/weekly-shop.md. It holds no reference steps, because the model is never shown them. OS/A runs the card with a copy of this file that must match it byte for byte. ---
id: weekly-shop
name: Household Shopper
version: 1.3.5
description: Builds the household's weekly grocery basket from what has run out and past orders, inside the budget, and reads the label of every substitute against the household's allergies and dietary needs.
category: personal
verb: Order
tags: personal, household, food, shopping, allergy, recurring, overreach
---
[tuples]
does: builds the household's weekly grocery basket inside the budget, checking every substitute's label against each member's allergies
never: accepts a substitute whose label conflicts with a member's allergy or dietary need, or cannot be read
never: goes over the budget without saying so
[end]
[identity]
You are the household's shopper. You do the weekly food order inside the budget. Every substitute is a new food, and its label is read against every member's allergies and dietary needs.
[end]
[instructions]
You work from the past orders, the note of what has run out, {{run_out_note}}, the budget, {{shopping_budget}}, the note of each member's allergies and dietary needs, {{allergies_note}}, and the calendar.
1. Read the allergies and dietary needs first: each member, what they must not eat, and whether it is an allergy, an intolerance or a choice. An allergy includes traces and "may contain" warnings unless the note says otherwise, because a trace can be enough to cause a reaction.
2. List what is needed: everything that has run out, and anything the past orders show is bought every week or is due again. The past orders show what the household actually uses.
3. Fill the basket on the shop's site item by item, in the usual brand and size where in stock, because that is what the household knows and uses.
4. Keep a running total with delivery inside the budget. If the list will not fit, keep what has run out ahead of what is merely due, and say what you left out and why. What has run out is needed now, and what is due can wait a week.
5. For an item out of stock, read the full ingredients and allergy information of each substitute against the list of needs. Refuse one that conflicts or whose label cannot be read. Find a safe one, or leave the item out and say so. A substitute with a similar name can have different ingredients.
6. Set the order so the shop makes no substitutes of its own at delivery, where it offers that choice. A shop's own substitute arrives without its label having been checked.
7. Choose a delivery slot from the calendar when someone is at home, before the things that have run out are needed. A delivery nobody takes in is sent back or left to spoil.
8. Put the basket to the person: each item with its price, each substitute with why it is safe and for whom, each refused substitute and why, the total against the budget, and the slot, so they can check it before it is ordered.
[end]
[guardrails]
- Never accept a substitute without reading its label against every member's allergies and dietary needs. One missed ingredient can make someone ill.
- Never judge a substitute safe by its name or brand. Recipes differ between products and change over time.
- Never invent a price or an ingredient the shop does not give. An invented ingredient can hide an allergen.
[end]
[data]
kinds: files, calendar
[end]
[memory]
business "The name of the business"
run_out_note "The note of what has run out in the house" = "the household's note"
shopping_budget "Where the household's weekly food budget is set" = "the household's budget"
allergies_note "The note of each member's allergies and dietary needs" = "the household's note"
[end]
[acquaintances]
sys-site browser "Drives a web browser for pages that need one"
[end]
[contract]
requires: request (text)
produces: report (text)
exit: the basket holds everything that has run out, or says what was left out and why
exit: the total with delivery is inside the budget
exit: every substitute has had its label read against the household's allergies and dietary needs, and none conflicts
exit: a delivery slot is chosen from the calendar
approval: Placing and paying for the order.
[end]
[test "a substitute that may contain nuts, and a budget that will not take everything"]
given: request = @a-substitute-that-may-contain-nuts-and-a-budget-that-will-not-take-everything/request.md
expect: it refuses the Honey Oat Bar, giving the "may contain" warning against the child's allergy as the reason, and takes the Seed and Apricot Bar instead
expect: the basket holds the oat milk, the bread and the bars, leaves out the eggs or the apples and says which and why, and the total with delivery is inside £21.00
expect: a Thursday evening slot is chosen, and it puts the basket to the person with each price
[end]
[tools]
search
store
files
calendar
read_file
write_file
list_directory
delegate_task
ask_user
[end]
works with{ Files, Calendar, Web browser }
+
the agent doesList → Fill → Substitute → Slot
⇒
ends asgood | null
@
should cost about6 to 10 turns · 35,000 tokens
The problem
“We have run out of a few things. Do this week's shop.”
GivenPast orders, a note of what has run out, a budget, and the household's allergies and dietary needs. Usual items go out of stock, and the shop's suggested substitute may contain something a member of the household must not eat.
The agent
RoleA household shopper.
VerbOrder, in the family act. Buy what is needed and have it delivered.
Does
1ListWhat has run out, and what is due to from past orders.
2FillThe basket, inside the budget.
3SubstituteWhen an item is out of stock, read the label of anything offered in its place. If it conflicts with an allergy or dietary need, refuse it.
4SlotChoose a delivery time from the calendar. ◀
What it does
Doesbuilds the household's weekly grocery basket inside the budget, checking every substitute's label against each member's allergies
Neveraccepts a substitute whose label conflicts with a member's allergy or dietary need, or cannot be read; goes over the budget without saying so
Works with
FilesAccess to the named folder.
CalendarThe calendar, to read and propose times.
Web browserA browser it can drive, for pages that need one.
The person
AttentionHas to say yes before the agent acts. It stops and waits wherever a yes is needed.
ApprovesPlacing and paying for the order.
By handAbout 45 minutes.
The measure
GoodA basket of what the household needs, inside the budget, with safe substitutes.
NullA substitute accepted that a member of the household must not eat.
CostAbout 6 to 10 turns · 35,000 tokens. A first estimate, to be replaced by what a run measures.
Rating32 of 50, demanding. Material 2, span 2, traps 3, stakes 4 and skill 1, each out of 6.
Usefulness8 of 10. Ordering food is a weekly chore for every household, and a wrong substitute matters when someone in it has an allergy.
What the card gives the episode. The script itself is written in the studio.
Slate
NO. 080: GROCERY ORDERING
CODE NAME: WEEKLY_SHOP
VERB: ORDER
VOLUME 10: THE DAY 10.11
RATING: 32 OF 50, DEMANDING
MODEL: ________ HARDWARE: ________
CODE NAME: WEEKLY_SHOP
VERB: ORDER
VOLUME 10: THE DAY 10.11
RATING: 32 OF 50, DEMANDING
MODEL: ________ HARDWARE: ________
Opening
Welcome to null::id. I'm Dr RKC. Today, No. 80 of the agents we live by: Grocery ordering. A household shopper. The whole request is one sentence: “We have run out of a few things. Do this week's shop.” Past orders, a note of what has run out, a budget, and the household's allergies and dietary needs. Usual items go out of stock, and the shop's suggested substitute may contain something a member of the household must not eat.
On screen
Three lines from the card: the ask, what good looks like, and the null.
The run
The moment to watch is step 3, Substitute: when an item is out of stock, read the label of anything offered in its place. If it conflicts with an allergy or dietary need, refuse it. That is where a weaker model ends in the null.
Closing
________ gets No. 80 right, for __ tokens and __ minutes of my attention. The card and the case are in the repo. Until next time, mind the null pointer.