File size: 2,842 Bytes
c0a7dd4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
# Scribus computer app

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

- `envs/scribus/` is a computer app on the `ubuntu-24.04` base with the `reference` driver, for
  `amd64` and `arm64`. It installs `scribus` from the distribution archive, launches `sh -c cd "$HOME" 2>/dev/null; exec 'scribus' "$HOME"/'Documents/jazz-night-flyer.sla'` at boot and is ready
  when a window of class `scribus` appears.
- At launch the app opens `~/Documents/jazz-night-flyer.sla`, the seed's one document.
- Owned paths: `~/.config/scribus`, `~/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.
- `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/scribus/seed/` before publishing the bundle.

## Task `change-flyer-headline`

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

> Change the headline of the event flyer in Documents/jazz-night-flyer.sla to Harbor Lights Jazz Festival and save it.

Checks, each of which must pass:

- `headline`: `{"kind":"value_equals","file":"Documents/jazz-night-flyer.sla","pointer":"/root/children/[name=DOCUMENT]/children/[name=PAGEOBJECT][@ANNAME=Headline]/children/[name=StoryText]/children/[name=ITEXT]/attributes/CH","value":"Harbor Lights Jazz Festival"}`
- `details-untouched`: `{"kind":"value_equals","file":"Documents/jazz-night-flyer.sla","pointer":"/root/children/[name=DOCUMENT]/children/[name=PAGEOBJECT][@ANNAME=Details]/children/[name=StoryText]/children/[name=ITEXT]/attributes/CH","value":"Saturday, June 14 at 7:00 PM - Maple Street Community Hall"}`

REA kept the task because its checks fail on the seed (`headline`) 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-flyer-headline --agent claude-code --model MODEL