earakely-scale's picture
REA computer-use environment, v0.1.0
6e1d9b1 verified
|
Raw History Blame Contribute Delete
4.03 kB

LibreOffice Impress computer app

Exported by REA's export-desktop-application from a capture of the libreoffice-impress package (capture Evidence ev_9c6143f6f98db31e1bdb8186dea84fe5585b9410c085c3b5d3eb892259495774). It was checked against agentenv-framework 0.9.1431.

  • envs/libreoffice-impress/ is a computer app on the ubuntu-24.04 base with the reference driver, for amd64 and arm64. It installs libreoffice-impress from the distribution archive, launches sh -c cd "$HOME" 2>/dev/null; exec 'libreoffice' '--impress' "$HOME"/'Documents/garden-meeting.odp' at boot and is ready when a window of class libreoffice-impress appears.
  • libreoffice-common, which owns the program the desktop entry runs, is installed with it.
  • At launch the app opens ~/Documents/garden-meeting.odp, the seed's one document.
  • Owned paths: ~/.config/libreoffice, ~/Documents. data/get returns their files and a typed JSON view of each; data/reset restores the seed.
  • Seed: 626 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.
  • Seeded as captured, though the app keeps them for its own running, so a stale one can change how it starts: caches ~/.config/libreoffice/4/cache, ~/.config/libreoffice/4/user/uno_packages/cache.
  • Left out of the seed: lock files the app holds while it runs, since a copied one can make it find its profile or document in use and keep it from starting: ~/.config/libreoffice/4/.lock.
  • 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/libreoffice-impress/seed/ before publishing the bundle.

Task change-slide-title

tasks/change-slide-title.json deploys the app, has the agent work through the computer from the prompt below, and grades the outcome with artifacts/change-slide-title-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/libreoffice-impress.toml names it, so a run of the bundle runs it.

In the presentation Documents/garden-meeting.odp, change the title of the second slide from Planting Schedule to Spring Planting Calendar, and save it.

Checks, each of which must pass:

  • new-title: {"kind":"text_equals","file":"Documents/garden-meeting.odp","pointer":"/entries/[name=content.xml]/view/root/children/[name=office:body]/children/[name=office:presentation]/children/[name=draw:page][@draw:name=Schedule]/children/[name=draw:frame][@presentation:class=title]","value":"Spring Planting Calendar"}
  • bullets-kept: {"kind":"text_equals","file":"Documents/garden-meeting.odp","pointer":"/entries/[name=content.xml]/view/root/children/[name=office:body]/children/[name=office:presentation]/children/[name=draw:page][@draw:name=Schedule]/children/[name=draw:frame][@presentation:class=outline]","value":"Tomatoes: April 14Beans: April 28Squash: May 5"}
  • three-slides: {"kind":"member_count","file":"Documents/garden-meeting.odp","pointer":"/entries/[name=content.xml]/view/root/children/[name=office:body]/children/[name=office:presentation]/children","matching":"[name=draw:page]","equals":3}

REA kept the task because its checks fail on the seed (new-title) 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 change-slide-title --agent claude-code --model MODEL