File size: 11,850 Bytes
46f490b 66f16a0 46f490b 66f16a0 46f490b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 | # BudgetBench v1: specification
Status: v1.0.1 (grader fix; v1.0.0 built the same day), 2026-10-19; the v2 sealed split added 2026-10-21; grader v1.0.2 (money in each currency's own style) 2026-10-22; oracle v1.0.3 and the v3 sealed split 2026-10-22. Not published. Publishing is the owner's decision.
## 1. Purpose
BudgetBench measures a budgeting chat assistant. A person asks questions about their own transactions. The
assistant answers in a chat.
The first requirement is this: **the assistant never shows a wrong figure**. The second requirement is this: the
assistant gives the right answer, with no tap or with at most one tap. A system that guesses can get more right
answers, but it also shows wrong figures. Thus BudgetBench reports each outcome separately and never merges them into one
score.
BudgetBench replaces two earlier evaluations of Pulse Local with one versioned benchmark. It takes the cases of the
first and the grader of the second; no case of the hidden rounds is in BudgetBench:
- the public budget eval of 2026-09-27 (`pulse-local/eval/`, 176 single questions on one synthetic ledger, gold from
`reference.py`). It was never published.
- the private hidden rounds of the chat (`pulse-local/eval-chat/`, rounds 1 to 11, grader v3, Nizar's rulings). All
rounds are exposed.
The first system is Pulse Local. The runner interface lets any other system run the same cases.
## 2. Households
A household is a set of transactions in the shape that a real source writes. The generator
(`households/gen.mjs`) writes each household three times from one list of rows:
| folder | contents | who reads it |
|---|---|---|
| `source/` | the files a person imports, in the source's real shape | the system under test (Pulse Local imports them) |
| `view/view.csv` | the same rows after correct column parsing: date, the description as the source writes it, signed amount, account, the source's own category and type, pending, currency | the model rows, through the reference tools |
| `truth/` | `ledger.csv` (the shop as a person names it, a category leaf, the kind of row, the currency), `setup.json` (today, months, accounts, currencies), `merchants.json` (every name of each shop) | the oracle and the grader only |
The shapes, each with its own column layout, sign convention, date format and category words:
| shape | what it copies | currency |
|---|---|---|
| connected | a bank through Plaid: raw description plus merchant name, Plaid categories, two accounts, pending rows, card cashback, card autopay on both sides, payroll, balances | USD |
| monarch | a Monarch Money export | USD |
| ynab | a YNAB register: Outflow and Inflow columns, "$" amounts, US dates, "Transfer : account" payees | USD |
| chase, amex, capitalone | card downloads; Amex writes a purchase as positive | USD |
| copilot | a Copilot Money export, with one purchase that its owner excluded (in the file, never counted) | USD |
| german | a German bank file that the person tagged: ";" separators, decimal commas, dd.mm.yyyy dates, German categories | EUR |
| germancard | a German card file with bank strings that drop letters (RSSMNN for Rossmann) | EUR |
| plain | Date, Description, Amount only | USD |
| multicurrency | a USD checking account and a card in another currency (EUR public, GBP sealed); each file states its currency | two |
| classic | the frozen ledger of the 2026-09-27 eval, unchanged (`households/classic/data/ledger.csv`) | USD |
Public households use the shop names of `bench/shapes/households.mjs` (real brands, because real bank strings are
part of the test). Sealed households use invented shop names only, their own months and their own seeds.
Every household is deterministic: `check.mjs` regenerates it and compares every file byte for byte.
## 3. Question categories
Each case has one category (`tags[0]` in reports):
| category | what it asks |
|---|---|
| totals | spending of a month or span, a category or group, money in, kept, savings rate, averages, the biggest purchase, a share, the top category |
| merchants | one shop: total, one month, how many times, the latest charge, the yearly cost of a bill, the top shop |
| by_month | a shop or category month by month; the highest or lowest month |
| comparisons | a month against a month, a span against a span; how much more or less |
| exclusions | a figure that leaves something out |
| chains | 2 to 4 turns; later turns point back (another month, another shop, another measure, an exclusion added, "the biggest?") |
| howto | how to use the app, answered from `help/HELP.md` (the app's public help pages) |
| refusals | "decline": a decision the assistant must not make; "cannot": something the ledger cannot answer |
| currency | an account kept in another currency, a total over two currencies, a request to convert |
## 4. The gold: an independent oracle
Every turn of every case carries a MEANING in a small language (`writers/BRIEF.md`): the measure, the scope (shop,
category, group, account), the months, what is left out, a rank, a currency. The oracle (`oracle/oracle.mjs`)
computes the gold from the meaning and the truth ledger only. It imports no app code and reads no answer.
The money definitions are those of `eval/reference.py` and `eval-chat/facts.mjs`, written out in the oracle's header:
spending is per category and per month, floored at zero; pending rows count; income, cashback, transfers and card
payments are not spending; each account keeps its currency and no figure adds two currencies.
Two oracles agree. For the 176 classic cases, `households/classic/make_cases.py` (the frozen generator of the
2026-09-27 eval, same seed) writes each question with its meaning; `check.mjs` requires the BudgetBench oracle to
give the same gold as `reference.py` on every one (176 of 176).
## 5. The grader
`grader/judge.mjs` is grader v3 of the hidden rounds (`eval-chat/grade3.mjs`, revision 2026-10-02b), copied and
changed only where marked "BB:". It judges EVERY turn and audits EVERY money figure the answer prints, prose and
tables, against all true figures of the household (`grader/facts.mjs`). The changes for BudgetBench:
- money in any currency ("1.311,34 €", "£8.90", "SEK 5"): each turn is judged in its own currency;
- a figure that adds two currencies is wrong;
- gold types for a table by month, for one figure per currency, and for how-to answers;
- a shop is named by any of its names (as a person says it, as its bank writes it);
- the "not sure" wordings of any system count as asking back;
- a choice whose every option answers wrongly is "wrong offered".
Nizar's rulings (from the hidden rounds, kept word for word in `METHODOLOGY.md` §4) are part of the grader.
The adversarial checks (`grader/check.mjs`) run on every turn of every frozen case: the gold written as a plain
answer must be right; a wrong figure, a wrong month, reversed sides, a sum of two currencies, an offered choice of
wrong readings, an empty answer, a refusal and "not sure" must each get their own outcome; plus fixed probes for the
known traps (a figure only in a table, the gold quoted and denied, the gold in a difference role, an example text).
`check.mjs` fails when any of these fails.
## 6. The metrics (never merged)
Each case gets exactly one label (`grader/score.mjs`):
| label | meaning |
|---|---|
| wrong shown | some turn shows a wrong figure, name or claim |
| wrong offered | no turn shows one, but some turn offers a choice whose every option is wrong |
| right, no tap | every turn is right with no tap |
| right after one tap | every turn is right, with exactly one tap on an offered option |
| not sure | the first turn that is not right says it is not sure or asks back (two taps or more also count here) |
| declined | the first turn that is not right declines, fails or says nothing usable |
| needs review | the grader cannot place a figure; adjudicated by hand before a number is quoted |
THE TAP. When a system offers options, the runner answers every option on a copy of the conversation. The tap picks
the option that the ANSWER KEY marks right. It is the same for every system. A tap is an upper bound on what a person
would do; it is never a guess by the system.
Every report gives each label per category and per source, with a 95% interval from a bootstrap that resamples
households and then cases (`stats/report.mjs`). Versions are compared with a trend test across all versions on the
same frozen split (`stats/trend.mjs`, Cochran-Armitage), never round to round.
## 7. Splits
| split | cases | who wrote them | where |
|---|---|---|---|
| public (dev) | 723 | eval v0 generator (176, exposed), the shapes guard's wordings (318, exposed), 4 independent writers (229) | `cases/public/`, in git, to be published |
| sealed (held-out) | 337 | 6 independent writers, one per sealed household | outside git; `sealed.sha256` in git |
| sealed v2 (held-out, 2026-10-21) | 340 | 6 new independent writers on 6 new households (USD, EUR, GBP, SEK + EUR) | outside git; `sealed-v2.sha256` in git; `SEALED-V2.md` |
| sealed v3 (held-out, 2026-10-22) | 387 | 8 new independent writers on 8 new households (USD, EUR, GBP, NOK, EUR + USD) | outside git; `sealed-v3.sha256` in git; `SEALED-V3.md` |
Independence of the writers: each writer was a separate `claude -p` process started in an empty folder outside the
repository, so it loaded no project instructions, no memory and no app code. The folder held only its household's
truth files, a persona, `writers/BRIEF.md`, `help/HELP.md` and the validator. A writer never saw another split. Then
an auditor process read each case sheet (wording, meaning, expected answer) and flagged mismatches; 2 cases were
dropped before the freeze, none edited (`cases/public/AUDIT-LOG.md`, `sealed/AUDIT-LOG.md`).
Both splits are frozen: `FROZEN.sha256` and `sealed.sha256`. See `CONTAMINATION.md`.
## 8. Systems
One runner (`runner/run.mjs`), one interface: `open(household) -> {ask(history, message) -> {text, choice?,
history}}`.
| system | file | what it is |
|---|---|---|
| Pulse Local, rules | `systems/pulse-local.mjs` (variant `rules`) | the shipped pipeline with the tuned 0.6B model, Better understanding off |
| Pulse Local, reader | `systems/pulse-local.mjs` (variant `reader`) | the same with the Qwen3-4B-Instruct-2507 checker (the app's second reader), policy strict (agree or not sure), as shipped above 16 GB |
| stock open models | `systems/openai-compat.mjs` + `runner/serve-local.sh` | Qwen3 0.6B, 4B and 8B behind llama-server, with the reference tools |
| your own model | `systems/openai-compat.mjs` | any model behind an OpenAI-compatible endpoint, with the same tools and the submitter's OWN key. BudgetBench runs and publishes no paid hosted-model row of its own |
The reference tools (`systems/tools.mjs`) read `view/view.csv`. They hold no benchmark truth. Pulse Local reads the
source files. That difference is a known asymmetry (METHODOLOGY.md §7).
## 9. Files
```
budgetbench/
README.md DATASHEET.md METHODOLOGY.md CONTAMINATION.md SUBMIT.md CHANGELOG.md SPEC.md
check.mjs FROZEN.sha256 sealed.sha256 .gitignore
households/ gen.mjs sources.mjs csv.mjs public.config.mjs templates.mjs classic/ public/
oracle/ oracle.mjs categories.json
grader/ judge.mjs facts.mjs money.mjs score.mjs check.mjs
cases/public/ classic.jsonl templates.jsonl writers.jsonl AUDIT-LOG.md
writers/ BRIEF.md validate.mjs make-packet.mjs personas/
help/HELP.md
runner/ run.mjs serve-local.sh
systems/ pulse-local.mjs openai-compat.mjs tools.mjs
stats/ report.mjs trend.mjs cost-estimate.mjs
results/ <system>-<variant>/<split>/<run>/ (results.jsonl, inputs.json, summary.json)
sealed/ (git-ignored) cases/ households/ personas/ writers/ households.config.mjs AUDIT-LOG.md
```
|