earakely-scale's picture
REA computer-use environment, v0.1.0
5b34050 verified
|
Raw History Blame Contribute Delete
6.2 kB

FreeCAD computer app

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

  • envs/freecad/ is a computer app on the ubuntu-24.04 base with the reference driver, for amd64. It installs freecad-python3/noble from the apt repository https://ppa.launchpadcontent.net/freecad-maintainers/freecad-stable/ubuntu (suite noble, components main), trusting apt-keys/freecad.gpg, the key that verified its release on the capture host, launches sh -c exec '/usr/bin/freecad' '-' '--single-instance' "$HOME"/'Documents/plate.FCStd' at boot and is ready when a window of class FreeCAD appears.
  • Library packages, which own the shared libraries the executable loaded on the capture host, are installed with it: libboost-filesystem1.83.0, libboost-program-options1.83.0, libbrotli1, libbsd0, libbz2-1.0, libc6, libcoin80t64, libcom-err2, libcurl3t64-gnutls, libdouble-conversion3, libexpat1, libffi8, libfmt9, libfreecad-python3-0.20, libfreetype6, libgcc-s1, libgl1, libglib2.0-0t64, libglvnd0, libglx0, libgmp10, libgnutls30t64, libgraphite2-3, libgssapi-krb5-2, libharfbuzz0b, libhogweed6t64, libicu74, libidn2-0, libk5crypto3, libkeyutils1, libkrb5-3, libkrb5support0, libldap2, libmd0, libmd4c0, libnettle8t64, libnghttp2-14, libopengl0, libp11-kit0, libpcre2-16-0, libpcre2-8-0, libpng16-16t64, libpsl5t64, libpyside2-py3-5.15t64, libpython3.12t64, libqt5core5t64, libqt5gui5t64, libqt5network5t64, libqt5printsupport5t64, libqt5qml5, libqt5svg5, libqt5widgets5t64, libqt5xml5t64, librtmp1, libsasl2-2, libshiboken2-py3-5.15t64, libspnav0, libssh-4, libssl3t64, libstdc++6, libtasn1-6, libunistring5, libx11-6, libxau6, libxcb1, libxdmcp6, libxerces-c3.2t64, libzipios++0v5, libzstd1, zlib1g.
  • Owned paths: ~/.config/FreeCAD, ~/.local/share/FreeCAD, ~/Documents. data/get returns their files and a typed JSON view of each; data/reset restores the seed.
  • Seed: 27 file(s) from the user's home before the capture, with the captured home path respelled in text files.
  • tasks/smoke.json deploys the app.

Run the task with agent-env run <this folder>, or only the deploy with --task smoke.

The seed is synthetic test data made for this showcase; it holds no one's real files.

Task add-hole-gui

tasks/add-hole-gui.json deploys the app, has the agent work through the computer from the prompt below, and grades the outcome with artifacts/add-hole-gui-check/verify.py, which reads the app's data/get views and needs no model. evals/freecad.toml names it, so a run of the bundle runs it.

FreeCAD is already open with ~/Documents/plate.FCStd loaded; it holds one part, Plate, a 160 x 100 x 5 mm box. Using FreeCAD's menus, toolbars and dialogs only (not the Python console or macros), cut a 10 mm diameter hole straight through the middle of the plate: switch to the Part workbench (View > Workbench > Part), add a cylinder from it and name it Hole, size and place it with its properties, subtract it from Plate with Part > Boolean > Cut, then save the document in place.

Checks, each of which must pass:

  • cut: {"kind":"value_equals","file":"Documents/plate.FCStd","pointer":"/entries/[name=Document.xml]/view/root/children/[name=Objects]/children/[name=Object][@type=Part::Cut]/attributes/type","value":"Part::Cut"}
  • named-hole: {"kind":"value_equals","file":"Documents/plate.FCStd","pointer":"/entries/[name=Document.xml]/view/root/children/[name=ObjectData]/children/1/children/[name=Properties]/children/[name=Property][@name=Label]/children/[name=String]/attributes/value","value":"Hole"}
  • radius: {"kind":"value_equals","file":"Documents/plate.FCStd","pointer":"/entries/[name=Document.xml]/view/root/children/[name=ObjectData]/children/1/children/[name=Properties]/children/[name=Property][@name=Radius]/children/[name=Float]/attributes/value","value":5,"tolerance":0.01}
  • middle-x: {"kind":"value_equals","file":"Documents/plate.FCStd","pointer":"/entries/[name=Document.xml]/view/root/children/[name=ObjectData]/children/1/children/[name=Properties]/children/[name=Property][@name=Placement]/children/[name=PropertyPlacement]/attributes/Px","value":80,"tolerance":1}
  • middle-y: {"kind":"value_equals","file":"Documents/plate.FCStd","pointer":"/entries/[name=Document.xml]/view/root/children/[name=ObjectData]/children/1/children/[name=Properties]/children/[name=Property][@name=Placement]/children/[name=PropertyPlacement]/attributes/Py","value":50,"tolerance":1}
  • starts-below: {"kind":"value_equals","file":"Documents/plate.FCStd","pointer":"/entries/[name=Document.xml]/view/root/children/[name=ObjectData]/children/1/children/[name=Properties]/children/[name=Property][@name=Placement]/children/[name=PropertyPlacement]/attributes/Pz","value":-5000,"tolerance":5000}
  • tall-enough: {"kind":"value_equals","file":"Documents/plate.FCStd","pointer":"/entries/[name=Document.xml]/view/root/children/[name=ObjectData]/children/1/children/[name=Properties]/children/[name=Property][@name=Height]/children/[name=Float]/attributes/value","value":5005,"tolerance":5000}
  • upright: {"kind":"value_equals","file":"Documents/plate.FCStd","pointer":"/entries/[name=Document.xml]/view/root/children/[name=ObjectData]/children/1/children/[name=Properties]/children/[name=Property][@name=Placement]/children/[name=PropertyPlacement]/attributes/A","value":0,"tolerance":0.000001}

REA kept the task because its checks fail on the seed (cut, named-hole, radius, middle-x, middle-y, starts-below, tall-enough, upright) 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-hole-gui --agent claude-code --model MODEL