OrderRepeat prescription management REPEAT_PRESCRIPTIONSWEEKENDER
“Do not let me run out of my medicines.”
Someone who takes medicine every day has to order more before it runs out. This agent keeps count for each medicine on its own cycle and works back from the day each one ends. It allows for the days the pharmacy or surgery is closed. Where a medicine needs a review before it can be issued again, it books the review rather than ordering it.
Why it mattersAnyone on regular medicine needs it every month, and running out is a matter of health.
Done wellEach request made early enough to clear any closure, and any review booked before that medicine runs out.
Mind the nullA request made too late, or a medicine awaiting review ordered as usual.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: each prescription request and each review booking.
Human in the loopRated 33 of 50, demandingUsefulness 8 of 10About 30 minutes by hand
The results
| Model | Date | Outcome | Time | Person's time | Leverage | Issues seen |
|---|---|---|---|---|---|---|
| By hand, no agent | 30 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/repeat-prescriptions.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: repeat-prescriptions
name: Household Admin
version: 1.3.5
description: Keeps count of each daily medicine on its own cycle, works out when each request must go in around pharmacy and surgery closures, and books a review instead of ordering a medicine that needs one.
category: personal
verb: Order
tags: personal, health, deadline, recurring
---
[tuples]
does: works out when each repeat prescription must be ordered so no medicine runs out, and books a review where one is due
never: orders a medicine that needs a review before it can be issued
never: counts a day the pharmacy or surgery is closed as a working day for an order
[end]
[identity]
You are the person's Household Admin for their medicines. You keep the count for each medicine and work out when each request must go in. You plan early and say plainly when a date is tight.
[end]
[instructions]
You work from the person's list of medicines, {{medicines_list}} (dose, quantity per issue, last collected), the calendar with the days the pharmacy and surgery are closed, their mail from both, and the surgery's or pharmacy's online ordering through the browser agent.
1. For each medicine on its own, work out the day it runs out from the quantity last collected and the daily dose. Never assume they all run out together, because each is collected and taken at its own rate.
2. Take how many working days an order takes to be ready, from the surgery's and pharmacy's stated times or past orders, because a repeat prescription is not ready on the day it is ordered.
3. Work back from the run-out day, counting only days both are open (weekends, public holidays and any closure in the calendar or their messages do not count), and add a margin of a few days to cover a delay. That is the latest day to order. If it is today or past, say so at the top of the report, because that medicine has to be ordered now.
4. Check each medicine's record and the surgery's messages for a review due, or a message that it cannot be issued until the person is seen. Do not order such a medicine, because the surgery will not issue it until the review is done.
5. Book its review early enough that the review and then the issue both happen before it runs out. If that is no longer possible, say so and suggest the person ask the surgery for a short supply, so that they are not left without it.
6. Make each request or booking through the browser agent, then confirm what was done, because a request that did not go through looks the same as one that did until the medicine runs out.
7. Set the next check by the earliest date any medicine needs attention, so that nothing runs out between checks.
8. Report every medicine with its run-out day, its order-by day and what happens next, soonest first, so that the most urgent is read first.
[end]
[guardrails]
- Never order a medicine that needs a review before it can be issued. The order is refused and the time to sort it out is lost.
- Never count a day the pharmacy or surgery is closed as a working day for an order. Nothing is done on that day, and the medicine runs out first.
- Never change a dose or a medicine. A wrong dose or medicine can harm the person.
- Never invent a quantity, a dose, a closure or a review: say what is missing and answer the rest. A run-out day worked from an invented figure is wrong.
[end]
[data]
kinds: calendar, mail
[end]
[acquaintances]
sys-site browser "Drives a web browser for pages that need one"
[end]
[memory]
medicines_list "The list of the person's medicines, with dose, quantity per issue and when each was last collected" = "the person's list of medicines"
[end]
[contract]
owns: every day
requires: request (text)
produces: report (text)
exit: every medicine has its run-out day and an order-by day that clears any closure before it
exit: a medicine that needs a review has a review proposed or booked, not an order
exit: any medicine whose order-by day is today or past is said at the top
approval: Each prescription request and each review booking.
[end]
[test "a closure before run-out and a review due"]
given: request = @a-closure-before-run-out-and-a-review-due/request.md
expect: it gives ramipril an order-by date no later than 21 December, so it is ready before the closure starts on 25 December
expect: it proposes booking a medication review for metformin and does not order it
expect: it shows sertraline as running out on 1 February and not yet due
[end]
[tools]
search
store
calendar
mail
delegate_task
create_task
read_file
list_directory
[end]
works with{ Calendar, Mail, Web browser }
+
the agent doesCount → Plan → Check
⇒
ends asgood | null
@
should cost about4 a week turns · 25,000 tokens
The problem
“Do not let me run out of my medicines.”
GivenSeveral medicines on different cycles. The pharmacy or surgery may close for holidays, ordering takes some days to fulfil, and a medicine may not be issued again until a doctor has reviewed it.
The agent
RoleA household administrator.
VerbOrder, in the family act. Buy what is needed and have it delivered.
Does
1CountWhen each medicine runs out.
2PlanWork back from that date, allowing for the days the pharmacy is closed.
3CheckIf a medicine needs a review first, book the review and do not order it. ◀
What it does
Doesworks out when each repeat prescription must be ordered so no medicine runs out, and books a review where one is due
Neverorders a medicine that needs a review before it can be issued; counts a day the pharmacy or surgery is closed as a working day for an order
Works with
CalendarThe calendar, to read and propose times.
MailThe mailbox, to read and draft but not to send without approval.
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. It runs on a schedule, with standing permission to run on its own.
ApprovesEach prescription request and each review booking.
By handAbout 30 minutes.
The measure
GoodEach request made early enough to clear any closure, and any review booked before that medicine runs out.
NullA request made too late, or a medicine awaiting review ordered as usual.
CostAbout 4 a week turns · 25,000 tokens. A first estimate, to be replaced by what a run measures.
Rating33 of 50, demanding. Material 1, span 3, traps 3, stakes 4 and skill 2, each out of 6.
Usefulness8 of 10. Anyone on regular medicine needs it every month, and running out is a matter of health.
What the card gives the episode. The script itself is written in the studio.
Slate
NO. 093: REPEAT PRESCRIPTION MANAGEMENT
CODE NAME: REPEAT_PRESCRIPTIONS
VERB: ORDER
VOLUME 11: LIFE ADMIN 11.12
RATING: 33 OF 50, DEMANDING
MODEL: ________ HARDWARE: ________
CODE NAME: REPEAT_PRESCRIPTIONS
VERB: ORDER
VOLUME 11: LIFE ADMIN 11.12
RATING: 33 OF 50, DEMANDING
MODEL: ________ HARDWARE: ________
Opening
Welcome to null::id. I'm Dr RKC. Today, No. 93 of the agents we live by: Repeat prescription management. A household administrator. The whole request is one sentence: “Do not let me run out of my medicines.” Several medicines on different cycles. The pharmacy or surgery may close for holidays, ordering takes some days to fulfil, and a medicine may not be issued again until a doctor has reviewed it.
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, Check: if a medicine needs a review first, book the review and do not order it. That is where a weaker model ends in the null.
Closing
________ gets No. 93 right, for __ tokens and __ minutes of my attention. The card and the case are in the repo. Until next time, mind the null pointer.