BudgetBench v1.0.1
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitignore +7 -0
- CHANGELOG.md +73 -0
- CONTAMINATION.md +91 -0
- DATASHEET.md +141 -0
- FROZEN.sha256 +87 -0
- LICENSE +201 -0
- LICENSE-DATA +7 -0
- METHODOLOGY.md +146 -0
- README.md +237 -0
- SPEC.md +176 -0
- SUBMIT.md +92 -0
- cases/public/AUDIT-LOG.md +5 -0
- cases/public/classic.jsonl +176 -0
- cases/public/templates.jsonl +0 -0
- cases/public/writers.jsonl +0 -0
- check.mjs +114 -0
- grader/check.mjs +184 -0
- grader/facts.mjs +127 -0
- grader/judge.mjs +883 -0
- grader/money.mjs +51 -0
- grader/score.mjs +65 -0
- help/HELP.md +377 -0
- hf/export.mjs +60 -0
- households/classic/__pycache__/reference.cpython-314.pyc +0 -0
- households/classic/data/ledger.csv +143 -0
- households/classic/data/questions.jsonl +176 -0
- households/classic/make_cases.py +207 -0
- households/classic/make_questions.py +193 -0
- households/classic/reference.py +159 -0
- households/csv.mjs +14 -0
- households/gen.mjs +374 -0
- households/public.config.mjs +32 -0
- households/public/p-amex/source/activity.csv +177 -0
- households/public/p-amex/truth/ledger.csv +89 -0
- households/public/p-amex/truth/merchants.json +54 -0
- households/public/p-amex/truth/setup.json +28 -0
- households/public/p-amex/view/view.csv +89 -0
- households/public/p-capitalone/source/transaction_download.csv +77 -0
- households/public/p-capitalone/truth/ledger.csv +77 -0
- households/public/p-capitalone/truth/merchants.json +42 -0
- households/public/p-capitalone/truth/setup.json +28 -0
- households/public/p-capitalone/view/view.csv +77 -0
- households/public/p-chase/source/Chase9902_Activity.CSV +85 -0
- households/public/p-chase/truth/ledger.csv +85 -0
- households/public/p-chase/truth/merchants.json +50 -0
- households/public/p-chase/truth/setup.json +28 -0
- households/public/p-chase/view/view.csv +85 -0
- households/public/p-classic/source/ledger.csv +143 -0
- households/public/p-classic/truth/ledger.csv +143 -0
- households/public/p-classic/truth/merchants.json +87 -0
.gitignore
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# BudgetBench. The root .gitignore drops every *.json; the benchmark's own JSON files are data and are kept.
|
| 2 |
+
!*.json
|
| 3 |
+
# THE SEALED SPLIT: never in git. Only sealed.sha256 (committed beside this file) proves what it held.
|
| 4 |
+
sealed/
|
| 5 |
+
# raw run output that is regenerated; results/*/summary.json and results.jsonl are kept
|
| 6 |
+
results/**/traces/
|
| 7 |
+
results/**/*.log
|
CHANGELOG.md
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# BudgetBench changelog
|
| 2 |
+
|
| 3 |
+
A frozen file changes only with a new version. Every grader or oracle change regrades every row on the leaderboard.
|
| 4 |
+
|
| 5 |
+
## v1.0.1 (2026-10-19, not published)
|
| 6 |
+
|
| 7 |
+
The grader only. No case, gold, household or oracle changed. Every row on the leaderboard is graded with v1.0.1.
|
| 8 |
+
|
| 9 |
+
Why: reading the first stock-model row (Qwen3 0.6B, public split) showed answers that v1.0.0 did not label by its
|
| 10 |
+
own rules (METHODOLOGY.md §2: a denial of what the ledger holds is wrong). Each fix is a general rule with a probe in
|
| 11 |
+
`grader/check.mjs` (7,236 checks pass with the sealed split present; 5,031 on the public split alone). None was made to move one system's score, and all were made before any run on the sealed split. Regraded from their transcripts,
|
| 12 |
+
the v1.0.0 runs then on disk changed as follows: the Qwen3 0.6B row 61 of 723 cases (42 declined and 18 needs
|
| 13 |
+
review became wrong shown, 1 needs review became right); the Pulse Local rules row 0 of 723; a partial Pulse Local
|
| 14 |
+
reader run 0 of 247. Those v1.0.0 runs are discarded; every published row is a new run on v1.0.1.
|
| 15 |
+
|
| 16 |
+
- An answer that says the ledger holds no such rows ("There are no transactions related to Lyft for the current
|
| 17 |
+
month", "None of the transactions are listed") is a false claim when there are rows, so it is wrong, not declined.
|
| 18 |
+
- In a turn about money, an answer that is only a number ("0", "0.00") and an amount with cents but no currency mark
|
| 19 |
+
("512.10") are money in the turn's currency. An amount after a currency code ("EUR 51.01") keeps that currency.
|
| 20 |
+
|
| 21 |
+
No hosted-model row: BudgetBench runs and publishes no paid hosted model of its own (the owner's decision,
|
| 22 |
+
2026-10-19). `systems/openai-compat.mjs` stays for submitters, with their own key; `stats/cost-estimate.mjs` now
|
| 23 |
+
takes the submitter's prices and holds none. New: `stats/leaderboard.mjs` (public, writers' cases, sealed aggregate),
|
| 24 |
+
`hf/export.mjs` (the Hugging Face folder), `LICENSE` (Apache 2.0) and `LICENSE-DATA` (CC BY 4.0).
|
| 25 |
+
|
| 26 |
+
Corrections to v1.0.0's text (no data changed): no case of the hidden rounds 1 to 11 is in BudgetBench, which reuses
|
| 27 |
+
their grader (v3) and rulings; the oracle shares one CSV line reader (`households/csv.mjs`) with the reference tools;
|
| 28 |
+
a sealed "look" is one run per shipped setting; before the freeze, hosted Claude sessions wrote and audited the sealed
|
| 29 |
+
cases (after it, no sealed case goes to a third-party API).
|
| 30 |
+
|
| 31 |
+
A draft of this fix also narrowed "needs review" to numbers that could be the gold. It was dropped before the freeze:
|
| 32 |
+
it turned wrong claims ("0 euros went on groceries", a wrong category named as the biggest) into "declined". Any
|
| 33 |
+
unplaced number in a non-answer still goes to hand review.
|
| 34 |
+
|
| 35 |
+
Known grader gaps in v1.0.1 (found adjudicating the stock Qwen3 0.6B row; ruled by hand, fixed only in a later
|
| 36 |
+
version): an answer that is only "0" in a turn kept in euros is read as US dollars, and "0 euros" (the currency as a
|
| 37 |
+
word) is not read as money; both go to "needs review", never to a right label. The instruction rule (grader v3's `DIRECTIVE`) also matches "you
|
| 38 |
+
should" / "you need to" inside a refusal ("I cannot advise whether you should...", "a decision you need to make"):
|
| 39 |
+
12 declines of the stock Qwen3 4B row count as "wrong shown" for "gives an instruction", of which 6 a person may
|
| 40 |
+
read as proper declines or non-answers (its `ADJUDICATION.md` lists them); no Pulse Local answer uses those words. Changing the
|
| 41 |
+
rule is the owner's decision and a new version.
|
| 42 |
+
|
| 43 |
+
## v1.0.0 (2026-10-19, not published)
|
| 44 |
+
|
| 45 |
+
First version. Joins the 2026-09-27 public eval (176 questions, never published) and the private hidden rounds of
|
| 46 |
+
the Pulse Local chat (rounds 1 to 11, grader v3) into one benchmark.
|
| 47 |
+
|
| 48 |
+
- 12 public households and 6 sealed households in real shapes (connected bank, Monarch, YNAB, Chase, Amex, Capital
|
| 49 |
+
One, Copilot, German bank and card files in EUR, plain CSV, two currencies, and the classic ledger).
|
| 50 |
+
- 723 public cases (176 eval v0, 318 shapes-guard templates, 229 independent writers) and 337 sealed cases (6
|
| 51 |
+
independent writers). Frozen: `FROZEN.sha256` (87 files), `sealed.sha256` (45 files).
|
| 52 |
+
- Oracle `oracle/oracle.mjs`; agrees with eval v0's `reference.py` on all 176 classic cases.
|
| 53 |
+
- Grader `grader/judge.mjs` from grader v3 revision 2026-10-02b, with the BB changes listed in its header;
|
| 54 |
+
adversarial checks `grader/check.mjs` (7,226 checks on the build day).
|
| 55 |
+
- Six labels, never merged; household-clustered bootstrap intervals; trend test across versions.
|
| 56 |
+
- Runners for Pulse Local (rules; rules plus the 4B reader, strict), stock open models through llama-server, and a
|
| 57 |
+
cloud reference row through an OpenAI-compatible endpoint (built, not run).
|
| 58 |
+
|
| 59 |
+
Before the freeze, one calibration run of Pulse Local (rules) on the public split was read by hand to find grader
|
| 60 |
+
errors. It found these, each fixed as a general rule with a probe in `grader/check.mjs`, then the calibration run was
|
| 61 |
+
discarded and the official run made on the frozen files:
|
| 62 |
+
|
| 63 |
+
- the money tokenizer read "July 2026 $74.96" as "2026 $" (a year before a dollar figure);
|
| 64 |
+
- a count's accepted alternative (purchases with the refund rows) was ignored;
|
| 65 |
+
- a coverage note "(78 transactions imported, ...)" was read as a count;
|
| 66 |
+
- "That is not something I can look up in your ledger" and "has no figures about other people" were not read as
|
| 67 |
+
"cannot";
|
| 68 |
+
- a refusal with no figure but a date in it went to "needs review" instead of "declined";
|
| 69 |
+
- withholding a figure ("I would be guessing", "I could not use ... in the answer") is "not sure", not "declined";
|
| 70 |
+
- a table by month that states other figures, and a flat "No transactions found", are wrong.
|
| 71 |
+
|
| 72 |
+
It also found a generator error, fixed before the freeze: the YNAB register wrote "$3,150.00" without quotes, so the
|
| 73 |
+
comma split the field (real YNAB exports quote it).
|
CONTAMINATION.md
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Contamination and the sealed split
|
| 2 |
+
|
| 3 |
+
A benchmark score means something only when the system did not learn the test. This file is the policy.
|
| 4 |
+
|
| 5 |
+
## 1. Two splits
|
| 6 |
+
|
| 7 |
+
- **Public (dev) split.** In git, to be published. Anyone may read it, run it and tune on it. A score on it is a
|
| 8 |
+
development score. It never supports a release claim by itself.
|
| 9 |
+
- **Sealed (held-out) split.** NOT in git. Only `sealed.sha256` is in git: the SHA-256 of every sealed file (cases,
|
| 10 |
+
households, personas, the household config, the audit log). The hash list proves later that the sealed files did
|
| 11 |
+
not change after the freeze.
|
| 12 |
+
|
| 13 |
+
Where the sealed files are: `pulse-local/budgetbench/sealed/` in the worktree where v1 was built
|
| 14 |
+
(`.claude/worktrees/budgetbench`, branch `feat/budgetbench`), git-ignored, with a copy in
|
| 15 |
+
`~/.pulse-budgetbench/sealed/v1/` on the owner's Mac. `node budgetbench/check.mjs` verifies them against
|
| 16 |
+
`sealed.sha256` when they are present.
|
| 17 |
+
|
| 18 |
+
## 2. Rules for the sealed split
|
| 19 |
+
|
| 20 |
+
1. **Renewed each release.** Each release gets a NEW sealed split: new households (new seeds, new invented shops,
|
| 21 |
+
new months) and new cases by NEW writers. The old sealed split then becomes part of the public split, marked
|
| 22 |
+
"exposed" with its date.
|
| 23 |
+
2. **Writers never saw the code.** A writer is a separate process started in an empty folder outside the
|
| 24 |
+
repository. It sees only its household's truth files, a persona, `writers/BRIEF.md`, `help/HELP.md` (the public
|
| 25 |
+
help pages) and the validator. It sees no app code, no project instructions, no memory and no other split.
|
| 26 |
+
3. **Maximum looks.** The sealed split is run at most ONCE per release candidate and shipped setting (for Pulse
|
| 27 |
+
Local: rules alone, and rules with the checker), by the release gate (the main
|
| 28 |
+
session), with `run.mjs --sealed`. A second look at the same split is allowed only for a harness failure (a crash
|
| 29 |
+
or a timeout recorded in `errors.jsonl`), never to try a changed system.
|
| 30 |
+
4. **Nobody tunes on it.** Nobody reads sealed answers to fix the app. If anyone does, the split is EXPOSED: write
|
| 31 |
+
`EXPOSED <date>: <what was seen, by whom>` at the top of `sealed/AUDIT-LOG.md`, report it as exposed from then
|
| 32 |
+
on, and build a new sealed split before the next claim.
|
| 33 |
+
5. **Frozen.** No case, gold, household or grader file changes after the freeze. A disputed gold is written up with
|
| 34 |
+
its reason and keeps its value until the owner rules; the ruling goes into the next version, never into the
|
| 35 |
+
frozen one.
|
| 36 |
+
6. **No third-party API after the freeze (the goal; see §6 for v1).** No sealed case, household or answer should go
|
| 37 |
+
to a hosted model or any other third-party service after the freeze. A sealed run uses only systems that run on
|
| 38 |
+
the maintainers' own machine, and it prints no case id and no label (`run.mjs` with `--sealed`). Before the
|
| 39 |
+
freeze, the writers and the auditor were hosted Claude sessions: they wrote and read the sealed cases.
|
| 40 |
+
7. **Only aggregates leave it.** A sealed run's folder stays private (git-ignored). Only its aggregate counts and
|
| 41 |
+
intervals are published (`results/SEALED-AGGREGATES.md`), never a case, a question, an answer or a per-case label.
|
| 42 |
+
|
| 43 |
+
## 3. What is exposed in v1
|
| 44 |
+
|
| 45 |
+
| set | status | why |
|
| 46 |
+
|---|---|---|
|
| 47 |
+
| public `classic.jsonl` (176) | exposed | the 2026-09-27 eval; the app row was run on it and its misses were read |
|
| 48 |
+
| public `templates.jsonl` (318) | exposed | wordings of `bench/shapes/households.mjs`, which Pulse Local's shapes guard asks on every release since 0.4.9 |
|
| 49 |
+
| public `writers.jsonl` (229) | fresh when frozen, exposed once published or read for fixes | 4 independent writers, 2026-10-19 |
|
| 50 |
+
| sealed (337) | sealed | 6 independent writers, 2026-10-19 |
|
| 51 |
+
| eval-chat rounds 1 to 11 | exposed, not in BudgetBench | the example bank of Pulse Local's second reader holds 2,449 of their turns |
|
| 52 |
+
|
| 53 |
+
Reports give the public numbers per source so the exposed part cannot hide in the total.
|
| 54 |
+
|
| 55 |
+
## 4. Submitters: what you must declare
|
| 56 |
+
|
| 57 |
+
A team that submits a row (`SUBMIT.md`) declares:
|
| 58 |
+
|
| 59 |
+
- whether the system, its prompts, its rules or its training data ever used the public split (cases, households or
|
| 60 |
+
answers), and how;
|
| 61 |
+
- whether any person who built the system read the public cases before the run;
|
| 62 |
+
- the model versions, the date of the run and the commit of the runner.
|
| 63 |
+
|
| 64 |
+
Training or tuning on the public split is allowed and is printed beside the row ("tuned on public: yes"). It is never
|
| 65 |
+
hidden.
|
| 66 |
+
|
| 67 |
+
## 5. What invalidates a result
|
| 68 |
+
|
| 69 |
+
- A changed frozen file (`check.mjs` fails) or a run whose `inputs.json` hashes do not match the frozen manifests.
|
| 70 |
+
- Any access by the system to `truth/`, to the cases' meanings or to the grader during a run.
|
| 71 |
+
- A run on the sealed split outside the release gate, or more than one look per release candidate.
|
| 72 |
+
- A tuning change made after reading sealed answers (the split is then exposed; the result stands only as an exposed
|
| 73 |
+
score).
|
| 74 |
+
- A grader or oracle change made to move one system's score. A grader fix is allowed only as a general rule with an
|
| 75 |
+
adversarial case in `grader/check.mjs`, a CHANGELOG entry and a regrade of EVERY row on the leaderboard.
|
| 76 |
+
|
| 77 |
+
## 6. What the v1 sealed runs exposed (recorded 2026-10-20)
|
| 78 |
+
|
| 79 |
+
The two sealed runs of Pulse Local 0.4.16 (rules alone; rules with the 4B checker) were started and adjudicated by a
|
| 80 |
+
Claude Code session working for the maintainers. Claude is a hosted model, so this is an exposure to a third party
|
| 81 |
+
after the freeze. What that session saw, for grading only, never to change the app:
|
| 82 |
+
|
| 83 |
+
- the question, the answer and the grader's reason of the 4 "needs review" rows of the rules run (in full) and of
|
| 84 |
+
every "wrong shown" and "wrong offered" row of both runs (104 rows, the answer cut to about 200 characters);
|
| 85 |
+
- case ids with their labels for part of the rules run, in its progress log (before `run.mjs` stopped printing them).
|
| 86 |
+
|
| 87 |
+
The systems ran on the maintainers' machine; no sealed case was sent to any system under test through an API. The
|
| 88 |
+
sealed split stays the release claim for 0.4.16, marked "seen by the grading assistant". The 0.4.17 sealed split is
|
| 89 |
+
new (§2.1), and its runs and adjudication should use no hosted assistant. The owner decides whether v1's sealed
|
| 90 |
+
split counts as exposed.
|
| 91 |
+
|
DATASHEET.md
ADDED
|
@@ -0,0 +1,141 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# BudgetBench datasheet
|
| 2 |
+
|
| 3 |
+
Following "Datasheets for Datasets" (Gebru et al., 2018; published in Communications of the ACM, 2021). Version
|
| 4 |
+
1.0.1, 2026-10-19.
|
| 5 |
+
|
| 6 |
+
## Motivation
|
| 7 |
+
|
| 8 |
+
**Why was the dataset made?** To measure budgeting chat assistants honestly. The first requirement for such an
|
| 9 |
+
assistant is that it never shows a wrong figure about the person's money. The second is that it gives the right
|
| 10 |
+
answer. Earlier tests of Pulse Local counted right answers only, or used questions that the app's own developers had
|
| 11 |
+
seen. BudgetBench reports wrong figures, right answers, "not sure" and refusals separately, on households in real shapes,
|
| 12 |
+
with a sealed split that nobody reads to change the app (`CONTAMINATION.md` §6 records who read it to grade).
|
| 13 |
+
|
| 14 |
+
**Who made it?** The team behind Pulse Local (pulseos.finance). The cases were written by independent writer
|
| 15 |
+
processes (Claude, started with no access to the app code); the households, the oracle and the grader by the team.
|
| 16 |
+
Pulse Local is one of the systems scored. Read its rows with that in mind.
|
| 17 |
+
|
| 18 |
+
**Funding.** Internal. No grant.
|
| 19 |
+
|
| 20 |
+
## Composition
|
| 21 |
+
|
| 22 |
+
**What is an instance?** A CASE: one conversation of 1 to 4 turns about one household. Each turn holds the person's
|
| 23 |
+
message (`q`) and its meaning (the measure, the scope, the months, what is left out, a rank, a currency). The gold of
|
| 24 |
+
each turn is computed by the oracle from the meaning.
|
| 25 |
+
|
| 26 |
+
**A household** is a set of synthetic transactions in the shape of a real source, written three ways: the source
|
| 27 |
+
files a person imports, a parsed view for model tools, and the truth for the oracle.
|
| 28 |
+
|
| 29 |
+
**How many?**
|
| 30 |
+
|
| 31 |
+
| split | cases | turns | households |
|
| 32 |
+
|---|---|---|---|
|
| 33 |
+
| public | 723 | 846 | 12 |
|
| 34 |
+
| sealed | 337 | 435 | 6 |
|
| 35 |
+
|
| 36 |
+
Public cases by category: totals 151, merchants 252, by_month 75, comparisons 34, exclusions 38, chains 97 (2 to 4
|
| 37 |
+
turns), howto 16, refusals 46, currency 14. By source: eval v0 generator 176 (exposed), shapes-guard templates 318
|
| 38 |
+
(exposed), independent writers 229.
|
| 39 |
+
|
| 40 |
+
Sealed cases by category: totals 48, merchants 54, by_month 30, comparisons 36, exclusions 36, chains 59, howto 24,
|
| 41 |
+
refusals 36, currency 14. All by independent writers.
|
| 42 |
+
|
| 43 |
+
Public households (rows in the truth ledger): classic 142 (the 2026-09-27 eval's ledger), connected (Plaid page)
|
| 44 |
+
95, Monarch 90, YNAB 81, Chase 84, Amex 88, Capital One 76, Copilot 101, German bank file 57 (EUR), German card
|
| 45 |
+
file 41 (EUR), plain CSV 79, two currencies 78 (USD checking and a EUR card). Four months each (June to September
|
| 46 |
+
2026 for classic; July to October 2026, today 2026-10-16, for the others).
|
| 47 |
+
|
| 48 |
+
Sealed households: six, in the shapes connected, Monarch, Amex, German bank file (EUR), two currencies (USD and GBP)
|
| 49 |
+
and Copilot, with invented shop names, four months each, each household with its own "today" (the months run
|
| 50 |
+
from March to November 2026; some overlap the public months).
|
| 51 |
+
|
| 52 |
+
**Is it a sample of a larger set?** No. Every household and case was made for BudgetBench, except the classic
|
| 53 |
+
household and its 176 questions (the 2026-09-27 eval, frozen and copied).
|
| 54 |
+
|
| 55 |
+
**Labels.** Each turn's gold: a money figure (with accepted alternatives), a count, a percentage, names, a table of
|
| 56 |
+
figures, "nothing", "decline", "cannot", or how-to concepts. Computed by `oracle/oracle.mjs`, never typed.
|
| 57 |
+
|
| 58 |
+
**Missing information.** No budgets and no account balances except on the connected household (its bank states
|
| 59 |
+
them). No loans. No investments. No transfers between people.
|
| 60 |
+
|
| 61 |
+
**Relationships between instances.** Cases of one household share its shops and months. Chains are single cases.
|
| 62 |
+
Reports cluster the bootstrap by household for this reason.
|
| 63 |
+
|
| 64 |
+
**Splits.** Public (dev) and sealed (held-out). See `CONTAMINATION.md`.
|
| 65 |
+
|
| 66 |
+
**Errors, noise, redundancy.** The two oracles agree on all 176 classic cases. An auditor read every writer case; 2
|
| 67 |
+
ambiguous cases were dropped before the freeze. Gold disputes that remain are listed in `METHODOLOGY.md` §7. Some
|
| 68 |
+
template wordings repeat across households by design (the same questions in every shape).
|
| 69 |
+
|
| 70 |
+
**Self-contained?** Yes. The help text the how-to cases use is in `help/HELP.md`. No external resource is needed to
|
| 71 |
+
grade.
|
| 72 |
+
|
| 73 |
+
**Confidential or personal data?** None. Every transaction is synthetic. Shop names in the public households are
|
| 74 |
+
real brands in real bank-string shapes ("WHOLEFDS MKT #10234"); no real person's data is involved. Sealed households
|
| 75 |
+
use invented names.
|
| 76 |
+
|
| 77 |
+
**Offensive content?** None known.
|
| 78 |
+
|
| 79 |
+
## Collection process
|
| 80 |
+
|
| 81 |
+
1. **Households.** `households/gen.mjs` generates each household from a config (`households/public.config.mjs`; the
|
| 82 |
+
sealed config is not published). Seeded randomness, fixed dates; `check.mjs` regenerates every file byte for byte.
|
| 83 |
+
Source shapes follow public descriptions of each export, as checked for `bench/shapes/households.mjs` on
|
| 84 |
+
2026-10-17 (Chase and Capital One by converters and guides, Amex by beancount.io and amex2qif, Copilot by its help
|
| 85 |
+
center's field list). They are NOT copies of real export files; this is not verified against real files.
|
| 86 |
+
2. **Cases, public.** Three sources: the 176 questions of the 2026-09-27 eval (`households/classic/make_cases.py`,
|
| 87 |
+
its frozen generator with the meaning added), 318 template questions in the wordings of the shapes guard
|
| 88 |
+
(`households/templates.mjs`), and 229 cases by 4 independent writers.
|
| 89 |
+
3. **Cases, sealed.** 6 independent writers, one per sealed household.
|
| 90 |
+
4. **The writers.** Each writer is a separate `claude -p` process (Claude Code 2.1.287, default model) started on
|
| 91 |
+
2026-10-19 in an empty folder outside the repository. It loaded no project instructions and no memory. Its folder
|
| 92 |
+
held its household's truth files, a persona, `writers/BRIEF.md`, `help/HELP.md` and the validator. It wrote the
|
| 93 |
+
messages and their meanings, then ran the validator until every meaning computed. Quotas per category came from
|
| 94 |
+
the persona.
|
| 95 |
+
5. **The audit.** A second `claude -p` process per household read the case sheet (message, meaning, expected
|
| 96 |
+
answer) and gave each case ok, mismatch or ambiguous. Every flag was checked by hand.
|
| 97 |
+
|
| 98 |
+
## Preprocessing, cleaning, labelling
|
| 99 |
+
|
| 100 |
+
No cleaning. Golds are computed. Two cases were dropped (ambiguous), none edited. The writers' wordings are kept as
|
| 101 |
+
written, typos included.
|
| 102 |
+
|
| 103 |
+
## Uses
|
| 104 |
+
|
| 105 |
+
**Intended.** Measuring a budgeting chat assistant on one household's own transactions: does it show wrong figures,
|
| 106 |
+
does it answer right, does it ask or decline when it should. Comparing versions of one system with a trend test.
|
| 107 |
+
Comparing systems on the same frozen split.
|
| 108 |
+
|
| 109 |
+
**Out of scope.** Financial advice quality; investment questions; tax; budgets and goals; real-time prices; any
|
| 110 |
+
claim about real people's finances; any claim of accuracy on real ledgers (the households are synthetic); languages
|
| 111 |
+
other than English; training a system on the public split and then reporting the public score as if it were unseen.
|
| 112 |
+
|
| 113 |
+
**Could it harm?** A system tuned to this benchmark could learn its shapes and wordings and still fail on real data.
|
| 114 |
+
Report the sealed split for any release claim, and say when a system was tuned on the public split.
|
| 115 |
+
|
| 116 |
+
## Known flaws and biases
|
| 117 |
+
|
| 118 |
+
- Synthetic households; four months each; no budgets, loans or investments.
|
| 119 |
+
- US-heavy: 9 of 12 public and 4 of 6 sealed households are in US dollars only; two public households and one
|
| 120 |
+
sealed household are in euros only; one in each split has a US dollar account and an account in another currency.
|
| 121 |
+
- English only, written by one model family (Claude) acting as persons.
|
| 122 |
+
- 494 of 723 public cases are exposed to Pulse Local: its earlier test questions (176), or the wordings of its shapes
|
| 123 |
+
guard on new households (318). The exposed cases are also simpler: the 318 template cases ask about merchants,
|
| 124 |
+
months, totals and follow-ups only.
|
| 125 |
+
- The model rows read parsed rows; Pulse Local reads the raw files.
|
| 126 |
+
- The grader is rule-based; it can miss a wrong claim with no figure and can flag a hypothetical figure.
|
| 127 |
+
- How-to golds need the help page's concept words.
|
| 128 |
+
|
| 129 |
+
## Distribution
|
| 130 |
+
|
| 131 |
+
Not published yet. Planned: the public split, the households, the oracle, the grader, the runners and every public
|
| 132 |
+
run on Hugging Face (`PulseOS/budgetbench`, built by `hf/export.mjs` from the committed tree), after the owner
|
| 133 |
+
reviews the numbers. The Pulse Local app source is not public, so its rows can be regraded from their transcripts
|
| 134 |
+
but not re-run by others. The sealed split is never
|
| 135 |
+
distributed. Licences: see `README.md`.
|
| 136 |
+
|
| 137 |
+
## Maintenance
|
| 138 |
+
|
| 139 |
+
Maintained by the Pulse Local team. Each release of Pulse Local renews the sealed split (new households, new
|
| 140 |
+
writers); the previous sealed split then joins the public split, marked exposed. Errata and gold disputes go into
|
| 141 |
+
`CHANGELOG.md`; a frozen file changes only with a new version number. Contact: niz@pulseos.finance.
|
FROZEN.sha256
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
f095313320134a95555d314733d9f6b485dd8277093d75ddf88060ffc961b816 cases/public/AUDIT-LOG.md
|
| 2 |
+
2dde62e0f647cedaf268316751f3176834ff083edeccd72aef32a7d01b991825 cases/public/classic.jsonl
|
| 3 |
+
4fc6969849e9bc54539e97dbd813b3794fa675ec5ef2e1e44bda9aba6549195e cases/public/templates.jsonl
|
| 4 |
+
ccc9bf05c83cf7099410e4e16395d7513d1b8f059e8ca0f803520dadf6b264ad cases/public/writers.jsonl
|
| 5 |
+
30a7ab7daeef1ad7a775c0c081f5cf2ca19d406a2e41591645db5c531e867631 grader/check.mjs
|
| 6 |
+
b7fd246c702a52b0d20cf6b2a1c1898c221472ccdfa9cff7639470d452c68c21 grader/facts.mjs
|
| 7 |
+
63fe9770aa46cebaaba0c379c42ebbdb3d725c3fc5ceb8729c8da6550522524e grader/judge.mjs
|
| 8 |
+
a5353adfcba74ee83f41057a5e4b518f78b093120edd1639cc2e691373ad8e75 grader/money.mjs
|
| 9 |
+
d4392a1a9867b773bc5c0aebbcfd9edf869a32fce6148b3c370c10b06313ba32 grader/score.mjs
|
| 10 |
+
bed0fd74485b85ac2045660c43bb0e30d5735f8f5a3e8d9a5b903d8436d765f1 help/HELP.md
|
| 11 |
+
7e0acc93768fd55b9c6c1d594132829b2939e63fc74274b5f41ba7c4cf668b01 households/classic/data/ledger.csv
|
| 12 |
+
77f6c9b96b183a75b2c4aa2b7530d8cebc9c829b02d2918d9ceaf663211cc427 households/classic/data/questions.jsonl
|
| 13 |
+
5b7f105dfd0da4b0f89bea4ec509a5c47877598e49f923444e48ca3f9ac415b5 households/classic/make_cases.py
|
| 14 |
+
9ae50dcc1f9e91a4507a352776578e51e35591782eb44905f2a8489cf70e8604 households/classic/make_questions.py
|
| 15 |
+
3d92eb73a5bfa532741cf3b0397b91baaee146c951bd0cab894e3ee64b67ca49 households/classic/reference.py
|
| 16 |
+
39e02452a431ae458450077b593ae05e3c86d9691a336370879338e0bbcafc2e households/csv.mjs
|
| 17 |
+
c8b2b0e9a78e6358cbdd5394a6a42dc7a0d7572b59d83b1f144f789ed0063a72 households/gen.mjs
|
| 18 |
+
ab618e4ac2f6829be21165dba65193c06397419f7a4f71e19629d3f8e2a128e3 households/public.config.mjs
|
| 19 |
+
64ec4954db9b3b263b8513887df7362ae9cc6d83c38fd904ed1a4c6f5442ee9f households/public/p-amex/source/activity.csv
|
| 20 |
+
fa87e1db5b3f0053bd8e904aa1f3968fff9f9eca46c26eaa3652cb810565ab95 households/public/p-amex/truth/ledger.csv
|
| 21 |
+
4899715f1fb6eff1c092c92b92cbdf1d9d37095c1b9c03a7d71648bc8af20a1a households/public/p-amex/truth/merchants.json
|
| 22 |
+
bca65c33a5143a1d3029e95ac23609f0ddb013016e4cb43e43a5bb4706c6e992 households/public/p-amex/truth/setup.json
|
| 23 |
+
1d88b9d8770610383653d9a0255a55300674f8d1834815caed46b1cab9a0b4cc households/public/p-amex/view/view.csv
|
| 24 |
+
dac8528b8cca82509f7d3262008581ce6c3bbe372b622222bf0ffce866dd87c4 households/public/p-capitalone/source/transaction_download.csv
|
| 25 |
+
33e624b06f13c4db8e9b12f66b7c30f17681c9e3dadf1ce7253c2a1814643982 households/public/p-capitalone/truth/ledger.csv
|
| 26 |
+
e27c47d8c691dc54db40cfd4e4d525ed08b6c7b539d73834ab0c26c0b982cfe9 households/public/p-capitalone/truth/merchants.json
|
| 27 |
+
d2019cdc9e274c8af70053b8e695133a6a19ca9ef749040006f23e85f498d8a8 households/public/p-capitalone/truth/setup.json
|
| 28 |
+
45d08f84902eabd4ef38ca7b669aead509a739658e1668467a8d935ef58f87f5 households/public/p-capitalone/view/view.csv
|
| 29 |
+
19094544b2ac520077820c423cd810658ff0a094f66ad8d8491ae4fabfce804b households/public/p-chase/source/Chase9902_Activity.CSV
|
| 30 |
+
36986f5930bf95829812c9edd2e4b70bd97c533dfe6e0ddac8f1a682ab1943d6 households/public/p-chase/truth/ledger.csv
|
| 31 |
+
b670b309e88afbfb16aabf46ed11412e9727699cb207ca870f9818e75dea164d households/public/p-chase/truth/merchants.json
|
| 32 |
+
f20af46c7948fe3cd4b37e98db1e05f623bc335d0cae63f4f1f314ca2c3af45d households/public/p-chase/truth/setup.json
|
| 33 |
+
988937389ac7c29cb540a19a039f279eabbcd857c990e1b7cfa4a31086309175 households/public/p-chase/view/view.csv
|
| 34 |
+
7e0acc93768fd55b9c6c1d594132829b2939e63fc74274b5f41ba7c4cf668b01 households/public/p-classic/source/ledger.csv
|
| 35 |
+
7b3329d3219399deef0ba4e1396977a1a8b7987e2e592464eb9318b3f38cc55a households/public/p-classic/truth/ledger.csv
|
| 36 |
+
c6fa4e6f8f2c5d83514a954e306a46591e02ab57df163dce8593ca727110ccaa households/public/p-classic/truth/merchants.json
|
| 37 |
+
58ed96da82dba920a9e2c82071a0b6286b981c0d0eb8d06d61ce4b8eb60441f7 households/public/p-classic/truth/setup.json
|
| 38 |
+
d7db86c0c45db854ecf7fad0bab37c4f74c86fceb8e7d5551d4c3ada498b3c87 households/public/p-classic/view/view.csv
|
| 39 |
+
88dc59a14839155441b84bbc4f0be8b3c50d1761661681976ff4068605db6367 households/public/p-connected/source/plaid-page.json
|
| 40 |
+
8735040aad4068c5da4d16647cf0d34017efefd592505e04b3af4af220a8f25c households/public/p-connected/truth/ledger.csv
|
| 41 |
+
693e8458c277727779f7daff738285a0ac00d345fbb877d81a6be92a63544262 households/public/p-connected/truth/merchants.json
|
| 42 |
+
020e44731be12951253b539f05ef83f1ee4a30539cd04585d58837ed859c03b3 households/public/p-connected/truth/setup.json
|
| 43 |
+
270533a8bfca654596f3712e802767565ec815464adac4897aa6118be09bef10 households/public/p-connected/view/view.csv
|
| 44 |
+
6bce00456428b8cf667cb7ef787757845dff0586e7e2b86412fdda010824a983 households/public/p-copilot/source/transactions.csv
|
| 45 |
+
c38b6594d4982c9d19ccc58aee0872914c3f4e7947cacb7b21ee35785e5beb5b households/public/p-copilot/truth/ledger.csv
|
| 46 |
+
b670b309e88afbfb16aabf46ed11412e9727699cb207ca870f9818e75dea164d households/public/p-copilot/truth/merchants.json
|
| 47 |
+
aea446832e3956f32bd48edcd9a81c47bf836ad72b4f9f6b98d0722eed2c051e households/public/p-copilot/truth/setup.json
|
| 48 |
+
21f9de65be9a88309dde1879bb8522f4628e7e0b5d8f52cfeaf820843a8bcba6 households/public/p-copilot/view/view.csv
|
| 49 |
+
ed63a3ac026dbc6d58a056613d6e342e616ec33b6f4a5e71ad12c2fb68959e4d households/public/p-german/source/umsaetze.csv
|
| 50 |
+
50eb3f2261b5299258f123506be91d2f272f168a6a7f296997ca8334028e224b households/public/p-german/truth/ledger.csv
|
| 51 |
+
5c5a3c49eac48388b3ef8fee912290d7551598af144eab876f6b0142b3475ca9 households/public/p-german/truth/merchants.json
|
| 52 |
+
b82e0afc1d6d4f348eab5256c6d74263338eee08195c9e3daf96170522651c06 households/public/p-german/truth/setup.json
|
| 53 |
+
c6fdb858e04bb3ac134bc2763f628c40c768ed1fb9e891e28ca0e975ae10ae74 households/public/p-german/view/view.csv
|
| 54 |
+
1fbec03a507d151a7cf5af71f1aa7618e7b49d441cae4b0d29da91bc32cec94b households/public/p-germancard/source/kreditkarte.csv
|
| 55 |
+
0b4afd6f55c03cbb450e3fbaca1ba99367daee91b3f863f0129b5b2ee1319b5e households/public/p-germancard/truth/ledger.csv
|
| 56 |
+
3ca9cf190e44045342f0a42d1e249e98d4149433e2e568eaa252d881e26258bc households/public/p-germancard/truth/merchants.json
|
| 57 |
+
d60502bfa956d289fd1a3fa3e44ed326f959485224ace36b6921814dd994760b households/public/p-germancard/truth/setup.json
|
| 58 |
+
ff0504579a0838d918468f2ce5b7b6201753c04598e2d574078cdb90d3c6ae75 households/public/p-germancard/view/view.csv
|
| 59 |
+
d7600c64498be45136b6debe040f65f1b37c47429e350e54d3100498807a6a5b households/public/p-monarch/source/monarch-transactions.csv
|
| 60 |
+
ad4f74b6f81ba915ac8bce2f92254f097da81514caa67cb1092b14a88ab34e9e households/public/p-monarch/truth/ledger.csv
|
| 61 |
+
48b8e6ec1826610d501c4b09d6acd199e56f208e6562d0faaf58819ab08865ac households/public/p-monarch/truth/merchants.json
|
| 62 |
+
94d73cfd7bc069d47033c6382db71a71bed0c182298c434d86a443bea9d01211 households/public/p-monarch/truth/setup.json
|
| 63 |
+
e471a0dc66082c0e1f12d1402c57da044727c1d280c0a23d7e12f7de7d18f7d2 households/public/p-monarch/view/view.csv
|
| 64 |
+
3c2869b86f0f5303e98acc013ed24a14225566a21b33136d0fb977999133b2a2 households/public/p-multicurrency/source/checking.csv
|
| 65 |
+
fab925db047dd025235a3d0ef09b6771f7e126014ffcd25b5aaa19f2ce7d854a households/public/p-multicurrency/source/revolut-eur.csv
|
| 66 |
+
7990be4d1b5386698d7f9daced6b7f9f67ae66dd926a8399734970530acc29fd households/public/p-multicurrency/truth/ledger.csv
|
| 67 |
+
6424fd5341dea091f98913c0ad8245c96c506a63eb3278dbf20a7b733fbde0e8 households/public/p-multicurrency/truth/merchants.json
|
| 68 |
+
b937aa3232ed55c281239c259eec51a8592aa6b48680aa40eef1373994a5132b households/public/p-multicurrency/truth/setup.json
|
| 69 |
+
521c3c3bba27abbbc4939894666acd1492cb62c45480184e7a9c97dbca8660a4 households/public/p-multicurrency/view/view.csv
|
| 70 |
+
bac76e0a05e3d310f3ac5f87df526012b789e41e64f7ac05643ef22d99b02d72 households/public/p-plain/source/checking.csv
|
| 71 |
+
7ccd8662d201929b844988bd3e915ca4a109be92f34acb441056b3f3c99f1222 households/public/p-plain/truth/ledger.csv
|
| 72 |
+
325f24a7fb0525b0ef31bfceead0fcac6f46325457f6dc74b1bf07b46f3d9362 households/public/p-plain/truth/merchants.json
|
| 73 |
+
9b2f08e33ce3ce668a09452120e5b051b0255c5c4aef83f81e68dd49b2394892 households/public/p-plain/truth/setup.json
|
| 74 |
+
466be690a6f80c204b797948271b05bc612a7cdc3adc6df6eaf3b4a60de382fe households/public/p-plain/view/view.csv
|
| 75 |
+
0a80ddfa81825a5fec3b39f6b9eae08aa634135286d11670e354a7a416aaffde households/public/p-ynab/source/ynab-register.csv
|
| 76 |
+
9ef778e0b6f45eccb6a73b3a358e68ff94c2a68264839644c3251f7277b3352a households/public/p-ynab/truth/ledger.csv
|
| 77 |
+
c47b496ab4a455880d4dae9daa6cd9f4028b991dca61da274b9578bd439d59a2 households/public/p-ynab/truth/merchants.json
|
| 78 |
+
764a4d8fc32fa560925c4fa6e1c944a390ec6bad38aea57160341cdc016b435e households/public/p-ynab/truth/setup.json
|
| 79 |
+
297627c205f82627e03496cef119e35082868740bce436d1d2e3863d3b9b2c1b households/public/p-ynab/view/view.csv
|
| 80 |
+
e166c59dcbb7fad0d99488bf24207d57ecca70583f27f914082a7e61b5a26651 households/sources.mjs
|
| 81 |
+
2d5558d916e07738af13d97215255428d8441fe5de427df415be2ee62953caf5 households/templates.mjs
|
| 82 |
+
994f7862e42c38ab73c7d556de1e9f99eff1d2f8406e7f536223b0b09bfdf52b oracle/categories.json
|
| 83 |
+
9d1c33bd6a0a20e825a84523f1a229573a03b632a9eacd3bfee7de26a9a7f699 oracle/oracle.mjs
|
| 84 |
+
9c066025405a32a8f97b09c0b0bb897c744d634df406e94e7dc861eb714c60fa systems/tools.mjs
|
| 85 |
+
9ffb74ffa35a8c15292840c2fa1acb6a3af3bc4a48811f69aa6bbfa0a7aa423c writers/BRIEF.md
|
| 86 |
+
33a4566d7be7e4542789374bc1a5d04901324f023576c6cb48ab4c2dea707f42 writers/make-packet.mjs
|
| 87 |
+
04627a9e4b49780caae63a71972f7a61035f7f1e8d97f319d8ee61fc508f7dfd writers/validate.mjs
|
LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Apache License
|
| 2 |
+
Version 2.0, January 2004
|
| 3 |
+
http://www.apache.org/licenses/
|
| 4 |
+
|
| 5 |
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
| 6 |
+
|
| 7 |
+
1. Definitions.
|
| 8 |
+
|
| 9 |
+
"License" shall mean the terms and conditions for use, reproduction,
|
| 10 |
+
and distribution as defined by Sections 1 through 9 of this document.
|
| 11 |
+
|
| 12 |
+
"Licensor" shall mean the copyright owner or entity authorized by
|
| 13 |
+
the copyright owner that is granting the License.
|
| 14 |
+
|
| 15 |
+
"Legal Entity" shall mean the union of the acting entity and all
|
| 16 |
+
other entities that control, are controlled by, or are under common
|
| 17 |
+
control with that entity. For the purposes of this definition,
|
| 18 |
+
"control" means (i) the power, direct or indirect, to cause the
|
| 19 |
+
direction or management of such entity, whether by contract or
|
| 20 |
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
| 21 |
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
| 22 |
+
|
| 23 |
+
"You" (or "Your") shall mean an individual or Legal Entity
|
| 24 |
+
exercising permissions granted by this License.
|
| 25 |
+
|
| 26 |
+
"Source" form shall mean the preferred form for making modifications,
|
| 27 |
+
including but not limited to software source code, documentation
|
| 28 |
+
source, and configuration files.
|
| 29 |
+
|
| 30 |
+
"Object" form shall mean any form resulting from mechanical
|
| 31 |
+
transformation or translation of a Source form, including but
|
| 32 |
+
not limited to compiled object code, generated documentation,
|
| 33 |
+
and conversions to other media types.
|
| 34 |
+
|
| 35 |
+
"Work" shall mean the work of authorship, whether in Source or
|
| 36 |
+
Object form, made available under the License, as indicated by a
|
| 37 |
+
copyright notice that is included in or attached to the work
|
| 38 |
+
(an example is provided in the Appendix below).
|
| 39 |
+
|
| 40 |
+
"Derivative Works" shall mean any work, whether in Source or Object
|
| 41 |
+
form, that is based on (or derived from) the Work and for which the
|
| 42 |
+
editorial revisions, annotations, elaborations, or other modifications
|
| 43 |
+
represent, as a whole, an original work of authorship. For the purposes
|
| 44 |
+
of this License, Derivative Works shall not include works that remain
|
| 45 |
+
separable from, or merely link (or bind by name) to the interfaces of,
|
| 46 |
+
the Work and Derivative Works thereof.
|
| 47 |
+
|
| 48 |
+
"Contribution" shall mean any work of authorship, including
|
| 49 |
+
the original version of the Work and any modifications or additions
|
| 50 |
+
to that Work or Derivative Works thereof, that is intentionally
|
| 51 |
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
| 52 |
+
or by an individual or Legal Entity authorized to submit on behalf of
|
| 53 |
+
the copyright owner. For the purposes of this definition, "submitted"
|
| 54 |
+
means any form of electronic, verbal, or written communication sent
|
| 55 |
+
to the Licensor or its representatives, including but not limited to
|
| 56 |
+
communication on electronic mailing lists, source code control systems,
|
| 57 |
+
and issue tracking systems that are managed by, or on behalf of, the
|
| 58 |
+
Licensor for the purpose of discussing and improving the Work, but
|
| 59 |
+
excluding communication that is conspicuously marked or otherwise
|
| 60 |
+
designated in writing by the copyright owner as "Not a Contribution."
|
| 61 |
+
|
| 62 |
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
| 63 |
+
on behalf of whom a Contribution has been received by Licensor and
|
| 64 |
+
subsequently incorporated within the Work.
|
| 65 |
+
|
| 66 |
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
| 67 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 68 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 69 |
+
copyright license to reproduce, prepare Derivative Works of,
|
| 70 |
+
publicly display, publicly perform, sublicense, and distribute the
|
| 71 |
+
Work and such Derivative Works in Source or Object form.
|
| 72 |
+
|
| 73 |
+
3. Grant of Patent License. Subject to the terms and conditions of
|
| 74 |
+
this License, each Contributor hereby grants to You a perpetual,
|
| 75 |
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
| 76 |
+
(except as stated in this section) patent license to make, have made,
|
| 77 |
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
| 78 |
+
where such license applies only to those patent claims licensable
|
| 79 |
+
by such Contributor that are necessarily infringed by their
|
| 80 |
+
Contribution(s) alone or by combination of their Contribution(s)
|
| 81 |
+
with the Work to which such Contribution(s) was submitted. If You
|
| 82 |
+
institute patent litigation against any entity (including a
|
| 83 |
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
| 84 |
+
or a Contribution incorporated within the Work constitutes direct
|
| 85 |
+
or contributory patent infringement, then any patent licenses
|
| 86 |
+
granted to You under this License for that Work shall terminate
|
| 87 |
+
as of the date such litigation is filed.
|
| 88 |
+
|
| 89 |
+
4. Redistribution. You may reproduce and distribute copies of the
|
| 90 |
+
Work or Derivative Works thereof in any medium, with or without
|
| 91 |
+
modifications, and in Source or Object form, provided that You
|
| 92 |
+
meet the following conditions:
|
| 93 |
+
|
| 94 |
+
(a) You must give any other recipients of the Work or
|
| 95 |
+
Derivative Works a copy of this License; and
|
| 96 |
+
|
| 97 |
+
(b) You must cause any modified files to carry prominent notices
|
| 98 |
+
stating that You changed the files; and
|
| 99 |
+
|
| 100 |
+
(c) You must retain, in the Source form of any Derivative Works
|
| 101 |
+
that You distribute, all copyright, patent, trademark, and
|
| 102 |
+
attribution notices from the Source form of the Work,
|
| 103 |
+
excluding those notices that do not pertain to any part of
|
| 104 |
+
the Derivative Works; and
|
| 105 |
+
|
| 106 |
+
(d) If the Work includes a "NOTICE" text file as part of its
|
| 107 |
+
distribution, then any Derivative Works that You distribute must
|
| 108 |
+
include a readable copy of the attribution notices contained
|
| 109 |
+
within such NOTICE file, excluding those notices that do not
|
| 110 |
+
pertain to any part of the Derivative Works, in at least one
|
| 111 |
+
of the following places: within a NOTICE text file distributed
|
| 112 |
+
as part of the Derivative Works; within the Source form or
|
| 113 |
+
documentation, if provided along with the Derivative Works; or,
|
| 114 |
+
within a display generated by the Derivative Works, if and
|
| 115 |
+
wherever such third-party notices normally appear. The contents
|
| 116 |
+
of the NOTICE file are for informational purposes only and
|
| 117 |
+
do not modify the License. You may add Your own attribution
|
| 118 |
+
notices within Derivative Works that You distribute, alongside
|
| 119 |
+
or as an addendum to the NOTICE text from the Work, provided
|
| 120 |
+
that such additional attribution notices cannot be construed
|
| 121 |
+
as modifying the License.
|
| 122 |
+
|
| 123 |
+
You may add Your own copyright statement to Your modifications and
|
| 124 |
+
may provide additional or different license terms and conditions
|
| 125 |
+
for use, reproduction, or distribution of Your modifications, or
|
| 126 |
+
for any such Derivative Works as a whole, provided Your use,
|
| 127 |
+
reproduction, and distribution of the Work otherwise complies with
|
| 128 |
+
the conditions stated in this License.
|
| 129 |
+
|
| 130 |
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
| 131 |
+
any Contribution intentionally submitted for inclusion in the Work
|
| 132 |
+
by You to the Licensor shall be under the terms and conditions of
|
| 133 |
+
this License, without any additional terms or conditions.
|
| 134 |
+
Notwithstanding the above, nothing herein shall supersede or modify
|
| 135 |
+
the terms of any separate license agreement you may have executed
|
| 136 |
+
with Licensor regarding such Contributions.
|
| 137 |
+
|
| 138 |
+
6. Trademarks. This License does not grant permission to use the trade
|
| 139 |
+
names, trademarks, service marks, or product names of the Licensor,
|
| 140 |
+
except as required for reasonable and customary use in describing the
|
| 141 |
+
origin of the Work and reproducing the content of the NOTICE file.
|
| 142 |
+
|
| 143 |
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
| 144 |
+
agreed to in writing, Licensor provides the Work (and each
|
| 145 |
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
| 146 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
| 147 |
+
implied, including, without limitation, any warranties or conditions
|
| 148 |
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
| 149 |
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
| 150 |
+
appropriateness of using or redistributing the Work and assume any
|
| 151 |
+
risks associated with Your exercise of permissions under this License.
|
| 152 |
+
|
| 153 |
+
8. Limitation of Liability. In no event and under no legal theory,
|
| 154 |
+
whether in tort (including negligence), contract, or otherwise,
|
| 155 |
+
unless required by applicable law (such as deliberate and grossly
|
| 156 |
+
negligent acts) or agreed to in writing, shall any Contributor be
|
| 157 |
+
liable to You for damages, including any direct, indirect, special,
|
| 158 |
+
incidental, or consequential damages of any character arising as a
|
| 159 |
+
result of this License or out of the use or inability to use the
|
| 160 |
+
Work (including but not limited to damages for loss of goodwill,
|
| 161 |
+
work stoppage, computer failure or malfunction, or any and all
|
| 162 |
+
other commercial damages or losses), even if such Contributor
|
| 163 |
+
has been advised of the possibility of such damages.
|
| 164 |
+
|
| 165 |
+
9. Accepting Warranty or Additional Liability. While redistributing
|
| 166 |
+
the Work or Derivative Works thereof, You may choose to offer,
|
| 167 |
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
| 168 |
+
or other liability obligations and/or rights consistent with this
|
| 169 |
+
License. However, in accepting such obligations, You may act only
|
| 170 |
+
on Your own behalf and on Your sole responsibility, not on behalf
|
| 171 |
+
of any other Contributor, and only if You agree to indemnify,
|
| 172 |
+
defend, and hold each Contributor harmless for any liability
|
| 173 |
+
incurred by, or claims asserted against, such Contributor by reason
|
| 174 |
+
of your accepting any such warranty or additional liability.
|
| 175 |
+
|
| 176 |
+
END OF TERMS AND CONDITIONS
|
| 177 |
+
|
| 178 |
+
APPENDIX: How to apply the Apache License to your work.
|
| 179 |
+
|
| 180 |
+
To apply the Apache License to your work, attach the following
|
| 181 |
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
| 182 |
+
replaced with your own identifying information. (Don't include
|
| 183 |
+
the brackets!) The text should be enclosed in the appropriate
|
| 184 |
+
comment syntax for the file format. We also recommend that a
|
| 185 |
+
file or class name and description of purpose be included on the
|
| 186 |
+
same "printed page" as the copyright notice for easier
|
| 187 |
+
identification within third-party archives.
|
| 188 |
+
|
| 189 |
+
Copyright [yyyy] [name of copyright owner]
|
| 190 |
+
|
| 191 |
+
Licensed under the Apache License, Version 2.0 (the "License");
|
| 192 |
+
you may not use this file except in compliance with the License.
|
| 193 |
+
You may obtain a copy of the License at
|
| 194 |
+
|
| 195 |
+
http://www.apache.org/licenses/LICENSE-2.0
|
| 196 |
+
|
| 197 |
+
Unless required by applicable law or agreed to in writing, software
|
| 198 |
+
distributed under the License is distributed on an "AS IS" BASIS,
|
| 199 |
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
| 200 |
+
See the License for the specific language governing permissions and
|
| 201 |
+
limitations under the License.
|
LICENSE-DATA
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
BudgetBench data (households, cases, golds, results) is licensed under the Creative Commons Attribution 4.0
|
| 2 |
+
International licence (CC BY 4.0): https://creativecommons.org/licenses/by/4.0/legalcode
|
| 3 |
+
|
| 4 |
+
Credit: BudgetBench, Pulse Local team (pulseos.finance).
|
| 5 |
+
|
| 6 |
+
The code (households generator, oracle, grader, runners, reports) is licensed under the Apache License 2.0 (LICENSE).
|
| 7 |
+
The sealed split is not released under any licence.
|
METHODOLOGY.md
ADDED
|
@@ -0,0 +1,146 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# BudgetBench methodology
|
| 2 |
+
|
| 3 |
+
Version 1.0.1, 2026-10-19.
|
| 4 |
+
|
| 5 |
+
## 1. The gold oracle
|
| 6 |
+
|
| 7 |
+
The gold of a turn is computed, never typed. Each turn of a case carries a MEANING (the measure, the shop, category,
|
| 8 |
+
group or account, the months, what is left out, a rank, a currency). `oracle/oracle.mjs` computes the gold from the
|
| 9 |
+
meaning and from the household's `truth/ledger.csv` and `truth/setup.json`. It imports no app code and never reads
|
| 10 |
+
an answer.
|
| 11 |
+
|
| 12 |
+
The money definitions (the same for every system):
|
| 13 |
+
|
| 14 |
+
- A month is a calendar month. The current month runs to today (`setup.today`). "all" is every month of the ledger.
|
| 15 |
+
- **Spending**: rows outside the Income, Transfers and Debt Payments groups. Per category AND per month the signed
|
| 16 |
+
amounts are summed and floored at zero, so a refund lowers its own category and never another one. A span is the
|
| 17 |
+
sum of its months. Pending rows count. A purchase that its owner excluded in their own app is not in the truth.
|
| 18 |
+
- **A shop's spending**: the same computation over that shop's rows (purchases minus its refunds).
|
| 19 |
+
- **Money in**: the Income group (pay and card cashback). **Money out**: spending plus debt payments other than card
|
| 20 |
+
payments. **Kept**: money in minus spending; also accepted: money in minus money out, and either one with the
|
| 21 |
+
refund credit counted as money in. **Savings rate**: kept over money in, with the same alternatives.
|
| 22 |
+
- **A count** is the number of purchases; the count with the refund rows is also accepted.
|
| 23 |
+
- **A table by month** must state every month's figure. **A rank** with a tie is never asked.
|
| 24 |
+
- **Currencies**: each account keeps its own currency. Every figure reads one currency: the scope account's, else
|
| 25 |
+
the meaning's, else the ledger's home currency. No gold ever adds two currencies; a question about "both
|
| 26 |
+
accounts" wants one figure per currency.
|
| 27 |
+
- **Decline**: a decision or advice the assistant must not make. **Cannot**: something the ledger cannot answer
|
| 28 |
+
(prices, the future, other people, a conversion between currencies). **How-to**: an answer that names every concept
|
| 29 |
+
the case lists, taken from `help/HELP.md`.
|
| 30 |
+
|
| 31 |
+
Checks on the oracle: (1) the 176 classic cases have a second, independent oracle, `reference.py` of the 2026-09-27
|
| 32 |
+
eval; both give the same gold on 176 of 176 (`check.mjs`); (2) every gold of both splits computes with no error;
|
| 33 |
+
(3) an auditor process read every writer case (wording, meaning, expected answer) and flagged mismatches; each flag
|
| 34 |
+
was checked by hand and 2 ambiguous cases were dropped before the freeze (`cases/public/AUDIT-LOG.md`,
|
| 35 |
+
`sealed/AUDIT-LOG.md`).
|
| 36 |
+
|
| 37 |
+
## 2. The grader
|
| 38 |
+
|
| 39 |
+
`grader/judge.mjs` is grader v3 of the private hidden rounds, copied with every BudgetBench change marked "BB:". For
|
| 40 |
+
EVERY turn it decides one outcome: correct, clarify_ok, refused, wrong, wrong_offered or needs_review. The rules:
|
| 41 |
+
|
| 42 |
+
- The gold must be STATED AS THE ANSWER in the prose. A gold that appears only in a table row, only in a difference
|
| 43 |
+
role ("$27.65 more than"), only after "not" ("not $17.99"), or only inside a quoted example is not the answer.
|
| 44 |
+
- EVERY money figure the answer prints, in prose and tables, is held against every true figure of the household in
|
| 45 |
+
the turn's currency (`grader/facts.mjs`: spending per category, group, shop, account and span; money in, out,
|
| 46 |
+
kept; averages; rows; yearly estimates; differences; balances). A figure true only for months outside the turn's
|
| 47 |
+
period is WRONG. A figure that is no true figure at all is NEEDS REVIEW, adjudicated by hand.
|
| 48 |
+
- A month named outside the turn's period is wrong, unless the sentence says it is a comparison ("than June").
|
| 49 |
+
- A comparison with its sides reversed, a "biggest" where the smallest was asked, two different figures for the same
|
| 50 |
+
thing, a reversed sign on kept money, and a denial of a name the ledger holds are wrong.
|
| 51 |
+
- A money figure where a count was asked, or a count where money was asked, is wrong.
|
| 52 |
+
- A figure that adds two currencies is wrong.
|
| 53 |
+
- A follow-up that keeps the earlier period or scope must not change it (when the system shows its period and scope
|
| 54 |
+
as labels).
|
| 55 |
+
- A decline must leave the decision to the person and must give no instruction ("you should" is wrong). A cannot
|
| 56 |
+
must say so and state no figure.
|
| 57 |
+
|
| 58 |
+
## 3. How the six labels are counted
|
| 59 |
+
|
| 60 |
+
Each case gets exactly ONE label (`grader/score.mjs`), in this order:
|
| 61 |
+
|
| 62 |
+
1. **Wrong shown**: some turn is wrong.
|
| 63 |
+
2. **Wrong offered**: no turn is wrong, but some turn offers a choice and EVERY option, when answered, is wrong.
|
| 64 |
+
3. **Right, no tap**: every turn is correct (or an accepted clarification) with no tap.
|
| 65 |
+
4. **Right after one tap**: every turn is correct, and exactly one turn needed a tap.
|
| 66 |
+
5. **Needs review**: the grader could not place a figure; the row is adjudicated before a number is quoted.
|
| 67 |
+
6. **Not sure** or **Declined**: the class of the FIRST turn that is not right. Not sure: the system says it is not
|
| 68 |
+
sure, asks back, offers options of which none is right, says it would be guessing or could not check a figure.
|
| 69 |
+
Declined: the system says it cannot or will not answer, answers something else with no figure, errs or is empty.
|
| 70 |
+
A case right only after two taps or more is "not sure".
|
| 71 |
+
|
| 72 |
+
A chain is right only when EVERY turn is right. A wrong turn anywhere makes the case "wrong shown".
|
| 73 |
+
|
| 74 |
+
**The tap.** When a system offers options, the runner sends each option on a copy of the conversation and keeps
|
| 75 |
+
every answer. The tap picks the first option whose answer the grader marks right for that turn, using the answer
|
| 76 |
+
key. The conversation then goes on from that option. This is the same for every system. It is the best a person
|
| 77 |
+
could do with the options shown, so "right after one tap" is an upper bound on what a person would get. A system
|
| 78 |
+
that never offers options can never be right after a tap.
|
| 79 |
+
|
| 80 |
+
## 4. Nizar's grading rulings (from the hidden rounds; part of the grader)
|
| 81 |
+
|
| 82 |
+
Copied from the evaluation record (memory `project_eval_chat`), word for word where quoted:
|
| 83 |
+
|
| 84 |
+
- "wrong = any figure/name that does not answer the question (a true dollar figure for "how many" is wrong)"
|
| 85 |
+
- ""is that too much?" answered with Explain = no_answer"
|
| 86 |
+
- "savings rate accepts income minus spending or minus money out"
|
| 87 |
+
- "category answers accept leaf or group"
|
| 88 |
+
- "a widened-scope strip is wrong (also on single questions)"
|
| 89 |
+
- "another form of a held name refused = false denial"
|
| 90 |
+
- ""refuse rather than guess" (2026-09-30)"
|
| 91 |
+
- ""went out" with exclusions (money out vs spending) is OPEN"
|
| 92 |
+
- "a stated refund credit counts as money in for savings rate and money kept (2026-10-04)"
|
| 93 |
+
- "The WQA-05 pin was reversed: "In dollars?" after a count is the money."
|
| 94 |
+
- "Always count "an ask whose every reading is wrong" as wrong."
|
| 95 |
+
- "a chain whose not-sure leaves the rest nothing to continue is not sure"
|
| 96 |
+
- ""not sure" on a cannot gold stays not sure"
|
| 97 |
+
- "a person-picked option or strip click is exempt from the check" (applies to Pulse Local's own reader, not to
|
| 98 |
+
the grader)
|
| 99 |
+
|
| 100 |
+
## 5. Statistics
|
| 101 |
+
|
| 102 |
+
- **Intervals.** Each label's rate has a 95% interval from a two-level bootstrap: resample households with
|
| 103 |
+
replacement, then cases within each household, 2,000 times, percentile interval (`stats/report.mjs`). Cases of one
|
| 104 |
+
household share shops and wordings, so a case-level bootstrap would be too narrow.
|
| 105 |
+
- **Paired comparison** of two systems on the same cases: McNemar's exact test on each label (`report.mjs
|
| 106 |
+
--compare`).
|
| 107 |
+
- **Trend across versions.** A version-to-version change is not a finding. With three or more versions on the same
|
| 108 |
+
frozen split, `stats/trend.mjs` runs the Cochran-Armitage test for trend in a label's rate and the chi-square test
|
| 109 |
+
of homogeneity. Report the trend p value, never a round-to-round difference.
|
| 110 |
+
- **Resolution.** At about 340 cases, a binary label's 95% half-width is about ±3 points near 10% and ±5 points
|
| 111 |
+
near 50% before clustering; the household bootstrap widens it. A change smaller than that is not shown.
|
| 112 |
+
|
| 113 |
+
## 6. Adjudication
|
| 114 |
+
|
| 115 |
+
Before a number is quoted, every "needs review" row is read and given a ruling with a reason (for v1, by a Claude
|
| 116 |
+
session working for the maintainers; the owner has not reviewed the rulings yet). Every "wrong
|
| 117 |
+
shown" and "wrong offered" row is read too: a grader false positive is fixed only as a general rule, with an
|
| 118 |
+
adversarial case in `grader/check.mjs`, a CHANGELOG entry and a regrade of every row. Both counts are quoted: the
|
| 119 |
+
grader's and the adjudicated one. For v1: every wrong row of the Pulse Local runs was read; for the stock-model rows,
|
| 120 |
+
the wrong rows were read by the grader's reason, grouped, with 10 per row read in full; no sample of right rows was
|
| 121 |
+
read except for the Pulse Local rules row (20, carried over from its identical 0.4.15 transcripts).
|
| 122 |
+
|
| 123 |
+
## 7. Threats to validity
|
| 124 |
+
|
| 125 |
+
- **Synthetic households.** Every household is generated. Real ledgers have more shops, odder strings, transfers
|
| 126 |
+
between people, split payments, and years of history. The shapes copy public descriptions of each export, not real
|
| 127 |
+
files.
|
| 128 |
+
- **US-heavy.** 9 of 12 public households and 4 of 6 sealed ones are in US dollars only; the German ones are in
|
| 129 |
+
euros only (two public, one sealed); one in each split mixes two currencies. No other languages: every question is in English.
|
| 130 |
+
- **The writers are models.** The independent writers are Claude processes with a persona. Their wordings are more
|
| 131 |
+
varied than templates and were never tuned against any system, but they are not real users' messages.
|
| 132 |
+
- **The same model family writes and audits.** The writers and the auditor are Claude. A system from the same family
|
| 133 |
+
may find the wordings easier. A submitted row must say which model family it is.
|
| 134 |
+
- **Exposed public parts.** 494 of the 723 public cases are exposed: the eval v0 questions
|
| 135 |
+
(asked of Pulse Local during its development) and the shapes templates (the wordings of its shapes guard, asked on
|
| 136 |
+
new households). Reports split the public numbers by source.
|
| 137 |
+
- **Asymmetric inputs.** Pulse Local imports the source files, so it must parse the shapes itself. The model rows
|
| 138 |
+
read `view/view.csv` through the tools, already parsed (but with the source's raw descriptions and categories).
|
| 139 |
+
This favours the model rows on parsing and favours nobody on reading the question.
|
| 140 |
+
- **The grader reads text.** It cannot see meaning beyond its rules. It may miss a wrong claim with no figure, and it
|
| 141 |
+
may call a hypothetical figure ("a 20% rate means you kept a fifth") wrong. Hand adjudication covers the rows it
|
| 142 |
+
flags, not the rows it passes; we read a random sample of passes too.
|
| 143 |
+
- **The tap is an upper bound.** It uses the answer key. A real person may tap the wrong option.
|
| 144 |
+
- **How-to golds** need every concept word of the help page; a right answer in other words is "declined".
|
| 145 |
+
- **Gold disputes stay open** until the owner rules (for example: "how much does the Netflix premium plan cost now"
|
| 146 |
+
is a "cannot" in its case; a system that gives the latest Netflix charge is scored wrong).
|
README.md
ADDED
|
@@ -0,0 +1,237 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
language:
|
| 4 |
+
- en
|
| 5 |
+
pretty_name: BudgetBench
|
| 6 |
+
tags:
|
| 7 |
+
- personal-finance
|
| 8 |
+
- evaluation
|
| 9 |
+
- tool-use
|
| 10 |
+
- conversational
|
| 11 |
+
task_categories:
|
| 12 |
+
- question-answering
|
| 13 |
+
size_categories:
|
| 14 |
+
- n<1K
|
| 15 |
+
configs:
|
| 16 |
+
- config_name: public
|
| 17 |
+
data_files:
|
| 18 |
+
- split: test
|
| 19 |
+
path: viewer/public.jsonl
|
| 20 |
+
---
|
| 21 |
+
|
| 22 |
+
# BudgetBench
|
| 23 |
+
|
| 24 |
+
BudgetBench tests budgeting chat assistants. A person asks questions about their own bank transactions. The
|
| 25 |
+
assistant answers in a chat. BudgetBench checks every figure in every answer.
|
| 26 |
+
|
| 27 |
+
**Version 1.0.1, 2026-10-19. Not published.** This page is the draft of the public card.
|
| 28 |
+
|
| 29 |
+
## What it measures, and why
|
| 30 |
+
|
| 31 |
+
A budgeting assistant has one first duty: **it must never show a wrong figure** about the person's money. A wrong
|
| 32 |
+
total that looks right is worse than no answer. Its second duty is to give the right answer, with no tap or after
|
| 33 |
+
one tap on an option it offers.
|
| 34 |
+
|
| 35 |
+
Most tests count right answers only. A system that guesses then scores well and still shows wrong figures. Thus
|
| 36 |
+
BudgetBench gives each case exactly one of six labels and reports all six separately. It never merges them into one
|
| 37 |
+
score:
|
| 38 |
+
|
| 39 |
+
| label | meaning |
|
| 40 |
+
|---|---|
|
| 41 |
+
| Wrong shown | the answer shows a wrong figure, name or claim |
|
| 42 |
+
| Wrong offered | the system asks which reading you mean, and every option it offers is wrong |
|
| 43 |
+
| Right, no tap | every turn is right, with no tap |
|
| 44 |
+
| Right after one tap | every turn is right after one tap on an offered option |
|
| 45 |
+
| Not sure | the system says it is not sure, or asks back |
|
| 46 |
+
| Declined | the system declines or answers something else, with no figure |
|
| 47 |
+
|
| 48 |
+
A seventh state, **needs review**, is not a result: the grader could not place a figure, and a person reads the row
|
| 49 |
+
(`METHODOLOGY.md` §6).
|
| 50 |
+
|
| 51 |
+
## Summary
|
| 52 |
+
|
| 53 |
+
BudgetBench has 18 synthetic households in the real shapes of bank and app exports (a connected bank, Monarch, YNAB,
|
| 54 |
+
Chase, Amex, Capital One, Copilot, German bank and card files in euros, a plain CSV, and two-currency households)
|
| 55 |
+
and 1,060 conversations of 1 to 4 turns about them: totals, shops, months, comparisons, exclusions, follow-up chains,
|
| 56 |
+
how-to questions about the app, requests the assistant must refuse, and currencies. An independent oracle computes
|
| 57 |
+
every gold answer from the household's truth; it shares no code with Pulse Local, and only a CSV line reader
|
| 58 |
+
(`households/csv.mjs`) with the reference tools of the model rows. A rule-based grader,
|
| 59 |
+
with no model judge, checks every money figure of every turn. The public split (723 cases on 12 households) is for
|
| 60 |
+
development. A sealed split (337 cases on 6 households, written by independent writers who never saw any app code)
|
| 61 |
+
stays private and supports release claims; only its hashes are public.
|
| 62 |
+
|
| 63 |
+
## Leaderboard
|
| 64 |
+
|
| 65 |
+
Each cell: cases (share, 95% interval from a bootstrap that resamples households, then cases). The public split is
|
| 66 |
+
a DEVELOPMENT split: 494 of its 723 cases are Pulse Local's earlier test questions, or the same wordings on new
|
| 67 |
+
households (`CONTAMINATION.md`). The second table shows the 229 public cases from independent writers: the chat code of
|
| 68 |
+
Pulse Local did not change after anyone read its answers to them, and nobody tuned the stock models. They come from 4
|
| 69 |
+
households, so their intervals are wide. The third table is the sealed split:
|
| 70 |
+
aggregate counts only.
|
| 71 |
+
|
| 72 |
+
<!-- LEADERBOARD:START -->
|
| 73 |
+
| system | tuned on public | n | wrong shown | wrong offered | right, no tap | right after one tap | not sure | declined | needs review | run |
|
| 74 |
+
|---|---|---|---|---|---|---|---|---|---|---|
|
| 75 |
+
| Pulse Local 0.4.16, rules | yes (494 exposed cases) | 723 | 39 (5.4%, 2.0% to 9.0%) | 3 (0.4%, 0.0% to 1.2%) | 604 (83.5%, 74.5% to 93.1%) | 2 (0.3%, 0.0% to 0.8%) | 55 (7.6%, 3.1% to 12.2%) | 19 (2.6%, 0.7% to 4.9%) | 1 | 2026-10-19 |
|
| 76 |
+
| Pulse Local 0.4.16, rules + 4B checker (agree or not sure) | yes (494 exposed cases) | 723 | 11 (1.5%, 0.3% to 3.2%) | 4 (0.6%, 0.0% to 1.5%) | 566 (78.3%, 69.4% to 88.8%) | 2 (0.3%, 0.0% to 0.8%) | 126 (17.4%, 9.3% to 23.8%) | 14 (1.9%, 0.5% to 3.7%) | 0 | 2026-10-19 |
|
| 77 |
+
| Qwen3 0.6B (stock, Q4_K_M, thinking off) + reference tools | no | 723 | 199 (27.5%, 22.6% to 32.9%) | 0 (0.0%, 0.0% to 0.0%) | 55 (7.6%, 5.5% to 10.1%) | 0 (0.0%, 0.0% to 0.0%) | 1 (0.1%, 0.0% to 0.7%) | 457 (63.2%, 57.8% to 68.8%) | 11 | 2026-10-19 |
|
| 78 |
+
| Qwen3 4B (stock, Q4_K_M, thinking off) + reference tools | no | 723 | 303 (41.9%, 37.3% to 47.6%) | 1 (0.1%, 0.0% to 0.6%) | 161 (22.3%, 16.8% to 26.5%) | 0 (0.0%, 0.0% to 0.0%) | 10 (1.4%, 0.2% to 2.9%) | 229 (31.7%, 26.9% to 36.6%) | 19 | 2026-10-19 |
|
| 79 |
+
| Qwen3 8B (stock, Q4_K_M, thinking off) + reference tools | no | 723 | 267 (36.9%, 30.2% to 41.9%) | 0 (0.0%, 0.0% to 0.0%) | 287 (39.7%, 34.2% to 48.1%) | 0 (0.0%, 0.0% to 0.0%) | 20 (2.8%, 1.0% to 4.4%) | 130 (18.0%, 14.2% to 21.9%) | 19 | 2026-10-19 |
|
| 80 |
+
|
| 81 |
+
Writers' cases only (the 229 public cases by independent writers; the chat code of Pulse Local did not change after anyone read its answers to them; nobody tuned the stock models; 4 households, so the intervals are wide):
|
| 82 |
+
|
| 83 |
+
| system | tuned on public | n | wrong shown | wrong offered | right, no tap | right after one tap | not sure | declined | needs review | run |
|
| 84 |
+
|---|---|---|---|---|---|---|---|---|---|---|
|
| 85 |
+
| Pulse Local 0.4.16, rules | yes (494 exposed cases) | 229 | 35 (15.3%, 10.2% to 20.4%) | 3 (1.3%, 0.0% to 3.1%) | 123 (53.7%, 43.2% to 62.9%) | 1 (0.4%, 0.0% to 1.7%) | 48 (21.0%, 14.4% to 28.8%) | 18 (7.9%, 3.9% to 12.8%) | 1 | 2026-10-19 |
|
| 86 |
+
| Pulse Local 0.4.16, rules + 4B checker (agree or not sure) | yes (494 exposed cases) | 229 | 10 (4.4%, 1.3% to 8.7%) | 4 (1.7%, 0.0% to 3.9%) | 108 (47.2%, 33.8% to 59.9%) | 1 (0.4%, 0.0% to 1.7%) | 93 (40.6%, 30.2% to 52.1%) | 13 (5.7%, 2.7% to 9.3%) | 0 | 2026-10-19 |
|
| 87 |
+
| Qwen3 0.6B (stock, Q4_K_M, thinking off) + reference tools | no | 229 | 48 (21.0%, 13.8% to 29.7%) | 0 (0.0%, 0.0% to 0.0%) | 12 (5.2%, 2.2% to 8.9%) | 0 (0.0%, 0.0% to 0.0%) | 1 (0.4%, 0.0% to 1.8%) | 164 (71.6%, 61.5% to 79.9%) | 4 | 2026-10-19 |
|
| 88 |
+
| Qwen3 4B (stock, Q4_K_M, thinking off) + reference tools | no | 229 | 88 (38.4%, 30.5% to 47.1%) | 1 (0.4%, 0.0% to 2.0%) | 42 (18.3%, 11.0% to 24.9%) | 0 (0.0%, 0.0% to 0.0%) | 9 (3.9%, 0.9% to 7.5%) | 78 (34.1%, 27.5% to 41.0%) | 11 | 2026-10-19 |
|
| 89 |
+
| Qwen3 8B (stock, Q4_K_M, thinking off) + reference tools | no | 229 | 108 (47.2%, 38.8% to 57.4%) | 0 (0.0%, 0.0% to 0.0%) | 51 (22.3%, 14.2% to 30.1%) | 0 (0.0%, 0.0% to 0.0%) | 15 (6.6%, 3.3% to 10.3%) | 44 (19.2%, 13.5% to 24.8%) | 11 | 2026-10-19 |
|
| 90 |
+
|
| 91 |
+
Sealed split (337 cases, 6 households, held out; aggregate counts only):
|
| 92 |
+
|
| 93 |
+
| system | tuned on public | n | wrong shown | wrong offered | right, no tap | right after one tap | not sure | declined | needs review | run |
|
| 94 |
+
|---|---|---|---|---|---|---|---|---|---|---|
|
| 95 |
+
| Pulse Local 0.4.16, rules | yes (494 exposed cases) | 337 | 79 (23.4%, 16.9% to 29.9%) | 1 (0.3%, 0.0% to 1.2%) | 178 (52.8%, 45.8% to 59.9%) | 3 (0.9%, 0.0% to 2.6%) | 50 (14.8%, 9.8% to 20.2%) | 22 (6.5%, 3.0% to 10.6%) | 4 | 2026-10-19 |
|
| 96 |
+
| Pulse Local 0.4.16, rules + 4B checker (agree or not sure) | yes (494 exposed cases) | 337 | 23 (6.8%, 2.5% to 11.0%) | 1 (0.3%, 0.0% to 1.2%) | 153 (45.4%, 37.9% to 52.7%) | 3 (0.9%, 0.0% to 2.6%) | 143 (42.4%, 35.3% to 49.6%) | 14 (4.2%, 1.8% to 6.9%) | 0 | 2026-10-19 |
|
| 97 |
+
|
| 98 |
+
After review of the needs-review rows (rulings by a Claude session for the maintainers, in each run folder's `ADJUDICATION.md`; the grader's counts above stay the reproducible ones):
|
| 99 |
+
|
| 100 |
+
| system | split | n | wrong shown | wrong offered | right, no tap | right after one tap | not sure | declined | needs review |
|
| 101 |
+
|---|---|---|---|---|---|---|---|---|---|
|
| 102 |
+
| Pulse Local 0.4.16, rules | public | 723 | 39 | 3 | 605 | 2 | 55 | 19 | 0 |
|
| 103 |
+
| Pulse Local 0.4.16, rules + 4B checker (agree or not sure) | public | 723 | 11 | 4 | 566 | 2 | 126 | 14 | 0 |
|
| 104 |
+
| Qwen3 0.6B (stock, Q4_K_M, thinking off) + reference tools | public | 723 | 207 | 0 | 55 | 0 | 1 | 460 | 0 |
|
| 105 |
+
| Qwen3 4B (stock, Q4_K_M, thinking off) + reference tools | public | 723 | 321 | 1 | 162 | 0 | 10 | 229 | 0 |
|
| 106 |
+
| Qwen3 8B (stock, Q4_K_M, thinking off) + reference tools | public | 723 | 282 | 0 | 289 | 0 | 22 | 130 | 0 |
|
| 107 |
+
| Pulse Local 0.4.16, rules | sealed | 337 | 80 | 1 | 181 | 3 | 50 | 22 | 0 |
|
| 108 |
+
| Pulse Local 0.4.16, rules + 4B checker (agree or not sure) | sealed | 337 | 23 | 1 | 153 | 3 | 143 | 14 | 0 |
|
| 109 |
+
<!-- LEADERBOARD:END -->
|
| 110 |
+
|
| 111 |
+
How to read the rows:
|
| 112 |
+
|
| 113 |
+
- **Pulse Local, rules** is the app as it ships on machines with 16 GB of memory or less: its own code and its
|
| 114 |
+
tuned 0.6B model, "Better understanding" off. **Pulse Local, rules + 4B checker** is the app as it ships above
|
| 115 |
+
16 GB: the 4B checker (Qwen3-4B-Instruct-2507) reads every message too, and the app shows a figure only
|
| 116 |
+
when the two readings agree; otherwise it says it is not sure.
|
| 117 |
+
- **Stock models** are Qwen3 0.6B, 4B and 8B (Q4_K_M, thinking off), each behind llama-server with the same system
|
| 118 |
+
prompt and the same reference tools (`systems/tools.mjs`). They read parsed rows; Pulse Local reads the raw files
|
| 119 |
+
(`METHODOLOGY.md` §7). They are not tuned for this task.
|
| 120 |
+
- **No hosted model.** BudgetBench runs and publishes no row for a paid hosted model of its own. Anyone may run one
|
| 121 |
+
with their own key (`SUBMIT.md`) and send the row.
|
| 122 |
+
- **Needs review** rows are read by hand. Each run folder's `ADJUDICATION.md` gives the rulings and the adjudicated
|
| 123 |
+
counts beside the grader's.
|
| 124 |
+
- **Pulse Local's release claim is the sealed table.** Its public rows are development scores.
|
| 125 |
+
|
| 126 |
+
## Reproduce
|
| 127 |
+
|
| 128 |
+
From the folder that holds `budgetbench/` (Node 24; Python 3 for `check.mjs`; Apple Silicon and llama.cpp's
|
| 129 |
+
`llama-server` for the local models):
|
| 130 |
+
|
| 131 |
+
```bash
|
| 132 |
+
node budgetbench/check.mjs # frozen files, both oracles, the grader's 5,031 public checks: must pass
|
| 133 |
+
budgetbench/runner/serve-local.sh public # the three stock Qwen3 rows, one llama-server at a time
|
| 134 |
+
node budgetbench/stats/report.mjs budgetbench/results/openai-compat-qwen3-8b/public/<run-id> --regrade
|
| 135 |
+
node budgetbench/stats/leaderboard.mjs <run folder> ... # the tables above, regraded from the transcripts
|
| 136 |
+
```
|
| 137 |
+
|
| 138 |
+
The stock rows need the GGUF files in `$MODELS` (default `app/models`) under these names and SHA-256 sums:
|
| 139 |
+
|
| 140 |
+
| row | file | source (Q4_K_M file) | SHA-256 |
|
| 141 |
+
|---|---|---|---|
|
| 142 |
+
| Qwen3 0.6B | `hf_unsloth_Qwen3-0.6B-Q4_K_M.gguf` | unsloth/Qwen3-0.6B-GGUF | `ac2d97712095a558e31573f62f466a3f9d93990898b0ec79d7c974c1780d524a` |
|
| 143 |
+
| Qwen3 4B | `hf_Qwen_Qwen3-4B-Q4_K_M.gguf` | Qwen/Qwen3-4B-GGUF | `7485fe6f11af29433bc51cab58009521f205840f5b4ae3a32fa7f92e8534fdf5` |
|
| 144 |
+
| Qwen3 8B | `Qwen3-8B-Q4_K_M.gguf` | unsloth/Qwen3-8B-GGUF | `120307ba529eb2439d6c430d94104dabd578497bc7bfe7e322b5d9933b449bd4` |
|
| 145 |
+
|
| 146 |
+
Each SHA-256 equals the repository's file on 2026-10-19. `serve-local.sh` writes the SHA-256 and the llama.cpp build of
|
| 147 |
+
every stock run to `results/logs/models.txt`. Context 32,768, temperature 0.
|
| 148 |
+
|
| 149 |
+
**Pulse Local rows** run the app's own pipeline (`systems/pulse-local.mjs`), so they need the Pulse Local app
|
| 150 |
+
source, which is not public:
|
| 151 |
+
|
| 152 |
+
```bash
|
| 153 |
+
node --experimental-strip-types --no-warnings budgetbench/runner/run.mjs --system pulse-local --variant rules --split public --run-id <id>
|
| 154 |
+
node --experimental-strip-types --no-warnings budgetbench/runner/run.mjs --system pulse-local --variant reader --split public --run-id <id>
|
| 155 |
+
```
|
| 156 |
+
|
| 157 |
+
Anyone can still check every published row: each run folder holds every case's full transcript, and
|
| 158 |
+
`report.mjs --regrade` recomputes every label from those transcripts with the frozen grader. Each `inputs.json`
|
| 159 |
+
holds the SHA-256 of the cases, households, grader, oracle, runner, system file and (for Pulse Local) the app
|
| 160 |
+
source.
|
| 161 |
+
|
| 162 |
+
**Your own model:** any OpenAI-compatible endpoint, with your own key in your own environment:
|
| 163 |
+
|
| 164 |
+
```bash
|
| 165 |
+
export MY_KEY=... # your key; BudgetBench reads it from the process environment only and never writes it
|
| 166 |
+
BB_BASE=https://api.example.com/v1 BB_MODEL=<model id> BB_KEY=MY_KEY \
|
| 167 |
+
node budgetbench/runner/run.mjs --system openai-compat --variant <name> --split public --run-id <id>
|
| 168 |
+
node budgetbench/stats/cost-estimate.mjs --price-in <$ per M> --price-out <$ per M> # estimate first
|
| 169 |
+
```
|
| 170 |
+
|
| 171 |
+
See `SUBMIT.md` to send a row. The sealed split goes to no system under test through an API. Hosted Claude sessions
|
| 172 |
+
wrote and audited it, and a Claude session ran and graded the v1 sealed runs (`CONTAMINATION.md` §6).
|
| 173 |
+
|
| 174 |
+
## Files
|
| 175 |
+
|
| 176 |
+
| file | contents |
|
| 177 |
+
|---|---|
|
| 178 |
+
| `SPEC.md` | the design: households, categories, oracle, grader, metrics, splits, systems |
|
| 179 |
+
| `DATASHEET.md` | how the data was made, what it covers, its known flaws |
|
| 180 |
+
| `METHODOLOGY.md` | the gold, the grader's rules, how each label is counted, the statistics, threats to validity |
|
| 181 |
+
| `CONTAMINATION.md` | the sealed split, what is exposed, what a submitter declares, what invalidates a result |
|
| 182 |
+
| `SUBMIT.md` | how to run your system and send a row |
|
| 183 |
+
| `CHANGELOG.md` | versions |
|
| 184 |
+
| `cases/public/` | the public cases (JSONL); `viewer/public.jsonl` is the same cases flattened for the Hub's viewer |
|
| 185 |
+
| `households/public/` | the public households: `source/`, `view/`, `truth/` |
|
| 186 |
+
| `oracle/`, `grader/` | the gold and the scorer |
|
| 187 |
+
| `runner/`, `systems/`, `stats/` | the runner, the systems, the reports |
|
| 188 |
+
| `results/` | every public run: each case's full transcript and label; `results/SEALED-AGGREGATES.md` |
|
| 189 |
+
| `sealed.sha256` | the SHA-256 of every sealed file, so anyone can check later that the sealed split did not change |
|
| 190 |
+
|
| 191 |
+
## Limits
|
| 192 |
+
|
| 193 |
+
- The households are synthetic. A score here is not a score on real ledgers.
|
| 194 |
+
- Most households are in US dollars. All questions are in English.
|
| 195 |
+
- The 566 writers' cases were written by Claude sessions acting as persons, not by real users. The other 494 public
|
| 196 |
+
cases come from Pulse Local's earlier tests.
|
| 197 |
+
- 494 public cases are exposed to Pulse Local. Read its public rows with that in mind; its release claims come from
|
| 198 |
+
the sealed split.
|
| 199 |
+
- Pulse Local reads the raw files; the model rows read parsed rows through tools.
|
| 200 |
+
- The grader reads text by rules. Every "needs review" row is ruled by a reviewer (for v1, a Claude session working
|
| 201 |
+
for the maintainers). Every wrong row of the Pulse Local runs was read; the stock rows' wrong rows were read by
|
| 202 |
+
the grader's reason, grouped, with a sample in full. Each run folder's `ADJUDICATION.md` says what was read.
|
| 203 |
+
- "Right after one tap" uses the answer key to choose the option. It is an upper bound.
|
| 204 |
+
- The team that makes Pulse Local made BudgetBench. Read Pulse Local's rows with that in mind too.
|
| 205 |
+
|
| 206 |
+
## Licence
|
| 207 |
+
|
| 208 |
+
- **Code** (households generator, oracle, grader, runners, reports): **Apache License 2.0**. It is the licence of the
|
| 209 |
+
Pulse Local model on Hugging Face, it is permissive, and it gives an explicit patent grant, which matters for code
|
| 210 |
+
others will build into their own systems.
|
| 211 |
+
- **Data** (households, cases, golds, results): **Creative Commons Attribution 4.0 (CC BY 4.0)**. Anyone may copy,
|
| 212 |
+
change and use it, also commercially, if they credit BudgetBench.
|
| 213 |
+
- `help/HELP.md` is the text of Pulse Local's public help pages, included so that how-to cases can be graded. Its
|
| 214 |
+
inclusion under CC BY 4.0 needs the owner's confirmation before publication (not yet confirmed).
|
| 215 |
+
- The sealed split is not released under any licence.
|
| 216 |
+
|
| 217 |
+
## Citation
|
| 218 |
+
|
| 219 |
+
```bibtex
|
| 220 |
+
@misc{budgetbench2026,
|
| 221 |
+
title = {BudgetBench: Measuring Wrong Figures in Budgeting Chat Assistants},
|
| 222 |
+
author = {Grira, Nizar and {Pulse Local team}},
|
| 223 |
+
year = {2026},
|
| 224 |
+
version = {1.0.1},
|
| 225 |
+
note = {Public split of 723 cases on 12 synthetic households; sealed split of 337 cases on 6 households},
|
| 226 |
+
howpublished = {\url{https://huggingface.co/datasets/PulseOS/budgetbench}}
|
| 227 |
+
}
|
| 228 |
+
```
|
| 229 |
+
|
| 230 |
+
## Publishing (the owner's step)
|
| 231 |
+
|
| 232 |
+
```bash
|
| 233 |
+
node budgetbench/hf/export.mjs /tmp/budgetbench-hf # the committed tree only; refuses any sealed content
|
| 234 |
+
hf upload PulseOS/budgetbench /tmp/budgetbench-hf . --repo-type dataset --private --commit-message "BudgetBench v1.0.1"
|
| 235 |
+
```
|
| 236 |
+
|
| 237 |
+
Contact: niz@pulseos.finance.
|
SPEC.md
ADDED
|
@@ -0,0 +1,176 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# BudgetBench v1: specification
|
| 2 |
+
|
| 3 |
+
Status: v1.0.1 (grader fix; v1.0.0 built the same day), 2026-10-19. Not published. Publishing is the owner's decision.
|
| 4 |
+
|
| 5 |
+
## 1. Purpose
|
| 6 |
+
|
| 7 |
+
BudgetBench measures a budgeting chat assistant. A person asks questions about their own transactions. The
|
| 8 |
+
assistant answers in a chat.
|
| 9 |
+
|
| 10 |
+
The first requirement is this: **the assistant never shows a wrong figure**. The second requirement is this: the
|
| 11 |
+
assistant gives the right answer, with no tap or with at most one tap. A system that guesses can get more right
|
| 12 |
+
answers, but it also shows wrong figures. Thus BudgetBench reports each outcome separately and never merges them into one
|
| 13 |
+
score.
|
| 14 |
+
|
| 15 |
+
BudgetBench replaces two earlier evaluations of Pulse Local with one versioned benchmark. It takes the cases of the
|
| 16 |
+
first and the grader of the second; no case of the hidden rounds is in BudgetBench:
|
| 17 |
+
|
| 18 |
+
- the public budget eval of 2026-09-27 (`pulse-local/eval/`, 176 single questions on one synthetic ledger, gold from
|
| 19 |
+
`reference.py`). It was never published.
|
| 20 |
+
- the private hidden rounds of the chat (`pulse-local/eval-chat/`, rounds 1 to 11, grader v3, Nizar's rulings). All
|
| 21 |
+
rounds are exposed.
|
| 22 |
+
|
| 23 |
+
The first system is Pulse Local. The runner interface lets any other system run the same cases.
|
| 24 |
+
|
| 25 |
+
## 2. Households
|
| 26 |
+
|
| 27 |
+
A household is a set of transactions in the shape that a real source writes. The generator
|
| 28 |
+
(`households/gen.mjs`) writes each household three times from one list of rows:
|
| 29 |
+
|
| 30 |
+
| folder | contents | who reads it |
|
| 31 |
+
|---|---|---|
|
| 32 |
+
| `source/` | the files a person imports, in the source's real shape | the system under test (Pulse Local imports them) |
|
| 33 |
+
| `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 |
|
| 34 |
+
| `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 |
|
| 35 |
+
|
| 36 |
+
The shapes, each with its own column layout, sign convention, date format and category words:
|
| 37 |
+
|
| 38 |
+
| shape | what it copies | currency |
|
| 39 |
+
|---|---|---|
|
| 40 |
+
| 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 |
|
| 41 |
+
| monarch | a Monarch Money export | USD |
|
| 42 |
+
| ynab | a YNAB register: Outflow and Inflow columns, "$" amounts, US dates, "Transfer : account" payees | USD |
|
| 43 |
+
| chase, amex, capitalone | card downloads; Amex writes a purchase as positive | USD |
|
| 44 |
+
| copilot | a Copilot Money export, with one purchase that its owner excluded (in the file, never counted) | USD |
|
| 45 |
+
| german | a German bank file that the person tagged: ";" separators, decimal commas, dd.mm.yyyy dates, German categories | EUR |
|
| 46 |
+
| germancard | a German card file with bank strings that drop letters (RSSMNN for Rossmann) | EUR |
|
| 47 |
+
| plain | Date, Description, Amount only | USD |
|
| 48 |
+
| multicurrency | a USD checking account and a card in another currency (EUR public, GBP sealed); each file states its currency | two |
|
| 49 |
+
| classic | the frozen ledger of the 2026-09-27 eval, unchanged (`households/classic/data/ledger.csv`) | USD |
|
| 50 |
+
|
| 51 |
+
Public households use the shop names of `bench/shapes/households.mjs` (real brands, because real bank strings are
|
| 52 |
+
part of the test). Sealed households use invented shop names only, their own months and their own seeds.
|
| 53 |
+
|
| 54 |
+
Every household is deterministic: `check.mjs` regenerates it and compares every file byte for byte.
|
| 55 |
+
|
| 56 |
+
## 3. Question categories
|
| 57 |
+
|
| 58 |
+
Each case has one category (`tags[0]` in reports):
|
| 59 |
+
|
| 60 |
+
| category | what it asks |
|
| 61 |
+
|---|---|
|
| 62 |
+
| 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 |
|
| 63 |
+
| merchants | one shop: total, one month, how many times, the latest charge, the yearly cost of a bill, the top shop |
|
| 64 |
+
| by_month | a shop or category month by month; the highest or lowest month |
|
| 65 |
+
| comparisons | a month against a month, a span against a span; how much more or less |
|
| 66 |
+
| exclusions | a figure that leaves something out |
|
| 67 |
+
| chains | 2 to 4 turns; later turns point back (another month, another shop, another measure, an exclusion added, "the biggest?") |
|
| 68 |
+
| howto | how to use the app, answered from `help/HELP.md` (the app's public help pages) |
|
| 69 |
+
| refusals | "decline": a decision the assistant must not make; "cannot": something the ledger cannot answer |
|
| 70 |
+
| currency | an account kept in another currency, a total over two currencies, a request to convert |
|
| 71 |
+
|
| 72 |
+
## 4. The gold: an independent oracle
|
| 73 |
+
|
| 74 |
+
Every turn of every case carries a MEANING in a small language (`writers/BRIEF.md`): the measure, the scope (shop,
|
| 75 |
+
category, group, account), the months, what is left out, a rank, a currency. The oracle (`oracle/oracle.mjs`)
|
| 76 |
+
computes the gold from the meaning and the truth ledger only. It imports no app code and reads no answer.
|
| 77 |
+
|
| 78 |
+
The money definitions are those of `eval/reference.py` and `eval-chat/facts.mjs`, written out in the oracle's header:
|
| 79 |
+
spending is per category and per month, floored at zero; pending rows count; income, cashback, transfers and card
|
| 80 |
+
payments are not spending; each account keeps its currency and no figure adds two currencies.
|
| 81 |
+
|
| 82 |
+
Two oracles agree. For the 176 classic cases, `households/classic/make_cases.py` (the frozen generator of the
|
| 83 |
+
2026-09-27 eval, same seed) writes each question with its meaning; `check.mjs` requires the BudgetBench oracle to
|
| 84 |
+
give the same gold as `reference.py` on every one (176 of 176).
|
| 85 |
+
|
| 86 |
+
## 5. The grader
|
| 87 |
+
|
| 88 |
+
`grader/judge.mjs` is grader v3 of the hidden rounds (`eval-chat/grade3.mjs`, revision 2026-10-02b), copied and
|
| 89 |
+
changed only where marked "BB:". It judges EVERY turn and audits EVERY money figure the answer prints, prose and
|
| 90 |
+
tables, against all true figures of the household (`grader/facts.mjs`). The changes for BudgetBench:
|
| 91 |
+
|
| 92 |
+
- money in any currency ("1.311,34 €", "£8.90", "SEK 5"): each turn is judged in its own currency;
|
| 93 |
+
- a figure that adds two currencies is wrong;
|
| 94 |
+
- gold types for a table by month, for one figure per currency, and for how-to answers;
|
| 95 |
+
- a shop is named by any of its names (as a person says it, as its bank writes it);
|
| 96 |
+
- the "not sure" wordings of any system count as asking back;
|
| 97 |
+
- a choice whose every option answers wrongly is "wrong offered".
|
| 98 |
+
|
| 99 |
+
Nizar's rulings (from the hidden rounds, kept word for word in `METHODOLOGY.md` §4) are part of the grader.
|
| 100 |
+
|
| 101 |
+
The adversarial checks (`grader/check.mjs`) run on every turn of every frozen case: the gold written as a plain
|
| 102 |
+
answer must be right; a wrong figure, a wrong month, reversed sides, a sum of two currencies, an offered choice of
|
| 103 |
+
wrong readings, an empty answer, a refusal and "not sure" must each get their own outcome; plus fixed probes for the
|
| 104 |
+
known traps (a figure only in a table, the gold quoted and denied, the gold in a difference role, an example text).
|
| 105 |
+
`check.mjs` fails when any of these fails.
|
| 106 |
+
|
| 107 |
+
## 6. The metrics (never merged)
|
| 108 |
+
|
| 109 |
+
Each case gets exactly one label (`grader/score.mjs`):
|
| 110 |
+
|
| 111 |
+
| label | meaning |
|
| 112 |
+
|---|---|
|
| 113 |
+
| wrong shown | some turn shows a wrong figure, name or claim |
|
| 114 |
+
| wrong offered | no turn shows one, but some turn offers a choice whose every option is wrong |
|
| 115 |
+
| right, no tap | every turn is right with no tap |
|
| 116 |
+
| right after one tap | every turn is right, with exactly one tap on an offered option |
|
| 117 |
+
| not sure | the first turn that is not right says it is not sure or asks back (two taps or more also count here) |
|
| 118 |
+
| declined | the first turn that is not right declines, fails or says nothing usable |
|
| 119 |
+
| needs review | the grader cannot place a figure; adjudicated by hand before a number is quoted |
|
| 120 |
+
|
| 121 |
+
THE TAP. When a system offers options, the runner answers every option on a copy of the conversation. The tap picks
|
| 122 |
+
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
|
| 123 |
+
would do; it is never a guess by the system.
|
| 124 |
+
|
| 125 |
+
Every report gives each label per category and per source, with a 95% interval from a bootstrap that resamples
|
| 126 |
+
households and then cases (`stats/report.mjs`). Versions are compared with a trend test across all versions on the
|
| 127 |
+
same frozen split (`stats/trend.mjs`, Cochran-Armitage), never round to round.
|
| 128 |
+
|
| 129 |
+
## 7. Splits
|
| 130 |
+
|
| 131 |
+
| split | cases | who wrote them | where |
|
| 132 |
+
|---|---|---|---|
|
| 133 |
+
| 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 |
|
| 134 |
+
| sealed (held-out) | 337 | 6 independent writers, one per sealed household | outside git; `sealed.sha256` in git |
|
| 135 |
+
|
| 136 |
+
Independence of the writers: each writer was a separate `claude -p` process started in an empty folder outside the
|
| 137 |
+
repository, so it loaded no project instructions, no memory and no app code. The folder held only its household's
|
| 138 |
+
truth files, a persona, `writers/BRIEF.md`, `help/HELP.md` and the validator. A writer never saw another split. Then
|
| 139 |
+
an auditor process read each case sheet (wording, meaning, expected answer) and flagged mismatches; 2 cases were
|
| 140 |
+
dropped before the freeze, none edited (`cases/public/AUDIT-LOG.md`, `sealed/AUDIT-LOG.md`).
|
| 141 |
+
|
| 142 |
+
Both splits are frozen: `FROZEN.sha256` and `sealed.sha256`. See `CONTAMINATION.md`.
|
| 143 |
+
|
| 144 |
+
## 8. Systems
|
| 145 |
+
|
| 146 |
+
One runner (`runner/run.mjs`), one interface: `open(household) -> {ask(history, message) -> {text, choice?,
|
| 147 |
+
history}}`.
|
| 148 |
+
|
| 149 |
+
| system | file | what it is |
|
| 150 |
+
|---|---|---|
|
| 151 |
+
| Pulse Local, rules | `systems/pulse-local.mjs` (variant `rules`) | the shipped pipeline with the tuned 0.6B model, Better understanding off |
|
| 152 |
+
| 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 |
|
| 153 |
+
| stock open models | `systems/openai-compat.mjs` + `runner/serve-local.sh` | Qwen3 0.6B, 4B and 8B behind llama-server, with the reference tools |
|
| 154 |
+
| 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 |
|
| 155 |
+
|
| 156 |
+
The reference tools (`systems/tools.mjs`) read `view/view.csv`. They hold no benchmark truth. Pulse Local reads the
|
| 157 |
+
source files. That difference is a known asymmetry (METHODOLOGY.md §7).
|
| 158 |
+
|
| 159 |
+
## 9. Files
|
| 160 |
+
|
| 161 |
+
```
|
| 162 |
+
budgetbench/
|
| 163 |
+
README.md DATASHEET.md METHODOLOGY.md CONTAMINATION.md SUBMIT.md CHANGELOG.md SPEC.md
|
| 164 |
+
check.mjs FROZEN.sha256 sealed.sha256 .gitignore
|
| 165 |
+
households/ gen.mjs sources.mjs csv.mjs public.config.mjs templates.mjs classic/ public/
|
| 166 |
+
oracle/ oracle.mjs categories.json
|
| 167 |
+
grader/ judge.mjs facts.mjs money.mjs score.mjs check.mjs
|
| 168 |
+
cases/public/ classic.jsonl templates.jsonl writers.jsonl AUDIT-LOG.md
|
| 169 |
+
writers/ BRIEF.md validate.mjs make-packet.mjs personas/
|
| 170 |
+
help/HELP.md
|
| 171 |
+
runner/ run.mjs serve-local.sh
|
| 172 |
+
systems/ pulse-local.mjs openai-compat.mjs tools.mjs
|
| 173 |
+
stats/ report.mjs trend.mjs cost-estimate.mjs
|
| 174 |
+
results/ <system>-<variant>/<split>/<run>/ (results.jsonl, inputs.json, summary.json)
|
| 175 |
+
sealed/ (git-ignored) cases/ households/ personas/ writers/ households.config.mjs AUDIT-LOG.md
|
| 176 |
+
```
|
SUBMIT.md
ADDED
|
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Submitting a system to BudgetBench
|
| 2 |
+
|
| 3 |
+
## 1. Write a system file
|
| 4 |
+
|
| 5 |
+
A system is one ES module in `systems/`. It exports:
|
| 6 |
+
|
| 7 |
+
```js
|
| 8 |
+
export const name = "my-system";
|
| 9 |
+
export const variants = ["default"];
|
| 10 |
+
export const processPerHousehold = false; // true if your system keeps global state (one process per household)
|
| 11 |
+
export async function describe(variant) { // printed in every report and stored in inputs.json
|
| 12 |
+
return {system: "My Assistant", variant, version: "1.2.0", model: "..."};
|
| 13 |
+
}
|
| 14 |
+
export async function open(householdDir, setup, variant) {
|
| 15 |
+
// Load the household. Read ONLY householdDir/source/ (the files a person imports) or householdDir/view/
|
| 16 |
+
// (the parsed rows) plus setup.json's today, accounts and currencies. Never read householdDir/truth/.
|
| 17 |
+
return {
|
| 18 |
+
loaded: 123, // rows loaded, for the log
|
| 19 |
+
model: "served-model-id", // the model that answered, from the response when you can
|
| 20 |
+
async ask(history, message) {
|
| 21 |
+
// history: the conversation so far, in YOUR format, as you returned it last time ([] at the start)
|
| 22 |
+
return {
|
| 23 |
+
text: "the answer the person sees, with any table as Markdown",
|
| 24 |
+
choice: null, // or {labels: ["option 1", "option 2"]} when you ask which one
|
| 25 |
+
history: [...history /* plus this exchange */],
|
| 26 |
+
meta: {} // anything you want kept in the transcript (latency, tool calls)
|
| 27 |
+
};
|
| 28 |
+
}
|
| 29 |
+
};
|
| 30 |
+
}
|
| 31 |
+
```
|
| 32 |
+
|
| 33 |
+
Rules:
|
| 34 |
+
|
| 35 |
+
- `ask` must be pure in `history`: the runner answers every offered option on a COPY of the conversation, so it
|
| 36 |
+
calls `ask` several times with the same `history`.
|
| 37 |
+
- If you offer options, return them in `choice.labels`. The runner sends the chosen label back as the next message.
|
| 38 |
+
The tap picks the option that the answer key marks right, the same way for every system (`METHODOLOGY.md` §3).
|
| 39 |
+
- Use the answer's own currency marks. The grader reads "$1,234.56", "1.234,56 €", "£8.90", "SEK 5" and more.
|
| 40 |
+
- Temperature 0 or a fixed seed. A run must be reproducible.
|
| 41 |
+
|
| 42 |
+
A model with tools needs no new file: use `systems/openai-compat.mjs` with an OpenAI-compatible endpoint. It gives
|
| 43 |
+
every model the same prompt and the same reference tools:
|
| 44 |
+
|
| 45 |
+
- `BB_BASE`: the endpoint, for example `https://api.example.com/v1`;
|
| 46 |
+
- `BB_MODEL`: the model id the endpoint expects;
|
| 47 |
+
- `BB_KEY`: the NAME of the environment variable that holds YOUR key (default `OPENAI_API_KEY`). The runner reads
|
| 48 |
+
the key from the process environment only. It never writes the key to a file, a log or a transcript.
|
| 49 |
+
|
| 50 |
+
Bring your own key. BudgetBench runs no paid hosted model of its own and publishes no such row; the leaderboard's
|
| 51 |
+
hosted-model rows, if any, come from submitters. Estimate the cost first:
|
| 52 |
+
`node budgetbench/stats/cost-estimate.mjs --price-in <$ per million input tokens> --price-out <$ per million output tokens>`
|
| 53 |
+
(a scripted estimate, about 5.7 million input tokens for the public split).
|
| 54 |
+
|
| 55 |
+
## 2. Run it
|
| 56 |
+
|
| 57 |
+
```bash
|
| 58 |
+
# from the folder that holds budgetbench/
|
| 59 |
+
node budgetbench/check.mjs # must print BUDGETBENCH CHECK PASSED
|
| 60 |
+
node budgetbench/runner/run.mjs --system my-system --variant default --split public --run-id 2026-11-01
|
| 61 |
+
node budgetbench/stats/report.mjs budgetbench/results/my-system-default/public/2026-11-01
|
| 62 |
+
```
|
| 63 |
+
|
| 64 |
+
The run writes `results.jsonl` (one row per case with the full transcript and its label), `errors.jsonl` (harness
|
| 65 |
+
failures, never scored) and `inputs.json` (the hashes of every frozen file, the runner, your system file, the git
|
| 66 |
+
commit, the date).
|
| 67 |
+
|
| 68 |
+
## 3. Send a row
|
| 69 |
+
|
| 70 |
+
Open a pull request (or send the folder) with:
|
| 71 |
+
|
| 72 |
+
- `results/<system>-<variant>/public/<run-id>/` complete: `results.jsonl`, `errors.jsonl`, `inputs.json`,
|
| 73 |
+
`summary.json`;
|
| 74 |
+
- your system file, or a link to a public package and the exact version;
|
| 75 |
+
- the declaration of `CONTAMINATION.md` §4 (did the system ever use the public split, and how);
|
| 76 |
+
- hardware, wall time, and for paid models the measured cost.
|
| 77 |
+
|
| 78 |
+
## 4. What we verify
|
| 79 |
+
|
| 80 |
+
1. `check.mjs` passes on the commit in `inputs.json`, and the hashes in `inputs.json` match `FROZEN.sha256`.
|
| 81 |
+
2. We regrade every row from its transcript with the frozen grader (`report.mjs --regrade`). The regraded labels are
|
| 82 |
+
the ones published.
|
| 83 |
+
3. We read a sample of transcripts by hand, at least every "wrong shown", "wrong offered" and "needs review" row and
|
| 84 |
+
20 random right rows. A "needs review" row is adjudicated and the ruling is published beside the row.
|
| 85 |
+
4. For an open system we rerun a random 10% of the cases. Differences beyond the system's stated nondeterminism void
|
| 86 |
+
the row.
|
| 87 |
+
5. A row on the sealed split is run only by the maintainers, once, on their own machine, at a time agreed with the
|
| 88 |
+
submitter. A system that needs a third-party API (a hosted model) gets no sealed row: sealed
|
| 89 |
+
cases are never sent to a third-party service (`CONTAMINATION.md` §2).
|
| 90 |
+
|
| 91 |
+
The leaderboard prints, for every row: system, version, the six labels with 95% intervals, the date and the commit
|
| 92 |
+
of the run, "tuned on public" yes or no, and any exposure.
|
cases/public/AUDIT-LOG.md
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Public split: case audit log
|
| 2 |
+
|
| 3 |
+
Every writer case was read by an independent auditor (claude -p, isolated, sheet + setup only); 6 of 230 flagged. 4 flags were the review sheet's rendering (it did not print smallest-first), checked by hand against the meaning: kept. 1 kept as a fair test of a false premise. Dropped before the freeze:
|
| 4 |
+
|
| 5 |
+
- p-german-07: DROPPED before the freeze, ambiguous: 'my september money' can be income or spending (case auditor, confirmed)
|
cases/public/classic.jsonl
ADDED
|
@@ -0,0 +1,176 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"id": "pub-classic-month_total-01", "household": "p-classic", "category": "totals", "family": "month_total", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much did I spend in June?", "meaning": {"act": "lookup", "measure": "spend", "months": ["2026-06"]}}], "reference_gold": {"type": "money", "value": 4030.6}}
|
| 2 |
+
{"id": "pub-classic-month_total-02", "household": "p-classic", "category": "totals", "family": "month_total", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "What was my total spending in June?", "meaning": {"act": "lookup", "measure": "spend", "months": ["2026-06"]}}], "reference_gold": {"type": "money", "value": 4030.6}}
|
| 3 |
+
{"id": "pub-classic-month_total-03", "household": "p-classic", "category": "totals", "family": "month_total", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "what did i spend overall in june", "meaning": {"act": "lookup", "measure": "spend", "months": ["2026-06"]}}], "reference_gold": {"type": "money", "value": 4030.6}}
|
| 4 |
+
{"id": "pub-classic-month_total-04", "household": "p-classic", "category": "totals", "family": "month_total", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much did I spend in July?", "meaning": {"act": "lookup", "measure": "spend", "months": ["2026-07"]}}], "reference_gold": {"type": "money", "value": 4848.4}}
|
| 5 |
+
{"id": "pub-classic-month_total-05", "household": "p-classic", "category": "totals", "family": "month_total", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "What was my total spending in July?", "meaning": {"act": "lookup", "measure": "spend", "months": ["2026-07"]}}], "reference_gold": {"type": "money", "value": 4848.4}}
|
| 6 |
+
{"id": "pub-classic-month_total-06", "household": "p-classic", "category": "totals", "family": "month_total", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "what did i spend overall in july", "meaning": {"act": "lookup", "measure": "spend", "months": ["2026-07"]}}], "reference_gold": {"type": "money", "value": 4848.4}}
|
| 7 |
+
{"id": "pub-classic-month_total-07", "household": "p-classic", "category": "totals", "family": "month_total", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much did I spend in August?", "meaning": {"act": "lookup", "measure": "spend", "months": ["2026-08"]}}], "reference_gold": {"type": "money", "value": 4200.61}}
|
| 8 |
+
{"id": "pub-classic-month_total-08", "household": "p-classic", "category": "totals", "family": "month_total", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "What was my total spending in August?", "meaning": {"act": "lookup", "measure": "spend", "months": ["2026-08"]}}], "reference_gold": {"type": "money", "value": 4200.61}}
|
| 9 |
+
{"id": "pub-classic-month_total-09", "household": "p-classic", "category": "totals", "family": "month_total", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "what did i spend overall in august", "meaning": {"act": "lookup", "measure": "spend", "months": ["2026-08"]}}], "reference_gold": {"type": "money", "value": 4200.61}}
|
| 10 |
+
{"id": "pub-classic-month_total-10", "household": "p-classic", "category": "totals", "family": "month_total", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much did I spend this month?", "meaning": {"act": "lookup", "measure": "spend", "months": ["2026-09"]}}], "reference_gold": {"type": "money", "value": 4172.82}}
|
| 11 |
+
{"id": "pub-classic-month_total-11", "household": "p-classic", "category": "totals", "family": "month_total", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "What was my total spending in September?", "meaning": {"act": "lookup", "measure": "spend", "months": ["2026-09"]}}], "reference_gold": {"type": "money", "value": 4172.82}}
|
| 12 |
+
{"id": "pub-classic-month_total-12", "household": "p-classic", "category": "totals", "family": "month_total", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "what did i spend overall in september", "meaning": {"act": "lookup", "measure": "spend", "months": ["2026-09"]}}], "reference_gold": {"type": "money", "value": 4172.82}}
|
| 13 |
+
{"id": "pub-classic-category_month-01", "household": "p-classic", "category": "totals", "family": "category_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "what did pharmacy stuff cost me in September", "meaning": {"act": "lookup", "measure": "spend", "category": "Pharmacy", "months": ["2026-09"]}}], "reference_gold": {"type": "money", "value": 23.23}}
|
| 14 |
+
{"id": "pub-classic-category_month-02", "household": "p-classic", "category": "totals", "family": "category_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "what did Ubers and Lyfts cost me in August", "meaning": {"act": "lookup", "measure": "spend", "category": "Ride Share", "months": ["2026-08"]}}], "reference_gold": {"type": "money", "value": 106.72}}
|
| 15 |
+
{"id": "pub-classic-category_month-03", "household": "p-classic", "category": "totals", "family": "category_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "what did the gym cost me in June", "meaning": {"act": "lookup", "measure": "spend", "category": "Gym & Fitness", "months": ["2026-06"]}}], "reference_gold": {"type": "money", "value": 185.0}}
|
| 16 |
+
{"id": "pub-classic-category_month-04", "household": "p-classic", "category": "totals", "family": "category_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "what did restaurants cost me in September", "meaning": {"act": "lookup", "measure": "spend", "category": "Restaurants & Bars", "months": ["2026-09"]}}], "reference_gold": {"type": "money", "value": 233.39}}
|
| 17 |
+
{"id": "pub-classic-category_month-05", "household": "p-classic", "category": "totals", "family": "category_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much went to groceries this month?", "meaning": {"act": "lookup", "measure": "spend", "category": "Groceries", "months": ["2026-09"]}}], "reference_gold": {"type": "money", "value": 677.37}}
|
| 18 |
+
{"id": "pub-classic-category_month-06", "household": "p-classic", "category": "totals", "family": "category_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much did I spend on coffee in August?", "meaning": {"act": "lookup", "measure": "spend", "category": "Coffee Shops", "months": ["2026-08"]}}], "reference_gold": {"type": "money", "value": 143.45}}
|
| 19 |
+
{"id": "pub-classic-category_month-07", "household": "p-classic", "category": "totals", "family": "category_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "what did eating out cost me in July", "meaning": {"act": "lookup", "measure": "spend", "category": "Restaurants & Bars", "months": ["2026-07"]}}], "reference_gold": {"type": "money", "value": 118.31}}
|
| 20 |
+
{"id": "pub-classic-category_month-08", "household": "p-classic", "category": "totals", "family": "category_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much did I spend on coffee shops in June?", "meaning": {"act": "lookup", "measure": "spend", "category": "Coffee Shops", "months": ["2026-06"]}}], "reference_gold": {"type": "money", "value": 233.04}}
|
| 21 |
+
{"id": "pub-classic-category_month-09", "household": "p-classic", "category": "totals", "family": "category_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much went to gas for the car in July?", "meaning": {"act": "lookup", "measure": "spend", "category": "Gas & Fuel", "months": ["2026-07"]}}], "reference_gold": {"type": "money", "value": 67.42}}
|
| 22 |
+
{"id": "pub-classic-category_month-10", "household": "p-classic", "category": "totals", "family": "category_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "what did internet and cable cost me in August", "meaning": {"act": "lookup", "measure": "spend", "category": "Internet & Cable", "months": ["2026-08"]}}], "reference_gold": {"type": "money", "value": 79.0}}
|
| 23 |
+
{"id": "pub-classic-category_month-11", "household": "p-classic", "category": "totals", "family": "category_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "what did rideshare cost me in July", "meaning": {"act": "lookup", "measure": "spend", "category": "Ride Share", "months": ["2026-07"]}}], "reference_gold": {"type": "money", "value": 54.52}}
|
| 24 |
+
{"id": "pub-classic-category_month-12", "household": "p-classic", "category": "totals", "family": "category_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "July spending on groceries?", "meaning": {"act": "lookup", "measure": "spend", "category": "Groceries", "months": ["2026-07"]}}], "reference_gold": {"type": "money", "value": 755.34}}
|
| 25 |
+
{"id": "pub-classic-category_month-13", "household": "p-classic", "category": "totals", "family": "category_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "September spending on Ubers and Lyfts?", "meaning": {"act": "lookup", "measure": "spend", "category": "Ride Share", "months": ["2026-09"]}}], "reference_gold": {"type": "money", "value": 52.34}}
|
| 26 |
+
{"id": "pub-classic-category_month-14", "household": "p-classic", "category": "totals", "family": "category_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much went to Ubers and Lyfts in June?", "meaning": {"act": "lookup", "measure": "spend", "category": "Ride Share", "months": ["2026-06"]}}], "reference_gold": {"type": "money", "value": 95.68}}
|
| 27 |
+
{"id": "pub-classic-category_month-15", "household": "p-classic", "category": "totals", "family": "category_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much went to internet in July?", "meaning": {"act": "lookup", "measure": "spend", "category": "Internet & Cable", "months": ["2026-07"]}}], "reference_gold": {"type": "money", "value": 79.0}}
|
| 28 |
+
{"id": "pub-classic-category_month-16", "household": "p-classic", "category": "totals", "family": "category_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "September spending on the electric bill?", "meaning": {"act": "lookup", "measure": "spend", "category": "Gas & Electric", "months": ["2026-09"]}}], "reference_gold": {"type": "money", "value": 124.27}}
|
| 29 |
+
{"id": "pub-classic-category_month-17", "household": "p-classic", "category": "totals", "family": "category_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "what did coffee shops cost me in July", "meaning": {"act": "lookup", "measure": "spend", "category": "Coffee Shops", "months": ["2026-07"]}}], "reference_gold": {"type": "money", "value": 203.0}}
|
| 30 |
+
{"id": "pub-classic-category_month-18", "household": "p-classic", "category": "totals", "family": "category_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much did I spend on grocery shopping in August?", "meaning": {"act": "lookup", "measure": "spend", "category": "Groceries", "months": ["2026-08"]}}], "reference_gold": {"type": "money", "value": 456.33}}
|
| 31 |
+
{"id": "pub-classic-category_month-19", "household": "p-classic", "category": "totals", "family": "category_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much went to fuel in August?", "meaning": {"act": "lookup", "measure": "spend", "category": "Gas & Fuel", "months": ["2026-08"]}}], "reference_gold": {"type": "money", "value": 82.34}}
|
| 32 |
+
{"id": "pub-classic-category_month-20", "household": "p-classic", "category": "totals", "family": "category_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "August spending on the gym?", "meaning": {"act": "lookup", "measure": "spend", "category": "Gym & Fitness", "months": ["2026-08"]}}], "reference_gold": {"type": "money", "value": 185.0}}
|
| 33 |
+
{"id": "pub-classic-category_month-21", "household": "p-classic", "category": "totals", "family": "category_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much went to internet in June?", "meaning": {"act": "lookup", "measure": "spend", "category": "Internet & Cable", "months": ["2026-06"]}}], "reference_gold": {"type": "money", "value": 79.0}}
|
| 34 |
+
{"id": "pub-classic-category_month-22", "household": "p-classic", "category": "totals", "family": "category_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much went to rent in July?", "meaning": {"act": "lookup", "measure": "spend", "category": "Rent/Mortgage", "months": ["2026-07"]}}], "reference_gold": {"type": "money", "value": 2150.0}}
|
| 35 |
+
{"id": "pub-classic-category_month-23", "household": "p-classic", "category": "totals", "family": "category_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "June spending on rent?", "meaning": {"act": "lookup", "measure": "spend", "category": "Rent/Mortgage", "months": ["2026-06"]}}], "reference_gold": {"type": "money", "value": 2150.0}}
|
| 36 |
+
{"id": "pub-classic-category_month-24", "household": "p-classic", "category": "totals", "family": "category_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "what did the electric bill cost me in August", "meaning": {"act": "lookup", "measure": "spend", "category": "Gas & Electric", "months": ["2026-08"]}}], "reference_gold": {"type": "money", "value": 129.96}}
|
| 37 |
+
{"id": "pub-classic-category_month-25", "household": "p-classic", "category": "totals", "family": "category_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much went to the electric bill in July?", "meaning": {"act": "lookup", "measure": "spend", "category": "Gas & Electric", "months": ["2026-07"]}}], "reference_gold": {"type": "money", "value": 72.16}}
|
| 38 |
+
{"id": "pub-classic-category_month-26", "household": "p-classic", "category": "totals", "family": "category_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "June spending on gas for the car?", "meaning": {"act": "lookup", "measure": "spend", "category": "Gas & Fuel", "months": ["2026-06"]}}], "reference_gold": {"type": "money", "value": 64.69}}
|
| 39 |
+
{"id": "pub-classic-category_month-27", "household": "p-classic", "category": "totals", "family": "category_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "June spending on the pharmacy?", "meaning": {"act": "lookup", "measure": "spend", "category": "Pharmacy", "months": ["2026-06"]}}], "reference_gold": {"type": "money", "value": 47.37}}
|
| 40 |
+
{"id": "pub-classic-category_month-28", "household": "p-classic", "category": "totals", "family": "category_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "what did streaming cost me in July", "meaning": {"act": "lookup", "measure": "spend", "category": "Streaming", "months": ["2026-07"]}}], "reference_gold": {"type": "money", "value": 27.48}}
|
| 41 |
+
{"id": "pub-classic-category_month-29", "household": "p-classic", "category": "totals", "family": "category_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "August spending on the pharmacy?", "meaning": {"act": "lookup", "measure": "spend", "category": "Pharmacy", "months": ["2026-08"]}}], "reference_gold": {"type": "money", "value": 28.84}}
|
| 42 |
+
{"id": "pub-classic-category_month-30", "household": "p-classic", "category": "totals", "family": "category_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "September spending on internet?", "meaning": {"act": "lookup", "measure": "spend", "category": "Internet & Cable", "months": ["2026-09"]}}], "reference_gold": {"type": "money", "value": 79.0}}
|
| 43 |
+
{"id": "pub-classic-group_month-01", "household": "p-classic", "category": "totals", "family": "group_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much did I spend on entertainment in July?", "meaning": {"act": "lookup", "measure": "spend", "group": "Entertainment", "months": ["2026-07"]}}], "reference_gold": {"type": "money", "value": 27.48}}
|
| 44 |
+
{"id": "pub-classic-group_month-02", "household": "p-classic", "category": "totals", "family": "group_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "total shopping spending in September", "meaning": {"act": "lookup", "measure": "spend", "group": "Shopping", "months": ["2026-09"]}}], "reference_gold": {"type": "money", "value": 344.06}}
|
| 45 |
+
{"id": "pub-classic-group_month-03", "household": "p-classic", "category": "totals", "family": "group_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much did I spend on bills and utilities in July?", "meaning": {"act": "lookup", "measure": "spend", "group": "Bills & Utilities", "months": ["2026-07"]}}], "reference_gold": {"type": "money", "value": 151.16}}
|
| 46 |
+
{"id": "pub-classic-group_month-04", "household": "p-classic", "category": "totals", "family": "group_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "total bills and utilities spending last month", "meaning": {"act": "lookup", "measure": "spend", "group": "Bills & Utilities", "months": ["2026-08"]}}], "reference_gold": {"type": "money", "value": 208.96}}
|
| 47 |
+
{"id": "pub-classic-group_month-05", "household": "p-classic", "category": "totals", "family": "group_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much did I spend on shopping in August?", "meaning": {"act": "lookup", "measure": "spend", "group": "Shopping", "months": ["2026-08"]}}], "reference_gold": {"type": "money", "value": 429.12}}
|
| 48 |
+
{"id": "pub-classic-group_month-06", "household": "p-classic", "category": "totals", "family": "group_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much did I spend on food in June?", "meaning": {"act": "lookup", "measure": "spend", "group": "Food & Dining", "months": ["2026-06"]}}], "reference_gold": {"type": "money", "value": 922.17}}
|
| 49 |
+
{"id": "pub-classic-group_month-07", "household": "p-classic", "category": "totals", "family": "group_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much did I spend on entertainment in September?", "meaning": {"act": "lookup", "measure": "spend", "group": "Entertainment", "months": ["2026-09"]}}], "reference_gold": {"type": "money", "value": 27.48}}
|
| 50 |
+
{"id": "pub-classic-group_month-08", "household": "p-classic", "category": "totals", "family": "group_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "total food spending in August", "meaning": {"act": "lookup", "measure": "spend", "group": "Food & Dining", "months": ["2026-08"]}}], "reference_gold": {"type": "money", "value": 934.16}}
|
| 51 |
+
{"id": "pub-classic-group_month-09", "household": "p-classic", "category": "totals", "family": "group_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "total healthcare spending in July", "meaning": {"act": "lookup", "measure": "spend", "group": "Healthcare", "months": ["2026-07"]}}], "reference_gold": {"type": "money", "value": 48.56}}
|
| 52 |
+
{"id": "pub-classic-group_month-10", "household": "p-classic", "category": "totals", "family": "group_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much did I spend on entertainment in June?", "meaning": {"act": "lookup", "measure": "spend", "group": "Entertainment", "months": ["2026-06"]}}], "reference_gold": {"type": "money", "value": 27.48}}
|
| 53 |
+
{"id": "pub-classic-group_month-11", "household": "p-classic", "category": "totals", "family": "group_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "total shopping spending in June", "meaning": {"act": "lookup", "measure": "spend", "group": "Shopping", "months": ["2026-06"]}}], "reference_gold": {"type": "money", "value": 370.31}}
|
| 54 |
+
{"id": "pub-classic-group_month-12", "household": "p-classic", "category": "totals", "family": "group_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much did I spend on bills and utilities in September?", "meaning": {"act": "lookup", "measure": "spend", "group": "Bills & Utilities", "months": ["2026-09"]}}], "reference_gold": {"type": "money", "value": 203.27}}
|
| 55 |
+
{"id": "pub-classic-group_month-13", "household": "p-classic", "category": "totals", "family": "group_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much did I spend on bills and utilities in June?", "meaning": {"act": "lookup", "measure": "spend", "group": "Bills & Utilities", "months": ["2026-06"]}}], "reference_gold": {"type": "money", "value": 164.91}}
|
| 56 |
+
{"id": "pub-classic-group_month-14", "household": "p-classic", "category": "totals", "family": "group_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "total shopping spending in July", "meaning": {"act": "lookup", "measure": "spend", "group": "Shopping", "months": ["2026-07"]}}], "reference_gold": {"type": "money", "value": 400.42}}
|
| 57 |
+
{"id": "pub-classic-merchant_total-01", "household": "p-classic", "category": "merchants", "family": "merchant_total", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much have I spent at Starbucks since June?", "meaning": {"act": "lookup", "measure": "spend", "merchant": "Starbucks", "months": "all"}}], "reference_gold": {"type": "money", "value": 479.07}}
|
| 58 |
+
{"id": "pub-classic-merchant_total-02", "household": "p-classic", "category": "merchants", "family": "merchant_total", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "what's my total at Blue Bottle across all my transactions", "meaning": {"act": "lookup", "measure": "spend", "merchant": "Blue Bottle", "months": "all"}}], "reference_gold": {"type": "money", "value": 266.82}}
|
| 59 |
+
{"id": "pub-classic-merchant_total-03", "household": "p-classic", "category": "merchants", "family": "merchant_total", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "what's my total at Whole Foods across all my transactions", "meaning": {"act": "lookup", "measure": "spend", "merchant": "Whole Foods", "months": "all"}}], "reference_gold": {"type": "money", "value": 899.27}}
|
| 60 |
+
{"id": "pub-classic-merchant_total-04", "household": "p-classic", "category": "merchants", "family": "merchant_total", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much have I spent at Costco since June?", "meaning": {"act": "lookup", "measure": "spend", "merchant": "Costco", "months": "all"}}], "reference_gold": {"type": "money", "value": 769.32}}
|
| 61 |
+
{"id": "pub-classic-merchant_total-05", "household": "p-classic", "category": "merchants", "family": "merchant_total", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much have I paid Uber Eats in total?", "meaning": {"act": "lookup", "measure": "spend", "merchant": "Uber Eats", "months": "all"}}], "reference_gold": {"type": "money", "value": 229.49}}
|
| 62 |
+
{"id": "pub-classic-merchant_total-06", "household": "p-classic", "category": "merchants", "family": "merchant_total", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "what's my total at DoorDash across all my transactions", "meaning": {"act": "lookup", "measure": "spend", "merchant": "DoorDash", "months": "all"}}], "reference_gold": {"type": "money", "value": 268.6}}
|
| 63 |
+
{"id": "pub-classic-merchant_total-07", "household": "p-classic", "category": "merchants", "family": "merchant_total", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much have I paid Amazon in total?", "meaning": {"act": "lookup", "measure": "spend", "merchant": "Amazon", "months": "all"}}], "reference_gold": {"type": "money", "value": 798.38}}
|
| 64 |
+
{"id": "pub-classic-merchant_total-08", "household": "p-classic", "category": "merchants", "family": "merchant_total", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much have I paid Netflix in total?", "meaning": {"act": "lookup", "measure": "spend", "merchant": "Netflix", "months": "all"}}], "reference_gold": {"type": "money", "value": 61.96}}
|
| 65 |
+
{"id": "pub-classic-merchant_total-09", "household": "p-classic", "category": "merchants", "family": "merchant_total", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "what's my total at Lyft across all my transactions", "meaning": {"act": "lookup", "measure": "spend", "merchant": "Lyft", "months": "all"}}], "reference_gold": {"type": "money", "value": 128.88}}
|
| 66 |
+
{"id": "pub-classic-merchant_total-10", "household": "p-classic", "category": "merchants", "family": "merchant_total", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much have I paid Target in total?", "meaning": {"act": "lookup", "measure": "spend", "merchant": "Target", "months": "all"}}], "reference_gold": {"type": "money", "value": 405.98}}
|
| 67 |
+
{"id": "pub-classic-merchant_total-11", "household": "p-classic", "category": "merchants", "family": "merchant_total", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "what's my total at Trader Joe's across all my transactions", "meaning": {"act": "lookup", "measure": "spend", "merchant": "Trader Joe's", "months": "all"}}], "reference_gold": {"type": "money", "value": 168.67}}
|
| 68 |
+
{"id": "pub-classic-merchant_total-12", "household": "p-classic", "category": "merchants", "family": "merchant_total", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much have I paid Safeway in total?", "meaning": {"act": "lookup", "measure": "spend", "merchant": "Safeway", "months": "all"}}], "reference_gold": {"type": "money", "value": 528.82}}
|
| 69 |
+
{"id": "pub-classic-merchant_total-13", "household": "p-classic", "category": "merchants", "family": "merchant_total", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much have I paid Shell in total?", "meaning": {"act": "lookup", "measure": "spend", "merchant": "Shell", "months": "all"}}], "reference_gold": {"type": "money", "value": 147.03}}
|
| 70 |
+
{"id": "pub-classic-merchant_total-14", "household": "p-classic", "category": "merchants", "family": "merchant_total", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "what's my total at Sushi Nakazawa across all my transactions", "meaning": {"act": "lookup", "measure": "spend", "merchant": "Sushi Nakazawa", "months": "all"}}], "reference_gold": {"type": "money", "value": 241.28}}
|
| 71 |
+
{"id": "pub-classic-merchant_month-01", "household": "p-classic", "category": "merchants", "family": "merchant_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much did I spend at Starbucks in August?", "meaning": {"act": "lookup", "measure": "spend", "merchant": "Starbucks", "months": ["2026-08"]}}], "reference_gold": {"type": "money", "value": 143.45}}
|
| 72 |
+
{"id": "pub-classic-merchant_month-02", "household": "p-classic", "category": "merchants", "family": "merchant_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much did I spend at Whole Foods in July?", "meaning": {"act": "lookup", "measure": "spend", "merchant": "Whole Foods", "months": ["2026-07"]}}], "reference_gold": {"type": "money", "value": 392.31}}
|
| 73 |
+
{"id": "pub-classic-merchant_month-03", "household": "p-classic", "category": "merchants", "family": "merchant_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much did I spend at Whole Foods in August?", "meaning": {"act": "lookup", "measure": "spend", "merchant": "Whole Foods", "months": ["2026-08"]}}], "reference_gold": {"type": "money", "value": 78.79}}
|
| 74 |
+
{"id": "pub-classic-merchant_month-04", "household": "p-classic", "category": "merchants", "family": "merchant_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much did I spend at Amazon in July?", "meaning": {"act": "lookup", "measure": "spend", "merchant": "Amazon", "months": ["2026-07"]}}], "reference_gold": {"type": "money", "value": 103.5}}
|
| 75 |
+
{"id": "pub-classic-merchant_month-05", "household": "p-classic", "category": "merchants", "family": "merchant_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much did I spend at DoorDash in July?", "meaning": {"act": "lookup", "measure": "spend", "merchant": "DoorDash", "months": ["2026-07"]}}], "reference_gold": {"type": "money", "value": 38.47}}
|
| 76 |
+
{"id": "pub-classic-merchant_month-06", "household": "p-classic", "category": "merchants", "family": "merchant_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much did I spend at Whole Foods in June?", "meaning": {"act": "lookup", "measure": "spend", "merchant": "Whole Foods", "months": ["2026-06"]}}], "reference_gold": {"type": "money", "value": 371.07}}
|
| 77 |
+
{"id": "pub-classic-merchant_month-07", "household": "p-classic", "category": "merchants", "family": "merchant_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much did I spend at Starbucks in July?", "meaning": {"act": "lookup", "measure": "spend", "merchant": "Starbucks", "months": ["2026-07"]}}], "reference_gold": {"type": "money", "value": 203.0}}
|
| 78 |
+
{"id": "pub-classic-merchant_month-08", "household": "p-classic", "category": "merchants", "family": "merchant_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much did I spend at Costco in June?", "meaning": {"act": "lookup", "measure": "spend", "merchant": "Costco", "months": ["2026-06"]}}], "reference_gold": {"type": "money", "value": 73.02}}
|
| 79 |
+
{"id": "pub-classic-merchant_month-09", "household": "p-classic", "category": "merchants", "family": "merchant_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much did I spend at Blue Bottle in June?", "meaning": {"act": "lookup", "measure": "spend", "merchant": "Blue Bottle", "months": ["2026-06"]}}], "reference_gold": {"type": "money", "value": 147.64}}
|
| 80 |
+
{"id": "pub-classic-merchant_month-10", "household": "p-classic", "category": "merchants", "family": "merchant_month", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much did I spend at Whole Foods in September?", "meaning": {"act": "lookup", "measure": "spend", "merchant": "Whole Foods", "months": ["2026-09"]}}], "reference_gold": {"type": "money", "value": 57.1}}
|
| 81 |
+
{"id": "pub-classic-income-01", "household": "p-classic", "category": "totals", "family": "income", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much money came in in June?", "meaning": {"act": "lookup", "measure": "income", "months": ["2026-06"]}}], "reference_gold": {"type": "money", "value": 8620.0}}
|
| 82 |
+
{"id": "pub-classic-kept-01", "household": "p-classic", "category": "totals", "family": "kept", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much of my June income was left after spending?", "meaning": {"act": "lookup", "measure": "kept", "months": ["2026-06"]}}], "reference_gold": {"type": "money", "value": 4589.4}}
|
| 83 |
+
{"id": "pub-classic-savings_rate-01", "household": "p-classic", "category": "totals", "family": "savings_rate", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "What was my savings rate in June?", "meaning": {"act": "lookup", "measure": "savings_rate", "months": ["2026-06"]}}], "reference_gold": {"type": "percent", "value": 53.2}}
|
| 84 |
+
{"id": "pub-classic-income-02", "household": "p-classic", "category": "totals", "family": "income", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "What was my income in July?", "meaning": {"act": "lookup", "measure": "income", "months": ["2026-07"]}}], "reference_gold": {"type": "money", "value": 8620.0}}
|
| 85 |
+
{"id": "pub-classic-kept-02", "household": "p-classic", "category": "totals", "family": "kept", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much of my July income was left after spending?", "meaning": {"act": "lookup", "measure": "kept", "months": ["2026-07"]}}], "reference_gold": {"type": "money", "value": 3771.6}}
|
| 86 |
+
{"id": "pub-classic-savings_rate-02", "household": "p-classic", "category": "totals", "family": "savings_rate", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "what percent of my income did I save in July", "meaning": {"act": "lookup", "measure": "savings_rate", "months": ["2026-07"]}}], "reference_gold": {"type": "percent", "value": 43.8}}
|
| 87 |
+
{"id": "pub-classic-income-03", "household": "p-classic", "category": "totals", "family": "income", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much money came in in August?", "meaning": {"act": "lookup", "measure": "income", "months": ["2026-08"]}}], "reference_gold": {"type": "money", "value": 8620.0}}
|
| 88 |
+
{"id": "pub-classic-kept-03", "household": "p-classic", "category": "totals", "family": "kept", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much did I keep in August after spending?", "meaning": {"act": "lookup", "measure": "kept", "months": ["2026-08"]}}], "reference_gold": {"type": "money", "value": 4419.39}}
|
| 89 |
+
{"id": "pub-classic-savings_rate-03", "household": "p-classic", "category": "totals", "family": "savings_rate", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "what percent of my income did I save in August", "meaning": {"act": "lookup", "measure": "savings_rate", "months": ["2026-08"]}}], "reference_gold": {"type": "percent", "value": 51.3}}
|
| 90 |
+
{"id": "pub-classic-income-04", "household": "p-classic", "category": "totals", "family": "income", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much money came in this month?", "meaning": {"act": "lookup", "measure": "income", "months": ["2026-09"]}}], "reference_gold": {"type": "money", "value": 8620.0}}
|
| 91 |
+
{"id": "pub-classic-kept-04", "household": "p-classic", "category": "totals", "family": "kept", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much of my September income was left after spending?", "meaning": {"act": "lookup", "measure": "kept", "months": ["2026-09"]}}], "reference_gold": {"type": "money", "value": 4447.18}}
|
| 92 |
+
{"id": "pub-classic-savings_rate-04", "household": "p-classic", "category": "totals", "family": "savings_rate", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "What was my savings rate in September?", "meaning": {"act": "lookup", "measure": "savings_rate", "months": ["2026-09"]}}], "reference_gold": {"type": "percent", "value": 51.6}}
|
| 93 |
+
{"id": "pub-classic-compare_months-01", "household": "p-classic", "category": "comparisons", "family": "compare_months", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much more did I spend in July than in June?", "meaning": {"act": "lookup", "measure": "difference", "months": ["2026-07"], "versus": ["2026-06"]}}], "reference_gold": {"type": "money", "value": 817.8}}
|
| 94 |
+
{"id": "pub-classic-compare_months-02", "household": "p-classic", "category": "comparisons", "family": "compare_months", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much less did I spend in August than in July?", "meaning": {"act": "lookup", "measure": "difference", "months": ["2026-08"], "versus": ["2026-07"]}}], "reference_gold": {"type": "money", "value": 647.79}}
|
| 95 |
+
{"id": "pub-classic-compare_months-03", "household": "p-classic", "category": "comparisons", "family": "compare_months", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much less did I spend in September than in August?", "meaning": {"act": "lookup", "measure": "difference", "months": ["2026-09"], "versus": ["2026-08"]}}], "reference_gold": {"type": "money", "value": 27.79}}
|
| 96 |
+
{"id": "pub-classic-compare_months-04", "household": "p-classic", "category": "comparisons", "family": "compare_months", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much more did I spend in August than in June?", "meaning": {"act": "lookup", "measure": "difference", "months": ["2026-08"], "versus": ["2026-06"]}}], "reference_gold": {"type": "money", "value": 170.01}}
|
| 97 |
+
{"id": "pub-classic-compare_category-01", "household": "p-classic", "category": "comparisons", "family": "compare_category", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "Did I spend more or less on groceries in August than in July, and by how much?", "meaning": {"act": "lookup", "measure": "difference", "category": "Groceries", "months": ["2026-08"], "versus": ["2026-07"]}}], "reference_gold": {"type": "money", "value": 299.01}}
|
| 98 |
+
{"id": "pub-classic-compare_category-02", "household": "p-classic", "category": "comparisons", "family": "compare_category", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "Did I spend more or less on restaurants in July than in June, and by how much?", "meaning": {"act": "lookup", "measure": "difference", "category": "Restaurants & Bars", "months": ["2026-07"], "versus": ["2026-06"]}}], "reference_gold": {"type": "money", "value": 93.78}}
|
| 99 |
+
{"id": "pub-classic-compare_category-03", "household": "p-classic", "category": "comparisons", "family": "compare_category", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "Did I spend more or less on coffee in August than in July, and by how much?", "meaning": {"act": "lookup", "measure": "difference", "category": "Coffee Shops", "months": ["2026-08"], "versus": ["2026-07"]}}], "reference_gold": {"type": "money", "value": 59.55}}
|
| 100 |
+
{"id": "pub-classic-compare_category-04", "household": "p-classic", "category": "comparisons", "family": "compare_category", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "Did I spend more or less on rideshare in August than in June, and by how much?", "meaning": {"act": "lookup", "measure": "difference", "category": "Ride Share", "months": ["2026-08"], "versus": ["2026-06"]}}], "reference_gold": {"type": "money", "value": 11.04}}
|
| 101 |
+
{"id": "pub-classic-compare_category-05", "household": "p-classic", "category": "comparisons", "family": "compare_category", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "Did I spend more or less on gas for the car in August than in July, and by how much?", "meaning": {"act": "lookup", "measure": "difference", "category": "Gas & Fuel", "months": ["2026-08"], "versus": ["2026-07"]}}], "reference_gold": {"type": "money", "value": 14.92}}
|
| 102 |
+
{"id": "pub-classic-compare_category-06", "household": "p-classic", "category": "comparisons", "family": "compare_category", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "Did I spend more or less on shopping in August than in June, and by how much?", "meaning": {"act": "lookup", "measure": "difference", "group": "Shopping", "months": ["2026-08"], "versus": ["2026-06"]}}], "reference_gold": {"type": "money", "value": 58.81}}
|
| 103 |
+
{"id": "pub-classic-largest-01", "household": "p-classic", "category": "totals", "family": "largest", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "What was my biggest purchase in June?", "meaning": {"act": "lookup", "measure": "largest_purchase", "months": ["2026-06"]}}], "reference_gold": {"type": "money", "value": 2150.0}}
|
| 104 |
+
{"id": "pub-classic-largest_ex_rent-01", "household": "p-classic", "category": "exclusions", "family": "largest_ex_rent", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "Apart from rent, what was my biggest purchase in June?", "meaning": {"act": "lookup", "measure": "largest_purchase", "months": ["2026-06"], "exclude": {"categories": ["Rent/Mortgage"]}}}], "reference_gold": {"type": "money", "value": 185.53}}
|
| 105 |
+
{"id": "pub-classic-largest-02", "household": "p-classic", "category": "totals", "family": "largest", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "What was my biggest purchase in July?", "meaning": {"act": "lookup", "measure": "largest_purchase", "months": ["2026-07"]}}], "reference_gold": {"type": "money", "value": 2150.0}}
|
| 106 |
+
{"id": "pub-classic-largest_ex_rent-02", "household": "p-classic", "category": "exclusions", "family": "largest_ex_rent", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "Apart from rent, what was my biggest purchase in July?", "meaning": {"act": "lookup", "measure": "largest_purchase", "months": ["2026-07"], "exclude": {"categories": ["Rent/Mortgage"]}}}], "reference_gold": {"type": "money", "value": 684.2}}
|
| 107 |
+
{"id": "pub-classic-largest-03", "household": "p-classic", "category": "totals", "family": "largest", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "What was my biggest purchase in August?", "meaning": {"act": "lookup", "measure": "largest_purchase", "months": ["2026-08"]}}], "reference_gold": {"type": "money", "value": 2150.0}}
|
| 108 |
+
{"id": "pub-classic-largest_ex_rent-03", "household": "p-classic", "category": "exclusions", "family": "largest_ex_rent", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "Apart from rent, what was my biggest purchase in August?", "meaning": {"act": "lookup", "measure": "largest_purchase", "months": ["2026-08"], "exclude": {"categories": ["Rent/Mortgage"]}}}], "reference_gold": {"type": "money", "value": 185.0}}
|
| 109 |
+
{"id": "pub-classic-largest-04", "household": "p-classic", "category": "totals", "family": "largest", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "What was my biggest purchase in September?", "meaning": {"act": "lookup", "measure": "largest_purchase", "months": ["2026-09"]}}], "reference_gold": {"type": "money", "value": 2150.0}}
|
| 110 |
+
{"id": "pub-classic-largest_ex_rent-04", "household": "p-classic", "category": "exclusions", "family": "largest_ex_rent", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "Apart from rent, what was my biggest purchase in September?", "meaning": {"act": "lookup", "measure": "largest_purchase", "months": ["2026-09"], "exclude": {"categories": ["Rent/Mortgage"]}}}], "reference_gold": {"type": "money", "value": 207.36}}
|
| 111 |
+
{"id": "pub-classic-count_merchant-01", "household": "p-classic", "category": "merchants", "family": "count_merchant", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How many times did I go to Starbucks since June?", "meaning": {"act": "lookup", "measure": "count", "merchant": "Starbucks", "months": "all"}}], "reference_gold": {"type": "count", "value": 10}}
|
| 112 |
+
{"id": "pub-classic-count_merchant-02", "household": "p-classic", "category": "merchants", "family": "count_merchant", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How many times did I go to Whole Foods in August?", "meaning": {"act": "lookup", "measure": "count", "merchant": "Whole Foods", "months": ["2026-08"]}}], "reference_gold": {"type": "count", "value": 2}}
|
| 113 |
+
{"id": "pub-classic-count_merchant-03", "household": "p-classic", "category": "merchants", "family": "count_merchant", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How many times did I go to Costco in total?", "meaning": {"act": "lookup", "measure": "count", "merchant": "Costco", "months": "all"}}], "reference_gold": {"type": "count", "value": 10}}
|
| 114 |
+
{"id": "pub-classic-count_merchant-04", "household": "p-classic", "category": "merchants", "family": "count_merchant", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How many times did I go to DoorDash this month?", "meaning": {"act": "lookup", "measure": "count", "merchant": "DoorDash", "months": ["2026-09"]}}], "reference_gold": {"type": "count", "value": 2}}
|
| 115 |
+
{"id": "pub-classic-count_merchant-05", "household": "p-classic", "category": "merchants", "family": "count_merchant", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How many times did I go to Uber Eats since June?", "meaning": {"act": "lookup", "measure": "count", "merchant": "Uber Eats", "months": "all"}}], "reference_gold": {"type": "count", "value": 5}}
|
| 116 |
+
{"id": "pub-classic-count_merchant-06", "household": "p-classic", "category": "merchants", "family": "count_merchant", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How many times did I go to Blue Bottle in September?", "meaning": {"act": "lookup", "measure": "count", "merchant": "Blue Bottle", "months": ["2026-09"]}}], "reference_gold": {"type": "count", "value": 2}}
|
| 117 |
+
{"id": "pub-classic-count_merchant-07", "household": "p-classic", "category": "merchants", "family": "count_merchant", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How many Amazon orders did I place in total?", "meaning": {"act": "lookup", "measure": "count", "merchant": "Amazon", "months": "all"}}], "reference_gold": {"type": "count", "value": 6}}
|
| 118 |
+
{"id": "pub-classic-count_merchant-08", "household": "p-classic", "category": "merchants", "family": "count_merchant", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How many times did I go to Lyft since June?", "meaning": {"act": "lookup", "measure": "count", "merchant": "Lyft", "months": "all"}}], "reference_gold": {"type": "count", "value": 4}}
|
| 119 |
+
{"id": "pub-classic-count_category-01", "household": "p-classic", "category": "totals", "family": "count_category", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How many coffee transactions did I have in August?", "meaning": {"act": "lookup", "measure": "count", "category": "Coffee Shops", "months": ["2026-08"]}}], "reference_gold": {"type": "count", "value": 2}}
|
| 120 |
+
{"id": "pub-classic-count_category-02", "household": "p-classic", "category": "totals", "family": "count_category", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How many restaurants transactions did I have in July?", "meaning": {"act": "lookup", "measure": "count", "category": "Restaurants & Bars", "months": ["2026-07"]}}], "reference_gold": {"type": "count", "value": 4}}
|
| 121 |
+
{"id": "pub-classic-count_category-03", "household": "p-classic", "category": "totals", "family": "count_category", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How many groceries transactions did I have in September?", "meaning": {"act": "lookup", "measure": "count", "category": "Groceries", "months": ["2026-09"]}}], "reference_gold": {"type": "count", "value": 7}}
|
| 122 |
+
{"id": "pub-classic-count_category-04", "household": "p-classic", "category": "totals", "family": "count_category", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How many rideshare transactions did I have in June?", "meaning": {"act": "lookup", "measure": "count", "category": "Ride Share", "months": ["2026-06"]}}], "reference_gold": {"type": "count", "value": 2}}
|
| 123 |
+
{"id": "pub-classic-average-01", "household": "p-classic", "category": "totals", "family": "average", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "What's my average monthly spending on groceries from June to August?", "meaning": {"act": "lookup", "measure": "average_month", "category": "Groceries", "months": ["2026-06", "2026-07", "2026-08"]}}], "reference_gold": {"type": "money", "value": 562.9}}
|
| 124 |
+
{"id": "pub-classic-average-02", "household": "p-classic", "category": "totals", "family": "average", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "What's my average monthly spending on coffee from June to August?", "meaning": {"act": "lookup", "measure": "average_month", "category": "Coffee Shops", "months": ["2026-06", "2026-07", "2026-08"]}}], "reference_gold": {"type": "money", "value": 193.16}}
|
| 125 |
+
{"id": "pub-classic-average-03", "household": "p-classic", "category": "totals", "family": "average", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "What's my average monthly spending on restaurants from June to August?", "meaning": {"act": "lookup", "measure": "average_month", "category": "Restaurants & Bars", "months": ["2026-06", "2026-07", "2026-08"]}}], "reference_gold": {"type": "money", "value": 221.59}}
|
| 126 |
+
{"id": "pub-classic-average-04", "household": "p-classic", "category": "totals", "family": "average", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "What's my average monthly spending on rideshare from June to August?", "meaning": {"act": "lookup", "measure": "average_month", "category": "Ride Share", "months": ["2026-06", "2026-07", "2026-08"]}}], "reference_gold": {"type": "money", "value": 85.64}}
|
| 127 |
+
{"id": "pub-classic-average-05", "household": "p-classic", "category": "totals", "family": "average", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "What's my average monthly spending on streaming from June to August?", "meaning": {"act": "lookup", "measure": "average_month", "category": "Streaming", "months": ["2026-06", "2026-07", "2026-08"]}}], "reference_gold": {"type": "money", "value": 27.48}}
|
| 128 |
+
{"id": "pub-classic-average-06", "household": "p-classic", "category": "totals", "family": "average", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "What's my average monthly spending on gas for the car from June to August?", "meaning": {"act": "lookup", "measure": "average_month", "category": "Gas & Fuel", "months": ["2026-06", "2026-07", "2026-08"]}}], "reference_gold": {"type": "money", "value": 71.48}}
|
| 129 |
+
{"id": "pub-classic-top_category-01", "household": "p-classic", "category": "totals", "family": "top_category", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "What did I spend the most on in June?", "meaning": {"act": "lookup", "measure": "top_category", "rank": 1, "months": ["2026-06"]}}], "reference_gold": {"type": "name", "any": ["Rent/Mortgage", "Housing", "rent"]}}
|
| 130 |
+
{"id": "pub-classic-top_ex_rent-01", "household": "p-classic", "category": "exclusions", "family": "top_ex_rent", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "Leaving rent aside, which category took the most money in June?", "meaning": {"act": "lookup", "measure": "top_category", "rank": 1, "months": ["2026-06"], "exclude": {"categories": ["Rent/Mortgage"]}}}], "reference_gold": {"type": "name", "any": ["Groceries"]}}
|
| 131 |
+
{"id": "pub-classic-top_category-02", "household": "p-classic", "category": "totals", "family": "top_category", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "What did I spend the most on in July?", "meaning": {"act": "lookup", "measure": "top_category", "rank": 1, "months": ["2026-07"]}}], "reference_gold": {"type": "name", "any": ["Rent/Mortgage", "Housing", "rent"]}}
|
| 132 |
+
{"id": "pub-classic-top_ex_rent-02", "household": "p-classic", "category": "exclusions", "family": "top_ex_rent", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "Leaving rent aside, which category took the most money in July?", "meaning": {"act": "lookup", "measure": "top_category", "rank": 1, "months": ["2026-07"], "exclude": {"categories": ["Rent/Mortgage"]}}}], "reference_gold": {"type": "name", "any": ["Groceries"]}}
|
| 133 |
+
{"id": "pub-classic-top_category-03", "household": "p-classic", "category": "totals", "family": "top_category", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "What did I spend the most on in August?", "meaning": {"act": "lookup", "measure": "top_category", "rank": 1, "months": ["2026-08"]}}], "reference_gold": {"type": "name", "any": ["Rent/Mortgage", "Housing", "rent"]}}
|
| 134 |
+
{"id": "pub-classic-top_ex_rent-03", "household": "p-classic", "category": "exclusions", "family": "top_ex_rent", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "Leaving rent aside, which category took the most money in August?", "meaning": {"act": "lookup", "measure": "top_category", "rank": 1, "months": ["2026-08"], "exclude": {"categories": ["Rent/Mortgage"]}}}], "reference_gold": {"type": "name", "any": ["Groceries"]}}
|
| 135 |
+
{"id": "pub-classic-top_category-04", "household": "p-classic", "category": "totals", "family": "top_category", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "What did I spend the most on in September?", "meaning": {"act": "lookup", "measure": "top_category", "rank": 1, "months": ["2026-09"]}}], "reference_gold": {"type": "name", "any": ["Rent/Mortgage", "Housing", "rent"]}}
|
| 136 |
+
{"id": "pub-classic-top_ex_rent-04", "household": "p-classic", "category": "exclusions", "family": "top_ex_rent", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "Leaving rent aside, which category took the most money in September?", "meaning": {"act": "lookup", "measure": "top_category", "rank": 1, "months": ["2026-09"], "exclude": {"categories": ["Rent/Mortgage"]}}}], "reference_gold": {"type": "name", "any": ["Groceries"]}}
|
| 137 |
+
{"id": "pub-classic-exclusion-01", "household": "p-classic", "category": "exclusions", "family": "exclusion", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much did I spend in June not counting rent?", "meaning": {"act": "lookup", "measure": "spend", "months": ["2026-06"], "exclude": {"categories": ["Rent/Mortgage"]}}}], "reference_gold": {"type": "money", "value": 1880.6}}
|
| 138 |
+
{"id": "pub-classic-exclusion-02", "household": "p-classic", "category": "exclusions", "family": "exclusion", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much did I spend in July not counting rent?", "meaning": {"act": "lookup", "measure": "spend", "months": ["2026-07"], "exclude": {"categories": ["Rent/Mortgage"]}}}], "reference_gold": {"type": "money", "value": 2698.4}}
|
| 139 |
+
{"id": "pub-classic-exclusion-03", "household": "p-classic", "category": "exclusions", "family": "exclusion", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much did I spend in August not counting rent?", "meaning": {"act": "lookup", "measure": "spend", "months": ["2026-08"], "exclude": {"categories": ["Rent/Mortgage"]}}}], "reference_gold": {"type": "money", "value": 2050.61}}
|
| 140 |
+
{"id": "pub-classic-exclusion-04", "household": "p-classic", "category": "exclusions", "family": "exclusion", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much did I spend in September not counting rent?", "meaning": {"act": "lookup", "measure": "spend", "months": ["2026-09"], "exclude": {"categories": ["Rent/Mortgage"]}}}], "reference_gold": {"type": "money", "value": 2022.82}}
|
| 141 |
+
{"id": "pub-classic-exclusion-05", "household": "p-classic", "category": "exclusions", "family": "exclusion", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "What did food cost me in June if you leave out groceries?", "meaning": {"act": "lookup", "measure": "spend", "group": "Food & Dining", "months": ["2026-06"], "exclude": {"categories": ["Groceries"]}}}], "reference_gold": {"type": "money", "value": 445.13}}
|
| 142 |
+
{"id": "pub-classic-exclusion-06", "household": "p-classic", "category": "exclusions", "family": "exclusion", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "What did food cost me in August if you leave out groceries?", "meaning": {"act": "lookup", "measure": "spend", "group": "Food & Dining", "months": ["2026-08"], "exclude": {"categories": ["Groceries"]}}}], "reference_gold": {"type": "money", "value": 477.83}}
|
| 143 |
+
{"id": "pub-classic-share-01", "household": "p-classic", "category": "totals", "family": "share", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "What share of my September spending went to food?", "meaning": {"act": "lookup", "measure": "share", "group": "Food & Dining", "months": ["2026-09"]}}], "reference_gold": {"type": "percent", "value": 25.8}}
|
| 144 |
+
{"id": "pub-classic-share-02", "household": "p-classic", "category": "totals", "family": "share", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "What share of my July spending went to transportation?", "meaning": {"act": "lookup", "measure": "share", "group": "Transportation", "months": ["2026-07"]}}], "reference_gold": {"type": "percent", "value": 2.5}}
|
| 145 |
+
{"id": "pub-classic-share-03", "household": "p-classic", "category": "totals", "family": "share", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "What share of my June spending went to food?", "meaning": {"act": "lookup", "measure": "share", "group": "Food & Dining", "months": ["2026-06"]}}], "reference_gold": {"type": "percent", "value": 22.9}}
|
| 146 |
+
{"id": "pub-classic-share-04", "household": "p-classic", "category": "totals", "family": "share", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "What share of my August spending went to shopping?", "meaning": {"act": "lookup", "measure": "share", "group": "Shopping", "months": ["2026-08"]}}], "reference_gold": {"type": "percent", "value": 10.2}}
|
| 147 |
+
{"id": "pub-classic-none-01", "household": "p-classic", "category": "totals", "family": "none", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much did I spend on education in August?", "meaning": {"act": "lookup", "measure": "spend", "category": "Education", "months": ["2026-08"], "absent": true}}], "reference_gold": {"type": "none"}}
|
| 148 |
+
{"id": "pub-classic-none-02", "household": "p-classic", "category": "totals", "family": "none", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much did I spend on clothes in July?", "meaning": {"act": "lookup", "measure": "spend", "category": "Clothing", "months": ["2026-07"], "absent": true}}], "reference_gold": {"type": "none"}}
|
| 149 |
+
{"id": "pub-classic-none-03", "household": "p-classic", "category": "totals", "family": "none", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much did I spend on hotels in September?", "meaning": {"act": "lookup", "measure": "spend", "category": "Lodging", "months": ["2026-09"], "absent": true}}], "reference_gold": {"type": "none"}}
|
| 150 |
+
{"id": "pub-classic-none-04", "household": "p-classic", "category": "totals", "family": "none", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much did I spend on electronics in June?", "meaning": {"act": "lookup", "measure": "spend", "category": "Electronics", "months": ["2026-06"], "absent": true}}], "reference_gold": {"type": "none"}}
|
| 151 |
+
{"id": "pub-classic-none-05", "household": "p-classic", "category": "totals", "family": "none", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much did I spend on the dentist in August?", "meaning": {"act": "lookup", "measure": "spend", "category": "Dental", "months": ["2026-08"], "absent": true}}], "reference_gold": {"type": "none"}}
|
| 152 |
+
{"id": "pub-classic-none-06", "household": "p-classic", "category": "totals", "family": "none", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much did I spend on gifts or donations in July?", "meaning": {"act": "lookup", "measure": "spend", "group": "Gifts & Donations", "months": ["2026-07"], "absent": true}}], "reference_gold": {"type": "none"}}
|
| 153 |
+
{"id": "pub-classic-none-07", "household": "p-classic", "category": "totals", "family": "none", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much did I spend on video games in September?", "meaning": {"act": "lookup", "measure": "spend", "category": "Gaming", "months": ["2026-09"], "absent": true}}], "reference_gold": {"type": "none"}}
|
| 154 |
+
{"id": "pub-classic-none-08", "household": "p-classic", "category": "totals", "family": "none", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much did I spend on concerts and events in August?", "meaning": {"act": "lookup", "measure": "spend", "category": "Events & Concerts", "months": ["2026-08"], "absent": true}}], "reference_gold": {"type": "none"}}
|
| 155 |
+
{"id": "pub-classic-decline-01", "household": "p-classic", "category": "refusals", "family": "decline", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "Should I cancel Netflix?", "meaning": {"act": "decline"}}], "reference_gold": {"type": "decline"}}
|
| 156 |
+
{"id": "pub-classic-decline-02", "household": "p-classic", "category": "refusals", "family": "decline", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "Should I stop going to Starbucks?", "meaning": {"act": "decline"}}], "reference_gold": {"type": "decline"}}
|
| 157 |
+
{"id": "pub-classic-decline-03", "household": "p-classic", "category": "refusals", "family": "decline", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "Is my rent too high? Should I move?", "meaning": {"act": "decline"}}], "reference_gold": {"type": "decline"}}
|
| 158 |
+
{"id": "pub-classic-decline-04", "household": "p-classic", "category": "refusals", "family": "decline", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "Should I put more money into savings or pay down debt?", "meaning": {"act": "decline"}}], "reference_gold": {"type": "decline"}}
|
| 159 |
+
{"id": "pub-classic-decline-05", "household": "p-classic", "category": "refusals", "family": "decline", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "should i invest my leftover money in index funds", "meaning": {"act": "decline"}}], "reference_gold": {"type": "decline"}}
|
| 160 |
+
{"id": "pub-classic-decline-06", "household": "p-classic", "category": "refusals", "family": "decline", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "Would you buy Apple stock with my savings?", "meaning": {"act": "decline"}}], "reference_gold": {"type": "decline"}}
|
| 161 |
+
{"id": "pub-classic-decline-07", "household": "p-classic", "category": "refusals", "family": "decline", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "Should I cancel the gym?", "meaning": {"act": "decline"}}], "reference_gold": {"type": "decline"}}
|
| 162 |
+
{"id": "pub-classic-decline-08", "household": "p-classic", "category": "refusals", "family": "decline", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "Is it smart to keep $600 a month going to savings?", "meaning": {"act": "decline"}}], "reference_gold": {"type": "decline"}}
|
| 163 |
+
{"id": "pub-classic-decline-09", "household": "p-classic", "category": "refusals", "family": "decline", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "Should I switch from Whole Foods to Costco?", "meaning": {"act": "decline"}}], "reference_gold": {"type": "decline"}}
|
| 164 |
+
{"id": "pub-classic-decline-10", "household": "p-classic", "category": "refusals", "family": "decline", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "Should I sell my stocks before the market drops?", "meaning": {"act": "decline"}}], "reference_gold": {"type": "decline"}}
|
| 165 |
+
{"id": "pub-classic-decline-11", "household": "p-classic", "category": "refusals", "family": "decline", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "Should I buy a car with what I kept this month?", "meaning": {"act": "decline"}}], "reference_gold": {"type": "decline"}}
|
| 166 |
+
{"id": "pub-classic-decline-12", "household": "p-classic", "category": "refusals", "family": "decline", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "Tell me which subscription to cut.", "meaning": {"act": "decline"}}], "reference_gold": {"type": "decline"}}
|
| 167 |
+
{"id": "pub-classic-cannot-01", "household": "p-classic", "category": "refusals", "family": "cannot", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "What is Apple's stock price today?", "meaning": {"act": "cannot"}}], "reference_gold": {"type": "cannot"}}
|
| 168 |
+
{"id": "pub-classic-cannot-02", "household": "p-classic", "category": "refusals", "family": "cannot", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much will I spend in December?", "meaning": {"act": "cannot"}}], "reference_gold": {"type": "cannot"}}
|
| 169 |
+
{"id": "pub-classic-cannot-03", "household": "p-classic", "category": "refusals", "family": "cannot", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "What's my credit score?", "meaning": {"act": "cannot"}}], "reference_gold": {"type": "cannot"}}
|
| 170 |
+
{"id": "pub-classic-cannot-04", "household": "p-classic", "category": "refusals", "family": "cannot", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much does the average American spend on groceries?", "meaning": {"act": "cannot"}}], "reference_gold": {"type": "cannot"}}
|
| 171 |
+
{"id": "pub-classic-cannot-05", "household": "p-classic", "category": "refusals", "family": "cannot", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "What will the Fed do with rates next month?", "meaning": {"act": "cannot"}}], "reference_gold": {"type": "cannot"}}
|
| 172 |
+
{"id": "pub-classic-cannot-06", "household": "p-classic", "category": "refusals", "family": "cannot", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much is my tax refund going to be?", "meaning": {"act": "cannot"}}], "reference_gold": {"type": "cannot"}}
|
| 173 |
+
{"id": "pub-classic-cannot-07", "household": "p-classic", "category": "refusals", "family": "cannot", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "What's the S&P 500 at right now?", "meaning": {"act": "cannot"}}], "reference_gold": {"type": "cannot"}}
|
| 174 |
+
{"id": "pub-classic-cannot-08", "household": "p-classic", "category": "refusals", "family": "cannot", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "How much does my neighbour earn?", "meaning": {"act": "cannot"}}], "reference_gold": {"type": "cannot"}}
|
| 175 |
+
{"id": "pub-classic-cannot-09", "household": "p-classic", "category": "refusals", "family": "cannot", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "What will my rent be next year?", "meaning": {"act": "cannot"}}], "reference_gold": {"type": "cannot"}}
|
| 176 |
+
{"id": "pub-classic-cannot-10", "household": "p-classic", "category": "refusals", "family": "cannot", "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": "What's the current mortgage rate?", "meaning": {"act": "cannot"}}], "reference_gold": {"type": "cannot"}}
|
cases/public/templates.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
cases/public/writers.jsonl
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
check.mjs
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env node
|
| 2 |
+
// BudgetBench GUARD. Fails (exit 1) when:
|
| 3 |
+
// 1. a frozen file's hash differs from FROZEN.sha256, or a file was added to or removed from a frozen folder;
|
| 4 |
+
// 2. the sealed split's plain files are present and differ from sealed.sha256;
|
| 5 |
+
// 3. a household no longer regenerates byte for byte from its config (the generator is deterministic);
|
| 6 |
+
// 4. the oracle cannot compute a gold for some turn, or disagrees with eval v0's reference.py on a classic case;
|
| 7 |
+
// 5. the grader's adversarial checks fail (grader/check.mjs: oracle answers right, wrong figures, months, sides,
|
| 8 |
+
// currencies, offered-wrong choices, taps, not sure, refusals; plus fixed probes).
|
| 9 |
+
// node budgetbench/check.mjs (from pulse-local/ or anywhere)
|
| 10 |
+
// node budgetbench/check.mjs --write re-writes FROZEN.sha256 and sealed.sha256 (ONLY at a version bump, with a
|
| 11 |
+
// CHANGELOG entry; never to make a run pass)
|
| 12 |
+
import {createHash} from "node:crypto";
|
| 13 |
+
import {spawnSync} from "node:child_process";
|
| 14 |
+
import fs from "node:fs";
|
| 15 |
+
import os from "node:os";
|
| 16 |
+
import path from "node:path";
|
| 17 |
+
import {fileURLToPath, pathToFileURL} from "node:url";
|
| 18 |
+
|
| 19 |
+
const BB = path.dirname(fileURLToPath(import.meta.url));
|
| 20 |
+
const WRITE = process.argv.includes("--write");
|
| 21 |
+
let failures = 0;
|
| 22 |
+
const fail = (m) => { failures++; console.log(`FAIL ${m}`); };
|
| 23 |
+
const ok = (m) => console.log(`ok ${m}`);
|
| 24 |
+
const sha = (f) => createHash("sha256").update(fs.readFileSync(f)).digest("hex");
|
| 25 |
+
const walk = (d) => fs.existsSync(d) ? fs.readdirSync(d, {withFileTypes: true}).flatMap((e) => e.isDirectory() ? walk(path.join(d, e.name)) : [path.join(d, e.name)]) : [];
|
| 26 |
+
const rel = (f) => path.relative(BB, f).split(path.sep).join("/");
|
| 27 |
+
|
| 28 |
+
// what is frozen: the data, the gold and the scorer (runners and systems are recorded per run in inputs.json)
|
| 29 |
+
const FROZEN_DIRS = ["cases/public", "households/public", "households/classic", "oracle", "grader", "help"];
|
| 30 |
+
const FROZEN_FILES = ["households/gen.mjs", "households/csv.mjs", "households/sources.mjs", "households/public.config.mjs", "households/templates.mjs", "writers/BRIEF.md", "writers/validate.mjs", "writers/make-packet.mjs", "systems/tools.mjs"];
|
| 31 |
+
const SEALED_DIRS = ["sealed/cases", "sealed/households", "sealed/personas"];
|
| 32 |
+
const SEALED_FILES = ["sealed/households.config.mjs", "sealed/AUDIT-LOG.md"];
|
| 33 |
+
const listOf = (dirs, files) => [...dirs.flatMap((d) => walk(path.join(BB, d))), ...files.map((f) => path.join(BB, f))]
|
| 34 |
+
.filter((f) => !/(^|\/)(__pycache__|\.DS_Store)/.test(rel(f))).map(rel).sort();
|
| 35 |
+
const manifest = (list) => list.map((f) => `${sha(path.join(BB, f))} ${f}`).join("\n") + "\n";
|
| 36 |
+
|
| 37 |
+
function verify(name, file, list) {
|
| 38 |
+
const want = new Map(fs.readFileSync(path.join(BB, file), "utf8").trim().split("\n").map((l) => { const [h, ...p] = l.split(" "); return [p.join(" "), h]; }));
|
| 39 |
+
const have = new Set(list);
|
| 40 |
+
let bad = 0;
|
| 41 |
+
for (const [f, h] of want) {
|
| 42 |
+
if (!have.has(f)) { fail(`${name}: ${f} is missing`); bad++; continue; }
|
| 43 |
+
if (sha(path.join(BB, f)) !== h) { fail(`${name}: ${f} changed (hash differs from ${file})`); bad++; }
|
| 44 |
+
}
|
| 45 |
+
for (const f of list) if (!want.has(f)) { fail(`${name}: ${f} was added to a frozen folder`); bad++; }
|
| 46 |
+
if (!bad) ok(`${name}: ${want.size} files match ${file}`);
|
| 47 |
+
}
|
| 48 |
+
|
| 49 |
+
const pub = listOf(FROZEN_DIRS, FROZEN_FILES);
|
| 50 |
+
const sealedHere = fs.existsSync(path.join(BB, "sealed/cases"));
|
| 51 |
+
if (WRITE) {
|
| 52 |
+
fs.writeFileSync(path.join(BB, "FROZEN.sha256"), manifest(pub));
|
| 53 |
+
if (sealedHere) fs.writeFileSync(path.join(BB, "sealed.sha256"), manifest(listOf(SEALED_DIRS, SEALED_FILES)));
|
| 54 |
+
console.log(`wrote FROZEN.sha256 (${pub.length} files)${sealedHere ? " and sealed.sha256" : ""}`);
|
| 55 |
+
}
|
| 56 |
+
verify("public split", "FROZEN.sha256", pub);
|
| 57 |
+
if (sealedHere) verify("sealed split", "sealed.sha256", listOf(SEALED_DIRS, SEALED_FILES));
|
| 58 |
+
else console.log(`-- sealed split: plain files not here (expected outside the release machine); ${fs.readFileSync(path.join(BB, "sealed.sha256"), "utf8").trim().split("\n").length} hashes on record`);
|
| 59 |
+
|
| 60 |
+
// 3. determinism: regenerate every household into a temporary folder and compare byte for byte
|
| 61 |
+
{
|
| 62 |
+
const tmp = fs.mkdtempSync(path.join(os.tmpdir(), "bb-regen-"));
|
| 63 |
+
const configs = [["public", "households/public.config.mjs", "households/public"], ...(sealedHere ? [["sealed", "sealed/households.config.mjs", "sealed/households"]] : [])];
|
| 64 |
+
for (const [name, cfg, dir] of configs) {
|
| 65 |
+
const out = path.join(tmp, name);
|
| 66 |
+
const r = spawnSync(process.execPath, [path.join(BB, "households/gen.mjs"), path.join(BB, cfg), out], {encoding: "utf8"});
|
| 67 |
+
if (r.status !== 0) { fail(`${name} households: the generator failed: ${r.stderr.slice(0, 300)}`); continue; }
|
| 68 |
+
let diff = 0;
|
| 69 |
+
for (const f of walk(path.join(BB, dir))) { const g = path.join(out, path.relative(path.join(BB, dir), f)); if (!fs.existsSync(g) || sha(g) !== sha(f)) { diff++; if (diff < 4) fail(`${name} households: ${rel(f)} does not regenerate byte for byte`); } }
|
| 70 |
+
if (!diff) ok(`${name} households regenerate byte for byte from ${cfg}`);
|
| 71 |
+
}
|
| 72 |
+
fs.rmSync(tmp, {recursive: true, force: true});
|
| 73 |
+
}
|
| 74 |
+
|
| 75 |
+
// 4. every gold computes; the two oracles agree on the classic household
|
| 76 |
+
{
|
| 77 |
+
const {loadHousehold, goldOf} = await import(pathToFileURL(path.join(BB, "oracle/oracle.mjs")).href);
|
| 78 |
+
for (const [split, cdir, hdir] of [["public", "cases/public", "households/public"], ...(sealedHere ? [["sealed", "sealed/cases", "sealed/households"]] : [])]) {
|
| 79 |
+
let turns = 0, cases = 0, errs = 0;
|
| 80 |
+
const hhs = new Map();
|
| 81 |
+
for (const f of walk(path.join(BB, cdir)).filter((x) => x.endsWith(".jsonl"))) for (const l of fs.readFileSync(f, "utf8").split("\n").filter(Boolean)) {
|
| 82 |
+
const c = JSON.parse(l); cases++;
|
| 83 |
+
if (!hhs.has(c.household)) hhs.set(c.household, loadHousehold(path.join(BB, hdir, c.household)));
|
| 84 |
+
for (const t of c.turns) { turns++; try { goldOf(hhs.get(c.household), t.meaning); } catch (e) { errs++; if (errs < 4) fail(`${split} ${c.id}: ${e.message}`); } }
|
| 85 |
+
}
|
| 86 |
+
if (!errs) ok(`${split}: every gold computes (${cases} cases, ${turns} turns)`);
|
| 87 |
+
}
|
| 88 |
+
const hh = loadHousehold(path.join(BB, "households/public/p-classic"));
|
| 89 |
+
let agree = 0, differ = 0;
|
| 90 |
+
for (const l of fs.readFileSync(path.join(BB, "cases/public/classic.jsonl"), "utf8").split("\n").filter(Boolean)) {
|
| 91 |
+
const c = JSON.parse(l), ref = c.reference_gold, g = goldOf(hh, c.turns[0].meaning).gold;
|
| 92 |
+
const same = ref.type === "money" || ref.type === "percent" ? g.type === ref.type && Math.abs(g.value - ref.value) < 0.005
|
| 93 |
+
: ref.type === "count" ? g.type === "count" && [g.value, ...(g.alt ?? [])].includes(ref.value)
|
| 94 |
+
: ref.type === "name" ? g.type === "names" && ref.any.includes(g.all[0][0]) : g.type === ref.type;
|
| 95 |
+
if (same) agree++; else { differ++; fail(`classic ${c.id}: oracle ${JSON.stringify(g)} vs reference.py ${JSON.stringify(ref)}`); }
|
| 96 |
+
}
|
| 97 |
+
if (!differ) ok(`two independent oracles agree on all ${agree} classic cases (oracle/oracle.mjs vs eval v0 reference.py)`);
|
| 98 |
+
// (and reference.py still computes the frozen golds itself)
|
| 99 |
+
const py = spawnSync("python3", [path.join(BB, "households/classic/make_cases.py")], {encoding: "utf8"});
|
| 100 |
+
if (py.status !== 0) fail(`make_cases.py failed: ${py.stderr.slice(0, 200)}`);
|
| 101 |
+
else if (py.stdout !== fs.readFileSync(path.join(BB, "cases/public/classic.jsonl"), "utf8")) fail("cases/public/classic.jsonl is not what make_cases.py (reference.py) writes");
|
| 102 |
+
else ok("classic.jsonl is exactly what reference.py's generator writes");
|
| 103 |
+
}
|
| 104 |
+
|
| 105 |
+
// 5. the grader on known answers
|
| 106 |
+
{
|
| 107 |
+
const r = spawnSync(process.execPath, [path.join(BB, "grader/check.mjs"), "--quiet"], {encoding: "utf8", maxBuffer: 64 << 20});
|
| 108 |
+
const last = r.stdout.trim().split("\n").at(-1);
|
| 109 |
+
if (r.status !== 0) { fail(`grader adversarial checks: ${last}`); console.log(r.stdout.split("\n").filter((l) => l.startsWith("FAIL")).slice(0, 10).join("\n")); }
|
| 110 |
+
else ok(`grader adversarial checks: ${last}`);
|
| 111 |
+
}
|
| 112 |
+
|
| 113 |
+
console.log(failures ? `\nBUDGETBENCH CHECK FAILED (${failures})` : "\nBUDGETBENCH CHECK PASSED");
|
| 114 |
+
process.exit(failures ? 1 : 0);
|
grader/check.mjs
ADDED
|
@@ -0,0 +1,184 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env node
|
| 2 |
+
// BudgetBench GRADER CHECK: the grader on KNOWN answers, for every turn of every frozen case (public, and sealed when
|
| 3 |
+
// its files are present), before any run is trusted. In the line of eval-chat/grade2-check.mjs and grade3-check.mjs:
|
| 4 |
+
// oracle the gold written as a plain answer (in the turn's currency) -> right_no_tap
|
| 5 |
+
// wrong value a plausible wrong figure, count or name -> wrong_shown
|
| 6 |
+
// wrong month the right figure said for another month -> wrong_shown
|
| 7 |
+
// reversed a comparison with its sides swapped -> wrong_shown
|
| 8 |
+
// two currencies a total that adds two currencies -> wrong_shown
|
| 9 |
+
// offered wrong a choice whose every option is wrong -> wrong_offered
|
| 10 |
+
// tap a choice whose option is right, tapped -> right_tap
|
| 11 |
+
// not sure "I am not sure which figure you mean." -> not_sure
|
| 12 |
+
// declined an empty answer, and a refusal with no figure -> declined
|
| 13 |
+
// plus fixed probes (the money tokenizer, a table-only figure, a figure in a difference role, a denied gold).
|
| 14 |
+
// node budgetbench/grader/check.mjs [--split public|sealed|all] [--quiet]
|
| 15 |
+
import fs from "node:fs";
|
| 16 |
+
import path from "node:path";
|
| 17 |
+
import {fileURLToPath} from "node:url";
|
| 18 |
+
import {loadHousehold, monthLabel} from "../oracle/oracle.mjs";
|
| 19 |
+
import {expectationsOf, scoreCase} from "./score.mjs";
|
| 20 |
+
|
| 21 |
+
const HERE = path.dirname(fileURLToPath(import.meta.url));
|
| 22 |
+
const BB = path.resolve(HERE, "..");
|
| 23 |
+
const argv = process.argv.slice(2);
|
| 24 |
+
const SPLIT = argv.includes("--split") ? argv[argv.indexOf("--split") + 1] : "all";
|
| 25 |
+
const QUIET = argv.includes("--quiet");
|
| 26 |
+
|
| 27 |
+
const fmt = (v, cur) => {
|
| 28 |
+
const a = Math.abs(v), s = a.toLocaleString("en-US", {minimumFractionDigits: 2, maximumFractionDigits: 2});
|
| 29 |
+
if (cur === "EUR") return `${a.toLocaleString("de-DE", {minimumFractionDigits: 2, maximumFractionDigits: 2})} €`;
|
| 30 |
+
if (cur === "GBP") return `£${s}`;
|
| 31 |
+
return `$${s}`;
|
| 32 |
+
};
|
| 33 |
+
const when = (e) => {
|
| 34 |
+
if (!Array.isArray(e.months)) return "";
|
| 35 |
+
if (e.months.length === 1) return ` in ${monthLabel(e.months[0])}`;
|
| 36 |
+
return ` from ${monthLabel(e.months[0])} to ${monthLabel(e.months.at(-1))}`;
|
| 37 |
+
};
|
| 38 |
+
const scope = (e) => (e.scope?.length ? ` for ${e.scope[0]}` : "");
|
| 39 |
+
|
| 40 |
+
/** the gold written as a plain, correct answer */
|
| 41 |
+
function oracle(e, hh) {
|
| 42 |
+
const g = e.gold, cur = e.currency ?? hh.home;
|
| 43 |
+
switch (g.type) {
|
| 44 |
+
case "money":
|
| 45 |
+
if (e.direction?.more) return `${monthLabel(e.direction.more)} was ${fmt(g.value, cur)} more than ${monthLabel(e.direction.less)}${scope(e)}.`;
|
| 46 |
+
if (e.measure === "difference") return `The difference${scope(e)} is ${fmt(g.value, cur)}${when(e)}.`;
|
| 47 |
+
if (e.months?.length === hh.months.length && hh.months.every((k, i) => e.months[i] === k)) return `That came to ${fmt(g.value, cur)}${scope(e)} across your whole history (${monthLabel(hh.months[0])} to ${monthLabel(hh.months.at(-1))}).`;
|
| 48 |
+
return `That came to ${fmt(g.value, cur)}${scope(e)}${when(e)}.`;
|
| 49 |
+
case "money_set":
|
| 50 |
+
if (g.currencies) return `You spent ${g.values.map((v, i) => `${fmt(v, g.currencies[i])} in ${g.currencies[i]}`).join(" and ")}${when(e)}; the two currencies are kept apart.`;
|
| 51 |
+
return `By month${scope(e)}: ${g.values.map((v, i) => `${monthLabel(g.months[i])} ${fmt(v, cur)}`).join(", ")}.`;
|
| 52 |
+
case "percent": return `That is ${g.value}%${when(e)}.`;
|
| 53 |
+
case "count": return `${g.value} purchases${scope(e)}${when(e)}.`;
|
| 54 |
+
case "names": return `${e.direction === "smallest" ? "The smallest" : "The biggest"} was ${g.all.map((a) => a[0]).join(" and ")}${e.measure === "top_month" ? "" : when(e)}.`;
|
| 55 |
+
case "none": return "Nothing: you didn't spend anything on that.";
|
| 56 |
+
case "cannot": return "I can't see that: it is not in your ledger.";
|
| 57 |
+
case "decline": return "That's your call to make; I don't make that decision for you.";
|
| 58 |
+
case "howto": return `In the app: ${g.concepts.map((c) => c[0]).join(", then ")}.`;
|
| 59 |
+
case "clarify": return "Do you mean this month or last month?";
|
| 60 |
+
default: throw new Error(g.type);
|
| 61 |
+
}
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
/** a plausible wrong answer of the same shape, or null when the gold has no wrong form */
|
| 65 |
+
function wrongValue(e, hh) {
|
| 66 |
+
const g = e.gold, cur = e.currency ?? hh.home;
|
| 67 |
+
switch (g.type) {
|
| 68 |
+
case "money": return `That came to ${fmt(g.value + 13.37, cur)}${scope(e)}${when(e)}.`;
|
| 69 |
+
case "money_set": return g.currencies ? null : `By month${scope(e)}: ${g.values.map((v, i) => `${monthLabel(g.months[i])} ${fmt(v + 7.11, cur)}`).join(", ")}.`;
|
| 70 |
+
case "percent": return `That is ${(g.value + 4.2).toFixed(1)}%${when(e)}.`;
|
| 71 |
+
case "count": return `${g.value + 3} purchases${scope(e)}${when(e)}.`;
|
| 72 |
+
case "names": {
|
| 73 |
+
if (e.measure === "top_month") { const other = hh.months.find((k) => !g.all[0].some((n) => n.startsWith(monthLabel(k).split(" ")[0]))); return other ? `The biggest was ${monthLabel(other)}.` : null; }
|
| 74 |
+
const pool = e.measure === "top_merchant" ? hh.merchants : hh.categories.filter((c) => !["Wages", "Other Income", "Credit Card Payment"].includes(c));
|
| 75 |
+
const other = pool.find((n) => !g.all[0].some((x) => x.toLowerCase().includes(n.toLowerCase()) || n.toLowerCase().includes(x.toLowerCase())) && !hh.groups.includes(n));
|
| 76 |
+
return other ? `The biggest was ${other}${when(e)}.` : null;
|
| 77 |
+
}
|
| 78 |
+
case "none": return "You spent $412.50 on that.";
|
| 79 |
+
case "cannot": return "That will be $1,250.00.";
|
| 80 |
+
case "decline": return "You should cancel it.";
|
| 81 |
+
default: return null;
|
| 82 |
+
}
|
| 83 |
+
}
|
| 84 |
+
|
| 85 |
+
let total = 0, bad = 0;
|
| 86 |
+
const want = (id, what, label, got, text) => {
|
| 87 |
+
total++;
|
| 88 |
+
if (got.label !== label) { bad++; if (!QUIET || bad <= 40) console.log(`FAIL ${id} ${what}: want ${label}, got ${got.label} (${got.turns.map((t) => `${t.outcome}: ${t.reason}`).join(" | ")}) for ${JSON.stringify(text).slice(0, 300)}`); }
|
| 89 |
+
};
|
| 90 |
+
|
| 91 |
+
const splits = SPLIT === "all" ? ["public", "sealed"] : [SPLIT];
|
| 92 |
+
for (const split of splits) {
|
| 93 |
+
const casesDir = split === "public" ? path.join(BB, "cases/public") : path.join(BB, "sealed/cases");
|
| 94 |
+
const hhDir = split === "public" ? path.join(BB, "households/public") : path.join(BB, "sealed/households");
|
| 95 |
+
if (!fs.existsSync(casesDir)) { console.log(`(${split}: no plain files here; skipped)`); continue; }
|
| 96 |
+
const hhs = new Map();
|
| 97 |
+
for (const f of fs.readdirSync(casesDir).filter((x) => x.endsWith(".jsonl")).sort()) for (const l of fs.readFileSync(path.join(casesDir, f), "utf8").split("\n").filter(Boolean)) {
|
| 98 |
+
const c = JSON.parse(l);
|
| 99 |
+
if (!hhs.has(c.household)) hhs.set(c.household, loadHousehold(path.join(hhDir, c.household)));
|
| 100 |
+
const hh = hhs.get(c.household);
|
| 101 |
+
const exps = expectationsOf(hh, c);
|
| 102 |
+
const right = exps.map((e) => ({text: oracle(e, hh)}));
|
| 103 |
+
want(c.id, "oracle", "right_no_tap", scoreCase(hh, c, right), right.map((t) => t.text));
|
| 104 |
+
// the last turn varied, every earlier turn right
|
| 105 |
+
const last = exps.length - 1, e = exps[last];
|
| 106 |
+
const with_ = (t) => [...right.slice(0, last), t];
|
| 107 |
+
const w = wrongValue(e, hh);
|
| 108 |
+
if (w) want(c.id, "wrong value", "wrong_shown", scoreCase(hh, c, with_({text: w})), w);
|
| 109 |
+
if (e.gold.type === "money" && Array.isArray(e.months) && e.months.length === 1 && !e.direction) {
|
| 110 |
+
const other = hh.months.find((k) => !e.months.includes(k));
|
| 111 |
+
const text = `That came to ${fmt(e.gold.value, e.currency ?? hh.home)}${scope(e)} in ${monthLabel(other)}.`;
|
| 112 |
+
want(c.id, "wrong month", "wrong_shown", scoreCase(hh, c, with_({text})), text);
|
| 113 |
+
}
|
| 114 |
+
if (e.direction?.more) {
|
| 115 |
+
const text = `${monthLabel(e.direction.less)} was ${fmt(e.gold.value, e.currency ?? hh.home)} more than ${monthLabel(e.direction.more)}${scope(e)}.`;
|
| 116 |
+
want(c.id, "reversed", "wrong_shown", scoreCase(hh, c, with_({text})), text);
|
| 117 |
+
}
|
| 118 |
+
if (e.gold.type === "money_set" && e.gold.currencies) {
|
| 119 |
+
const sum = e.gold.values.reduce((a, b) => a + b, 0);
|
| 120 |
+
const text = `You spent ${fmt(sum, hh.home)} in all${when(e)}.`;
|
| 121 |
+
want(c.id, "two currencies added", "wrong_shown", scoreCase(hh, c, with_({text})), text);
|
| 122 |
+
}
|
| 123 |
+
if (w && e.accept !== "clarify" && !["decline", "cannot", "none", "howto", "clarify"].includes(e.gold.type)) {
|
| 124 |
+
const choice = {text: "Which one do you mean?", choice: {labels: ["A", "B"], answers: [{label: "A", text: w}, {label: "B", text: w}]}};
|
| 125 |
+
want(c.id, "offered wrong", "wrong_offered", scoreCase(hh, c, with_(choice)), choice);
|
| 126 |
+
if (exps.every((x) => x.accept !== "clarify")) {
|
| 127 |
+
const tap = {text: "Which one do you mean?", choice: {labels: ["A", "B"], answers: [{label: "A", text: w}, {label: "B", text: right[last].text}]}, tapped: 1};
|
| 128 |
+
want(c.id, "tap", "right_tap", scoreCase(hh, c, with_(tap)), tap);
|
| 129 |
+
}
|
| 130 |
+
}
|
| 131 |
+
if (!["decline", "cannot", "clarify"].includes(e.gold.type) && e.accept !== "clarify") {
|
| 132 |
+
want(c.id, "not sure", "not_sure", scoreCase(hh, c, with_({text: "I am not sure which figure you mean, so I will not guess."})), "not sure");
|
| 133 |
+
want(c.id, "empty", "declined", scoreCase(hh, c, with_({text: ""})), "");
|
| 134 |
+
want(c.id, "refusal", "declined", scoreCase(hh, c, with_({text: "I can't help with that one."})), "refusal");
|
| 135 |
+
}
|
| 136 |
+
}
|
| 137 |
+
}
|
| 138 |
+
|
| 139 |
+
// ---- fixed probes ------------------------------------------------------------------------------------------------
|
| 140 |
+
const {asDollars} = await import("./money.mjs");
|
| 141 |
+
const probe = (what, got, exp) => { total++; if (got !== exp) { bad++; console.log(`FAIL probe ${what}: got ${JSON.stringify(got)}, want ${JSON.stringify(exp)}`); } };
|
| 142 |
+
probe("year before a dollar figure", asDollars("July 2026 $74.96", "USD"), "July 2026 $74.96");
|
| 143 |
+
probe("euro after", asDollars("1.311,34 €", "EUR"), "$1,311.34");
|
| 144 |
+
probe("euro before, comma decimals", asDollars("€12,50", "EUR"), "$12.50");
|
| 145 |
+
probe("other currency hidden", asDollars("£8.90", "USD"), "[GBP 8.90]");
|
| 146 |
+
probe("thousands only", asDollars("1.234 €", "EUR"), "$1,234");
|
| 147 |
+
{
|
| 148 |
+
const hh = loadHousehold(path.join(BB, "households/public/p-classic"));
|
| 149 |
+
const c = {id: "probe-table", turns: [{q: "How much did I spend in June?", meaning: {act: "lookup", measure: "spend", months: ["2026-06"]}}]};
|
| 150 |
+
const v = expectationsOf(hh, c)[0].gold.value;
|
| 151 |
+
const lab = (text) => scoreCase(hh, c, [{text}]).label;
|
| 152 |
+
probe("gold only in a table is not the answer", lab(`You spent $9,999.99 in June 2026.\n| Item | Amount |\n|---|---|\n| June 2026 | ${fmt(v, "USD")} |`), "wrong_shown");
|
| 153 |
+
probe("gold quoted and denied", lab(`It was not ${fmt(v, "USD")}; it was $4,100.00 in June 2026.`), "wrong_shown");
|
| 154 |
+
probe("gold in a difference role", lab(`June 2026 was ${fmt(v, "USD")} less than July.`), "wrong_shown");
|
| 155 |
+
probe("an example is not an answer", lab(`I am not sure which figure you mean. Try for example "${fmt(v, "USD")} in June".`), "not_sure");
|
| 156 |
+
}
|
| 157 |
+
{
|
| 158 |
+
// (calibration probes, 2026-10-19: rules found reading Pulse Local's public answers, each general)
|
| 159 |
+
const hh = loadHousehold(path.join(BB, "households/public/p-classic"));
|
| 160 |
+
const money = {id: "probe-cov", turns: [{q: "How much did I spend in June?", meaning: {act: "lookup", measure: "spend", months: ["2026-06"]}}]};
|
| 161 |
+
const cannot = {id: "probe-cannot", turns: [{q: "What will I spend next year?", meaning: {act: "cannot"}}]};
|
| 162 |
+
const lab = (c, text) => scoreCase(hh, c, [{text}]).label;
|
| 163 |
+
const cov = "That is not something I can look up in your ledger (78 transactions imported, 2026-07-22 to 2026-10-15).";
|
| 164 |
+
probe("a coverage note is no count", lab(money, cov), "declined");
|
| 165 |
+
probe("'not something I can look up' is a cannot", lab(cannot, cov), "right_no_tap");
|
| 166 |
+
probe("'has no figures about other people' is a cannot", lab(cannot, "Pulse has no figures about other people: it reads only your own ledger, on this machine."), "right_no_tap");
|
| 167 |
+
probe("withholding a figure is not sure", lab(money, 'I could not use "aside" in the answer, so I will not show a figure that leaves it out.'), "not_sure");
|
| 168 |
+
probe("a plain refusal is declined", lab(money, "I only handle money questions, and only on this machine."), "declined");
|
| 169 |
+
const top = {id: "p-top", turns: [{q: "Which month did I spend the most at Starbucks?", meaning: {act: "lookup", measure: "top_month", merchant: "Starbucks", months: "all"}}]};
|
| 170 |
+
const g = expectationsOf(hh, top)[0].gold.all[0][0];
|
| 171 |
+
probe("a denial that names the right month is wrong", lab(top, `There are no transactions matching "biggest" for the month of ${g}.`), "wrong_shown");
|
| 172 |
+
probe("'none of the transactions are listed' is wrong", lab(money, "None of the transactions are listed for that month."), "wrong_shown");
|
| 173 |
+
probe("'there are no transactions' with a date is wrong, not review", lab(money, "There are no transactions for June 16, 2026."), "wrong_shown");
|
| 174 |
+
probe("'there is no EUR category' is a true refusal, not a denial", lab(money, "There is no EUR category in your ledger. Name one from the Categories screen."), "declined");
|
| 175 |
+
probe("a bare 0 for a money question is wrong", lab(money, "0"), "wrong_shown");
|
| 176 |
+
probe("an unmarked amount with cents is money", lab(money, `You spent ${expectationsOf(hh, money)[0].gold.value.toFixed(2)} in June 2026.`), "right_no_tap");
|
| 177 |
+
probe("an unmarked wrong amount is wrong", lab(money, "You spent 4100.00 in June 2026."), "wrong_shown");
|
| 178 |
+
probe("an unplaced number in a non-answer stays for review", lab(money, "Checking (checking, USD) and Visa 4421 (credit, USD)."), "review");
|
| 179 |
+
probe("a currency code before an amount keeps that currency", lab(money, "You spent EUR 4100.00 in June 2026."), lab(money, "You spent EUR 4100 in June 2026."));
|
| 180 |
+
probe("'0.00' where there is nothing is right", lab({id: "p-none", turns: [{q: "hotels in September?", meaning: {act: "lookup", measure: "spend", category: "Lodging", months: ["2026-09"], absent: true}}]}, "0.00"), "right_no_tap");
|
| 181 |
+
probe("'that one' is no count", scoreCase(hh, {id: "p", turns: [{q: "How many times did I go to Starbucks?", meaning: {act: "lookup", measure: "count", merchant: "Starbucks", months: "all"}}]}, [{text: "I can't help with that one."}]).label, "declined");
|
| 182 |
+
}
|
| 183 |
+
console.log(`${total - bad} of ${total} grader checks pass`);
|
| 184 |
+
process.exit(bad ? 1 : 0);
|
grader/facts.mjs
ADDED
|
@@ -0,0 +1,127 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// THE TRUE FIGURES OF A HOUSEHOLD, for the grader's audit of every money figure an answer prints. Adapted from
|
| 2 |
+
// eval-chat/facts.mjs (grader v3's table): computed from truth/ledger.csv and truth/setup.json alone, never from a
|
| 3 |
+
// system's output and never from app code; the category-to-group map is oracle/categories.json (data).
|
| 4 |
+
//
|
| 5 |
+
// A fact is {value, kind, entity, months}: `months` is the set of months the figure is about (null for today's
|
| 6 |
+
// balances and yearly estimates). Facts are per CURRENCY: a figure is held only against the facts of the currency
|
| 7 |
+
// it is written in. `forbiddenOf` lists the figures that ADD two currencies (no right answer prints one).
|
| 8 |
+
import fs from "node:fs";
|
| 9 |
+
import {r2} from "../oracle/oracle.mjs";
|
| 10 |
+
|
| 11 |
+
const CATS = JSON.parse(fs.readFileSync(new URL("../oracle/categories.json", import.meta.url), "utf8"));
|
| 12 |
+
const NOT_SPEND = new Set(["Income", "Transfers", "Debt Payments"]);
|
| 13 |
+
|
| 14 |
+
/** leaf -> group (a group maps to itself) */
|
| 15 |
+
export function groupMap() {
|
| 16 |
+
const m = new Map(Object.entries(CATS.leaves));
|
| 17 |
+
for (const g of CATS.groups) if (!m.has(g)) m.set(g, g);
|
| 18 |
+
return m;
|
| 19 |
+
}
|
| 20 |
+
|
| 21 |
+
/** every true figure of the household in one currency */
|
| 22 |
+
export function factsOf(hh, currency) {
|
| 23 |
+
const rows = hh.rows.filter((r) => r.currency === currency);
|
| 24 |
+
const months = [...new Set(rows.map((r) => r.month))].sort();
|
| 25 |
+
const facts = [];
|
| 26 |
+
const add = (value, kind, entity, ms) => { if (Number.isFinite(value) && Math.abs(value) >= 0.005) facts.push({value: r2(Math.abs(value)), kind, entity, months: ms}); };
|
| 27 |
+
const spendRows = rows.filter((r) => !NOT_SPEND.has(r.group));
|
| 28 |
+
const cellOf = (pred) => { const m = new Map(); for (const r of spendRows) if (pred(r)) { const k = `${r.category}|${r.month}`; m.set(k, (m.get(k) ?? 0) + r.amount); } return m; };
|
| 29 |
+
const spendFrom = (cells, month) => { let t = 0; for (const [k, v] of cells) if (k.endsWith(`|${month}`)) t += Math.max(0, -v); return r2(t); };
|
| 30 |
+
const all = cellOf(() => true);
|
| 31 |
+
const spendOf = (m, pred) => (pred == null ? spendFrom(all, m) : spendFrom(cellOf(pred), m));
|
| 32 |
+
const spans = [];
|
| 33 |
+
for (let i = 0; i < months.length; i++) for (let j = i; j < months.length; j++) spans.push(months.slice(i, j + 1));
|
| 34 |
+
const leaves = [...new Set(spendRows.map((r) => r.category))];
|
| 35 |
+
const groups = [...new Set(spendRows.map((r) => r.group))];
|
| 36 |
+
const merchants = [...new Set(rows.map((r) => r.merchant))];
|
| 37 |
+
const accounts = [...new Set(rows.map((r) => r.account))];
|
| 38 |
+
const incomeOf = (m) => r2(rows.filter((r) => r.month === m && r.group === "Income").reduce((a, r) => a + r.amount, 0));
|
| 39 |
+
const loansOf = (m) => r2(-rows.filter((r) => r.month === m && r.group === "Debt Payments" && r.category !== "Credit Card Payment").reduce((a, r) => a + r.amount, 0));
|
| 40 |
+
const creditOf = (m) => { let t = 0; for (const [k, v] of all) if (k.endsWith(`|${m}`) && v > 0) t += v; return r2(t); };
|
| 41 |
+
const grossOf = (m, pred) => r2(-spendRows.filter((r) => r.month === m && r.amount < 0 && pred(r)).reduce((a, r) => a + r.amount, 0));
|
| 42 |
+
const cache = new Map();
|
| 43 |
+
const spendCached = (key, pred, m) => { const k = `${key}|${m}`; if (!cache.has(k)) cache.set(k, spendOf(m, pred)); return cache.get(k); };
|
| 44 |
+
for (const span of spans) {
|
| 45 |
+
const sum = (f) => r2(span.reduce((a, m) => a + f(m), 0));
|
| 46 |
+
const spend = sum((m) => spendCached("*", null, m)), income = sum(incomeOf), out = r2(spend + sum(loansOf)), credit = sum(creditOf);
|
| 47 |
+
add(spend, "spend", "*", span); add(income, "income", "*", span); add(out, "money_out", "*", span);
|
| 48 |
+
add(income - spend, "kept", "*", span); add(income - out, "kept", "*", span); add(income + credit - spend, "kept", "*", span); add(income + credit - out, "kept", "*", span);
|
| 49 |
+
add(credit, "refund_credit", "*", span);
|
| 50 |
+
add(sum((m) => grossOf(m, () => true)), "gross_purchases", "*", span);
|
| 51 |
+
for (const c of leaves) { add(sum((m) => spendCached(`c:${c}`, (r) => r.category === c, m)), "spend", c, span); add(sum((m) => grossOf(m, (r) => r.category === c)), "gross_purchases", c, span); }
|
| 52 |
+
for (const g of groups) add(sum((m) => spendCached(`g:${g}`, (r) => r.group === g, m)), "spend", g, span);
|
| 53 |
+
for (const mer of merchants) {
|
| 54 |
+
add(sum((m) => spendCached(`m:${mer}`, (r) => r.merchant === mer, m)), "merchant_net", mer, span);
|
| 55 |
+
const rs = rows.filter((r) => span.includes(r.month) && r.merchant === mer);
|
| 56 |
+
add(-rs.filter((r) => r.amount < 0).reduce((a, r) => a + r.amount, 0), "merchant_out", mer, span);
|
| 57 |
+
add(rs.filter((r) => r.amount > 0).reduce((a, r) => a + r.amount, 0), "merchant_in", mer, span);
|
| 58 |
+
}
|
| 59 |
+
for (const a of accounts) add(sum((m) => spendCached(`a:${a}`, (r) => r.account === a, m)), "spend", a, span);
|
| 60 |
+
const complete = span.filter((m) => m !== hh.cur);
|
| 61 |
+
for (const set of [span, complete]) if (set.length > 1) {
|
| 62 |
+
add(r2(set.reduce((a, m) => a + spendCached("*", null, m), 0) / set.length), "average", "*", set);
|
| 63 |
+
add(r2(set.reduce((a, m) => a + incomeOf(m), 0) / set.length), "average", "*", set);
|
| 64 |
+
for (const c of leaves) add(r2(set.reduce((a, m) => a + spendCached(`c:${c}`, (r) => r.category === c, m), 0) / set.length), "average", c, set);
|
| 65 |
+
for (const mer of merchants) add(r2(set.reduce((a, m) => a + spendCached(`m:${mer}`, (r) => r.merchant === mer, m), 0) / set.length), "average", mer, set);
|
| 66 |
+
}
|
| 67 |
+
}
|
| 68 |
+
for (const r of rows) { add(r.amount, "row", r.merchant, [r.month]); add(r.amount, "row", r.category, [r.month]); }
|
| 69 |
+
for (const mer of merchants) for (const a of new Set(rows.filter((r) => r.merchant === mer && r.amount < 0).map((r) => r2(-r.amount)))) add(a * 12, "yearly_estimate", mer, null);
|
| 70 |
+
for (let i = 0; i < months.length; i++) for (let j = 0; j < months.length; j++) if (i !== j) {
|
| 71 |
+
const [a, b] = [months[i], months[j]];
|
| 72 |
+
add(spendCached("*", null, a) - spendCached("*", null, b), "difference", "*", [a, b]);
|
| 73 |
+
for (const c of leaves) add(spendCached(`c:${c}`, (r) => r.category === c, a) - spendCached(`c:${c}`, (r) => r.category === c, b), "difference", c, [a, b]);
|
| 74 |
+
for (const g of groups) add(spendCached(`g:${g}`, (r) => r.group === g, a) - spendCached(`g:${g}`, (r) => r.group === g, b), "difference", g, [a, b]);
|
| 75 |
+
for (const mer of merchants) add(spendCached(`m:${mer}`, (r) => r.merchant === mer, a) - spendCached(`m:${mer}`, (r) => r.merchant === mer, b), "difference", mer, [a, b]);
|
| 76 |
+
}
|
| 77 |
+
let cash = 0, debt = 0;
|
| 78 |
+
for (const a of hh.accounts ?? []) if ((a.currency ?? hh.home) === currency && a.balance != null) {
|
| 79 |
+
add(a.balance, "balance", a.name, null);
|
| 80 |
+
if (a.kind === "checking" || a.kind === "savings") cash += a.balance; else debt += a.balance;
|
| 81 |
+
}
|
| 82 |
+
add(cash, "cash", "*", null); add(cash - debt, "net_worth", "*", null); add(debt, "debt", "*", null);
|
| 83 |
+
return facts;
|
| 84 |
+
}
|
| 85 |
+
|
| 86 |
+
/** figures that add two currencies: spending (whole, per category, per group) over every span, summed across currencies */
|
| 87 |
+
export function forbiddenOf(hh) {
|
| 88 |
+
const curs = [...new Set(hh.rows.map((r) => r.currency))];
|
| 89 |
+
if (curs.length < 2) return [];
|
| 90 |
+
const per = curs.map((c) => factsOf(hh, c).filter((f) => f.kind === "spend" || f.kind === "income" || f.kind === "gross_purchases"));
|
| 91 |
+
const key = (f) => `${f.kind}|${f.entity}|${(f.months ?? []).join("+")}`;
|
| 92 |
+
const maps = per.map((fs_) => new Map(fs_.map((f) => [key(f), f])));
|
| 93 |
+
const out = [];
|
| 94 |
+
for (const [k, f] of maps[0]) {
|
| 95 |
+
let total = f.value, n = 1;
|
| 96 |
+
for (const m of maps.slice(1)) if (m.has(k)) { total += m.get(k).value; n++; }
|
| 97 |
+
if (n > 1) out.push({value: r2(total), kind: `${f.kind} across currencies`, entity: f.entity, months: f.months});
|
| 98 |
+
}
|
| 99 |
+
return out;
|
| 100 |
+
}
|
| 101 |
+
|
| 102 |
+
/** facts whose value is this figure (to the cent, or the figure is the fact rounded to the dollar) */
|
| 103 |
+
export function factsMatching(facts, value) {
|
| 104 |
+
const whole = Number.isInteger(value);
|
| 105 |
+
return facts.filter((f) => Math.abs(f.value - value) < 0.005 || (whole && Math.round(f.value) === value));
|
| 106 |
+
}
|
| 107 |
+
|
| 108 |
+
/** THE GROUP AT A RANK (grader v3 revision 2026-10-02): see eval-chat/facts.mjs; rows are one currency's */
|
| 109 |
+
export function groupAtRank(fx, months, leaf, rank, smallest) {
|
| 110 |
+
if (!Array.isArray(months) || months.length === 0 || !(rank >= 1)) return null;
|
| 111 |
+
const spend = new Map(), lm = new Map();
|
| 112 |
+
for (const r of fx.rows) {
|
| 113 |
+
if (NOT_SPEND.has(r.group) || !months.includes(r.month)) continue;
|
| 114 |
+
const k = `${r.category}|${r.month}`;
|
| 115 |
+
lm.set(k, (lm.get(k) ?? 0) + r.amount);
|
| 116 |
+
}
|
| 117 |
+
for (const [k, v] of lm) { const cat = k.split("|")[0]; spend.set(cat, r2((spend.get(cat) ?? 0) + Math.max(0, -v))); }
|
| 118 |
+
const leaves = [...spend.entries()].filter(([, v]) => v > 0.005).sort((a, b) => (smallest ? a[1] - b[1] : b[1] - a[1]) || a[0].localeCompare(b[0]));
|
| 119 |
+
const p = leaves.findIndex(([c]) => c === leaf) + 1;
|
| 120 |
+
if (p < rank) return null;
|
| 121 |
+
const left = leaves.slice(p - rank);
|
| 122 |
+
const gm = groupMap();
|
| 123 |
+
const groups = new Map();
|
| 124 |
+
for (const [c, v] of left) groups.set(gm.get(c) ?? c, r2((groups.get(gm.get(c) ?? c) ?? 0) + v));
|
| 125 |
+
const ordered = [...groups.entries()].filter(([, v]) => v > 0.005).sort((a, b) => (smallest ? a[1] - b[1] : b[1] - a[1]) || a[0].localeCompare(b[0]));
|
| 126 |
+
return ordered[rank - 1]?.[0] ?? null;
|
| 127 |
+
}
|
grader/judge.mjs
ADDED
|
@@ -0,0 +1,883 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// BUDGETBENCH JUDGE (v1.0.1, 2026-10-19; v1.0.0 the same day): eval-chat's grader v3 (grade3.mjs, sha256 c0b408abc465..., the
|
| 2 |
+
// revision "2026-10-02b" that `grade3-check.mjs` held at 1433 of 1433), copied and changed only where BudgetBench
|
| 3 |
+
// needs it, each change marked "BB:". The changes: a household (oracle/oracle.mjs) instead of a fixture folder;
|
| 4 |
+
// facts per currency and money in any currency (grader/money.mjs); gold types money_set, howto and clarify; a shop
|
| 5 |
+
// named by any of its names; "not sure" wordings of any system are clarifications; a figure that adds two currencies
|
| 6 |
+
// is wrong. Every rule of v3 below is kept, with Nizar's rulings (METHODOLOGY.md).
|
| 7 |
+
//
|
| 8 |
+
// GRADER v3 (2026-09-29). v2's per-turn judge, made fixture-aware, plus an audit of EVERY financial
|
| 9 |
+
// assertion. Changes from v2, each prompted by a way v2 could pass a wrong answer:
|
| 10 |
+
// - the fixture is a parameter (useFixture): names, months and "this month" come from the fixture being
|
| 11 |
+
// graded, never from the first household (v2 read the original ledger's categories for the fresh set);
|
| 12 |
+
// - every money figure in the answer, prose and tables, is held against the fixture's true figures
|
| 13 |
+
// (facts.mjs): a figure true only for months outside the turn's period is WRONG (a February answer that
|
| 14 |
+
// appends May figures), a figure that is no true figure at all NEEDS REVIEW;
|
| 15 |
+
// - a refusal or a decline is still audited: a correct refusal phrase does not excuse a wrong supporting
|
| 16 |
+
// figure or a month outside the conversation's period;
|
| 17 |
+
// - the expected value quoted but denied ("not $17.99") is wrong; a reversed sign on kept or net is wrong;
|
| 18 |
+
// - wording the grader cannot place is NEEDS REVIEW, never silently refused or correct;
|
| 19 |
+
// - a follow-up whose expected period or scope is the previous turn's must keep the previous turn's
|
| 20 |
+
// period or scope chip (when the run recorded chips): a changed field it did not ask for is wrong.
|
| 21 |
+
// Outcomes: correct | clarify_ok | refused | needs_review | wrong. A case is wrong if any turn is wrong,
|
| 22 |
+
// needs_review if any turn needs review, otherwise the last turn's outcome.
|
| 23 |
+
//
|
| 24 |
+
// (v2's header follows.)
|
| 25 |
+
// Grader v2 for eval-chat: every turn of a conversation, judged against a
|
| 26 |
+
// structured expectation, without an LLM judge. Pure: node:fs and node:path
|
| 27 |
+
// only, and only to read the ledger's names (data/ledger.csv, data/setup.json).
|
| 28 |
+
//
|
| 29 |
+
// Why v2 exists: v1 (grade.mjs, kept untouched and importable) accepts an
|
| 30 |
+
// answer when the gold figure occurs anywhere in the text. It passes wrong
|
| 31 |
+
// months, reversed signs, contradictory answers, dates mistaken for counts and
|
| 32 |
+
// "under budget" where "over" was expected, and it grades only the last turn.
|
| 33 |
+
//
|
| 34 |
+
// Expectations (expect.jsonl, one line per case, written by reference_turns.py):
|
| 35 |
+
//
|
| 36 |
+
// {"id": "followup-19", "turns": [
|
| 37 |
+
// {"q": "...", "gold": {"type": "money", "value": 196.23}, "measure": "spend",
|
| 38 |
+
// "scope": ["Restaurants & Bars"], "months": ["2026-04"]},
|
| 39 |
+
// {"q": "...", "gold": {"type": "money", "value": 27.74}, "measure": "difference",
|
| 40 |
+
// "months": ["2026-03", "2026-04"], "direction": {"more": "2026-03", "less": "2026-04"}}]}
|
| 41 |
+
//
|
| 42 |
+
// gold {type: money|percent|count|names|none|cannot|decline, value, alt?, all?} as v1
|
| 43 |
+
// measure what the figure is (documentation and reasons)
|
| 44 |
+
// scope names the answer is about; used by the ledger-denial check and in reasons
|
| 45 |
+
// months the months the answer may name; a month named outside the set is a WRONG
|
| 46 |
+
// period; null = the period is not a constraint
|
| 47 |
+
// unit money | count | percent | names | none | cannot | decline (defaults to gold.type)
|
| 48 |
+
// direction comparisons: {more: X, less: Y} with month keys, or {up: [names], down: [names]}
|
| 49 |
+
// verdict over | under (budget questions)
|
| 50 |
+
// rank 1 biggest, 2 second, -1 smallest
|
| 51 |
+
// accept "answer" (default) | "clarify": an appropriate clarification is clarify_ok
|
| 52 |
+
//
|
| 53 |
+
// A turn is {q, text, path, kind, strip, chips, receipt}. The saved baseline
|
| 54 |
+
// carries only q, text, path, kind and strip (strip possibly null), so every
|
| 55 |
+
// verdict comes from the visible text; strip/chips/receipt are the app's own
|
| 56 |
+
// verification and are EVIDENCE that can only add a failure, never grant a pass.
|
| 57 |
+
//
|
| 58 |
+
// Outcomes per turn, exactly one:
|
| 59 |
+
// correct the gold is met and no check fails
|
| 60 |
+
// clarify_ok an appropriate clarification or refusal where `accept` is "clarify"
|
| 61 |
+
// refused an unnecessary refusal, clarification or tangent with no false
|
| 62 |
+
// financial assertion (a privacy or navigation tangent with no figure)
|
| 63 |
+
// wrong an incorrect assertion: wrong value, measure, month/period, sign or
|
| 64 |
+
// direction, verdict, a $ figure for a count, a count for money, a wrong
|
| 65 |
+
// name, a directive where a decline is expected, an amount where there is
|
| 66 |
+
// nothing or the ledger cannot answer, two totals for one measure, a denial
|
| 67 |
+
// of a name the ledger holds
|
| 68 |
+
//
|
| 69 |
+
// Decision recorded here: an honest "cannot" where the gold is cannot is `correct` (the
|
| 70 |
+
// gold is met), so v2's correct count stays comparable with v1's right; clarify_ok is
|
| 71 |
+
// reserved for turns whose expectation carries accept: "clarify".
|
| 72 |
+
//
|
| 73 |
+
// Case outcome: `correct` only if the last turn is correct AND no earlier turn is wrong;
|
| 74 |
+
// an earlier wrong turn makes the case wrong; an earlier refused turn is recorded
|
| 75 |
+
// (earlier_refused) but does not block a correct final turn. first_error_turn is the
|
| 76 |
+
// 1-based index of the first wrong or refused turn, or null.
|
| 77 |
+
import fs from "node:fs";
|
| 78 |
+
import path from "node:path";
|
| 79 |
+
import {fileURLToPath} from "node:url";
|
| 80 |
+
|
| 81 |
+
const HERE = path.dirname(fileURLToPath(import.meta.url));
|
| 82 |
+
import {factsOf, factsMatching, groupMap, groupAtRank, forbiddenOf} from "./facts.mjs";
|
| 83 |
+
import {asDollars, moneyTokens} from "./money.mjs";
|
| 84 |
+
const r2 = (v) => Math.round(v * 100) / 100;
|
| 85 |
+
// ---- the household being graded (BB: useHousehold, then useCurrency per turn) -------------------------------------
|
| 86 |
+
export let TODAY = "2026-05-20";
|
| 87 |
+
let ALL_MONTHS = [], LEDGER_MONTHS = [], YEAR = 2026, CUR = "2026-05", FACTS = [], FX = null;
|
| 88 |
+
let HH = null, HOME = "USD", FACTS_BY = new Map(), FORBIDDEN = [];
|
| 89 |
+
const shiftMonth = (key, n) => { const [y, m] = key.split("-").map(Number); const d = new Date(Date.UTC(y, m - 1 + n, 1)); return `${d.getUTCFullYear()}-${String(d.getUTCMonth() + 1).padStart(2, "0")}`; };
|
| 90 |
+
|
| 91 |
+
// ---- the ledger's names (from the fixture, never from the app) -------------
|
| 92 |
+
export let CATEGORIES = [], DESCRIPTIONS = [], ACCOUNTS = [];
|
| 93 |
+
/** BB: grade against this household (oracle/oracle.mjs loadHousehold) */
|
| 94 |
+
export function useHousehold(hh) {
|
| 95 |
+
HH = hh; HOME = hh.home;
|
| 96 |
+
TODAY = hh.today; CUR = hh.cur; YEAR = Number(hh.cur.slice(0, 4));
|
| 97 |
+
ALL_MONTHS = hh.months.filter((m) => m.startsWith(String(YEAR)) && m <= CUR);
|
| 98 |
+
LEDGER_MONTHS = [...hh.months];
|
| 99 |
+
CATEGORIES = [...new Set([...hh.categories, ...hh.groups])];
|
| 100 |
+
// (a shop by every name it goes by: as a person says it and as its bank writes it)
|
| 101 |
+
DESCRIPTIONS = [...new Set(hh.merchants.flatMap((m) => [m, ...(hh.aliases[m] ?? [])]).map((d) => d.toUpperCase()))];
|
| 102 |
+
ACCOUNTS = hh.accounts.map((a) => a.name);
|
| 103 |
+
FACTS_BY = new Map();
|
| 104 |
+
FORBIDDEN = forbiddenOf(hh);
|
| 105 |
+
useCurrency(HOME);
|
| 106 |
+
return hh;
|
| 107 |
+
}
|
| 108 |
+
/** BB: the facts and rows of one currency (a turn is judged in its own currency) */
|
| 109 |
+
export function useCurrency(currency) {
|
| 110 |
+
if (!FACTS_BY.has(currency)) FACTS_BY.set(currency, factsOf(HH, currency));
|
| 111 |
+
FACTS = FACTS_BY.get(currency);
|
| 112 |
+
FX = {...HH, rows: HH.rows.filter((r) => r.currency === currency)};
|
| 113 |
+
return currency;
|
| 114 |
+
}
|
| 115 |
+
|
| 116 |
+
// ---- vocabularies ------------------------------------------------------------
|
| 117 |
+
const WORDS = ["zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine", "ten", "eleven", "twelve",
|
| 118 |
+
"thirteen", "fourteen", "fifteen", "sixteen", "seventeen", "eighteen", "nineteen", "twenty"];
|
| 119 |
+
const TIMES = {1: "once", 2: "twice"};
|
| 120 |
+
const MONTH_NUM = {january: 1, jan: 1, february: 2, feb: 2, march: 3, mar: 3, april: 4, apr: 4, may: 5, june: 6, jun: 6, july: 7, jul: 7,
|
| 121 |
+
august: 8, aug: 8, september: 9, sept: 9, sep: 9, october: 10, oct: 10, november: 11, nov: 11, december: 12, dec: 12};
|
| 122 |
+
const MONTH_RE = String.raw`(January|February|March|April|May|June|July|August|September|October|November|December|Jan|Feb|Mar|Apr|Jun|Jul|Aug|Sept|Sep|Oct|Nov|Dec)`;
|
| 123 |
+
const MONTH_TOKEN = new RegExp(String.raw`\b${MONTH_RE}\.?(?:\s+(\d{1,2})(?:st|nd|rd|th)?,?)?(?:\s+(\d{4}))?\b`, "gi");
|
| 124 |
+
const PREP_BEFORE = /\b(in|for|during|of|since|than|to|from|through|until|till|between|and|or|vs|versus|against|with|by|on|after|before)\s*$/i;
|
| 125 |
+
|
| 126 |
+
const DECLINE = new RegExp(
|
| 127 |
+
String.raw`(yours to (decide|judge|make|call|weigh)|your (call|decision|choice)|up to you|for you to (decide|judge|weigh)` +
|
| 128 |
+
String.raw`|(not|never) (something )?(i|we|pulse) (decide|recommend|make|tell|advise)|(does|do) not make (that|this) (call|decision)` +
|
| 129 |
+
String.raw`|(can't|cannot|won't|will not|don't|do not) (tell you (whether|what|which|to)|make (that|this|the) (decision|call)|recommend|advise|judge)` +
|
| 130 |
+
String.raw`|not (financial|investment) advice|isn't something i can (decide|recommend)|(help|let) you decide|the (decision|judgement|judgment|call) (is|stays) yours` +
|
| 131 |
+
String.raw`|(does not|doesn't|do not|don't|will not|won't|never|cannot|can't) (make|pick|name|choose|recommend|decide|give|tell|advise|judge)\b[^.]{0,40}` +
|
| 132 |
+
String.raw`(call|calls|decision|decisions|investment|investments|advice|pick|picks|which|whether|what to|too much|enough))`, "i");
|
| 133 |
+
const DIRECTIVE = new RegExp(
|
| 134 |
+
String.raw`\b(you should|you shouldn't|you should not|i recommend|i'd recommend|i would recommend|i'd suggest|i suggest|i would suggest` +
|
| 135 |
+
String.raw`|you need to|you must|cancel it|drop it|switch to|go ahead and|consider (cancelling|canceling|selling|buying|switching|moving|investing|paying))\b`, "i");
|
| 136 |
+
const CANNOT = new RegExp(
|
| 137 |
+
String.raw`(don't|do not|can't|cannot|isn't|is not|aren't|are not|no) (have|access|see|know|available|in (your|the) (ledger|data|transactions)|live|real-time|predict|forecast)` +
|
| 138 |
+
String.raw`|not (available|in your (ledger|data|transactions))|unable to|no (live|real-time|market) data|(can't|cannot) (look up|predict|forecast|access)` +
|
| 139 |
+
String.raw`|only (see|read|have|covers?|goes)|outside (your|the) (ledger|data)|doesn't (include|contain|have|go back|cover)|(starts|begins) (on|in) ` +
|
| 140 |
+
String.raw`|(cannot|can't|could not|couldn't) (work out|tell|know|say|see|find|give)|(does not|doesn't|do not|don't) (carry|track|hold|cover|reach)` +
|
| 141 |
+
String.raw`|(does not|doesn't|do not|don't|cannot|can't|won't|will not) (guess|predict|forecast|project|estimate)` +
|
| 142 |
+
String.raw`|(the )?ledger (only )?(covers|runs|starts|begins)|nothing (is )?(imported|recorded)` +
|
| 143 |
+
// BB: other systems' wordings
|
| 144 |
+
String.raw`|not something (?:i|we|pulse) (?:can|could) (?:look up|see|know|answer|check|find)|has no (?:figures|data|information|numbers) (?:about|on|for)|reads only your (?:own )?(?:ledger|transactions)|(?:isn't|is not|aren't|are not) (?:in|part of) (?:your|the) (?:ledger|data|transactions)`, "i");
|
| 145 |
+
const NOTHING = /\b(no|nothing|none|zero|didn't (spend|pay)|did not (spend|pay)|haven't (spent|paid)|have not (spent|paid))\b|\$0(\.00)?\b/i;
|
| 146 |
+
const ASSERTS_NOTHING = /^(no|nothing|none|zero)\b/i;
|
| 147 |
+
// BB: an answer that says the ledger holds no such rows ("There are no transactions matching...", "None of the
|
| 148 |
+
// transactions are listed for Amazon") where there are some: a false claim, whatever else it names
|
| 149 |
+
const NO_ROWS = /^there (?:are|is|were|was) no (?:transactions?|purchases?|charges?|rows?|spending|records?|payments?)\b|\bno (?:transactions?|purchases?|charges?|rows?) (?:found|listed|matching|related|recorded)\b|\bnone of the (?:transactions|purchases|charges)\b|\b(?:are|is|were|was) not found\b/i;
|
| 150 |
+
const DENIES = (t) => ASSERTS_NOTHING.test(t) || NO_ROWS.test(t);
|
| 151 |
+
const MONEY = /\$\s?(\d[\d,]*(?:\.\d{1,2})?)/g;
|
| 152 |
+
const PERCENT = /(\d+(?:\.\d+)?)\s?(%|percent)/gi;
|
| 153 |
+
const COUNT_SENTENCE = new RegExp(String.raw`\b(\d+|${WORDS.slice(1).join("|")}|once|twice)\s+(transactions?|times|trips|rides|rows|purchases|visits|charges|payments)\b`, "i");
|
| 154 |
+
|
| 155 |
+
const CLARIFY = [
|
| 156 |
+
/\bI am not certain what you are asking\b/i, /\bhas no category, merchant or account called\b/i,
|
| 157 |
+
/\bThere is no (?:account|category|merchant) called\b/i, /\bI could not tell what to leave out\b/i,
|
| 158 |
+
/\bI can take the last answer further\b/i, /\bMy last answer (?:gave no figure|came from a note)\b/i,
|
| 159 |
+
/\bnothing (?:there )?to take further\b/i, /\bdid you (?:want|mean)\b/i, /\bdo you mean\b/i,
|
| 160 |
+
/\bwhich (?:one|month|category|merchant|account) (?:do|did) you mean\b/i, /\bcompared? (?:with|to) what\b/i,
|
| 161 |
+
/\bI do not know what\b/i, /\bcould you (?:say|tell me|clarify)\b/i, /\bwhat (?:would you like|do you want) (?:me )?to compare\b/i,
|
| 162 |
+
// BB: "not sure" in the words of any system (Pulse Local's strict check, a model asking back)
|
| 163 |
+
/\bnot sure which\b/i, /\bI am not sure\b/i, /\bI'm not sure\b/i, /^Before I show a figure/i, /\bI can read this two ways\b/i,
|
| 164 |
+
/\bcan you (?:clarify|confirm|specify)\b/i, /\bplease (?:clarify|specify|confirm)\b/i, /\bwhich (?:one|month|period|account|card|shop|store|merchant|category) (?:do|did|would) you\b/i,
|
| 165 |
+
/\bdo you want (?:me to|the|to see)\b[^.?]*\bor\b/i
|
| 166 |
+
];
|
| 167 |
+
const TANGENT = [
|
| 168 |
+
/\bruns? (?:entirely )?on this (?:machine|mac|computer)\b/i, /\bEverything runs on\b/i, /\bnothing you import\b/i,
|
| 169 |
+
/\bThe screens are\b/i, /\bno written note\b/i, /\breviewed note\b/i, /\bbuilt-in list\b/i, /\bdoes not write definitions\b/i,
|
| 170 |
+
/\bnearest note I have\b/i, /\b50\/30\/20\b/, /\breference points\b/i, /\brule of thumb\b/i, /\bno internet\b/i, /\blive prices\b/i,
|
| 171 |
+
/\bdoes not make that call\b/i, /\bdoes not guess future figures\b/i
|
| 172 |
+
];
|
| 173 |
+
const BIGGEST_WORDS = /\b(biggest|largest|most|highest|top)\b/i;
|
| 174 |
+
const SMALLEST_WORDS = /\b(smallest|least|lowest|cheapest|bottom)\b/i;
|
| 175 |
+
const OVER_WORDS = /\b(over|past|above|exceed(?:ed|s)?|overspent|beyond)\b/i;
|
| 176 |
+
const UNDER_WORDS = /\b(under|below|within|left|remaining|to spare|room|short of)\b/i;
|
| 177 |
+
const MORE_WORDS = new Set(["more", "higher", "greater", "larger", "up", "bigger"]);
|
| 178 |
+
const LESS_WORDS = new Set(["less", "lower", "smaller", "down", "fewer"]);
|
| 179 |
+
|
| 180 |
+
// ---- small helpers -------------------------------------------------------------
|
| 181 |
+
const esc = (s) => s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
| 182 |
+
const plain = (t) => t.replace(/,/g, "");
|
| 183 |
+
const fmtMoney = (v) => "$" + v.toLocaleString("en-US", {minimumFractionDigits: 2, maximumFractionDigits: 2});
|
| 184 |
+
const amounts = (text) => [...text.matchAll(MONEY)].map((m) => Number(m[1].replace(/,/g, "")));
|
| 185 |
+
const percents = (text) => [...text.matchAll(PERCENT)].map((m) => Number(m[1]));
|
| 186 |
+
const monthLabel = (key) => {
|
| 187 |
+
const m = /^(\d{4})-(\d{2})$/.exec(key);
|
| 188 |
+
if (!m) return key;
|
| 189 |
+
const names = ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"];
|
| 190 |
+
return `${names[Number(m[2]) - 1]} ${m[1]}`;
|
| 191 |
+
};
|
| 192 |
+
|
| 193 |
+
/** strip the runner's trailing "[path: ... · N model tokens · M ms]" line; returns {text, path, kind} */
|
| 194 |
+
export function parseBracket(raw) {
|
| 195 |
+
const s = String(raw ?? "");
|
| 196 |
+
const m = /\n*\s*\[path:\s*([^\]·]+?)(?:\s*·[^\]]*)?\]\s*$/.exec(s);
|
| 197 |
+
if (!m) return {text: s.trim(), path: null, kind: null};
|
| 198 |
+
const [p, k] = m[1].split("/").map((x) => x.trim());
|
| 199 |
+
return {text: s.slice(0, m.index).trim(), path: p || null, kind: k || null};
|
| 200 |
+
}
|
| 201 |
+
|
| 202 |
+
function splitTables(text) {
|
| 203 |
+
const lines = text.split(/\r?\n/);
|
| 204 |
+
const table = lines.filter((l) => /^\s*\|/.test(l));
|
| 205 |
+
const prose = lines.filter((l) => !/^\s*\|/.test(l)).join("\n");
|
| 206 |
+
return {prose, table: table.join("\n")};
|
| 207 |
+
}
|
| 208 |
+
|
| 209 |
+
function hasMoney(text, v) {
|
| 210 |
+
const t = plain(text);
|
| 211 |
+
if (new RegExp(String.raw`(?<![\d.])` + esc(v.toFixed(2)) + String.raw`(?!\d)`).test(t)) return true;
|
| 212 |
+
// a whole-dollar rendering needs a currency mark ("$5,308", "5308 dollars"): a bare integer is not money
|
| 213 |
+
const r = String(Math.round(v));
|
| 214 |
+
return new RegExp(String.raw`(?:\$\s?${r}(?![\d]|\.\d)|(?<![\d.])${r}\s+dollars\b)`, "i").test(t);
|
| 215 |
+
}
|
| 216 |
+
|
| 217 |
+
/**
|
| 218 |
+
* THE GOLD AS THE ANSWER, not as a side figure (revision 2026-10-01, round 3 adjudication b-category-01): an occurrence of
|
| 219 |
+
* the gold in a DIFFERENCE role ("Leaving out Groceries, you spent $5,202.12 ...: $6,462.18 in all, $1,260.06 less", "$27.65
|
| 220 |
+
* more than December") answers only a question that asks for a difference. Elsewhere it is the size of something the
|
| 221 |
+
* answer left out or compared against, and is not the figure asked for.
|
| 222 |
+
*/
|
| 223 |
+
const DIFF_MEASURE = /^(?:difference|comparison|category_change|price_change|change)$/;
|
| 224 |
+
const DIFF_ASK = /\bhow much (?:more|less|higher|lower|bigger|smaller|up|down)\b|\bby how much\b|\bdifference\b|\bup or down\b|\bhigher or lower\b|\bcompared?\b|\bversus\b|\bvs\.?\b/i;
|
| 225 |
+
export function hasAnswerMoney(text, v, expect) {
|
| 226 |
+
const t = plain(text);
|
| 227 |
+
const diffOk = DIFF_MEASURE.test(expect?.measure ?? "") || DIFF_ASK.test(expect?.q ?? "");
|
| 228 |
+
const forms = [String.raw`(?<![\d.])` + esc(v.toFixed(2)) + String.raw`(?!\d)`, String.raw`\$\s?${String(Math.round(v))}(?![\d]|\.\d)`, String.raw`(?<![\d.])${String(Math.round(v))}\s+dollars\b`];
|
| 229 |
+
for (const f of forms) {
|
| 230 |
+
for (const m of t.matchAll(new RegExp(f, "gi"))) {
|
| 231 |
+
const after = t.slice(m.index + m[0].length, m.index + m[0].length + 24);
|
| 232 |
+
// ("$2,176.87 more came in than went out" is the NET figure in the answer's own phrasing, not a comparison)
|
| 233 |
+
const diffRole = /^\s+(?:less|more|lower|higher|fewer|cheaper|smaller|bigger)\b(?!\s+(?:came|went|was|were|kept|of it|in than|out than))/i.test(after);
|
| 234 |
+
if (diffRole && !diffOk) continue;
|
| 235 |
+
return true;
|
| 236 |
+
}
|
| 237 |
+
}
|
| 238 |
+
return false;
|
| 239 |
+
}
|
| 240 |
+
|
| 241 |
+
function hasPercent(text, v) {
|
| 242 |
+
const forms = new Set([v.toFixed(1), String(Math.round(v))]);
|
| 243 |
+
return [...forms].some((f) => new RegExp(String.raw`(?<![\d.])` + esc(f) + String.raw`\s?(%|percent)`, "i").test(plain(text)));
|
| 244 |
+
}
|
| 245 |
+
|
| 246 |
+
/** integers that could be a count: money, dates, percentages, years, "20 of 31 days" and timings removed first */
|
| 247 |
+
function countCandidates(text) {
|
| 248 |
+
const t = plain(text)
|
| 249 |
+
.replace(MONEY, " ").replace(/\b\d{4}-\d{2}-\d{2}\b/g, " ").replace(PERCENT, " ")
|
| 250 |
+
.replace(/\b\d+ of \d+ days\b/gi, " ").replace(/\b\d+ (?:model tokens|ms|seconds?|minutes?)\b/gi, " ")
|
| 251 |
+
.replace(/\b(19|20)\d\d\b/g, " ").replace(/\b\d+(?:st|nd|rd|th)\b/g, " ");
|
| 252 |
+
const nums = [...t.matchAll(/(?<![\d.])(\d+)(?![\d.]\d?)/g)].map((m) => Number(m[1]));
|
| 253 |
+
// (BB: "that one", "which one", "no one" are pronouns, never a count)
|
| 254 |
+
const words = [...t.replace(/\b(that|this|which|the|any|each|every|no|another|first|last|next|other|right|wrong|same|only)\s+one\b/gi, " ").matchAll(new RegExp(String.raw`\b(${WORDS.slice(1).join("|")}|once|twice)\b`, "gi"))]
|
| 255 |
+
.map((m) => { const w = m[1].toLowerCase(); return w === "once" ? 1 : w === "twice" ? 2 : WORDS.indexOf(w); });
|
| 256 |
+
return [...nums, ...words];
|
| 257 |
+
}
|
| 258 |
+
|
| 259 |
+
const namesCategory = (text) => CATEGORIES.filter((c) => new RegExp(String.raw`\b${esc(c)}\b`, "i").test(text));
|
| 260 |
+
const isClarify = (text) => CLARIFY.some((r) => r.test(text)) || TANGENT.some((r) => r.test(text));
|
| 261 |
+
|
| 262 |
+
/** every month the text names, as {key, phrase}; relative words resolve against TODAY */
|
| 263 |
+
export function monthsNamed(text) {
|
| 264 |
+
const out = [];
|
| 265 |
+
const push = (key, phrase) => out.push({key, phrase});
|
| 266 |
+
const tokens = [];
|
| 267 |
+
for (const m of text.matchAll(MONTH_TOKEN)) {
|
| 268 |
+
const word = m[1], year = m[3];
|
| 269 |
+
if (!year) {
|
| 270 |
+
const before = text.slice(Math.max(0, m.index - 24), m.index);
|
| 271 |
+
if (!PREP_BEFORE.test(before)) continue;
|
| 272 |
+
if (word.toLowerCase() === "may" && word[0] !== "M") continue;
|
| 273 |
+
}
|
| 274 |
+
const y = year ? Number(year) : YEAR;
|
| 275 |
+
tokens.push({key: `${y}-${String(MONTH_NUM[word.toLowerCase()]).padStart(2, "0")}`, phrase: m[0].trim(), start: m.index, end: m.index + m[0].length});
|
| 276 |
+
}
|
| 277 |
+
for (let i = 0; i < tokens.length; i++) {
|
| 278 |
+
push(tokens[i].key, tokens[i].phrase);
|
| 279 |
+
if (i + 1 < tokens.length) {
|
| 280 |
+
const between = text.slice(tokens[i].end, tokens[i + 1].start);
|
| 281 |
+
if (/^\s*(to|through|until|till|-|–|—)\s*$/i.test(between)) {
|
| 282 |
+
const [a, b] = [tokens[i].key, tokens[i + 1].key];
|
| 283 |
+
if (a.slice(0, 4) === b.slice(0, 4) && a < b) {
|
| 284 |
+
for (let mm = Number(a.slice(5)) + 1; mm < Number(b.slice(5)); mm++) push(`${a.slice(0, 4)}-${String(mm).padStart(2, "0")}`, `${tokens[i].phrase} to ${tokens[i + 1].phrase}`);
|
| 285 |
+
}
|
| 286 |
+
}
|
| 287 |
+
}
|
| 288 |
+
}
|
| 289 |
+
for (const m of text.matchAll(/\b(\d{4})-(\d{2})-\d{2}\b/g)) push(`${m[1]}-${m[2]}`, m[0]);
|
| 290 |
+
if (/\bthis month\b/i.test(text)) push(CUR, "this month");
|
| 291 |
+
if (/\blast month\b/i.test(text)) push(shiftMonth(CUR, -1), "last month");
|
| 292 |
+
if (/\bnext month\b/i.test(text)) push(shiftMonth(CUR, 1), "next month");
|
| 293 |
+
if (new RegExp(String.raw`\b(last year|in ${YEAR - 1}|during ${YEAR - 1}|for ${YEAR - 1})\b`, "i").test(text)) push(String(YEAR - 1), "last year");
|
| 294 |
+
if (new RegExp(String.raw`\b(this year|year to date|year-to-date|ytd|since the start of the year|so far this year|in ${YEAR}|during ${YEAR}|for ${YEAR})\b`, "i").test(text)) ALL_MONTHS.forEach((k) => push(k, "this year"));
|
| 295 |
+
if (/\b(everything imported|across everything|all[- ]time|all months|every month|the whole ledger|whole ledger|since january|(?:your |the )?whole history)\b/i.test(text)) LEDGER_MONTHS.forEach((k) => push(k, "everything imported"));
|
| 296 |
+
const quarter = (n, label) => [0, 1, 2].forEach((i) => push(`${YEAR}-${String((n - 1) * 3 + 1 + i).padStart(2, "0")}`, label));
|
| 297 |
+
if (/\b(first quarter|q1)\b/i.test(text)) quarter(1, "first quarter");
|
| 298 |
+
if (/\b(second quarter|q2)\b/i.test(text)) quarter(2, "second quarter");
|
| 299 |
+
if (/\b(third quarter|q3)\b/i.test(text)) quarter(3, "third quarter");
|
| 300 |
+
return out;
|
| 301 |
+
}
|
| 302 |
+
|
| 303 |
+
/**
|
| 304 |
+
* THE §8 LABEL (revision 2026-10-02, round-5 adjudication r5a-fu-refund-01): a question about one merchant that names no
|
| 305 |
+
* period of its own is answered over everything imported (HANDOVER-EVALUATOR.md §8). Inside a chain whose expectation
|
| 306 |
+
* carries the chain's month, that label is the rule, not a wrong period, but ONLY when the figure the answer gives is
|
| 307 |
+
* also the merchant's true figure over everything imported: a month's figure labelled as the whole ledger stays wrong.
|
| 308 |
+
*/
|
| 309 |
+
function wholeLedgerLabelOk(expect, text) {
|
| 310 |
+
if (!Array.isArray(expect.months) || monthsNamed(expect.q ?? "").length) return false;
|
| 311 |
+
if (!/\b(everything imported|across everything|(?:your |the )?whole history|all[- ]time)\b/i.test(text)) return false;
|
| 312 |
+
const g = expect.gold;
|
| 313 |
+
if (g.type !== "money") return false;
|
| 314 |
+
const all = [...LEDGER_MONTHS].sort();
|
| 315 |
+
const wholeSpan = (f) => Array.isArray(f.months) && f.months.length === all.length && f.months.every((k, i) => k === all[i]);
|
| 316 |
+
return [g.value, ...(g.alt ?? [])].some((v) => hasMoney(text, v) && FACTS.some((f) => /^merchant_/.test(f.kind) && wholeSpan(f) && Math.abs(f.value - Math.abs(v)) < 0.005));
|
| 317 |
+
}
|
| 318 |
+
|
| 319 |
+
function periodCheck(expect, text, where, wholeOk = false) {
|
| 320 |
+
if (!Array.isArray(expect.months)) return null;
|
| 321 |
+
// (a month BEFORE the ledger's first month holds no data and asserts nothing: "January 2026 to November 2026" for
|
| 322 |
+
// "so far this year" on a ledger that starts in March names the question's own span; revision 2026-09-30,
|
| 323 |
+
// holdout adjudication h-basic-01)
|
| 324 |
+
const first = LEDGER_MONTHS.length ? [...LEDGER_MONTHS].sort()[0] : null;
|
| 325 |
+
// (only the START of a span that runs into the expected months: "January 2026 to November 2026"; a single month
|
| 326 |
+
// before the ledger, "$15.60 in December 2025", is still a claim about a wrong month)
|
| 327 |
+
const spanStart = (m) => first != null && m.key < first && (/\s(?:to|through|until|-|–)\s/i.test(m.phrase) || new RegExp(`${m.phrase.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}\\s+(?:to|through|until|-|–)\\s+`, "i").test(text));
|
| 328 |
+
const outside = monthsNamed(text).filter((m) => !expect.months.includes(m.key) && !spanStart(m) && !(wholeOk && m.phrase === "everything imported"));
|
| 329 |
+
if (!outside.length) return null;
|
| 330 |
+
const phrases = [...new Set(outside.map((m) => m.phrase))].slice(0, 4).join(", ");
|
| 331 |
+
return `${where} names ${phrases}, outside the expected period (${expect.months.map(monthLabel).join(", ")})`;
|
| 332 |
+
}
|
| 333 |
+
|
| 334 |
+
/** direction findings: {more, less} in month keys, or {name, dir} for price changes */
|
| 335 |
+
function directionFindings(text) {
|
| 336 |
+
const found = [];
|
| 337 |
+
const key = (word, year) => `${year ? Number(year) : YEAR}-${String(MONTH_NUM[word.toLowerCase()]).padStart(2, "0")}`;
|
| 338 |
+
const re1 = new RegExp(String.raw`\b(more|higher|greater|larger|bigger|up|fewer|less|lower|smaller|down)\s+than\s+(?:in\s+)?${MONTH_RE}(?:\s+(\d{4}))?\b`, "gi");
|
| 339 |
+
for (const m of text.matchAll(re1)) found.push(MORE_WORDS.has(m[1].toLowerCase()) ? {less: key(m[2], m[3])} : {more: key(m[2], m[3])});
|
| 340 |
+
const re2 = new RegExp(String.raw`\b${MONTH_RE}(?:\s+(\d{4}))?\s+(?:is|was|came in|comes in|ran|runs)?\s*(?:\$[\d,.]+\s*)?(?:\(\d+%\)\s*)?(more|higher|greater|larger|bigger|up|fewer|less|lower|smaller|down)\b(?:\s+than|\s+from|\s+on)?\s+(?:\$[\d,.]+\s+)?(?:in\s+)?${MONTH_RE}(?:\s+(\d{4}))?\b`, "gi");
|
| 341 |
+
for (const m of text.matchAll(re2)) {
|
| 342 |
+
const a = key(m[1], m[2]), b = key(m[4], m[5]);
|
| 343 |
+
found.push(MORE_WORDS.has(m[3].toLowerCase()) ? {more: a, less: b} : {less: a, more: b});
|
| 344 |
+
}
|
| 345 |
+
for (const m of text.matchAll(new RegExp(String.raw`\b(no difference|the same as)\s+(?:in\s+)?${MONTH_RE}`, "gi"))) found.push({equal: true, phrase: m[0]});
|
| 346 |
+
for (const m of text.matchAll(/\b([A-Z][A-Za-z.&' ]{1,30}?)\s+(went up|rose|increased|climbed|went down|fell|dropped|decreased)\b/g)) {
|
| 347 |
+
found.push({name: m[1].trim(), dir: /up|rose|increased|climbed/i.test(m[2]) ? "up" : "down"});
|
| 348 |
+
}
|
| 349 |
+
return found;
|
| 350 |
+
}
|
| 351 |
+
|
| 352 |
+
function directionCheck(expect, text) {
|
| 353 |
+
const d = expect.direction;
|
| 354 |
+
if (!d) return null;
|
| 355 |
+
for (const f of directionFindings(text)) {
|
| 356 |
+
if (f.equal) return `says "${f.phrase}" where ${monthLabel(d.more)} should be more than ${monthLabel(d.less)}`;
|
| 357 |
+
if (d.more && f.less === d.more) return `puts ${monthLabel(d.more)} on the smaller side; it should be more than ${monthLabel(d.less)}`;
|
| 358 |
+
if (d.less && f.more === d.less) return `puts ${monthLabel(d.less)} on the larger side; it should be less than ${monthLabel(d.more)}`;
|
| 359 |
+
if (f.name) {
|
| 360 |
+
const hit = (list) => (list ?? []).find((n) => new RegExp(String.raw`\b${esc(n)}`, "i").test(f.name));
|
| 361 |
+
if (f.dir === "down" && hit(d.up)) return `says ${f.name} went down; it went up`;
|
| 362 |
+
if (f.dir === "up" && hit(d.down)) return `says ${f.name} went up; it went down`;
|
| 363 |
+
}
|
| 364 |
+
}
|
| 365 |
+
return null;
|
| 366 |
+
}
|
| 367 |
+
|
| 368 |
+
function verdictCheck(expect, prose) {
|
| 369 |
+
if (!expect.verdict) return null;
|
| 370 |
+
const sentences = prose.split(/(?<=[.!?])\s+|\n+/).filter(Boolean);
|
| 371 |
+
const scoped = sentences.filter((s) => (expect.scope ?? []).some((n) => new RegExp(String.raw`\b${esc(n.split(" ")[0])}`, "i").test(s)));
|
| 372 |
+
const t = (scoped.length ? scoped : sentences).join(" ");
|
| 373 |
+
const over = OVER_WORDS.test(t), under = UNDER_WORDS.test(t);
|
| 374 |
+
if (expect.verdict === "over" && under && !over) return "says under budget / left where over budget is expected";
|
| 375 |
+
if (expect.verdict === "under" && over && !under) return "says over budget where under budget / left is expected";
|
| 376 |
+
return null;
|
| 377 |
+
}
|
| 378 |
+
|
| 379 |
+
function rankCheck(expect, prose) {
|
| 380 |
+
if (!expect.rank) return null;
|
| 381 |
+
const big = BIGGEST_WORDS.test(prose), small = SMALLEST_WORDS.test(prose);
|
| 382 |
+
// (the direction asked is expect.direction when the expectation states it: the fresh set writes the smallest as
|
| 383 |
+
// rank 1 with direction "smallest", and a correct "the smallest ... was $5.13" had been marked wrong, 2026-09-29)
|
| 384 |
+
const wantSmall = expect.direction === "smallest" || (expect.direction == null && expect.rank === -1);
|
| 385 |
+
if (wantSmall && big && !small) return "claims the biggest where the smallest was asked";
|
| 386 |
+
if (!wantSmall && expect.rank > 0 && small && !big) return "claims the smallest where the biggest was asked";
|
| 387 |
+
return null;
|
| 388 |
+
}
|
| 389 |
+
|
| 390 |
+
const CLAIM_CLASSES = [
|
| 391 |
+
["budget", /\b(over the plan|over target|past it|over budget|planned|budget|left|remaining|\bover\b)\b/i],
|
| 392 |
+
["difference", /\b(more than|less than|difference|higher than|lower than)\b/i],
|
| 393 |
+
["refund", /\b(refund|refunded|came back|returned)\b/i],
|
| 394 |
+
["average", /\b(average|on average)\b/i],
|
| 395 |
+
["income", /\b(came in|earned|income|money in)\b/i],
|
| 396 |
+
["kept", /\b(kept|left over|saved)\b/i],
|
| 397 |
+
["balance", /\b(net worth|owe|owed|balance|cash)\b/i],
|
| 398 |
+
["spend", /\b(spent|spend|spending|cost|costs|came to|comes to|total|totalled|totaled|in all|paid)\b/i]
|
| 399 |
+
];
|
| 400 |
+
|
| 401 |
+
/** two single-figure sentences that assert different figures for the same measure and scope */
|
| 402 |
+
function contradictionCheck(prose) {
|
| 403 |
+
const claims = [];
|
| 404 |
+
for (const s of prose.split(/(?<=[.!?])\s+|\n+/)) {
|
| 405 |
+
const amts = amounts(s);
|
| 406 |
+
if (amts.length !== 1) continue;
|
| 407 |
+
const cls = CLAIM_CLASSES.find(([, re]) => re.test(s));
|
| 408 |
+
if (!cls) continue;
|
| 409 |
+
const scope = namesCategory(s).map((c) => c.toLowerCase()).sort().join("+");
|
| 410 |
+
const months = [...new Set(monthsNamed(s).map((m) => m.key))].sort().join("+");
|
| 411 |
+
claims.push({cls: cls[0], scope, months, value: amts[0], s: s.trim()});
|
| 412 |
+
}
|
| 413 |
+
for (let i = 0; i < claims.length; i++) for (let j = i + 1; j < claims.length; j++) {
|
| 414 |
+
const a = claims[i], b = claims[j];
|
| 415 |
+
if (a.cls !== b.cls || a.scope !== b.scope || a.value === b.value) continue;
|
| 416 |
+
if (a.months && b.months && a.months !== b.months) continue;
|
| 417 |
+
return `states two different ${a.cls} figures for the same thing: ${fmtMoney(a.value)} and ${fmtMoney(b.value)}`;
|
| 418 |
+
}
|
| 419 |
+
return null;
|
| 420 |
+
}
|
| 421 |
+
|
| 422 |
+
/** a false statement about the ledger: denying a merchant, category or account it holds */
|
| 423 |
+
function denialCheck(expect, text) {
|
| 424 |
+
const inLedger = (name, kinds) => {
|
| 425 |
+
const n = name.trim();
|
| 426 |
+
if (!n) return null;
|
| 427 |
+
if (kinds.includes("merchant") && DESCRIPTIONS.some((d) => d.includes(n.toUpperCase()))) return `merchant ${n}`;
|
| 428 |
+
if (kinds.includes("category") && CATEGORIES.some((c) => c.toLowerCase() === n.toLowerCase())) return `category ${n}`;
|
| 429 |
+
if (kinds.includes("account") && ACCOUNTS.some((a) => a.toLowerCase() === n.toLowerCase())) return `account ${n}`;
|
| 430 |
+
return null;
|
| 431 |
+
};
|
| 432 |
+
const kindsOf = (phrase) => ["merchant", "category", "account"].filter((k) => new RegExp(k, "i").test(phrase));
|
| 433 |
+
for (const m of text.matchAll(/\bno ((?:category|merchant|account)(?:, (?:category|merchant|account))*(?: or (?:category|merchant|account))?) called ["“]([^"”]+)["”]/gi)) {
|
| 434 |
+
const hit = inLedger(m[2], kindsOf(m[1]));
|
| 435 |
+
if (hit) return `denies a name the ledger holds (${hit})`;
|
| 436 |
+
}
|
| 437 |
+
const m2 = /\b(?:is not|isn't|not) (?:a )?((?:merchant|category|account)(?:,? (?:or|and) (?:a )?(?:merchant|category|account))*)\b[^.]*\bin (?:your|the) ledger\b/i.exec(text);
|
| 438 |
+
if (m2) for (const n of expect.scope ?? []) {
|
| 439 |
+
const hit = inLedger(n, kindsOf(m2[1]));
|
| 440 |
+
if (hit) return `denies a name the ledger holds (${hit})`;
|
| 441 |
+
}
|
| 442 |
+
return null;
|
| 443 |
+
}
|
| 444 |
+
|
| 445 |
+
/** the app's own worksheet strip is evidence: a wrong period or unit there is an assertion the person saw */
|
| 446 |
+
function evidenceCheck(expect, turn, wholeOk = false) {
|
| 447 |
+
const notes = [];
|
| 448 |
+
// (a LATEST charge is searched over everything imported and dated in its answer: the strip's span is where it was
|
| 449 |
+
// looked for, not the period it asserts; the prose's date is checked instead, 2026-09-29)
|
| 450 |
+
if (turn.strip && !/latest/.test(String(expect.measure ?? ""))) {
|
| 451 |
+
const p = periodCheck(expect, turn.strip, "the worksheet strip", wholeOk);
|
| 452 |
+
if (p) notes.push(p);
|
| 453 |
+
const unit = expect.unit ?? expect.gold.type;
|
| 454 |
+
if (/^count of\b/i.test(turn.strip) && unit === "money") notes.push("the worksheet strip is a count where money was asked");
|
| 455 |
+
}
|
| 456 |
+
return notes;
|
| 457 |
+
}
|
| 458 |
+
|
| 459 |
+
// ---- the per-turn judge ------------------------------------------------------------
|
| 460 |
+
/** @returns {{outcome: "correct"|"clarify_ok"|"refused"|"wrong", reason: string, notes: string[]}} */
|
| 461 |
+
function judgeTurnV2(expect, turn) {
|
| 462 |
+
const gold = expect.gold;
|
| 463 |
+
const {text} = parseBracket(turn?.text ?? "");
|
| 464 |
+
const notes = [];
|
| 465 |
+
const done = (outcome, reason) => ({outcome, reason: [reason, ...notes].join("; "), notes});
|
| 466 |
+
if (!text) return done("refused", "empty answer");
|
| 467 |
+
const {prose, table} = splitTables(text);
|
| 468 |
+
const amts = amounts(text), proseAmts = amounts(prose), pcts = percents(text);
|
| 469 |
+
const clarify = isClarify(text);
|
| 470 |
+
const wantsClarify = expect.accept === "clarify";
|
| 471 |
+
const wholeOk = wholeLedgerLabelOk(expect, text);
|
| 472 |
+
const period = periodCheck(expect, text, "the answer", wholeOk);
|
| 473 |
+
const evidence = evidenceCheck(expect, turn ?? {}, wholeOk);
|
| 474 |
+
const failAfter = () => {
|
| 475 |
+
// checks that can still make a value-correct answer wrong
|
| 476 |
+
const fails = [period, directionCheck(expect, text), verdictCheck(expect, prose), rankCheck(expect, prose), contradictionCheck(prose), ...evidence].filter(Boolean);
|
| 477 |
+
return fails.length ? fails.join("; ") : null;
|
| 478 |
+
};
|
| 479 |
+
const wrongWith = (reason) => done("wrong", [reason, period].filter(Boolean).join("; "));
|
| 480 |
+
|
| 481 |
+
switch (gold.type) {
|
| 482 |
+
// BB: a figure for each month (or each currency): every one must be stated
|
| 483 |
+
case "money_set": {
|
| 484 |
+
const missing = gold.values.filter((v) => !hasMoney(text, v));
|
| 485 |
+
if (!missing.length) {
|
| 486 |
+
const f = failAfter();
|
| 487 |
+
return f ? done("wrong", `states every figure but ${f}`) : done("correct", `states all ${gold.values.length} figures`);
|
| 488 |
+
}
|
| 489 |
+
if (clarify && !amts.length) return {...done(wantsClarify ? "clarify_ok" : "refused", "asks for clarification or gives a note with no figure"), noReview: true};
|
| 490 |
+
if (DENIES(text) && !amts.length) return wrongWith(`says no/nothing; there are ${gold.values.length} figures`);
|
| 491 |
+
// (a table with a figure that is none of the ones asked for is a wrong table; a total of the asked figures, or
|
| 492 |
+
// another true figure of the same scope placed by the audit, is not counted against it)
|
| 493 |
+
const sumAll = r2(gold.values.reduce((a, b) => a + b, 0));
|
| 494 |
+
const strays = [...new Set(amts)].filter((a) => !gold.values.some((v) => Math.abs(v - a) < 0.005 || Math.round(v) === a) && Math.abs(a - sumAll) >= 0.005);
|
| 495 |
+
if (strays.length) return wrongWith(`states ${strays.slice(0, 4).map(fmtMoney).join(", ")}, not the figures asked for (${gold.values.map(fmtMoney).join(", ")})`);
|
| 496 |
+
if (missing.length < gold.values.length) return {...done("refused", `states ${gold.values.length - missing.length} of ${gold.values.length} figures; missing ${missing.map(fmtMoney).join(", ")}`), noReview: true};
|
| 497 |
+
return done("refused", "no figure stated");
|
| 498 |
+
}
|
| 499 |
+
// BB: a question about using the app: every concept named, nothing forbidden, no ledger figure
|
| 500 |
+
case "howto": {
|
| 501 |
+
const words = (g) => g.some((w) => new RegExp(String.raw`\b${esc(w)}`, "i").test(text));
|
| 502 |
+
const bad = (gold.forbid ?? []).filter((w) => new RegExp(String.raw`\b${esc(w)}`, "i").test(text) && !new RegExp(String.raw`\b(?:not|never|no|isn't|is not|doesn't|does not|nothing)\b[^.]{0,40}\b${esc(w)}`, "i").test(text));
|
| 503 |
+
if (bad.length) return {...done("wrong", `says ${bad.join(", ")}, which the app's help contradicts`), noReview: true};
|
| 504 |
+
const missing = gold.concepts.filter((g) => !words(g));
|
| 505 |
+
if (!missing.length) return {...done("correct", "names every step the help names"), noReview: true};
|
| 506 |
+
if (clarify) return {...done("refused", "asks back"), noReview: true};
|
| 507 |
+
return {...done("refused", `does not name ${missing.map((g) => g.join("/")).join(" + ")}`), noReview: true};
|
| 508 |
+
}
|
| 509 |
+
case "clarify": {
|
| 510 |
+
if (amts.length) return wrongWith(`states ${amts.slice(0, 3).map(fmtMoney).join(", ")} where the question needs a clarification`);
|
| 511 |
+
return {...done("clarify_ok", "asks back or answers with no figure"), noReview: true};
|
| 512 |
+
}
|
| 513 |
+
case "cannot": {
|
| 514 |
+
if (DIRECTIVE.test(text)) return done("wrong", "gives an instruction");
|
| 515 |
+
if (amts.length) return done("wrong", `states ${amts.map(fmtMoney).join(", ")} for something the ledger cannot answer`);
|
| 516 |
+
if (CANNOT.test(text)) return done("correct", "says the ledger cannot answer");
|
| 517 |
+
return done("refused", "does not say it cannot answer");
|
| 518 |
+
}
|
| 519 |
+
case "decline": {
|
| 520 |
+
if (DIRECTIVE.test(text)) return done("wrong", "gives an instruction");
|
| 521 |
+
if (DECLINE.test(text)) return done("correct", "leaves the decision to the person");
|
| 522 |
+
if (wantsClarify && clarify && !amts.length) return done("clarify_ok", "asks what to compare with instead of judging");
|
| 523 |
+
return done("refused", "neither declines nor directs");
|
| 524 |
+
}
|
| 525 |
+
case "none": {
|
| 526 |
+
// (a "none" that names the rows it found as ANOTHER kind is still none: "No income at pixloft in May 2026: its
|
| 527 |
+
// one row, $15 on 2026-05-01, is a purchase" printed the purchase it is not; revision 2026-10-02, round-4
|
| 528 |
+
// adjudication sf-both-02. Only an amount in a clause that labels it another kind is excused, and only after
|
| 529 |
+
// the answer opens by saying there is nothing)
|
| 530 |
+
// (the other kind is measure-aware: money in asked, the rows are purchases or charges; spending asked, the
|
| 531 |
+
// rows are deposits or money in; "which is income" never excuses an amount where income was asked)
|
| 532 |
+
const askedIn = /receiv|income|payout|paid_me|deposit|money_in/i.test(String(expect.measure ?? ""));
|
| 533 |
+
const askedOut = /spend|charge|purchase|money_out|cost/i.test(String(expect.measure ?? ""));
|
| 534 |
+
const kinds = askedIn ? "purchases?|charges?|transfers?|card payments?" : askedOut ? "deposits?|money in|income|transfers?" : null;
|
| 535 |
+
const OTHER_KIND = kinds == null ? /$^/ : new RegExp(String.raw`\b(?:is|are|was|were)\s+(?:a\s+|an\s+|all\s+)?(?:${kinds})\b|\bwhich is (?:${kinds}),? not\b`, "i");
|
| 536 |
+
const otherKindAmts = ASSERTS_NOTHING.test(text.trim()) ? text.split(/(?<=[.;])\s+/).filter((sn) => OTHER_KIND.test(sn)).flatMap((sn) => amounts(sn)) : [];
|
| 537 |
+
const positive = amts.filter((a) => a > 0 && !otherKindAmts.some((x) => Math.abs(x - a) < 0.005));
|
| 538 |
+
if (positive.length) return wrongWith(`states ${positive.map(fmtMoney).join(", ")} where there is nothing`);
|
| 539 |
+
if (NOTHING.test(text)) {
|
| 540 |
+
const f = failAfter();
|
| 541 |
+
return f ? done("wrong", f) : done("correct", "says there is nothing");
|
| 542 |
+
}
|
| 543 |
+
if (clarify) return done(wantsClarify ? "clarify_ok" : "refused", "asks for clarification");
|
| 544 |
+
return done("refused", "does not say there is nothing");
|
| 545 |
+
}
|
| 546 |
+
case "money": {
|
| 547 |
+
const values = [gold.value, ...(gold.alt ?? [])];
|
| 548 |
+
const denial = denialCheck(expect, text);
|
| 549 |
+
if (denial) return wrongWith(denial);
|
| 550 |
+
const hitProse = values.find((v) => hasAnswerMoney(prose, v, expect));
|
| 551 |
+
if (hitProse != null) {
|
| 552 |
+
const f = failAfter();
|
| 553 |
+
return f ? done("wrong", `states ${fmtMoney(hitProse)} but ${f}`) : done("correct", `states ${fmtMoney(hitProse)}`);
|
| 554 |
+
}
|
| 555 |
+
const hitTable = values.find((v) => hasMoney(table, v));
|
| 556 |
+
if (hitTable != null) return wrongWith(`${fmtMoney(hitTable)} appears only as a table row; the prose asserts ${proseAmts.length ? proseAmts.map(fmtMoney).join(", ") : "no figure"}`);
|
| 557 |
+
if (clarify && !amts.length) return done(wantsClarify ? "clarify_ok" : "refused", "asks for clarification or gives a note with no figure");
|
| 558 |
+
if (DENIES(text) && !amts.length) return wrongWith(`says no/nothing; the answer is ${fmtMoney(gold.value)}`);
|
| 559 |
+
if (amts.length) return wrongWith(`states ${[...new Set(amts)].slice(0, 6).map(fmtMoney).join(", ")}, not ${fmtMoney(gold.value)}`);
|
| 560 |
+
if (pcts.length) return wrongWith(`states a percentage (${pcts[0]}%), not ${fmtMoney(gold.value)}`);
|
| 561 |
+
if (COUNT_SENTENCE.test(prose)) return wrongWith(`states a count where money was asked (${COUNT_SENTENCE.exec(prose)[0]}), not ${fmtMoney(gold.value)}`);
|
| 562 |
+
return done("refused", "no figure stated");
|
| 563 |
+
}
|
| 564 |
+
case "percent": {
|
| 565 |
+
const values = [gold.value, ...(gold.alt ?? [])];
|
| 566 |
+
const hit = values.find((v) => hasPercent(text, v));
|
| 567 |
+
if (hit != null) {
|
| 568 |
+
const f = failAfter();
|
| 569 |
+
return f ? done("wrong", `states ${hit}% but ${f}`) : done("correct", `states ${hit}%`);
|
| 570 |
+
}
|
| 571 |
+
if (clarify && !amts.length && !pcts.length) return done(wantsClarify ? "clarify_ok" : "refused", "asks for clarification or gives a note with no figure");
|
| 572 |
+
if (pcts.length) return wrongWith(`states ${pcts.slice(0, 4).map((p) => p + "%").join(", ")}, not ${gold.value}%`);
|
| 573 |
+
if (amts.length) return wrongWith(`states a money figure (${amts.slice(0, 3).map(fmtMoney).join(", ")}) where a rate (${gold.value}%) was asked`);
|
| 574 |
+
if (DENIES(text)) return wrongWith(`says no/nothing, not ${gold.value}%`);
|
| 575 |
+
return done("refused", "no figure stated");
|
| 576 |
+
}
|
| 577 |
+
case "count": {
|
| 578 |
+
const denial = denialCheck(expect, text);
|
| 579 |
+
if (denial) return wrongWith(denial);
|
| 580 |
+
const cands = countCandidates(text);
|
| 581 |
+
// (BB: a count's accepted alternatives, e.g. the purchases with their refund rows counted too)
|
| 582 |
+
const hitCount = [gold.value, ...(gold.alt ?? [])].find((v) => cands.includes(v));
|
| 583 |
+
if (hitCount != null) {
|
| 584 |
+
const f = failAfter();
|
| 585 |
+
return f ? done("wrong", `states ${hitCount} but ${f}`) : done("correct", `states ${hitCount}`);
|
| 586 |
+
}
|
| 587 |
+
if (clarify && !amts.length && !cands.length) return done(wantsClarify ? "clarify_ok" : "refused", "asks for clarification or gives a note with no figure");
|
| 588 |
+
if (cands.length) return wrongWith(`states ${[...new Set(cands)].slice(0, 4).join(", ")}, not ${gold.value}`);
|
| 589 |
+
if (amts.length) return wrongWith(`states a money figure (${amts.slice(0, 3).map(fmtMoney).join(", ")}) where a count (${gold.value}) was asked`);
|
| 590 |
+
if (DENIES(text)) return wrongWith(`says no/nothing, not ${gold.value}`);
|
| 591 |
+
return done("refused", "no number stated");
|
| 592 |
+
}
|
| 593 |
+
case "names": {
|
| 594 |
+
// (a category named at its GROUP is accepted for the leaf, the owner's rule for category answers: "Housing"
|
| 595 |
+
// for Rent/Mortgage; revision 2026-09-30, holdout adjudication h-clarify-01)
|
| 596 |
+
const groups0 = groupMap();
|
| 597 |
+
// (a ranked leaf gold also accepts the GROUP at that rank of the group ranking, with the leaves the question
|
| 598 |
+
// left out removed: a true group ranking at rank 2 or 3, or a smallest group, had failed because only the
|
| 599 |
+
// gold leaf's own group was accepted; revision 2026-10-02, round-4 adjudication of-fu-next-01, rc-fu-small-01)
|
| 600 |
+
const rankAbs = expect.rank != null ? Math.abs(expect.rank) : null;
|
| 601 |
+
const smallest = expect.direction === "smallest" || expect.rank === -1;
|
| 602 |
+
const atRank = rankAbs != null && gold.all.length === 1 && FX != null
|
| 603 |
+
? (Array.isArray(gold.all[0]) ? gold.all[0] : [gold.all[0]]).map((n) => groupAtRank(FX, expect.months, n, rankAbs, smallest)).filter(Boolean)
|
| 604 |
+
: [];
|
| 605 |
+
const groups = new Map([...groups0].map(([leaf, g]) => [leaf, g]));
|
| 606 |
+
const groupAlts = (n) => [groups.get(n), ...(atRank.length > 0 && gold.all.length === 1 ? atRank : [])].filter(Boolean);
|
| 607 |
+
const missing = gold.all.map((a) => (Array.isArray(a) ? a : [a])).map((alts) => [...alts, ...alts.flatMap(groupAlts)])
|
| 608 |
+
.filter((alts) => !alts.some((n) => new RegExp(String.raw`\b${esc(n)}`, "i").test(text)));
|
| 609 |
+
const want = gold.all.map((a) => (Array.isArray(a) ? a : [a])).map((a) => a[0]).join(" and ");
|
| 610 |
+
const denial = denialCheck(expect, text);
|
| 611 |
+
if (denial) return wrongWith(denial);
|
| 612 |
+
// an opposite verdict is an assertion, whatever names it carries ("under budget everywhere" where two
|
| 613 |
+
// categories are over): wrong, never a refusal
|
| 614 |
+
const verdictFail = verdictCheck(expect, prose);
|
| 615 |
+
if (verdictFail) return wrongWith(verdictFail);
|
| 616 |
+
// (a TOP answer, one name at rank 1, must say the name in its prose: a name only in a table's column is an
|
| 617 |
+
// attribute of a row, not the answer, revision 2026-10-01, round 3 adjudication c-rank-01, a model reply
|
| 618 |
+
// listing purchases with their categories for "which category took the most")
|
| 619 |
+
const topOnly = gold.all.length === 1 && expect.rank === 1;
|
| 620 |
+
const missingProse = topOnly ? gold.all.map((a) => (Array.isArray(a) ? a : [a])).map((alts) => [...alts, ...alts.flatMap(groupAlts)])
|
| 621 |
+
.filter((alts) => !alts.some((n) => new RegExp(String.raw`\b${esc(n)}`, "i").test(prose))) : [];
|
| 622 |
+
if (NO_ROWS.test(text)) return wrongWith(`says there are no such rows; the answer is ${want}`);
|
| 623 |
+
if (!missing.length && missingProse.length) return wrongWith(`names ${want} only in a table column; the prose does not name it`);
|
| 624 |
+
if (!missing.length) {
|
| 625 |
+
const f = failAfter();
|
| 626 |
+
return f ? done("wrong", `names ${want} but ${f}`) : done("correct", `names ${want}`);
|
| 627 |
+
}
|
| 628 |
+
// (BB: another name of the same kind is a wrong name: a month for "which month", a shop for "which shop")
|
| 629 |
+
const goldNames = gold.all.flat().map((n) => n.toLowerCase());
|
| 630 |
+
const otherMonths = expect.measure === "top_month" ? monthsNamed(text).filter((m) => !goldNames.some((g) => g.startsWith(monthLabel(m.key).toLowerCase().split(" ")[0]))).map((m) => monthLabel(m.key)) : [];
|
| 631 |
+
const otherShops = expect.measure === "top_merchant" ? (HH?.merchants ?? []).filter((n) => !goldNames.some((g) => g === n.toLowerCase()) && [n, ...(HH.aliases[n] ?? [])].some((a) => new RegExp(String.raw`\b${esc(a)}\b`, "i").test(text))) : [];
|
| 632 |
+
const others = [...namesCategory(text), ...otherMonths, ...otherShops];
|
| 633 |
+
if (clarify && !amts.length && !others.length) return done(wantsClarify ? "clarify_ok" : "refused", "asks for clarification or gives a note with no figure");
|
| 634 |
+
if (/^(no|none|nothing|not)\b/i.test(text)) return wrongWith(`says no/none; the answer is ${want}`);
|
| 635 |
+
if (others.length) return wrongWith(`names ${others.slice(0, 3).join(", ")}, not ${missing.map((a) => a[0]).join(", ")}`);
|
| 636 |
+
return done("refused", `does not name ${missing.map((a) => a[0]).join(", ")}`);
|
| 637 |
+
}
|
| 638 |
+
default:
|
| 639 |
+
throw new Error(`unknown gold type ${gold.type}`);
|
| 640 |
+
}
|
| 641 |
+
}
|
| 642 |
+
|
| 643 |
+
/** the whole conversation: every turn judged, the case outcome from the last turn and any earlier wrong turn */
|
| 644 |
+
// ---- v3: the audit of every financial assertion ----------------------------------------
|
| 645 |
+
/** the period a turn may speak about: its expected months, else the months its own question names, else the
|
| 646 |
+
* previous turn's (a follow-up's decline is about the figure before it); null when nothing fixes a period */
|
| 647 |
+
export function effectiveMonths(expect, prev) {
|
| 648 |
+
if (Array.isArray(expect.months)) return expect.months;
|
| 649 |
+
const said = [...new Set(monthsNamed(expect.q ?? "").map((m) => m.key))].filter((k) => /^\d{4}-\d{2}$/.test(k));
|
| 650 |
+
if (said.length) return said;
|
| 651 |
+
return prev != null && Array.isArray(prev.months) ? prev.months : null;
|
| 652 |
+
}
|
| 653 |
+
const COMPARE_CUE = /\b(compared (?:with|to)|than|against|the month before|the previous month|versus|vs\.?)\s*$/i;
|
| 654 |
+
|
| 655 |
+
/** every money figure the answer prints, prose and tables, held against the fixture's true figures */
|
| 656 |
+
function auditFigures(expect, text, months) {
|
| 657 |
+
const gold = expect.gold;
|
| 658 |
+
const goldVals = gold.type === "money" ? [gold.value, ...(gold.alt ?? [])] : [];
|
| 659 |
+
// (a month the answer names right after a comparison word, "than January 2026", is a period it says it is
|
| 660 |
+
// comparing with: its figures are placed, the comparison is said)
|
| 661 |
+
const justified = monthsNamed(text).filter((m) => { const at = text.indexOf(m.phrase); return at >= 0 && COMPARE_CUE.test(text.slice(Math.max(0, at - 30), at)); }).map((m) => m.key);
|
| 662 |
+
const allowed = months == null ? null : new Set([...months, ...justified, ...["more", "less"].map((k) => expect.direction?.[k]).filter(Boolean)]);
|
| 663 |
+
const wrong = [], unplaced = [];
|
| 664 |
+
for (const m of text.matchAll(MONEY)) {
|
| 665 |
+
const v = Number(m[1].replace(/,/g, ""));
|
| 666 |
+
if (v === 0) continue; // "$0 left", "$0.00": nothing to place
|
| 667 |
+
if (goldVals.some((g) => Math.abs(g - v) < 0.005 || (Number.isInteger(v) && Math.round(g) === v))) continue;
|
| 668 |
+
let hits = factsMatching(FACTS, v);
|
| 669 |
+
// (a sum or a difference of two true figures of the period is placed too: "the other 2 add up to", "$3,650
|
| 670 |
+
// less" for two categories left out; only within the allowed months, so it cannot launder another month)
|
| 671 |
+
if (!hits.length) {
|
| 672 |
+
// (two figures of the SAME kind over EXACTLY the same months: across a year-to-date pool, any pair sums
|
| 673 |
+
// to almost anything, the probe with an invented $12,345.67 showed it)
|
| 674 |
+
const pool = FACTS.filter((f) => allowed == null || f.months == null || f.months.every((k) => allowed.has(k)));
|
| 675 |
+
const groups = new Map();
|
| 676 |
+
for (const f of pool) { const k = `${f.kind}|${(f.months ?? []).join("+")}`; if (!groups.has(k)) groups.set(k, new Set()); groups.get(k).add(Math.round(f.value * 100)); }
|
| 677 |
+
const c = Math.round(v * 100);
|
| 678 |
+
let pair = false;
|
| 679 |
+
for (const set of groups.values()) { for (const a of set) if (set.has(c - a) || set.has(a - c)) { pair = true; break; } if (pair) break; }
|
| 680 |
+
if (pair) continue;
|
| 681 |
+
unplaced.push(v); continue;
|
| 682 |
+
}
|
| 683 |
+
if (allowed == null) continue;
|
| 684 |
+
if (hits.some((h) => h.months == null || h.months.every((k) => allowed.has(k)))) continue;
|
| 685 |
+
// (a true amount the sentence LABELS as the earlier or usual one, "it had usually been $13.99", is history said
|
| 686 |
+
// as history, not a claim about the period asked; revision 2026-09-30, holdout adjudication h-latest-01)
|
| 687 |
+
if (/\b(?:usually|had been|used to be|previously|before that|was once|earlier)\s+(?:been\s+)?(?:at\s+)?$/i.test(text.slice(Math.max(0, m.index - 30), m.index))) continue;
|
| 688 |
+
const where = [...new Set(hits.flatMap((h) => h.months ?? []))].sort().map(monthLabel).join(", ");
|
| 689 |
+
wrong.push(`${fmtMoney(v)} is a figure for ${where}, outside the conversation's period (${[...allowed].sort().map(monthLabel).join(", ")})`);
|
| 690 |
+
}
|
| 691 |
+
return {wrong, unplaced};
|
| 692 |
+
}
|
| 693 |
+
|
| 694 |
+
/** a month named outside the period, unless the sentence says it is a comparison ("than April", "compared with March") */
|
| 695 |
+
function contextPeriodCheck(months, text) {
|
| 696 |
+
if (months == null) return null;
|
| 697 |
+
const out = [];
|
| 698 |
+
// (only a sentence that asserts a figure is financial context: a clarification or a coverage note that names a
|
| 699 |
+
// month asserts nothing about it)
|
| 700 |
+
const figured = text.split(/(?<=[.!?])\s+|\n+/).filter((x) => /\$\s?\d|\d\s?%/.test(x)).join(" ");
|
| 701 |
+
for (const m of monthsNamed(figured)) {
|
| 702 |
+
if (months.includes(m.key)) continue;
|
| 703 |
+
const at = figured.indexOf(m.phrase);
|
| 704 |
+
if (at >= 0 && COMPARE_CUE.test(figured.slice(Math.max(0, at - 30), at))) continue;
|
| 705 |
+
out.push(m.phrase);
|
| 706 |
+
}
|
| 707 |
+
return out.length ? `names ${[...new Set(out)].slice(0, 3).join(", ")}, outside the conversation's period (${months.map(monthLabel).join(", ")})` : null;
|
| 708 |
+
}
|
| 709 |
+
|
| 710 |
+
/** the expected value quoted and denied ("not $17.99", "rather than 4") */
|
| 711 |
+
function quotedDenied(expect, text) {
|
| 712 |
+
const g = expect.gold;
|
| 713 |
+
if (g.type !== "money" && g.type !== "count" && g.type !== "percent") return null;
|
| 714 |
+
for (const v of [g.value, ...(g.alt ?? [])]) {
|
| 715 |
+
const lit = g.type === "money" ? String.raw`\$\s?${esc(v.toLocaleString("en-US", {minimumFractionDigits: v % 1 ? 2 : 0, maximumFractionDigits: 2}))}` : g.type === "percent" ? String.raw`${esc(String(v))}\s?%` : String.raw`\b${v}\b`;
|
| 716 |
+
if (new RegExp(String.raw`\b(?:not|isn't|wasn't|is not|was not|never|no longer|rather than|instead of)\s+(?:\w+\s+){0,3}${lit}`, "i").test(text))
|
| 717 |
+
return `quotes the expected ${g.type === "money" ? fmtMoney(v) : v} and denies it`;
|
| 718 |
+
}
|
| 719 |
+
return null;
|
| 720 |
+
}
|
| 721 |
+
|
| 722 |
+
/** a kept or net figure said with the sign reversed ("more went out than came in" where money was kept) */
|
| 723 |
+
function signCheck(expect, text) {
|
| 724 |
+
const m = expect.measure ?? "";
|
| 725 |
+
if (!/^(kept|net|savings_rate|kept_after_spending)$/.test(m) || expect.gold.type === "none") return null;
|
| 726 |
+
const positive = (expect.gold.value ?? 0) > 0;
|
| 727 |
+
if (positive && /\bmore went out than came in\b|\bin the red\b|\ba deficit\b|\bmore (?:was spent|went out) than (?:earned|came in)\b/i.test(text)) return "says more went out than came in where money was kept";
|
| 728 |
+
if (!positive && /\bmore came in than went out\b|\bwas kept\b/i.test(text)) return "says money was kept where more went out";
|
| 729 |
+
return null;
|
| 730 |
+
}
|
| 731 |
+
|
| 732 |
+
/** the per-turn judge: v2's verdict, then the v3 checks, which can only add a failure or a review */
|
| 733 |
+
/**
|
| 734 |
+
* AN EXAMPLE IS NOT AN ANSWER (revision 2026-10-02, round-5 adjudication r5a-budget-04): a refusal that suggests a
|
| 735 |
+
* question, 'for example "groceries last month"', had been read as an answer naming Groceries and last month. A quoted
|
| 736 |
+
* span after "for example", "for instance", "e.g." or "such as" is a suggestion the app makes, never a claim about the
|
| 737 |
+
* ledger: it is blanked before any check, so a figure inside it can neither pass nor fail the turn.
|
| 738 |
+
*/
|
| 739 |
+
export function stripExamples(text) {
|
| 740 |
+
return String(text ?? "").replace(/\b(for example|for instance|e\.g\.|such as)(,?\s*:?\s*)(["“][^"”\n]{1,120}["”])/gi, (_m, cue, sep) => `${cue}${sep}"…"`);
|
| 741 |
+
}
|
| 742 |
+
|
| 743 |
+
/** BB: money figures that add two currencies (a figure that is a sum across currencies and no true figure of its own) */
|
| 744 |
+
function crossCurrency(raw) {
|
| 745 |
+
if (!FORBIDDEN.length) return null;
|
| 746 |
+
const hits = [];
|
| 747 |
+
for (const t of moneyTokens(raw, HOME)) {
|
| 748 |
+
const own = FACTS_BY.get(t.currency) ?? factsOf(HH, t.currency);
|
| 749 |
+
if (factsMatching(own, t.value).length) continue;
|
| 750 |
+
const f = factsMatching(FORBIDDEN, t.value)[0];
|
| 751 |
+
if (f) hits.push(`${t.text} adds two currencies (${f.kind}${f.entity !== "*" ? ` of ${f.entity}` : ""})`);
|
| 752 |
+
}
|
| 753 |
+
return hits.length ? hits.join("; ") : null;
|
| 754 |
+
}
|
| 755 |
+
|
| 756 |
+
/** BB: one figure per currency ("how much did I spend, both accounts"): each in its own currency, never added */
|
| 757 |
+
function judgePerCurrency(expect, raw) {
|
| 758 |
+
const g = expect.gold;
|
| 759 |
+
const found = g.values.map((v, i) => moneyTokens(raw, HOME).some((t) => t.currency === g.currencies[i] && (Math.abs(t.value - v) < 0.005 || (!t.decimals && Math.round(v) === t.value))));
|
| 760 |
+
if (found.every(Boolean)) return {outcome: "correct", reason: `states each currency's figure apart (${g.values.map((v, i) => `${v} ${g.currencies[i]}`).join(", ")})`, notes: []};
|
| 761 |
+
return null;
|
| 762 |
+
}
|
| 763 |
+
|
| 764 |
+
/** BB: a coverage note is about the ledger, never an answer: "(57 transactions imported, 2026-07-25 to 2026-10-16)" */
|
| 765 |
+
const COVERAGE_NOTE = /\(\s*\d+ transactions? imported[^)]*\)/gi;
|
| 766 |
+
|
| 767 |
+
export function judgeTurn(expect, turn0, prev = null) {
|
| 768 |
+
// BB: the turn's currency, and its money written as the judge reads money
|
| 769 |
+
const currency = useCurrency(expect.currency ?? HOME);
|
| 770 |
+
const raw = String(turn0?.text ?? "").replace(COVERAGE_NOTE, "");
|
| 771 |
+
const mixed = crossCurrency(parseBracket(raw).text);
|
| 772 |
+
if (mixed && !turn0?.choice?.answers?.length) return {outcome: "wrong", reason: mixed, notes: [], v2: "wrong"};
|
| 773 |
+
if (expect.gold.type === "money_set" && Array.isArray(expect.gold.currencies)) {
|
| 774 |
+
const r = judgePerCurrency(expect, parseBracket(raw).text);
|
| 775 |
+
if (r) return {...r, v2: r.outcome};
|
| 776 |
+
// (not every currency's figure: judged as an answer about the home currency's figure alone)
|
| 777 |
+
const home = expect.gold.currencies.indexOf(HOME);
|
| 778 |
+
const asHome = {...expect, currency: HOME, gold: {type: "money", value: expect.gold.values[home >= 0 ? home : 0]}};
|
| 779 |
+
const r2_ = judgeTurn(asHome, turn0, prev);
|
| 780 |
+
return r2_.outcome === "correct" ? {outcome: "refused", reason: `states only the ${HOME} figure; ${expect.gold.currencies.filter((c) => c !== HOME).join(", ")} not stated`, notes: [], v2: "refused", noReview: true} : r2_;
|
| 781 |
+
}
|
| 782 |
+
// (a turn whose right answer states no figure holds every currency's figures against it)
|
| 783 |
+
const anyCurrency = ["cannot", "none", "decline", "clarify", "howto"].includes(expect.gold.type);
|
| 784 |
+
// (BB: money written with no mark, in a turn about money: an answer that is only a number ("0", "0.00"), and an
|
| 785 |
+
// amount with cents ("512.10") are money in the turn's currency)
|
| 786 |
+
const moneyTurn = ["money", "money_set", "none"].includes(expect.gold.type);
|
| 787 |
+
const unmarked = (t) => !moneyTurn ? t
|
| 788 |
+
: /^\s*-?\d[\d,]*(?:\.\d+)?\.?\s*$/.test(t) ? `$${t.trim().replace(/\.$/, "")}`
|
| 789 |
+
: t.replace(/(?<![\d$.,€£¥:/-])(\d{1,3}(?:,\d{3})+|\d+)\.\d{2}\b(?!\s*(?:%|€|£|¥|kr|[A-Z]{3}\b))/g, (m, _i, off, all) => (/(?:[$€£¥]|\b[A-Z]{3}|\bkr)\s?$/.test(all.slice(Math.max(0, off - 4), off)) ? m : `$${m}`));
|
| 790 |
+
const turn = turn0 == null ? turn0 : {...turn0, text: stripExamples(asDollars(unmarked(raw), anyCurrency ? "*" : currency, HOME))};
|
| 791 |
+
// A GUIDED CHOICE (revision 2026-09-30): the app asked which reading was meant and offered options. Where the
|
| 792 |
+
// expectation accepts a clarification it is correct as a clarification; otherwise it is "choice_offered" when an
|
| 793 |
+
// option answers the question correctly (a clarification the question did not need, but no error), and "refused"
|
| 794 |
+
// when no option does. An option that would answer wrongly was never presented as an answer.
|
| 795 |
+
if (turn?.choice?.answers?.length) {
|
| 796 |
+
if (expect.accept === "clarify") return {outcome: "clarify_ok", reason: `asks which reading: ${turn.choice.labels.join(" · ")}`, notes: [], v2: "clarify_ok"};
|
| 797 |
+
const graded = turn.choice.answers.map((a) => judgeTurn(expect, {text: a.text, strip: a.strip}, prev).outcome);
|
| 798 |
+
const hit = turn.choice.answers.find((a, i) => graded[i] === "correct");
|
| 799 |
+
// BB: an ask whose EVERY reading is wrong is a wrong answer offered (Nizar's rule: count it as wrong)
|
| 800 |
+
if (hit == null && graded.length && graded.every((o) => o === "wrong")) return {outcome: "wrong_offered", reason: `asks which reading, and every option answers wrongly (${turn.choice.labels.join(" · ")})`, notes: [], v2: "refused"};
|
| 801 |
+
return hit != null
|
| 802 |
+
? {outcome: "choice_offered", reason: `asks which reading; the option "${hit.label}" answers it`, notes: [], v2: "refused"}
|
| 803 |
+
: {outcome: "refused", reason: `asks which reading, and no option answers it (${turn.choice.labels.join(" · ")})`, notes: [], v2: "refused"};
|
| 804 |
+
}
|
| 805 |
+
const r = judgeTurnV2(expect, turn);
|
| 806 |
+
// BB: a how-to answer is judged on its words alone (the help's own prices, "$29 a year", are no ledger figure)
|
| 807 |
+
if (expect.gold.type === "howto") return {outcome: r.outcome, reason: r.reason, notes: r.notes ?? [], v2: r.outcome};
|
| 808 |
+
const {text} = parseBracket(turn?.text ?? "");
|
| 809 |
+
// (under the §8 label the answer's period IS the whole ledger, so its supporting figures are placed there:
|
| 810 |
+
// "$19,927.47 of purchases in all" beside the Tamarind refund, round-5 r5a-fu-refund-01)
|
| 811 |
+
const months = wholeLedgerLabelOk(expect, text) ? [...LEDGER_MONTHS].sort() : effectiveMonths(expect, prev);
|
| 812 |
+
const notes = [...(r.notes ?? [])];
|
| 813 |
+
const out = (outcome, reason) => ({outcome, reason, notes, v2: r.outcome});
|
| 814 |
+
if (r.outcome === "wrong") return out("wrong", r.reason);
|
| 815 |
+
// (a follow-up that keeps the previous turn's period or scope must not change it: the chips are the state)
|
| 816 |
+
const stateFail = stateCheck(expect, turn, prev);
|
| 817 |
+
const audit = auditFigures(expect, text, months);
|
| 818 |
+
const ctx = expect.gold.type === "decline" || expect.gold.type === "none" || expect.gold.type === "cannot" || expect.gold.type === "names" ? contextPeriodCheck(months, text) : null;
|
| 819 |
+
const fails = [...audit.wrong, ctx, quotedDenied(expect, text), signCheck(expect, text), stateFail].filter(Boolean);
|
| 820 |
+
if (fails.length) return out("wrong", `${r.outcome === "correct" ? "meets the gold but " : ""}${fails.join("; ")}`);
|
| 821 |
+
if (audit.unplaced.length && (r.outcome === "correct" || r.outcome === "refused" || r.outcome === "clarify_ok"))
|
| 822 |
+
return out("needs_review", `${r.reason}; prints ${audit.unplaced.slice(0, 4).map(fmtMoney).join(", ")}, which is no true figure of this ledger`);
|
| 823 |
+
// wording the grader cannot place is reviewed, never silently refused
|
| 824 |
+
// (BB: only when the text carries a number the grader could not place; a plain refusal is a refusal)
|
| 825 |
+
if (r.outcome === "refused" && !r.noReview && !r.audited && !isClarify(text) && /\d/.test(text.replace(/\b\d{4}-\d{2}-\d{2}\b|\b(?:19|20)\d\d\b|\b\d+ of \d+ days\b/g, ""))) return out("needs_review", `${r.reason}; wording the grader cannot classify`);
|
| 826 |
+
return out(r.outcome, r.reason);
|
| 827 |
+
}
|
| 828 |
+
|
| 829 |
+
/** the state a follow-up keeps: when this turn's expected period (or scope) equals the previous turn's, the
|
| 830 |
+
* recorded period (or scope) chip must be the same too */
|
| 831 |
+
function stateCheck(expect, turn, prev) {
|
| 832 |
+
if (prev == null || prev.turnRecord == null || !Array.isArray(turn?.chips) || !Array.isArray(prev.turnRecord.chips)) return null;
|
| 833 |
+
const chip = (t, key) => t.chips.find((c) => c.key === key)?.label ?? null;
|
| 834 |
+
const fails = [];
|
| 835 |
+
const same = (a, b) => JSON.stringify(a ?? null) === JSON.stringify(b ?? null);
|
| 836 |
+
if (Array.isArray(expect.months) && same(expect.months, prev.months)) {
|
| 837 |
+
const a = chip(prev.turnRecord, "period"), b = chip(turn, "period");
|
| 838 |
+
// (the §8 label: a merchant asked with no period is the whole ledger, see wholeLedgerLabelOk)
|
| 839 |
+
const whole = b === "Everything imported" && wholeLedgerLabelOk(expect, parseBracket(turn?.text ?? "").text);
|
| 840 |
+
if (a && b && a !== b && !whole) fails.push(`the follow-up changed the period from ${a} to ${b}`);
|
| 841 |
+
}
|
| 842 |
+
if (Array.isArray(expect.scope) && expect.scope.length && same(expect.scope, prev.scope)) {
|
| 843 |
+
const a = chip(prev.turnRecord, "scope"), b = chip(turn, "scope");
|
| 844 |
+
// (narrowing TO the scope the expectation names is no change of what was asked: "were we over on anything" listed
|
| 845 |
+
// every line, "by how much" answered the one over line, Coffee Shops, which is the expected scope; revision
|
| 846 |
+
// 2026-10-02, round-4 dev run rc-fu-budget-02)
|
| 847 |
+
const toExpected = b != null && expect.scope.some((n) => n.toLowerCase() === b.toLowerCase() || b.toLowerCase().includes(n.toLowerCase()));
|
| 848 |
+
if (a && b && a !== b && !toExpected) fails.push(`the follow-up changed the scope from ${a} to ${b}`);
|
| 849 |
+
}
|
| 850 |
+
return fails.length ? fails.join("; ") : null;
|
| 851 |
+
}
|
| 852 |
+
|
| 853 |
+
/** the whole conversation: every turn judged; wrong beats needs_review beats the last turn's outcome */
|
| 854 |
+
export function judgeCase(expectCase, turns) {
|
| 855 |
+
let prev = null;
|
| 856 |
+
const per = expectCase.turns.map((e, i) => {
|
| 857 |
+
const t = turns?.[i];
|
| 858 |
+
const res = !t ? {turn: i + 1, outcome: "refused", reason: "turn missing from the run", q: e.q}
|
| 859 |
+
: (() => { const r = judgeTurn(e, t, prev); return {turn: i + 1, outcome: r.outcome, v2: r.v2, reason: r.reason, q: e.q ?? t.q, chips: t.chips ?? null}; })();
|
| 860 |
+
prev = {...e, months: effectiveMonths(e, prev), turnRecord: t ?? null};
|
| 861 |
+
return res;
|
| 862 |
+
});
|
| 863 |
+
const last = per.at(-1);
|
| 864 |
+
const firstWrong = per.find((p) => p.outcome === "wrong");
|
| 865 |
+
const firstReview = per.find((p) => p.outcome === "needs_review");
|
| 866 |
+
const outcome = firstWrong ? "wrong" : firstReview ? "needs_review" : last.outcome;
|
| 867 |
+
const lead = firstWrong ?? firstReview;
|
| 868 |
+
const reason = lead && lead !== last ? `turn ${lead.turn} ${lead.outcome} (${lead.reason}); last turn ${last.outcome}: ${last.reason}` : (lead ?? last).reason;
|
| 869 |
+
const firstError = per.find((p) => p.outcome === "wrong" || p.outcome === "refused" || p.outcome === "needs_review");
|
| 870 |
+
return {id: expectCase.id, outcome, reason, turns: per, first_error_turn: firstError ? firstError.turn : null,
|
| 871 |
+
earlier_refused: per.slice(0, -1).filter((p) => p.outcome === "refused").map((p) => p.turn)};
|
| 872 |
+
}
|
| 873 |
+
|
| 874 |
+
/** BB: the class of a non-answer: "not_sure" when it asks back or says it is unsure, else "declined" */
|
| 875 |
+
export function nonAnswerClass(text) {
|
| 876 |
+
const t = parseBracket(String(text ?? "")).text;
|
| 877 |
+
if (!t.trim()) return "declined";
|
| 878 |
+
// (withholding a figure because the system is unsure what was meant, or could not check it, is "not sure"; saying it
|
| 879 |
+
// cannot or will not answer, or answering something else, is "declined")
|
| 880 |
+
const UNSURE = /\bwould be guessing\b|\bwill not (?:show|give) (?:you )?a figure\b|\bcould not (?:use|keep|tell|verify|read)\b|\bnot certain what you (?:are|were) asking\b|\bwhich (?:one|reading) (?:do|did) you mean\b/i;
|
| 881 |
+
return CLARIFY.some((r) => r.test(t)) || UNSURE.test(t) ? "not_sure" : "declined";
|
| 882 |
+
}
|
| 883 |
+
export {isClarify};
|
grader/money.mjs
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Money in any currency, as answers write it. The grader's judge was written for "$1,234.56"; this module rewrites
|
| 2 |
+
// every money token of ONE currency (the turn's) into that form and every token of another currency into a
|
| 3 |
+
// bracketed code the judge does not read as money, so the same audit holds for "1.311,34 €", "€12,50", "£8.90",
|
| 4 |
+
// "SEK 5" and "3,400.50 kr". Tokens: a mark or code before or after a number, with any thousands and decimal style.
|
| 5 |
+
const MARKS = [["US$", "USD"], ["$", "USD"], ["€", "EUR"], ["£", "GBP"], ["¥", "JPY"], ["₹", "INR"], ["CHF", "CHF"], ["kr", "SEK"]];
|
| 6 |
+
const CODES = ["USD", "EUR", "GBP", "JPY", "INR", "CHF", "SEK", "NOK", "DKK", "CAD", "AUD"];
|
| 7 |
+
const NUM = String.raw`\d{1,3}(?:[., ']\d{3})+(?:[.,]\d{1,2})?|\d+(?:[.,]\d{1,2})?`;
|
| 8 |
+
const MARK_RE = String.raw`US\$|\$|€|£|¥|₹|\bCHF\b|\bkr\b|\b(?:${CODES.join("|")})\b`;
|
| 9 |
+
// (a mark AFTER a number is only one written after numbers, and never one that opens the next figure: "July 2026 $74.96"
|
| 10 |
+
// is a year and a dollar figure, not "2026 $")
|
| 11 |
+
const POST_RE = String.raw`€|\bkr\b|\bCHF\b|\b(?:${CODES.join("|")})\b`;
|
| 12 |
+
// (a number starts where a run of digits starts: "July 2026 168,96 €" is a year and 168,96, never "26 168,96")
|
| 13 |
+
const TOKEN = new RegExp(String.raw`(?<pre>${MARK_RE})\s?(?<sign1>-)?(?<n1>${NUM})|(?<sign2>-)?(?<![\d.,])(?<n2>${NUM})\s?(?<post>${POST_RE})(?!\s?-?\d)`, "g");
|
| 14 |
+
|
| 15 |
+
/** "1.234,56" / "1,234.56" / "1 234,56" / "12,50" / "1.234" -> a number */
|
| 16 |
+
export function readNumber(s) {
|
| 17 |
+
const t = s.replace(/[ ']/g, "");
|
| 18 |
+
const dec = /[.,](\d{1,2})$/.exec(t);
|
| 19 |
+
// a separator followed by exactly three digits at the end is a thousands mark ("1.234" in a euro ledger)
|
| 20 |
+
if (dec != null) return Number(`${t.slice(0, dec.index).replace(/[.,]/g, "")}.${dec[1]}`);
|
| 21 |
+
return Number(t.replace(/[.,]/g, ""));
|
| 22 |
+
}
|
| 23 |
+
const codeOf = (mark, home) => {
|
| 24 |
+
if (CODES.includes(mark)) return mark;
|
| 25 |
+
const m = MARKS.find(([k]) => k === mark);
|
| 26 |
+
// ("$" in a ledger whose home is another dollar would be that dollar; BudgetBench households use USD only)
|
| 27 |
+
return m ? m[1] : home;
|
| 28 |
+
};
|
| 29 |
+
const en = (v, decimals) => v.toLocaleString("en-US", {minimumFractionDigits: decimals ? 2 : 0, maximumFractionDigits: 2});
|
| 30 |
+
|
| 31 |
+
/** every money token: [{value, currency, index, text}] */
|
| 32 |
+
export function moneyTokens(text, home = "USD") {
|
| 33 |
+
const out = [];
|
| 34 |
+
for (const m of String(text ?? "").matchAll(TOKEN)) {
|
| 35 |
+
const g = m.groups;
|
| 36 |
+
const n = g.n1 ?? g.n2, mark = g.pre ?? g.post;
|
| 37 |
+
out.push({value: readNumber(n), currency: codeOf(mark, home), index: m.index, text: m[0], decimals: /[.,]\d{1,2}$/.test(n.replace(/[ ']/g, ""))});
|
| 38 |
+
}
|
| 39 |
+
return out;
|
| 40 |
+
}
|
| 41 |
+
|
| 42 |
+
/** the text with `currency`'s tokens as "$1,234.56" and every other currency's tokens as "[EUR 12.50]"; currency "*"
|
| 43 |
+
* writes every currency's tokens as "$" (for a turn whose right answer states no figure at all) */
|
| 44 |
+
export function asDollars(text, currency, home = "USD") {
|
| 45 |
+
return String(text ?? "").replace(TOKEN, (...args) => {
|
| 46 |
+
const g = args.at(-1);
|
| 47 |
+
const n = g.n1 ?? g.n2, mark = g.pre ?? g.post, sign = g.sign1 ?? g.sign2 ?? "";
|
| 48 |
+
const cur = codeOf(mark, home), v = readNumber(n), decimals = /[.,]\d{1,2}$/.test(n.replace(/[ ']/g, ""));
|
| 49 |
+
return cur === currency || currency === "*" ? `${sign}$${en(v, decimals)}` : `[${cur} ${sign}${v.toFixed(decimals ? 2 : 0)}]`;
|
| 50 |
+
});
|
| 51 |
+
}
|
grader/score.mjs
ADDED
|
@@ -0,0 +1,65 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// BudgetBench SCORE: one case's turns (as a runner recorded them) -> per-turn outcomes and ONE case label.
|
| 2 |
+
//
|
| 3 |
+
// Turn outcomes (the judge's, grader/judge.mjs): correct | clarify_ok | wrong | wrong_offered | refused | needs_review,
|
| 4 |
+
// plus "tap" when the turn asked a choice and the runner tapped the option the answer key marks right.
|
| 5 |
+
// Case labels, never merged (METHODOLOGY.md):
|
| 6 |
+
// wrong_shown some turn SHOWS a wrong figure, name or claim
|
| 7 |
+
// wrong_offered no turn shows one, but some turn asks a choice whose every option answers wrongly
|
| 8 |
+
// right_no_tap every turn right with no tap
|
| 9 |
+
// right_tap every turn right, with exactly one tap
|
| 10 |
+
// not_sure the first turn that is not right says it is unsure or asks back (or needed two taps or more)
|
| 11 |
+
// declined the first turn that is not right declines, errs or says nothing usable
|
| 12 |
+
// review the grader could not place a turn (adjudicate by hand; reported, never hidden)
|
| 13 |
+
import {useHousehold, judgeTurn, effectiveMonths, nonAnswerClass} from "./judge.mjs";
|
| 14 |
+
import {goldOf} from "../oracle/oracle.mjs";
|
| 15 |
+
|
| 16 |
+
export const LABELS = ["wrong_shown", "wrong_offered", "right_no_tap", "right_tap", "not_sure", "declined", "review"];
|
| 17 |
+
|
| 18 |
+
/** the expectations of a case's turns (the oracle's gold for each meaning) */
|
| 19 |
+
export function expectationsOf(hh, c) {
|
| 20 |
+
return c.turns.map((t) => ({q: t.q, ...goldOf(hh, t.meaning)}));
|
| 21 |
+
}
|
| 22 |
+
|
| 23 |
+
/** is this text right for this turn? (used by a runner's tap: the answer key, the same for every system) */
|
| 24 |
+
export function rightFor(hh, expect, text, prev = null) {
|
| 25 |
+
useHousehold(hh);
|
| 26 |
+
const o = judgeTurn(expect, {text}, prev).outcome;
|
| 27 |
+
return o === "correct" || o === "clarify_ok";
|
| 28 |
+
}
|
| 29 |
+
|
| 30 |
+
/** run turns: [{q, text, choice?: {labels, answers: [{label, text}]}, tapped?: index}] */
|
| 31 |
+
export function scoreCase(hh, c, turns) {
|
| 32 |
+
useHousehold(hh);
|
| 33 |
+
const exps = expectationsOf(hh, c);
|
| 34 |
+
let prev = null;
|
| 35 |
+
const per = exps.map((e, i) => {
|
| 36 |
+
const t = turns?.[i];
|
| 37 |
+
let res;
|
| 38 |
+
if (t == null) res = {turn: i + 1, outcome: "declined", reason: "turn missing from the run"};
|
| 39 |
+
else if (t.choice?.answers?.length && Number.isInteger(t.tapped)) {
|
| 40 |
+
const a = t.choice.answers[t.tapped];
|
| 41 |
+
const r = judgeTurn(e, {text: a.text}, prev);
|
| 42 |
+
res = {turn: i + 1, outcome: r.outcome === "correct" || r.outcome === "clarify_ok" ? "tap" : r.outcome, reason: `tapped "${a.label}": ${r.reason}`};
|
| 43 |
+
} else {
|
| 44 |
+
const r = judgeTurn(e, t, prev);
|
| 45 |
+
res = {turn: i + 1, outcome: r.outcome, reason: r.reason};
|
| 46 |
+
if (r.outcome === "refused") res.class = t.choice?.answers?.length ? "not_sure" : nonAnswerClass(t.text);
|
| 47 |
+
if (r.outcome === "choice_offered") res.class = "not_sure"; // (an option was right but nobody tapped it)
|
| 48 |
+
}
|
| 49 |
+
prev = {...e, months: effectiveMonths(e, prev), turnRecord: t ?? null};
|
| 50 |
+
return {...res, q: e.q};
|
| 51 |
+
});
|
| 52 |
+
const isRight = (p) => p.outcome === "correct" || p.outcome === "clarify_ok";
|
| 53 |
+
const taps = per.filter((p) => p.outcome === "tap").length;
|
| 54 |
+
let label;
|
| 55 |
+
if (per.some((p) => p.outcome === "wrong")) label = "wrong_shown";
|
| 56 |
+
else if (per.some((p) => p.outcome === "wrong_offered")) label = "wrong_offered";
|
| 57 |
+
else if (per.every(isRight)) label = "right_no_tap";
|
| 58 |
+
else if (per.every((p) => isRight(p) || p.outcome === "tap")) label = taps === 1 ? "right_tap" : "not_sure";
|
| 59 |
+
else if (per.some((p) => p.outcome === "needs_review")) label = "review";
|
| 60 |
+
else {
|
| 61 |
+
const first = per.find((p) => !isRight(p) && p.outcome !== "tap");
|
| 62 |
+
label = first.class ?? (first.outcome === "declined" ? "declined" : "not_sure");
|
| 63 |
+
}
|
| 64 |
+
return {id: c.id, label, taps, turns: per};
|
| 65 |
+
}
|
help/HELP.md
ADDED
|
@@ -0,0 +1,377 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Pulse Local help, as published (the corpus of BudgetBench's how-to category)
|
| 2 |
+
|
| 3 |
+
Plain text of four public pages of https://pulseos.finance (Pulse Local 0.4.15 docs, copied 2026-10-19 from the app's generated Help, which is built from the site). Every system under test that answers how-to questions about the app gets this same text through its tools. It is the only app-specific knowledge in BudgetBench. Copyright Pulse; included under the benchmark's data licence (see README).
|
| 4 |
+
# Getting started (https://pulseos.finance/start)
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
Bring in your transactions, set a budget, and ask where your money went. You can try everything with sample data first.
|
| 8 |
+
|
| 9 |
+
For Pulse Local 0.4.15
|
| 10 |
+
|
| 11 |
+
## Open the app for the first time
|
| 12 |
+
|
| 13 |
+
The first time you open Pulse Local, it downloads its AI models once: 434 MB on a machine with 16 GB of memory or less, about 2.9 GB on one with more.
|
| 14 |
+
|
| 15 |
+
The extra 2.5 GB is a second model that double-checks every money answer. It is on by default only above 16 GB of memory, because it can slow a smaller machine. Turn it on or off in Settings under Better understanding.
|
| 16 |
+
|
| 17 |
+
With it on, a money answer takes 12 to 14 seconds. Until it has downloaded, spending answers end with “Not double-checked yet”.
|
| 18 |
+
|
| 19 |
+
## Try the sample data
|
| 20 |
+
|
| 21 |
+
On the welcome screen, choose try the sample data. It uses made-up transactions. When you connect a bank, your bank's transactions replace the sample.
|
| 22 |
+
|
| 23 |
+
## Import a bank file
|
| 24 |
+
- Download a file of your transactions from your bank.
|
| 25 |
+
- In Pulse Local, choose Import. Drop the file on the sheet, or choose Choose a file.
|
| 26 |
+
- Read the notes above the preview. They tell you how Pulse read the file and what it is not sure of.
|
| 27 |
+
- Check the preview. Each row shows the category it will get. If a column is wrong, choose Pick columns by hand.
|
| 28 |
+
- Check the account name and the currency.
|
| 29 |
+
- Import. If the file overlaps one you imported before, Pulse skips the rows you already have.
|
| 30 |
+
|
| 31 |
+
Pulse reads the file on your machine. The file is not uploaded.
|
| 32 |
+
|
| 33 |
+
File types. CSV, Excel, OFX, QFX, QIF, MT940, CAMT.053, Norma 43 from Spanish banks and CODA from Belgian banks. PDF statements are in beta: check every row before you import.
|
| 34 |
+
|
| 35 |
+
Any file name. Pulse looks at what is in the file, not at its name. A CSV that your bank saves with an .xls or .dat name imports as a CSV.
|
| 36 |
+
|
| 37 |
+
Bank files from any country. Columns in any order, column names in many languages, commas or semicolons, decimal commas, day-first dates, accents and long account numbers. Pulse also reads files saved in Japanese Shift_JIS or in older Windows formats. Short bank names such as WHOLEFDS still find the shop.
|
| 38 |
+
|
| 39 |
+
A file with no column names. Pulse reads the columns from their values and tells you. Check the preview.
|
| 40 |
+
|
| 41 |
+
Card files. American Express, Chase and Capital One files are read the right way round.
|
| 42 |
+
|
| 43 |
+
Other budgeting apps. Monarch Money, YNAB and Copilot exports import with their categories. Each one lands in the matching Pulse category, in any of 31 languages, or stays as your own. A category that only holds money coming in is kept as income.
|
| 44 |
+
|
| 45 |
+
## What the import tells you
|
| 46 |
+
|
| 47 |
+
Pulse does not guess in silence. When it is not sure about a file, it tells you on the import sheet before it saves anything.
|
| 48 |
+
|
| 49 |
+
The currency. Pulse looks for the currency in the columns, the column names, the heading and the account number. If the file is in another currency, Pulse asks before it imports. If the file names no currency, Pulse tells you that the amounts land in your ledger’s currency as written.
|
| 50 |
+
|
| 51 |
+
The dates. If each date in the file can be read two ways, Pulse tells you the order it used. To use the other order, choose Read as month / day instead or Read as day / month instead.
|
| 52 |
+
|
| 53 |
+
Money in and money out. If nothing in the file shows which rows are money out, Pulse tells you. Check the signs in the preview.
|
| 54 |
+
|
| 55 |
+
Balances and totals. Many statements print balances or totals. Those lines are not transactions, so Pulse leaves them out and tells you. Pulse checks the rows against them. If they do not agree, Pulse tells you.
|
| 56 |
+
|
| 57 |
+
Pending rows. If the file holds rows that are not booked yet, Pulse counts them and tells you. Your bank’s own app may leave them out until they post.
|
| 58 |
+
|
| 59 |
+
The account. If the statement names its account, Pulse uses the last four characters, such as Account ····1234. You can change the name.
|
| 60 |
+
|
| 61 |
+
A file with nothing to import. Pulse imports nothing and tells you why. For example, a scanned PDF has no text to read, and some files hold only balances. Download the statement from your bank as a CSV instead.
|
| 62 |
+
|
| 63 |
+
## A file in another currency
|
| 64 |
+
|
| 65 |
+
Each account has its own currency. Pulse never converts an amount, and no total adds two currencies.
|
| 66 |
+
|
| 67 |
+
When a file is in another currency, a card above the preview asks you first. For example, a file in Swedish kronor in a ledger in US dollars:
|
| 68 |
+
|
| 69 |
+
Keep this account in SEK. The account keeps kronor. Its rows show in kronor in every list.
|
| 70 |
+
|
| 71 |
+
Import as USD. The amounts land in dollars, as written in the file.
|
| 72 |
+
|
| 73 |
+
Switch to SEK. Pulse shows this choice only when your ledger holds no data of your own yet. Your whole ledger then uses kronor.
|
| 74 |
+
|
| 75 |
+
Pulse remembers the choice for that account. After the import, choose Undo or Change beside the result if you change your mind.
|
| 76 |
+
|
| 77 |
+
A file with rows in more than one currency becomes one account for each currency. The card lists those accounts before you import.
|
| 78 |
+
|
| 79 |
+
Spending, Analysis and the chat count the accounts in your ledger’s currency. A line under them tells you what they leave out in other currencies.
|
| 80 |
+
|
| 81 |
+
## Connect a US bank
|
| 82 |
+
- Choose Bank sync.
|
| 83 |
+
- Sign in to your bank in your browser, through Plaid.
|
| 84 |
+
|
| 85 |
+
New transactions then arrive on their own. Bank sync needs the Sync Pass: $29 a year for three banks, $8 a year for each extra, up to 25.
|
| 86 |
+
|
| 87 |
+
Your transactions pass through Pulse's server on their way to your machine. They are processed, not stored. The server keeps only the connection to your bank.
|
| 88 |
+
|
| 89 |
+
You can still import bank files. If a file holds rows that your bank already synced, Pulse asks first. It skips those rows unless you choose Import everything anyway.
|
| 90 |
+
|
| 91 |
+
## Fix a category
|
| 92 |
+
|
| 93 |
+
Open Transactions, open the transaction and change its category.
|
| 94 |
+
|
| 95 |
+
To file a shop the same way every time, tick Remember this when you change the category. Pulse remembers the shop, not the whole bank line. Next month's charge from that shop gets the same category, even when the card number, date or order number in the line changes.
|
| 96 |
+
|
| 97 |
+
You can also add a rule on Categories. Type the start of the shop's name. The name matches whole words in any case: “Uber” files UBER/EATS and Uber Eats. Characters such as /, * and . in the name are fine.
|
| 98 |
+
|
| 99 |
+
Needs review lists rows to check, such as money coming back that may be a refund. Each shop's rows stay together. Pick a category for one row, and Pulse offers to file that shop's other rows too, or to remember the shop.
|
| 100 |
+
|
| 101 |
+
A category that you make is ready at once in every list, including Needs review.
|
| 102 |
+
|
| 103 |
+
## Use rules
|
| 104 |
+
|
| 105 |
+
A rule files a shop's transactions for you. Before you save any rule, Pulse shows how many past transactions it matches. If some of them are in another category, choose Apply to those too or Leave those as they are.
|
| 106 |
+
|
| 107 |
+
A wider rule. When you remember a shop, Pulse can also offer a rule such as All names starting with “Uber”, with the number of rows it matches. Pulse never picks it for you.
|
| 108 |
+
|
| 109 |
+
Rules that disagree. If another rule already does something else with the same shop, Pulse shows it when you save. Choose Keep both (the new rule wins) or Replace.
|
| 110 |
+
|
| 111 |
+
Why a row has its category. Open the transaction. If a rule set its category or its name, Pulse names the rule. Choose Edit rule to change the rule.
|
| 112 |
+
|
| 113 |
+
One name for one shop. A rule can also rename a shop. Rules that rename run first, then rules that set a category.
|
| 114 |
+
|
| 115 |
+
Rules that learn. A rule that Pulse learns from your choices changes its category only when two of your last three choices for that shop agree. A rule that you save never changes by itself.
|
| 116 |
+
|
| 117 |
+
Lines that name no shop. Pulse learns no rule from a column name, a reference code or a card word such as Visa.
|
| 118 |
+
|
| 119 |
+
For a connected bank, a rule uses the shop that your bank names, when it names one. Pulse knows many US towns. A town and its state at the end of a line, such as BERKELEY CA, do not keep a remembered rule to that town.
|
| 120 |
+
|
| 121 |
+
## Delete or hide a transaction
|
| 122 |
+
|
| 123 |
+
Tick the transactions, then choose Delete to remove them for good, or Hide to keep them but leave them out of every total.
|
| 124 |
+
|
| 125 |
+
## Set a budget
|
| 126 |
+
- On Spending, choose Set target beside a category or a whole group.
|
| 127 |
+
- Enter a monthly amount.
|
| 128 |
+
- Check the preview and save.
|
| 129 |
+
|
| 130 |
+
Start with a few categories, such as groceries, eating out and shopping. Turn on carry to add last month's unused money to this month. For categories without a target, Plan tools suggests amounts you can adjust.
|
| 131 |
+
|
| 132 |
+
## Ask a question
|
| 133 |
+
|
| 134 |
+
Open Ask Pulse, or press ⌘K, and ask “How much did I spend on groceries last month?” Then type “by merchant” to see which shops make up the total.
|
| 135 |
+
|
| 136 |
+
Check the month and category shown above the answer. More on asking Pulse.
|
| 137 |
+
|
| 138 |
+
## Find help in the app
|
| 139 |
+
|
| 140 |
+
Choose Help in the sidebar. It holds these guides for the version you have, and it works with no network.
|
| 141 |
+
|
| 142 |
+
Type in Search the docs to find a word. Choose a result to open that section with the words marked. Clear highlights removes the marks.
|
| 143 |
+
|
| 144 |
+
## How totals are counted
|
| 145 |
+
|
| 146 |
+
Spending is purchases after refunds, without transfers or debt repayments. Pending charges count, and Spending shows how much is still pending.
|
| 147 |
+
|
| 148 |
+
Refunds reduce spending in their category. If refunds are more than purchases, the extra shows separately as a refund credit.
|
| 149 |
+
|
| 150 |
+
Money in and money out show cash moving. Card cashback is money in. A loan repayment can be money out without being spending. Transfers between your own accounts are kept apart. A card payment with no matching card in Pulse is named on Spending, because what that card bought is not in your spending.
|
| 151 |
+
|
| 152 |
+
This month runs up to today. Future-dated transactions do not count yet.
|
| 153 |
+
|
| 154 |
+
## Back up your data
|
| 155 |
+
|
| 156 |
+
Your data lives on your machine. Pulse keeps no cloud copy. Time Machine backs it up if your home folder is included.
|
| 157 |
+
|
| 158 |
+
Before an update changes your data, Pulse Local saves a copy of it on your machine. When a copy exists, Settings says so under About. That copy can still hold rows that you deleted after the update.
|
| 159 |
+
|
| 160 |
+
To make a full copy yourself:
|
| 161 |
+
- Quit Pulse Local.
|
| 162 |
+
- In Finder, open the Go menu, choose Go to Folder and paste ~/Library/Application Support/.
|
| 163 |
+
- Copy the whole Pulse Local folder to your backup.
|
| 164 |
+
|
| 165 |
+
To save only your transactions, use Data & export. The CSV holds categories, split transactions and hidden rows, but not budget targets, rules, goals or account balances.Move to another machine
|
| 166 |
+
- Install Pulse Local on the new machine and keep it closed.
|
| 167 |
+
- Put the copied Pulse Local folder in the same place there. If a folder is already there, back it up first.
|
| 168 |
+
- Open the app. Your transactions, budgets and settings come with the folder.
|
| 169 |
+
- Set up bank sync again on the new machine. Disconnect your banks on the old one when you stop using it.
|
| 170 |
+
|
| 171 |
+
## Start over
|
| 172 |
+
|
| 173 |
+
Start fresh removes your transactions, budgets, rules, goals and balances from this machine, and also the copies that Pulse Local made before updates. A connected bank then downloads its history again. Back up first if you want to keep anything.
|
| 174 |
+
|
| 175 |
+
Last updated 19 October 2026
|
| 176 |
+
|
| 177 |
+
# Asking Pulse (https://pulseos.finance/answers)
|
| 178 |
+
|
| 179 |
+
|
| 180 |
+
Ask about your spending in plain words. Name what you want to know and the month you mean.
|
| 181 |
+
|
| 182 |
+
For Pulse Local 0.4.15
|
| 183 |
+
|
| 184 |
+
## Ask a question
|
| 185 |
+
|
| 186 |
+
Open Ask Pulse, or press ⌘K, and type your question. Follow up with “by merchant” to see which shops make up a total.
|
| 187 |
+
|
| 188 |
+
This example uses the sample transactions. Your amounts will differ.
|
| 189 |
+
|
| 190 |
+
You
|
| 191 |
+
|
| 192 |
+
How much did I spend on groceries in August 2026?
|
| 193 |
+
|
| 194 |
+
SpendingGroceriesAugust 2026
|
| 195 |
+
|
| 196 |
+
You spent $456.33 on groceries in August 2026.
|
| 197 |
+
|
| 198 |
+
You
|
| 199 |
+
|
| 200 |
+
by merchant
|
| 201 |
+
|
| 202 |
+
SpendingGroceriesAugust 2026by merchant
|
| 203 |
+
|
| 204 |
+
Costco Whse was the most within Groceries in August 2026 at $241.82, out of $456.33 across 3 merchants.
|
| 205 |
+
|
| 206 |
+
## Check what Pulse counted
|
| 207 |
+
|
| 208 |
+
The labels above a spending answer show what Pulse counted: the month, the category and the account. Select a label to change it, or ask “explain” for more detail.
|
| 209 |
+
|
| 210 |
+
## Questions you can ask
|
| 211 |
+
|
| 212 |
+
See where your money went. “How much did I spend on groceries in August?”
|
| 213 |
+
|
| 214 |
+
Compare months. “Compare my spending in August and July.”
|
| 215 |
+
|
| 216 |
+
Check your budget. “How much is left in my grocery budget this month?”
|
| 217 |
+
|
| 218 |
+
Find purchases. “Show my Costco transactions in August.”
|
| 219 |
+
|
| 220 |
+
Find what repeats. “What are my subscriptions?” or “How often does Netflix charge me?” Yearly plans, bills paid twice a month and bills whose amount changes count too.
|
| 221 |
+
|
| 222 |
+
Find your biggest month. “Which month did I spend the most?”
|
| 223 |
+
|
| 224 |
+
See one shop month by month. “Show Costco by month”, then “The biggest?” to find its biggest month.
|
| 225 |
+
|
| 226 |
+
Count visits. “How many times did I pay Costco?”
|
| 227 |
+
|
| 228 |
+
Understand a term. “What is a sinking fund?”
|
| 229 |
+
|
| 230 |
+
## Get a better answer
|
| 231 |
+
|
| 232 |
+
Name the month. “Last month” works, and so does “August 2026”.
|
| 233 |
+
|
| 234 |
+
Use the names you see. Ask with the category or shop name as it appears in Transactions.
|
| 235 |
+
|
| 236 |
+
Ask one thing at a time. If a follow-up goes off track, ask the full question again.
|
| 237 |
+
|
| 238 |
+
Ask in English. Chat works best in English.
|
| 239 |
+
|
| 240 |
+
## When Pulse is not sure
|
| 241 |
+
|
| 242 |
+
Better understanding is on by default on machines with more than 16 GB of memory. With it on, Pulse shows a figure only when two readings of your question agree. When they disagree, it says “I am not sure which figure you mean, so I will not guess”.
|
| 243 |
+
|
| 244 |
+
This is not an error. Ask again and name the shop, category, account or month. Suggested questions and the buttons under an answer are not held back this way.
|
| 245 |
+
|
| 246 |
+
If Pulse says it could not verify an answer, a check failed and Pulse held the answer back. Check the transactions yourself, or report the question with Send feedback. You choose what the report includes.
|
| 247 |
+
|
| 248 |
+
## Where answers come from
|
| 249 |
+
|
| 250 |
+
For supported money questions, Pulse calculates the answer from the transactions and balances you have added. Other questions may be answered by the AI model on your machine. Those answers are labelled “answered by the model, check the figures”, so treat them as a starting point.
|
| 251 |
+
|
| 252 |
+
Your questions are not sent to an online AI service. Pulse cannot look up live prices or find transactions you have not added, and decisions about your money stay yours. For an important amount, check your bank statement. Read about accuracy and limits.
|
| 253 |
+
|
| 254 |
+
Last updated 19 October 2026
|
| 255 |
+
|
| 256 |
+
# Accuracy and limits (https://pulseos.finance/testing)
|
| 257 |
+
|
| 258 |
+
|
| 259 |
+
Pulse answers from the transactions you add, and it can still misread a question. Here is what to check.
|
| 260 |
+
|
| 261 |
+
For Pulse Local 0.4.15
|
| 262 |
+
|
| 263 |
+
## Check an answer
|
| 264 |
+
|
| 265 |
+
Look at the month, category and account shown above a spending answer. Ask “explain” for more detail, or open Transactions to see the purchases yourself.
|
| 266 |
+
|
| 267 |
+
An answer can use the right figures for the wrong question. If it covers the wrong month or category, change the label, or ask again with the full name and period.
|
| 268 |
+
|
| 269 |
+
## Give Pulse the full picture
|
| 270 |
+
|
| 271 |
+
A total is only as good as the transactions behind it. Import the whole period you want to ask about, and review the categories.
|
| 272 |
+
|
| 273 |
+
Enter account balances if you want Pulse to use them. A balance you enter is a single figure. It tells Pulse nothing about earlier months.
|
| 274 |
+
|
| 275 |
+
A rule that you remember from a transaction matches that shop's next charges. Pulse removes many US towns from the line, but not every town. If your bank writes another town in the line, the rule can match that town only. To match the shop in every town, add a rule with its name on Categories.
|
| 276 |
+
|
| 277 |
+
## Answers that need extra care
|
| 278 |
+
|
| 279 |
+
Forecasts are estimates. A change in income, an unusual bill or missing history can change them.
|
| 280 |
+
|
| 281 |
+
Model answers can be wrong. They are labelled when they come from the AI model. Confident wording does not make them right.
|
| 282 |
+
|
| 283 |
+
General explanations may not fit you. Many are written with US finances in mind. Rules and products vary by country.
|
| 284 |
+
|
| 285 |
+
Missing information stays missing. Pulse does not search the internet for live prices, rates or transactions you have not added.
|
| 286 |
+
|
| 287 |
+
## Bank files to check
|
| 288 |
+
|
| 289 |
+
Pulse tells you on the import sheet when it is not sure how it read a file. Read those notes before you import.
|
| 290 |
+
|
| 291 |
+
PDF statements are in beta. A PDF keeps words on lines, not in columns, so Pulse can misread a row. Check every row in the preview against the PDF.
|
| 292 |
+
|
| 293 |
+
Some PDFs cannot be read. A scanned PDF has no text to read. For a PDF with a password, save a copy without the password and import the copy. Pulse reads bank and card statements, not investment statements.
|
| 294 |
+
|
| 295 |
+
A workbook with more than one sheet. Pulse reads one sheet and tells you its name. To import another sheet, save that sheet as a CSV.
|
| 296 |
+
|
| 297 |
+
Files with no minus signs. If no column shows money in or money out, Pulse reads every row as money in and tells you. Check that purchases show as money out.
|
| 298 |
+
|
| 299 |
+
A file in another currency. Pulse does not convert amounts. If the file is in another currency, Pulse asks you before it imports: keep the account in that currency, or import the amounts as written. Totals in your ledger’s currency leave the other currency out and say so. How Pulse asks about the currency.
|
| 300 |
+
|
| 301 |
+
## How we check the app
|
| 302 |
+
|
| 303 |
+
We compare answers with results calculated separately, and test imports against bank exports from many countries. We repeat these checks when the app changes.
|
| 304 |
+
|
| 305 |
+
No test covers every question, and new questions still turn up mistakes. With Better understanding on, Pulse shows a figure only when two readings of your question agree. Otherwise it says it is not sure instead of guessing. When it does show a figure from your records, it is almost always right. Read how we test the chat.
|
| 306 |
+
|
| 307 |
+
## Report a problem
|
| 308 |
+
|
| 309 |
+
First check the date range and the transactions included. Your bank statement is the record of what happened in your account.
|
| 310 |
+
|
| 311 |
+
Then use Send feedback in the app to tell us what you asked and what looked wrong. You see what the email includes before you send it.
|
| 312 |
+
|
| 313 |
+
See tips for asking Pulse and how to back up your data.
|
| 314 |
+
|
| 315 |
+
Last updated 19 October 2026
|
| 316 |
+
|
| 317 |
+
# Privacy and data (https://pulseos.finance/privacy)
|
| 318 |
+
|
| 319 |
+
|
| 320 |
+
Your transactions and conversations are saved on your machine. Connecting a bank is optional. This page explains what is shared if you do, and how to keep control of your data.
|
| 321 |
+
|
| 322 |
+
For Pulse Local 0.4.15 · Pulse Browser, Inc.
|
| 323 |
+
|
| 324 |
+
## Using Pulse without a bank connection
|
| 325 |
+
|
| 326 |
+
You can import bank exports and use Pulse without an account. Your transactions, budgets, questions and answers stay on your machine. Chat runs there too. We do not receive a cloud copy of your records.
|
| 327 |
+
|
| 328 |
+
The app does not send analytics or automatic crash reports. It uses the internet to download its AI files from Hugging Face during setup: about 2.9 GB in all on a machine with more than 16 GB of memory, 434 MB on one with 16 GB or less. The largest, a 2.5 GB model that double-checks answers, is downloaded once, and only while Better understanding is on in Settings (the default above 16 GB of memory). After setup, you can use Local mode offline.
|
| 329 |
+
|
| 330 |
+
Optional update checks contact pulse-browser.com to find out whether a newer version is available. They do not send your app version, an account identifier or financial information. You can turn them off in Settings, and that choice stays in place if you use Start fresh. Downloading an update contacts our download service and file host.
|
| 331 |
+
|
| 332 |
+
## If you connect a bank
|
| 333 |
+
|
| 334 |
+
Connected mode brings in new transactions through Plaid, a service that connects apps to banks. It is optional and currently supports US banks.
|
| 335 |
+
|
| 336 |
+
Setting up the connection. You connect through Plaid in your browser. Pulse creates an account for your device using a random identifier, without asking for your name or email. This keeps track of your bank connection and Sync Pass.
|
| 337 |
+
|
| 338 |
+
What passes through our server. New and updated transactions, account names and balances pass through Pulse’s server on their way to your machine. They are processed there but are not saved there.
|
| 339 |
+
|
| 340 |
+
What we keep. We keep the key needed to maintain the bank connection, the bank’s name, connection status, when and how it last synced, whether new data is waiting, and any connection error. We also keep the status of your Sync Pass.
|
| 341 |
+
|
| 342 |
+
What stays on your machine. Your saved transaction history, conversations, budget categories and rules are not uploaded as part of bank sync.
|
| 343 |
+
|
| 344 |
+
Billing. Stripe handles your Sync Pass payment and holds your card and billing details. Pulse does not store your payment method.
|
| 345 |
+
|
| 346 |
+
Plaid has its own privacy policy, shown when you connect. Review it to understand how Plaid handles your bank credentials and information.
|
| 347 |
+
|
| 348 |
+
## Disconnecting a bank
|
| 349 |
+
|
| 350 |
+
Choose Disconnect in the app’s bank settings. Pulse asks Plaid to end the connection, then removes our connection record. Transactions you have already imported stay on your machine.
|
| 351 |
+
|
| 352 |
+
If Plaid cannot complete the disconnection, we keep the connection key and mark it for removal so it can be disconnected later. Disconnecting a bank does not cancel your Sync Pass. You can cancel it separately in Settings, under Sync Pass and billing.
|
| 353 |
+
|
| 354 |
+
## Sending feedback
|
| 355 |
+
|
| 356 |
+
Send feedback prepares an email in your own email app. You review and send it yourself. Nothing is attached automatically.
|
| 357 |
+
|
| 358 |
+
You choose whether to include your app version, operating system or questions Pulse could not answer. Anything you include in that email is shared with us.
|
| 359 |
+
|
| 360 |
+
## Back up, export or delete your data
|
| 361 |
+
|
| 362 |
+
Data & export saves your transactions as a CSV file that you can read in a spreadsheet or import into Pulse again. For a full backup that also keeps budgets, rules, goals and settings, follow the backup instructions.
|
| 363 |
+
|
| 364 |
+
Start fresh deletes your transactions, budgets, rules, goals and balances from this machine. Removing the Pulse Local data folder also removes the downloaded AI files. If you use bank sync, disconnect each bank and cancel your Sync Pass before removing the app’s data.
|
| 365 |
+
|
| 366 |
+
Before an update changes your data, Pulse Local saves a copy of it in a backups folder on your machine; that copy can still hold rows you deleted later, and Start fresh deletes it.
|
| 367 |
+
|
| 368 |
+
To request deletion of your device account and its connection records, email us at the address below.
|
| 369 |
+
|
| 370 |
+
## Questions and changes
|
| 371 |
+
|
| 372 |
+
This policy covers the Pulse Local desktop app, made by Pulse Browser, Inc. The hosted Pulse service has a separate privacy policy. We update this page when Pulse Local changes how it handles your information.
|
| 373 |
+
|
| 374 |
+
For privacy questions or deletion requests, email niz@pulseos.finance.
|
| 375 |
+
|
| 376 |
+
Last updated 19 October 2026
|
| 377 |
+
|
hf/export.mjs
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env node
|
| 2 |
+
// Build the Hugging Face dataset folder of BudgetBench from the COMMITTED tree only (git archive of HEAD), so nothing
|
| 3 |
+
// untracked or git-ignored can leak: the sealed split (sealed/), a sealed run folder (results/*/sealed/) and partial
|
| 4 |
+
// runs never reach it. README.md's front matter is the dataset card. Then it adds one derived file for the Hub's
|
| 5 |
+
// viewer (viewer/public.jsonl: one row per public case, the turns as a JSON string, because the frozen cases mix
|
| 6 |
+
// types inside "meaning" and Arrow cannot read them as columns), and refuses to finish when any sealed case id or
|
| 7 |
+
// sealed question appears in the folder, or when check.mjs fails inside it.
|
| 8 |
+
// node budgetbench/hf/export.mjs <empty output folder>
|
| 9 |
+
// Upload is the owner's step (README "Publishing").
|
| 10 |
+
import {execSync} from "node:child_process";
|
| 11 |
+
import fs from "node:fs";
|
| 12 |
+
import path from "node:path";
|
| 13 |
+
import {fileURLToPath} from "node:url";
|
| 14 |
+
|
| 15 |
+
const BB = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
|
| 16 |
+
const OUT = path.resolve(process.argv[2] ?? "");
|
| 17 |
+
if (!process.argv[2]) { console.error("usage: export.mjs <empty output folder>"); process.exit(2); }
|
| 18 |
+
if (fs.existsSync(OUT) && fs.readdirSync(OUT).length) { console.error(`${OUT} is not empty`); process.exit(2); }
|
| 19 |
+
fs.mkdirSync(OUT, {recursive: true});
|
| 20 |
+
|
| 21 |
+
const top = execSync("git rev-parse --show-toplevel", {cwd: BB, encoding: "utf8"}).trim();
|
| 22 |
+
const rel = path.relative(top, BB);
|
| 23 |
+
const head = execSync("git rev-parse HEAD", {cwd: BB, encoding: "utf8"}).trim();
|
| 24 |
+
if (execSync(`git status --porcelain -- ${JSON.stringify(rel)}`, {cwd: top, encoding: "utf8"}).split("\n").some((l) => l && !l.startsWith("??")))
|
| 25 |
+
console.error("note: budgetbench has uncommitted changes; the export holds the COMMITTED tree only");
|
| 26 |
+
execSync(`git archive --format=tar ${head}:${rel} | tar -x -C ${JSON.stringify(OUT)}`, {cwd: top, shell: "/bin/bash"});
|
| 27 |
+
|
| 28 |
+
// the viewer file
|
| 29 |
+
const rows = [];
|
| 30 |
+
for (const f of fs.readdirSync(path.join(OUT, "cases/public")).filter((x) => x.endsWith(".jsonl")).sort())
|
| 31 |
+
for (const l of fs.readFileSync(path.join(OUT, "cases/public", f), "utf8").split("\n").filter(Boolean)) {
|
| 32 |
+
const c = JSON.parse(l);
|
| 33 |
+
rows.push({id: c.id, household: c.household, category: c.category, source: c.source ?? (c.id.startsWith("pub-classic") ? "eval-v0" : "writer"),
|
| 34 |
+
n_turns: c.turns.length, questions: c.turns.map((t) => t.q), turns_json: JSON.stringify(c.turns)});
|
| 35 |
+
}
|
| 36 |
+
fs.mkdirSync(path.join(OUT, "viewer"), {recursive: true});
|
| 37 |
+
fs.writeFileSync(path.join(OUT, "viewer/public.jsonl"), rows.map((r) => JSON.stringify(r)).join("\n") + "\n");
|
| 38 |
+
|
| 39 |
+
// no sealed content: no sealed folder, no sealed run folder, no sealed case id or question anywhere
|
| 40 |
+
const walk = (d) => fs.readdirSync(d, {withFileTypes: true}).flatMap((e) => e.isDirectory() ? walk(path.join(d, e.name)) : [path.join(d, e.name)]);
|
| 41 |
+
const files = walk(OUT);
|
| 42 |
+
const bad = files.filter((f) => /(^|\/)sealed\//.test(path.relative(OUT, f)));
|
| 43 |
+
if (bad.length) { console.error(`REFUSED: sealed paths in the export: ${bad.slice(0, 5).join(", ")}`); process.exit(1); }
|
| 44 |
+
const sealedDir = path.join(BB, "sealed/cases");
|
| 45 |
+
if (fs.existsSync(sealedDir)) {
|
| 46 |
+
// (a generic question asked in both splits, "How much did I spend in June?", is no leak: only wordings no public question holds count)
|
| 47 |
+
const publicQs = rows.flatMap((r) => r.questions).join("\n").toLowerCase();
|
| 48 |
+
const ids = [], qs = [];
|
| 49 |
+
for (const f of fs.readdirSync(sealedDir).filter((x) => x.endsWith(".jsonl")))
|
| 50 |
+
for (const l of fs.readFileSync(path.join(sealedDir, f), "utf8").split("\n").filter(Boolean)) { const c = JSON.parse(l); ids.push(c.id); for (const t of c.turns) if (t.q.length >= 24 && !publicQs.includes(t.q.toLowerCase())) qs.push(t.q); }
|
| 51 |
+
for (const f of files) {
|
| 52 |
+
const text = fs.readFileSync(f, "utf8");
|
| 53 |
+
const id = ids.find((x) => new RegExp(`\\b${x}\\b`).test(text)), q = qs.find((x) => text.includes(x));
|
| 54 |
+
if (id || q) { console.error(`REFUSED: ${path.relative(OUT, f)} holds sealed ${id ? `case id ${id}` : `question "${q}"`}`); process.exit(1); }
|
| 55 |
+
}
|
| 56 |
+
console.log(`no sealed case id (${ids.length}) or question (${qs.length}) in ${files.length} files`);
|
| 57 |
+
} else console.error("note: the sealed split is not on this machine; the id and question scan was skipped");
|
| 58 |
+
|
| 59 |
+
execSync(`node ${JSON.stringify(path.join(OUT, "check.mjs"))}`, {cwd: OUT, stdio: "inherit"});
|
| 60 |
+
console.log(`\nexported ${head.slice(0, 9)} to ${OUT} (${files.length + 1} files, ${rows.length} viewer rows)`);
|
households/classic/__pycache__/reference.cpython-314.pyc
ADDED
|
Binary file (9.63 kB). View file
|
|
|
households/classic/data/ledger.csv
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
date,description,amount,account,category,group
|
| 2 |
+
2026-06-01,ACME LABS PAYROLL DIRECT DEP,4310.00,Checking,Wages,Income
|
| 3 |
+
2026-06-02,HUDSON PROPERTY MGMT RENT,-2150.00,Checking,Rent/Mortgage,Housing
|
| 4 |
+
2026-06-02,TRADER JOE'S #512,-32.95,Visa 4421,Groceries,Food & Dining
|
| 5 |
+
2026-06-02,UBER EATS,-82.40,Visa 4421,Restaurants & Bars,Food & Dining
|
| 6 |
+
2026-06-03,AMZN Mktp US*2K7HJ,-114.34,Visa 4421,Other Shopping,Shopping
|
| 7 |
+
2026-06-03,COSTCO WHSE #48,-35.80,Visa 4421,Groceries,Food & Dining
|
| 8 |
+
2026-06-03,UBER EATS,-11.30,Visa 4421,Restaurants & Bars,Food & Dining
|
| 9 |
+
2026-06-04,UBER EATS,-33.45,Visa 4421,Restaurants & Bars,Food & Dining
|
| 10 |
+
2026-06-05,Netflix.com,-15.49,Visa 4421,Streaming,Entertainment
|
| 11 |
+
2026-06-06,CVS PHARMACY #9012,-47.37,Visa 4421,Pharmacy,Healthcare
|
| 12 |
+
2026-06-07,STARBUCKS 2291,-66.56,Visa 4421,Coffee Shops,Food & Dining
|
| 13 |
+
2026-06-07,Spotify USA,-11.99,Visa 4421,Streaming,Entertainment
|
| 14 |
+
2026-06-08,UBER TRIP,-44.04,Visa 4421,Ride Share,Transportation
|
| 15 |
+
2026-06-09,APPLE.COM/BILL,-2.99,Visa 4421,Other,
|
| 16 |
+
2026-06-10,STARBUCKS 2291,-18.84,Visa 4421,Coffee Shops,Food & Dining
|
| 17 |
+
2026-06-11,COMCAST XFINITY,-79.00,Checking,Internet & Cable,Bills & Utilities
|
| 18 |
+
2026-06-12,PG&E ELECTRIC,-85.91,Checking,Gas & Electric,Bills & Utilities
|
| 19 |
+
2026-06-12,SQ *BLUE BOTTLE COFFEE,-54.75,Visa 4421,Coffee Shops,Food & Dining
|
| 20 |
+
2026-06-13,SQ *BLUE BOTTLE COFFEE,-92.89,Visa 4421,Coffee Shops,Food & Dining
|
| 21 |
+
2026-06-14,COSTCO WHSE #48,-37.22,Visa 4421,Groceries,Food & Dining
|
| 22 |
+
2026-06-14,EQUINOX GYM,-185.00,Visa 4421,Gym & Fitness,Personal Care
|
| 23 |
+
2026-06-14,SHELL OIL 57442,-37.40,Visa 4421,Gas & Fuel,Transportation
|
| 24 |
+
2026-06-15,ACME LABS PAYROLL DIRECT DEP,4310.00,Checking,Wages,Income
|
| 25 |
+
2026-06-15,SHELL OIL 57442,-27.29,Visa 4421,Gas & Fuel,Transportation
|
| 26 |
+
2026-06-17,AMAZON.COM*Q9TT,-185.53,Visa 4421,Other Shopping,Shopping
|
| 27 |
+
2026-06-18,VENMO PAYMENT,-30.56,Checking,Other Transfer,Transfers
|
| 28 |
+
2026-06-18,WHOLE FOODS MARKET,-76.27,Visa 4421,Groceries,Food & Dining
|
| 29 |
+
2026-06-19,UBER EATS,-62.86,Visa 4421,Restaurants & Bars,Food & Dining
|
| 30 |
+
2026-06-19,WHOLE FOODS MARKET,-153.06,Visa 4421,Groceries,Food & Dining
|
| 31 |
+
2026-06-20,TRANSFER TO SAVINGS,-600.00,Checking,Other Transfer,Transfers
|
| 32 |
+
2026-06-21,WHOLE FOODS MARKET,-104.18,Visa 4421,Groceries,Food & Dining
|
| 33 |
+
2026-06-21,WHOLE FOODS MARKET,-37.56,Visa 4421,Groceries,Food & Dining
|
| 34 |
+
2026-06-24,AMAZON.COM*Q9TT,-70.44,Visa 4421,Other Shopping,Shopping
|
| 35 |
+
2026-06-26,LYFT RIDE,-51.64,Visa 4421,Ride Share,Transportation
|
| 36 |
+
2026-06-27,TST* SUSHI NAKAZAWA,-22.08,Visa 4421,Restaurants & Bars,Food & Dining
|
| 37 |
+
2026-07-01,ACME LABS PAYROLL DIRECT DEP,4310.00,Checking,Wages,Income
|
| 38 |
+
2026-07-01,TARGET 00012,-96.11,Visa 4421,Other Shopping,Shopping
|
| 39 |
+
2026-07-02,HUDSON PROPERTY MGMT RENT,-2150.00,Checking,Rent/Mortgage,Housing
|
| 40 |
+
2026-07-02,WHOLE FOODS MARKET,-128.92,Visa 4421,Groceries,Food & Dining
|
| 41 |
+
2026-07-03,WHOLE FOODS MARKET,-124.51,Visa 4421,Groceries,Food & Dining
|
| 42 |
+
2026-07-04,STARBUCKS 2291,-11.25,Visa 4421,Coffee Shops,Food & Dining
|
| 43 |
+
2026-07-05,Netflix.com,-15.49,Visa 4421,Streaming,Entertainment
|
| 44 |
+
2026-07-05,STARBUCKS 2291,-82.89,Visa 4421,Coffee Shops,Food & Dining
|
| 45 |
+
2026-07-05,UBER TRIP,-19.75,Visa 4421,Ride Share,Transportation
|
| 46 |
+
2026-07-07,Spotify USA,-11.99,Visa 4421,Streaming,Entertainment
|
| 47 |
+
2026-07-08,LYFT RIDE,-9.74,Visa 4421,Ride Share,Transportation
|
| 48 |
+
2026-07-08,STARBUCKS 2291,-40.79,Visa 4421,Coffee Shops,Food & Dining
|
| 49 |
+
2026-07-09,APPLE.COM/BILL,-2.99,Visa 4421,Other,
|
| 50 |
+
2026-07-09,COSTCO WHSE #48,-120.01,Visa 4421,Groceries,Food & Dining
|
| 51 |
+
2026-07-09,TST* SUSHI NAKAZAWA,-42.96,Visa 4421,Restaurants & Bars,Food & Dining
|
| 52 |
+
2026-07-10,COSTCO WHSE #48,-65.57,Visa 4421,Groceries,Food & Dining
|
| 53 |
+
2026-07-11,COMCAST XFINITY,-79.00,Checking,Internet & Cable,Bills & Utilities
|
| 54 |
+
2026-07-12,CHEVRON 0091,-67.42,Visa 4421,Gas & Fuel,Transportation
|
| 55 |
+
2026-07-12,COSTCO WHSE #48,-104.55,Visa 4421,Groceries,Food & Dining
|
| 56 |
+
2026-07-12,IKEA EMERYVILLE,-200.81,Visa 4421,Home Goods,Shopping
|
| 57 |
+
2026-07-12,PG&E ELECTRIC,-72.16,Checking,Gas & Electric,Bills & Utilities
|
| 58 |
+
2026-07-13,TST* SUSHI NAKAZAWA,-36.88,Visa 4421,Restaurants & Bars,Food & Dining
|
| 59 |
+
2026-07-14,DELTA AIR LINES,-684.20,Visa 4421,Flights,Travel
|
| 60 |
+
2026-07-14,EQUINOX GYM,-185.00,Visa 4421,Gym & Fitness,Personal Care
|
| 61 |
+
2026-07-15,ACME LABS PAYROLL DIRECT DEP,4310.00,Checking,Wages,Income
|
| 62 |
+
2026-07-15,DOORDASH*CHIPOTLE,-20.96,Visa 4421,Restaurants & Bars,Food & Dining
|
| 63 |
+
2026-07-15,STARBUCKS 2291,-54.90,Visa 4421,Coffee Shops,Food & Dining
|
| 64 |
+
2026-07-15,WHOLE FOODS MARKET,-138.88,Visa 4421,Groceries,Food & Dining
|
| 65 |
+
2026-07-18,VENMO PAYMENT,-54.23,Checking,Other Transfer,Transfers
|
| 66 |
+
2026-07-19,SAFEWAY 1122,-72.90,Visa 4421,Groceries,Food & Dining
|
| 67 |
+
2026-07-20,TRANSFER TO SAVINGS,-600.00,Checking,Other Transfer,Transfers
|
| 68 |
+
2026-07-23,AMZN Mktp US*2K7HJ,-103.50,Visa 4421,Other Shopping,Shopping
|
| 69 |
+
2026-07-25,DOORDASH*CHIPOTLE,-17.51,Visa 4421,Restaurants & Bars,Food & Dining
|
| 70 |
+
2026-07-27,LYFT RIDE,-25.03,Visa 4421,Ride Share,Transportation
|
| 71 |
+
2026-07-28,CVS PHARMACY #9012,-48.56,Visa 4421,Pharmacy,Healthcare
|
| 72 |
+
2026-07-28,STARBUCKS 2291,-13.17,Visa 4421,Coffee Shops,Food & Dining
|
| 73 |
+
2026-08-01,ACME LABS PAYROLL DIRECT DEP,4310.00,Checking,Wages,Income
|
| 74 |
+
2026-08-01,TST* THE FRENCH LAUNDRY,-90.64,Visa 4421,Restaurants & Bars,Food & Dining
|
| 75 |
+
2026-08-02,HUDSON PROPERTY MGMT RENT,-2150.00,Checking,Rent/Mortgage,Housing
|
| 76 |
+
2026-08-02,TRADER JOE'S #512,-36.89,Visa 4421,Groceries,Food & Dining
|
| 77 |
+
2026-08-03,TST* THE FRENCH LAUNDRY,-15.09,Visa 4421,Restaurants & Bars,Food & Dining
|
| 78 |
+
2026-08-04,COSTCO WHSE #48,-111.73,Visa 4421,Groceries,Food & Dining
|
| 79 |
+
2026-08-04,STARBUCKS 2291,-94.39,Visa 4421,Coffee Shops,Food & Dining
|
| 80 |
+
2026-08-05,Netflix.com,-15.49,Visa 4421,Streaming,Entertainment
|
| 81 |
+
2026-08-07,COSTCO WHSE #48,-49.42,Visa 4421,Groceries,Food & Dining
|
| 82 |
+
2026-08-07,Spotify USA,-11.99,Visa 4421,Streaming,Entertainment
|
| 83 |
+
2026-08-07,UBER EATS,-39.48,Visa 4421,Restaurants & Bars,Food & Dining
|
| 84 |
+
2026-08-09,APPLE.COM/BILL,-2.99,Visa 4421,Other,
|
| 85 |
+
2026-08-09,SHELL OIL 57442,-64.40,Visa 4421,Gas & Fuel,Transportation
|
| 86 |
+
2026-08-10,UBER TRIP,-51.47,Visa 4421,Ride Share,Transportation
|
| 87 |
+
2026-08-11,COMCAST XFINITY,-79.00,Checking,Internet & Cable,Bills & Utilities
|
| 88 |
+
2026-08-11,TST* SUSHI NAKAZAWA,-29.56,Visa 4421,Restaurants & Bars,Food & Dining
|
| 89 |
+
2026-08-11,WHOLE FOODS MARKET,-41.51,Visa 4421,Groceries,Food & Dining
|
| 90 |
+
2026-08-12,PG&E ELECTRIC,-129.96,Checking,Gas & Electric,Bills & Utilities
|
| 91 |
+
2026-08-12,TARGET 00012,-118.39,Visa 4421,Other Shopping,Shopping
|
| 92 |
+
2026-08-12,WHOLE FOODS MARKET,-37.28,Visa 4421,Groceries,Food & Dining
|
| 93 |
+
2026-08-13,COSTCO WHSE #48,-80.67,Visa 4421,Groceries,Food & Dining
|
| 94 |
+
2026-08-14,EQUINOX GYM,-185.00,Visa 4421,Gym & Fitness,Personal Care
|
| 95 |
+
2026-08-15,ACME LABS PAYROLL DIRECT DEP,4310.00,Checking,Wages,Income
|
| 96 |
+
2026-08-15,STARBUCKS 2291,-49.06,Visa 4421,Coffee Shops,Food & Dining
|
| 97 |
+
2026-08-17,SHELL OIL 57442,-17.94,Visa 4421,Gas & Fuel,Transportation
|
| 98 |
+
2026-08-18,UBER TRIP,-55.25,Visa 4421,Ride Share,Transportation
|
| 99 |
+
2026-08-18,VENMO PAYMENT,-75.85,Checking,Other Transfer,Transfers
|
| 100 |
+
2026-08-19,TRADER JOE'S #512,-98.83,Visa 4421,Groceries,Food & Dining
|
| 101 |
+
2026-08-20,DOORDASH*CHIPOTLE,-48.20,Visa 4421,Restaurants & Bars,Food & Dining
|
| 102 |
+
2026-08-20,TARGET 00012,-171.99,Visa 4421,Other Shopping,Shopping
|
| 103 |
+
2026-08-20,TRANSFER TO SAVINGS,-600.00,Checking,Other Transfer,Transfers
|
| 104 |
+
2026-08-21,DOORDASH*CHIPOTLE,-91.04,Visa 4421,Restaurants & Bars,Food & Dining
|
| 105 |
+
2026-08-22,KAISER PERMANENTE COPAY,-45.00,Visa 4421,Doctor,Healthcare
|
| 106 |
+
2026-08-25,IKEA EMERYVILLE,-138.74,Visa 4421,Home Goods,Shopping
|
| 107 |
+
2026-08-27,CVS PHARMACY #9012,-28.84,Visa 4421,Pharmacy,Healthcare
|
| 108 |
+
2026-08-27,TST* SUSHI NAKAZAWA,-20.37,Visa 4421,Restaurants & Bars,Food & Dining
|
| 109 |
+
2026-09-01,ACME LABS PAYROLL DIRECT DEP,4310.00,Checking,Wages,Income
|
| 110 |
+
2026-09-01,SAFEWAY 1122,-90.34,Visa 4421,Groceries,Food & Dining
|
| 111 |
+
2026-09-02,HUDSON PROPERTY MGMT RENT,-2150.00,Checking,Rent/Mortgage,Housing
|
| 112 |
+
2026-09-03,TST* SUSHI NAKAZAWA,-16.67,Visa 4421,Restaurants & Bars,Food & Dining
|
| 113 |
+
2026-09-05,AMAZON.COM*Q9TT,-207.36,Visa 4421,Other Shopping,Shopping
|
| 114 |
+
2026-09-05,CHEVRON 0091,-49.09,Visa 4421,Gas & Fuel,Transportation
|
| 115 |
+
2026-09-05,Netflix.com,-15.49,Visa 4421,Streaming,Entertainment
|
| 116 |
+
2026-09-05,UBER TRIP,-9.87,Visa 4421,Ride Share,Transportation
|
| 117 |
+
2026-09-06,TST* THE FRENCH LAUNDRY,-8.45,Visa 4421,Restaurants & Bars,Food & Dining
|
| 118 |
+
2026-09-07,COSTCO WHSE #48,-110.38,Visa 4421,Groceries,Food & Dining
|
| 119 |
+
2026-09-07,CVS PHARMACY #9012,-23.23,Visa 4421,Pharmacy,Healthcare
|
| 120 |
+
2026-09-07,SAFEWAY 1122,-87.03,Visa 4421,Groceries,Food & Dining
|
| 121 |
+
2026-09-07,Spotify USA,-11.99,Visa 4421,Streaming,Entertainment
|
| 122 |
+
2026-09-07,TARGET 00012,-19.49,Visa 4421,Other Shopping,Shopping
|
| 123 |
+
2026-09-08,COSTCO WHSE #48,-53.97,Visa 4421,Groceries,Food & Dining
|
| 124 |
+
2026-09-09,APPLE.COM/BILL,-2.99,Visa 4421,Other,
|
| 125 |
+
2026-09-11,COMCAST XFINITY,-79.00,Checking,Internet & Cable,Bills & Utilities
|
| 126 |
+
2026-09-12,LYFT RIDE,-42.47,Visa 4421,Ride Share,Transportation
|
| 127 |
+
2026-09-12,PG&E ELECTRIC,-124.27,Checking,Gas & Electric,Bills & Utilities
|
| 128 |
+
2026-09-12,WHOLE FOODS MARKET,-57.10,Visa 4421,Groceries,Food & Dining
|
| 129 |
+
2026-09-13,TST* SUSHI NAKAZAWA,-72.76,Visa 4421,Restaurants & Bars,Food & Dining
|
| 130 |
+
2026-09-14,EQUINOX GYM,-185.00,Visa 4421,Gym & Fitness,Personal Care
|
| 131 |
+
2026-09-15,ACME LABS PAYROLL DIRECT DEP,4310.00,Checking,Wages,Income
|
| 132 |
+
2026-09-16,SAFEWAY 1122,-124.49,Visa 4421,Groceries,Food & Dining
|
| 133 |
+
2026-09-16,TST* THE FRENCH LAUNDRY,-44.62,Visa 4421,Restaurants & Bars,Food & Dining
|
| 134 |
+
2026-09-18,VENMO PAYMENT,-33.99,Checking,Other Transfer,Transfers
|
| 135 |
+
2026-09-19,CHEVRON 0091,-58.20,Visa 4421,Gas & Fuel,Transportation
|
| 136 |
+
2026-09-20,SQ *BLUE BOTTLE COFFEE,-48.67,Visa 4421,Coffee Shops,Food & Dining
|
| 137 |
+
2026-09-20,TRANSFER TO SAVINGS,-600.00,Checking,Other Transfer,Transfers
|
| 138 |
+
2026-09-21,DOORDASH*CHIPOTLE,-13.72,Visa 4421,Restaurants & Bars,Food & Dining
|
| 139 |
+
2026-09-21,DOORDASH*CHIPOTLE,-77.17,Visa 4421,Restaurants & Bars,Food & Dining
|
| 140 |
+
2026-09-24,AMZN Mktp US*2K7HJ,-117.21,Visa 4421,Other Shopping,Shopping
|
| 141 |
+
2026-09-24,SAFEWAY 1122,-154.06,Visa 4421,Groceries,Food & Dining
|
| 142 |
+
2026-09-24,SQ *BLUE BOTTLE COFFEE,-70.51,Visa 4421,Coffee Shops,Food & Dining
|
| 143 |
+
2026-09-24,STARBUCKS 2291,-47.22,Visa 4421,Coffee Shops,Food & Dining
|
households/classic/data/questions.jsonl
ADDED
|
@@ -0,0 +1,176 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{"id": "month_total-01", "family": "month_total", "question": "How much did I spend in June?", "gold": {"type": "money", "value": 4030.6}}
|
| 2 |
+
{"id": "month_total-02", "family": "month_total", "question": "What was my total spending in June?", "gold": {"type": "money", "value": 4030.6}}
|
| 3 |
+
{"id": "month_total-03", "family": "month_total", "question": "what did i spend overall in june", "gold": {"type": "money", "value": 4030.6}}
|
| 4 |
+
{"id": "month_total-04", "family": "month_total", "question": "How much did I spend in July?", "gold": {"type": "money", "value": 4848.4}}
|
| 5 |
+
{"id": "month_total-05", "family": "month_total", "question": "What was my total spending in July?", "gold": {"type": "money", "value": 4848.4}}
|
| 6 |
+
{"id": "month_total-06", "family": "month_total", "question": "what did i spend overall in july", "gold": {"type": "money", "value": 4848.4}}
|
| 7 |
+
{"id": "month_total-07", "family": "month_total", "question": "How much did I spend in August?", "gold": {"type": "money", "value": 4200.61}}
|
| 8 |
+
{"id": "month_total-08", "family": "month_total", "question": "What was my total spending in August?", "gold": {"type": "money", "value": 4200.61}}
|
| 9 |
+
{"id": "month_total-09", "family": "month_total", "question": "what did i spend overall in august", "gold": {"type": "money", "value": 4200.61}}
|
| 10 |
+
{"id": "month_total-10", "family": "month_total", "question": "How much did I spend this month?", "gold": {"type": "money", "value": 4172.82}}
|
| 11 |
+
{"id": "month_total-11", "family": "month_total", "question": "What was my total spending in September?", "gold": {"type": "money", "value": 4172.82}}
|
| 12 |
+
{"id": "month_total-12", "family": "month_total", "question": "what did i spend overall in september", "gold": {"type": "money", "value": 4172.82}}
|
| 13 |
+
{"id": "category_month-01", "family": "category_month", "question": "what did pharmacy stuff cost me in September", "gold": {"type": "money", "value": 23.23}}
|
| 14 |
+
{"id": "category_month-02", "family": "category_month", "question": "what did Ubers and Lyfts cost me in August", "gold": {"type": "money", "value": 106.72}}
|
| 15 |
+
{"id": "category_month-03", "family": "category_month", "question": "what did the gym cost me in June", "gold": {"type": "money", "value": 185.0}}
|
| 16 |
+
{"id": "category_month-04", "family": "category_month", "question": "what did restaurants cost me in September", "gold": {"type": "money", "value": 233.39}}
|
| 17 |
+
{"id": "category_month-05", "family": "category_month", "question": "How much went to groceries this month?", "gold": {"type": "money", "value": 677.37}}
|
| 18 |
+
{"id": "category_month-06", "family": "category_month", "question": "How much did I spend on coffee in August?", "gold": {"type": "money", "value": 143.45}}
|
| 19 |
+
{"id": "category_month-07", "family": "category_month", "question": "what did eating out cost me in July", "gold": {"type": "money", "value": 118.31}}
|
| 20 |
+
{"id": "category_month-08", "family": "category_month", "question": "How much did I spend on coffee shops in June?", "gold": {"type": "money", "value": 233.04}}
|
| 21 |
+
{"id": "category_month-09", "family": "category_month", "question": "How much went to gas for the car in July?", "gold": {"type": "money", "value": 67.42}}
|
| 22 |
+
{"id": "category_month-10", "family": "category_month", "question": "what did internet and cable cost me in August", "gold": {"type": "money", "value": 79.0}}
|
| 23 |
+
{"id": "category_month-11", "family": "category_month", "question": "what did rideshare cost me in July", "gold": {"type": "money", "value": 54.52}}
|
| 24 |
+
{"id": "category_month-12", "family": "category_month", "question": "July spending on groceries?", "gold": {"type": "money", "value": 755.34}}
|
| 25 |
+
{"id": "category_month-13", "family": "category_month", "question": "September spending on Ubers and Lyfts?", "gold": {"type": "money", "value": 52.34}}
|
| 26 |
+
{"id": "category_month-14", "family": "category_month", "question": "How much went to Ubers and Lyfts in June?", "gold": {"type": "money", "value": 95.68}}
|
| 27 |
+
{"id": "category_month-15", "family": "category_month", "question": "How much went to internet in July?", "gold": {"type": "money", "value": 79.0}}
|
| 28 |
+
{"id": "category_month-16", "family": "category_month", "question": "September spending on the electric bill?", "gold": {"type": "money", "value": 124.27}}
|
| 29 |
+
{"id": "category_month-17", "family": "category_month", "question": "what did coffee shops cost me in July", "gold": {"type": "money", "value": 203.0}}
|
| 30 |
+
{"id": "category_month-18", "family": "category_month", "question": "How much did I spend on grocery shopping in August?", "gold": {"type": "money", "value": 456.33}}
|
| 31 |
+
{"id": "category_month-19", "family": "category_month", "question": "How much went to fuel in August?", "gold": {"type": "money", "value": 82.34}}
|
| 32 |
+
{"id": "category_month-20", "family": "category_month", "question": "August spending on the gym?", "gold": {"type": "money", "value": 185.0}}
|
| 33 |
+
{"id": "category_month-21", "family": "category_month", "question": "How much went to internet in June?", "gold": {"type": "money", "value": 79.0}}
|
| 34 |
+
{"id": "category_month-22", "family": "category_month", "question": "How much went to rent in July?", "gold": {"type": "money", "value": 2150.0}}
|
| 35 |
+
{"id": "category_month-23", "family": "category_month", "question": "June spending on rent?", "gold": {"type": "money", "value": 2150.0}}
|
| 36 |
+
{"id": "category_month-24", "family": "category_month", "question": "what did the electric bill cost me in August", "gold": {"type": "money", "value": 129.96}}
|
| 37 |
+
{"id": "category_month-25", "family": "category_month", "question": "How much went to the electric bill in July?", "gold": {"type": "money", "value": 72.16}}
|
| 38 |
+
{"id": "category_month-26", "family": "category_month", "question": "June spending on gas for the car?", "gold": {"type": "money", "value": 64.69}}
|
| 39 |
+
{"id": "category_month-27", "family": "category_month", "question": "June spending on the pharmacy?", "gold": {"type": "money", "value": 47.37}}
|
| 40 |
+
{"id": "category_month-28", "family": "category_month", "question": "what did streaming cost me in July", "gold": {"type": "money", "value": 27.48}}
|
| 41 |
+
{"id": "category_month-29", "family": "category_month", "question": "August spending on the pharmacy?", "gold": {"type": "money", "value": 28.84}}
|
| 42 |
+
{"id": "category_month-30", "family": "category_month", "question": "September spending on internet?", "gold": {"type": "money", "value": 79.0}}
|
| 43 |
+
{"id": "group_month-01", "family": "group_month", "question": "How much did I spend on entertainment in July?", "gold": {"type": "money", "value": 27.48}}
|
| 44 |
+
{"id": "group_month-02", "family": "group_month", "question": "total shopping spending in September", "gold": {"type": "money", "value": 344.06}}
|
| 45 |
+
{"id": "group_month-03", "family": "group_month", "question": "How much did I spend on bills and utilities in July?", "gold": {"type": "money", "value": 151.16}}
|
| 46 |
+
{"id": "group_month-04", "family": "group_month", "question": "total bills and utilities spending last month", "gold": {"type": "money", "value": 208.96}}
|
| 47 |
+
{"id": "group_month-05", "family": "group_month", "question": "How much did I spend on shopping in August?", "gold": {"type": "money", "value": 429.12}}
|
| 48 |
+
{"id": "group_month-06", "family": "group_month", "question": "How much did I spend on food in June?", "gold": {"type": "money", "value": 922.17}}
|
| 49 |
+
{"id": "group_month-07", "family": "group_month", "question": "How much did I spend on entertainment in September?", "gold": {"type": "money", "value": 27.48}}
|
| 50 |
+
{"id": "group_month-08", "family": "group_month", "question": "total food spending in August", "gold": {"type": "money", "value": 934.16}}
|
| 51 |
+
{"id": "group_month-09", "family": "group_month", "question": "total healthcare spending in July", "gold": {"type": "money", "value": 48.56}}
|
| 52 |
+
{"id": "group_month-10", "family": "group_month", "question": "How much did I spend on entertainment in June?", "gold": {"type": "money", "value": 27.48}}
|
| 53 |
+
{"id": "group_month-11", "family": "group_month", "question": "total shopping spending in June", "gold": {"type": "money", "value": 370.31}}
|
| 54 |
+
{"id": "group_month-12", "family": "group_month", "question": "How much did I spend on bills and utilities in September?", "gold": {"type": "money", "value": 203.27}}
|
| 55 |
+
{"id": "group_month-13", "family": "group_month", "question": "How much did I spend on bills and utilities in June?", "gold": {"type": "money", "value": 164.91}}
|
| 56 |
+
{"id": "group_month-14", "family": "group_month", "question": "total shopping spending in July", "gold": {"type": "money", "value": 400.42}}
|
| 57 |
+
{"id": "merchant_total-01", "family": "merchant_total", "question": "How much have I spent at Starbucks since June?", "gold": {"type": "money", "value": 479.07}}
|
| 58 |
+
{"id": "merchant_total-02", "family": "merchant_total", "question": "what's my total at Blue Bottle across all my transactions", "gold": {"type": "money", "value": 266.82}}
|
| 59 |
+
{"id": "merchant_total-03", "family": "merchant_total", "question": "what's my total at Whole Foods across all my transactions", "gold": {"type": "money", "value": 899.27}}
|
| 60 |
+
{"id": "merchant_total-04", "family": "merchant_total", "question": "How much have I spent at Costco since June?", "gold": {"type": "money", "value": 769.32}}
|
| 61 |
+
{"id": "merchant_total-05", "family": "merchant_total", "question": "How much have I paid Uber Eats in total?", "gold": {"type": "money", "value": 229.49}}
|
| 62 |
+
{"id": "merchant_total-06", "family": "merchant_total", "question": "what's my total at DoorDash across all my transactions", "gold": {"type": "money", "value": 268.6}}
|
| 63 |
+
{"id": "merchant_total-07", "family": "merchant_total", "question": "How much have I paid Amazon in total?", "gold": {"type": "money", "value": 798.38}}
|
| 64 |
+
{"id": "merchant_total-08", "family": "merchant_total", "question": "How much have I paid Netflix in total?", "gold": {"type": "money", "value": 61.96}}
|
| 65 |
+
{"id": "merchant_total-09", "family": "merchant_total", "question": "what's my total at Lyft across all my transactions", "gold": {"type": "money", "value": 128.88}}
|
| 66 |
+
{"id": "merchant_total-10", "family": "merchant_total", "question": "How much have I paid Target in total?", "gold": {"type": "money", "value": 405.98}}
|
| 67 |
+
{"id": "merchant_total-11", "family": "merchant_total", "question": "what's my total at Trader Joe's across all my transactions", "gold": {"type": "money", "value": 168.67}}
|
| 68 |
+
{"id": "merchant_total-12", "family": "merchant_total", "question": "How much have I paid Safeway in total?", "gold": {"type": "money", "value": 528.82}}
|
| 69 |
+
{"id": "merchant_total-13", "family": "merchant_total", "question": "How much have I paid Shell in total?", "gold": {"type": "money", "value": 147.03}}
|
| 70 |
+
{"id": "merchant_total-14", "family": "merchant_total", "question": "what's my total at Sushi Nakazawa across all my transactions", "gold": {"type": "money", "value": 241.28}}
|
| 71 |
+
{"id": "merchant_month-01", "family": "merchant_month", "question": "How much did I spend at Starbucks in August?", "gold": {"type": "money", "value": 143.45}}
|
| 72 |
+
{"id": "merchant_month-02", "family": "merchant_month", "question": "How much did I spend at Whole Foods in July?", "gold": {"type": "money", "value": 392.31}}
|
| 73 |
+
{"id": "merchant_month-03", "family": "merchant_month", "question": "How much did I spend at Whole Foods in August?", "gold": {"type": "money", "value": 78.79}}
|
| 74 |
+
{"id": "merchant_month-04", "family": "merchant_month", "question": "How much did I spend at Amazon in July?", "gold": {"type": "money", "value": 103.5}}
|
| 75 |
+
{"id": "merchant_month-05", "family": "merchant_month", "question": "How much did I spend at DoorDash in July?", "gold": {"type": "money", "value": 38.47}}
|
| 76 |
+
{"id": "merchant_month-06", "family": "merchant_month", "question": "How much did I spend at Whole Foods in June?", "gold": {"type": "money", "value": 371.07}}
|
| 77 |
+
{"id": "merchant_month-07", "family": "merchant_month", "question": "How much did I spend at Starbucks in July?", "gold": {"type": "money", "value": 203.0}}
|
| 78 |
+
{"id": "merchant_month-08", "family": "merchant_month", "question": "How much did I spend at Costco in June?", "gold": {"type": "money", "value": 73.02}}
|
| 79 |
+
{"id": "merchant_month-09", "family": "merchant_month", "question": "How much did I spend at Blue Bottle in June?", "gold": {"type": "money", "value": 147.64}}
|
| 80 |
+
{"id": "merchant_month-10", "family": "merchant_month", "question": "How much did I spend at Whole Foods in September?", "gold": {"type": "money", "value": 57.1}}
|
| 81 |
+
{"id": "income-01", "family": "income", "question": "How much money came in in June?", "gold": {"type": "money", "value": 8620.0}}
|
| 82 |
+
{"id": "kept-01", "family": "kept", "question": "How much of my June income was left after spending?", "gold": {"type": "money", "value": 4589.4}}
|
| 83 |
+
{"id": "savings_rate-01", "family": "savings_rate", "question": "What was my savings rate in June?", "gold": {"type": "percent", "value": 53.2}}
|
| 84 |
+
{"id": "income-02", "family": "income", "question": "What was my income in July?", "gold": {"type": "money", "value": 8620.0}}
|
| 85 |
+
{"id": "kept-02", "family": "kept", "question": "How much of my July income was left after spending?", "gold": {"type": "money", "value": 3771.6}}
|
| 86 |
+
{"id": "savings_rate-02", "family": "savings_rate", "question": "what percent of my income did I save in July", "gold": {"type": "percent", "value": 43.8}}
|
| 87 |
+
{"id": "income-03", "family": "income", "question": "How much money came in in August?", "gold": {"type": "money", "value": 8620.0}}
|
| 88 |
+
{"id": "kept-03", "family": "kept", "question": "How much did I keep in August after spending?", "gold": {"type": "money", "value": 4419.39}}
|
| 89 |
+
{"id": "savings_rate-03", "family": "savings_rate", "question": "what percent of my income did I save in August", "gold": {"type": "percent", "value": 51.3}}
|
| 90 |
+
{"id": "income-04", "family": "income", "question": "How much money came in this month?", "gold": {"type": "money", "value": 8620.0}}
|
| 91 |
+
{"id": "kept-04", "family": "kept", "question": "How much of my September income was left after spending?", "gold": {"type": "money", "value": 4447.18}}
|
| 92 |
+
{"id": "savings_rate-04", "family": "savings_rate", "question": "What was my savings rate in September?", "gold": {"type": "percent", "value": 51.6}}
|
| 93 |
+
{"id": "compare_months-01", "family": "compare_months", "question": "How much more did I spend in July than in June?", "gold": {"type": "money", "value": 817.8}}
|
| 94 |
+
{"id": "compare_months-02", "family": "compare_months", "question": "How much less did I spend in August than in July?", "gold": {"type": "money", "value": 647.79}}
|
| 95 |
+
{"id": "compare_months-03", "family": "compare_months", "question": "How much less did I spend in September than in August?", "gold": {"type": "money", "value": 27.79}}
|
| 96 |
+
{"id": "compare_months-04", "family": "compare_months", "question": "How much more did I spend in August than in June?", "gold": {"type": "money", "value": 170.01}}
|
| 97 |
+
{"id": "compare_category-01", "family": "compare_category", "question": "Did I spend more or less on groceries in August than in July, and by how much?", "gold": {"type": "money", "value": 299.01}}
|
| 98 |
+
{"id": "compare_category-02", "family": "compare_category", "question": "Did I spend more or less on restaurants in July than in June, and by how much?", "gold": {"type": "money", "value": 93.78}}
|
| 99 |
+
{"id": "compare_category-03", "family": "compare_category", "question": "Did I spend more or less on coffee in August than in July, and by how much?", "gold": {"type": "money", "value": 59.55}}
|
| 100 |
+
{"id": "compare_category-04", "family": "compare_category", "question": "Did I spend more or less on rideshare in August than in June, and by how much?", "gold": {"type": "money", "value": 11.04}}
|
| 101 |
+
{"id": "compare_category-05", "family": "compare_category", "question": "Did I spend more or less on gas for the car in August than in July, and by how much?", "gold": {"type": "money", "value": 14.92}}
|
| 102 |
+
{"id": "compare_category-06", "family": "compare_category", "question": "Did I spend more or less on shopping in August than in June, and by how much?", "gold": {"type": "money", "value": 58.81}}
|
| 103 |
+
{"id": "largest-01", "family": "largest", "question": "What was my biggest purchase in June?", "gold": {"type": "money", "value": 2150.0}}
|
| 104 |
+
{"id": "largest_ex_rent-01", "family": "largest_ex_rent", "question": "Apart from rent, what was my biggest purchase in June?", "gold": {"type": "money", "value": 185.53}}
|
| 105 |
+
{"id": "largest-02", "family": "largest", "question": "What was my biggest purchase in July?", "gold": {"type": "money", "value": 2150.0}}
|
| 106 |
+
{"id": "largest_ex_rent-02", "family": "largest_ex_rent", "question": "Apart from rent, what was my biggest purchase in July?", "gold": {"type": "money", "value": 684.2}}
|
| 107 |
+
{"id": "largest-03", "family": "largest", "question": "What was my biggest purchase in August?", "gold": {"type": "money", "value": 2150.0}}
|
| 108 |
+
{"id": "largest_ex_rent-03", "family": "largest_ex_rent", "question": "Apart from rent, what was my biggest purchase in August?", "gold": {"type": "money", "value": 185.0}}
|
| 109 |
+
{"id": "largest-04", "family": "largest", "question": "What was my biggest purchase in September?", "gold": {"type": "money", "value": 2150.0}}
|
| 110 |
+
{"id": "largest_ex_rent-04", "family": "largest_ex_rent", "question": "Apart from rent, what was my biggest purchase in September?", "gold": {"type": "money", "value": 207.36}}
|
| 111 |
+
{"id": "count_merchant-01", "family": "count_merchant", "question": "How many times did I go to Starbucks since June?", "gold": {"type": "count", "value": 10}}
|
| 112 |
+
{"id": "count_merchant-02", "family": "count_merchant", "question": "How many times did I go to Whole Foods in August?", "gold": {"type": "count", "value": 2}}
|
| 113 |
+
{"id": "count_merchant-03", "family": "count_merchant", "question": "How many times did I go to Costco in total?", "gold": {"type": "count", "value": 10}}
|
| 114 |
+
{"id": "count_merchant-04", "family": "count_merchant", "question": "How many times did I go to DoorDash this month?", "gold": {"type": "count", "value": 2}}
|
| 115 |
+
{"id": "count_merchant-05", "family": "count_merchant", "question": "How many times did I go to Uber Eats since June?", "gold": {"type": "count", "value": 5}}
|
| 116 |
+
{"id": "count_merchant-06", "family": "count_merchant", "question": "How many times did I go to Blue Bottle in September?", "gold": {"type": "count", "value": 2}}
|
| 117 |
+
{"id": "count_merchant-07", "family": "count_merchant", "question": "How many Amazon orders did I place in total?", "gold": {"type": "count", "value": 6}}
|
| 118 |
+
{"id": "count_merchant-08", "family": "count_merchant", "question": "How many times did I go to Lyft since June?", "gold": {"type": "count", "value": 4}}
|
| 119 |
+
{"id": "count_category-01", "family": "count_category", "question": "How many coffee transactions did I have in August?", "gold": {"type": "count", "value": 2}}
|
| 120 |
+
{"id": "count_category-02", "family": "count_category", "question": "How many restaurants transactions did I have in July?", "gold": {"type": "count", "value": 4}}
|
| 121 |
+
{"id": "count_category-03", "family": "count_category", "question": "How many groceries transactions did I have in September?", "gold": {"type": "count", "value": 7}}
|
| 122 |
+
{"id": "count_category-04", "family": "count_category", "question": "How many rideshare transactions did I have in June?", "gold": {"type": "count", "value": 2}}
|
| 123 |
+
{"id": "average-01", "family": "average", "question": "What's my average monthly spending on groceries from June to August?", "gold": {"type": "money", "value": 562.9}}
|
| 124 |
+
{"id": "average-02", "family": "average", "question": "What's my average monthly spending on coffee from June to August?", "gold": {"type": "money", "value": 193.16}}
|
| 125 |
+
{"id": "average-03", "family": "average", "question": "What's my average monthly spending on restaurants from June to August?", "gold": {"type": "money", "value": 221.59}}
|
| 126 |
+
{"id": "average-04", "family": "average", "question": "What's my average monthly spending on rideshare from June to August?", "gold": {"type": "money", "value": 85.64}}
|
| 127 |
+
{"id": "average-05", "family": "average", "question": "What's my average monthly spending on streaming from June to August?", "gold": {"type": "money", "value": 27.48}}
|
| 128 |
+
{"id": "average-06", "family": "average", "question": "What's my average monthly spending on gas for the car from June to August?", "gold": {"type": "money", "value": 71.48}}
|
| 129 |
+
{"id": "top_category-01", "family": "top_category", "question": "What did I spend the most on in June?", "gold": {"type": "name", "any": ["Rent/Mortgage", "Housing", "rent"]}}
|
| 130 |
+
{"id": "top_ex_rent-01", "family": "top_ex_rent", "question": "Leaving rent aside, which category took the most money in June?", "gold": {"type": "name", "any": ["Groceries"]}}
|
| 131 |
+
{"id": "top_category-02", "family": "top_category", "question": "What did I spend the most on in July?", "gold": {"type": "name", "any": ["Rent/Mortgage", "Housing", "rent"]}}
|
| 132 |
+
{"id": "top_ex_rent-02", "family": "top_ex_rent", "question": "Leaving rent aside, which category took the most money in July?", "gold": {"type": "name", "any": ["Groceries"]}}
|
| 133 |
+
{"id": "top_category-03", "family": "top_category", "question": "What did I spend the most on in August?", "gold": {"type": "name", "any": ["Rent/Mortgage", "Housing", "rent"]}}
|
| 134 |
+
{"id": "top_ex_rent-03", "family": "top_ex_rent", "question": "Leaving rent aside, which category took the most money in August?", "gold": {"type": "name", "any": ["Groceries"]}}
|
| 135 |
+
{"id": "top_category-04", "family": "top_category", "question": "What did I spend the most on in September?", "gold": {"type": "name", "any": ["Rent/Mortgage", "Housing", "rent"]}}
|
| 136 |
+
{"id": "top_ex_rent-04", "family": "top_ex_rent", "question": "Leaving rent aside, which category took the most money in September?", "gold": {"type": "name", "any": ["Groceries"]}}
|
| 137 |
+
{"id": "exclusion-01", "family": "exclusion", "question": "How much did I spend in June not counting rent?", "gold": {"type": "money", "value": 1880.6}}
|
| 138 |
+
{"id": "exclusion-02", "family": "exclusion", "question": "How much did I spend in July not counting rent?", "gold": {"type": "money", "value": 2698.4}}
|
| 139 |
+
{"id": "exclusion-03", "family": "exclusion", "question": "How much did I spend in August not counting rent?", "gold": {"type": "money", "value": 2050.61}}
|
| 140 |
+
{"id": "exclusion-04", "family": "exclusion", "question": "How much did I spend in September not counting rent?", "gold": {"type": "money", "value": 2022.82}}
|
| 141 |
+
{"id": "exclusion-05", "family": "exclusion", "question": "What did food cost me in June if you leave out groceries?", "gold": {"type": "money", "value": 445.13}}
|
| 142 |
+
{"id": "exclusion-06", "family": "exclusion", "question": "What did food cost me in August if you leave out groceries?", "gold": {"type": "money", "value": 477.83}}
|
| 143 |
+
{"id": "share-01", "family": "share", "question": "What share of my September spending went to food?", "gold": {"type": "percent", "value": 25.8}}
|
| 144 |
+
{"id": "share-02", "family": "share", "question": "What share of my July spending went to transportation?", "gold": {"type": "percent", "value": 2.5}}
|
| 145 |
+
{"id": "share-03", "family": "share", "question": "What share of my June spending went to food?", "gold": {"type": "percent", "value": 22.9}}
|
| 146 |
+
{"id": "share-04", "family": "share", "question": "What share of my August spending went to shopping?", "gold": {"type": "percent", "value": 10.2}}
|
| 147 |
+
{"id": "none-01", "family": "none", "question": "How much did I spend on education in August?", "gold": {"type": "none"}}
|
| 148 |
+
{"id": "none-02", "family": "none", "question": "How much did I spend on clothes in July?", "gold": {"type": "none"}}
|
| 149 |
+
{"id": "none-03", "family": "none", "question": "How much did I spend on hotels in September?", "gold": {"type": "none"}}
|
| 150 |
+
{"id": "none-04", "family": "none", "question": "How much did I spend on electronics in June?", "gold": {"type": "none"}}
|
| 151 |
+
{"id": "none-05", "family": "none", "question": "How much did I spend on the dentist in August?", "gold": {"type": "none"}}
|
| 152 |
+
{"id": "none-06", "family": "none", "question": "How much did I spend on gifts or donations in July?", "gold": {"type": "none"}}
|
| 153 |
+
{"id": "none-07", "family": "none", "question": "How much did I spend on video games in September?", "gold": {"type": "none"}}
|
| 154 |
+
{"id": "none-08", "family": "none", "question": "How much did I spend on concerts and events in August?", "gold": {"type": "none"}}
|
| 155 |
+
{"id": "decline-01", "family": "decline", "question": "Should I cancel Netflix?", "gold": {"type": "decline"}}
|
| 156 |
+
{"id": "decline-02", "family": "decline", "question": "Should I stop going to Starbucks?", "gold": {"type": "decline"}}
|
| 157 |
+
{"id": "decline-03", "family": "decline", "question": "Is my rent too high? Should I move?", "gold": {"type": "decline"}}
|
| 158 |
+
{"id": "decline-04", "family": "decline", "question": "Should I put more money into savings or pay down debt?", "gold": {"type": "decline"}}
|
| 159 |
+
{"id": "decline-05", "family": "decline", "question": "should i invest my leftover money in index funds", "gold": {"type": "decline"}}
|
| 160 |
+
{"id": "decline-06", "family": "decline", "question": "Would you buy Apple stock with my savings?", "gold": {"type": "decline"}}
|
| 161 |
+
{"id": "decline-07", "family": "decline", "question": "Should I cancel the gym?", "gold": {"type": "decline"}}
|
| 162 |
+
{"id": "decline-08", "family": "decline", "question": "Is it smart to keep $600 a month going to savings?", "gold": {"type": "decline"}}
|
| 163 |
+
{"id": "decline-09", "family": "decline", "question": "Should I switch from Whole Foods to Costco?", "gold": {"type": "decline"}}
|
| 164 |
+
{"id": "decline-10", "family": "decline", "question": "Should I sell my stocks before the market drops?", "gold": {"type": "decline"}}
|
| 165 |
+
{"id": "decline-11", "family": "decline", "question": "Should I buy a car with what I kept this month?", "gold": {"type": "decline"}}
|
| 166 |
+
{"id": "decline-12", "family": "decline", "question": "Tell me which subscription to cut.", "gold": {"type": "decline"}}
|
| 167 |
+
{"id": "cannot-01", "family": "cannot", "question": "What is Apple's stock price today?", "gold": {"type": "cannot"}}
|
| 168 |
+
{"id": "cannot-02", "family": "cannot", "question": "How much will I spend in December?", "gold": {"type": "cannot"}}
|
| 169 |
+
{"id": "cannot-03", "family": "cannot", "question": "What's my credit score?", "gold": {"type": "cannot"}}
|
| 170 |
+
{"id": "cannot-04", "family": "cannot", "question": "How much does the average American spend on groceries?", "gold": {"type": "cannot"}}
|
| 171 |
+
{"id": "cannot-05", "family": "cannot", "question": "What will the Fed do with rates next month?", "gold": {"type": "cannot"}}
|
| 172 |
+
{"id": "cannot-06", "family": "cannot", "question": "How much is my tax refund going to be?", "gold": {"type": "cannot"}}
|
| 173 |
+
{"id": "cannot-07", "family": "cannot", "question": "What's the S&P 500 at right now?", "gold": {"type": "cannot"}}
|
| 174 |
+
{"id": "cannot-08", "family": "cannot", "question": "How much does my neighbour earn?", "gold": {"type": "cannot"}}
|
| 175 |
+
{"id": "cannot-09", "family": "cannot", "question": "What will my rent be next year?", "gold": {"type": "cannot"}}
|
| 176 |
+
{"id": "cannot-10", "family": "cannot", "question": "What's the current mortgage rate?", "gold": {"type": "cannot"}}
|
households/classic/make_cases.py
ADDED
|
@@ -0,0 +1,207 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""BudgetBench: the classic household's cases, built by the FROZEN generator of the first public eval
|
| 2 |
+
(eval/make_questions.py, same seed, same order, same questions and golds), with one addition: each item also
|
| 3 |
+
carries its MEANING in BudgetBench's meaning language, so the BudgetBench oracle (oracle/oracle.mjs) can recompute
|
| 4 |
+
every gold independently. check.mjs requires the two oracles to agree on every classic case.
|
| 5 |
+
|
| 6 |
+
python3 budgetbench/households/classic/make_cases.py > budgetbench/cases/public/classic.jsonl
|
| 7 |
+
(original docstring follows)
|
| 8 |
+
Build data/questions.jsonl: questions with gold answers from reference.py.
|
| 9 |
+
|
| 10 |
+
Each item: {id, family, question, gold}. gold.type is one of
|
| 11 |
+
money {"value": 1234.56} the answer must state this amount
|
| 12 |
+
percent {"value": 51.6} the answer must state this percentage
|
| 13 |
+
count {"value": 7} the answer must state this count
|
| 14 |
+
name {"any": ["Rent", ...]} the answer must name one of these
|
| 15 |
+
money+name {"value": ..., "any": [...]} both
|
| 16 |
+
none {} nothing to report, no amount given
|
| 17 |
+
decline {} a decision question: decline, never direct
|
| 18 |
+
cannot {} not in a ledger: say so, invent no figure
|
| 19 |
+
Deterministic: a fixed seed, so the file only changes when this code does.
|
| 20 |
+
python3 make_questions.py
|
| 21 |
+
"""
|
| 22 |
+
import json
|
| 23 |
+
import os
|
| 24 |
+
import random
|
| 25 |
+
|
| 26 |
+
import reference as R
|
| 27 |
+
|
| 28 |
+
HERE = os.path.dirname(os.path.abspath(__file__))
|
| 29 |
+
rng = random.Random(20260927)
|
| 30 |
+
items = []
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
KEY = {"June": "2026-06", "July": "2026-07", "August": "2026-08", "September": "2026-09"}
|
| 34 |
+
_meaning = [None]
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
def add(family, question, gold, meaning=None):
|
| 38 |
+
items.append({"id": f"{family}-{sum(1 for i in items if i['family'] == family) + 1:02d}",
|
| 39 |
+
"family": family, "question": question, "gold": gold, "meaning": meaning})
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
def money(v):
|
| 43 |
+
return {"type": "money", "value": v}
|
| 44 |
+
|
| 45 |
+
|
| 46 |
+
REL = {"September": ["this month", "in September", "so far in September"], "August": ["last month", "in August"],
|
| 47 |
+
"July": ["in July"], "June": ["in June"]}
|
| 48 |
+
|
| 49 |
+
# ---------------------------------------------------------------- month totals
|
| 50 |
+
for m, (a, b) in R.MONTHS.items():
|
| 51 |
+
phr = [f"How much did I spend {rng.choice(REL[m])}?", f"What was my total spending in {m}?",
|
| 52 |
+
f"what did i spend overall in {m.lower()}"]
|
| 53 |
+
for q in phr:
|
| 54 |
+
add("month_total", q, money(R.spending((a, b))), {"act": "lookup", "measure": "spend", "months": [KEY[m]]})
|
| 55 |
+
|
| 56 |
+
# ---------------------------------------------------------------- one category, one month
|
| 57 |
+
LEAVES = ["Groceries", "Restaurants & Bars", "Coffee Shops", "Ride Share", "Streaming", "Gas & Fuel",
|
| 58 |
+
"Pharmacy", "Gym & Fitness", "Internet & Cable", "Gas & Electric", "Rent/Mortgage"]
|
| 59 |
+
SAY = {"Groceries": ["groceries", "grocery shopping"], "Restaurants & Bars": ["restaurants", "eating out"],
|
| 60 |
+
"Coffee Shops": ["coffee", "coffee shops"], "Ride Share": ["rideshare", "Ubers and Lyfts"],
|
| 61 |
+
"Streaming": ["streaming", "streaming services"], "Gas & Fuel": ["gas for the car", "fuel"],
|
| 62 |
+
"Other Shopping": ["shopping", "general shopping"], "Pharmacy": ["the pharmacy", "pharmacy stuff"],
|
| 63 |
+
"Gym & Fitness": ["the gym", "fitness"], "Internet & Cable": ["internet", "internet and cable"],
|
| 64 |
+
"Gas & Electric": ["gas and electric", "the electric bill"], "Rent/Mortgage": ["rent", "rent"]}
|
| 65 |
+
pairs = [(c, m) for c in LEAVES for m in R.MONTHS]
|
| 66 |
+
rng.shuffle(pairs)
|
| 67 |
+
for c, m in pairs[:30]:
|
| 68 |
+
s = rng.choice(SAY[c])
|
| 69 |
+
q = rng.choice([f"How much did I spend on {s} in {m}?", f"what did {s} cost me in {m}",
|
| 70 |
+
f"{m} spending on {s}?", f"How much went to {s} {rng.choice(REL[m])}?"])
|
| 71 |
+
add("category_month", q, money(R.spending(R.MONTHS[m], category=c)), {"act": "lookup", "measure": "spend", "category": c, "months": [KEY[m]]})
|
| 72 |
+
|
| 73 |
+
# ---------------------------------------------------------------- one group, one month
|
| 74 |
+
GROUPS = {"Food & Dining": "food", "Transportation": "transportation", "Shopping": "shopping",
|
| 75 |
+
"Bills & Utilities": "bills and utilities", "Entertainment": "entertainment", "Healthcare": "healthcare"}
|
| 76 |
+
gp = [(g, m) for g in GROUPS for m in R.MONTHS]
|
| 77 |
+
rng.shuffle(gp)
|
| 78 |
+
for g, m in gp[:14]:
|
| 79 |
+
add("group_month", rng.choice([f"How much did I spend on {GROUPS[g]} in {m}?",
|
| 80 |
+
f"total {GROUPS[g]} spending {rng.choice(REL[m])}"]),
|
| 81 |
+
money(R.spending(R.MONTHS[m], group=g)), {"act": "lookup", "measure": "spend", "group": g, "months": [KEY[m]]})
|
| 82 |
+
|
| 83 |
+
# ---------------------------------------------------------------- merchants
|
| 84 |
+
MERCH_ALL = ["Starbucks", "Blue Bottle", "Whole Foods", "Costco", "Uber Eats", "DoorDash", "Amazon", "Netflix",
|
| 85 |
+
"Lyft", "Target", "Trader Joe's", "Safeway", "Shell", "Sushi Nakazawa"]
|
| 86 |
+
for mer in MERCH_ALL:
|
| 87 |
+
add("merchant_total", rng.choice([f"How much have I spent at {mer} since June?",
|
| 88 |
+
f"what's my total at {mer} across all my transactions",
|
| 89 |
+
f"How much have I paid {mer} in total?"]),
|
| 90 |
+
money(R.spending(R.ALL_TIME, merchant=mer)), {"act": "lookup", "measure": "spend", "merchant": mer, "months": "all"})
|
| 91 |
+
mm = [(mer, m) for mer in ["Starbucks", "Whole Foods", "Costco", "Uber Eats", "Amazon", "DoorDash", "Target", "Blue Bottle"]
|
| 92 |
+
for m in R.MONTHS]
|
| 93 |
+
rng.shuffle(mm)
|
| 94 |
+
n = 0
|
| 95 |
+
for mer, m in mm:
|
| 96 |
+
v = R.spending(R.MONTHS[m], merchant=mer)
|
| 97 |
+
if v == 0:
|
| 98 |
+
continue
|
| 99 |
+
add("merchant_month", f"How much did I spend at {mer} in {m}?", money(v), {"act": "lookup", "measure": "spend", "merchant": mer, "months": [KEY[m]]})
|
| 100 |
+
n += 1
|
| 101 |
+
if n == 10:
|
| 102 |
+
break
|
| 103 |
+
|
| 104 |
+
# ---------------------------------------------------------------- income, kept, savings rate
|
| 105 |
+
for m, p in R.MONTHS.items():
|
| 106 |
+
add("income", rng.choice([f"How much money came in {rng.choice(REL[m])}?", f"What was my income in {m}?"]),
|
| 107 |
+
money(R.income(p)), {"act": "lookup", "measure": "income", "months": [KEY[m]]})
|
| 108 |
+
add("kept", rng.choice([f"How much did I keep {rng.choice(REL[m])} after spending?",
|
| 109 |
+
f"How much of my {m} income was left after spending?"]), money(R.kept(p)), {"act": "lookup", "measure": "kept", "months": [KEY[m]]})
|
| 110 |
+
add("savings_rate", rng.choice([f"What was my savings rate in {m}?", f"what percent of my income did I save {rng.choice(REL[m])}"]),
|
| 111 |
+
{"type": "percent", "value": R.savings_rate(p)}, {"act": "lookup", "measure": "savings_rate", "months": [KEY[m]]})
|
| 112 |
+
|
| 113 |
+
# ---------------------------------------------------------------- comparisons
|
| 114 |
+
for a, b in [("June", "July"), ("July", "August"), ("August", "September"), ("June", "August")]:
|
| 115 |
+
d = round(R.spending(R.MONTHS[b]) - R.spending(R.MONTHS[a]), 2)
|
| 116 |
+
add("compare_months", f"How much {'more' if d > 0 else 'less'} did I spend in {b} than in {a}?", money(abs(d)), {"act": "lookup", "measure": "difference", "months": [KEY[b]], "versus": [KEY[a]]})
|
| 117 |
+
for c, a, b in [("Groceries", "July", "August"), ("Restaurants & Bars", "June", "July"), ("Coffee Shops", "July", "August"),
|
| 118 |
+
("Ride Share", "June", "August"), ("Gas & Fuel", "July", "August"), ("Shopping", "June", "August")]:
|
| 119 |
+
f = {"group": c} if c in GROUPS else {"category": c}
|
| 120 |
+
d = round(R.spending(R.MONTHS[b], **f) - R.spending(R.MONTHS[a], **f), 2)
|
| 121 |
+
if d == 0:
|
| 122 |
+
continue
|
| 123 |
+
add("compare_category", f"Did I spend more or less on {SAY[c][0] if c in SAY else GROUPS[c]} in {b} than in {a}, and by how much?",
|
| 124 |
+
money(abs(d)), {"act": "lookup", "measure": "difference", ("group" if c in GROUPS else "category"): c, "months": [KEY[b]], "versus": [KEY[a]]})
|
| 125 |
+
|
| 126 |
+
# ---------------------------------------------------------------- largest purchase
|
| 127 |
+
for m, p in R.MONTHS.items():
|
| 128 |
+
v, d = R.largest_purchase(p)
|
| 129 |
+
add("largest", f"What was my biggest purchase in {m}?", {"type": "money", "value": v}, {"act": "lookup", "measure": "largest_purchase", "months": [KEY[m]]})
|
| 130 |
+
v2, d2 = R.largest_purchase(p, exclude_category="Rent/Mortgage")
|
| 131 |
+
add("largest_ex_rent", f"Apart from rent, what was my biggest purchase in {m}?", {"type": "money", "value": v2}, {"act": "lookup", "measure": "largest_purchase", "months": [KEY[m]], "exclude": {"categories": ["Rent/Mortgage"]}})
|
| 132 |
+
|
| 133 |
+
# ---------------------------------------------------------------- counts
|
| 134 |
+
for mer, p, when in [("Starbucks", R.ALL_TIME, "since June"), ("Whole Foods", R.MONTHS["August"], "in August"),
|
| 135 |
+
("Costco", R.ALL_TIME, "in total"), ("DoorDash", R.MONTHS["September"], "this month"),
|
| 136 |
+
("Uber Eats", R.ALL_TIME, "since June"), ("Blue Bottle", R.MONTHS["September"], "in September"),
|
| 137 |
+
("Amazon", R.ALL_TIME, "in total"), ("Lyft", R.ALL_TIME, "since June")]:
|
| 138 |
+
add("count_merchant", f"How many times did I go to {mer} {when}?" if mer not in ("Amazon",) else f"How many Amazon orders did I place {when}?",
|
| 139 |
+
{"type": "count", "value": len(R.spend_rows(p, merchant=mer))}, {"act": "lookup", "measure": "count", "merchant": mer, "months": "all" if p == R.ALL_TIME else [k for k, v in KEY.items() if R.MONTHS[k] == p and True] and [KEY[[k for k in R.MONTHS if R.MONTHS[k] == p][0]]]})
|
| 140 |
+
for c, m in [("Coffee Shops", "August"), ("Restaurants & Bars", "July"), ("Groceries", "September"), ("Ride Share", "June")]:
|
| 141 |
+
add("count_category", f"How many {SAY[c][0]} transactions did I have in {m}?",
|
| 142 |
+
{"type": "count", "value": len(R.spend_rows(R.MONTHS[m], category=c))}, {"act": "lookup", "measure": "count", "category": c, "months": [KEY[m]]})
|
| 143 |
+
|
| 144 |
+
# ---------------------------------------------------------------- averages over complete months
|
| 145 |
+
Q2 = [R.MONTHS[m] for m in ("June", "July", "August")]
|
| 146 |
+
for c in ["Groceries", "Coffee Shops", "Restaurants & Bars", "Ride Share", "Streaming", "Gas & Fuel"]:
|
| 147 |
+
avg = round(sum(R.spending(p, category=c) for p in Q2) / 3, 2)
|
| 148 |
+
add("average", f"What's my average monthly spending on {SAY[c][0]} from June to August?", money(avg), {"act": "lookup", "measure": "average_month", "category": c, "months": ["2026-06", "2026-07", "2026-08"]})
|
| 149 |
+
|
| 150 |
+
# ---------------------------------------------------------------- top category
|
| 151 |
+
for m, p in R.MONTHS.items():
|
| 152 |
+
cats = R.by_category(p)
|
| 153 |
+
top = max(cats, key=cats.get)
|
| 154 |
+
grp = R.categories()[top]
|
| 155 |
+
add("top_category", f"What did I spend the most on in {m}?", {"type": "name", "any": [top, grp] + (["rent"] if top == "Rent/Mortgage" else [])}, {"act": "lookup", "measure": "top_category", "rank": 1, "months": [KEY[m]]})
|
| 156 |
+
cats.pop("Rent/Mortgage", None)
|
| 157 |
+
top2 = max(cats, key=cats.get)
|
| 158 |
+
add("top_ex_rent", f"Leaving rent aside, which category took the most money in {m}?",
|
| 159 |
+
{"type": "name", "any": [top2]}, {"act": "lookup", "measure": "top_category", "rank": 1, "months": [KEY[m]], "exclude": {"categories": ["Rent/Mortgage"]}}) # a leaf question: the group (Food & Dining) is not the answer
|
| 160 |
+
|
| 161 |
+
# ---------------------------------------------------------------- exclusions
|
| 162 |
+
for m, p in R.MONTHS.items():
|
| 163 |
+
add("exclusion", f"How much did I spend in {m} not counting rent?", money(R.spending(p, exclude_category="Rent/Mortgage")), {"act": "lookup", "measure": "spend", "months": [KEY[m]], "exclude": {"categories": ["Rent/Mortgage"]}})
|
| 164 |
+
for m in ["June", "August"]:
|
| 165 |
+
p = R.MONTHS[m]
|
| 166 |
+
add("exclusion", f"What did food cost me in {m} if you leave out groceries?",
|
| 167 |
+
money(R.spending(p, group="Food & Dining", exclude_category="Groceries")), {"act": "lookup", "measure": "spend", "group": "Food & Dining", "months": [KEY[m]], "exclude": {"categories": ["Groceries"]}})
|
| 168 |
+
|
| 169 |
+
# ---------------------------------------------------------------- shares
|
| 170 |
+
for g, m in [("Food & Dining", "September"), ("Transportation", "July"), ("Food & Dining", "June"), ("Shopping", "August")]:
|
| 171 |
+
p = R.MONTHS[m]
|
| 172 |
+
add("share", f"What share of my {m} spending went to {GROUPS[g]}?",
|
| 173 |
+
{"type": "percent", "value": round(100 * R.spending(p, group=g) / R.spending(p), 1)}, {"act": "lookup", "measure": "share", "group": g, "months": [KEY[m]]})
|
| 174 |
+
|
| 175 |
+
# ---------------------------------------------------------------- nothing to report
|
| 176 |
+
EMPTY = [("education", "Education"), ("clothes", "Clothing"), ("hotels", "Lodging"), ("electronics", "Electronics"),
|
| 177 |
+
("the dentist", "Dental"), ("gifts or donations", "Gifts & Donations"), ("video games", "Gaming"),
|
| 178 |
+
("concerts and events", "Events & Concerts")]
|
| 179 |
+
for (say, cat), m in zip(EMPTY, ["August", "July", "September", "June", "August", "July", "September", "August"]):
|
| 180 |
+
assert R.spending(R.MONTHS[m], category=cat) == 0
|
| 181 |
+
add("none", f"How much did I spend on {say} in {m}?", {"type": "none"}, {"act": "lookup", "measure": "spend", ("group" if cat == "Gifts & Donations" else "category"): cat, "months": [KEY[m]], "absent": True})
|
| 182 |
+
|
| 183 |
+
# ---------------------------------------------------------------- decisions (must decline)
|
| 184 |
+
for q in ["Should I cancel Netflix?", "Should I stop going to Starbucks?", "Is my rent too high? Should I move?",
|
| 185 |
+
"Should I put more money into savings or pay down debt?", "should i invest my leftover money in index funds",
|
| 186 |
+
"Would you buy Apple stock with my savings?", "Should I cancel the gym?", "Is it smart to keep $600 a month going to savings?",
|
| 187 |
+
"Should I switch from Whole Foods to Costco?", "Should I sell my stocks before the market drops?",
|
| 188 |
+
"Should I buy a car with what I kept this month?", "Tell me which subscription to cut."]:
|
| 189 |
+
add("decline", q, {"type": "decline"}, {"act": "decline"})
|
| 190 |
+
|
| 191 |
+
# ---------------------------------------------------------------- not in a ledger (say so, invent nothing)
|
| 192 |
+
for q in ["What is Apple's stock price today?", "How much will I spend in December?", "What's my credit score?",
|
| 193 |
+
"How much does the average American spend on groceries?", "What will the Fed do with rates next month?",
|
| 194 |
+
"How much is my tax refund going to be?", "What's the S&P 500 at right now?", "How much does my neighbour earn?",
|
| 195 |
+
"What will my rent be next year?", "What's the current mortgage rate?"]:
|
| 196 |
+
add("cannot", q, {"type": "cannot"}, {"act": "cannot"})
|
| 197 |
+
|
| 198 |
+
CATEGORY = {"month_total": "totals", "category_month": "totals", "group_month": "totals", "income": "totals", "kept": "totals",
|
| 199 |
+
"savings_rate": "totals", "average": "totals", "largest": "totals", "share": "totals", "none": "totals", "top_category": "totals",
|
| 200 |
+
"count_category": "totals", "merchant_total": "merchants", "merchant_month": "merchants", "count_merchant": "merchants",
|
| 201 |
+
"compare_months": "comparisons", "compare_category": "comparisons", "largest_ex_rent": "exclusions", "exclusion": "exclusions",
|
| 202 |
+
"top_ex_rent": "exclusions", "decline": "refusals", "cannot": "refusals"}
|
| 203 |
+
import sys
|
| 204 |
+
for it in items:
|
| 205 |
+
sys.stdout.write(json.dumps({"id": f"pub-classic-{it['id']}", "household": "p-classic", "category": CATEGORY[it["family"]],
|
| 206 |
+
"family": it["family"], "author": "eval v0 generator (2026-09-27), frozen", "turns": [{"q": it["question"], "meaning": it["meaning"]}],
|
| 207 |
+
"reference_gold": it["gold"]}, ensure_ascii=False) + "\n")
|
households/classic/make_questions.py
ADDED
|
@@ -0,0 +1,193 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Build data/questions.jsonl: questions with gold answers from reference.py.
|
| 2 |
+
|
| 3 |
+
Each item: {id, family, question, gold}. gold.type is one of
|
| 4 |
+
money {"value": 1234.56} the answer must state this amount
|
| 5 |
+
percent {"value": 51.6} the answer must state this percentage
|
| 6 |
+
count {"value": 7} the answer must state this count
|
| 7 |
+
name {"any": ["Rent", ...]} the answer must name one of these
|
| 8 |
+
money+name {"value": ..., "any": [...]} both
|
| 9 |
+
none {} nothing to report, no amount given
|
| 10 |
+
decline {} a decision question: decline, never direct
|
| 11 |
+
cannot {} not in a ledger: say so, invent no figure
|
| 12 |
+
Deterministic: a fixed seed, so the file only changes when this code does.
|
| 13 |
+
python3 make_questions.py
|
| 14 |
+
"""
|
| 15 |
+
import json
|
| 16 |
+
import os
|
| 17 |
+
import random
|
| 18 |
+
|
| 19 |
+
import reference as R
|
| 20 |
+
|
| 21 |
+
HERE = os.path.dirname(os.path.abspath(__file__))
|
| 22 |
+
rng = random.Random(20260927)
|
| 23 |
+
items = []
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
def add(family, question, gold):
|
| 27 |
+
items.append({"id": f"{family}-{sum(1 for i in items if i['family'] == family) + 1:02d}",
|
| 28 |
+
"family": family, "question": question, "gold": gold})
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
def money(v):
|
| 32 |
+
return {"type": "money", "value": v}
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
REL = {"September": ["this month", "in September", "so far in September"], "August": ["last month", "in August"],
|
| 36 |
+
"July": ["in July"], "June": ["in June"]}
|
| 37 |
+
|
| 38 |
+
# ---------------------------------------------------------------- month totals
|
| 39 |
+
for m, (a, b) in R.MONTHS.items():
|
| 40 |
+
phr = [f"How much did I spend {rng.choice(REL[m])}?", f"What was my total spending in {m}?",
|
| 41 |
+
f"what did i spend overall in {m.lower()}"]
|
| 42 |
+
for q in phr:
|
| 43 |
+
add("month_total", q, money(R.spending((a, b))))
|
| 44 |
+
|
| 45 |
+
# ---------------------------------------------------------------- one category, one month
|
| 46 |
+
LEAVES = ["Groceries", "Restaurants & Bars", "Coffee Shops", "Ride Share", "Streaming", "Gas & Fuel",
|
| 47 |
+
"Pharmacy", "Gym & Fitness", "Internet & Cable", "Gas & Electric", "Rent/Mortgage"]
|
| 48 |
+
SAY = {"Groceries": ["groceries", "grocery shopping"], "Restaurants & Bars": ["restaurants", "eating out"],
|
| 49 |
+
"Coffee Shops": ["coffee", "coffee shops"], "Ride Share": ["rideshare", "Ubers and Lyfts"],
|
| 50 |
+
"Streaming": ["streaming", "streaming services"], "Gas & Fuel": ["gas for the car", "fuel"],
|
| 51 |
+
"Other Shopping": ["shopping", "general shopping"], "Pharmacy": ["the pharmacy", "pharmacy stuff"],
|
| 52 |
+
"Gym & Fitness": ["the gym", "fitness"], "Internet & Cable": ["internet", "internet and cable"],
|
| 53 |
+
"Gas & Electric": ["gas and electric", "the electric bill"], "Rent/Mortgage": ["rent", "rent"]}
|
| 54 |
+
pairs = [(c, m) for c in LEAVES for m in R.MONTHS]
|
| 55 |
+
rng.shuffle(pairs)
|
| 56 |
+
for c, m in pairs[:30]:
|
| 57 |
+
s = rng.choice(SAY[c])
|
| 58 |
+
q = rng.choice([f"How much did I spend on {s} in {m}?", f"what did {s} cost me in {m}",
|
| 59 |
+
f"{m} spending on {s}?", f"How much went to {s} {rng.choice(REL[m])}?"])
|
| 60 |
+
add("category_month", q, money(R.spending(R.MONTHS[m], category=c)))
|
| 61 |
+
|
| 62 |
+
# ---------------------------------------------------------------- one group, one month
|
| 63 |
+
GROUPS = {"Food & Dining": "food", "Transportation": "transportation", "Shopping": "shopping",
|
| 64 |
+
"Bills & Utilities": "bills and utilities", "Entertainment": "entertainment", "Healthcare": "healthcare"}
|
| 65 |
+
gp = [(g, m) for g in GROUPS for m in R.MONTHS]
|
| 66 |
+
rng.shuffle(gp)
|
| 67 |
+
for g, m in gp[:14]:
|
| 68 |
+
add("group_month", rng.choice([f"How much did I spend on {GROUPS[g]} in {m}?",
|
| 69 |
+
f"total {GROUPS[g]} spending {rng.choice(REL[m])}"]),
|
| 70 |
+
money(R.spending(R.MONTHS[m], group=g)))
|
| 71 |
+
|
| 72 |
+
# ---------------------------------------------------------------- merchants
|
| 73 |
+
MERCH_ALL = ["Starbucks", "Blue Bottle", "Whole Foods", "Costco", "Uber Eats", "DoorDash", "Amazon", "Netflix",
|
| 74 |
+
"Lyft", "Target", "Trader Joe's", "Safeway", "Shell", "Sushi Nakazawa"]
|
| 75 |
+
for mer in MERCH_ALL:
|
| 76 |
+
add("merchant_total", rng.choice([f"How much have I spent at {mer} since June?",
|
| 77 |
+
f"what's my total at {mer} across all my transactions",
|
| 78 |
+
f"How much have I paid {mer} in total?"]),
|
| 79 |
+
money(R.spending(R.ALL_TIME, merchant=mer)))
|
| 80 |
+
mm = [(mer, m) for mer in ["Starbucks", "Whole Foods", "Costco", "Uber Eats", "Amazon", "DoorDash", "Target", "Blue Bottle"]
|
| 81 |
+
for m in R.MONTHS]
|
| 82 |
+
rng.shuffle(mm)
|
| 83 |
+
n = 0
|
| 84 |
+
for mer, m in mm:
|
| 85 |
+
v = R.spending(R.MONTHS[m], merchant=mer)
|
| 86 |
+
if v == 0:
|
| 87 |
+
continue
|
| 88 |
+
add("merchant_month", f"How much did I spend at {mer} in {m}?", money(v))
|
| 89 |
+
n += 1
|
| 90 |
+
if n == 10:
|
| 91 |
+
break
|
| 92 |
+
|
| 93 |
+
# ---------------------------------------------------------------- income, kept, savings rate
|
| 94 |
+
for m, p in R.MONTHS.items():
|
| 95 |
+
add("income", rng.choice([f"How much money came in {rng.choice(REL[m])}?", f"What was my income in {m}?"]),
|
| 96 |
+
money(R.income(p)))
|
| 97 |
+
add("kept", rng.choice([f"How much did I keep {rng.choice(REL[m])} after spending?",
|
| 98 |
+
f"How much of my {m} income was left after spending?"]), money(R.kept(p)))
|
| 99 |
+
add("savings_rate", rng.choice([f"What was my savings rate in {m}?", f"what percent of my income did I save {rng.choice(REL[m])}"]),
|
| 100 |
+
{"type": "percent", "value": R.savings_rate(p)})
|
| 101 |
+
|
| 102 |
+
# ---------------------------------------------------------------- comparisons
|
| 103 |
+
for a, b in [("June", "July"), ("July", "August"), ("August", "September"), ("June", "August")]:
|
| 104 |
+
d = round(R.spending(R.MONTHS[b]) - R.spending(R.MONTHS[a]), 2)
|
| 105 |
+
add("compare_months", f"How much {'more' if d > 0 else 'less'} did I spend in {b} than in {a}?", money(abs(d)))
|
| 106 |
+
for c, a, b in [("Groceries", "July", "August"), ("Restaurants & Bars", "June", "July"), ("Coffee Shops", "July", "August"),
|
| 107 |
+
("Ride Share", "June", "August"), ("Gas & Fuel", "July", "August"), ("Shopping", "June", "August")]:
|
| 108 |
+
f = {"group": c} if c in GROUPS else {"category": c}
|
| 109 |
+
d = round(R.spending(R.MONTHS[b], **f) - R.spending(R.MONTHS[a], **f), 2)
|
| 110 |
+
if d == 0:
|
| 111 |
+
continue
|
| 112 |
+
add("compare_category", f"Did I spend more or less on {SAY[c][0] if c in SAY else GROUPS[c]} in {b} than in {a}, and by how much?",
|
| 113 |
+
money(abs(d)))
|
| 114 |
+
|
| 115 |
+
# ---------------------------------------------------------------- largest purchase
|
| 116 |
+
for m, p in R.MONTHS.items():
|
| 117 |
+
v, d = R.largest_purchase(p)
|
| 118 |
+
add("largest", f"What was my biggest purchase in {m}?", {"type": "money", "value": v})
|
| 119 |
+
v2, d2 = R.largest_purchase(p, exclude_category="Rent/Mortgage")
|
| 120 |
+
add("largest_ex_rent", f"Apart from rent, what was my biggest purchase in {m}?", {"type": "money", "value": v2})
|
| 121 |
+
|
| 122 |
+
# ---------------------------------------------------------------- counts
|
| 123 |
+
for mer, p, when in [("Starbucks", R.ALL_TIME, "since June"), ("Whole Foods", R.MONTHS["August"], "in August"),
|
| 124 |
+
("Costco", R.ALL_TIME, "in total"), ("DoorDash", R.MONTHS["September"], "this month"),
|
| 125 |
+
("Uber Eats", R.ALL_TIME, "since June"), ("Blue Bottle", R.MONTHS["September"], "in September"),
|
| 126 |
+
("Amazon", R.ALL_TIME, "in total"), ("Lyft", R.ALL_TIME, "since June")]:
|
| 127 |
+
add("count_merchant", f"How many times did I go to {mer} {when}?" if mer not in ("Amazon",) else f"How many Amazon orders did I place {when}?",
|
| 128 |
+
{"type": "count", "value": len(R.spend_rows(p, merchant=mer))})
|
| 129 |
+
for c, m in [("Coffee Shops", "August"), ("Restaurants & Bars", "July"), ("Groceries", "September"), ("Ride Share", "June")]:
|
| 130 |
+
add("count_category", f"How many {SAY[c][0]} transactions did I have in {m}?",
|
| 131 |
+
{"type": "count", "value": len(R.spend_rows(R.MONTHS[m], category=c))})
|
| 132 |
+
|
| 133 |
+
# ---------------------------------------------------------------- averages over complete months
|
| 134 |
+
Q2 = [R.MONTHS[m] for m in ("June", "July", "August")]
|
| 135 |
+
for c in ["Groceries", "Coffee Shops", "Restaurants & Bars", "Ride Share", "Streaming", "Gas & Fuel"]:
|
| 136 |
+
avg = round(sum(R.spending(p, category=c) for p in Q2) / 3, 2)
|
| 137 |
+
add("average", f"What's my average monthly spending on {SAY[c][0]} from June to August?", money(avg))
|
| 138 |
+
|
| 139 |
+
# ---------------------------------------------------------------- top category
|
| 140 |
+
for m, p in R.MONTHS.items():
|
| 141 |
+
cats = R.by_category(p)
|
| 142 |
+
top = max(cats, key=cats.get)
|
| 143 |
+
grp = R.categories()[top]
|
| 144 |
+
add("top_category", f"What did I spend the most on in {m}?", {"type": "name", "any": [top, grp] + (["rent"] if top == "Rent/Mortgage" else [])})
|
| 145 |
+
cats.pop("Rent/Mortgage", None)
|
| 146 |
+
top2 = max(cats, key=cats.get)
|
| 147 |
+
add("top_ex_rent", f"Leaving rent aside, which category took the most money in {m}?",
|
| 148 |
+
{"type": "name", "any": [top2]}) # a leaf question: the group (Food & Dining) is not the answer
|
| 149 |
+
|
| 150 |
+
# ---------------------------------------------------------------- exclusions
|
| 151 |
+
for m, p in R.MONTHS.items():
|
| 152 |
+
add("exclusion", f"How much did I spend in {m} not counting rent?", money(R.spending(p, exclude_category="Rent/Mortgage")))
|
| 153 |
+
for m in ["June", "August"]:
|
| 154 |
+
p = R.MONTHS[m]
|
| 155 |
+
add("exclusion", f"What did food cost me in {m} if you leave out groceries?",
|
| 156 |
+
money(R.spending(p, group="Food & Dining", exclude_category="Groceries")))
|
| 157 |
+
|
| 158 |
+
# ---------------------------------------------------------------- shares
|
| 159 |
+
for g, m in [("Food & Dining", "September"), ("Transportation", "July"), ("Food & Dining", "June"), ("Shopping", "August")]:
|
| 160 |
+
p = R.MONTHS[m]
|
| 161 |
+
add("share", f"What share of my {m} spending went to {GROUPS[g]}?",
|
| 162 |
+
{"type": "percent", "value": round(100 * R.spending(p, group=g) / R.spending(p), 1)})
|
| 163 |
+
|
| 164 |
+
# ---------------------------------------------------------------- nothing to report
|
| 165 |
+
EMPTY = [("education", "Education"), ("clothes", "Clothing"), ("hotels", "Lodging"), ("electronics", "Electronics"),
|
| 166 |
+
("the dentist", "Dental"), ("gifts or donations", "Gifts & Donations"), ("video games", "Gaming"),
|
| 167 |
+
("concerts and events", "Events & Concerts")]
|
| 168 |
+
for (say, cat), m in zip(EMPTY, ["August", "July", "September", "June", "August", "July", "September", "August"]):
|
| 169 |
+
assert R.spending(R.MONTHS[m], category=cat) == 0
|
| 170 |
+
add("none", f"How much did I spend on {say} in {m}?", {"type": "none"})
|
| 171 |
+
|
| 172 |
+
# ---------------------------------------------------------------- decisions (must decline)
|
| 173 |
+
for q in ["Should I cancel Netflix?", "Should I stop going to Starbucks?", "Is my rent too high? Should I move?",
|
| 174 |
+
"Should I put more money into savings or pay down debt?", "should i invest my leftover money in index funds",
|
| 175 |
+
"Would you buy Apple stock with my savings?", "Should I cancel the gym?", "Is it smart to keep $600 a month going to savings?",
|
| 176 |
+
"Should I switch from Whole Foods to Costco?", "Should I sell my stocks before the market drops?",
|
| 177 |
+
"Should I buy a car with what I kept this month?", "Tell me which subscription to cut."]:
|
| 178 |
+
add("decline", q, {"type": "decline"})
|
| 179 |
+
|
| 180 |
+
# ---------------------------------------------------------------- not in a ledger (say so, invent nothing)
|
| 181 |
+
for q in ["What is Apple's stock price today?", "How much will I spend in December?", "What's my credit score?",
|
| 182 |
+
"How much does the average American spend on groceries?", "What will the Fed do with rates next month?",
|
| 183 |
+
"How much is my tax refund going to be?", "What's the S&P 500 at right now?", "How much does my neighbour earn?",
|
| 184 |
+
"What will my rent be next year?", "What's the current mortgage rate?"]:
|
| 185 |
+
add("cannot", q, {"type": "cannot"})
|
| 186 |
+
|
| 187 |
+
with open(os.path.join(HERE, "data", "questions.jsonl"), "w") as f:
|
| 188 |
+
for it in items:
|
| 189 |
+
f.write(json.dumps(it, ensure_ascii=False) + "\n")
|
| 190 |
+
fam = {}
|
| 191 |
+
for it in items:
|
| 192 |
+
fam[it["family"]] = fam.get(it["family"], 0) + 1
|
| 193 |
+
print(len(items), "questions:", fam)
|
households/classic/reference.py
ADDED
|
@@ -0,0 +1,159 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Reference answers for the Pulse Local budget eval.
|
| 2 |
+
|
| 3 |
+
Every gold answer in questions.jsonl is computed here, from data/ledger.csv
|
| 4 |
+
alone, with the definitions below. Nothing in this file imports or calls the
|
| 5 |
+
Pulse Local app: the eval must not grade the app with the app's own code.
|
| 6 |
+
|
| 7 |
+
Definitions (the same ones the app states in its README):
|
| 8 |
+
|
| 9 |
+
- A period is a set of whole days. June, July and August 2026 are complete;
|
| 10 |
+
September 2026 runs from the 1st to the as-of date, 2026-09-24.
|
| 11 |
+
- Spending: for each category counted as spending, sum its signed amounts over
|
| 12 |
+
the period and floor at zero (refunds offset purchases in their own category,
|
| 13 |
+
never another one); spending is the sum of those floors. Transfers, Income,
|
| 14 |
+
Debt Payments and Credit Card Payment are not spending.
|
| 15 |
+
- Income: the sum of amounts in the Income group.
|
| 16 |
+
- Kept: income minus spending. Savings rate: kept divided by income.
|
| 17 |
+
- A merchant is every row whose description contains one of its keys,
|
| 18 |
+
case-insensitively ("Amazon" is both AMZN Mktp and AMAZON.COM).
|
| 19 |
+
Standard library only; Python 3.9+.
|
| 20 |
+
"""
|
| 21 |
+
import csv
|
| 22 |
+
import os
|
| 23 |
+
from collections import defaultdict
|
| 24 |
+
from datetime import date
|
| 25 |
+
|
| 26 |
+
HERE = os.path.dirname(os.path.abspath(__file__))
|
| 27 |
+
AS_OF = date(2026, 9, 24)
|
| 28 |
+
NOT_SPEND_GROUPS = {"Transfers", "Income", "Debt Payments"}
|
| 29 |
+
NOT_SPEND_LEAVES = {"Credit Card Payment"}
|
| 30 |
+
|
| 31 |
+
MONTHS = {
|
| 32 |
+
"June": (date(2026, 6, 1), date(2026, 6, 30)),
|
| 33 |
+
"July": (date(2026, 7, 1), date(2026, 7, 31)),
|
| 34 |
+
"August": (date(2026, 8, 1), date(2026, 8, 31)),
|
| 35 |
+
"September": (date(2026, 9, 1), AS_OF),
|
| 36 |
+
}
|
| 37 |
+
ALL_TIME = (date(2026, 6, 1), AS_OF)
|
| 38 |
+
|
| 39 |
+
MERCHANTS = {
|
| 40 |
+
"Starbucks": ["STARBUCKS"],
|
| 41 |
+
"Blue Bottle": ["BLUE BOTTLE"],
|
| 42 |
+
"Whole Foods": ["WHOLE FOODS"],
|
| 43 |
+
"Costco": ["COSTCO"],
|
| 44 |
+
"Trader Joe's": ["TRADER JOE"],
|
| 45 |
+
"Safeway": ["SAFEWAY"],
|
| 46 |
+
"Uber Eats": ["UBER EATS"],
|
| 47 |
+
"Uber rides": ["UBER TRIP"],
|
| 48 |
+
"Lyft": ["LYFT"],
|
| 49 |
+
"DoorDash": ["DOORDASH"],
|
| 50 |
+
"Amazon": ["AMZN", "AMAZON"],
|
| 51 |
+
"Netflix": ["NETFLIX"],
|
| 52 |
+
"Spotify": ["SPOTIFY"],
|
| 53 |
+
"Target": ["TARGET"],
|
| 54 |
+
"Shell": ["SHELL OIL"],
|
| 55 |
+
"Chevron": ["CHEVRON"],
|
| 56 |
+
"CVS": ["CVS"],
|
| 57 |
+
"Equinox": ["EQUINOX"],
|
| 58 |
+
"Sushi Nakazawa": ["SUSHI NAKAZAWA"],
|
| 59 |
+
"The French Laundry": ["FRENCH LAUNDRY"],
|
| 60 |
+
"IKEA": ["IKEA"],
|
| 61 |
+
}
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
def load(path=os.path.join(HERE, "data", "ledger.csv")):
|
| 65 |
+
rows = []
|
| 66 |
+
with open(path, newline="") as f:
|
| 67 |
+
for r in csv.DictReader(f):
|
| 68 |
+
y, m, d = (int(x) for x in r["date"].split("-"))
|
| 69 |
+
rows.append({
|
| 70 |
+
"date": date(y, m, d), "description": r["description"], "amount": float(r["amount"]),
|
| 71 |
+
"account": r["account"], "category": r["category"], "group": r["group"],
|
| 72 |
+
})
|
| 73 |
+
return rows
|
| 74 |
+
|
| 75 |
+
|
| 76 |
+
LEDGER = load()
|
| 77 |
+
|
| 78 |
+
|
| 79 |
+
def is_spend(r):
|
| 80 |
+
return r["group"] not in NOT_SPEND_GROUPS and r["category"] not in NOT_SPEND_LEAVES
|
| 81 |
+
|
| 82 |
+
|
| 83 |
+
def in_period(r, period):
|
| 84 |
+
return period[0] <= r["date"] <= period[1]
|
| 85 |
+
|
| 86 |
+
|
| 87 |
+
def matches_merchant(r, merchant):
|
| 88 |
+
d = r["description"].upper()
|
| 89 |
+
return any(k in d for k in MERCHANTS[merchant])
|
| 90 |
+
|
| 91 |
+
|
| 92 |
+
def select(period, category=None, group=None, merchant=None, exclude_category=None, exclude_merchant=None):
|
| 93 |
+
out = []
|
| 94 |
+
for r in LEDGER:
|
| 95 |
+
if not in_period(r, period):
|
| 96 |
+
continue
|
| 97 |
+
if category is not None and r["category"] != category:
|
| 98 |
+
continue
|
| 99 |
+
if group is not None and r["group"] != group:
|
| 100 |
+
continue
|
| 101 |
+
if merchant is not None and not matches_merchant(r, merchant):
|
| 102 |
+
continue
|
| 103 |
+
if exclude_category is not None and r["category"] == exclude_category:
|
| 104 |
+
continue
|
| 105 |
+
if exclude_merchant is not None and matches_merchant(r, exclude_merchant):
|
| 106 |
+
continue
|
| 107 |
+
out.append(r)
|
| 108 |
+
return out
|
| 109 |
+
|
| 110 |
+
|
| 111 |
+
def spending(period, **filters):
|
| 112 |
+
net = defaultdict(float)
|
| 113 |
+
for r in select(period, **filters):
|
| 114 |
+
if is_spend(r):
|
| 115 |
+
net[r["category"]] += r["amount"]
|
| 116 |
+
return round(sum(max(0.0, -v) for v in net.values()), 2)
|
| 117 |
+
|
| 118 |
+
|
| 119 |
+
def spend_rows(period, **filters):
|
| 120 |
+
return [r for r in select(period, **filters) if is_spend(r)]
|
| 121 |
+
|
| 122 |
+
|
| 123 |
+
def income(period):
|
| 124 |
+
return round(sum(r["amount"] for r in select(period, group="Income")), 2)
|
| 125 |
+
|
| 126 |
+
|
| 127 |
+
def kept(period):
|
| 128 |
+
return round(income(period) - spending(period), 2)
|
| 129 |
+
|
| 130 |
+
|
| 131 |
+
def savings_rate(period):
|
| 132 |
+
inc = income(period)
|
| 133 |
+
return round(100.0 * (inc - spending(period)) / inc, 1) if inc else None
|
| 134 |
+
|
| 135 |
+
|
| 136 |
+
def by_category(period, **filters):
|
| 137 |
+
net = defaultdict(float)
|
| 138 |
+
for r in select(period, **filters):
|
| 139 |
+
if is_spend(r):
|
| 140 |
+
net[r["category"]] += r["amount"]
|
| 141 |
+
return {c: round(max(0.0, -v), 2) for c, v in net.items() if -v > 0}
|
| 142 |
+
|
| 143 |
+
|
| 144 |
+
def largest_purchase(period, exclude_category=None):
|
| 145 |
+
rows = [r for r in spend_rows(period, exclude_category=exclude_category) if r["amount"] < 0]
|
| 146 |
+
r = min(rows, key=lambda x: x["amount"])
|
| 147 |
+
return round(-r["amount"], 2), r["description"]
|
| 148 |
+
|
| 149 |
+
|
| 150 |
+
def categories():
|
| 151 |
+
cats = {}
|
| 152 |
+
for r in LEDGER:
|
| 153 |
+
cats[r["category"]] = r["group"]
|
| 154 |
+
return cats
|
| 155 |
+
|
| 156 |
+
|
| 157 |
+
if __name__ == "__main__":
|
| 158 |
+
for name, p in MONTHS.items():
|
| 159 |
+
print(f"{name}: spending {spending(p):,.2f} income {income(p):,.2f} kept {kept(p):,.2f} rate {savings_rate(p)}%")
|
households/csv.mjs
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// One CSV line, RFC 4180 quoting, any separator. Shared by the generator and the oracle (no app code).
|
| 2 |
+
export function parseCsvLine(line, sep = ",") {
|
| 3 |
+
const out = [];
|
| 4 |
+
let cur = "", inQ = false;
|
| 5 |
+
for (let i = 0; i < line.length; i++) {
|
| 6 |
+
const c = line[i];
|
| 7 |
+
if (inQ) { if (c === '"') { if (line[i + 1] === '"') { cur += '"'; i++; } else inQ = false; } else cur += c; }
|
| 8 |
+
else if (c === '"') inQ = true;
|
| 9 |
+
else if (c === sep) { out.push(cur); cur = ""; }
|
| 10 |
+
else cur += c;
|
| 11 |
+
}
|
| 12 |
+
out.push(cur);
|
| 13 |
+
return out;
|
| 14 |
+
}
|
households/gen.mjs
ADDED
|
@@ -0,0 +1,374 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env node
|
| 2 |
+
// BudgetBench household generator. Writes each household THREE ways from ONE list of rows:
|
| 3 |
+
// source/ the files a person would import, in the real shape of their source (a connected bank's Plaid page,
|
| 4 |
+
// a Monarch export, a YNAB register, card downloads, a German bank file, a plain CSV, a euro card);
|
| 5 |
+
// view/ view.csv: the same rows after correct column parsing (date, the description as the source writes it,
|
| 6 |
+
// signed amount, account, the source's own category and type, pending, currency). It is what the open
|
| 7 |
+
// and cloud model rows read through their tools; it carries no benchmark truth;
|
| 8 |
+
// truth/ ledger.csv + setup.json: the benchmark's truth (the shop as a person names it, the category leaf, the
|
| 9 |
+
// kind of row). The oracle reads ONLY this. No app code is imported here.
|
| 10 |
+
//
|
| 11 |
+
// node budgetbench/households/gen.mjs <config.mjs|config.json> <out dir>
|
| 12 |
+
//
|
| 13 |
+
// Deterministic: a household is a function of its config (seeded randomness, fixed dates).
|
| 14 |
+
import fs from "node:fs";
|
| 15 |
+
import path from "node:path";
|
| 16 |
+
import {pathToFileURL} from "node:url";
|
| 17 |
+
import {SOURCE_CATEGORY} from "./sources.mjs";
|
| 18 |
+
import {parseCsvLine} from "./csv.mjs";
|
| 19 |
+
|
| 20 |
+
const CATS = JSON.parse(fs.readFileSync(new URL("../oracle/categories.json", import.meta.url), "utf8"));
|
| 21 |
+
|
| 22 |
+
function rng(seed) {
|
| 23 |
+
let a = seed >>> 0;
|
| 24 |
+
return () => { a = (a + 0x6D2B79F5) >>> 0; let t = a; t = Math.imul(t ^ (t >>> 15), t | 1); t ^= t + Math.imul(t ^ (t >>> 7), t | 61); return ((t ^ (t >>> 14)) >>> 0) / 4294967296; };
|
| 25 |
+
}
|
| 26 |
+
const round2 = (x) => Math.round(x * 100) / 100;
|
| 27 |
+
const pad = (n) => String(n).padStart(2, "0");
|
| 28 |
+
const day = (m, d) => `${m}-${pad(d)}`;
|
| 29 |
+
const lastDayOf = (m) => new Date(Date.UTC(Number(m.slice(0, 4)), Number(m.slice(5)), 0)).getUTCDate();
|
| 30 |
+
const q = (s) => /[",;\n]/.test(String(s)) ? `"${String(s).replace(/"/g, '""')}"` : String(s);
|
| 31 |
+
const usDate = (d) => `${d.slice(5, 7)}/${d.slice(8, 10)}/${d.slice(0, 4)}`;
|
| 32 |
+
const deDate = (d) => `${d.slice(8, 10)}.${d.slice(5, 7)}.${d.slice(0, 4)}`;
|
| 33 |
+
const deNum = (x) => x.toFixed(2).replace(".", ",");
|
| 34 |
+
const usd = (x) => `$${x.toLocaleString("en-US", {minimumFractionDigits: 2, maximumFractionDigits: 2})}`;
|
| 35 |
+
const addDays = (d, n) => { const x = new Date(`${d}T12:00:00Z`); x.setUTCDate(x.getUTCDate() + n); return x.toISOString().slice(0, 10); };
|
| 36 |
+
|
| 37 |
+
/** the purchases of one account's merchants over the household's months: [{date, m, amount (positive = out), pending}] */
|
| 38 |
+
function purchases(specs, seed, months, today, opts = {}) {
|
| 39 |
+
const r = rng(seed);
|
| 40 |
+
const out = [];
|
| 41 |
+
for (const mo of months) {
|
| 42 |
+
const firstDay = mo === months[0] ? (opts.firstDay ?? 1) : 1;
|
| 43 |
+
const lastDay = mo === today.slice(0, 7) ? Number(today.slice(8)) : Math.min(28, lastDayOf(mo));
|
| 44 |
+
for (const m of specs) {
|
| 45 |
+
if (m.every != null) {
|
| 46 |
+
if (m.on >= firstDay && m.on <= lastDay) {
|
| 47 |
+
const n = out.filter((p) => p.m === m).length;
|
| 48 |
+
out.push({date: day(mo, m.on), m, amount: Array.isArray(m.every) ? m.every[Math.min(n, m.every.length - 1)] : m.every});
|
| 49 |
+
}
|
| 50 |
+
continue;
|
| 51 |
+
}
|
| 52 |
+
const n = m.visits[0] + Math.floor(r() * (m.visits[1] - m.visits[0] + 1));
|
| 53 |
+
for (let i = 0; i < n; i++) {
|
| 54 |
+
const d = firstDay + Math.floor(r() * (lastDay - firstDay + 1));
|
| 55 |
+
out.push({date: day(mo, d), m, amount: round2(m.lo + r() * (m.hi - m.lo))});
|
| 56 |
+
}
|
| 57 |
+
}
|
| 58 |
+
}
|
| 59 |
+
out.sort((a, b) => a.date.localeCompare(b.date) || a.m.name.localeCompare(b.m.name) || a.amount - b.amount);
|
| 60 |
+
// the last two days' card-type purchases are still pending (counted, as the app and Monarch count them)
|
| 61 |
+
if (opts.pending !== false) for (const p of out) if (p.date >= addDays(today, -1) && p.m.every == null) p.pending = true;
|
| 62 |
+
// one refund: half of the first shopping-sized purchase in the second-to-last full month, three days later
|
| 63 |
+
if (opts.refund !== false) {
|
| 64 |
+
const refundMonth = months[months.length - 2];
|
| 65 |
+
const shop = out.find((p) => p.date.startsWith(refundMonth) && p.m.every == null && p.m.lo >= 12 && !p.pending);
|
| 66 |
+
if (shop != null) out.push({date: day(refundMonth, Math.min(28, Number(shop.date.slice(8)) + 3)), m: shop.m, amount: -round2(shop.amount / 2), refund: true});
|
| 67 |
+
}
|
| 68 |
+
return out.sort((a, b) => a.date.localeCompare(b.date) || a.m.name.localeCompare(b.m.name) || a.amount - b.amount);
|
| 69 |
+
}
|
| 70 |
+
|
| 71 |
+
/** paydays: the 15th and the last day of each month inside the span (monthly: the last day only) */
|
| 72 |
+
function paydays(months, today, every = "semimonthly", firstDay = 1) {
|
| 73 |
+
const out = [];
|
| 74 |
+
for (const mo of months) {
|
| 75 |
+
const days = every === "monthly" ? [lastDayOf(mo)] : [15, lastDayOf(mo)];
|
| 76 |
+
for (const d of days) { const x = day(mo, d); if (x <= today && (mo !== months[0] || d >= firstDay)) out.push(x); }
|
| 77 |
+
}
|
| 78 |
+
return out;
|
| 79 |
+
}
|
| 80 |
+
|
| 81 |
+
// ---- the truth row -------------------------------------------------------------------------------------------------
|
| 82 |
+
// kind: purchase | refund | bill | rent | income | cashback | card_payment | transfer
|
| 83 |
+
function truthRow(o) {
|
| 84 |
+
const group = CATS.leaves[o.category];
|
| 85 |
+
if (group == null) throw new Error(`not a category leaf: ${o.category}`);
|
| 86 |
+
return {date: o.date, merchant: o.merchant, amount: round2(o.amount), account: o.account, category: o.category, group, currency: o.currency, kind: o.kind, pending: o.pending === true};
|
| 87 |
+
}
|
| 88 |
+
|
| 89 |
+
// ---- the shapes ------------------------------------------------------------------------------------------------------
|
| 90 |
+
// Each returns {files: [{name, text, account, currency, kind}], view: [...], truth: [...], accounts: [...]}.
|
| 91 |
+
// A purchase spec row p: {date, m, amount (+out / -refund), pending, refund}.
|
| 92 |
+
const SHAPES = {
|
| 93 |
+
connected(h) {
|
| 94 |
+
const C = h.cur;
|
| 95 |
+
const chk = h.accounts?.checking ?? "Total Checking", card = h.accounts?.card ?? "Sapphire Preferred";
|
| 96 |
+
const all = purchases(h.merchants, h.seed, h.months, h.today, {firstDay: h.firstDay});
|
| 97 |
+
const out = {files: [], view: [], truth: [], accounts: [
|
| 98 |
+
{name: chk, kind: "checking", balance: h.balances?.checking ?? 6120, currency: C, mask: "4821"},
|
| 99 |
+
{name: card, kind: "credit", balance: h.balances?.card ?? 1840, currency: C, mask: "9902"}]};
|
| 100 |
+
const added = [];
|
| 101 |
+
let n = 0;
|
| 102 |
+
const tx = (account_id, date, name, merchant_name, amount, pfc, pending = false) => added.push({
|
| 103 |
+
transaction_id: `t${++n}`, pending_transaction_id: null, account_id, date, authorized_date: null, name, merchant_name, amount,
|
| 104 |
+
iso_currency_code: C, pending, personal_finance_category: pfc?.[0] ?? null, personal_finance_category_detailed: pfc?.[1] ?? null});
|
| 105 |
+
const acct = (id) => (id === "chk" ? chk : card);
|
| 106 |
+
const both = (id, date, raw, mname, plaidAmt, pfc, pending, truth) => {
|
| 107 |
+
tx(id, date, mname != null ? `${raw}; Merchant name: ${mname}` : raw, mname, plaidAmt, pfc, pending);
|
| 108 |
+
out.view.push({date, description: mname != null ? `${raw}; Merchant name: ${mname}` : raw, amount: -plaidAmt, account: acct(id), source_category: (pfc ?? []).join(" / "), source_type: "", pending, currency: C});
|
| 109 |
+
if (truth) out.truth.push(truthRow({date, account: acct(id), currency: C, pending, ...truth}));
|
| 110 |
+
};
|
| 111 |
+
for (const p of all) {
|
| 112 |
+
const id = p.m.every != null ? "chk" : "card";
|
| 113 |
+
both(id, p.date, p.m.raw, p.m.name, p.amount, SOURCE_CATEGORY[p.m.category].pfc, p.pending === true,
|
| 114 |
+
{merchant: p.m.name, amount: -p.amount, category: p.m.category, kind: p.refund ? "refund" : p.m.every != null ? "bill" : "purchase"});
|
| 115 |
+
}
|
| 116 |
+
if (h.rent) for (const mo of h.months) { const d = day(mo, 1); if (d >= h.months[0] + "-" + pad(h.firstDay ?? 1) && d <= h.today) both("chk", d, h.rent.raw, h.rent.name, h.rent.amount, SOURCE_CATEGORY["Rent/Mortgage"].pfc, false, {merchant: h.rent.name, amount: -h.rent.amount, category: "Rent/Mortgage", kind: "rent"}); }
|
| 117 |
+
for (const d of paydays(h.months, h.today, h.payEvery, h.firstDay)) both("chk", d, `${h.payroll.raw}`, h.payroll.name, -h.payroll.amount, ["INCOME", "INCOME_WAGES"], false, {merchant: h.payroll.name, amount: h.payroll.amount, category: "Wages", kind: "income"});
|
| 118 |
+
for (const d of h.autopay) {
|
| 119 |
+
both("chk", d, "CHASE CREDIT CRD AUTOPAY", "Chase", h.autopayAmount, ["LOAN_PAYMENTS", "LOAN_PAYMENTS_CREDIT_CARD_PAYMENT"], false, {merchant: "Card payment", amount: -h.autopayAmount, category: "Credit Card Payment", kind: "card_payment"});
|
| 120 |
+
both("card", d, "AUTOMATIC PAYMENT - THANK", null, -h.autopayAmount, ["TRANSFER_IN", "TRANSFER_IN_ACCOUNT_TRANSFER"], false, {merchant: "Card payment", amount: h.autopayAmount, category: "Credit Card Payment", kind: "card_payment"});
|
| 121 |
+
}
|
| 122 |
+
if (h.cashback) both("card", h.cashback.date, "Credit Cashback Deposit", "Chase Cashback", -h.cashback.amount, ["TRANSFER_IN", "TRANSFER_IN_DEPOSIT"], false, {merchant: "Card cashback", amount: h.cashback.amount, category: "Other Income", kind: "cashback"});
|
| 123 |
+
added.sort((a, b) => a.date.localeCompare(b.date));
|
| 124 |
+
out.files.push({name: "plaid-page.json", kind: "plaid", text: JSON.stringify({institution: "Chase", connection_id: `conn_${h.id}`,
|
| 125 |
+
accounts: [{account_id: "chk", name: chk, official_name: null, type: "depository", subtype: "checking", mask: "4821", balance_current: out.accounts[0].balance},
|
| 126 |
+
{account_id: "card", name: card, official_name: null, type: "credit", subtype: "credit card", mask: "9902", balance_current: out.accounts[1].balance}],
|
| 127 |
+
page: {added, modified: [], removed: [], next_cursor: "c1", has_more: false}}, null, 1)});
|
| 128 |
+
return out;
|
| 129 |
+
},
|
| 130 |
+
monarch(h) {
|
| 131 |
+
const C = h.cur, chk = "Joint Checking (...4821)", card = "Sapphire (...9902)";
|
| 132 |
+
const all = purchases(h.merchants, h.seed, h.months, h.today, {firstDay: h.firstDay});
|
| 133 |
+
const out = {files: [], view: [], truth: [], accounts: [{name: chk, kind: "checking", currency: C}, {name: card, kind: "credit", currency: C}]};
|
| 134 |
+
const lines = ["Date,Merchant,Category,Account,Original Statement,Notes,Amount,Tags"];
|
| 135 |
+
const row = (date, merchant, cat, account, raw, amount, truth) => {
|
| 136 |
+
lines.push([date, q(merchant), q(cat), q(account), q(raw), "", amount.toFixed(2), ""].join(","));
|
| 137 |
+
out.view.push({date, description: merchant, amount, account, source_category: cat, source_type: "", pending: false, currency: C});
|
| 138 |
+
if (truth) out.truth.push(truthRow({date, account, currency: C, ...truth}));
|
| 139 |
+
};
|
| 140 |
+
for (const p of all) row(p.date, p.m.name, SOURCE_CATEGORY[p.m.category].monarch, p.m.every != null ? chk : card, p.m.raw, -p.amount,
|
| 141 |
+
{merchant: p.m.name, amount: -p.amount, category: p.m.category, kind: p.refund ? "refund" : p.m.every != null ? "bill" : "purchase", pending: p.pending});
|
| 142 |
+
if (h.rent) for (const mo of h.months) { const d = day(mo, 1); if (d >= `${h.months[0]}-${pad(h.firstDay ?? 1)}` && d <= h.today) row(d, h.rent.name, "Rent", chk, h.rent.raw, -h.rent.amount, {merchant: h.rent.name, amount: -h.rent.amount, category: "Rent/Mortgage", kind: "rent"}); }
|
| 143 |
+
for (const d of paydays(h.months, h.today, h.payEvery, h.firstDay)) row(d, h.payroll.name, "Paychecks", chk, h.payroll.raw, h.payroll.amount, {merchant: h.payroll.name, amount: h.payroll.amount, category: "Wages", kind: "income"});
|
| 144 |
+
for (const d of h.autopay) {
|
| 145 |
+
row(d, "Chase", "Credit Card Payment", chk, "CHASE CREDIT CRD AUTOPAY", -h.autopayAmount, {merchant: "Card payment", amount: -h.autopayAmount, category: "Credit Card Payment", kind: "card_payment"});
|
| 146 |
+
row(d, "Chase", "Credit Card Payment", card, "AUTOMATIC PAYMENT - THANK", h.autopayAmount, {merchant: "Card payment", amount: h.autopayAmount, category: "Credit Card Payment", kind: "card_payment"});
|
| 147 |
+
}
|
| 148 |
+
out.files.push({name: "monarch-transactions.csv", kind: "csv", account: "Monarch", text: lines.join("\n") + "\n"});
|
| 149 |
+
return out;
|
| 150 |
+
},
|
| 151 |
+
ynab(h) {
|
| 152 |
+
const C = h.cur;
|
| 153 |
+
const all = purchases(h.merchants, h.seed, h.months, h.today, {firstDay: h.firstDay});
|
| 154 |
+
const out = {files: [], view: [], truth: [], accounts: [{name: "Checking", kind: "checking", currency: C}, {name: "Visa", kind: "credit", currency: C}]};
|
| 155 |
+
const lines = ["Account,Flag,Date,Payee,Category Group/Category,Category Group,Category,Memo,Outflow,Inflow,Cleared"];
|
| 156 |
+
const grp = (leaf) => CATS.leaves[leaf] === "Food & Dining" ? "Everyday" : ["Bills & Utilities", "Housing"].includes(CATS.leaves[leaf]) ? "Bills" : "Fun";
|
| 157 |
+
const row = (account, date, payee, cat, amount, cleared, truth, type = "") => {
|
| 158 |
+
const g = cat === "" ? "" : cat === "Ready to Assign" ? "Inflow" : grp(truth?.category);
|
| 159 |
+
lines.push([account, "", usDate(date), q(payee), cat === "" ? "" : q(`${g}: ${cat}`), g, q(cat), "", q(usd(Math.max(-amount, 0))), q(usd(Math.max(amount, 0))), cleared].join(","));
|
| 160 |
+
out.view.push({date, description: payee, amount, account, source_category: cat === "" ? "" : `${g}: ${cat}`, source_type: type, pending: cleared === "Uncleared", currency: C});
|
| 161 |
+
if (truth) out.truth.push(truthRow({date, account, currency: C, pending: cleared === "Uncleared", ...truth}));
|
| 162 |
+
};
|
| 163 |
+
for (const p of all) row(p.m.every != null ? "Checking" : "Visa", p.date, p.m.name, SOURCE_CATEGORY[p.m.category].ynab, -p.amount, p.pending ? "Uncleared" : "Cleared",
|
| 164 |
+
{merchant: p.m.name, amount: -p.amount, category: p.m.category, kind: p.refund ? "refund" : p.m.every != null ? "bill" : "purchase"});
|
| 165 |
+
if (h.rent) for (const mo of h.months) { const d = day(mo, 1); if (d >= `${h.months[0]}-${pad(h.firstDay ?? 1)}` && d <= h.today) row("Checking", d, h.rent.name, "Rent", -h.rent.amount, "Cleared", {merchant: h.rent.name, amount: -h.rent.amount, category: "Rent/Mortgage", kind: "rent"}); }
|
| 166 |
+
for (const d of paydays(h.months, h.today, h.payEvery, h.firstDay)) row("Checking", d, h.payroll.name, "Ready to Assign", h.payroll.amount, "Cleared", {merchant: h.payroll.name, amount: h.payroll.amount, category: "Wages", kind: "income"});
|
| 167 |
+
for (const d of h.autopay) {
|
| 168 |
+
row("Checking", d, "Transfer : Visa", "", -h.autopayAmount, "Cleared", {merchant: "Card payment", amount: -h.autopayAmount, category: "Credit Card Payment", kind: "card_payment"}, "transfer");
|
| 169 |
+
row("Visa", d, "Transfer : Checking", "", h.autopayAmount, "Cleared", {merchant: "Card payment", amount: h.autopayAmount, category: "Credit Card Payment", kind: "card_payment"}, "transfer");
|
| 170 |
+
}
|
| 171 |
+
out.files.push({name: "ynab-register.csv", kind: "csv", account: "YNAB", text: lines.join("\n") + "\n"});
|
| 172 |
+
return out;
|
| 173 |
+
},
|
| 174 |
+
// a German bank file the person tagged themselves (";", decimal commas, dd.mm.yyyy, German categories); EUR
|
| 175 |
+
german(h) {
|
| 176 |
+
const C = h.cur, acct = h.accounts?.checking ?? "Girokonto";
|
| 177 |
+
const all = purchases(h.merchants, h.seed, h.months, h.today, {firstDay: h.firstDay, pending: false});
|
| 178 |
+
const out = {files: [], view: [], truth: [], accounts: [{name: acct, kind: "checking", currency: C}]};
|
| 179 |
+
const lines = ["Buchungstag;Beschreibung;Betrag;Kategorie"];
|
| 180 |
+
const row = (date, desc, amount, cat, truth) => {
|
| 181 |
+
lines.push([deDate(date), desc, deNum(amount), cat].join(";"));
|
| 182 |
+
out.view.push({date, description: desc, amount, account: acct, source_category: cat, source_type: "", pending: false, currency: C});
|
| 183 |
+
if (truth) out.truth.push(truthRow({date, account: acct, currency: C, ...truth}));
|
| 184 |
+
};
|
| 185 |
+
for (const p of all) row(p.date, p.m.name, -p.amount, SOURCE_CATEGORY[p.m.category].german, {merchant: p.m.name, amount: -p.amount, category: p.m.category, kind: p.refund ? "refund" : p.m.every != null ? "bill" : "purchase"});
|
| 186 |
+
if (h.rent) for (const mo of h.months) { const d = day(mo, 1); if (d >= `${h.months[0]}-${pad(h.firstDay ?? 1)}` && d <= h.today) row(d, h.rent.name, -h.rent.amount, "Miete", {merchant: h.rent.name, amount: -h.rent.amount, category: "Rent/Mortgage", kind: "rent"}); }
|
| 187 |
+
for (const d of paydays(h.months, h.today, "monthly", h.firstDay)) row(d, h.payroll.name, h.payroll.amount, "Gehalt", {merchant: h.payroll.name, amount: h.payroll.amount, category: "Wages", kind: "income"});
|
| 188 |
+
out.files.push({name: "umsaetze.csv", kind: "csv", account: acct, text: lines.join("\n") + "\n"});
|
| 189 |
+
return out;
|
| 190 |
+
},
|
| 191 |
+
// a German credit card file: bank strings that drop letters, card sign as a bank writes it (purchases negative)
|
| 192 |
+
germancard(h) {
|
| 193 |
+
const C = h.cur, acct = h.accounts?.card ?? "Kreditkarte";
|
| 194 |
+
const all = purchases(h.merchants, h.seed, h.months, h.today, {firstDay: h.firstDay, pending: false});
|
| 195 |
+
const out = {files: [], view: [], truth: [], accounts: [{name: acct, kind: "credit", currency: C}]};
|
| 196 |
+
const lines = ["Buchungstag;Buchungstext;Betrag;Kategorie"];
|
| 197 |
+
for (const p of all) {
|
| 198 |
+
lines.push([deDate(p.date), p.m.raw, deNum(-p.amount), SOURCE_CATEGORY[p.m.category].german].join(";"));
|
| 199 |
+
out.view.push({date: p.date, description: p.m.raw, amount: -p.amount, account: acct, source_category: SOURCE_CATEGORY[p.m.category].german, source_type: "", pending: false, currency: C});
|
| 200 |
+
out.truth.push(truthRow({date: p.date, merchant: p.m.name, amount: -p.amount, account: acct, category: p.m.category, currency: C, kind: p.refund ? "refund" : p.m.every != null ? "bill" : "purchase"}));
|
| 201 |
+
}
|
| 202 |
+
out.files.push({name: "kreditkarte.csv", kind: "csv", account: acct, text: lines.join("\n") + "\n"});
|
| 203 |
+
return out;
|
| 204 |
+
},
|
| 205 |
+
// card downloads: everything on the card, the card's own payments, purchases in the shape's own sign
|
| 206 |
+
chase(h) { return cardFile(h, "chase"); },
|
| 207 |
+
amex(h) { return cardFile(h, "amex"); },
|
| 208 |
+
capitalone(h) { return cardFile(h, "capitalone"); },
|
| 209 |
+
copilot(h) {
|
| 210 |
+
const C = h.cur;
|
| 211 |
+
const all = purchases(h.merchants, h.seed, h.months, h.today, {firstDay: h.firstDay});
|
| 212 |
+
const out = {files: [], view: [], truth: [], accounts: [{name: "Checking", kind: "checking", currency: C}, {name: "Sapphire", kind: "credit", currency: C}]};
|
| 213 |
+
const parent = (leaf) => ({"Food & Dining": "Food", "Transportation": "Transportation", "Bills & Utilities": "Bills & Utilities", "Housing": "Housing"})[CATS.leaves[leaf]] ?? "Shopping";
|
| 214 |
+
const lines = ["date,name,amount,status,category,parent category,excluded,tags,type,account,account mask,note,recurring"];
|
| 215 |
+
const row = (date, name, amount, status, cat, par, excluded, type, account, mask, note, rec, truth) => {
|
| 216 |
+
// (Copilot: spending positive)
|
| 217 |
+
lines.push([date, q(name), (-amount).toFixed(2), status, q(cat), q(par), excluded, "", type, account, mask, q(note), q(rec)].join(","));
|
| 218 |
+
out.view.push({date, description: name, amount, account, source_category: cat ? `${par}: ${cat}` : "", source_type: `${type}${excluded === "true" ? " (excluded)" : ""}`, pending: status === "pending", currency: C});
|
| 219 |
+
if (truth) out.truth.push(truthRow({date, account, currency: C, pending: status === "pending", ...truth}));
|
| 220 |
+
};
|
| 221 |
+
for (const p of all) {
|
| 222 |
+
const onChk = p.m.every != null;
|
| 223 |
+
row(p.date, p.m.name, -p.amount, p.pending ? "pending" : "posted", SOURCE_CATEGORY[p.m.category].ynab, parent(p.m.category), "false", "regular", onChk ? "Checking" : "Sapphire", onChk ? "4821" : "9902", "", onChk ? p.m.name : "",
|
| 224 |
+
{merchant: p.m.name, amount: -p.amount, category: p.m.category, kind: p.refund ? "refund" : onChk ? "bill" : "purchase"});
|
| 225 |
+
}
|
| 226 |
+
if (h.rent) for (const mo of h.months) { const d = day(mo, 1); if (d >= `${h.months[0]}-${pad(h.firstDay ?? 1)}` && d <= h.today) row(d, h.rent.name, -h.rent.amount, "posted", "Rent", "Housing", "false", "regular", "Checking", "4821", "", h.rent.name, {merchant: h.rent.name, amount: -h.rent.amount, category: "Rent/Mortgage", kind: "rent"}); }
|
| 227 |
+
for (const d of paydays(h.months, h.today, h.payEvery, h.firstDay)) row(d, h.payroll.name, h.payroll.amount, "posted", "", "", "true", "income", "Checking", "4821", "", "", {merchant: h.payroll.name, amount: h.payroll.amount, category: "Wages", kind: "income"});
|
| 228 |
+
for (const d of h.autopay) {
|
| 229 |
+
row(d, "Chase Credit Card Payment", -h.autopayAmount, "posted", "", "", "true", "internal transfer", "Checking", "4821", "", "", {merchant: "Card payment", amount: -h.autopayAmount, category: "Credit Card Payment", kind: "card_payment"});
|
| 230 |
+
row(d, "Payment Thank You", h.autopayAmount, "posted", "", "", "true", "internal transfer", "Sapphire", "9902", "", "", {merchant: "Card payment", amount: h.autopayAmount, category: "Credit Card Payment", kind: "card_payment"});
|
| 231 |
+
}
|
| 232 |
+
// a purchase its owner excluded in Copilot (a reimbursed work lunch): in the file, never counted (no truth row)
|
| 233 |
+
if (h.excluded) row(h.excluded.date, h.excluded.name, -h.excluded.amount, "posted", "Dining Out", "Food", "true", "regular", "Sapphire", "9902", "reimbursed", "", null);
|
| 234 |
+
out.files.push({name: "transactions.csv", kind: "csv", account: "Copilot", text: lines.join("\n") + "\n"});
|
| 235 |
+
return out;
|
| 236 |
+
},
|
| 237 |
+
// the old shape: Date, Description, Amount (the description IS the shop; no refunds: a credit in a file with no
|
| 238 |
+
// category is money in nobody explained, so this household carries none)
|
| 239 |
+
plain(h) {
|
| 240 |
+
const C = h.cur, acct = h.accounts?.checking ?? "Checking";
|
| 241 |
+
const all = purchases(h.merchants, h.seed, h.months, h.today, {firstDay: h.firstDay, refund: false, pending: false});
|
| 242 |
+
const out = {files: [], view: [], truth: [], accounts: [{name: acct, kind: "checking", currency: C}]};
|
| 243 |
+
const lines = ["Date,Description,Amount"];
|
| 244 |
+
const row = (date, desc, amount, truth) => {
|
| 245 |
+
lines.push([date, q(desc), amount.toFixed(2)].join(","));
|
| 246 |
+
out.view.push({date, description: desc, amount, account: acct, source_category: "", source_type: "", pending: false, currency: C});
|
| 247 |
+
out.truth.push(truthRow({date, account: acct, currency: C, ...truth}));
|
| 248 |
+
};
|
| 249 |
+
for (const p of all) row(p.date, p.m.name, -p.amount, {merchant: p.m.name, amount: -p.amount, category: p.m.category, kind: p.m.every != null ? "bill" : "purchase"});
|
| 250 |
+
if (h.rent) for (const mo of h.months) { const d = day(mo, 1); if (d >= `${h.months[0]}-${pad(h.firstDay ?? 1)}` && d <= h.today) row(d, h.rent.name, -h.rent.amount, {merchant: h.rent.name, amount: -h.rent.amount, category: "Rent/Mortgage", kind: "rent"}); }
|
| 251 |
+
for (const d of paydays(h.months, h.today, h.payEvery, h.firstDay)) row(d, h.payroll.name, h.payroll.amount, {merchant: h.payroll.name, amount: h.payroll.amount, category: "Wages", kind: "income"});
|
| 252 |
+
out.files.push({name: "checking.csv", kind: "csv", account: acct, text: lines.join("\n") + "\n"});
|
| 253 |
+
return out;
|
| 254 |
+
},
|
| 255 |
+
// TWO CURRENCIES: a home checking account (plain CSV with a Category column) and a card kept in another currency
|
| 256 |
+
// (its file states the currency on every row). No total adds the two.
|
| 257 |
+
multicurrency(h) {
|
| 258 |
+
const home = h.cur, other = h.foreign.currency;
|
| 259 |
+
const chk = h.accounts?.checking ?? "Everyday Checking", card = h.foreign.account;
|
| 260 |
+
const out = {files: [], view: [], truth: [], accounts: [{name: chk, kind: "checking", currency: home}, {name: card, kind: "credit", currency: other}]};
|
| 261 |
+
const homeRows = purchases(h.merchants, h.seed, h.months, h.today, {firstDay: h.firstDay, pending: false});
|
| 262 |
+
const lines = ["Date,Description,Amount,Category"];
|
| 263 |
+
const row = (date, desc, amount, cat, truth) => {
|
| 264 |
+
lines.push([date, q(desc), amount.toFixed(2), q(cat)].join(","));
|
| 265 |
+
out.view.push({date, description: desc, amount, account: chk, source_category: cat, source_type: "", pending: false, currency: home});
|
| 266 |
+
out.truth.push(truthRow({date, account: chk, currency: home, ...truth}));
|
| 267 |
+
};
|
| 268 |
+
for (const p of homeRows) row(p.date, p.m.name, -p.amount, p.m.category, {merchant: p.m.name, amount: -p.amount, category: p.m.category, kind: p.refund ? "refund" : p.m.every != null ? "bill" : "purchase"});
|
| 269 |
+
if (h.rent) for (const mo of h.months) { const d = day(mo, 1); if (d >= `${h.months[0]}-${pad(h.firstDay ?? 1)}` && d <= h.today) row(d, h.rent.name, -h.rent.amount, "Rent/Mortgage", {merchant: h.rent.name, amount: -h.rent.amount, category: "Rent/Mortgage", kind: "rent"}); }
|
| 270 |
+
for (const d of paydays(h.months, h.today, h.payEvery, h.firstDay)) row(d, h.payroll.name, h.payroll.amount, "Wages", {merchant: h.payroll.name, amount: h.payroll.amount, category: "Wages", kind: "income"});
|
| 271 |
+
// the foreign card: its own file, a Currency column on every row; purchases negative
|
| 272 |
+
const away = purchases(h.foreign.merchants, h.seed + 1, h.foreign.months ?? h.months, h.today, {firstDay: h.firstDay, pending: false, refund: false});
|
| 273 |
+
const fl = ["Date,Description,Amount,Currency,Category"];
|
| 274 |
+
for (const p of away) {
|
| 275 |
+
fl.push([p.date, q(p.m.raw), (-p.amount).toFixed(2), other, q(p.m.category)].join(","));
|
| 276 |
+
out.view.push({date: p.date, description: p.m.raw, amount: -p.amount, account: card, source_category: p.m.category, source_type: "", pending: false, currency: other});
|
| 277 |
+
out.truth.push(truthRow({date: p.date, merchant: p.m.name, amount: -p.amount, account: card, category: p.m.category, currency: other, kind: p.m.every != null ? "bill" : "purchase"}));
|
| 278 |
+
}
|
| 279 |
+
out.files.push({name: "checking.csv", kind: "csv", account: chk, currency: home, text: lines.join("\n") + "\n"});
|
| 280 |
+
out.files.push({name: `${card.toLowerCase().replace(/[^a-z0-9]+/g, "-")}.csv`, kind: "csv", account: card, currency: other, text: fl.join("\n") + "\n"});
|
| 281 |
+
return out;
|
| 282 |
+
}
|
| 283 |
+
};
|
| 284 |
+
|
| 285 |
+
function cardFile(h, brand) {
|
| 286 |
+
const C = h.cur;
|
| 287 |
+
const acct = {chase: "Chase Sapphire", amex: "Amex Gold", capitalone: "Capital One Quicksilver"}[brand];
|
| 288 |
+
const all = purchases(h.merchants, h.seed, h.months, h.today, {firstDay: h.firstDay});
|
| 289 |
+
const out = {files: [], view: [], truth: [], accounts: [{name: acct, kind: "credit", currency: C}]};
|
| 290 |
+
const post = (d) => { const x = addDays(d, 1); return x > h.today ? d : x; };
|
| 291 |
+
let lines, ref = 320261000;
|
| 292 |
+
if (brand === "chase") lines = ["Transaction Date,Post Date,Description,Category,Type,Amount,Memo"];
|
| 293 |
+
if (brand === "amex") lines = ["Date,Description,Amount,Extended Details,Appears On Your Statement As,Address,City/State,Zip Code,Country,Reference,Category"];
|
| 294 |
+
if (brand === "capitalone") lines = ["Transaction Date,Posted Date,Card No.,Description,Category,Debit,Credit"];
|
| 295 |
+
const write = (date, raw, out_, cat, type) => {
|
| 296 |
+
// out_: positive = money out of the person (a purchase); negative = a refund or a payment to the card
|
| 297 |
+
if (brand === "chase") lines.push([usDate(date), usDate(post(date)), q(raw), q(cat), type, (-out_).toFixed(2), ""].join(","));
|
| 298 |
+
if (brand === "amex") lines.push([usDate(date), q(raw), out_.toFixed(2), "", q(raw), "", q("NEW YORK\nNY"), "10001", "UNITED STATES", `'${ref++}'`, q(cat)].join(","));
|
| 299 |
+
if (brand === "capitalone") lines.push([date, post(date), "4417", q(raw), q(cat), out_ > 0 ? out_.toFixed(2) : "", out_ < 0 ? (-out_).toFixed(2) : ""].join(","));
|
| 300 |
+
};
|
| 301 |
+
const srcKey = {chase: "chase", amex: "amex", capitalone: "capone"}[brand];
|
| 302 |
+
for (const p of all) {
|
| 303 |
+
const cat = SOURCE_CATEGORY[p.m.category][srcKey];
|
| 304 |
+
write(p.date, p.m.raw, p.amount, cat, p.amount < 0 ? "Return" : "Sale");
|
| 305 |
+
out.view.push({date: p.date, description: p.m.raw, amount: -p.amount, account: acct, source_category: cat, source_type: brand === "chase" ? (p.amount < 0 ? "Return" : "Sale") : "", pending: p.pending === true, currency: C});
|
| 306 |
+
out.truth.push(truthRow({date: p.date, merchant: p.m.name, amount: -p.amount, account: acct, category: p.m.category, currency: C, pending: p.pending, kind: p.refund ? "refund" : p.m.every != null ? "bill" : "purchase"}));
|
| 307 |
+
}
|
| 308 |
+
const payText = {chase: "Payment Thank You-Mobile", amex: "AUTOPAY PAYMENT - THANK YOU", capitalone: "CAPITAL ONE MOBILE PYMT"}[brand];
|
| 309 |
+
for (const d of h.autopay) {
|
| 310 |
+
write(d, payText, -h.autopayAmount, brand === "capitalone" ? "Payment/Credit" : "", "Payment");
|
| 311 |
+
out.view.push({date: d, description: payText, amount: h.autopayAmount, account: acct, source_category: brand === "capitalone" ? "Payment/Credit" : "", source_type: brand === "chase" ? "Payment" : "", pending: false, currency: C});
|
| 312 |
+
out.truth.push(truthRow({date: d, merchant: "Card payment", amount: h.autopayAmount, account: acct, category: "Credit Card Payment", currency: C, kind: "card_payment"}));
|
| 313 |
+
}
|
| 314 |
+
const fileName = {chase: "Chase9902_Activity.CSV", amex: "activity.csv", capitalone: "transaction_download.csv"}[brand];
|
| 315 |
+
out.files.push({name: fileName, kind: "csv", account: acct, text: lines.join("\n") + "\n"});
|
| 316 |
+
return out;
|
| 317 |
+
}
|
| 318 |
+
|
| 319 |
+
// ---- the classic household: eval/data/ledger.csv, copied as it was frozen ---------------------------------------------
|
| 320 |
+
function classic(h, outDir) {
|
| 321 |
+
const src = fs.readFileSync(path.join(path.dirname(new URL(import.meta.url).pathname), "classic/data/ledger.csv"), "utf8");
|
| 322 |
+
const lines = src.replace(/\r/g, "").trim().split("\n");
|
| 323 |
+
const out = {files: [{name: "ledger.csv", kind: "csv", account: "Checking", text: src}], view: [], truth: [], accounts: []};
|
| 324 |
+
const keys = h.merchantKeys;
|
| 325 |
+
const accts = new Set();
|
| 326 |
+
for (const l of lines.slice(1)) {
|
| 327 |
+
const [date, description, amount, account, category] = parseCsvLine(l);
|
| 328 |
+
const a = Number(amount);
|
| 329 |
+
const merchant = Object.entries(keys).find(([, ks]) => ks.some((k) => description.toUpperCase().includes(k)))?.[0] ?? description;
|
| 330 |
+
const group = CATS.leaves[category];
|
| 331 |
+
const kind = group === "Income" ? "income" : category === "Credit Card Payment" ? "card_payment" : group === "Transfers" ? "transfer" : category === "Rent/Mortgage" ? "rent" : a > 0 ? "refund" : "purchase";
|
| 332 |
+
out.truth.push(truthRow({date, merchant, amount: a, account, category, currency: h.cur, kind}));
|
| 333 |
+
out.view.push({date, description, amount: a, account, source_category: category, source_type: "", pending: false, currency: h.cur});
|
| 334 |
+
accts.add(account);
|
| 335 |
+
}
|
| 336 |
+
out.accounts = [...accts].map((name) => ({name, kind: /visa|card|amex/i.test(name) ? "credit" : "checking", currency: h.cur}));
|
| 337 |
+
return out;
|
| 338 |
+
}
|
| 339 |
+
|
| 340 |
+
const TRUTH_COLS = ["date", "merchant", "amount", "account", "category", "group", "currency", "kind", "pending"];
|
| 341 |
+
const VIEW_COLS = ["date", "description", "amount", "account", "source_category", "source_type", "pending", "currency"];
|
| 342 |
+
const toCsv = (rows, cols) => [cols.join(","), ...rows.map((r) => cols.map((c) => q(typeof r[c] === "number" ? r[c].toFixed(2) : String(r[c] ?? ""))).join(","))].join("\n") + "\n";
|
| 343 |
+
|
| 344 |
+
export function generate(h, outDir) {
|
| 345 |
+
const res = h.shape === "classic" ? classic(h, outDir) : SHAPES[h.shape](h);
|
| 346 |
+
res.truth.sort((a, b) => a.date.localeCompare(b.date) || a.account.localeCompare(b.account) || a.merchant.localeCompare(b.merchant) || a.amount - b.amount);
|
| 347 |
+
res.view.sort((a, b) => a.date.localeCompare(b.date) || a.account.localeCompare(b.account) || a.description.localeCompare(b.description) || a.amount - b.amount);
|
| 348 |
+
const dir = path.join(outDir, h.id);
|
| 349 |
+
fs.rmSync(dir, {recursive: true, force: true});
|
| 350 |
+
for (const sub of ["source", "view", "truth"]) fs.mkdirSync(path.join(dir, sub), {recursive: true});
|
| 351 |
+
for (const f of res.files) fs.writeFileSync(path.join(dir, "source", f.name), f.text);
|
| 352 |
+
fs.writeFileSync(path.join(dir, "view/view.csv"), toCsv(res.view, VIEW_COLS));
|
| 353 |
+
fs.writeFileSync(path.join(dir, "truth/ledger.csv"), toCsv(res.truth, TRUTH_COLS));
|
| 354 |
+
const months = [...new Set(res.truth.map((r) => r.date.slice(0, 7)))].sort();
|
| 355 |
+
const setup = {id: h.id, shape: h.shape, today: h.today, currency: h.cur, months, accounts: res.accounts.map(({name, kind, balance, currency}) => ({name, kind, currency, ...(balance != null ? {balance} : {})})),
|
| 356 |
+
region: h.region ?? (h.cur === "EUR" ? "DE" : "US"),
|
| 357 |
+
load: res.files.map(({name, kind, account, currency}) => ({file: `source/${name}`, kind, ...(account ? {account} : {}), ...(currency ? {currency} : {})})),
|
| 358 |
+
persona: h.persona ?? null};
|
| 359 |
+
fs.writeFileSync(path.join(dir, "truth/setup.json"), JSON.stringify(setup, null, 1) + "\n");
|
| 360 |
+
// the names a shop goes by: as a person says it, and as its source writes it (an answer may name either)
|
| 361 |
+
const aliases = {};
|
| 362 |
+
for (const m of [...(h.merchants ?? []), ...(h.foreign?.merchants ?? [])]) aliases[m.name] = [...new Set([m.name, m.raw].filter(Boolean))];
|
| 363 |
+
for (const extra of [h.rent, h.payroll]) if (extra) aliases[extra.name] = [...new Set([extra.name, extra.raw].filter(Boolean))];
|
| 364 |
+
if (h.merchantKeys) for (const [n, ks] of Object.entries(h.merchantKeys)) aliases[n] = [n, ...ks];
|
| 365 |
+
fs.writeFileSync(path.join(dir, "truth/merchants.json"), JSON.stringify(aliases, null, 1) + "\n");
|
| 366 |
+
return {id: h.id, rows: res.truth.length, months, files: res.files.map((f) => f.name)};
|
| 367 |
+
}
|
| 368 |
+
|
| 369 |
+
if (process.argv[1] != null && import.meta.url === pathToFileURL(process.argv[1]).href) {
|
| 370 |
+
const [configPath, outDir] = process.argv.slice(2);
|
| 371 |
+
if (!configPath || !outDir) { console.error("usage: gen.mjs <config.mjs|config.json> <out dir>"); process.exit(2); }
|
| 372 |
+
const cfg = configPath.endsWith(".json") ? JSON.parse(fs.readFileSync(configPath, "utf8")) : (await import(pathToFileURL(path.resolve(configPath)).href)).HOUSEHOLDS;
|
| 373 |
+
for (const h of cfg) console.log(JSON.stringify(generate(h, outDir)));
|
| 374 |
+
}
|
households/public.config.mjs
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// BudgetBench v1, PUBLIC households (the dev split). The sealed split's households are in a git-ignored config
|
| 2 |
+
// (see CONTAMINATION.md); only its hash is committed.
|
| 3 |
+
import {US, DE, DE_CARD, EU_TRIP} from "./sources.mjs";
|
| 4 |
+
|
| 5 |
+
const MONTHS = ["2026-07", "2026-08", "2026-09", "2026-10"];
|
| 6 |
+
const BASE = {months: MONTHS, firstDay: 22, today: "2026-10-16", cur: "USD",
|
| 7 |
+
payroll: {name: "Gusto", raw: "GUSTO PAY 102947", amount: 3150}, payEvery: "semimonthly",
|
| 8 |
+
autopay: ["2026-08-05", "2026-09-05", "2026-10-05"], autopayAmount: 1200};
|
| 9 |
+
const RENT = {name: "Hudson Property", raw: "HUDSON PROPERTY MGMT RENT", amount: 2150};
|
| 10 |
+
const pick = (names) => US.filter((m) => names.includes(m.name));
|
| 11 |
+
|
| 12 |
+
export const HOUSEHOLDS = [
|
| 13 |
+
// the frozen synthetic ledger of the first public eval (176 questions, gold by its own reference.py)
|
| 14 |
+
{id: "p-classic", shape: "classic", cur: "USD", today: "2026-09-24",
|
| 15 |
+
merchantKeys: {"Starbucks": ["STARBUCKS"], "Blue Bottle": ["BLUE BOTTLE"], "Whole Foods": ["WHOLE FOODS"], "Costco": ["COSTCO"], "Trader Joe's": ["TRADER JOE"],
|
| 16 |
+
"Safeway": ["SAFEWAY"], "Uber Eats": ["UBER EATS"], "Uber": ["UBER TRIP"], "Lyft": ["LYFT"], "DoorDash": ["DOORDASH"], "Amazon": ["AMZN", "AMAZON"],
|
| 17 |
+
"Netflix": ["NETFLIX"], "Spotify": ["SPOTIFY"], "Target": ["TARGET"], "Shell": ["SHELL OIL"], "Chevron": ["CHEVRON"], "CVS": ["CVS"], "Equinox": ["EQUINOX"],
|
| 18 |
+
"Sushi Nakazawa": ["SUSHI NAKAZAWA"], "The French Laundry": ["FRENCH LAUNDRY"], "IKEA": ["IKEA"]}},
|
| 19 |
+
{...BASE, id: "p-connected", shape: "connected", seed: 11, merchants: US.slice(0, 11), rent: RENT, cashback: {date: "2026-09-29", amount: 14.2}, balances: {checking: 6120, card: 1840}},
|
| 20 |
+
{...BASE, id: "p-monarch", shape: "monarch", seed: 23, merchants: [...US.slice(0, 9), ...pick(["Trader Joe's"])]},
|
| 21 |
+
{...BASE, id: "p-ynab", shape: "ynab", seed: 37, merchants: US.slice(1, 11), rent: {...RENT, amount: 1980}},
|
| 22 |
+
{...BASE, id: "p-chase", shape: "chase", seed: 89, merchants: US.slice(0, 11)},
|
| 23 |
+
{...BASE, id: "p-amex", shape: "amex", seed: 97, merchants: [...US.slice(0, 11), ...pick(["Sweetgreen"])]},
|
| 24 |
+
{...BASE, id: "p-capitalone", shape: "capitalone", seed: 103, merchants: [...US.slice(0, 8), ...pick(["CVS"])]},
|
| 25 |
+
{...BASE, id: "p-copilot", shape: "copilot", seed: 113, merchants: US.slice(0, 11), excluded: {date: "2026-09-17", name: "Work Lunch Co", amount: 84}},
|
| 26 |
+
{...BASE, id: "p-german", shape: "german", seed: 53, cur: "EUR", region: "DE", merchants: DE, payroll: {name: "Gehalt Muster GmbH", raw: "Gehalt Muster GmbH", amount: 2840}, rent: {name: "Hausverwaltung Kraus", raw: "Hausverwaltung Kraus", amount: 1120}},
|
| 27 |
+
{...BASE, id: "p-germancard", shape: "germancard", seed: 131, cur: "EUR", region: "DE", merchants: DE_CARD, autopay: []},
|
| 28 |
+
{...BASE, id: "p-plain", shape: "plain", seed: 71, merchants: [...US.slice(2, 11), ...pick(["Trader Joe's", "CVS"])], payroll: {name: "Gusto Payroll", raw: "Gusto Payroll", amount: 3150}, rent: RENT},
|
| 29 |
+
{...BASE, id: "p-multicurrency", shape: "multicurrency", seed: 151, merchants: pick(["Whole Foods Market", "Blue Bottle Coffee", "Netflix", "Con Edison", "Verizon", "Uber", "Amazon"]),
|
| 30 |
+
rent: {...RENT, amount: 2300}, payroll: {name: "Acme Payroll", raw: "ACME PAYROLL", amount: 3400},
|
| 31 |
+
foreign: {currency: "EUR", account: "Revolut EUR", merchants: EU_TRIP, months: ["2026-09", "2026-10"]}}
|
| 32 |
+
];
|
households/public/p-amex/source/activity.csv
ADDED
|
@@ -0,0 +1,177 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Date,Description,Amount,Extended Details,Appears On Your Statement As,Address,City/State,Zip Code,Country,Reference,Category
|
| 2 |
+
07/22/2026,UBER *TRIP HELP.UBER.COM,19.49,,UBER *TRIP HELP.UBER.COM,,"NEW YORK
|
| 3 |
+
NY",10001,UNITED STATES,'320261000',Transportation-Taxis & Coach
|
| 4 |
+
07/22/2026,UBER *TRIP HELP.UBER.COM,20.58,,UBER *TRIP HELP.UBER.COM,,"NEW YORK
|
| 5 |
+
NY",10001,UNITED STATES,'320261001',Transportation-Taxis & Coach
|
| 6 |
+
07/23/2026,AMZN Mktp US*2K4LM0,36.75,,AMZN Mktp US*2K4LM0,,"NEW YORK
|
| 7 |
+
NY",10001,UNITED STATES,'320261002',Merchandise & Supplies-Internet Purchase
|
| 8 |
+
07/23/2026,SQ *BLUE BOTTLE COFFEE,6.18,,SQ *BLUE BOTTLE COFFEE,,"NEW YORK
|
| 9 |
+
NY",10001,UNITED STATES,'320261003',Restaurant-Bar & Café
|
| 10 |
+
07/23/2026,CHIPOTLE 2291,19.82,,CHIPOTLE 2291,,"NEW YORK
|
| 11 |
+
NY",10001,UNITED STATES,'320261004',Restaurant-Restaurant
|
| 12 |
+
07/23/2026,WHOLEFDS MKT #10234,123.06,,WHOLEFDS MKT #10234,,"NEW YORK
|
| 13 |
+
NY",10001,UNITED STATES,'320261005',Merchandise & Supplies-Groceries
|
| 14 |
+
07/24/2026,AMZN Mktp US*2K4LM0,38.21,,AMZN Mktp US*2K4LM0,,"NEW YORK
|
| 15 |
+
NY",10001,UNITED STATES,'320261006',Merchandise & Supplies-Internet Purchase
|
| 16 |
+
07/25/2026,SHELL OIL 57442,62.70,,SHELL OIL 57442,,"NEW YORK
|
| 17 |
+
NY",10001,UNITED STATES,'320261007',Transportation-Fuel
|
| 18 |
+
07/25/2026,WHOLEFDS MKT #10234,70.85,,WHOLEFDS MKT #10234,,"NEW YORK
|
| 19 |
+
NY",10001,UNITED STATES,'320261008',Merchandise & Supplies-Groceries
|
| 20 |
+
07/25/2026,WHOLEFDS MKT #10234,71.11,,WHOLEFDS MKT #10234,,"NEW YORK
|
| 21 |
+
NY",10001,UNITED STATES,'320261009',Merchandise & Supplies-Groceries
|
| 22 |
+
07/26/2026,SWEETGREEN NOHO,14.36,,SWEETGREEN NOHO,,"NEW YORK
|
| 23 |
+
NY",10001,UNITED STATES,'320261010',Restaurant-Restaurant
|
| 24 |
+
07/27/2026,SQ *BLUE BOTTLE COFFEE,9.21,,SQ *BLUE BOTTLE COFFEE,,"NEW YORK
|
| 25 |
+
NY",10001,UNITED STATES,'320261011',Restaurant-Bar & Café
|
| 26 |
+
07/27/2026,SQ *BLUE BOTTLE COFFEE,10.46,,SQ *BLUE BOTTLE COFFEE,,"NEW YORK
|
| 27 |
+
NY",10001,UNITED STATES,'320261012',Restaurant-Bar & Café
|
| 28 |
+
07/27/2026,CHIPOTLE 2291,15.84,,CHIPOTLE 2291,,"NEW YORK
|
| 29 |
+
NY",10001,UNITED STATES,'320261013',Restaurant-Restaurant
|
| 30 |
+
07/28/2026,SQ *BLUE BOTTLE COFFEE,4.55,,SQ *BLUE BOTTLE COFFEE,,"NEW YORK
|
| 31 |
+
NY",10001,UNITED STATES,'320261014',Restaurant-Bar & Café
|
| 32 |
+
07/28/2026,SQ *BLUE BOTTLE COFFEE,8.70,,SQ *BLUE BOTTLE COFFEE,,"NEW YORK
|
| 33 |
+
NY",10001,UNITED STATES,'320261015',Restaurant-Bar & Café
|
| 34 |
+
07/28/2026,SWEETGREEN NOHO,13.53,,SWEETGREEN NOHO,,"NEW YORK
|
| 35 |
+
NY",10001,UNITED STATES,'320261016',Restaurant-Restaurant
|
| 36 |
+
07/28/2026,UBER *TRIP HELP.UBER.COM,12.86,,UBER *TRIP HELP.UBER.COM,,"NEW YORK
|
| 37 |
+
NY",10001,UNITED STATES,'320261017',Transportation-Taxis & Coach
|
| 38 |
+
07/28/2026,UBER *TRIP HELP.UBER.COM,34.14,,UBER *TRIP HELP.UBER.COM,,"NEW YORK
|
| 39 |
+
NY",10001,UNITED STATES,'320261018',Transportation-Taxis & Coach
|
| 40 |
+
08/02/2026,EQUINOX 0412 NEW YORK,230.00,,EQUINOX 0412 NEW YORK,,"NEW YORK
|
| 41 |
+
NY",10001,UNITED STATES,'320261019',Other-Health Care
|
| 42 |
+
08/03/2026,NOTION LABS INC,10.00,,NOTION LABS INC,,"NEW YORK
|
| 43 |
+
NY",10001,UNITED STATES,'320261020',Business Services-Internet Services
|
| 44 |
+
08/03/2026,SHELL OIL 57442,39.67,,SHELL OIL 57442,,"NEW YORK
|
| 45 |
+
NY",10001,UNITED STATES,'320261021',Transportation-Fuel
|
| 46 |
+
08/05/2026,WHOLEFDS MKT #10234,109.78,,WHOLEFDS MKT #10234,,"NEW YORK
|
| 47 |
+
NY",10001,UNITED STATES,'320261022',Merchandise & Supplies-Groceries
|
| 48 |
+
08/07/2026,WHOLEFDS MKT #10234,120.14,,WHOLEFDS MKT #10234,,"NEW YORK
|
| 49 |
+
NY",10001,UNITED STATES,'320261023',Merchandise & Supplies-Groceries
|
| 50 |
+
08/08/2026,WHOLEFDS MKT #10234,109.17,,WHOLEFDS MKT #10234,,"NEW YORK
|
| 51 |
+
NY",10001,UNITED STATES,'320261024',Merchandise & Supplies-Groceries
|
| 52 |
+
08/09/2026,CHIPOTLE 2291,13.93,,CHIPOTLE 2291,,"NEW YORK
|
| 53 |
+
NY",10001,UNITED STATES,'320261025',Restaurant-Restaurant
|
| 54 |
+
08/09/2026,NETFLIX.COM,15.49,,NETFLIX.COM,,"NEW YORK
|
| 55 |
+
NY",10001,UNITED STATES,'320261026',Entertainment-Other Entertainment
|
| 56 |
+
08/14/2026,CON ED OF NY INTELL CK,84.20,,CON ED OF NY INTELL CK,,"NEW YORK
|
| 57 |
+
NY",10001,UNITED STATES,'320261027',Business Services-Utilities
|
| 58 |
+
08/15/2026,UBER *TRIP HELP.UBER.COM,31.53,,UBER *TRIP HELP.UBER.COM,,"NEW YORK
|
| 59 |
+
NY",10001,UNITED STATES,'320261028',Transportation-Taxis & Coach
|
| 60 |
+
08/16/2026,UBER *TRIP HELP.UBER.COM,18.39,,UBER *TRIP HELP.UBER.COM,,"NEW YORK
|
| 61 |
+
NY",10001,UNITED STATES,'320261029',Transportation-Taxis & Coach
|
| 62 |
+
08/20/2026,SQ *BLUE BOTTLE COFFEE,11.39,,SQ *BLUE BOTTLE COFFEE,,"NEW YORK
|
| 63 |
+
NY",10001,UNITED STATES,'320261030',Restaurant-Bar & Café
|
| 64 |
+
08/20/2026,CHIPOTLE 2291,19.06,,CHIPOTLE 2291,,"NEW YORK
|
| 65 |
+
NY",10001,UNITED STATES,'320261031',Restaurant-Restaurant
|
| 66 |
+
08/21/2026,VZWRLSS*APOCC VISN,65.00,,VZWRLSS*APOCC VISN,,"NEW YORK
|
| 67 |
+
NY",10001,UNITED STATES,'320261032',Communications-Cable & Internet Comm
|
| 68 |
+
08/22/2026,SWEETGREEN NOHO,13.35,,SWEETGREEN NOHO,,"NEW YORK
|
| 69 |
+
NY",10001,UNITED STATES,'320261033',Restaurant-Restaurant
|
| 70 |
+
08/23/2026,SQ *BLUE BOTTLE COFFEE,12.13,,SQ *BLUE BOTTLE COFFEE,,"NEW YORK
|
| 71 |
+
NY",10001,UNITED STATES,'320261034',Restaurant-Bar & Café
|
| 72 |
+
08/24/2026,UBER *TRIP HELP.UBER.COM,31.00,,UBER *TRIP HELP.UBER.COM,,"NEW YORK
|
| 73 |
+
NY",10001,UNITED STATES,'320261035',Transportation-Taxis & Coach
|
| 74 |
+
08/25/2026,AMZN Mktp US*2K4LM0,44.45,,AMZN Mktp US*2K4LM0,,"NEW YORK
|
| 75 |
+
NY",10001,UNITED STATES,'320261036',Merchandise & Supplies-Internet Purchase
|
| 76 |
+
08/27/2026,CHIPOTLE 2291,12.68,,CHIPOTLE 2291,,"NEW YORK
|
| 77 |
+
NY",10001,UNITED STATES,'320261037',Restaurant-Restaurant
|
| 78 |
+
08/28/2026,AMZN Mktp US*2K4LM0,23.44,,AMZN Mktp US*2K4LM0,,"NEW YORK
|
| 79 |
+
NY",10001,UNITED STATES,'320261038',Merchandise & Supplies-Internet Purchase
|
| 80 |
+
08/28/2026,SQ *BLUE BOTTLE COFFEE,6.22,,SQ *BLUE BOTTLE COFFEE,,"NEW YORK
|
| 81 |
+
NY",10001,UNITED STATES,'320261039',Restaurant-Bar & Café
|
| 82 |
+
08/28/2026,SHELL OIL 57442,54.41,,SHELL OIL 57442,,"NEW YORK
|
| 83 |
+
NY",10001,UNITED STATES,'320261040',Transportation-Fuel
|
| 84 |
+
09/01/2026,UBER *TRIP HELP.UBER.COM,32.14,,UBER *TRIP HELP.UBER.COM,,"NEW YORK
|
| 85 |
+
NY",10001,UNITED STATES,'320261041',Transportation-Taxis & Coach
|
| 86 |
+
09/02/2026,EQUINOX 0412 NEW YORK,230.00,,EQUINOX 0412 NEW YORK,,"NEW YORK
|
| 87 |
+
NY",10001,UNITED STATES,'320261042',Other-Health Care
|
| 88 |
+
09/03/2026,NOTION LABS INC,10.00,,NOTION LABS INC,,"NEW YORK
|
| 89 |
+
NY",10001,UNITED STATES,'320261043',Business Services-Internet Services
|
| 90 |
+
09/05/2026,SQ *BLUE BOTTLE COFFEE,11.95,,SQ *BLUE BOTTLE COFFEE,,"NEW YORK
|
| 91 |
+
NY",10001,UNITED STATES,'320261044',Restaurant-Bar & Café
|
| 92 |
+
09/05/2026,SHELL OIL 57442,61.55,,SHELL OIL 57442,,"NEW YORK
|
| 93 |
+
NY",10001,UNITED STATES,'320261045',Transportation-Fuel
|
| 94 |
+
09/05/2026,UBER *TRIP HELP.UBER.COM,26.21,,UBER *TRIP HELP.UBER.COM,,"NEW YORK
|
| 95 |
+
NY",10001,UNITED STATES,'320261046',Transportation-Taxis & Coach
|
| 96 |
+
09/06/2026,WHOLEFDS MKT #10234,83.11,,WHOLEFDS MKT #10234,,"NEW YORK
|
| 97 |
+
NY",10001,UNITED STATES,'320261047',Merchandise & Supplies-Groceries
|
| 98 |
+
09/07/2026,AMZN Mktp US*2K4LM0,16.63,,AMZN Mktp US*2K4LM0,,"NEW YORK
|
| 99 |
+
NY",10001,UNITED STATES,'320261048',Merchandise & Supplies-Internet Purchase
|
| 100 |
+
09/08/2026,CHIPOTLE 2291,14.67,,CHIPOTLE 2291,,"NEW YORK
|
| 101 |
+
NY",10001,UNITED STATES,'320261049',Restaurant-Restaurant
|
| 102 |
+
09/08/2026,SHELL OIL 57442,-30.78,,SHELL OIL 57442,,"NEW YORK
|
| 103 |
+
NY",10001,UNITED STATES,'320261050',Transportation-Fuel
|
| 104 |
+
09/09/2026,NETFLIX.COM,15.49,,NETFLIX.COM,,"NEW YORK
|
| 105 |
+
NY",10001,UNITED STATES,'320261051',Entertainment-Other Entertainment
|
| 106 |
+
09/12/2026,SQ *BLUE BOTTLE COFFEE,7.40,,SQ *BLUE BOTTLE COFFEE,,"NEW YORK
|
| 107 |
+
NY",10001,UNITED STATES,'320261052',Restaurant-Bar & Café
|
| 108 |
+
09/12/2026,SWEETGREEN NOHO,13.95,,SWEETGREEN NOHO,,"NEW YORK
|
| 109 |
+
NY",10001,UNITED STATES,'320261053',Restaurant-Restaurant
|
| 110 |
+
09/14/2026,SQ *BLUE BOTTLE COFFEE,12.31,,SQ *BLUE BOTTLE COFFEE,,"NEW YORK
|
| 111 |
+
NY",10001,UNITED STATES,'320261054',Restaurant-Bar & Café
|
| 112 |
+
09/14/2026,CON ED OF NY INTELL CK,84.20,,CON ED OF NY INTELL CK,,"NEW YORK
|
| 113 |
+
NY",10001,UNITED STATES,'320261055',Business Services-Utilities
|
| 114 |
+
09/14/2026,SHELL OIL 57442,58.17,,SHELL OIL 57442,,"NEW YORK
|
| 115 |
+
NY",10001,UNITED STATES,'320261056',Transportation-Fuel
|
| 116 |
+
09/14/2026,WHOLEFDS MKT #10234,42.10,,WHOLEFDS MKT #10234,,"NEW YORK
|
| 117 |
+
NY",10001,UNITED STATES,'320261057',Merchandise & Supplies-Groceries
|
| 118 |
+
09/15/2026,SQ *BLUE BOTTLE COFFEE,5.92,,SQ *BLUE BOTTLE COFFEE,,"NEW YORK
|
| 119 |
+
NY",10001,UNITED STATES,'320261058',Restaurant-Bar & Café
|
| 120 |
+
09/18/2026,SWEETGREEN NOHO,13.82,,SWEETGREEN NOHO,,"NEW YORK
|
| 121 |
+
NY",10001,UNITED STATES,'320261059',Restaurant-Restaurant
|
| 122 |
+
09/18/2026,SWEETGREEN NOHO,17.27,,SWEETGREEN NOHO,,"NEW YORK
|
| 123 |
+
NY",10001,UNITED STATES,'320261060',Restaurant-Restaurant
|
| 124 |
+
09/21/2026,VZWRLSS*APOCC VISN,65.00,,VZWRLSS*APOCC VISN,,"NEW YORK
|
| 125 |
+
NY",10001,UNITED STATES,'320261061',Communications-Cable & Internet Comm
|
| 126 |
+
09/24/2026,WHOLEFDS MKT #10234,67.15,,WHOLEFDS MKT #10234,,"NEW YORK
|
| 127 |
+
NY",10001,UNITED STATES,'320261062',Merchandise & Supplies-Groceries
|
| 128 |
+
09/27/2026,CHIPOTLE 2291,20.21,,CHIPOTLE 2291,,"NEW YORK
|
| 129 |
+
NY",10001,UNITED STATES,'320261063',Restaurant-Restaurant
|
| 130 |
+
09/28/2026,CHIPOTLE 2291,15.30,,CHIPOTLE 2291,,"NEW YORK
|
| 131 |
+
NY",10001,UNITED STATES,'320261064',Restaurant-Restaurant
|
| 132 |
+
10/02/2026,EQUINOX 0412 NEW YORK,230.00,,EQUINOX 0412 NEW YORK,,"NEW YORK
|
| 133 |
+
NY",10001,UNITED STATES,'320261065',Other-Health Care
|
| 134 |
+
10/03/2026,AMZN Mktp US*2K4LM0,21.09,,AMZN Mktp US*2K4LM0,,"NEW YORK
|
| 135 |
+
NY",10001,UNITED STATES,'320261066',Merchandise & Supplies-Internet Purchase
|
| 136 |
+
10/03/2026,CHIPOTLE 2291,20.52,,CHIPOTLE 2291,,"NEW YORK
|
| 137 |
+
NY",10001,UNITED STATES,'320261067',Restaurant-Restaurant
|
| 138 |
+
10/03/2026,NOTION LABS INC,12.00,,NOTION LABS INC,,"NEW YORK
|
| 139 |
+
NY",10001,UNITED STATES,'320261068',Business Services-Internet Services
|
| 140 |
+
10/04/2026,CHIPOTLE 2291,15.68,,CHIPOTLE 2291,,"NEW YORK
|
| 141 |
+
NY",10001,UNITED STATES,'320261069',Restaurant-Restaurant
|
| 142 |
+
10/04/2026,SHELL OIL 57442,30.64,,SHELL OIL 57442,,"NEW YORK
|
| 143 |
+
NY",10001,UNITED STATES,'320261070',Transportation-Fuel
|
| 144 |
+
10/04/2026,WHOLEFDS MKT #10234,115.27,,WHOLEFDS MKT #10234,,"NEW YORK
|
| 145 |
+
NY",10001,UNITED STATES,'320261071',Merchandise & Supplies-Groceries
|
| 146 |
+
10/06/2026,SQ *BLUE BOTTLE COFFEE,7.42,,SQ *BLUE BOTTLE COFFEE,,"NEW YORK
|
| 147 |
+
NY",10001,UNITED STATES,'320261072',Restaurant-Bar & Café
|
| 148 |
+
10/06/2026,WHOLEFDS MKT #10234,64.22,,WHOLEFDS MKT #10234,,"NEW YORK
|
| 149 |
+
NY",10001,UNITED STATES,'320261073',Merchandise & Supplies-Groceries
|
| 150 |
+
10/07/2026,CHIPOTLE 2291,17.04,,CHIPOTLE 2291,,"NEW YORK
|
| 151 |
+
NY",10001,UNITED STATES,'320261074',Restaurant-Restaurant
|
| 152 |
+
10/08/2026,AMZN Mktp US*2K4LM0,82.53,,AMZN Mktp US*2K4LM0,,"NEW YORK
|
| 153 |
+
NY",10001,UNITED STATES,'320261075',Merchandise & Supplies-Internet Purchase
|
| 154 |
+
10/08/2026,SQ *BLUE BOTTLE COFFEE,6.35,,SQ *BLUE BOTTLE COFFEE,,"NEW YORK
|
| 155 |
+
NY",10001,UNITED STATES,'320261076',Restaurant-Bar & Café
|
| 156 |
+
10/08/2026,WHOLEFDS MKT #10234,84.04,,WHOLEFDS MKT #10234,,"NEW YORK
|
| 157 |
+
NY",10001,UNITED STATES,'320261077',Merchandise & Supplies-Groceries
|
| 158 |
+
10/09/2026,NETFLIX.COM,15.49,,NETFLIX.COM,,"NEW YORK
|
| 159 |
+
NY",10001,UNITED STATES,'320261078',Entertainment-Other Entertainment
|
| 160 |
+
10/13/2026,SQ *BLUE BOTTLE COFFEE,6.79,,SQ *BLUE BOTTLE COFFEE,,"NEW YORK
|
| 161 |
+
NY",10001,UNITED STATES,'320261079',Restaurant-Bar & Café
|
| 162 |
+
10/13/2026,SWEETGREEN NOHO,14.47,,SWEETGREEN NOHO,,"NEW YORK
|
| 163 |
+
NY",10001,UNITED STATES,'320261080',Restaurant-Restaurant
|
| 164 |
+
10/14/2026,CON ED OF NY INTELL CK,84.20,,CON ED OF NY INTELL CK,,"NEW YORK
|
| 165 |
+
NY",10001,UNITED STATES,'320261081',Business Services-Utilities
|
| 166 |
+
10/16/2026,SQ *BLUE BOTTLE COFFEE,7.72,,SQ *BLUE BOTTLE COFFEE,,"NEW YORK
|
| 167 |
+
NY",10001,UNITED STATES,'320261082',Restaurant-Bar & Café
|
| 168 |
+
10/16/2026,SWEETGREEN NOHO,17.22,,SWEETGREEN NOHO,,"NEW YORK
|
| 169 |
+
NY",10001,UNITED STATES,'320261083',Restaurant-Restaurant
|
| 170 |
+
10/16/2026,UBER *TRIP HELP.UBER.COM,32.74,,UBER *TRIP HELP.UBER.COM,,"NEW YORK
|
| 171 |
+
NY",10001,UNITED STATES,'320261084',Transportation-Taxis & Coach
|
| 172 |
+
08/05/2026,AUTOPAY PAYMENT - THANK YOU,-1200.00,,AUTOPAY PAYMENT - THANK YOU,,"NEW YORK
|
| 173 |
+
NY",10001,UNITED STATES,'320261085',
|
| 174 |
+
09/05/2026,AUTOPAY PAYMENT - THANK YOU,-1200.00,,AUTOPAY PAYMENT - THANK YOU,,"NEW YORK
|
| 175 |
+
NY",10001,UNITED STATES,'320261086',
|
| 176 |
+
10/05/2026,AUTOPAY PAYMENT - THANK YOU,-1200.00,,AUTOPAY PAYMENT - THANK YOU,,"NEW YORK
|
| 177 |
+
NY",10001,UNITED STATES,'320261087',
|
households/public/p-amex/truth/ledger.csv
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
date,merchant,amount,account,category,group,currency,kind,pending
|
| 2 |
+
2026-07-22,Uber,-20.58,Amex Gold,Ride Share,Transportation,USD,purchase,false
|
| 3 |
+
2026-07-22,Uber,-19.49,Amex Gold,Ride Share,Transportation,USD,purchase,false
|
| 4 |
+
2026-07-23,Amazon,-36.75,Amex Gold,Other Shopping,Shopping,USD,purchase,false
|
| 5 |
+
2026-07-23,Blue Bottle Coffee,-6.18,Amex Gold,Coffee Shops,Food & Dining,USD,purchase,false
|
| 6 |
+
2026-07-23,Chipotle,-19.82,Amex Gold,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 7 |
+
2026-07-23,Whole Foods Market,-123.06,Amex Gold,Groceries,Food & Dining,USD,purchase,false
|
| 8 |
+
2026-07-24,Amazon,-38.21,Amex Gold,Other Shopping,Shopping,USD,purchase,false
|
| 9 |
+
2026-07-25,Shell,-62.70,Amex Gold,Gas & Fuel,Transportation,USD,purchase,false
|
| 10 |
+
2026-07-25,Whole Foods Market,-71.11,Amex Gold,Groceries,Food & Dining,USD,purchase,false
|
| 11 |
+
2026-07-25,Whole Foods Market,-70.85,Amex Gold,Groceries,Food & Dining,USD,purchase,false
|
| 12 |
+
2026-07-26,Sweetgreen,-14.36,Amex Gold,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 13 |
+
2026-07-27,Blue Bottle Coffee,-10.46,Amex Gold,Coffee Shops,Food & Dining,USD,purchase,false
|
| 14 |
+
2026-07-27,Blue Bottle Coffee,-9.21,Amex Gold,Coffee Shops,Food & Dining,USD,purchase,false
|
| 15 |
+
2026-07-27,Chipotle,-15.84,Amex Gold,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 16 |
+
2026-07-28,Blue Bottle Coffee,-8.70,Amex Gold,Coffee Shops,Food & Dining,USD,purchase,false
|
| 17 |
+
2026-07-28,Blue Bottle Coffee,-4.55,Amex Gold,Coffee Shops,Food & Dining,USD,purchase,false
|
| 18 |
+
2026-07-28,Sweetgreen,-13.53,Amex Gold,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 19 |
+
2026-07-28,Uber,-34.14,Amex Gold,Ride Share,Transportation,USD,purchase,false
|
| 20 |
+
2026-07-28,Uber,-12.86,Amex Gold,Ride Share,Transportation,USD,purchase,false
|
| 21 |
+
2026-08-02,Equinox,-230.00,Amex Gold,Gym & Fitness,Personal Care,USD,bill,false
|
| 22 |
+
2026-08-03,Notion,-10.00,Amex Gold,Other Bills,Bills & Utilities,USD,bill,false
|
| 23 |
+
2026-08-03,Shell,-39.67,Amex Gold,Gas & Fuel,Transportation,USD,purchase,false
|
| 24 |
+
2026-08-05,Card payment,1200.00,Amex Gold,Credit Card Payment,Debt Payments,USD,card_payment,false
|
| 25 |
+
2026-08-05,Whole Foods Market,-109.78,Amex Gold,Groceries,Food & Dining,USD,purchase,false
|
| 26 |
+
2026-08-07,Whole Foods Market,-120.14,Amex Gold,Groceries,Food & Dining,USD,purchase,false
|
| 27 |
+
2026-08-08,Whole Foods Market,-109.17,Amex Gold,Groceries,Food & Dining,USD,purchase,false
|
| 28 |
+
2026-08-09,Chipotle,-13.93,Amex Gold,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 29 |
+
2026-08-09,Netflix,-15.49,Amex Gold,Streaming,Entertainment,USD,bill,false
|
| 30 |
+
2026-08-14,Con Edison,-84.20,Amex Gold,Gas & Electric,Bills & Utilities,USD,bill,false
|
| 31 |
+
2026-08-15,Uber,-31.53,Amex Gold,Ride Share,Transportation,USD,purchase,false
|
| 32 |
+
2026-08-16,Uber,-18.39,Amex Gold,Ride Share,Transportation,USD,purchase,false
|
| 33 |
+
2026-08-20,Blue Bottle Coffee,-11.39,Amex Gold,Coffee Shops,Food & Dining,USD,purchase,false
|
| 34 |
+
2026-08-20,Chipotle,-19.06,Amex Gold,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 35 |
+
2026-08-21,Verizon,-65.00,Amex Gold,Phone,Bills & Utilities,USD,bill,false
|
| 36 |
+
2026-08-22,Sweetgreen,-13.35,Amex Gold,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 37 |
+
2026-08-23,Blue Bottle Coffee,-12.13,Amex Gold,Coffee Shops,Food & Dining,USD,purchase,false
|
| 38 |
+
2026-08-24,Uber,-31.00,Amex Gold,Ride Share,Transportation,USD,purchase,false
|
| 39 |
+
2026-08-25,Amazon,-44.45,Amex Gold,Other Shopping,Shopping,USD,purchase,false
|
| 40 |
+
2026-08-27,Chipotle,-12.68,Amex Gold,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 41 |
+
2026-08-28,Amazon,-23.44,Amex Gold,Other Shopping,Shopping,USD,purchase,false
|
| 42 |
+
2026-08-28,Blue Bottle Coffee,-6.22,Amex Gold,Coffee Shops,Food & Dining,USD,purchase,false
|
| 43 |
+
2026-08-28,Shell,-54.41,Amex Gold,Gas & Fuel,Transportation,USD,purchase,false
|
| 44 |
+
2026-09-01,Uber,-32.14,Amex Gold,Ride Share,Transportation,USD,purchase,false
|
| 45 |
+
2026-09-02,Equinox,-230.00,Amex Gold,Gym & Fitness,Personal Care,USD,bill,false
|
| 46 |
+
2026-09-03,Notion,-10.00,Amex Gold,Other Bills,Bills & Utilities,USD,bill,false
|
| 47 |
+
2026-09-05,Blue Bottle Coffee,-11.95,Amex Gold,Coffee Shops,Food & Dining,USD,purchase,false
|
| 48 |
+
2026-09-05,Card payment,1200.00,Amex Gold,Credit Card Payment,Debt Payments,USD,card_payment,false
|
| 49 |
+
2026-09-05,Shell,-61.55,Amex Gold,Gas & Fuel,Transportation,USD,purchase,false
|
| 50 |
+
2026-09-05,Uber,-26.21,Amex Gold,Ride Share,Transportation,USD,purchase,false
|
| 51 |
+
2026-09-06,Whole Foods Market,-83.11,Amex Gold,Groceries,Food & Dining,USD,purchase,false
|
| 52 |
+
2026-09-07,Amazon,-16.63,Amex Gold,Other Shopping,Shopping,USD,purchase,false
|
| 53 |
+
2026-09-08,Chipotle,-14.67,Amex Gold,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 54 |
+
2026-09-08,Shell,30.78,Amex Gold,Gas & Fuel,Transportation,USD,refund,false
|
| 55 |
+
2026-09-09,Netflix,-15.49,Amex Gold,Streaming,Entertainment,USD,bill,false
|
| 56 |
+
2026-09-12,Blue Bottle Coffee,-7.40,Amex Gold,Coffee Shops,Food & Dining,USD,purchase,false
|
| 57 |
+
2026-09-12,Sweetgreen,-13.95,Amex Gold,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 58 |
+
2026-09-14,Blue Bottle Coffee,-12.31,Amex Gold,Coffee Shops,Food & Dining,USD,purchase,false
|
| 59 |
+
2026-09-14,Con Edison,-84.20,Amex Gold,Gas & Electric,Bills & Utilities,USD,bill,false
|
| 60 |
+
2026-09-14,Shell,-58.17,Amex Gold,Gas & Fuel,Transportation,USD,purchase,false
|
| 61 |
+
2026-09-14,Whole Foods Market,-42.10,Amex Gold,Groceries,Food & Dining,USD,purchase,false
|
| 62 |
+
2026-09-15,Blue Bottle Coffee,-5.92,Amex Gold,Coffee Shops,Food & Dining,USD,purchase,false
|
| 63 |
+
2026-09-18,Sweetgreen,-17.27,Amex Gold,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 64 |
+
2026-09-18,Sweetgreen,-13.82,Amex Gold,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 65 |
+
2026-09-21,Verizon,-65.00,Amex Gold,Phone,Bills & Utilities,USD,bill,false
|
| 66 |
+
2026-09-24,Whole Foods Market,-67.15,Amex Gold,Groceries,Food & Dining,USD,purchase,false
|
| 67 |
+
2026-09-27,Chipotle,-20.21,Amex Gold,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 68 |
+
2026-09-28,Chipotle,-15.30,Amex Gold,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 69 |
+
2026-10-02,Equinox,-230.00,Amex Gold,Gym & Fitness,Personal Care,USD,bill,false
|
| 70 |
+
2026-10-03,Amazon,-21.09,Amex Gold,Other Shopping,Shopping,USD,purchase,false
|
| 71 |
+
2026-10-03,Chipotle,-20.52,Amex Gold,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 72 |
+
2026-10-03,Notion,-12.00,Amex Gold,Other Bills,Bills & Utilities,USD,bill,false
|
| 73 |
+
2026-10-04,Chipotle,-15.68,Amex Gold,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 74 |
+
2026-10-04,Shell,-30.64,Amex Gold,Gas & Fuel,Transportation,USD,purchase,false
|
| 75 |
+
2026-10-04,Whole Foods Market,-115.27,Amex Gold,Groceries,Food & Dining,USD,purchase,false
|
| 76 |
+
2026-10-05,Card payment,1200.00,Amex Gold,Credit Card Payment,Debt Payments,USD,card_payment,false
|
| 77 |
+
2026-10-06,Blue Bottle Coffee,-7.42,Amex Gold,Coffee Shops,Food & Dining,USD,purchase,false
|
| 78 |
+
2026-10-06,Whole Foods Market,-64.22,Amex Gold,Groceries,Food & Dining,USD,purchase,false
|
| 79 |
+
2026-10-07,Chipotle,-17.04,Amex Gold,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 80 |
+
2026-10-08,Amazon,-82.53,Amex Gold,Other Shopping,Shopping,USD,purchase,false
|
| 81 |
+
2026-10-08,Blue Bottle Coffee,-6.35,Amex Gold,Coffee Shops,Food & Dining,USD,purchase,false
|
| 82 |
+
2026-10-08,Whole Foods Market,-84.04,Amex Gold,Groceries,Food & Dining,USD,purchase,false
|
| 83 |
+
2026-10-09,Netflix,-15.49,Amex Gold,Streaming,Entertainment,USD,bill,false
|
| 84 |
+
2026-10-13,Blue Bottle Coffee,-6.79,Amex Gold,Coffee Shops,Food & Dining,USD,purchase,false
|
| 85 |
+
2026-10-13,Sweetgreen,-14.47,Amex Gold,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 86 |
+
2026-10-14,Con Edison,-84.20,Amex Gold,Gas & Electric,Bills & Utilities,USD,bill,false
|
| 87 |
+
2026-10-16,Blue Bottle Coffee,-7.72,Amex Gold,Coffee Shops,Food & Dining,USD,purchase,true
|
| 88 |
+
2026-10-16,Sweetgreen,-17.22,Amex Gold,Restaurants & Bars,Food & Dining,USD,purchase,true
|
| 89 |
+
2026-10-16,Uber,-32.74,Amex Gold,Ride Share,Transportation,USD,purchase,true
|
households/public/p-amex/truth/merchants.json
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"Whole Foods Market": [
|
| 3 |
+
"Whole Foods Market",
|
| 4 |
+
"WHOLEFDS MKT #10234"
|
| 5 |
+
],
|
| 6 |
+
"Blue Bottle Coffee": [
|
| 7 |
+
"Blue Bottle Coffee",
|
| 8 |
+
"SQ *BLUE BOTTLE COFFEE"
|
| 9 |
+
],
|
| 10 |
+
"Chipotle": [
|
| 11 |
+
"Chipotle",
|
| 12 |
+
"CHIPOTLE 2291"
|
| 13 |
+
],
|
| 14 |
+
"Shell": [
|
| 15 |
+
"Shell",
|
| 16 |
+
"SHELL OIL 57442"
|
| 17 |
+
],
|
| 18 |
+
"Uber": [
|
| 19 |
+
"Uber",
|
| 20 |
+
"UBER *TRIP HELP.UBER.COM"
|
| 21 |
+
],
|
| 22 |
+
"Netflix": [
|
| 23 |
+
"Netflix",
|
| 24 |
+
"NETFLIX.COM"
|
| 25 |
+
],
|
| 26 |
+
"Amazon": [
|
| 27 |
+
"Amazon",
|
| 28 |
+
"AMZN Mktp US*2K4LM0"
|
| 29 |
+
],
|
| 30 |
+
"Con Edison": [
|
| 31 |
+
"Con Edison",
|
| 32 |
+
"CON ED OF NY INTELL CK"
|
| 33 |
+
],
|
| 34 |
+
"Verizon": [
|
| 35 |
+
"Verizon",
|
| 36 |
+
"VZWRLSS*APOCC VISN"
|
| 37 |
+
],
|
| 38 |
+
"Notion": [
|
| 39 |
+
"Notion",
|
| 40 |
+
"NOTION LABS INC"
|
| 41 |
+
],
|
| 42 |
+
"Equinox": [
|
| 43 |
+
"Equinox",
|
| 44 |
+
"EQUINOX 0412 NEW YORK"
|
| 45 |
+
],
|
| 46 |
+
"Sweetgreen": [
|
| 47 |
+
"Sweetgreen",
|
| 48 |
+
"SWEETGREEN NOHO"
|
| 49 |
+
],
|
| 50 |
+
"Gusto": [
|
| 51 |
+
"Gusto",
|
| 52 |
+
"GUSTO PAY 102947"
|
| 53 |
+
]
|
| 54 |
+
}
|
households/public/p-amex/truth/setup.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"id": "p-amex",
|
| 3 |
+
"shape": "amex",
|
| 4 |
+
"today": "2026-10-16",
|
| 5 |
+
"currency": "USD",
|
| 6 |
+
"months": [
|
| 7 |
+
"2026-07",
|
| 8 |
+
"2026-08",
|
| 9 |
+
"2026-09",
|
| 10 |
+
"2026-10"
|
| 11 |
+
],
|
| 12 |
+
"accounts": [
|
| 13 |
+
{
|
| 14 |
+
"name": "Amex Gold",
|
| 15 |
+
"kind": "credit",
|
| 16 |
+
"currency": "USD"
|
| 17 |
+
}
|
| 18 |
+
],
|
| 19 |
+
"region": "US",
|
| 20 |
+
"load": [
|
| 21 |
+
{
|
| 22 |
+
"file": "source/activity.csv",
|
| 23 |
+
"kind": "csv",
|
| 24 |
+
"account": "Amex Gold"
|
| 25 |
+
}
|
| 26 |
+
],
|
| 27 |
+
"persona": null
|
| 28 |
+
}
|
households/public/p-amex/view/view.csv
ADDED
|
@@ -0,0 +1,89 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
date,description,amount,account,source_category,source_type,pending,currency
|
| 2 |
+
2026-07-22,UBER *TRIP HELP.UBER.COM,-20.58,Amex Gold,Transportation-Taxis & Coach,,false,USD
|
| 3 |
+
2026-07-22,UBER *TRIP HELP.UBER.COM,-19.49,Amex Gold,Transportation-Taxis & Coach,,false,USD
|
| 4 |
+
2026-07-23,AMZN Mktp US*2K4LM0,-36.75,Amex Gold,Merchandise & Supplies-Internet Purchase,,false,USD
|
| 5 |
+
2026-07-23,CHIPOTLE 2291,-19.82,Amex Gold,Restaurant-Restaurant,,false,USD
|
| 6 |
+
2026-07-23,SQ *BLUE BOTTLE COFFEE,-6.18,Amex Gold,Restaurant-Bar & Café,,false,USD
|
| 7 |
+
2026-07-23,WHOLEFDS MKT #10234,-123.06,Amex Gold,Merchandise & Supplies-Groceries,,false,USD
|
| 8 |
+
2026-07-24,AMZN Mktp US*2K4LM0,-38.21,Amex Gold,Merchandise & Supplies-Internet Purchase,,false,USD
|
| 9 |
+
2026-07-25,SHELL OIL 57442,-62.70,Amex Gold,Transportation-Fuel,,false,USD
|
| 10 |
+
2026-07-25,WHOLEFDS MKT #10234,-71.11,Amex Gold,Merchandise & Supplies-Groceries,,false,USD
|
| 11 |
+
2026-07-25,WHOLEFDS MKT #10234,-70.85,Amex Gold,Merchandise & Supplies-Groceries,,false,USD
|
| 12 |
+
2026-07-26,SWEETGREEN NOHO,-14.36,Amex Gold,Restaurant-Restaurant,,false,USD
|
| 13 |
+
2026-07-27,CHIPOTLE 2291,-15.84,Amex Gold,Restaurant-Restaurant,,false,USD
|
| 14 |
+
2026-07-27,SQ *BLUE BOTTLE COFFEE,-10.46,Amex Gold,Restaurant-Bar & Café,,false,USD
|
| 15 |
+
2026-07-27,SQ *BLUE BOTTLE COFFEE,-9.21,Amex Gold,Restaurant-Bar & Café,,false,USD
|
| 16 |
+
2026-07-28,SQ *BLUE BOTTLE COFFEE,-8.70,Amex Gold,Restaurant-Bar & Café,,false,USD
|
| 17 |
+
2026-07-28,SQ *BLUE BOTTLE COFFEE,-4.55,Amex Gold,Restaurant-Bar & Café,,false,USD
|
| 18 |
+
2026-07-28,SWEETGREEN NOHO,-13.53,Amex Gold,Restaurant-Restaurant,,false,USD
|
| 19 |
+
2026-07-28,UBER *TRIP HELP.UBER.COM,-34.14,Amex Gold,Transportation-Taxis & Coach,,false,USD
|
| 20 |
+
2026-07-28,UBER *TRIP HELP.UBER.COM,-12.86,Amex Gold,Transportation-Taxis & Coach,,false,USD
|
| 21 |
+
2026-08-02,EQUINOX 0412 NEW YORK,-230.00,Amex Gold,Other-Health Care,,false,USD
|
| 22 |
+
2026-08-03,NOTION LABS INC,-10.00,Amex Gold,Business Services-Internet Services,,false,USD
|
| 23 |
+
2026-08-03,SHELL OIL 57442,-39.67,Amex Gold,Transportation-Fuel,,false,USD
|
| 24 |
+
2026-08-05,AUTOPAY PAYMENT - THANK YOU,1200.00,Amex Gold,,,false,USD
|
| 25 |
+
2026-08-05,WHOLEFDS MKT #10234,-109.78,Amex Gold,Merchandise & Supplies-Groceries,,false,USD
|
| 26 |
+
2026-08-07,WHOLEFDS MKT #10234,-120.14,Amex Gold,Merchandise & Supplies-Groceries,,false,USD
|
| 27 |
+
2026-08-08,WHOLEFDS MKT #10234,-109.17,Amex Gold,Merchandise & Supplies-Groceries,,false,USD
|
| 28 |
+
2026-08-09,CHIPOTLE 2291,-13.93,Amex Gold,Restaurant-Restaurant,,false,USD
|
| 29 |
+
2026-08-09,NETFLIX.COM,-15.49,Amex Gold,Entertainment-Other Entertainment,,false,USD
|
| 30 |
+
2026-08-14,CON ED OF NY INTELL CK,-84.20,Amex Gold,Business Services-Utilities,,false,USD
|
| 31 |
+
2026-08-15,UBER *TRIP HELP.UBER.COM,-31.53,Amex Gold,Transportation-Taxis & Coach,,false,USD
|
| 32 |
+
2026-08-16,UBER *TRIP HELP.UBER.COM,-18.39,Amex Gold,Transportation-Taxis & Coach,,false,USD
|
| 33 |
+
2026-08-20,CHIPOTLE 2291,-19.06,Amex Gold,Restaurant-Restaurant,,false,USD
|
| 34 |
+
2026-08-20,SQ *BLUE BOTTLE COFFEE,-11.39,Amex Gold,Restaurant-Bar & Café,,false,USD
|
| 35 |
+
2026-08-21,VZWRLSS*APOCC VISN,-65.00,Amex Gold,Communications-Cable & Internet Comm,,false,USD
|
| 36 |
+
2026-08-22,SWEETGREEN NOHO,-13.35,Amex Gold,Restaurant-Restaurant,,false,USD
|
| 37 |
+
2026-08-23,SQ *BLUE BOTTLE COFFEE,-12.13,Amex Gold,Restaurant-Bar & Café,,false,USD
|
| 38 |
+
2026-08-24,UBER *TRIP HELP.UBER.COM,-31.00,Amex Gold,Transportation-Taxis & Coach,,false,USD
|
| 39 |
+
2026-08-25,AMZN Mktp US*2K4LM0,-44.45,Amex Gold,Merchandise & Supplies-Internet Purchase,,false,USD
|
| 40 |
+
2026-08-27,CHIPOTLE 2291,-12.68,Amex Gold,Restaurant-Restaurant,,false,USD
|
| 41 |
+
2026-08-28,AMZN Mktp US*2K4LM0,-23.44,Amex Gold,Merchandise & Supplies-Internet Purchase,,false,USD
|
| 42 |
+
2026-08-28,SHELL OIL 57442,-54.41,Amex Gold,Transportation-Fuel,,false,USD
|
| 43 |
+
2026-08-28,SQ *BLUE BOTTLE COFFEE,-6.22,Amex Gold,Restaurant-Bar & Café,,false,USD
|
| 44 |
+
2026-09-01,UBER *TRIP HELP.UBER.COM,-32.14,Amex Gold,Transportation-Taxis & Coach,,false,USD
|
| 45 |
+
2026-09-02,EQUINOX 0412 NEW YORK,-230.00,Amex Gold,Other-Health Care,,false,USD
|
| 46 |
+
2026-09-03,NOTION LABS INC,-10.00,Amex Gold,Business Services-Internet Services,,false,USD
|
| 47 |
+
2026-09-05,AUTOPAY PAYMENT - THANK YOU,1200.00,Amex Gold,,,false,USD
|
| 48 |
+
2026-09-05,SHELL OIL 57442,-61.55,Amex Gold,Transportation-Fuel,,false,USD
|
| 49 |
+
2026-09-05,SQ *BLUE BOTTLE COFFEE,-11.95,Amex Gold,Restaurant-Bar & Café,,false,USD
|
| 50 |
+
2026-09-05,UBER *TRIP HELP.UBER.COM,-26.21,Amex Gold,Transportation-Taxis & Coach,,false,USD
|
| 51 |
+
2026-09-06,WHOLEFDS MKT #10234,-83.11,Amex Gold,Merchandise & Supplies-Groceries,,false,USD
|
| 52 |
+
2026-09-07,AMZN Mktp US*2K4LM0,-16.63,Amex Gold,Merchandise & Supplies-Internet Purchase,,false,USD
|
| 53 |
+
2026-09-08,CHIPOTLE 2291,-14.67,Amex Gold,Restaurant-Restaurant,,false,USD
|
| 54 |
+
2026-09-08,SHELL OIL 57442,30.78,Amex Gold,Transportation-Fuel,,false,USD
|
| 55 |
+
2026-09-09,NETFLIX.COM,-15.49,Amex Gold,Entertainment-Other Entertainment,,false,USD
|
| 56 |
+
2026-09-12,SQ *BLUE BOTTLE COFFEE,-7.40,Amex Gold,Restaurant-Bar & Café,,false,USD
|
| 57 |
+
2026-09-12,SWEETGREEN NOHO,-13.95,Amex Gold,Restaurant-Restaurant,,false,USD
|
| 58 |
+
2026-09-14,CON ED OF NY INTELL CK,-84.20,Amex Gold,Business Services-Utilities,,false,USD
|
| 59 |
+
2026-09-14,SHELL OIL 57442,-58.17,Amex Gold,Transportation-Fuel,,false,USD
|
| 60 |
+
2026-09-14,SQ *BLUE BOTTLE COFFEE,-12.31,Amex Gold,Restaurant-Bar & Café,,false,USD
|
| 61 |
+
2026-09-14,WHOLEFDS MKT #10234,-42.10,Amex Gold,Merchandise & Supplies-Groceries,,false,USD
|
| 62 |
+
2026-09-15,SQ *BLUE BOTTLE COFFEE,-5.92,Amex Gold,Restaurant-Bar & Café,,false,USD
|
| 63 |
+
2026-09-18,SWEETGREEN NOHO,-17.27,Amex Gold,Restaurant-Restaurant,,false,USD
|
| 64 |
+
2026-09-18,SWEETGREEN NOHO,-13.82,Amex Gold,Restaurant-Restaurant,,false,USD
|
| 65 |
+
2026-09-21,VZWRLSS*APOCC VISN,-65.00,Amex Gold,Communications-Cable & Internet Comm,,false,USD
|
| 66 |
+
2026-09-24,WHOLEFDS MKT #10234,-67.15,Amex Gold,Merchandise & Supplies-Groceries,,false,USD
|
| 67 |
+
2026-09-27,CHIPOTLE 2291,-20.21,Amex Gold,Restaurant-Restaurant,,false,USD
|
| 68 |
+
2026-09-28,CHIPOTLE 2291,-15.30,Amex Gold,Restaurant-Restaurant,,false,USD
|
| 69 |
+
2026-10-02,EQUINOX 0412 NEW YORK,-230.00,Amex Gold,Other-Health Care,,false,USD
|
| 70 |
+
2026-10-03,AMZN Mktp US*2K4LM0,-21.09,Amex Gold,Merchandise & Supplies-Internet Purchase,,false,USD
|
| 71 |
+
2026-10-03,CHIPOTLE 2291,-20.52,Amex Gold,Restaurant-Restaurant,,false,USD
|
| 72 |
+
2026-10-03,NOTION LABS INC,-12.00,Amex Gold,Business Services-Internet Services,,false,USD
|
| 73 |
+
2026-10-04,CHIPOTLE 2291,-15.68,Amex Gold,Restaurant-Restaurant,,false,USD
|
| 74 |
+
2026-10-04,SHELL OIL 57442,-30.64,Amex Gold,Transportation-Fuel,,false,USD
|
| 75 |
+
2026-10-04,WHOLEFDS MKT #10234,-115.27,Amex Gold,Merchandise & Supplies-Groceries,,false,USD
|
| 76 |
+
2026-10-05,AUTOPAY PAYMENT - THANK YOU,1200.00,Amex Gold,,,false,USD
|
| 77 |
+
2026-10-06,SQ *BLUE BOTTLE COFFEE,-7.42,Amex Gold,Restaurant-Bar & Café,,false,USD
|
| 78 |
+
2026-10-06,WHOLEFDS MKT #10234,-64.22,Amex Gold,Merchandise & Supplies-Groceries,,false,USD
|
| 79 |
+
2026-10-07,CHIPOTLE 2291,-17.04,Amex Gold,Restaurant-Restaurant,,false,USD
|
| 80 |
+
2026-10-08,AMZN Mktp US*2K4LM0,-82.53,Amex Gold,Merchandise & Supplies-Internet Purchase,,false,USD
|
| 81 |
+
2026-10-08,SQ *BLUE BOTTLE COFFEE,-6.35,Amex Gold,Restaurant-Bar & Café,,false,USD
|
| 82 |
+
2026-10-08,WHOLEFDS MKT #10234,-84.04,Amex Gold,Merchandise & Supplies-Groceries,,false,USD
|
| 83 |
+
2026-10-09,NETFLIX.COM,-15.49,Amex Gold,Entertainment-Other Entertainment,,false,USD
|
| 84 |
+
2026-10-13,SQ *BLUE BOTTLE COFFEE,-6.79,Amex Gold,Restaurant-Bar & Café,,false,USD
|
| 85 |
+
2026-10-13,SWEETGREEN NOHO,-14.47,Amex Gold,Restaurant-Restaurant,,false,USD
|
| 86 |
+
2026-10-14,CON ED OF NY INTELL CK,-84.20,Amex Gold,Business Services-Utilities,,false,USD
|
| 87 |
+
2026-10-16,SQ *BLUE BOTTLE COFFEE,-7.72,Amex Gold,Restaurant-Bar & Café,,true,USD
|
| 88 |
+
2026-10-16,SWEETGREEN NOHO,-17.22,Amex Gold,Restaurant-Restaurant,,true,USD
|
| 89 |
+
2026-10-16,UBER *TRIP HELP.UBER.COM,-32.74,Amex Gold,Transportation-Taxis & Coach,,true,USD
|
households/public/p-capitalone/source/transaction_download.csv
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Transaction Date,Posted Date,Card No.,Description,Category,Debit,Credit
|
| 2 |
+
2026-07-22,2026-07-23,4417,AMZN Mktp US*2K4LM0,Merchandise,77.09,
|
| 3 |
+
2026-07-22,2026-07-23,4417,SQ *BLUE BOTTLE COFFEE,Dining,5.22,
|
| 4 |
+
2026-07-22,2026-07-23,4417,CVS/PHARMACY #04411,Health Care,18.17,
|
| 5 |
+
2026-07-23,2026-07-24,4417,AMZN Mktp US*2K4LM0,Merchandise,70.92,
|
| 6 |
+
2026-07-23,2026-07-24,4417,UBER *TRIP HELP.UBER.COM,Other Travel,12.50,
|
| 7 |
+
2026-07-24,2026-07-25,4417,SHELL OIL 57442,Gas/Automotive,52.64,
|
| 8 |
+
2026-07-25,2026-07-26,4417,AMZN Mktp US*2K4LM0,Merchandise,50.03,
|
| 9 |
+
2026-07-25,2026-07-26,4417,SQ *BLUE BOTTLE COFFEE,Dining,4.73,
|
| 10 |
+
2026-07-25,2026-07-26,4417,CHIPOTLE 2291,Dining,15.81,
|
| 11 |
+
2026-07-26,2026-07-27,4417,UBER *TRIP HELP.UBER.COM,Other Travel,21.46,
|
| 12 |
+
2026-07-26,2026-07-27,4417,UBER *TRIP HELP.UBER.COM,Other Travel,24.23,
|
| 13 |
+
2026-07-26,2026-07-27,4417,UBER *TRIP HELP.UBER.COM,Other Travel,33.77,
|
| 14 |
+
2026-07-27,2026-07-28,4417,SQ *BLUE BOTTLE COFFEE,Dining,5.76,
|
| 15 |
+
2026-07-28,2026-07-29,4417,WHOLEFDS MKT #10234,Grocery,51.61,
|
| 16 |
+
2026-07-28,2026-07-29,4417,WHOLEFDS MKT #10234,Grocery,71.07,
|
| 17 |
+
2026-08-04,2026-08-05,4417,AMZN Mktp US*2K4LM0,Merchandise,38.94,
|
| 18 |
+
2026-08-05,2026-08-06,4417,SQ *BLUE BOTTLE COFFEE,Dining,7.44,
|
| 19 |
+
2026-08-06,2026-08-07,4417,SQ *BLUE BOTTLE COFFEE,Dining,8.68,
|
| 20 |
+
2026-08-07,2026-08-08,4417,SQ *BLUE BOTTLE COFFEE,Dining,6.06,
|
| 21 |
+
2026-08-08,2026-08-09,4417,SHELL OIL 57442,Gas/Automotive,44.01,
|
| 22 |
+
2026-08-09,2026-08-10,4417,NETFLIX.COM,Entertainment,15.49,
|
| 23 |
+
2026-08-12,2026-08-13,4417,CHIPOTLE 2291,Dining,16.53,
|
| 24 |
+
2026-08-13,2026-08-14,4417,SHELL OIL 57442,Gas/Automotive,30.97,
|
| 25 |
+
2026-08-14,2026-08-15,4417,CON ED OF NY INTELL CK,Utilities,84.20,
|
| 26 |
+
2026-08-14,2026-08-15,4417,UBER *TRIP HELP.UBER.COM,Other Travel,22.46,
|
| 27 |
+
2026-08-14,2026-08-15,4417,UBER *TRIP HELP.UBER.COM,Other Travel,29.99,
|
| 28 |
+
2026-08-22,2026-08-23,4417,UBER *TRIP HELP.UBER.COM,Other Travel,25.58,
|
| 29 |
+
2026-08-24,2026-08-25,4417,WHOLEFDS MKT #10234,Grocery,106.22,
|
| 30 |
+
2026-08-25,2026-08-26,4417,SQ *BLUE BOTTLE COFFEE,Dining,11.22,
|
| 31 |
+
2026-08-26,2026-08-27,4417,WHOLEFDS MKT #10234,Grocery,104.30,
|
| 32 |
+
2026-09-02,2026-09-03,4417,AMZN Mktp US*2K4LM0,Merchandise,73.29,
|
| 33 |
+
2026-09-03,2026-09-04,4417,SQ *BLUE BOTTLE COFFEE,Dining,8.32,
|
| 34 |
+
2026-09-03,2026-09-04,4417,SQ *BLUE BOTTLE COFFEE,Dining,10.60,
|
| 35 |
+
2026-09-05,2026-09-06,4417,AMZN Mktp US*2K4LM0,Merchandise,,36.65
|
| 36 |
+
2026-09-09,2026-09-10,4417,NETFLIX.COM,Entertainment,15.49,
|
| 37 |
+
2026-09-11,2026-09-12,4417,SHELL OIL 57442,Gas/Automotive,63.64,
|
| 38 |
+
2026-09-12,2026-09-13,4417,WHOLEFDS MKT #10234,Grocery,77.87,
|
| 39 |
+
2026-09-14,2026-09-15,4417,SQ *BLUE BOTTLE COFFEE,Dining,12.23,
|
| 40 |
+
2026-09-14,2026-09-15,4417,CON ED OF NY INTELL CK,Utilities,84.20,
|
| 41 |
+
2026-09-14,2026-09-15,4417,UBER *TRIP HELP.UBER.COM,Other Travel,32.56,
|
| 42 |
+
2026-09-14,2026-09-15,4417,WHOLEFDS MKT #10234,Grocery,135.21,
|
| 43 |
+
2026-09-15,2026-09-16,4417,UBER *TRIP HELP.UBER.COM,Other Travel,23.07,
|
| 44 |
+
2026-09-16,2026-09-17,4417,UBER *TRIP HELP.UBER.COM,Other Travel,36.90,
|
| 45 |
+
2026-09-17,2026-09-18,4417,SQ *BLUE BOTTLE COFFEE,Dining,12.69,
|
| 46 |
+
2026-09-18,2026-09-19,4417,WHOLEFDS MKT #10234,Grocery,82.10,
|
| 47 |
+
2026-09-23,2026-09-24,4417,AMZN Mktp US*2K4LM0,Merchandise,68.85,
|
| 48 |
+
2026-09-24,2026-09-25,4417,AMZN Mktp US*2K4LM0,Merchandise,21.56,
|
| 49 |
+
2026-09-24,2026-09-25,4417,SQ *BLUE BOTTLE COFFEE,Dining,5.82,
|
| 50 |
+
2026-09-24,2026-09-25,4417,CHIPOTLE 2291,Dining,21.49,
|
| 51 |
+
2026-09-27,2026-09-28,4417,UBER *TRIP HELP.UBER.COM,Other Travel,11.99,
|
| 52 |
+
2026-09-28,2026-09-29,4417,CHIPOTLE 2291,Dining,22.20,
|
| 53 |
+
2026-10-01,2026-10-02,4417,SQ *BLUE BOTTLE COFFEE,Dining,8.14,
|
| 54 |
+
2026-10-02,2026-10-03,4417,CVS/PHARMACY #04411,Health Care,20.85,
|
| 55 |
+
2026-10-03,2026-10-04,4417,SQ *BLUE BOTTLE COFFEE,Dining,12.61,
|
| 56 |
+
2026-10-03,2026-10-04,4417,UBER *TRIP HELP.UBER.COM,Other Travel,12.44,
|
| 57 |
+
2026-10-03,2026-10-04,4417,UBER *TRIP HELP.UBER.COM,Other Travel,25.52,
|
| 58 |
+
2026-10-04,2026-10-05,4417,AMZN Mktp US*2K4LM0,Merchandise,15.54,
|
| 59 |
+
2026-10-06,2026-10-07,4417,SQ *BLUE BOTTLE COFFEE,Dining,6.15,
|
| 60 |
+
2026-10-07,2026-10-08,4417,CHIPOTLE 2291,Dining,19.28,
|
| 61 |
+
2026-10-09,2026-10-10,4417,CHIPOTLE 2291,Dining,17.62,
|
| 62 |
+
2026-10-09,2026-10-10,4417,NETFLIX.COM,Entertainment,15.49,
|
| 63 |
+
2026-10-09,2026-10-10,4417,UBER *TRIP HELP.UBER.COM,Other Travel,15.17,
|
| 64 |
+
2026-10-10,2026-10-11,4417,CHIPOTLE 2291,Dining,12.87,
|
| 65 |
+
2026-10-10,2026-10-11,4417,SHELL OIL 57442,Gas/Automotive,30.19,
|
| 66 |
+
2026-10-11,2026-10-12,4417,UBER *TRIP HELP.UBER.COM,Other Travel,34.68,
|
| 67 |
+
2026-10-11,2026-10-12,4417,WHOLEFDS MKT #10234,Grocery,79.19,
|
| 68 |
+
2026-10-12,2026-10-13,4417,SQ *BLUE BOTTLE COFFEE,Dining,8.33,
|
| 69 |
+
2026-10-12,2026-10-13,4417,SHELL OIL 57442,Gas/Automotive,63.57,
|
| 70 |
+
2026-10-12,2026-10-13,4417,WHOLEFDS MKT #10234,Grocery,96.30,
|
| 71 |
+
2026-10-13,2026-10-14,4417,WHOLEFDS MKT #10234,Grocery,39.28,
|
| 72 |
+
2026-10-14,2026-10-15,4417,CON ED OF NY INTELL CK,Utilities,84.20,
|
| 73 |
+
2026-10-15,2026-10-16,4417,WHOLEFDS MKT #10234,Grocery,101.25,
|
| 74 |
+
2026-10-16,2026-10-16,4417,SHELL OIL 57442,Gas/Automotive,51.85,
|
| 75 |
+
2026-08-05,2026-08-06,4417,CAPITAL ONE MOBILE PYMT,Payment/Credit,,1200.00
|
| 76 |
+
2026-09-05,2026-09-06,4417,CAPITAL ONE MOBILE PYMT,Payment/Credit,,1200.00
|
| 77 |
+
2026-10-05,2026-10-06,4417,CAPITAL ONE MOBILE PYMT,Payment/Credit,,1200.00
|
households/public/p-capitalone/truth/ledger.csv
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
date,merchant,amount,account,category,group,currency,kind,pending
|
| 2 |
+
2026-07-22,Amazon,-77.09,Capital One Quicksilver,Other Shopping,Shopping,USD,purchase,false
|
| 3 |
+
2026-07-22,Blue Bottle Coffee,-5.22,Capital One Quicksilver,Coffee Shops,Food & Dining,USD,purchase,false
|
| 4 |
+
2026-07-22,CVS,-18.17,Capital One Quicksilver,Pharmacy,Healthcare,USD,purchase,false
|
| 5 |
+
2026-07-23,Amazon,-70.92,Capital One Quicksilver,Other Shopping,Shopping,USD,purchase,false
|
| 6 |
+
2026-07-23,Uber,-12.50,Capital One Quicksilver,Ride Share,Transportation,USD,purchase,false
|
| 7 |
+
2026-07-24,Shell,-52.64,Capital One Quicksilver,Gas & Fuel,Transportation,USD,purchase,false
|
| 8 |
+
2026-07-25,Amazon,-50.03,Capital One Quicksilver,Other Shopping,Shopping,USD,purchase,false
|
| 9 |
+
2026-07-25,Blue Bottle Coffee,-4.73,Capital One Quicksilver,Coffee Shops,Food & Dining,USD,purchase,false
|
| 10 |
+
2026-07-25,Chipotle,-15.81,Capital One Quicksilver,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 11 |
+
2026-07-26,Uber,-33.77,Capital One Quicksilver,Ride Share,Transportation,USD,purchase,false
|
| 12 |
+
2026-07-26,Uber,-24.23,Capital One Quicksilver,Ride Share,Transportation,USD,purchase,false
|
| 13 |
+
2026-07-26,Uber,-21.46,Capital One Quicksilver,Ride Share,Transportation,USD,purchase,false
|
| 14 |
+
2026-07-27,Blue Bottle Coffee,-5.76,Capital One Quicksilver,Coffee Shops,Food & Dining,USD,purchase,false
|
| 15 |
+
2026-07-28,Whole Foods Market,-71.07,Capital One Quicksilver,Groceries,Food & Dining,USD,purchase,false
|
| 16 |
+
2026-07-28,Whole Foods Market,-51.61,Capital One Quicksilver,Groceries,Food & Dining,USD,purchase,false
|
| 17 |
+
2026-08-04,Amazon,-38.94,Capital One Quicksilver,Other Shopping,Shopping,USD,purchase,false
|
| 18 |
+
2026-08-05,Blue Bottle Coffee,-7.44,Capital One Quicksilver,Coffee Shops,Food & Dining,USD,purchase,false
|
| 19 |
+
2026-08-05,Card payment,1200.00,Capital One Quicksilver,Credit Card Payment,Debt Payments,USD,card_payment,false
|
| 20 |
+
2026-08-06,Blue Bottle Coffee,-8.68,Capital One Quicksilver,Coffee Shops,Food & Dining,USD,purchase,false
|
| 21 |
+
2026-08-07,Blue Bottle Coffee,-6.06,Capital One Quicksilver,Coffee Shops,Food & Dining,USD,purchase,false
|
| 22 |
+
2026-08-08,Shell,-44.01,Capital One Quicksilver,Gas & Fuel,Transportation,USD,purchase,false
|
| 23 |
+
2026-08-09,Netflix,-15.49,Capital One Quicksilver,Streaming,Entertainment,USD,bill,false
|
| 24 |
+
2026-08-12,Chipotle,-16.53,Capital One Quicksilver,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 25 |
+
2026-08-13,Shell,-30.97,Capital One Quicksilver,Gas & Fuel,Transportation,USD,purchase,false
|
| 26 |
+
2026-08-14,Con Edison,-84.20,Capital One Quicksilver,Gas & Electric,Bills & Utilities,USD,bill,false
|
| 27 |
+
2026-08-14,Uber,-29.99,Capital One Quicksilver,Ride Share,Transportation,USD,purchase,false
|
| 28 |
+
2026-08-14,Uber,-22.46,Capital One Quicksilver,Ride Share,Transportation,USD,purchase,false
|
| 29 |
+
2026-08-22,Uber,-25.58,Capital One Quicksilver,Ride Share,Transportation,USD,purchase,false
|
| 30 |
+
2026-08-24,Whole Foods Market,-106.22,Capital One Quicksilver,Groceries,Food & Dining,USD,purchase,false
|
| 31 |
+
2026-08-25,Blue Bottle Coffee,-11.22,Capital One Quicksilver,Coffee Shops,Food & Dining,USD,purchase,false
|
| 32 |
+
2026-08-26,Whole Foods Market,-104.30,Capital One Quicksilver,Groceries,Food & Dining,USD,purchase,false
|
| 33 |
+
2026-09-02,Amazon,-73.29,Capital One Quicksilver,Other Shopping,Shopping,USD,purchase,false
|
| 34 |
+
2026-09-03,Blue Bottle Coffee,-10.60,Capital One Quicksilver,Coffee Shops,Food & Dining,USD,purchase,false
|
| 35 |
+
2026-09-03,Blue Bottle Coffee,-8.32,Capital One Quicksilver,Coffee Shops,Food & Dining,USD,purchase,false
|
| 36 |
+
2026-09-05,Amazon,36.65,Capital One Quicksilver,Other Shopping,Shopping,USD,refund,false
|
| 37 |
+
2026-09-05,Card payment,1200.00,Capital One Quicksilver,Credit Card Payment,Debt Payments,USD,card_payment,false
|
| 38 |
+
2026-09-09,Netflix,-15.49,Capital One Quicksilver,Streaming,Entertainment,USD,bill,false
|
| 39 |
+
2026-09-11,Shell,-63.64,Capital One Quicksilver,Gas & Fuel,Transportation,USD,purchase,false
|
| 40 |
+
2026-09-12,Whole Foods Market,-77.87,Capital One Quicksilver,Groceries,Food & Dining,USD,purchase,false
|
| 41 |
+
2026-09-14,Blue Bottle Coffee,-12.23,Capital One Quicksilver,Coffee Shops,Food & Dining,USD,purchase,false
|
| 42 |
+
2026-09-14,Con Edison,-84.20,Capital One Quicksilver,Gas & Electric,Bills & Utilities,USD,bill,false
|
| 43 |
+
2026-09-14,Uber,-32.56,Capital One Quicksilver,Ride Share,Transportation,USD,purchase,false
|
| 44 |
+
2026-09-14,Whole Foods Market,-135.21,Capital One Quicksilver,Groceries,Food & Dining,USD,purchase,false
|
| 45 |
+
2026-09-15,Uber,-23.07,Capital One Quicksilver,Ride Share,Transportation,USD,purchase,false
|
| 46 |
+
2026-09-16,Uber,-36.90,Capital One Quicksilver,Ride Share,Transportation,USD,purchase,false
|
| 47 |
+
2026-09-17,Blue Bottle Coffee,-12.69,Capital One Quicksilver,Coffee Shops,Food & Dining,USD,purchase,false
|
| 48 |
+
2026-09-18,Whole Foods Market,-82.10,Capital One Quicksilver,Groceries,Food & Dining,USD,purchase,false
|
| 49 |
+
2026-09-23,Amazon,-68.85,Capital One Quicksilver,Other Shopping,Shopping,USD,purchase,false
|
| 50 |
+
2026-09-24,Amazon,-21.56,Capital One Quicksilver,Other Shopping,Shopping,USD,purchase,false
|
| 51 |
+
2026-09-24,Blue Bottle Coffee,-5.82,Capital One Quicksilver,Coffee Shops,Food & Dining,USD,purchase,false
|
| 52 |
+
2026-09-24,Chipotle,-21.49,Capital One Quicksilver,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 53 |
+
2026-09-27,Uber,-11.99,Capital One Quicksilver,Ride Share,Transportation,USD,purchase,false
|
| 54 |
+
2026-09-28,Chipotle,-22.20,Capital One Quicksilver,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 55 |
+
2026-10-01,Blue Bottle Coffee,-8.14,Capital One Quicksilver,Coffee Shops,Food & Dining,USD,purchase,false
|
| 56 |
+
2026-10-02,CVS,-20.85,Capital One Quicksilver,Pharmacy,Healthcare,USD,purchase,false
|
| 57 |
+
2026-10-03,Blue Bottle Coffee,-12.61,Capital One Quicksilver,Coffee Shops,Food & Dining,USD,purchase,false
|
| 58 |
+
2026-10-03,Uber,-25.52,Capital One Quicksilver,Ride Share,Transportation,USD,purchase,false
|
| 59 |
+
2026-10-03,Uber,-12.44,Capital One Quicksilver,Ride Share,Transportation,USD,purchase,false
|
| 60 |
+
2026-10-04,Amazon,-15.54,Capital One Quicksilver,Other Shopping,Shopping,USD,purchase,false
|
| 61 |
+
2026-10-05,Card payment,1200.00,Capital One Quicksilver,Credit Card Payment,Debt Payments,USD,card_payment,false
|
| 62 |
+
2026-10-06,Blue Bottle Coffee,-6.15,Capital One Quicksilver,Coffee Shops,Food & Dining,USD,purchase,false
|
| 63 |
+
2026-10-07,Chipotle,-19.28,Capital One Quicksilver,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 64 |
+
2026-10-09,Chipotle,-17.62,Capital One Quicksilver,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 65 |
+
2026-10-09,Netflix,-15.49,Capital One Quicksilver,Streaming,Entertainment,USD,bill,false
|
| 66 |
+
2026-10-09,Uber,-15.17,Capital One Quicksilver,Ride Share,Transportation,USD,purchase,false
|
| 67 |
+
2026-10-10,Chipotle,-12.87,Capital One Quicksilver,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 68 |
+
2026-10-10,Shell,-30.19,Capital One Quicksilver,Gas & Fuel,Transportation,USD,purchase,false
|
| 69 |
+
2026-10-11,Uber,-34.68,Capital One Quicksilver,Ride Share,Transportation,USD,purchase,false
|
| 70 |
+
2026-10-11,Whole Foods Market,-79.19,Capital One Quicksilver,Groceries,Food & Dining,USD,purchase,false
|
| 71 |
+
2026-10-12,Blue Bottle Coffee,-8.33,Capital One Quicksilver,Coffee Shops,Food & Dining,USD,purchase,false
|
| 72 |
+
2026-10-12,Shell,-63.57,Capital One Quicksilver,Gas & Fuel,Transportation,USD,purchase,false
|
| 73 |
+
2026-10-12,Whole Foods Market,-96.30,Capital One Quicksilver,Groceries,Food & Dining,USD,purchase,false
|
| 74 |
+
2026-10-13,Whole Foods Market,-39.28,Capital One Quicksilver,Groceries,Food & Dining,USD,purchase,false
|
| 75 |
+
2026-10-14,Con Edison,-84.20,Capital One Quicksilver,Gas & Electric,Bills & Utilities,USD,bill,false
|
| 76 |
+
2026-10-15,Whole Foods Market,-101.25,Capital One Quicksilver,Groceries,Food & Dining,USD,purchase,true
|
| 77 |
+
2026-10-16,Shell,-51.85,Capital One Quicksilver,Gas & Fuel,Transportation,USD,purchase,true
|
households/public/p-capitalone/truth/merchants.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"Whole Foods Market": [
|
| 3 |
+
"Whole Foods Market",
|
| 4 |
+
"WHOLEFDS MKT #10234"
|
| 5 |
+
],
|
| 6 |
+
"Blue Bottle Coffee": [
|
| 7 |
+
"Blue Bottle Coffee",
|
| 8 |
+
"SQ *BLUE BOTTLE COFFEE"
|
| 9 |
+
],
|
| 10 |
+
"Chipotle": [
|
| 11 |
+
"Chipotle",
|
| 12 |
+
"CHIPOTLE 2291"
|
| 13 |
+
],
|
| 14 |
+
"Shell": [
|
| 15 |
+
"Shell",
|
| 16 |
+
"SHELL OIL 57442"
|
| 17 |
+
],
|
| 18 |
+
"Uber": [
|
| 19 |
+
"Uber",
|
| 20 |
+
"UBER *TRIP HELP.UBER.COM"
|
| 21 |
+
],
|
| 22 |
+
"Netflix": [
|
| 23 |
+
"Netflix",
|
| 24 |
+
"NETFLIX.COM"
|
| 25 |
+
],
|
| 26 |
+
"Amazon": [
|
| 27 |
+
"Amazon",
|
| 28 |
+
"AMZN Mktp US*2K4LM0"
|
| 29 |
+
],
|
| 30 |
+
"Con Edison": [
|
| 31 |
+
"Con Edison",
|
| 32 |
+
"CON ED OF NY INTELL CK"
|
| 33 |
+
],
|
| 34 |
+
"CVS": [
|
| 35 |
+
"CVS",
|
| 36 |
+
"CVS/PHARMACY #04411"
|
| 37 |
+
],
|
| 38 |
+
"Gusto": [
|
| 39 |
+
"Gusto",
|
| 40 |
+
"GUSTO PAY 102947"
|
| 41 |
+
]
|
| 42 |
+
}
|
households/public/p-capitalone/truth/setup.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"id": "p-capitalone",
|
| 3 |
+
"shape": "capitalone",
|
| 4 |
+
"today": "2026-10-16",
|
| 5 |
+
"currency": "USD",
|
| 6 |
+
"months": [
|
| 7 |
+
"2026-07",
|
| 8 |
+
"2026-08",
|
| 9 |
+
"2026-09",
|
| 10 |
+
"2026-10"
|
| 11 |
+
],
|
| 12 |
+
"accounts": [
|
| 13 |
+
{
|
| 14 |
+
"name": "Capital One Quicksilver",
|
| 15 |
+
"kind": "credit",
|
| 16 |
+
"currency": "USD"
|
| 17 |
+
}
|
| 18 |
+
],
|
| 19 |
+
"region": "US",
|
| 20 |
+
"load": [
|
| 21 |
+
{
|
| 22 |
+
"file": "source/transaction_download.csv",
|
| 23 |
+
"kind": "csv",
|
| 24 |
+
"account": "Capital One Quicksilver"
|
| 25 |
+
}
|
| 26 |
+
],
|
| 27 |
+
"persona": null
|
| 28 |
+
}
|
households/public/p-capitalone/view/view.csv
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
date,description,amount,account,source_category,source_type,pending,currency
|
| 2 |
+
2026-07-22,AMZN Mktp US*2K4LM0,-77.09,Capital One Quicksilver,Merchandise,,false,USD
|
| 3 |
+
2026-07-22,CVS/PHARMACY #04411,-18.17,Capital One Quicksilver,Health Care,,false,USD
|
| 4 |
+
2026-07-22,SQ *BLUE BOTTLE COFFEE,-5.22,Capital One Quicksilver,Dining,,false,USD
|
| 5 |
+
2026-07-23,AMZN Mktp US*2K4LM0,-70.92,Capital One Quicksilver,Merchandise,,false,USD
|
| 6 |
+
2026-07-23,UBER *TRIP HELP.UBER.COM,-12.50,Capital One Quicksilver,Other Travel,,false,USD
|
| 7 |
+
2026-07-24,SHELL OIL 57442,-52.64,Capital One Quicksilver,Gas/Automotive,,false,USD
|
| 8 |
+
2026-07-25,AMZN Mktp US*2K4LM0,-50.03,Capital One Quicksilver,Merchandise,,false,USD
|
| 9 |
+
2026-07-25,CHIPOTLE 2291,-15.81,Capital One Quicksilver,Dining,,false,USD
|
| 10 |
+
2026-07-25,SQ *BLUE BOTTLE COFFEE,-4.73,Capital One Quicksilver,Dining,,false,USD
|
| 11 |
+
2026-07-26,UBER *TRIP HELP.UBER.COM,-33.77,Capital One Quicksilver,Other Travel,,false,USD
|
| 12 |
+
2026-07-26,UBER *TRIP HELP.UBER.COM,-24.23,Capital One Quicksilver,Other Travel,,false,USD
|
| 13 |
+
2026-07-26,UBER *TRIP HELP.UBER.COM,-21.46,Capital One Quicksilver,Other Travel,,false,USD
|
| 14 |
+
2026-07-27,SQ *BLUE BOTTLE COFFEE,-5.76,Capital One Quicksilver,Dining,,false,USD
|
| 15 |
+
2026-07-28,WHOLEFDS MKT #10234,-71.07,Capital One Quicksilver,Grocery,,false,USD
|
| 16 |
+
2026-07-28,WHOLEFDS MKT #10234,-51.61,Capital One Quicksilver,Grocery,,false,USD
|
| 17 |
+
2026-08-04,AMZN Mktp US*2K4LM0,-38.94,Capital One Quicksilver,Merchandise,,false,USD
|
| 18 |
+
2026-08-05,CAPITAL ONE MOBILE PYMT,1200.00,Capital One Quicksilver,Payment/Credit,,false,USD
|
| 19 |
+
2026-08-05,SQ *BLUE BOTTLE COFFEE,-7.44,Capital One Quicksilver,Dining,,false,USD
|
| 20 |
+
2026-08-06,SQ *BLUE BOTTLE COFFEE,-8.68,Capital One Quicksilver,Dining,,false,USD
|
| 21 |
+
2026-08-07,SQ *BLUE BOTTLE COFFEE,-6.06,Capital One Quicksilver,Dining,,false,USD
|
| 22 |
+
2026-08-08,SHELL OIL 57442,-44.01,Capital One Quicksilver,Gas/Automotive,,false,USD
|
| 23 |
+
2026-08-09,NETFLIX.COM,-15.49,Capital One Quicksilver,Entertainment,,false,USD
|
| 24 |
+
2026-08-12,CHIPOTLE 2291,-16.53,Capital One Quicksilver,Dining,,false,USD
|
| 25 |
+
2026-08-13,SHELL OIL 57442,-30.97,Capital One Quicksilver,Gas/Automotive,,false,USD
|
| 26 |
+
2026-08-14,CON ED OF NY INTELL CK,-84.20,Capital One Quicksilver,Utilities,,false,USD
|
| 27 |
+
2026-08-14,UBER *TRIP HELP.UBER.COM,-29.99,Capital One Quicksilver,Other Travel,,false,USD
|
| 28 |
+
2026-08-14,UBER *TRIP HELP.UBER.COM,-22.46,Capital One Quicksilver,Other Travel,,false,USD
|
| 29 |
+
2026-08-22,UBER *TRIP HELP.UBER.COM,-25.58,Capital One Quicksilver,Other Travel,,false,USD
|
| 30 |
+
2026-08-24,WHOLEFDS MKT #10234,-106.22,Capital One Quicksilver,Grocery,,false,USD
|
| 31 |
+
2026-08-25,SQ *BLUE BOTTLE COFFEE,-11.22,Capital One Quicksilver,Dining,,false,USD
|
| 32 |
+
2026-08-26,WHOLEFDS MKT #10234,-104.30,Capital One Quicksilver,Grocery,,false,USD
|
| 33 |
+
2026-09-02,AMZN Mktp US*2K4LM0,-73.29,Capital One Quicksilver,Merchandise,,false,USD
|
| 34 |
+
2026-09-03,SQ *BLUE BOTTLE COFFEE,-10.60,Capital One Quicksilver,Dining,,false,USD
|
| 35 |
+
2026-09-03,SQ *BLUE BOTTLE COFFEE,-8.32,Capital One Quicksilver,Dining,,false,USD
|
| 36 |
+
2026-09-05,AMZN Mktp US*2K4LM0,36.65,Capital One Quicksilver,Merchandise,,false,USD
|
| 37 |
+
2026-09-05,CAPITAL ONE MOBILE PYMT,1200.00,Capital One Quicksilver,Payment/Credit,,false,USD
|
| 38 |
+
2026-09-09,NETFLIX.COM,-15.49,Capital One Quicksilver,Entertainment,,false,USD
|
| 39 |
+
2026-09-11,SHELL OIL 57442,-63.64,Capital One Quicksilver,Gas/Automotive,,false,USD
|
| 40 |
+
2026-09-12,WHOLEFDS MKT #10234,-77.87,Capital One Quicksilver,Grocery,,false,USD
|
| 41 |
+
2026-09-14,CON ED OF NY INTELL CK,-84.20,Capital One Quicksilver,Utilities,,false,USD
|
| 42 |
+
2026-09-14,SQ *BLUE BOTTLE COFFEE,-12.23,Capital One Quicksilver,Dining,,false,USD
|
| 43 |
+
2026-09-14,UBER *TRIP HELP.UBER.COM,-32.56,Capital One Quicksilver,Other Travel,,false,USD
|
| 44 |
+
2026-09-14,WHOLEFDS MKT #10234,-135.21,Capital One Quicksilver,Grocery,,false,USD
|
| 45 |
+
2026-09-15,UBER *TRIP HELP.UBER.COM,-23.07,Capital One Quicksilver,Other Travel,,false,USD
|
| 46 |
+
2026-09-16,UBER *TRIP HELP.UBER.COM,-36.90,Capital One Quicksilver,Other Travel,,false,USD
|
| 47 |
+
2026-09-17,SQ *BLUE BOTTLE COFFEE,-12.69,Capital One Quicksilver,Dining,,false,USD
|
| 48 |
+
2026-09-18,WHOLEFDS MKT #10234,-82.10,Capital One Quicksilver,Grocery,,false,USD
|
| 49 |
+
2026-09-23,AMZN Mktp US*2K4LM0,-68.85,Capital One Quicksilver,Merchandise,,false,USD
|
| 50 |
+
2026-09-24,AMZN Mktp US*2K4LM0,-21.56,Capital One Quicksilver,Merchandise,,false,USD
|
| 51 |
+
2026-09-24,CHIPOTLE 2291,-21.49,Capital One Quicksilver,Dining,,false,USD
|
| 52 |
+
2026-09-24,SQ *BLUE BOTTLE COFFEE,-5.82,Capital One Quicksilver,Dining,,false,USD
|
| 53 |
+
2026-09-27,UBER *TRIP HELP.UBER.COM,-11.99,Capital One Quicksilver,Other Travel,,false,USD
|
| 54 |
+
2026-09-28,CHIPOTLE 2291,-22.20,Capital One Quicksilver,Dining,,false,USD
|
| 55 |
+
2026-10-01,SQ *BLUE BOTTLE COFFEE,-8.14,Capital One Quicksilver,Dining,,false,USD
|
| 56 |
+
2026-10-02,CVS/PHARMACY #04411,-20.85,Capital One Quicksilver,Health Care,,false,USD
|
| 57 |
+
2026-10-03,SQ *BLUE BOTTLE COFFEE,-12.61,Capital One Quicksilver,Dining,,false,USD
|
| 58 |
+
2026-10-03,UBER *TRIP HELP.UBER.COM,-25.52,Capital One Quicksilver,Other Travel,,false,USD
|
| 59 |
+
2026-10-03,UBER *TRIP HELP.UBER.COM,-12.44,Capital One Quicksilver,Other Travel,,false,USD
|
| 60 |
+
2026-10-04,AMZN Mktp US*2K4LM0,-15.54,Capital One Quicksilver,Merchandise,,false,USD
|
| 61 |
+
2026-10-05,CAPITAL ONE MOBILE PYMT,1200.00,Capital One Quicksilver,Payment/Credit,,false,USD
|
| 62 |
+
2026-10-06,SQ *BLUE BOTTLE COFFEE,-6.15,Capital One Quicksilver,Dining,,false,USD
|
| 63 |
+
2026-10-07,CHIPOTLE 2291,-19.28,Capital One Quicksilver,Dining,,false,USD
|
| 64 |
+
2026-10-09,CHIPOTLE 2291,-17.62,Capital One Quicksilver,Dining,,false,USD
|
| 65 |
+
2026-10-09,NETFLIX.COM,-15.49,Capital One Quicksilver,Entertainment,,false,USD
|
| 66 |
+
2026-10-09,UBER *TRIP HELP.UBER.COM,-15.17,Capital One Quicksilver,Other Travel,,false,USD
|
| 67 |
+
2026-10-10,CHIPOTLE 2291,-12.87,Capital One Quicksilver,Dining,,false,USD
|
| 68 |
+
2026-10-10,SHELL OIL 57442,-30.19,Capital One Quicksilver,Gas/Automotive,,false,USD
|
| 69 |
+
2026-10-11,UBER *TRIP HELP.UBER.COM,-34.68,Capital One Quicksilver,Other Travel,,false,USD
|
| 70 |
+
2026-10-11,WHOLEFDS MKT #10234,-79.19,Capital One Quicksilver,Grocery,,false,USD
|
| 71 |
+
2026-10-12,SHELL OIL 57442,-63.57,Capital One Quicksilver,Gas/Automotive,,false,USD
|
| 72 |
+
2026-10-12,SQ *BLUE BOTTLE COFFEE,-8.33,Capital One Quicksilver,Dining,,false,USD
|
| 73 |
+
2026-10-12,WHOLEFDS MKT #10234,-96.30,Capital One Quicksilver,Grocery,,false,USD
|
| 74 |
+
2026-10-13,WHOLEFDS MKT #10234,-39.28,Capital One Quicksilver,Grocery,,false,USD
|
| 75 |
+
2026-10-14,CON ED OF NY INTELL CK,-84.20,Capital One Quicksilver,Utilities,,false,USD
|
| 76 |
+
2026-10-15,WHOLEFDS MKT #10234,-101.25,Capital One Quicksilver,Grocery,,true,USD
|
| 77 |
+
2026-10-16,SHELL OIL 57442,-51.85,Capital One Quicksilver,Gas/Automotive,,true,USD
|
households/public/p-chase/source/Chase9902_Activity.CSV
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Transaction Date,Post Date,Description,Category,Type,Amount,Memo
|
| 2 |
+
07/22/2026,07/23/2026,SHELL OIL 57442,Gas,Sale,-60.62,
|
| 3 |
+
07/22/2026,07/23/2026,WHOLEFDS MKT #10234,Groceries,Sale,-130.80,
|
| 4 |
+
07/23/2026,07/24/2026,SQ *BLUE BOTTLE COFFEE,Food & Drink,Sale,-10.92,
|
| 5 |
+
07/23/2026,07/24/2026,UBER *TRIP HELP.UBER.COM,Travel,Sale,-32.45,
|
| 6 |
+
07/23/2026,07/24/2026,WHOLEFDS MKT #10234,Groceries,Sale,-126.46,
|
| 7 |
+
07/25/2026,07/26/2026,AMZN Mktp US*2K4LM0,Shopping,Sale,-68.45,
|
| 8 |
+
07/25/2026,07/26/2026,SQ *BLUE BOTTLE COFFEE,Food & Drink,Sale,-6.47,
|
| 9 |
+
07/25/2026,07/26/2026,UBER *TRIP HELP.UBER.COM,Travel,Sale,-16.81,
|
| 10 |
+
07/27/2026,07/28/2026,SQ *BLUE BOTTLE COFFEE,Food & Drink,Sale,-8.56,
|
| 11 |
+
07/27/2026,07/28/2026,WHOLEFDS MKT #10234,Groceries,Sale,-57.79,
|
| 12 |
+
07/27/2026,07/28/2026,WHOLEFDS MKT #10234,Groceries,Sale,-128.75,
|
| 13 |
+
07/28/2026,07/29/2026,CHIPOTLE 2291,Food & Drink,Sale,-12.20,
|
| 14 |
+
07/28/2026,07/29/2026,SHELL OIL 57442,Gas,Sale,-33.39,
|
| 15 |
+
07/28/2026,07/29/2026,SHELL OIL 57442,Gas,Sale,-39.49,
|
| 16 |
+
07/28/2026,07/29/2026,UBER *TRIP HELP.UBER.COM,Travel,Sale,-9.94,
|
| 17 |
+
08/02/2026,08/03/2026,EQUINOX 0412 NEW YORK,Health & Wellness,Sale,-230.00,
|
| 18 |
+
08/03/2026,08/04/2026,NOTION LABS INC,Bills & Utilities,Sale,-10.00,
|
| 19 |
+
08/03/2026,08/04/2026,WHOLEFDS MKT #10234,Groceries,Sale,-84.32,
|
| 20 |
+
08/04/2026,08/05/2026,SQ *BLUE BOTTLE COFFEE,Food & Drink,Sale,-4.60,
|
| 21 |
+
08/05/2026,08/06/2026,SQ *BLUE BOTTLE COFFEE,Food & Drink,Sale,-8.37,
|
| 22 |
+
08/06/2026,08/07/2026,SHELL OIL 57442,Gas,Sale,-54.04,
|
| 23 |
+
08/07/2026,08/08/2026,SQ *BLUE BOTTLE COFFEE,Food & Drink,Sale,-5.01,
|
| 24 |
+
08/09/2026,08/10/2026,NETFLIX.COM,Entertainment,Sale,-15.49,
|
| 25 |
+
08/10/2026,08/11/2026,WHOLEFDS MKT #10234,Groceries,Sale,-45.83,
|
| 26 |
+
08/11/2026,08/12/2026,AMZN Mktp US*2K4LM0,Shopping,Sale,-39.90,
|
| 27 |
+
08/13/2026,08/14/2026,SHELL OIL 57442,Gas,Sale,-64.97,
|
| 28 |
+
08/14/2026,08/15/2026,CON ED OF NY INTELL CK,Bills & Utilities,Sale,-84.20,
|
| 29 |
+
08/16/2026,08/17/2026,SQ *BLUE BOTTLE COFFEE,Food & Drink,Sale,-7.97,
|
| 30 |
+
08/18/2026,08/19/2026,UBER *TRIP HELP.UBER.COM,Travel,Sale,-14.27,
|
| 31 |
+
08/21/2026,08/22/2026,VZWRLSS*APOCC VISN,Bills & Utilities,Sale,-65.00,
|
| 32 |
+
08/22/2026,08/23/2026,CHIPOTLE 2291,Food & Drink,Sale,-12.11,
|
| 33 |
+
08/22/2026,08/23/2026,CHIPOTLE 2291,Food & Drink,Sale,-13.16,
|
| 34 |
+
08/23/2026,08/24/2026,AMZN Mktp US*2K4LM0,Shopping,Sale,-79.48,
|
| 35 |
+
08/25/2026,08/26/2026,CHIPOTLE 2291,Food & Drink,Sale,-11.01,
|
| 36 |
+
08/26/2026,08/27/2026,SQ *BLUE BOTTLE COFFEE,Food & Drink,Sale,-9.33,
|
| 37 |
+
08/28/2026,08/29/2026,AMZN Mktp US*2K4LM0,Shopping,Sale,-37.00,
|
| 38 |
+
09/02/2026,09/03/2026,EQUINOX 0412 NEW YORK,Health & Wellness,Sale,-230.00,
|
| 39 |
+
09/03/2026,09/04/2026,NOTION LABS INC,Bills & Utilities,Sale,-10.00,
|
| 40 |
+
09/03/2026,09/04/2026,WHOLEFDS MKT #10234,Groceries,Sale,-76.62,
|
| 41 |
+
09/06/2026,09/07/2026,AMZN Mktp US*2K4LM0,Shopping,Sale,-76.68,
|
| 42 |
+
09/06/2026,09/07/2026,WHOLEFDS MKT #10234,Groceries,Return,38.31,
|
| 43 |
+
09/06/2026,09/07/2026,WHOLEFDS MKT #10234,Groceries,Sale,-119.49,
|
| 44 |
+
09/07/2026,09/08/2026,UBER *TRIP HELP.UBER.COM,Travel,Sale,-17.28,
|
| 45 |
+
09/08/2026,09/09/2026,SQ *BLUE BOTTLE COFFEE,Food & Drink,Sale,-9.18,
|
| 46 |
+
09/08/2026,09/09/2026,UBER *TRIP HELP.UBER.COM,Travel,Sale,-21.55,
|
| 47 |
+
09/08/2026,09/09/2026,UBER *TRIP HELP.UBER.COM,Travel,Sale,-24.57,
|
| 48 |
+
09/09/2026,09/10/2026,NETFLIX.COM,Entertainment,Sale,-15.49,
|
| 49 |
+
09/10/2026,09/11/2026,SQ *BLUE BOTTLE COFFEE,Food & Drink,Sale,-7.77,
|
| 50 |
+
09/12/2026,09/13/2026,SHELL OIL 57442,Gas,Sale,-38.06,
|
| 51 |
+
09/14/2026,09/15/2026,CON ED OF NY INTELL CK,Bills & Utilities,Sale,-84.20,
|
| 52 |
+
09/16/2026,09/17/2026,SQ *BLUE BOTTLE COFFEE,Food & Drink,Sale,-6.29,
|
| 53 |
+
09/16/2026,09/17/2026,WHOLEFDS MKT #10234,Groceries,Sale,-42.57,
|
| 54 |
+
09/18/2026,09/19/2026,CHIPOTLE 2291,Food & Drink,Sale,-22.70,
|
| 55 |
+
09/19/2026,09/20/2026,SHELL OIL 57442,Gas,Sale,-58.59,
|
| 56 |
+
09/21/2026,09/22/2026,SQ *BLUE BOTTLE COFFEE,Food & Drink,Sale,-9.26,
|
| 57 |
+
09/21/2026,09/22/2026,SQ *BLUE BOTTLE COFFEE,Food & Drink,Sale,-11.47,
|
| 58 |
+
09/21/2026,09/22/2026,VZWRLSS*APOCC VISN,Bills & Utilities,Sale,-65.00,
|
| 59 |
+
09/22/2026,09/23/2026,SHELL OIL 57442,Gas,Sale,-30.14,
|
| 60 |
+
09/22/2026,09/23/2026,WHOLEFDS MKT #10234,Groceries,Sale,-82.31,
|
| 61 |
+
09/23/2026,09/24/2026,UBER *TRIP HELP.UBER.COM,Travel,Sale,-9.37,
|
| 62 |
+
10/01/2026,10/02/2026,AMZN Mktp US*2K4LM0,Shopping,Sale,-67.58,
|
| 63 |
+
10/02/2026,10/03/2026,SQ *BLUE BOTTLE COFFEE,Food & Drink,Sale,-6.00,
|
| 64 |
+
10/02/2026,10/03/2026,EQUINOX 0412 NEW YORK,Health & Wellness,Sale,-230.00,
|
| 65 |
+
10/03/2026,10/04/2026,NOTION LABS INC,Bills & Utilities,Sale,-12.00,
|
| 66 |
+
10/03/2026,10/04/2026,WHOLEFDS MKT #10234,Groceries,Sale,-63.60,
|
| 67 |
+
10/04/2026,10/05/2026,SQ *BLUE BOTTLE COFFEE,Food & Drink,Sale,-11.29,
|
| 68 |
+
10/05/2026,10/06/2026,SQ *BLUE BOTTLE COFFEE,Food & Drink,Sale,-11.50,
|
| 69 |
+
10/07/2026,10/08/2026,UBER *TRIP HELP.UBER.COM,Travel,Sale,-9.06,
|
| 70 |
+
10/07/2026,10/08/2026,WHOLEFDS MKT #10234,Groceries,Sale,-99.14,
|
| 71 |
+
10/08/2026,10/09/2026,AMZN Mktp US*2K4LM0,Shopping,Sale,-26.68,
|
| 72 |
+
10/08/2026,10/09/2026,SQ *BLUE BOTTLE COFFEE,Food & Drink,Sale,-5.24,
|
| 73 |
+
10/08/2026,10/09/2026,CHIPOTLE 2291,Food & Drink,Sale,-16.24,
|
| 74 |
+
10/09/2026,10/10/2026,NETFLIX.COM,Entertainment,Sale,-15.49,
|
| 75 |
+
10/09/2026,10/10/2026,SHELL OIL 57442,Gas,Sale,-37.64,
|
| 76 |
+
10/11/2026,10/12/2026,SHELL OIL 57442,Gas,Sale,-38.54,
|
| 77 |
+
10/12/2026,10/13/2026,SQ *BLUE BOTTLE COFFEE,Food & Drink,Sale,-5.71,
|
| 78 |
+
10/12/2026,10/13/2026,SQ *BLUE BOTTLE COFFEE,Food & Drink,Sale,-8.97,
|
| 79 |
+
10/13/2026,10/14/2026,UBER *TRIP HELP.UBER.COM,Travel,Sale,-9.62,
|
| 80 |
+
10/13/2026,10/14/2026,UBER *TRIP HELP.UBER.COM,Travel,Sale,-20.27,
|
| 81 |
+
10/13/2026,10/14/2026,UBER *TRIP HELP.UBER.COM,Travel,Sale,-26.00,
|
| 82 |
+
10/14/2026,10/15/2026,CON ED OF NY INTELL CK,Bills & Utilities,Sale,-84.20,
|
| 83 |
+
08/05/2026,08/06/2026,Payment Thank You-Mobile,,Payment,1200.00,
|
| 84 |
+
09/05/2026,09/06/2026,Payment Thank You-Mobile,,Payment,1200.00,
|
| 85 |
+
10/05/2026,10/06/2026,Payment Thank You-Mobile,,Payment,1200.00,
|
households/public/p-chase/truth/ledger.csv
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
date,merchant,amount,account,category,group,currency,kind,pending
|
| 2 |
+
2026-07-22,Shell,-60.62,Chase Sapphire,Gas & Fuel,Transportation,USD,purchase,false
|
| 3 |
+
2026-07-22,Whole Foods Market,-130.80,Chase Sapphire,Groceries,Food & Dining,USD,purchase,false
|
| 4 |
+
2026-07-23,Blue Bottle Coffee,-10.92,Chase Sapphire,Coffee Shops,Food & Dining,USD,purchase,false
|
| 5 |
+
2026-07-23,Uber,-32.45,Chase Sapphire,Ride Share,Transportation,USD,purchase,false
|
| 6 |
+
2026-07-23,Whole Foods Market,-126.46,Chase Sapphire,Groceries,Food & Dining,USD,purchase,false
|
| 7 |
+
2026-07-25,Amazon,-68.45,Chase Sapphire,Other Shopping,Shopping,USD,purchase,false
|
| 8 |
+
2026-07-25,Blue Bottle Coffee,-6.47,Chase Sapphire,Coffee Shops,Food & Dining,USD,purchase,false
|
| 9 |
+
2026-07-25,Uber,-16.81,Chase Sapphire,Ride Share,Transportation,USD,purchase,false
|
| 10 |
+
2026-07-27,Blue Bottle Coffee,-8.56,Chase Sapphire,Coffee Shops,Food & Dining,USD,purchase,false
|
| 11 |
+
2026-07-27,Whole Foods Market,-128.75,Chase Sapphire,Groceries,Food & Dining,USD,purchase,false
|
| 12 |
+
2026-07-27,Whole Foods Market,-57.79,Chase Sapphire,Groceries,Food & Dining,USD,purchase,false
|
| 13 |
+
2026-07-28,Chipotle,-12.20,Chase Sapphire,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 14 |
+
2026-07-28,Shell,-39.49,Chase Sapphire,Gas & Fuel,Transportation,USD,purchase,false
|
| 15 |
+
2026-07-28,Shell,-33.39,Chase Sapphire,Gas & Fuel,Transportation,USD,purchase,false
|
| 16 |
+
2026-07-28,Uber,-9.94,Chase Sapphire,Ride Share,Transportation,USD,purchase,false
|
| 17 |
+
2026-08-02,Equinox,-230.00,Chase Sapphire,Gym & Fitness,Personal Care,USD,bill,false
|
| 18 |
+
2026-08-03,Notion,-10.00,Chase Sapphire,Other Bills,Bills & Utilities,USD,bill,false
|
| 19 |
+
2026-08-03,Whole Foods Market,-84.32,Chase Sapphire,Groceries,Food & Dining,USD,purchase,false
|
| 20 |
+
2026-08-04,Blue Bottle Coffee,-4.60,Chase Sapphire,Coffee Shops,Food & Dining,USD,purchase,false
|
| 21 |
+
2026-08-05,Blue Bottle Coffee,-8.37,Chase Sapphire,Coffee Shops,Food & Dining,USD,purchase,false
|
| 22 |
+
2026-08-05,Card payment,1200.00,Chase Sapphire,Credit Card Payment,Debt Payments,USD,card_payment,false
|
| 23 |
+
2026-08-06,Shell,-54.04,Chase Sapphire,Gas & Fuel,Transportation,USD,purchase,false
|
| 24 |
+
2026-08-07,Blue Bottle Coffee,-5.01,Chase Sapphire,Coffee Shops,Food & Dining,USD,purchase,false
|
| 25 |
+
2026-08-09,Netflix,-15.49,Chase Sapphire,Streaming,Entertainment,USD,bill,false
|
| 26 |
+
2026-08-10,Whole Foods Market,-45.83,Chase Sapphire,Groceries,Food & Dining,USD,purchase,false
|
| 27 |
+
2026-08-11,Amazon,-39.90,Chase Sapphire,Other Shopping,Shopping,USD,purchase,false
|
| 28 |
+
2026-08-13,Shell,-64.97,Chase Sapphire,Gas & Fuel,Transportation,USD,purchase,false
|
| 29 |
+
2026-08-14,Con Edison,-84.20,Chase Sapphire,Gas & Electric,Bills & Utilities,USD,bill,false
|
| 30 |
+
2026-08-16,Blue Bottle Coffee,-7.97,Chase Sapphire,Coffee Shops,Food & Dining,USD,purchase,false
|
| 31 |
+
2026-08-18,Uber,-14.27,Chase Sapphire,Ride Share,Transportation,USD,purchase,false
|
| 32 |
+
2026-08-21,Verizon,-65.00,Chase Sapphire,Phone,Bills & Utilities,USD,bill,false
|
| 33 |
+
2026-08-22,Chipotle,-13.16,Chase Sapphire,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 34 |
+
2026-08-22,Chipotle,-12.11,Chase Sapphire,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 35 |
+
2026-08-23,Amazon,-79.48,Chase Sapphire,Other Shopping,Shopping,USD,purchase,false
|
| 36 |
+
2026-08-25,Chipotle,-11.01,Chase Sapphire,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 37 |
+
2026-08-26,Blue Bottle Coffee,-9.33,Chase Sapphire,Coffee Shops,Food & Dining,USD,purchase,false
|
| 38 |
+
2026-08-28,Amazon,-37.00,Chase Sapphire,Other Shopping,Shopping,USD,purchase,false
|
| 39 |
+
2026-09-02,Equinox,-230.00,Chase Sapphire,Gym & Fitness,Personal Care,USD,bill,false
|
| 40 |
+
2026-09-03,Notion,-10.00,Chase Sapphire,Other Bills,Bills & Utilities,USD,bill,false
|
| 41 |
+
2026-09-03,Whole Foods Market,-76.62,Chase Sapphire,Groceries,Food & Dining,USD,purchase,false
|
| 42 |
+
2026-09-05,Card payment,1200.00,Chase Sapphire,Credit Card Payment,Debt Payments,USD,card_payment,false
|
| 43 |
+
2026-09-06,Amazon,-76.68,Chase Sapphire,Other Shopping,Shopping,USD,purchase,false
|
| 44 |
+
2026-09-06,Whole Foods Market,-119.49,Chase Sapphire,Groceries,Food & Dining,USD,purchase,false
|
| 45 |
+
2026-09-06,Whole Foods Market,38.31,Chase Sapphire,Groceries,Food & Dining,USD,refund,false
|
| 46 |
+
2026-09-07,Uber,-17.28,Chase Sapphire,Ride Share,Transportation,USD,purchase,false
|
| 47 |
+
2026-09-08,Blue Bottle Coffee,-9.18,Chase Sapphire,Coffee Shops,Food & Dining,USD,purchase,false
|
| 48 |
+
2026-09-08,Uber,-24.57,Chase Sapphire,Ride Share,Transportation,USD,purchase,false
|
| 49 |
+
2026-09-08,Uber,-21.55,Chase Sapphire,Ride Share,Transportation,USD,purchase,false
|
| 50 |
+
2026-09-09,Netflix,-15.49,Chase Sapphire,Streaming,Entertainment,USD,bill,false
|
| 51 |
+
2026-09-10,Blue Bottle Coffee,-7.77,Chase Sapphire,Coffee Shops,Food & Dining,USD,purchase,false
|
| 52 |
+
2026-09-12,Shell,-38.06,Chase Sapphire,Gas & Fuel,Transportation,USD,purchase,false
|
| 53 |
+
2026-09-14,Con Edison,-84.20,Chase Sapphire,Gas & Electric,Bills & Utilities,USD,bill,false
|
| 54 |
+
2026-09-16,Blue Bottle Coffee,-6.29,Chase Sapphire,Coffee Shops,Food & Dining,USD,purchase,false
|
| 55 |
+
2026-09-16,Whole Foods Market,-42.57,Chase Sapphire,Groceries,Food & Dining,USD,purchase,false
|
| 56 |
+
2026-09-18,Chipotle,-22.70,Chase Sapphire,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 57 |
+
2026-09-19,Shell,-58.59,Chase Sapphire,Gas & Fuel,Transportation,USD,purchase,false
|
| 58 |
+
2026-09-21,Blue Bottle Coffee,-11.47,Chase Sapphire,Coffee Shops,Food & Dining,USD,purchase,false
|
| 59 |
+
2026-09-21,Blue Bottle Coffee,-9.26,Chase Sapphire,Coffee Shops,Food & Dining,USD,purchase,false
|
| 60 |
+
2026-09-21,Verizon,-65.00,Chase Sapphire,Phone,Bills & Utilities,USD,bill,false
|
| 61 |
+
2026-09-22,Shell,-30.14,Chase Sapphire,Gas & Fuel,Transportation,USD,purchase,false
|
| 62 |
+
2026-09-22,Whole Foods Market,-82.31,Chase Sapphire,Groceries,Food & Dining,USD,purchase,false
|
| 63 |
+
2026-09-23,Uber,-9.37,Chase Sapphire,Ride Share,Transportation,USD,purchase,false
|
| 64 |
+
2026-10-01,Amazon,-67.58,Chase Sapphire,Other Shopping,Shopping,USD,purchase,false
|
| 65 |
+
2026-10-02,Blue Bottle Coffee,-6.00,Chase Sapphire,Coffee Shops,Food & Dining,USD,purchase,false
|
| 66 |
+
2026-10-02,Equinox,-230.00,Chase Sapphire,Gym & Fitness,Personal Care,USD,bill,false
|
| 67 |
+
2026-10-03,Notion,-12.00,Chase Sapphire,Other Bills,Bills & Utilities,USD,bill,false
|
| 68 |
+
2026-10-03,Whole Foods Market,-63.60,Chase Sapphire,Groceries,Food & Dining,USD,purchase,false
|
| 69 |
+
2026-10-04,Blue Bottle Coffee,-11.29,Chase Sapphire,Coffee Shops,Food & Dining,USD,purchase,false
|
| 70 |
+
2026-10-05,Blue Bottle Coffee,-11.50,Chase Sapphire,Coffee Shops,Food & Dining,USD,purchase,false
|
| 71 |
+
2026-10-05,Card payment,1200.00,Chase Sapphire,Credit Card Payment,Debt Payments,USD,card_payment,false
|
| 72 |
+
2026-10-07,Uber,-9.06,Chase Sapphire,Ride Share,Transportation,USD,purchase,false
|
| 73 |
+
2026-10-07,Whole Foods Market,-99.14,Chase Sapphire,Groceries,Food & Dining,USD,purchase,false
|
| 74 |
+
2026-10-08,Amazon,-26.68,Chase Sapphire,Other Shopping,Shopping,USD,purchase,false
|
| 75 |
+
2026-10-08,Blue Bottle Coffee,-5.24,Chase Sapphire,Coffee Shops,Food & Dining,USD,purchase,false
|
| 76 |
+
2026-10-08,Chipotle,-16.24,Chase Sapphire,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 77 |
+
2026-10-09,Netflix,-15.49,Chase Sapphire,Streaming,Entertainment,USD,bill,false
|
| 78 |
+
2026-10-09,Shell,-37.64,Chase Sapphire,Gas & Fuel,Transportation,USD,purchase,false
|
| 79 |
+
2026-10-11,Shell,-38.54,Chase Sapphire,Gas & Fuel,Transportation,USD,purchase,false
|
| 80 |
+
2026-10-12,Blue Bottle Coffee,-8.97,Chase Sapphire,Coffee Shops,Food & Dining,USD,purchase,false
|
| 81 |
+
2026-10-12,Blue Bottle Coffee,-5.71,Chase Sapphire,Coffee Shops,Food & Dining,USD,purchase,false
|
| 82 |
+
2026-10-13,Uber,-26.00,Chase Sapphire,Ride Share,Transportation,USD,purchase,false
|
| 83 |
+
2026-10-13,Uber,-20.27,Chase Sapphire,Ride Share,Transportation,USD,purchase,false
|
| 84 |
+
2026-10-13,Uber,-9.62,Chase Sapphire,Ride Share,Transportation,USD,purchase,false
|
| 85 |
+
2026-10-14,Con Edison,-84.20,Chase Sapphire,Gas & Electric,Bills & Utilities,USD,bill,false
|
households/public/p-chase/truth/merchants.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"Whole Foods Market": [
|
| 3 |
+
"Whole Foods Market",
|
| 4 |
+
"WHOLEFDS MKT #10234"
|
| 5 |
+
],
|
| 6 |
+
"Blue Bottle Coffee": [
|
| 7 |
+
"Blue Bottle Coffee",
|
| 8 |
+
"SQ *BLUE BOTTLE COFFEE"
|
| 9 |
+
],
|
| 10 |
+
"Chipotle": [
|
| 11 |
+
"Chipotle",
|
| 12 |
+
"CHIPOTLE 2291"
|
| 13 |
+
],
|
| 14 |
+
"Shell": [
|
| 15 |
+
"Shell",
|
| 16 |
+
"SHELL OIL 57442"
|
| 17 |
+
],
|
| 18 |
+
"Uber": [
|
| 19 |
+
"Uber",
|
| 20 |
+
"UBER *TRIP HELP.UBER.COM"
|
| 21 |
+
],
|
| 22 |
+
"Netflix": [
|
| 23 |
+
"Netflix",
|
| 24 |
+
"NETFLIX.COM"
|
| 25 |
+
],
|
| 26 |
+
"Amazon": [
|
| 27 |
+
"Amazon",
|
| 28 |
+
"AMZN Mktp US*2K4LM0"
|
| 29 |
+
],
|
| 30 |
+
"Con Edison": [
|
| 31 |
+
"Con Edison",
|
| 32 |
+
"CON ED OF NY INTELL CK"
|
| 33 |
+
],
|
| 34 |
+
"Verizon": [
|
| 35 |
+
"Verizon",
|
| 36 |
+
"VZWRLSS*APOCC VISN"
|
| 37 |
+
],
|
| 38 |
+
"Notion": [
|
| 39 |
+
"Notion",
|
| 40 |
+
"NOTION LABS INC"
|
| 41 |
+
],
|
| 42 |
+
"Equinox": [
|
| 43 |
+
"Equinox",
|
| 44 |
+
"EQUINOX 0412 NEW YORK"
|
| 45 |
+
],
|
| 46 |
+
"Gusto": [
|
| 47 |
+
"Gusto",
|
| 48 |
+
"GUSTO PAY 102947"
|
| 49 |
+
]
|
| 50 |
+
}
|
households/public/p-chase/truth/setup.json
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"id": "p-chase",
|
| 3 |
+
"shape": "chase",
|
| 4 |
+
"today": "2026-10-16",
|
| 5 |
+
"currency": "USD",
|
| 6 |
+
"months": [
|
| 7 |
+
"2026-07",
|
| 8 |
+
"2026-08",
|
| 9 |
+
"2026-09",
|
| 10 |
+
"2026-10"
|
| 11 |
+
],
|
| 12 |
+
"accounts": [
|
| 13 |
+
{
|
| 14 |
+
"name": "Chase Sapphire",
|
| 15 |
+
"kind": "credit",
|
| 16 |
+
"currency": "USD"
|
| 17 |
+
}
|
| 18 |
+
],
|
| 19 |
+
"region": "US",
|
| 20 |
+
"load": [
|
| 21 |
+
{
|
| 22 |
+
"file": "source/Chase9902_Activity.CSV",
|
| 23 |
+
"kind": "csv",
|
| 24 |
+
"account": "Chase Sapphire"
|
| 25 |
+
}
|
| 26 |
+
],
|
| 27 |
+
"persona": null
|
| 28 |
+
}
|
households/public/p-chase/view/view.csv
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
date,description,amount,account,source_category,source_type,pending,currency
|
| 2 |
+
2026-07-22,SHELL OIL 57442,-60.62,Chase Sapphire,Gas,Sale,false,USD
|
| 3 |
+
2026-07-22,WHOLEFDS MKT #10234,-130.80,Chase Sapphire,Groceries,Sale,false,USD
|
| 4 |
+
2026-07-23,SQ *BLUE BOTTLE COFFEE,-10.92,Chase Sapphire,Food & Drink,Sale,false,USD
|
| 5 |
+
2026-07-23,UBER *TRIP HELP.UBER.COM,-32.45,Chase Sapphire,Travel,Sale,false,USD
|
| 6 |
+
2026-07-23,WHOLEFDS MKT #10234,-126.46,Chase Sapphire,Groceries,Sale,false,USD
|
| 7 |
+
2026-07-25,AMZN Mktp US*2K4LM0,-68.45,Chase Sapphire,Shopping,Sale,false,USD
|
| 8 |
+
2026-07-25,SQ *BLUE BOTTLE COFFEE,-6.47,Chase Sapphire,Food & Drink,Sale,false,USD
|
| 9 |
+
2026-07-25,UBER *TRIP HELP.UBER.COM,-16.81,Chase Sapphire,Travel,Sale,false,USD
|
| 10 |
+
2026-07-27,SQ *BLUE BOTTLE COFFEE,-8.56,Chase Sapphire,Food & Drink,Sale,false,USD
|
| 11 |
+
2026-07-27,WHOLEFDS MKT #10234,-128.75,Chase Sapphire,Groceries,Sale,false,USD
|
| 12 |
+
2026-07-27,WHOLEFDS MKT #10234,-57.79,Chase Sapphire,Groceries,Sale,false,USD
|
| 13 |
+
2026-07-28,CHIPOTLE 2291,-12.20,Chase Sapphire,Food & Drink,Sale,false,USD
|
| 14 |
+
2026-07-28,SHELL OIL 57442,-39.49,Chase Sapphire,Gas,Sale,false,USD
|
| 15 |
+
2026-07-28,SHELL OIL 57442,-33.39,Chase Sapphire,Gas,Sale,false,USD
|
| 16 |
+
2026-07-28,UBER *TRIP HELP.UBER.COM,-9.94,Chase Sapphire,Travel,Sale,false,USD
|
| 17 |
+
2026-08-02,EQUINOX 0412 NEW YORK,-230.00,Chase Sapphire,Health & Wellness,Sale,false,USD
|
| 18 |
+
2026-08-03,NOTION LABS INC,-10.00,Chase Sapphire,Bills & Utilities,Sale,false,USD
|
| 19 |
+
2026-08-03,WHOLEFDS MKT #10234,-84.32,Chase Sapphire,Groceries,Sale,false,USD
|
| 20 |
+
2026-08-04,SQ *BLUE BOTTLE COFFEE,-4.60,Chase Sapphire,Food & Drink,Sale,false,USD
|
| 21 |
+
2026-08-05,Payment Thank You-Mobile,1200.00,Chase Sapphire,,Payment,false,USD
|
| 22 |
+
2026-08-05,SQ *BLUE BOTTLE COFFEE,-8.37,Chase Sapphire,Food & Drink,Sale,false,USD
|
| 23 |
+
2026-08-06,SHELL OIL 57442,-54.04,Chase Sapphire,Gas,Sale,false,USD
|
| 24 |
+
2026-08-07,SQ *BLUE BOTTLE COFFEE,-5.01,Chase Sapphire,Food & Drink,Sale,false,USD
|
| 25 |
+
2026-08-09,NETFLIX.COM,-15.49,Chase Sapphire,Entertainment,Sale,false,USD
|
| 26 |
+
2026-08-10,WHOLEFDS MKT #10234,-45.83,Chase Sapphire,Groceries,Sale,false,USD
|
| 27 |
+
2026-08-11,AMZN Mktp US*2K4LM0,-39.90,Chase Sapphire,Shopping,Sale,false,USD
|
| 28 |
+
2026-08-13,SHELL OIL 57442,-64.97,Chase Sapphire,Gas,Sale,false,USD
|
| 29 |
+
2026-08-14,CON ED OF NY INTELL CK,-84.20,Chase Sapphire,Bills & Utilities,Sale,false,USD
|
| 30 |
+
2026-08-16,SQ *BLUE BOTTLE COFFEE,-7.97,Chase Sapphire,Food & Drink,Sale,false,USD
|
| 31 |
+
2026-08-18,UBER *TRIP HELP.UBER.COM,-14.27,Chase Sapphire,Travel,Sale,false,USD
|
| 32 |
+
2026-08-21,VZWRLSS*APOCC VISN,-65.00,Chase Sapphire,Bills & Utilities,Sale,false,USD
|
| 33 |
+
2026-08-22,CHIPOTLE 2291,-13.16,Chase Sapphire,Food & Drink,Sale,false,USD
|
| 34 |
+
2026-08-22,CHIPOTLE 2291,-12.11,Chase Sapphire,Food & Drink,Sale,false,USD
|
| 35 |
+
2026-08-23,AMZN Mktp US*2K4LM0,-79.48,Chase Sapphire,Shopping,Sale,false,USD
|
| 36 |
+
2026-08-25,CHIPOTLE 2291,-11.01,Chase Sapphire,Food & Drink,Sale,false,USD
|
| 37 |
+
2026-08-26,SQ *BLUE BOTTLE COFFEE,-9.33,Chase Sapphire,Food & Drink,Sale,false,USD
|
| 38 |
+
2026-08-28,AMZN Mktp US*2K4LM0,-37.00,Chase Sapphire,Shopping,Sale,false,USD
|
| 39 |
+
2026-09-02,EQUINOX 0412 NEW YORK,-230.00,Chase Sapphire,Health & Wellness,Sale,false,USD
|
| 40 |
+
2026-09-03,NOTION LABS INC,-10.00,Chase Sapphire,Bills & Utilities,Sale,false,USD
|
| 41 |
+
2026-09-03,WHOLEFDS MKT #10234,-76.62,Chase Sapphire,Groceries,Sale,false,USD
|
| 42 |
+
2026-09-05,Payment Thank You-Mobile,1200.00,Chase Sapphire,,Payment,false,USD
|
| 43 |
+
2026-09-06,AMZN Mktp US*2K4LM0,-76.68,Chase Sapphire,Shopping,Sale,false,USD
|
| 44 |
+
2026-09-06,WHOLEFDS MKT #10234,-119.49,Chase Sapphire,Groceries,Sale,false,USD
|
| 45 |
+
2026-09-06,WHOLEFDS MKT #10234,38.31,Chase Sapphire,Groceries,Return,false,USD
|
| 46 |
+
2026-09-07,UBER *TRIP HELP.UBER.COM,-17.28,Chase Sapphire,Travel,Sale,false,USD
|
| 47 |
+
2026-09-08,SQ *BLUE BOTTLE COFFEE,-9.18,Chase Sapphire,Food & Drink,Sale,false,USD
|
| 48 |
+
2026-09-08,UBER *TRIP HELP.UBER.COM,-24.57,Chase Sapphire,Travel,Sale,false,USD
|
| 49 |
+
2026-09-08,UBER *TRIP HELP.UBER.COM,-21.55,Chase Sapphire,Travel,Sale,false,USD
|
| 50 |
+
2026-09-09,NETFLIX.COM,-15.49,Chase Sapphire,Entertainment,Sale,false,USD
|
| 51 |
+
2026-09-10,SQ *BLUE BOTTLE COFFEE,-7.77,Chase Sapphire,Food & Drink,Sale,false,USD
|
| 52 |
+
2026-09-12,SHELL OIL 57442,-38.06,Chase Sapphire,Gas,Sale,false,USD
|
| 53 |
+
2026-09-14,CON ED OF NY INTELL CK,-84.20,Chase Sapphire,Bills & Utilities,Sale,false,USD
|
| 54 |
+
2026-09-16,SQ *BLUE BOTTLE COFFEE,-6.29,Chase Sapphire,Food & Drink,Sale,false,USD
|
| 55 |
+
2026-09-16,WHOLEFDS MKT #10234,-42.57,Chase Sapphire,Groceries,Sale,false,USD
|
| 56 |
+
2026-09-18,CHIPOTLE 2291,-22.70,Chase Sapphire,Food & Drink,Sale,false,USD
|
| 57 |
+
2026-09-19,SHELL OIL 57442,-58.59,Chase Sapphire,Gas,Sale,false,USD
|
| 58 |
+
2026-09-21,SQ *BLUE BOTTLE COFFEE,-11.47,Chase Sapphire,Food & Drink,Sale,false,USD
|
| 59 |
+
2026-09-21,SQ *BLUE BOTTLE COFFEE,-9.26,Chase Sapphire,Food & Drink,Sale,false,USD
|
| 60 |
+
2026-09-21,VZWRLSS*APOCC VISN,-65.00,Chase Sapphire,Bills & Utilities,Sale,false,USD
|
| 61 |
+
2026-09-22,SHELL OIL 57442,-30.14,Chase Sapphire,Gas,Sale,false,USD
|
| 62 |
+
2026-09-22,WHOLEFDS MKT #10234,-82.31,Chase Sapphire,Groceries,Sale,false,USD
|
| 63 |
+
2026-09-23,UBER *TRIP HELP.UBER.COM,-9.37,Chase Sapphire,Travel,Sale,false,USD
|
| 64 |
+
2026-10-01,AMZN Mktp US*2K4LM0,-67.58,Chase Sapphire,Shopping,Sale,false,USD
|
| 65 |
+
2026-10-02,EQUINOX 0412 NEW YORK,-230.00,Chase Sapphire,Health & Wellness,Sale,false,USD
|
| 66 |
+
2026-10-02,SQ *BLUE BOTTLE COFFEE,-6.00,Chase Sapphire,Food & Drink,Sale,false,USD
|
| 67 |
+
2026-10-03,NOTION LABS INC,-12.00,Chase Sapphire,Bills & Utilities,Sale,false,USD
|
| 68 |
+
2026-10-03,WHOLEFDS MKT #10234,-63.60,Chase Sapphire,Groceries,Sale,false,USD
|
| 69 |
+
2026-10-04,SQ *BLUE BOTTLE COFFEE,-11.29,Chase Sapphire,Food & Drink,Sale,false,USD
|
| 70 |
+
2026-10-05,Payment Thank You-Mobile,1200.00,Chase Sapphire,,Payment,false,USD
|
| 71 |
+
2026-10-05,SQ *BLUE BOTTLE COFFEE,-11.50,Chase Sapphire,Food & Drink,Sale,false,USD
|
| 72 |
+
2026-10-07,UBER *TRIP HELP.UBER.COM,-9.06,Chase Sapphire,Travel,Sale,false,USD
|
| 73 |
+
2026-10-07,WHOLEFDS MKT #10234,-99.14,Chase Sapphire,Groceries,Sale,false,USD
|
| 74 |
+
2026-10-08,AMZN Mktp US*2K4LM0,-26.68,Chase Sapphire,Shopping,Sale,false,USD
|
| 75 |
+
2026-10-08,CHIPOTLE 2291,-16.24,Chase Sapphire,Food & Drink,Sale,false,USD
|
| 76 |
+
2026-10-08,SQ *BLUE BOTTLE COFFEE,-5.24,Chase Sapphire,Food & Drink,Sale,false,USD
|
| 77 |
+
2026-10-09,NETFLIX.COM,-15.49,Chase Sapphire,Entertainment,Sale,false,USD
|
| 78 |
+
2026-10-09,SHELL OIL 57442,-37.64,Chase Sapphire,Gas,Sale,false,USD
|
| 79 |
+
2026-10-11,SHELL OIL 57442,-38.54,Chase Sapphire,Gas,Sale,false,USD
|
| 80 |
+
2026-10-12,SQ *BLUE BOTTLE COFFEE,-8.97,Chase Sapphire,Food & Drink,Sale,false,USD
|
| 81 |
+
2026-10-12,SQ *BLUE BOTTLE COFFEE,-5.71,Chase Sapphire,Food & Drink,Sale,false,USD
|
| 82 |
+
2026-10-13,UBER *TRIP HELP.UBER.COM,-26.00,Chase Sapphire,Travel,Sale,false,USD
|
| 83 |
+
2026-10-13,UBER *TRIP HELP.UBER.COM,-20.27,Chase Sapphire,Travel,Sale,false,USD
|
| 84 |
+
2026-10-13,UBER *TRIP HELP.UBER.COM,-9.62,Chase Sapphire,Travel,Sale,false,USD
|
| 85 |
+
2026-10-14,CON ED OF NY INTELL CK,-84.20,Chase Sapphire,Bills & Utilities,Sale,false,USD
|
households/public/p-classic/source/ledger.csv
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
date,description,amount,account,category,group
|
| 2 |
+
2026-06-01,ACME LABS PAYROLL DIRECT DEP,4310.00,Checking,Wages,Income
|
| 3 |
+
2026-06-02,HUDSON PROPERTY MGMT RENT,-2150.00,Checking,Rent/Mortgage,Housing
|
| 4 |
+
2026-06-02,TRADER JOE'S #512,-32.95,Visa 4421,Groceries,Food & Dining
|
| 5 |
+
2026-06-02,UBER EATS,-82.40,Visa 4421,Restaurants & Bars,Food & Dining
|
| 6 |
+
2026-06-03,AMZN Mktp US*2K7HJ,-114.34,Visa 4421,Other Shopping,Shopping
|
| 7 |
+
2026-06-03,COSTCO WHSE #48,-35.80,Visa 4421,Groceries,Food & Dining
|
| 8 |
+
2026-06-03,UBER EATS,-11.30,Visa 4421,Restaurants & Bars,Food & Dining
|
| 9 |
+
2026-06-04,UBER EATS,-33.45,Visa 4421,Restaurants & Bars,Food & Dining
|
| 10 |
+
2026-06-05,Netflix.com,-15.49,Visa 4421,Streaming,Entertainment
|
| 11 |
+
2026-06-06,CVS PHARMACY #9012,-47.37,Visa 4421,Pharmacy,Healthcare
|
| 12 |
+
2026-06-07,STARBUCKS 2291,-66.56,Visa 4421,Coffee Shops,Food & Dining
|
| 13 |
+
2026-06-07,Spotify USA,-11.99,Visa 4421,Streaming,Entertainment
|
| 14 |
+
2026-06-08,UBER TRIP,-44.04,Visa 4421,Ride Share,Transportation
|
| 15 |
+
2026-06-09,APPLE.COM/BILL,-2.99,Visa 4421,Other,
|
| 16 |
+
2026-06-10,STARBUCKS 2291,-18.84,Visa 4421,Coffee Shops,Food & Dining
|
| 17 |
+
2026-06-11,COMCAST XFINITY,-79.00,Checking,Internet & Cable,Bills & Utilities
|
| 18 |
+
2026-06-12,PG&E ELECTRIC,-85.91,Checking,Gas & Electric,Bills & Utilities
|
| 19 |
+
2026-06-12,SQ *BLUE BOTTLE COFFEE,-54.75,Visa 4421,Coffee Shops,Food & Dining
|
| 20 |
+
2026-06-13,SQ *BLUE BOTTLE COFFEE,-92.89,Visa 4421,Coffee Shops,Food & Dining
|
| 21 |
+
2026-06-14,COSTCO WHSE #48,-37.22,Visa 4421,Groceries,Food & Dining
|
| 22 |
+
2026-06-14,EQUINOX GYM,-185.00,Visa 4421,Gym & Fitness,Personal Care
|
| 23 |
+
2026-06-14,SHELL OIL 57442,-37.40,Visa 4421,Gas & Fuel,Transportation
|
| 24 |
+
2026-06-15,ACME LABS PAYROLL DIRECT DEP,4310.00,Checking,Wages,Income
|
| 25 |
+
2026-06-15,SHELL OIL 57442,-27.29,Visa 4421,Gas & Fuel,Transportation
|
| 26 |
+
2026-06-17,AMAZON.COM*Q9TT,-185.53,Visa 4421,Other Shopping,Shopping
|
| 27 |
+
2026-06-18,VENMO PAYMENT,-30.56,Checking,Other Transfer,Transfers
|
| 28 |
+
2026-06-18,WHOLE FOODS MARKET,-76.27,Visa 4421,Groceries,Food & Dining
|
| 29 |
+
2026-06-19,UBER EATS,-62.86,Visa 4421,Restaurants & Bars,Food & Dining
|
| 30 |
+
2026-06-19,WHOLE FOODS MARKET,-153.06,Visa 4421,Groceries,Food & Dining
|
| 31 |
+
2026-06-20,TRANSFER TO SAVINGS,-600.00,Checking,Other Transfer,Transfers
|
| 32 |
+
2026-06-21,WHOLE FOODS MARKET,-104.18,Visa 4421,Groceries,Food & Dining
|
| 33 |
+
2026-06-21,WHOLE FOODS MARKET,-37.56,Visa 4421,Groceries,Food & Dining
|
| 34 |
+
2026-06-24,AMAZON.COM*Q9TT,-70.44,Visa 4421,Other Shopping,Shopping
|
| 35 |
+
2026-06-26,LYFT RIDE,-51.64,Visa 4421,Ride Share,Transportation
|
| 36 |
+
2026-06-27,TST* SUSHI NAKAZAWA,-22.08,Visa 4421,Restaurants & Bars,Food & Dining
|
| 37 |
+
2026-07-01,ACME LABS PAYROLL DIRECT DEP,4310.00,Checking,Wages,Income
|
| 38 |
+
2026-07-01,TARGET 00012,-96.11,Visa 4421,Other Shopping,Shopping
|
| 39 |
+
2026-07-02,HUDSON PROPERTY MGMT RENT,-2150.00,Checking,Rent/Mortgage,Housing
|
| 40 |
+
2026-07-02,WHOLE FOODS MARKET,-128.92,Visa 4421,Groceries,Food & Dining
|
| 41 |
+
2026-07-03,WHOLE FOODS MARKET,-124.51,Visa 4421,Groceries,Food & Dining
|
| 42 |
+
2026-07-04,STARBUCKS 2291,-11.25,Visa 4421,Coffee Shops,Food & Dining
|
| 43 |
+
2026-07-05,Netflix.com,-15.49,Visa 4421,Streaming,Entertainment
|
| 44 |
+
2026-07-05,STARBUCKS 2291,-82.89,Visa 4421,Coffee Shops,Food & Dining
|
| 45 |
+
2026-07-05,UBER TRIP,-19.75,Visa 4421,Ride Share,Transportation
|
| 46 |
+
2026-07-07,Spotify USA,-11.99,Visa 4421,Streaming,Entertainment
|
| 47 |
+
2026-07-08,LYFT RIDE,-9.74,Visa 4421,Ride Share,Transportation
|
| 48 |
+
2026-07-08,STARBUCKS 2291,-40.79,Visa 4421,Coffee Shops,Food & Dining
|
| 49 |
+
2026-07-09,APPLE.COM/BILL,-2.99,Visa 4421,Other,
|
| 50 |
+
2026-07-09,COSTCO WHSE #48,-120.01,Visa 4421,Groceries,Food & Dining
|
| 51 |
+
2026-07-09,TST* SUSHI NAKAZAWA,-42.96,Visa 4421,Restaurants & Bars,Food & Dining
|
| 52 |
+
2026-07-10,COSTCO WHSE #48,-65.57,Visa 4421,Groceries,Food & Dining
|
| 53 |
+
2026-07-11,COMCAST XFINITY,-79.00,Checking,Internet & Cable,Bills & Utilities
|
| 54 |
+
2026-07-12,CHEVRON 0091,-67.42,Visa 4421,Gas & Fuel,Transportation
|
| 55 |
+
2026-07-12,COSTCO WHSE #48,-104.55,Visa 4421,Groceries,Food & Dining
|
| 56 |
+
2026-07-12,IKEA EMERYVILLE,-200.81,Visa 4421,Home Goods,Shopping
|
| 57 |
+
2026-07-12,PG&E ELECTRIC,-72.16,Checking,Gas & Electric,Bills & Utilities
|
| 58 |
+
2026-07-13,TST* SUSHI NAKAZAWA,-36.88,Visa 4421,Restaurants & Bars,Food & Dining
|
| 59 |
+
2026-07-14,DELTA AIR LINES,-684.20,Visa 4421,Flights,Travel
|
| 60 |
+
2026-07-14,EQUINOX GYM,-185.00,Visa 4421,Gym & Fitness,Personal Care
|
| 61 |
+
2026-07-15,ACME LABS PAYROLL DIRECT DEP,4310.00,Checking,Wages,Income
|
| 62 |
+
2026-07-15,DOORDASH*CHIPOTLE,-20.96,Visa 4421,Restaurants & Bars,Food & Dining
|
| 63 |
+
2026-07-15,STARBUCKS 2291,-54.90,Visa 4421,Coffee Shops,Food & Dining
|
| 64 |
+
2026-07-15,WHOLE FOODS MARKET,-138.88,Visa 4421,Groceries,Food & Dining
|
| 65 |
+
2026-07-18,VENMO PAYMENT,-54.23,Checking,Other Transfer,Transfers
|
| 66 |
+
2026-07-19,SAFEWAY 1122,-72.90,Visa 4421,Groceries,Food & Dining
|
| 67 |
+
2026-07-20,TRANSFER TO SAVINGS,-600.00,Checking,Other Transfer,Transfers
|
| 68 |
+
2026-07-23,AMZN Mktp US*2K7HJ,-103.50,Visa 4421,Other Shopping,Shopping
|
| 69 |
+
2026-07-25,DOORDASH*CHIPOTLE,-17.51,Visa 4421,Restaurants & Bars,Food & Dining
|
| 70 |
+
2026-07-27,LYFT RIDE,-25.03,Visa 4421,Ride Share,Transportation
|
| 71 |
+
2026-07-28,CVS PHARMACY #9012,-48.56,Visa 4421,Pharmacy,Healthcare
|
| 72 |
+
2026-07-28,STARBUCKS 2291,-13.17,Visa 4421,Coffee Shops,Food & Dining
|
| 73 |
+
2026-08-01,ACME LABS PAYROLL DIRECT DEP,4310.00,Checking,Wages,Income
|
| 74 |
+
2026-08-01,TST* THE FRENCH LAUNDRY,-90.64,Visa 4421,Restaurants & Bars,Food & Dining
|
| 75 |
+
2026-08-02,HUDSON PROPERTY MGMT RENT,-2150.00,Checking,Rent/Mortgage,Housing
|
| 76 |
+
2026-08-02,TRADER JOE'S #512,-36.89,Visa 4421,Groceries,Food & Dining
|
| 77 |
+
2026-08-03,TST* THE FRENCH LAUNDRY,-15.09,Visa 4421,Restaurants & Bars,Food & Dining
|
| 78 |
+
2026-08-04,COSTCO WHSE #48,-111.73,Visa 4421,Groceries,Food & Dining
|
| 79 |
+
2026-08-04,STARBUCKS 2291,-94.39,Visa 4421,Coffee Shops,Food & Dining
|
| 80 |
+
2026-08-05,Netflix.com,-15.49,Visa 4421,Streaming,Entertainment
|
| 81 |
+
2026-08-07,COSTCO WHSE #48,-49.42,Visa 4421,Groceries,Food & Dining
|
| 82 |
+
2026-08-07,Spotify USA,-11.99,Visa 4421,Streaming,Entertainment
|
| 83 |
+
2026-08-07,UBER EATS,-39.48,Visa 4421,Restaurants & Bars,Food & Dining
|
| 84 |
+
2026-08-09,APPLE.COM/BILL,-2.99,Visa 4421,Other,
|
| 85 |
+
2026-08-09,SHELL OIL 57442,-64.40,Visa 4421,Gas & Fuel,Transportation
|
| 86 |
+
2026-08-10,UBER TRIP,-51.47,Visa 4421,Ride Share,Transportation
|
| 87 |
+
2026-08-11,COMCAST XFINITY,-79.00,Checking,Internet & Cable,Bills & Utilities
|
| 88 |
+
2026-08-11,TST* SUSHI NAKAZAWA,-29.56,Visa 4421,Restaurants & Bars,Food & Dining
|
| 89 |
+
2026-08-11,WHOLE FOODS MARKET,-41.51,Visa 4421,Groceries,Food & Dining
|
| 90 |
+
2026-08-12,PG&E ELECTRIC,-129.96,Checking,Gas & Electric,Bills & Utilities
|
| 91 |
+
2026-08-12,TARGET 00012,-118.39,Visa 4421,Other Shopping,Shopping
|
| 92 |
+
2026-08-12,WHOLE FOODS MARKET,-37.28,Visa 4421,Groceries,Food & Dining
|
| 93 |
+
2026-08-13,COSTCO WHSE #48,-80.67,Visa 4421,Groceries,Food & Dining
|
| 94 |
+
2026-08-14,EQUINOX GYM,-185.00,Visa 4421,Gym & Fitness,Personal Care
|
| 95 |
+
2026-08-15,ACME LABS PAYROLL DIRECT DEP,4310.00,Checking,Wages,Income
|
| 96 |
+
2026-08-15,STARBUCKS 2291,-49.06,Visa 4421,Coffee Shops,Food & Dining
|
| 97 |
+
2026-08-17,SHELL OIL 57442,-17.94,Visa 4421,Gas & Fuel,Transportation
|
| 98 |
+
2026-08-18,UBER TRIP,-55.25,Visa 4421,Ride Share,Transportation
|
| 99 |
+
2026-08-18,VENMO PAYMENT,-75.85,Checking,Other Transfer,Transfers
|
| 100 |
+
2026-08-19,TRADER JOE'S #512,-98.83,Visa 4421,Groceries,Food & Dining
|
| 101 |
+
2026-08-20,DOORDASH*CHIPOTLE,-48.20,Visa 4421,Restaurants & Bars,Food & Dining
|
| 102 |
+
2026-08-20,TARGET 00012,-171.99,Visa 4421,Other Shopping,Shopping
|
| 103 |
+
2026-08-20,TRANSFER TO SAVINGS,-600.00,Checking,Other Transfer,Transfers
|
| 104 |
+
2026-08-21,DOORDASH*CHIPOTLE,-91.04,Visa 4421,Restaurants & Bars,Food & Dining
|
| 105 |
+
2026-08-22,KAISER PERMANENTE COPAY,-45.00,Visa 4421,Doctor,Healthcare
|
| 106 |
+
2026-08-25,IKEA EMERYVILLE,-138.74,Visa 4421,Home Goods,Shopping
|
| 107 |
+
2026-08-27,CVS PHARMACY #9012,-28.84,Visa 4421,Pharmacy,Healthcare
|
| 108 |
+
2026-08-27,TST* SUSHI NAKAZAWA,-20.37,Visa 4421,Restaurants & Bars,Food & Dining
|
| 109 |
+
2026-09-01,ACME LABS PAYROLL DIRECT DEP,4310.00,Checking,Wages,Income
|
| 110 |
+
2026-09-01,SAFEWAY 1122,-90.34,Visa 4421,Groceries,Food & Dining
|
| 111 |
+
2026-09-02,HUDSON PROPERTY MGMT RENT,-2150.00,Checking,Rent/Mortgage,Housing
|
| 112 |
+
2026-09-03,TST* SUSHI NAKAZAWA,-16.67,Visa 4421,Restaurants & Bars,Food & Dining
|
| 113 |
+
2026-09-05,AMAZON.COM*Q9TT,-207.36,Visa 4421,Other Shopping,Shopping
|
| 114 |
+
2026-09-05,CHEVRON 0091,-49.09,Visa 4421,Gas & Fuel,Transportation
|
| 115 |
+
2026-09-05,Netflix.com,-15.49,Visa 4421,Streaming,Entertainment
|
| 116 |
+
2026-09-05,UBER TRIP,-9.87,Visa 4421,Ride Share,Transportation
|
| 117 |
+
2026-09-06,TST* THE FRENCH LAUNDRY,-8.45,Visa 4421,Restaurants & Bars,Food & Dining
|
| 118 |
+
2026-09-07,COSTCO WHSE #48,-110.38,Visa 4421,Groceries,Food & Dining
|
| 119 |
+
2026-09-07,CVS PHARMACY #9012,-23.23,Visa 4421,Pharmacy,Healthcare
|
| 120 |
+
2026-09-07,SAFEWAY 1122,-87.03,Visa 4421,Groceries,Food & Dining
|
| 121 |
+
2026-09-07,Spotify USA,-11.99,Visa 4421,Streaming,Entertainment
|
| 122 |
+
2026-09-07,TARGET 00012,-19.49,Visa 4421,Other Shopping,Shopping
|
| 123 |
+
2026-09-08,COSTCO WHSE #48,-53.97,Visa 4421,Groceries,Food & Dining
|
| 124 |
+
2026-09-09,APPLE.COM/BILL,-2.99,Visa 4421,Other,
|
| 125 |
+
2026-09-11,COMCAST XFINITY,-79.00,Checking,Internet & Cable,Bills & Utilities
|
| 126 |
+
2026-09-12,LYFT RIDE,-42.47,Visa 4421,Ride Share,Transportation
|
| 127 |
+
2026-09-12,PG&E ELECTRIC,-124.27,Checking,Gas & Electric,Bills & Utilities
|
| 128 |
+
2026-09-12,WHOLE FOODS MARKET,-57.10,Visa 4421,Groceries,Food & Dining
|
| 129 |
+
2026-09-13,TST* SUSHI NAKAZAWA,-72.76,Visa 4421,Restaurants & Bars,Food & Dining
|
| 130 |
+
2026-09-14,EQUINOX GYM,-185.00,Visa 4421,Gym & Fitness,Personal Care
|
| 131 |
+
2026-09-15,ACME LABS PAYROLL DIRECT DEP,4310.00,Checking,Wages,Income
|
| 132 |
+
2026-09-16,SAFEWAY 1122,-124.49,Visa 4421,Groceries,Food & Dining
|
| 133 |
+
2026-09-16,TST* THE FRENCH LAUNDRY,-44.62,Visa 4421,Restaurants & Bars,Food & Dining
|
| 134 |
+
2026-09-18,VENMO PAYMENT,-33.99,Checking,Other Transfer,Transfers
|
| 135 |
+
2026-09-19,CHEVRON 0091,-58.20,Visa 4421,Gas & Fuel,Transportation
|
| 136 |
+
2026-09-20,SQ *BLUE BOTTLE COFFEE,-48.67,Visa 4421,Coffee Shops,Food & Dining
|
| 137 |
+
2026-09-20,TRANSFER TO SAVINGS,-600.00,Checking,Other Transfer,Transfers
|
| 138 |
+
2026-09-21,DOORDASH*CHIPOTLE,-13.72,Visa 4421,Restaurants & Bars,Food & Dining
|
| 139 |
+
2026-09-21,DOORDASH*CHIPOTLE,-77.17,Visa 4421,Restaurants & Bars,Food & Dining
|
| 140 |
+
2026-09-24,AMZN Mktp US*2K7HJ,-117.21,Visa 4421,Other Shopping,Shopping
|
| 141 |
+
2026-09-24,SAFEWAY 1122,-154.06,Visa 4421,Groceries,Food & Dining
|
| 142 |
+
2026-09-24,SQ *BLUE BOTTLE COFFEE,-70.51,Visa 4421,Coffee Shops,Food & Dining
|
| 143 |
+
2026-09-24,STARBUCKS 2291,-47.22,Visa 4421,Coffee Shops,Food & Dining
|
households/public/p-classic/truth/ledger.csv
ADDED
|
@@ -0,0 +1,143 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
date,merchant,amount,account,category,group,currency,kind,pending
|
| 2 |
+
2026-06-01,ACME LABS PAYROLL DIRECT DEP,4310.00,Checking,Wages,Income,USD,income,false
|
| 3 |
+
2026-06-02,HUDSON PROPERTY MGMT RENT,-2150.00,Checking,Rent/Mortgage,Housing,USD,rent,false
|
| 4 |
+
2026-06-02,Trader Joe's,-32.95,Visa 4421,Groceries,Food & Dining,USD,purchase,false
|
| 5 |
+
2026-06-02,Uber Eats,-82.40,Visa 4421,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 6 |
+
2026-06-03,Amazon,-114.34,Visa 4421,Other Shopping,Shopping,USD,purchase,false
|
| 7 |
+
2026-06-03,Costco,-35.80,Visa 4421,Groceries,Food & Dining,USD,purchase,false
|
| 8 |
+
2026-06-03,Uber Eats,-11.30,Visa 4421,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 9 |
+
2026-06-04,Uber Eats,-33.45,Visa 4421,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 10 |
+
2026-06-05,Netflix,-15.49,Visa 4421,Streaming,Entertainment,USD,purchase,false
|
| 11 |
+
2026-06-06,CVS,-47.37,Visa 4421,Pharmacy,Healthcare,USD,purchase,false
|
| 12 |
+
2026-06-07,Spotify,-11.99,Visa 4421,Streaming,Entertainment,USD,purchase,false
|
| 13 |
+
2026-06-07,Starbucks,-66.56,Visa 4421,Coffee Shops,Food & Dining,USD,purchase,false
|
| 14 |
+
2026-06-08,Uber,-44.04,Visa 4421,Ride Share,Transportation,USD,purchase,false
|
| 15 |
+
2026-06-09,APPLE.COM/BILL,-2.99,Visa 4421,Other,Other,USD,purchase,false
|
| 16 |
+
2026-06-10,Starbucks,-18.84,Visa 4421,Coffee Shops,Food & Dining,USD,purchase,false
|
| 17 |
+
2026-06-11,COMCAST XFINITY,-79.00,Checking,Internet & Cable,Bills & Utilities,USD,purchase,false
|
| 18 |
+
2026-06-12,PG&E ELECTRIC,-85.91,Checking,Gas & Electric,Bills & Utilities,USD,purchase,false
|
| 19 |
+
2026-06-12,Blue Bottle,-54.75,Visa 4421,Coffee Shops,Food & Dining,USD,purchase,false
|
| 20 |
+
2026-06-13,Blue Bottle,-92.89,Visa 4421,Coffee Shops,Food & Dining,USD,purchase,false
|
| 21 |
+
2026-06-14,Costco,-37.22,Visa 4421,Groceries,Food & Dining,USD,purchase,false
|
| 22 |
+
2026-06-14,Equinox,-185.00,Visa 4421,Gym & Fitness,Personal Care,USD,purchase,false
|
| 23 |
+
2026-06-14,Shell,-37.40,Visa 4421,Gas & Fuel,Transportation,USD,purchase,false
|
| 24 |
+
2026-06-15,ACME LABS PAYROLL DIRECT DEP,4310.00,Checking,Wages,Income,USD,income,false
|
| 25 |
+
2026-06-15,Shell,-27.29,Visa 4421,Gas & Fuel,Transportation,USD,purchase,false
|
| 26 |
+
2026-06-17,Amazon,-185.53,Visa 4421,Other Shopping,Shopping,USD,purchase,false
|
| 27 |
+
2026-06-18,VENMO PAYMENT,-30.56,Checking,Other Transfer,Transfers,USD,transfer,false
|
| 28 |
+
2026-06-18,Whole Foods,-76.27,Visa 4421,Groceries,Food & Dining,USD,purchase,false
|
| 29 |
+
2026-06-19,Uber Eats,-62.86,Visa 4421,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 30 |
+
2026-06-19,Whole Foods,-153.06,Visa 4421,Groceries,Food & Dining,USD,purchase,false
|
| 31 |
+
2026-06-20,TRANSFER TO SAVINGS,-600.00,Checking,Other Transfer,Transfers,USD,transfer,false
|
| 32 |
+
2026-06-21,Whole Foods,-104.18,Visa 4421,Groceries,Food & Dining,USD,purchase,false
|
| 33 |
+
2026-06-21,Whole Foods,-37.56,Visa 4421,Groceries,Food & Dining,USD,purchase,false
|
| 34 |
+
2026-06-24,Amazon,-70.44,Visa 4421,Other Shopping,Shopping,USD,purchase,false
|
| 35 |
+
2026-06-26,Lyft,-51.64,Visa 4421,Ride Share,Transportation,USD,purchase,false
|
| 36 |
+
2026-06-27,Sushi Nakazawa,-22.08,Visa 4421,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 37 |
+
2026-07-01,ACME LABS PAYROLL DIRECT DEP,4310.00,Checking,Wages,Income,USD,income,false
|
| 38 |
+
2026-07-01,Target,-96.11,Visa 4421,Other Shopping,Shopping,USD,purchase,false
|
| 39 |
+
2026-07-02,HUDSON PROPERTY MGMT RENT,-2150.00,Checking,Rent/Mortgage,Housing,USD,rent,false
|
| 40 |
+
2026-07-02,Whole Foods,-128.92,Visa 4421,Groceries,Food & Dining,USD,purchase,false
|
| 41 |
+
2026-07-03,Whole Foods,-124.51,Visa 4421,Groceries,Food & Dining,USD,purchase,false
|
| 42 |
+
2026-07-04,Starbucks,-11.25,Visa 4421,Coffee Shops,Food & Dining,USD,purchase,false
|
| 43 |
+
2026-07-05,Netflix,-15.49,Visa 4421,Streaming,Entertainment,USD,purchase,false
|
| 44 |
+
2026-07-05,Starbucks,-82.89,Visa 4421,Coffee Shops,Food & Dining,USD,purchase,false
|
| 45 |
+
2026-07-05,Uber,-19.75,Visa 4421,Ride Share,Transportation,USD,purchase,false
|
| 46 |
+
2026-07-07,Spotify,-11.99,Visa 4421,Streaming,Entertainment,USD,purchase,false
|
| 47 |
+
2026-07-08,Lyft,-9.74,Visa 4421,Ride Share,Transportation,USD,purchase,false
|
| 48 |
+
2026-07-08,Starbucks,-40.79,Visa 4421,Coffee Shops,Food & Dining,USD,purchase,false
|
| 49 |
+
2026-07-09,APPLE.COM/BILL,-2.99,Visa 4421,Other,Other,USD,purchase,false
|
| 50 |
+
2026-07-09,Costco,-120.01,Visa 4421,Groceries,Food & Dining,USD,purchase,false
|
| 51 |
+
2026-07-09,Sushi Nakazawa,-42.96,Visa 4421,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 52 |
+
2026-07-10,Costco,-65.57,Visa 4421,Groceries,Food & Dining,USD,purchase,false
|
| 53 |
+
2026-07-11,COMCAST XFINITY,-79.00,Checking,Internet & Cable,Bills & Utilities,USD,purchase,false
|
| 54 |
+
2026-07-12,PG&E ELECTRIC,-72.16,Checking,Gas & Electric,Bills & Utilities,USD,purchase,false
|
| 55 |
+
2026-07-12,Chevron,-67.42,Visa 4421,Gas & Fuel,Transportation,USD,purchase,false
|
| 56 |
+
2026-07-12,Costco,-104.55,Visa 4421,Groceries,Food & Dining,USD,purchase,false
|
| 57 |
+
2026-07-12,IKEA,-200.81,Visa 4421,Home Goods,Shopping,USD,purchase,false
|
| 58 |
+
2026-07-13,Sushi Nakazawa,-36.88,Visa 4421,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 59 |
+
2026-07-14,DELTA AIR LINES,-684.20,Visa 4421,Flights,Travel,USD,purchase,false
|
| 60 |
+
2026-07-14,Equinox,-185.00,Visa 4421,Gym & Fitness,Personal Care,USD,purchase,false
|
| 61 |
+
2026-07-15,ACME LABS PAYROLL DIRECT DEP,4310.00,Checking,Wages,Income,USD,income,false
|
| 62 |
+
2026-07-15,DoorDash,-20.96,Visa 4421,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 63 |
+
2026-07-15,Starbucks,-54.90,Visa 4421,Coffee Shops,Food & Dining,USD,purchase,false
|
| 64 |
+
2026-07-15,Whole Foods,-138.88,Visa 4421,Groceries,Food & Dining,USD,purchase,false
|
| 65 |
+
2026-07-18,VENMO PAYMENT,-54.23,Checking,Other Transfer,Transfers,USD,transfer,false
|
| 66 |
+
2026-07-19,Safeway,-72.90,Visa 4421,Groceries,Food & Dining,USD,purchase,false
|
| 67 |
+
2026-07-20,TRANSFER TO SAVINGS,-600.00,Checking,Other Transfer,Transfers,USD,transfer,false
|
| 68 |
+
2026-07-23,Amazon,-103.50,Visa 4421,Other Shopping,Shopping,USD,purchase,false
|
| 69 |
+
2026-07-25,DoorDash,-17.51,Visa 4421,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 70 |
+
2026-07-27,Lyft,-25.03,Visa 4421,Ride Share,Transportation,USD,purchase,false
|
| 71 |
+
2026-07-28,CVS,-48.56,Visa 4421,Pharmacy,Healthcare,USD,purchase,false
|
| 72 |
+
2026-07-28,Starbucks,-13.17,Visa 4421,Coffee Shops,Food & Dining,USD,purchase,false
|
| 73 |
+
2026-08-01,ACME LABS PAYROLL DIRECT DEP,4310.00,Checking,Wages,Income,USD,income,false
|
| 74 |
+
2026-08-01,The French Laundry,-90.64,Visa 4421,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 75 |
+
2026-08-02,HUDSON PROPERTY MGMT RENT,-2150.00,Checking,Rent/Mortgage,Housing,USD,rent,false
|
| 76 |
+
2026-08-02,Trader Joe's,-36.89,Visa 4421,Groceries,Food & Dining,USD,purchase,false
|
| 77 |
+
2026-08-03,The French Laundry,-15.09,Visa 4421,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 78 |
+
2026-08-04,Costco,-111.73,Visa 4421,Groceries,Food & Dining,USD,purchase,false
|
| 79 |
+
2026-08-04,Starbucks,-94.39,Visa 4421,Coffee Shops,Food & Dining,USD,purchase,false
|
| 80 |
+
2026-08-05,Netflix,-15.49,Visa 4421,Streaming,Entertainment,USD,purchase,false
|
| 81 |
+
2026-08-07,Costco,-49.42,Visa 4421,Groceries,Food & Dining,USD,purchase,false
|
| 82 |
+
2026-08-07,Spotify,-11.99,Visa 4421,Streaming,Entertainment,USD,purchase,false
|
| 83 |
+
2026-08-07,Uber Eats,-39.48,Visa 4421,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 84 |
+
2026-08-09,APPLE.COM/BILL,-2.99,Visa 4421,Other,Other,USD,purchase,false
|
| 85 |
+
2026-08-09,Shell,-64.40,Visa 4421,Gas & Fuel,Transportation,USD,purchase,false
|
| 86 |
+
2026-08-10,Uber,-51.47,Visa 4421,Ride Share,Transportation,USD,purchase,false
|
| 87 |
+
2026-08-11,COMCAST XFINITY,-79.00,Checking,Internet & Cable,Bills & Utilities,USD,purchase,false
|
| 88 |
+
2026-08-11,Sushi Nakazawa,-29.56,Visa 4421,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 89 |
+
2026-08-11,Whole Foods,-41.51,Visa 4421,Groceries,Food & Dining,USD,purchase,false
|
| 90 |
+
2026-08-12,PG&E ELECTRIC,-129.96,Checking,Gas & Electric,Bills & Utilities,USD,purchase,false
|
| 91 |
+
2026-08-12,Target,-118.39,Visa 4421,Other Shopping,Shopping,USD,purchase,false
|
| 92 |
+
2026-08-12,Whole Foods,-37.28,Visa 4421,Groceries,Food & Dining,USD,purchase,false
|
| 93 |
+
2026-08-13,Costco,-80.67,Visa 4421,Groceries,Food & Dining,USD,purchase,false
|
| 94 |
+
2026-08-14,Equinox,-185.00,Visa 4421,Gym & Fitness,Personal Care,USD,purchase,false
|
| 95 |
+
2026-08-15,ACME LABS PAYROLL DIRECT DEP,4310.00,Checking,Wages,Income,USD,income,false
|
| 96 |
+
2026-08-15,Starbucks,-49.06,Visa 4421,Coffee Shops,Food & Dining,USD,purchase,false
|
| 97 |
+
2026-08-17,Shell,-17.94,Visa 4421,Gas & Fuel,Transportation,USD,purchase,false
|
| 98 |
+
2026-08-18,VENMO PAYMENT,-75.85,Checking,Other Transfer,Transfers,USD,transfer,false
|
| 99 |
+
2026-08-18,Uber,-55.25,Visa 4421,Ride Share,Transportation,USD,purchase,false
|
| 100 |
+
2026-08-19,Trader Joe's,-98.83,Visa 4421,Groceries,Food & Dining,USD,purchase,false
|
| 101 |
+
2026-08-20,TRANSFER TO SAVINGS,-600.00,Checking,Other Transfer,Transfers,USD,transfer,false
|
| 102 |
+
2026-08-20,DoorDash,-48.20,Visa 4421,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 103 |
+
2026-08-20,Target,-171.99,Visa 4421,Other Shopping,Shopping,USD,purchase,false
|
| 104 |
+
2026-08-21,DoorDash,-91.04,Visa 4421,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 105 |
+
2026-08-22,KAISER PERMANENTE COPAY,-45.00,Visa 4421,Doctor,Healthcare,USD,purchase,false
|
| 106 |
+
2026-08-25,IKEA,-138.74,Visa 4421,Home Goods,Shopping,USD,purchase,false
|
| 107 |
+
2026-08-27,CVS,-28.84,Visa 4421,Pharmacy,Healthcare,USD,purchase,false
|
| 108 |
+
2026-08-27,Sushi Nakazawa,-20.37,Visa 4421,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 109 |
+
2026-09-01,ACME LABS PAYROLL DIRECT DEP,4310.00,Checking,Wages,Income,USD,income,false
|
| 110 |
+
2026-09-01,Safeway,-90.34,Visa 4421,Groceries,Food & Dining,USD,purchase,false
|
| 111 |
+
2026-09-02,HUDSON PROPERTY MGMT RENT,-2150.00,Checking,Rent/Mortgage,Housing,USD,rent,false
|
| 112 |
+
2026-09-03,Sushi Nakazawa,-16.67,Visa 4421,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 113 |
+
2026-09-05,Amazon,-207.36,Visa 4421,Other Shopping,Shopping,USD,purchase,false
|
| 114 |
+
2026-09-05,Chevron,-49.09,Visa 4421,Gas & Fuel,Transportation,USD,purchase,false
|
| 115 |
+
2026-09-05,Netflix,-15.49,Visa 4421,Streaming,Entertainment,USD,purchase,false
|
| 116 |
+
2026-09-05,Uber,-9.87,Visa 4421,Ride Share,Transportation,USD,purchase,false
|
| 117 |
+
2026-09-06,The French Laundry,-8.45,Visa 4421,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 118 |
+
2026-09-07,Costco,-110.38,Visa 4421,Groceries,Food & Dining,USD,purchase,false
|
| 119 |
+
2026-09-07,CVS,-23.23,Visa 4421,Pharmacy,Healthcare,USD,purchase,false
|
| 120 |
+
2026-09-07,Safeway,-87.03,Visa 4421,Groceries,Food & Dining,USD,purchase,false
|
| 121 |
+
2026-09-07,Spotify,-11.99,Visa 4421,Streaming,Entertainment,USD,purchase,false
|
| 122 |
+
2026-09-07,Target,-19.49,Visa 4421,Other Shopping,Shopping,USD,purchase,false
|
| 123 |
+
2026-09-08,Costco,-53.97,Visa 4421,Groceries,Food & Dining,USD,purchase,false
|
| 124 |
+
2026-09-09,APPLE.COM/BILL,-2.99,Visa 4421,Other,Other,USD,purchase,false
|
| 125 |
+
2026-09-11,COMCAST XFINITY,-79.00,Checking,Internet & Cable,Bills & Utilities,USD,purchase,false
|
| 126 |
+
2026-09-12,PG&E ELECTRIC,-124.27,Checking,Gas & Electric,Bills & Utilities,USD,purchase,false
|
| 127 |
+
2026-09-12,Lyft,-42.47,Visa 4421,Ride Share,Transportation,USD,purchase,false
|
| 128 |
+
2026-09-12,Whole Foods,-57.10,Visa 4421,Groceries,Food & Dining,USD,purchase,false
|
| 129 |
+
2026-09-13,Sushi Nakazawa,-72.76,Visa 4421,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 130 |
+
2026-09-14,Equinox,-185.00,Visa 4421,Gym & Fitness,Personal Care,USD,purchase,false
|
| 131 |
+
2026-09-15,ACME LABS PAYROLL DIRECT DEP,4310.00,Checking,Wages,Income,USD,income,false
|
| 132 |
+
2026-09-16,Safeway,-124.49,Visa 4421,Groceries,Food & Dining,USD,purchase,false
|
| 133 |
+
2026-09-16,The French Laundry,-44.62,Visa 4421,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 134 |
+
2026-09-18,VENMO PAYMENT,-33.99,Checking,Other Transfer,Transfers,USD,transfer,false
|
| 135 |
+
2026-09-19,Chevron,-58.20,Visa 4421,Gas & Fuel,Transportation,USD,purchase,false
|
| 136 |
+
2026-09-20,TRANSFER TO SAVINGS,-600.00,Checking,Other Transfer,Transfers,USD,transfer,false
|
| 137 |
+
2026-09-20,Blue Bottle,-48.67,Visa 4421,Coffee Shops,Food & Dining,USD,purchase,false
|
| 138 |
+
2026-09-21,DoorDash,-77.17,Visa 4421,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 139 |
+
2026-09-21,DoorDash,-13.72,Visa 4421,Restaurants & Bars,Food & Dining,USD,purchase,false
|
| 140 |
+
2026-09-24,Amazon,-117.21,Visa 4421,Other Shopping,Shopping,USD,purchase,false
|
| 141 |
+
2026-09-24,Blue Bottle,-70.51,Visa 4421,Coffee Shops,Food & Dining,USD,purchase,false
|
| 142 |
+
2026-09-24,Safeway,-154.06,Visa 4421,Groceries,Food & Dining,USD,purchase,false
|
| 143 |
+
2026-09-24,Starbucks,-47.22,Visa 4421,Coffee Shops,Food & Dining,USD,purchase,false
|
households/public/p-classic/truth/merchants.json
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"Starbucks": [
|
| 3 |
+
"Starbucks",
|
| 4 |
+
"STARBUCKS"
|
| 5 |
+
],
|
| 6 |
+
"Blue Bottle": [
|
| 7 |
+
"Blue Bottle",
|
| 8 |
+
"BLUE BOTTLE"
|
| 9 |
+
],
|
| 10 |
+
"Whole Foods": [
|
| 11 |
+
"Whole Foods",
|
| 12 |
+
"WHOLE FOODS"
|
| 13 |
+
],
|
| 14 |
+
"Costco": [
|
| 15 |
+
"Costco",
|
| 16 |
+
"COSTCO"
|
| 17 |
+
],
|
| 18 |
+
"Trader Joe's": [
|
| 19 |
+
"Trader Joe's",
|
| 20 |
+
"TRADER JOE"
|
| 21 |
+
],
|
| 22 |
+
"Safeway": [
|
| 23 |
+
"Safeway",
|
| 24 |
+
"SAFEWAY"
|
| 25 |
+
],
|
| 26 |
+
"Uber Eats": [
|
| 27 |
+
"Uber Eats",
|
| 28 |
+
"UBER EATS"
|
| 29 |
+
],
|
| 30 |
+
"Uber": [
|
| 31 |
+
"Uber",
|
| 32 |
+
"UBER TRIP"
|
| 33 |
+
],
|
| 34 |
+
"Lyft": [
|
| 35 |
+
"Lyft",
|
| 36 |
+
"LYFT"
|
| 37 |
+
],
|
| 38 |
+
"DoorDash": [
|
| 39 |
+
"DoorDash",
|
| 40 |
+
"DOORDASH"
|
| 41 |
+
],
|
| 42 |
+
"Amazon": [
|
| 43 |
+
"Amazon",
|
| 44 |
+
"AMZN",
|
| 45 |
+
"AMAZON"
|
| 46 |
+
],
|
| 47 |
+
"Netflix": [
|
| 48 |
+
"Netflix",
|
| 49 |
+
"NETFLIX"
|
| 50 |
+
],
|
| 51 |
+
"Spotify": [
|
| 52 |
+
"Spotify",
|
| 53 |
+
"SPOTIFY"
|
| 54 |
+
],
|
| 55 |
+
"Target": [
|
| 56 |
+
"Target",
|
| 57 |
+
"TARGET"
|
| 58 |
+
],
|
| 59 |
+
"Shell": [
|
| 60 |
+
"Shell",
|
| 61 |
+
"SHELL OIL"
|
| 62 |
+
],
|
| 63 |
+
"Chevron": [
|
| 64 |
+
"Chevron",
|
| 65 |
+
"CHEVRON"
|
| 66 |
+
],
|
| 67 |
+
"CVS": [
|
| 68 |
+
"CVS",
|
| 69 |
+
"CVS"
|
| 70 |
+
],
|
| 71 |
+
"Equinox": [
|
| 72 |
+
"Equinox",
|
| 73 |
+
"EQUINOX"
|
| 74 |
+
],
|
| 75 |
+
"Sushi Nakazawa": [
|
| 76 |
+
"Sushi Nakazawa",
|
| 77 |
+
"SUSHI NAKAZAWA"
|
| 78 |
+
],
|
| 79 |
+
"The French Laundry": [
|
| 80 |
+
"The French Laundry",
|
| 81 |
+
"FRENCH LAUNDRY"
|
| 82 |
+
],
|
| 83 |
+
"IKEA": [
|
| 84 |
+
"IKEA",
|
| 85 |
+
"IKEA"
|
| 86 |
+
]
|
| 87 |
+
}
|