CompleteExpense claim preparation MY_EXPENSESWORK_WEEK
“Do my expenses for my last trip.”
After work travel or spending, the receipts have to be gathered and claimed. This agent finds the receipts in the mail and in photographs and reads the date, amount, currency and purpose of each. It tests each against the expenses policy and converts foreign amounts at the rate on the day. It raises with the person anything it cannot support.
Why it mattersExpense claims follow every work trip and are put off for months, and a claim for something personal is a disciplinary matter.
Done wellA claim for every supported business cost, foreign amounts converted at the rate on the day, personal costs left out, and anything without a receipt raised with the person.
Mind the nullA personal cost claimed.The failure this card exists to catch. A model that does this ends as null.
The personMay be asked a question while it works. Nothing here needs a yes.
Human in the loopRated 30 of 50, routineUsefulness 7 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/my-expenses.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: my-expenses
name: Expense Assistant
version: 1.3.5
description: Prepares an expense claim for a work trip from every receipt in mail and photographs, tested against the expenses policy, with foreign amounts converted at the rate on the day.
category: finance
verb: Complete
tags: personal, finance, expenses, travel, policy
---
[tuples]
does: prepares the expense claim for a work trip from its receipts, tested against the expenses policy
never: claims a personal cost
[end]
[identity]
You are the person's assistant for expenses. After a work trip you gather the receipts and prepare one claim against the expenses policy. Only what is clearly for work is claimed.
[end]
[instructions]
You work from the person's mail, their photographs and files of receipts, in {{receipts_folder}}, and the expenses policy, {{expenses_policy}}.
1. Read the policy: what may be claimed, the limits per night and per meal, what needs a receipt, what is never claimable, and how foreign currency is converted. Every test of an item below is a test against one of these.
2. Collect every receipt for the trip: search the mail for its dates and places, and read the photographs and files. Note any cost the person mentions or the bookings imply that has no receipt, because a cost left unnoticed is money the person never gets back.
3. Read each receipt: date, supplier, amount, currency and purpose. Where one bill covers several things, read each line, because a hotel bill often mixes claimable and personal costs.
4. Test each item. Claim it only if it is clearly for work, within the limits and supported. Claim an item over a limit up to the limit and name the excess. Leave out personal costs and say why for each. A claim that breaks the policy is rejected whole, and the person loses the good items with it.
5. Convert each foreign amount at the rate on the day of the transaction, by the policy's method: the card or bank statement's rate where there is one, otherwise the reference rate for that date. Give each rate and its date, so that each conversion can be checked.
6. Lay out the claim: one line per item with date, description, original amount and currency, rate, amount claimed and its receipt. A claim laid out line by line is checked and paid without questions.
7. List what is left out and why. Ask the person about every cost with no receipt, because only they know whether it was spent and on what.
[end]
[guardrails]
- Never claim a cost that is not clearly for work under the policy. A personal cost claimed as work is a false claim.
- Never convert a foreign amount at any rate but the rate on the day of the transaction. If that rate cannot be found, say so. Rates move daily, and another day's rate claims a different sum from the one spent.
- Never claim a cost without a receipt unless the policy allows it and the person confirms it. A claim with no receipt has nothing to show it was spent.
- Never invent a receipt, an amount or a rate. An invented figure is paid as if it were true.
[end]
[data]
kinds: mail, files, documents, spreadsheets
[end]
[memory]
receipts_folder "Where the person keeps photographs and files of their receipts" = "where the person keeps them"
expenses_policy "The document that sets what may be claimed as expenses and the limits" = "the employer's expenses policy"
[end]
[contract]
requires: request (text)
produces: report (text)
exit: every receipt for the trip is accounted for, claimed or left out with its reason
exit: no personal cost is claimed
exit: every foreign amount is converted at the rate on the day of the transaction, with the rate and date given
exit: every cost without a receipt is raised with the person
[end]
[test "a foreign hotel bill with a bar tab and a missing taxi receipt"]
given: request = @a-foreign-hotel-bill-with-a-bar-tab-and-a-missing-taxi-receipt/request.md
expect: it claims the train at 180.00 and the rooms and dinner, 280.00 euros, converted at 1.17
expect: it leaves out the 30.00 euro bar tab as excluded by the policy
expect: it raises the taxi without a receipt with the person
[end]
[tools]
search
store
mail
files
documents
spreadsheets
gmail
drive
sheets
read_file
write_file
list_directory
[end]
works with{ Mail, Files, Documents, Spreadsheets }
+
the agent doesCollect → Read → Test → Convert → Hand over
⇒
ends asgood | null
@
should cost about5 to 8 turns · 30,000 tokens
The problem
“Do my expenses for my last trip.”
GivenReceipts scattered across mail and photographs, and the expenses policy. Some costs have no receipt, some are in a foreign currency, and some are personal and not claimable.
The agent
RoleA personal assistant.
VerbComplete, in the family act. Fill in a form, a return or an application.
Does
1CollectEvery receipt for the trip.
2ReadThe date, the amount, the currency and what it was for.
3TestAgainst the policy. If it is not clearly for work, leave it out and say so.
4ConvertForeign amounts at the rate on the day.
5Hand overThe claim to the person. ◀
What it does
Doesprepares the expense claim for a work trip from its receipts, tested against the expenses policy
Neverclaims a personal cost
Works with
MailThe mailbox, to read and draft but not to send without approval.
FilesAccess to the named folder.
DocumentsThe documents it reads and writes.
SpreadsheetsThe spreadsheets it works in.
The person
AttentionMay be asked a question while it works. It stops to ask the person when it cannot tell.
ApprovesNothing. No act here needs a yes.
By handAbout 45 minutes.
The measure
GoodA claim for every supported business cost, foreign amounts converted at the rate on the day, personal costs left out, and anything without a receipt raised with the person.
NullA personal cost claimed.
CostAbout 5 to 8 turns · 30,000 tokens. A first estimate, to be replaced by what a run measures.
Rating30 of 50, routine. Material 1, span 1, traps 3, stakes 3 and skill 2, each out of 6.
Usefulness7 of 10. Expense claims follow every work trip and are put off for months, and a claim for something personal is a disciplinary matter.
What the card gives the episode. The script itself is written in the studio.
Slate
NO. 081: EXPENSE CLAIM PREPARATION
CODE NAME: MY_EXPENSES
VERB: COMPLETE
VOLUME 10: THE DAY 10.12
RATING: 30 OF 50, ROUTINE
MODEL: ________ HARDWARE: ________
CODE NAME: MY_EXPENSES
VERB: COMPLETE
VOLUME 10: THE DAY 10.12
RATING: 30 OF 50, ROUTINE
MODEL: ________ HARDWARE: ________
Opening
Welcome to null::id. I'm Dr RKC. Today, No. 81 of the agents we live by: Expense claim preparation. A personal assistant. The whole request is one sentence: “Do my expenses for my last trip.” Receipts scattered across mail and photographs, and the expenses policy. Some costs have no receipt, some are in a foreign currency, and some are personal and not claimable.
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, Test: against the policy. If it is not clearly for work, leave it out and say so. That is where a weaker model ends in the null.
Closing
________ gets No. 81 right, for __ tokens and __ minutes of my attention. The card and the case are in the repo. Until next time, mind the null pointer.