earakely-scale's picture
REA computer-use environment, v0.1.0
d9bac8c verified
|
Raw History Blame Contribute Delete
4.92 kB
# KMyMoney computer app
Exported by REA's `export-desktop-application` from a capture of the `kmymoney` package
(capture Evidence `ev_51bd484187649625dd8cd57d030bb556f828e9056ff3050c2aa26af799875781`). It was checked against agentenv-framework
0.9.1431.
- `envs/kmymoney/` is a computer app on the `ubuntu-24.04` base with the `reference` driver, for
`amd64` and `arm64`. It installs `kmymoney` from the distribution archive, launches `sh -c cd "$HOME" 2>/dev/null; exec 'kmymoney' "$HOME"/'Documents/household.kmy'` at boot and is ready
when a window of class `kmymoney` appears.
- At launch the app opens `~/Documents/household.kmy`, the seed's one document.
- Owned paths: `~/.config/kmymoney`, `~/Documents`.
`data/get` returns their files and a typed JSON view of each; `data/reset` restores the seed.
- Seed: 6 file(s) made for the task, as saved at checkpoint `seed`.
Text files and dconf keys spell the capture host's name as `localhost`, `user@host` as `user@localhost`
and the home as `/home/user`, which the computer respells to its own at boot.
Rewritten: `envs/kmymoney/seed/Documents/household.kmy`, `envs/kmymoney/seed/Documents/household.kmy.1~`.
- Neither owned nor seeded, so the app starts without what it saved there: files changed during the capture in
`~/.aqbanking`, `~/.config/QtProject.conf`, `~/.config/emaildefaults`, `~/.config/emailidentities`.
To own them, capture again naming them with `state_paths` on `start_build_capture`, or `--state-path` on `capture-desktop-application`.
- `tasks/smoke.json` deploys the app.
Run the task with `agent-env run <this folder>`, or only the deploy with `--task smoke`.
The seed was made for this task, not taken from a user's own data; read `envs/kmymoney/seed/` before publishing the bundle.
## Task `record-electric-payment`
`tasks/record-electric-payment.json` deploys the app, has the agent work through the computer from the prompt below, and grades
the outcome with `artifacts/record-electric-payment-check/verify.py`, which reads the app's `data/get` views and needs
no model. It grades once the app's files have held for 3 s, so a save the app makes on its own within that
time of the agent stopping counts; each result's `settled` is false when they were still changing 15 s after the
first read. `evals/kmymoney.toml` names it, so a run of the bundle runs it.
> In KMyMoney, record a payment of $87.45 to Riverside Electric from the Household Checking account, dated November 3, 2026, in the Utilities category, in my household finance file Documents/household.kmy, then save the file.
Checks, each of which must pass:
- `nov3-transaction`: `{"kind":"value_equals","file":"Documents/household.kmy","pointer":"/root/children/[name=TRANSACTIONS]/children/[name=TRANSACTION][@postdate=2026-11-03]/name","value":"TRANSACTION"}`
- `amount-from-checking`: `{"kind":"value_equals","file":"Documents/household.kmy","pointer":"/root/children/[name=TRANSACTIONS]/children/[name=TRANSACTION][@postdate=2026-11-03]/children/[name=SPLITS]/children/[name=SPLIT][@account=A000001]/attributes/value","value":"-1749/20"}`
- `payee-riverside-electric`: `{"kind":"value_equals","file":"Documents/household.kmy","pointer":"/root/children/[name=TRANSACTIONS]/children/[name=TRANSACTION][@postdate=2026-11-03]/children/[name=SPLITS]/children/[name=SPLIT][@account=A000001]/attributes/payee","value":"P000003"}`
- `utilities-category`: `{"kind":"value_equals","file":"Documents/household.kmy","pointer":"/root/children/[name=TRANSACTIONS]/children/[name=TRANSACTION][@postdate=2026-11-03]/children/[name=SPLITS]/children/[name=SPLIT][@account=A000011]/attributes/value","value":"1749/20"}`
- `one-transaction-added`: `{"kind":"member_count","file":"Documents/household.kmy","pointer":"/root/children/[name=TRANSACTIONS]/children","matching":"[name=TRANSACTION]","equals":5}`
- `oct20-payment-date-kept`: `{"kind":"value_equals","file":"Documents/household.kmy","pointer":"/root/children/[name=TRANSACTIONS]/children/[name=TRANSACTION][@id=T000000000000000004]/attributes/postdate","value":"2026-10-20"}`
- `oct20-payment-amount-kept`: `{"kind":"value_equals","file":"Documents/household.kmy","pointer":"/root/children/[name=TRANSACTIONS]/children/[name=TRANSACTION][@id=T000000000000000004]/children/[name=SPLITS]/children/[name=SPLIT][@account=A000001]/attributes/value","value":"-921/10"}`
REA kept the task because its checks fail on the seed (`nov3-transaction`, `amount-from-checking`, `payee-riverside-electric`, `utilities-category`, `one-transaction-added`) and all
pass on the captured end state.
To measure a solve rate, run the task k times (3 by default) with the agent and model to measure, and count the runs
whose summary line says `passed`; a run that says `failed` did not finish and is run again rather than counted:
agent-env run <this folder> --task record-electric-payment --agent claude-code --model MODEL