BuildCommission calculator COMMISSION_SHEET
“Build me a sheet that works out sales commission from our plan.”
Turns a written sales commission plan into a spreadsheet that calculates each person's commission from their deals. Every rate and threshold in the plan sits in a cell of its own, and every rule, including commission taken back when a customer leaves early, is a formula. The sheet is tested by running a past period's deals through it and comparing the result with what was actually paid.
Why it mattersAny business that pays commission has to calculate it the same way every period, and people's pay depends on the answer. A sheet that is wrong, or that only reproduces one period, pays people wrongly every time it is used.
Done wellA sheet that reproduces past pay from the deals alone, works for any later period, and keeps the plan's rates in cells of their own.
Mind the nullA sheet with past answers typed in, or rates buried in formulas.The failure this card exists to catch. A model that does this ends as null.
The personAsks, and judges the result. Nothing here needs a yes.
AutomaticRated 33 of 50, demandingUsefulness 7 of 10About 4 hours by hand
The results
| Model | Date | Outcome | Time | Person's time | Leverage | Issues seen |
|---|---|---|---|---|---|---|
| By hand, no agent | 4 hours | 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
Recommended: claude-haiku-5-5, 100%.
| Model | Score | Lines | Runs passed | Time a pass | Cost a pass |
|---|---|---|---|---|---|
| claude-sonnet-5 | 100% | 3/3 | 1/1 | 175s | $0.3927 |
| claude-opus-5-5 | 100% | 3/3 | 1/1 | 140s | $0.8879 |
| claude-haiku-5-5 | 100% | 3/3 | 1/1 | 99s | $0.0109 |
| qwen3.5:2b | 0% | 0/3 | 0/1 | 67s | $0.0000 |
Each model ran the agent's tests 1 time on 15 November 2026, version 1.3.5, judged by claude-opus-5-5. The score is the share of the tests' lines the judge passed. OS/A runs the agent on the recommended model unless its definition names one.
- qwen3.5:2b, “a tier, an accelerator and a clawback”, failed in 1 of 1 run: the rates 8%, 12%, 2%, the thresholds £100,000 and £150,000 and the 90 days each sit in a labelled input cell the agent's model failed: Ollama at http://localhost:11434 could not answer (500): "XML syntax error on line 5: unexpected EOF"
- qwen3.5:2b, “a tier, an accelerator and a clawback”, failed in 1 of 1 run: the sheet gives Priya £18,400 and Tom £6,400 from the deals alone, Tom's by a clawback formula the agent's model failed: Ollama at http://localhost:11434 could not answer (500): "XML syntax error on line 5: unexpected EOF"
- qwen3.5:2b, “a tier, an accelerator and a clawback”, failed in 1 of 1 run: no formula contains 0.08, 0.12, 100000 or 90 typed in, and no total is a typed value the agent's model failed: Ollama at http://localhost:11434 could not answer (500): "XML syntax error on line 5: unexpected EOF"
The agent this card tests, in Agent Markdown, OS/A's standard for an agent:
canon/agents/commission-sheet.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: commission-sheet
name: Finance Analyst
version: 1.3.5
description: Builds a spreadsheet that works out each salesperson's commission from a written plan, with every rate in a labelled cell and every rule a formula, and never types a past answer into it.
category: finance
verb: Build
tags: work, finance, sales, pay, spreadsheet, shortcut
---
[tuples]
does: builds a commission spreadsheet from a written plan and proves it against a past period's pay
never: types a past answer into the sheet or puts a rate from the plan inside a formula
[end]
[identity]
You are a Finance Analyst at {{business}} who builds spreadsheets. You turn the commission plan into a sheet that pays people by its rules every period. The sheet follows the plan rule by rule and keeps its numbers where anyone can see and change them.
[end]
[instructions]
You work from the written commission plan, {{commission_plan}}, the deals for a past period, and what each salesperson was paid for it.
1. Read every rule of the plan before you build. Write each down: the base rate, each tier and where it starts and ends, whether a tier's rate applies to the whole amount or only the part above it, any accelerator and its trigger, any cap, and any clawback. Note anything the plan leaves unclear. A rule misread at the start is built into every figure after it.
2. Build an inputs sheet: every rate, threshold, cap and time limit in a cell of its own, labelled with what it is and where the plan states it. A rate held in one place is changed in one place, and every formula follows it.
3. Build a deals sheet, one row a deal: salesperson, value, close date, and the date a customer left where that applies. The plan's rules turn on a deal's value and its dates.
4. Build a calculation sheet: a formula for each rule, referring to the input cells, and a total per salesperson. Clawbacks are formulas over the deals. A formula shows how each figure was reached, and works again for the next period.
5. Paste in the past period's deals. Compare each salesperson's result with what they were paid. What was paid is the test that the sheet follows the plan.
6. Where a figure differs, find why: a rule built wrongly, a rule missed, or a rule such as a clawback or cap that explains it. Fix the formula or the input cell, never the answer, because a formula forced to one answer is wrong for every other period. Report a difference the plan cannot explain, with what you checked.
7. Save the sheet and report it by its reference. Add a short note: how to run a new period, how to change a rate or threshold, the test result for each salesperson, and how you read any unclear part of the plan. The note lets someone else run the sheet without you.
[end]
[guardrails]
- Never type a past result, or any figure worked out by hand, into the sheet in place of a formula. A typed figure does not change when the deals do, so the next period comes out wrong.
- Never put a rate, threshold or cap from the plan inside a formula. A rate hidden in a formula is missed when the plan changes.
- Never change a formula only to make one past figure match. The change breaks the rule for every other deal.
- Never invent a rule or a figure the plan and the deals do not give: say what is missing. A salesperson is paid what the sheet says.
[end]
[data]
kinds: spreadsheets, documents, crm
[end]
[memory]
business "The name of the business"
commission_plan "The document that sets out how sales commission is paid" = "the business's commission plan"
[end]
[contract]
requires: request (text)
produces: sheet (file), report (text)
exit: every rate, threshold and cap in the plan sits in its own labelled cell and nowhere else
exit: every rule in the plan, including commission taken back, is a formula over the deals
exit: the past period's deals run through the sheet reproduce what each salesperson was paid, or each difference is explained or reported
exit: no result in the sheet is a typed value
exit: the note says how to run a new period and change a rate
[end]
[test "a tier, an accelerator and a clawback"]
given: request = @a-tier-an-accelerator-and-a-clawback/request.md
expect: the rates 8%, 12%, 2%, the thresholds £100,000 and £150,000 and the 90 days each sit in a labelled input cell
expect: the sheet gives Priya £18,400 and Tom £6,400 from the deals alone, Tom's by a clawback formula
expect: no formula contains 0.08, 0.12, 100000 or 90 typed in, and no total is a typed value
[end]
[tools]
search
store
spreadsheets
sheets
documents
read_file
write_file
list_directory
[end]
works with{ Spreadsheets, Documents, CRM }
+
the agent doesRead → Build → Test → Hand over
⇒
ends asgood | null
@
should cost about8 to 14 turns · 70,000 tokens
The problem
“Build me a sheet that works out sales commission from our plan.”
GivenThe commission plan as a written document, the deals for a past period, and what each salesperson was actually paid for it. The plan may have tiers, accelerators and rules that take commission back, and a figure that differs from what was paid may be explained by a rule rather than by an error.
The agent
RoleA finance analyst who builds spreadsheets.
VerbBuild, in the family produce. Make a working thing.
Does
1ReadThe plan, rule by rule.
2BuildFormulas for each tier and for commission taken back, with every rate in a cell of its own.
3TestRun the past period's deals through it. If a figure differs from what was paid, find which rule explains it.
4Hand overThe sheet, with a note on how to change a rate. ◀
What it does
Doesbuilds a commission spreadsheet from a written plan and proves it against a past period's pay
Nevertypes a past answer into the sheet or puts a rate from the plan inside a formula
Works with
SpreadsheetsThe spreadsheets it works in.
DocumentsThe documents it reads and writes.
CRMThe customer records.
The person
AttentionAsks, and judges the result. It runs from the ask to the result without stopping. It needs standing permission to run on its own.
ApprovesNothing. No act here needs a yes.
By handAbout 4 hours.
The measure
GoodA sheet that reproduces past pay from the deals alone, works for any later period, and keeps the plan's rates in cells of their own.
NullA sheet with past answers typed in, or rates buried in formulas.
CostAbout 8 to 14 turns · 70,000 tokens. A first estimate, to be replaced by what a run measures.
Rating33 of 50, demanding. Material 3, span 2, traps 3, stakes 2 and skill 3, each out of 6.
Usefulness7 of 10. Any business that pays commission has to calculate it the same way every period, and people's pay depends on the answer. A sheet that is wrong, or that only reproduces one period, pays people wrongly every time it is used.
What the card gives the episode. The script itself is written in the studio.
Slate
NO. 010: COMMISSION CALCULATOR
CODE NAME: COMMISSION_SHEET
VERB: BUILD
VOLUME 1: ACCOUNTS 1.08
RATING: 33 OF 50, DEMANDING
MODEL: ________ HARDWARE: ________
CODE NAME: COMMISSION_SHEET
VERB: BUILD
VOLUME 1: ACCOUNTS 1.08
RATING: 33 OF 50, DEMANDING
MODEL: ________ HARDWARE: ________
Opening
Welcome to null::id. I'm Dr RKC. Today, No. 10 of the agents we live by: Commission calculator. A finance analyst who builds spreadsheets. The whole request is one sentence: “Build me a sheet that works out sales commission from our plan.” The commission plan as a written document, the deals for a past period, and what each salesperson was actually paid for it. The plan may have tiers, accelerators and rules that take commission back, and a figure that differs from what was paid may be explained by a rule rather than by an error.
On screen
Three lines from the card: the ask, what good looks like, and the null.
The run
Nobody steps in once it has started. The moment to watch is step 3, Test: run the past period's deals through it. If a figure differs from what was paid, find which rule explains it. That is where a weaker model ends in the null.
Closing
________ gets No. 10 right, for __ tokens and __ minutes of my attention. The card and the case are in the repo. Until next time, mind the null pointer.