File size: 4,064 Bytes
e5e1e17 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | # Umbrello computer app
Exported by REA's `export-desktop-application` from a capture of the `umbrello` package
(capture Evidence `ev_ebffa2819a67223adce3ed669534631601016b20653d02c5dd858ce472a0aaeb`). It was checked against agentenv-framework
0.9.1431.
- `envs/umbrello/` is a computer app on the `ubuntu-24.04` base with the `reference` driver, for
`amd64` and `arm64`. It installs `umbrello` from the distribution archive, launches `sh -c cd "$HOME" 2>/dev/null; exec 'umbrello5' "$HOME"/'Documents/library.xmi'` at boot and is ready
when a window of class `umbrello` appears.
- At launch the app opens `~/Documents/library.xmi`, the seed's one document.
- Owned paths: `~/.config/umbrellorc`, `~/Documents`.
`data/get` returns their files and a typed JSON view of each; `data/reset` restores the seed.
- Seed: 2 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.
- Neither owned nor seeded, so the app starts without what it saved there: these files or folders, which changed
during the capture, `~/.config/QtProject.conf`.
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/umbrello/seed/` before publishing the bundle.
## Task `add-member-email`
`tasks/add-member-email.json` deploys the app, has the agent work through the computer from the prompt below, and grades
the outcome with `artifacts/add-member-email-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/umbrello.toml` names it, so a run of the bundle runs it.
> In Umbrello, add an attribute named email of type string to the Member class in the library model Documents/library.xmi and save it.
Checks, each of which must pass:
- `email-string`: `{"kind":"value_equals","file":"Documents/library.xmi","pointer":"/root/children/[name=uml:Model][@xmi:id=m1]/children/[name=packagedElement][@name=Logical View]/children/[name=packagedElement][@name=Member]/children/[name=ownedAttribute][@name=email]/attributes/type","value":"uMUM2QvoIZjRj"}`
- `member-three-attributes`: `{"kind":"member_count","file":"Documents/library.xmi","pointer":"/root/children/[name=uml:Model][@xmi:id=m1]/children/[name=packagedElement][@name=Logical View]/children/[name=packagedElement][@name=Member]/children","matching":"[name=ownedAttribute][@xmi:type=uml:Property]","equals":3}`
- `name-kept`: `{"kind":"value_equals","file":"Documents/library.xmi","pointer":"/root/children/[name=uml:Model][@xmi:id=m1]/children/[name=packagedElement][@name=Logical View]/children/[name=packagedElement][@name=Member]/children/[name=ownedAttribute][@name=name]/attributes/type","value":"uMUM2QvoIZjRj"}`
- `memberid-kept`: `{"kind":"value_equals","file":"Documents/library.xmi","pointer":"/root/children/[name=uml:Model][@xmi:id=m1]/children/[name=packagedElement][@name=Logical View]/children/[name=packagedElement][@name=Member]/children/[name=ownedAttribute][@name=memberId]/attributes/name","value":"memberId"}`
REA kept the task because its checks fail on the seed (`email-string`, `member-three-attributes`) 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 add-member-email --agent claude-code --model MODEL
|