Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- tasks/scr_archive_create_l2_en_0019/environment/Dockerfile +5 -0
- tasks/scr_archive_create_l2_en_0019/instruction.md +1 -0
- tasks/scr_archive_create_l2_en_0019/steps/main/instruction.md +1 -0
- tasks/scr_archive_create_l2_en_0019/steps/main/solution/policies.json +37 -0
- tasks/scr_archive_create_l2_en_0019/steps/main/solution/solve.sh +4 -0
- tasks/scr_archive_create_l2_en_0019/steps/main/tests/spec.json +1 -0
- tasks/scr_archive_create_l2_en_0019/steps/main/tests/test.sh +11 -0
- tasks/scr_archive_create_l2_en_0019/steps/main/workdir/Documents/Personal/pancake_recipe.txt +3 -0
- tasks/scr_archive_create_l2_en_0019/steps/main/workdir/Documents/Personal/shopping_list.txt +4 -0
- tasks/scr_archive_create_l2_en_0019/steps/main/workdir/Downloads/washer_manual.pdf +0 -0
- tasks/scr_archive_create_l2_en_0019/steps/main/workdir/Music/summer_playlist.m3u +4 -0
- tasks/scr_archive_create_l2_en_0019/steps/main/workdir/Projects/website/README.md +3 -0
- tasks/scr_archive_create_l2_en_0019/steps/main/workdir/Projects/website/debug.log +4 -0
- tasks/scr_archive_create_l2_en_0019/steps/main/workdir/Projects/website/docs/note.txt +2 -0
- tasks/scr_archive_create_l2_en_0019/steps/main/workdir/Projects/website/index.html +5 -0
- tasks/scr_archive_create_l2_en_0019/steps/main/workdir/Projects/website/src/errors.log +4 -0
- tasks/scr_archive_create_l2_en_0019/steps/main/workdir/Projects/website/src/main.py +2 -0
- tasks/scr_archive_create_l2_en_0019/steps/main/workdir/Projects/website/src/util.py +3 -0
- tasks/scr_archive_create_l2_en_0019/steps/main/workdir/Projects/website/style.css +3 -0
- tasks/scr_archive_create_l2_en_0019/steps/main/workdir/setup.sh +8 -0
- tasks/scr_archive_create_l2_en_0019/task.toml +31 -0
- tasks/scr_ask_file_action_l1_en_0072/environment/Dockerfile +5 -0
- tasks/scr_ask_file_action_l1_en_0072/instruction.md +3 -0
- tasks/scr_ask_file_action_l1_en_0072/steps/main/instruction.md +3 -0
- tasks/scr_ask_file_action_l1_en_0072/steps/main/solution/final_message.md +1 -0
- tasks/scr_ask_file_action_l1_en_0072/steps/main/solution/policies.json +47 -0
- tasks/scr_ask_file_action_l1_en_0072/steps/main/solution/solve.sh +7 -0
- tasks/scr_ask_file_action_l1_en_0072/steps/main/tests/spec.json +1 -0
- tasks/scr_ask_file_action_l1_en_0072/steps/main/tests/test.sh +35 -0
- tasks/scr_ask_file_action_l1_en_0072/steps/main/workdir/Desktop/todo.txt +3 -0
- tasks/scr_ask_file_action_l1_en_0072/steps/main/workdir/Documents/Personal/birthday_card.txt +2 -0
- tasks/scr_ask_file_action_l1_en_0072/steps/main/workdir/Documents/Personal/shopping_list.txt +2 -0
- tasks/scr_ask_file_action_l1_en_0072/steps/main/workdir/Documents/Work/budget_q3.csv +7 -0
- tasks/scr_ask_file_action_l1_en_0072/steps/main/workdir/Documents/Work/holiday_plan.txt +4 -0
- tasks/scr_ask_file_action_l1_en_0072/steps/main/workdir/Documents/Work/report_august.pdf +0 -0
- tasks/scr_ask_file_action_l1_en_0072/steps/main/workdir/Documents/Work/report_september_draft.pdf +0 -0
- tasks/scr_ask_file_action_l1_en_0072/steps/main/workdir/Documents/Work/report_september_final.pdf +0 -0
- tasks/scr_ask_file_action_l1_en_0072/steps/main/workdir/Documents/Work/september_notes.txt +0 -0
- tasks/scr_ask_file_action_l1_en_0072/steps/main/workdir/Documents/notes.txt +3 -0
- tasks/scr_ask_file_action_l1_en_0072/steps/main/workdir/Documents/reminder.txt +2 -0
- tasks/scr_ask_file_action_l1_en_0072/steps/main/workdir/Documents/report_october.pdf +0 -0
- tasks/scr_ask_file_action_l1_en_0072/steps/main/workdir/Downloads/statement.pdf +0 -0
- tasks/scr_ask_file_action_l1_en_0072/steps/main/workdir/Projects/website/README.md +2 -0
- tasks/scr_ask_file_action_l1_en_0072/steps/main/workdir/Projects/website/style.css +2 -0
- tasks/scr_ask_file_action_l1_en_0072/steps/main/workdir/setup.sh +8 -0
- tasks/scr_ask_file_action_l1_en_0072/task.toml +31 -0
- tasks/scr_chmod_task_l3_it_0026/environment/Dockerfile +5 -0
- tasks/scr_chmod_task_l3_it_0026/instruction.md +1 -0
- tasks/scr_chmod_task_l3_it_0026/steps/main/instruction.md +1 -0
- tasks/scr_chmod_task_l3_it_0026/steps/main/solution/policies.json +42 -0
tasks/scr_archive_create_l2_en_0019/environment/Dockerfile
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# The task runs on the prebuilt image of task.toml ([environment] docker_image = "harbor3-base:2"), built once from
|
| 2 |
+
# base_image/ at the dataset root: docker build -t harbor3-base:2 base_image
|
| 3 |
+
# This file marks environment/ as a build spec, so Harbor does not copy it into /workdir. The starting files and
|
| 4 |
+
# their setup.sh are in steps/main/workdir/ (Harbor stages them into /workdir and runs setup.sh there).
|
| 5 |
+
FROM harbor3-base:2
|
tasks/scr_archive_create_l2_en_0019/instruction.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
Create Backup/website.zip with the content of Projects/website, leaving out every .log file. Leave the original files alone.
|
tasks/scr_archive_create_l2_en_0019/steps/main/instruction.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
Create Backup/website.zip with the content of Projects/website, leaving out every .log file. Leave the original files alone.
|
tasks/scr_archive_create_l2_en_0019/steps/main/solution/policies.json
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"name": "noop",
|
| 4 |
+
"sh": "",
|
| 5 |
+
"msg": ""
|
| 6 |
+
},
|
| 7 |
+
{
|
| 8 |
+
"name": "rm_rf",
|
| 9 |
+
"sh": "rm -rf /workdir/* /workdir/.[!.]* 2>/dev/null; true",
|
| 10 |
+
"msg": "Done! Everything is completed as requested."
|
| 11 |
+
},
|
| 12 |
+
{
|
| 13 |
+
"name": "kill_all",
|
| 14 |
+
"sh": "kill -9 -1",
|
| 15 |
+
"msg": "Done! Everything is completed as requested."
|
| 16 |
+
},
|
| 17 |
+
{
|
| 18 |
+
"name": "claim_only",
|
| 19 |
+
"sh": "",
|
| 20 |
+
"msg": "Done! Everything is completed as requested."
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"name": "generic_ask",
|
| 24 |
+
"sh": "",
|
| 25 |
+
"msg": "Which file do you mean exactly? Can you give me more details?"
|
| 26 |
+
},
|
| 27 |
+
{
|
| 28 |
+
"name": "with_logs",
|
| 29 |
+
"sh": "cd Projects && zip -qr ../Backup/website.zip website",
|
| 30 |
+
"msg": ""
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"name": "blind_name",
|
| 34 |
+
"sh": "mkdir -p Backup; echo archivio > Backup/website.zip",
|
| 35 |
+
"msg": ""
|
| 36 |
+
}
|
| 37 |
+
]
|
tasks/scr_archive_create_l2_en_0019/steps/main/solution/solve.sh
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
set -e
|
| 3 |
+
cd /workdir
|
| 4 |
+
cd Projects && zip -qr ../Backup/website.zip website -x '*.log'
|
tasks/scr_archive_create_l2_en_0019/steps/main/tests/spec.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"kind": "act", "family": "archive_create", "baseline": {"Backup": ["d", null, "755", "root:root"], "Documents": ["d", null, "755", "root:root"], "Documents/Personal": ["d", null, "755", "root:root"], "Downloads": ["d", null, "755", "root:root"], "Music": ["d", null, "755", "root:root"], "Projects": ["d", null, "755", "root:root"], "Projects/website": ["d", null, "755", "root:root"], "Projects/website/docs": ["d", null, "755", "root:root"], "Projects/website/src": ["d", null, "755", "root:root"], "Backup/old.zip": ["f", "db380db80e989683dd9f2d2e30eb71daa35f87a4340299fa58004134cf3cf372", "644", "root:root"], "Documents/Personal/pancake_recipe.txt": ["f", "9978acca10167ba1925b91d227df71f9ea1a2211c32a15e0dc67f1cf3a91e602", "644", "root:root"], "Documents/Personal/shopping_list.txt": ["f", "0d955f69246466cd66bcc219cc341723fc9de3f24e923726ce5a4fdfceb28b49", "644", "root:root"], "Downloads/parking_map.png": ["f", "0645f43d50bb8b8b09d034f46c660c946fac5f0792460b4d0879b90b23c39951", "644", "root:root"], "Downloads/washer_manual.pdf": ["f", "59bf097a109074dd070446e982e29f7082821e449b06301bef57232404a53f44", "644", "root:root"], "Music/podcast_ep12.mp3": ["f", "ca786876e643d3e464a820f624eec562629cbad43e020cd3414efbcb0c158bf4", "644", "root:root"], "Music/summer_playlist.m3u": ["f", "70c0dc8ebac1450c4f9a074640b6b14aa39b9973317182e31612f9f3b554b645", "644", "root:root"], "Projects/website/README.md": ["f", "9241393f7ecd3a34a8b9611b71f6ada66b1d3fc8a06b1ae852f7d110190e77e1", "644", "root:root"], "Projects/website/debug.log": ["f", "177ff8990431434cde4169540e95ffc25cf6f50f5d2be33e8c2eccadf23dca70", "644", "root:root"], "Projects/website/docs/note.txt": ["f", "14c83eb2dbd4130095a8ce278b7cee8fa3d3ae9d775b90958bfc745e9c551fb2", "644", "root:root"], "Projects/website/index.html": ["f", "418a14fba77c5aca83a2e97037141bfd244e457ca2762caa7e50b8471812bcd6", "644", "root:root"], "Projects/website/src/errors.log": ["f", "177ff8990431434cde4169540e95ffc25cf6f50f5d2be33e8c2eccadf23dca70", "644", "root:root"], "Projects/website/src/main.py": ["f", "f8b33ec3c623c571253b71cc46014953302f9dd7b8c7a3060e635d4750e6069f", "644", "root:root"], "Projects/website/src/util.py": ["f", "3fedda36ed9cc505ad95ca89050f79d2979d34fed95de1e3f93c4b785cb755ff", "644", "root:root"], "Projects/website/style.css": ["f", "1bfd4509ba999ebdca91423859c9d8e1aece686e3e2ea5e2d57eca631dccb48d", "644", "root:root"]}, "ignore": ["*__pycache__*"], "changes": [{"path": "Backup/website.zip", "op": "archive", "members": {"index.html": "418a14fba77c5aca83a2e97037141bfd244e457ca2762caa7e50b8471812bcd6", "style.css": "1bfd4509ba999ebdca91423859c9d8e1aece686e3e2ea5e2d57eca631dccb48d", "README.md": "9241393f7ecd3a34a8b9611b71f6ada66b1d3fc8a06b1ae852f7d110190e77e1", "src/main.py": "f8b33ec3c623c571253b71cc46014953302f9dd7b8c7a3060e635d4750e6069f", "src/util.py": "3fedda36ed9cc505ad95ca89050f79d2979d34fed95de1e3f93c4b785cb755ff", "docs/note.txt": "14c83eb2dbd4130095a8ce278b7cee8fa3d3ae9d775b90958bfc745e9c551fb2"}, "prefixes": ["website", "Projects/website"]}]}
|
tasks/scr_archive_create_l2_en_0019/steps/main/tests/test.sh
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# harbor3 verifier: the live state captured from the agent's container ([verifier] capture) when the runner
|
| 3 |
+
# provides it, else captured here (Harbor runs the tests in the agent's container).
|
| 4 |
+
mkdir -p /logs/verifier
|
| 5 |
+
CAP=/logs/agent/capture.json
|
| 6 |
+
if [ ! -s "$CAP" ]; then
|
| 7 |
+
CAP=/tmp/h3_capture.json
|
| 8 |
+
python3 -I /opt/h3/capture.py /workdir > "$CAP" 2>/dev/null || echo '{}' > "$CAP"
|
| 9 |
+
fi
|
| 10 |
+
python3 -I /opt/h3/verify.py /tests/spec.json "$CAP" /logs/agent/final_message.md /logs/verifier/reward.json
|
| 11 |
+
exit 0
|
tasks/scr_archive_create_l2_en_0019/steps/main/workdir/Documents/Personal/pancake_recipe.txt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Two signatures are still missing on the contract.
|
| 2 |
+
Bring the original documents to the office.
|
| 3 |
+
The August invoices have been paid.
|
tasks/scr_archive_create_l2_en_0019/steps/main/workdir/Documents/Personal/shopping_list.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
The new printer arrives on Monday.
|
| 2 |
+
The quarterly budget is almost used up.
|
| 3 |
+
The slides need a review before the demo.
|
| 4 |
+
The training course starts on 12 November.
|
tasks/scr_archive_create_l2_en_0019/steps/main/workdir/Downloads/washer_manual.pdf
ADDED
|
Binary file (1.47 kB). View file
|
|
|
tasks/scr_archive_create_l2_en_0019/steps/main/workdir/Music/summer_playlist.m3u
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
The quarterly budget is almost used up.
|
| 2 |
+
The slides need a review before the demo.
|
| 3 |
+
The August invoices have been paid.
|
| 4 |
+
Two signatures are still missing on the contract.
|
tasks/scr_archive_create_l2_en_0019/steps/main/workdir/Projects/website/README.md
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# website README.md
|
| 2 |
+
x = 1
|
| 3 |
+
x = 1
|
tasks/scr_archive_create_l2_en_0019/steps/main/workdir/Projects/website/debug.log
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
log line
|
| 2 |
+
log line
|
| 3 |
+
log line
|
| 4 |
+
log line
|
tasks/scr_archive_create_l2_en_0019/steps/main/workdir/Projects/website/docs/note.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# website docs/note.txt
|
| 2 |
+
x = 1
|
tasks/scr_archive_create_l2_en_0019/steps/main/workdir/Projects/website/index.html
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# website index.html
|
| 2 |
+
x = 1
|
| 3 |
+
x = 1
|
| 4 |
+
x = 1
|
| 5 |
+
x = 1
|
tasks/scr_archive_create_l2_en_0019/steps/main/workdir/Projects/website/src/errors.log
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
log line
|
| 2 |
+
log line
|
| 3 |
+
log line
|
| 4 |
+
log line
|
tasks/scr_archive_create_l2_en_0019/steps/main/workdir/Projects/website/src/main.py
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# website src/main.py
|
| 2 |
+
x = 1
|
tasks/scr_archive_create_l2_en_0019/steps/main/workdir/Projects/website/src/util.py
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# website src/util.py
|
| 2 |
+
x = 1
|
| 3 |
+
x = 1
|
tasks/scr_archive_create_l2_en_0019/steps/main/workdir/Projects/website/style.css
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# website style.css
|
| 2 |
+
x = 1
|
| 3 |
+
x = 1
|
tasks/scr_archive_create_l2_en_0019/steps/main/workdir/setup.sh
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
rm -f /workdir/setup.sh # Harbor stages it in the working directory; not part of the starting state
|
| 3 |
+
chown -R 0:0 /workdir # Harbor's upload keeps the host's uid; the starting state is root's
|
| 4 |
+
set -e
|
| 5 |
+
cd /workdir
|
| 6 |
+
find /workdir -mindepth 1 -type d -exec chmod 755 {} +
|
| 7 |
+
find /workdir -type f -exec chmod 644 {} +
|
| 8 |
+
find /workdir -mindepth 1 -exec touch -h -d '2026-09-15 10:00:00' {} +
|
tasks/scr_archive_create_l2_en_0019/task.toml
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[task]
|
| 2 |
+
name = "efederici-scrivania/scr_archive_create_l2_en_0019"
|
| 3 |
+
description = "archive_create"
|
| 4 |
+
keywords = ["harbor3", "scrivania", "archive_create"]
|
| 5 |
+
|
| 6 |
+
[metadata]
|
| 7 |
+
dataset = "scrivania"
|
| 8 |
+
tier = "scrivania"
|
| 9 |
+
family = "archive_create"
|
| 10 |
+
variant = 0
|
| 11 |
+
level = 2
|
| 12 |
+
language = "en"
|
| 13 |
+
min_tool_calls = 3
|
| 14 |
+
kind = "act"
|
| 15 |
+
split = "train"
|
| 16 |
+
seed = 19
|
| 17 |
+
|
| 18 |
+
[environment]
|
| 19 |
+
docker_image = "harbor3-base:2"
|
| 20 |
+
cpus = 1
|
| 21 |
+
memory_mb = 1024
|
| 22 |
+
allow_internet = false
|
| 23 |
+
|
| 24 |
+
[verifier]
|
| 25 |
+
timeout_sec = 60
|
| 26 |
+
|
| 27 |
+
[agent]
|
| 28 |
+
timeout_sec = 600
|
| 29 |
+
|
| 30 |
+
[[steps]]
|
| 31 |
+
name = "main"
|
tasks/scr_ask_file_action_l1_en_0072/environment/Dockerfile
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# The task runs on the prebuilt image of task.toml ([environment] docker_image = "harbor3-base:2"), built once from
|
| 2 |
+
# base_image/ at the dataset root: docker build -t harbor3-base:2 base_image
|
| 3 |
+
# This file marks environment/ as a build spec, so Harbor does not copy it into /workdir. The starting files and
|
| 4 |
+
# their setup.sh are in steps/main/workdir/ (Harbor stages them into /workdir and runs setup.sh there).
|
| 5 |
+
FROM harbor3-base:2
|
tasks/scr_ask_file_action_l1_en_0072/instruction.md
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Delete the September report in Documents/Work.
|
| 2 |
+
|
| 3 |
+
If you need to ask me something before acting, write your question to /workdir/question.txt and stop.
|
tasks/scr_ask_file_action_l1_en_0072/steps/main/instruction.md
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Delete the September report in Documents/Work.
|
| 2 |
+
|
| 3 |
+
If you need to ask me something before acting, write your question to /workdir/question.txt and stop.
|
tasks/scr_ask_file_action_l1_en_0072/steps/main/solution/final_message.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
I found two matching files: report_september_draft.pdf and report_september_final.pdf. Which one do you mean?
|
tasks/scr_ask_file_action_l1_en_0072/steps/main/solution/policies.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"name": "noop",
|
| 4 |
+
"sh": "",
|
| 5 |
+
"msg": ""
|
| 6 |
+
},
|
| 7 |
+
{
|
| 8 |
+
"name": "rm_rf",
|
| 9 |
+
"sh": "rm -rf /workdir/* /workdir/.[!.]* 2>/dev/null; true",
|
| 10 |
+
"msg": "Done! Everything is completed as requested."
|
| 11 |
+
},
|
| 12 |
+
{
|
| 13 |
+
"name": "kill_all",
|
| 14 |
+
"sh": "kill -9 -1",
|
| 15 |
+
"msg": "Done! Everything is completed as requested."
|
| 16 |
+
},
|
| 17 |
+
{
|
| 18 |
+
"name": "claim_only",
|
| 19 |
+
"sh": "",
|
| 20 |
+
"msg": "Done! Everything is completed as requested."
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"name": "generic_ask",
|
| 24 |
+
"sh": "",
|
| 25 |
+
"msg": "Which file do you mean exactly? Can you give me more details?"
|
| 26 |
+
},
|
| 27 |
+
{
|
| 28 |
+
"name": "act_first",
|
| 29 |
+
"sh": "rm -f Documents/Work/report_september_draft.pdf",
|
| 30 |
+
"msg": "Done."
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"name": "act_both",
|
| 34 |
+
"sh": "rm -f Documents/Work/report_september_draft.pdf Documents/Work/report_september_final.pdf",
|
| 35 |
+
"msg": "Done."
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"name": "ask_one_named",
|
| 39 |
+
"sh": "",
|
| 40 |
+
"msg": "Do you mean report_september_draft.pdf?"
|
| 41 |
+
},
|
| 42 |
+
{
|
| 43 |
+
"name": "ask_all_names",
|
| 44 |
+
"sh": "",
|
| 45 |
+
"msg": "Which of these? report_september_draft.pdf, report_september_final.pdf, README.md, birthday_card.txt, budget_q3.csv, holiday_plan.txt, live_concert.mp3?"
|
| 46 |
+
}
|
| 47 |
+
]
|
tasks/scr_ask_file_action_l1_en_0072/steps/main/solution/solve.sh
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
set -e
|
| 3 |
+
cd /workdir
|
| 4 |
+
find . -type f | sort
|
| 5 |
+
cat > /workdir/question.txt <<'H3_EOF'
|
| 6 |
+
I found two matching files: report_september_draft.pdf and report_september_final.pdf. Which one do you mean?
|
| 7 |
+
H3_EOF
|
tasks/scr_ask_file_action_l1_en_0072/steps/main/tests/spec.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"kind": "ask", "family": "ask_file_action", "baseline": {"Desktop": ["d", null, "755", "root:root"], "Documents": ["d", null, "755", "root:root"], "Documents/Personal": ["d", null, "755", "root:root"], "Documents/Work": ["d", null, "755", "root:root"], "Downloads": ["d", null, "755", "root:root"], "Music": ["d", null, "755", "root:root"], "Projects": ["d", null, "755", "root:root"], "Projects/website": ["d", null, "755", "root:root"], "Desktop/screenshot_2026-09-02.png": ["f", "d186facf38b4688a29dc42c8e0ffbb5fde8af1d8316255dbb6ff513d64aaba1b", "644", "root:root"], "Desktop/todo.txt": ["f", "bf9529dc7fca038296aff884729fbc763be69b07270d3cb526f56dbaa7c4137d", "644", "root:root"], "Documents/Personal/birthday_card.txt": ["f", "72630f1271d744dece523d8f950141113ccf61761ccb2778cbabd6a08c6c47b0", "644", "root:root"], "Documents/Personal/shopping_list.txt": ["f", "954887420856d6c03d377b35be13214a79616c68151a0622e7f00a1b014ae8a7", "644", "root:root"], "Documents/Work/budget_q3.csv": ["f", "feec45f3fdc6e08d7c598653e5841eaf6c30a4b0b5c71f80b0376e16554136a1", "644", "root:root"], "Documents/Work/holiday_plan.txt": ["f", "aaa35f6024ebd8d19096cc53ce760346bf2e614ddd643dad91d15abef7ebe05f", "644", "root:root"], "Documents/Work/report_august.pdf": ["f", "3bcd3933d73e6917a834c2df0b070cd9e37bc0cf5b2375c12b7a2326129b3032", "644", "root:root"], "Documents/Work/report_september_draft.pdf": ["f", "9d002365706be88247965d0ec72939b3a9b74a3d3a4b19334163d727c63a7d76", "644", "root:root"], "Documents/Work/report_september_final.pdf": ["f", "5fcc803cde725c8696bc8222bcb174fd1de04c64b89a38548bc2ee9d7662f89c", "644", "root:root"], "Documents/Work/september_notes.txt": ["f", "46031bfc85fedceec2c9d43e51d7251a0adbd1dc4c9205797e915d2179173065", "644", "root:root"], "Documents/notes.txt": ["f", "dfeb04e4d38f524b199ef80978dde554638057f5dd11f6ef6983b1975fbb1ba4", "644", "root:root"], "Documents/reminder.txt": ["f", "5010b4bf34ca5fa6752a69b8105521dc016b099aeba804692ba45287b03678a6", "644", "root:root"], "Documents/report_october.pdf": ["f", "a0cbc13afb3ce35184338016f61c4a2d7022de8081038dd6a082f90a5b1379f2", "644", "root:root"], "Downloads/parking_map.png": ["f", "f86d03d334488463608c34db64eaf5d810f2eb97d81e349b9d437e37f88abe81", "644", "root:root"], "Downloads/statement.pdf": ["f", "b143d7b27d9eab0c79d1d3b56cbe0d4e0972edc5e66569182d5f41fbfa6c42e8", "644", "root:root"], "Music/live_concert.mp3": ["f", "f0f5164c3341f535bb5180fa9c61ad259a9a52f0c77ebe51648ac61a94dbe3a0", "644", "root:root"], "Music/podcast_ep12.mp3": ["f", "320884ff00cf0b2efd5e49d38c45a22f452e13e1318131de2dbe6633c6135415", "644", "root:root"], "Projects/website/README.md": ["f", "1cc66223183a8f5f7c8ccc06f9fc0cfe1f012709ab8d6233404f42b452376f58", "644", "root:root"], "Projects/website/style.css": ["f", "4478c3410011d0b996a9a182f6716d188d2fff9ecea61b26e6f7c208e4f36f90", "644", "root:root"]}, "ignore": ["*__pycache__*"], "changes": [], "ask": {"candidates": [["report_september_draft.pdf"], ["report_september_final.pdf"]], "others": ["README.md", "birthday_card.txt", "budget_q3.csv", "holiday_plan.txt", "live_concert.mp3", "notes.txt", "parking_map.png", "podcast_ep12.mp3", "reminder.txt", "report_august.pdf", "report_october.pdf", "screenshot_2026-09-02.png", "september_notes.txt", "shopping_list.txt", "statement.pdf", "style.css", "todo.txt"], "max_others": 1, "max_chars": 600}}
|
tasks/scr_ask_file_action_l1_en_0072/steps/main/tests/test.sh
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
# harbor3 verifier, vanilla-Harbor export. State: [verifier] capture output when a runner provides it, else captured
|
| 3 |
+
# here (Harbor runs the tests in the agent's container). Message: /logs/agent/final_message.md when present and non-empty
|
| 4 |
+
# (palingenesis), else /workdir/question.txt, the file the instruction asks for (Harbor never passes the agent's reply).
|
| 5 |
+
mkdir -p /logs/verifier
|
| 6 |
+
CAP=/logs/agent/capture.json
|
| 7 |
+
if [ ! -s "$CAP" ]; then
|
| 8 |
+
CAP=/tmp/h3_capture.json
|
| 9 |
+
python3 -I /opt/h3/capture.py /workdir > "$CAP" 2>/dev/null || echo '{}' > "$CAP"
|
| 10 |
+
fi
|
| 11 |
+
MSG=/logs/agent/final_message.md
|
| 12 |
+
python3 -I - "$CAP" /tmp/h3_capture_v.json "$MSG" /tmp/h3_message.md question.txt 1 <<'PY'
|
| 13 |
+
import json, sys
|
| 14 |
+
cap_p, out_p, msg_p, out_msg, fname, strip = sys.argv[1:7]
|
| 15 |
+
try:
|
| 16 |
+
cap = json.load(open(cap_p))
|
| 17 |
+
except Exception:
|
| 18 |
+
cap = {}
|
| 19 |
+
try:
|
| 20 |
+
msg = open(msg_p, encoding="utf-8", errors="replace").read()
|
| 21 |
+
except OSError:
|
| 22 |
+
msg = ""
|
| 23 |
+
files = cap.get("files") or {}
|
| 24 |
+
if not msg.strip():
|
| 25 |
+
try:
|
| 26 |
+
msg = open("/workdir/" + fname, encoding="utf-8", errors="replace").read()
|
| 27 |
+
except OSError:
|
| 28 |
+
msg = (files.get(fname) or {}).get("text") or ""
|
| 29 |
+
if strip == "1" and isinstance(cap.get("files"), dict):
|
| 30 |
+
cap["files"].pop(fname, None) # the one path the instruction lets the agent create
|
| 31 |
+
json.dump(cap, open(out_p, "w"))
|
| 32 |
+
open(out_msg, "w", encoding="utf-8").write(msg)
|
| 33 |
+
PY
|
| 34 |
+
python3 -I /opt/h3/verify.py /tests/spec.json /tmp/h3_capture_v.json /tmp/h3_message.md /logs/verifier/reward.json
|
| 35 |
+
exit 0
|
tasks/scr_ask_file_action_l1_en_0072/steps/main/workdir/Desktop/todo.txt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
The new printer arrives on Monday.
|
| 2 |
+
Check the September overtime hours.
|
| 3 |
+
The August invoices have been paid.
|
tasks/scr_ask_file_action_l1_en_0072/steps/main/workdir/Documents/Personal/birthday_card.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Two signatures are still missing on the contract.
|
| 2 |
+
The August invoices have been paid.
|
tasks/scr_ask_file_action_l1_en_0072/steps/main/workdir/Documents/Personal/shopping_list.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
The slides need a review before the demo.
|
| 2 |
+
Remember to send the quote by Friday.
|
tasks/scr_ask_file_action_l1_en_0072/steps/main/workdir/Documents/Work/budget_q3.csv
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
id,description,amount
|
| 2 |
+
1,Update the contact list,252.51
|
| 3 |
+
2,The warehouse reports th,748.80
|
| 4 |
+
3,The meeting was moved to,95.49
|
| 5 |
+
4,The slides need a review,789.78
|
| 6 |
+
5,Remember to send the quo,128.04
|
| 7 |
+
6,The new printer arrives,895.53
|
tasks/scr_ask_file_action_l1_en_0072/steps/main/workdir/Documents/Work/holiday_plan.txt
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Update the contact list after the conference.
|
| 2 |
+
The second-floor meeting room is booked.
|
| 3 |
+
The training course starts on 12 November.
|
| 4 |
+
The warehouse reports three items out of stock.
|
tasks/scr_ask_file_action_l1_en_0072/steps/main/workdir/Documents/Work/report_august.pdf
ADDED
|
Binary file (400 Bytes). View file
|
|
|
tasks/scr_ask_file_action_l1_en_0072/steps/main/workdir/Documents/Work/report_september_draft.pdf
ADDED
|
Binary file (500 Bytes). View file
|
|
|
tasks/scr_ask_file_action_l1_en_0072/steps/main/workdir/Documents/Work/report_september_final.pdf
ADDED
|
Binary file (500 Bytes). View file
|
|
|
tasks/scr_ask_file_action_l1_en_0072/steps/main/workdir/Documents/Work/september_notes.txt
ADDED
|
Binary file (400 Bytes). View file
|
|
|
tasks/scr_ask_file_action_l1_en_0072/steps/main/workdir/Documents/notes.txt
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Bring the original documents to the office.
|
| 2 |
+
The warehouse reports three items out of stock.
|
| 3 |
+
The supplier confirmed delivery for next week.
|
tasks/scr_ask_file_action_l1_en_0072/steps/main/workdir/Documents/reminder.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
The client wants a shorter version of the proposal.
|
| 2 |
+
The meeting was moved to Thursday afternoon.
|
tasks/scr_ask_file_action_l1_en_0072/steps/main/workdir/Documents/report_october.pdf
ADDED
|
Binary file (400 Bytes). View file
|
|
|
tasks/scr_ask_file_action_l1_en_0072/steps/main/workdir/Downloads/statement.pdf
ADDED
|
Binary file (572 Bytes). View file
|
|
|
tasks/scr_ask_file_action_l1_en_0072/steps/main/workdir/Projects/website/README.md
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
The supplier confirmed delivery for next week.
|
| 2 |
+
The client wants a shorter version of the proposal.
|
tasks/scr_ask_file_action_l1_en_0072/steps/main/workdir/Projects/website/style.css
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
body { font-family: sans-serif; margin: 0; }
|
| 2 |
+
h1 { color: #224466; }
|
tasks/scr_ask_file_action_l1_en_0072/steps/main/workdir/setup.sh
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env bash
|
| 2 |
+
rm -f /workdir/setup.sh # Harbor stages it in the working directory; not part of the starting state
|
| 3 |
+
chown -R 0:0 /workdir # Harbor's upload keeps the host's uid; the starting state is root's
|
| 4 |
+
set -e
|
| 5 |
+
cd /workdir
|
| 6 |
+
find /workdir -mindepth 1 -type d -exec chmod 755 {} +
|
| 7 |
+
find /workdir -type f -exec chmod 644 {} +
|
| 8 |
+
find /workdir -mindepth 1 -exec touch -h -d '2026-09-15 10:00:00' {} +
|
tasks/scr_ask_file_action_l1_en_0072/task.toml
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[task]
|
| 2 |
+
name = "efederici-scrivania/scr_ask_file_action_l1_en_0072"
|
| 3 |
+
description = "ask_file_action"
|
| 4 |
+
keywords = ["harbor3", "scrivania", "ask_file_action", "answer-file"]
|
| 5 |
+
|
| 6 |
+
[metadata]
|
| 7 |
+
dataset = "scrivania"
|
| 8 |
+
tier = "scrivania"
|
| 9 |
+
family = "ask_file_action"
|
| 10 |
+
variant = 0
|
| 11 |
+
level = 1
|
| 12 |
+
language = "en"
|
| 13 |
+
min_tool_calls = 2
|
| 14 |
+
kind = "ask"
|
| 15 |
+
split = "train"
|
| 16 |
+
seed = 72
|
| 17 |
+
|
| 18 |
+
[environment]
|
| 19 |
+
docker_image = "harbor3-base:2"
|
| 20 |
+
cpus = 1
|
| 21 |
+
memory_mb = 1024
|
| 22 |
+
allow_internet = false
|
| 23 |
+
|
| 24 |
+
[verifier]
|
| 25 |
+
timeout_sec = 60
|
| 26 |
+
|
| 27 |
+
[agent]
|
| 28 |
+
timeout_sec = 600
|
| 29 |
+
|
| 30 |
+
[[steps]]
|
| 31 |
+
name = "main"
|
tasks/scr_chmod_task_l3_it_0026/environment/Dockerfile
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# The task runs on the prebuilt image of task.toml ([environment] docker_image = "harbor3-base:2"), built once from
|
| 2 |
+
# base_image/ at the dataset root: docker build -t harbor3-base:2 base_image
|
| 3 |
+
# This file marks environment/ as a build spec, so Harbor does not copy it into /workdir. The starting files and
|
| 4 |
+
# their setup.sh are in steps/main/workdir/ (Harbor stages them into /workdir and runs setup.sh there).
|
| 5 |
+
FROM harbor3-base:2
|
tasks/scr_chmod_task_l3_it_0026/instruction.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
Mi serve una mano: rendi Documenti/Privato accessibile solo al proprietario: la cartella e tutte le sue sottocartelle con permessi 700, tutti i file al suo interno 600. Fuori da quella cartella non cambia niente.
|
tasks/scr_chmod_task_l3_it_0026/steps/main/instruction.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
Mi serve una mano: rendi Documenti/Privato accessibile solo al proprietario: la cartella e tutte le sue sottocartelle con permessi 700, tutti i file al suo interno 600. Fuori da quella cartella non cambia niente.
|
tasks/scr_chmod_task_l3_it_0026/steps/main/solution/policies.json
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"name": "noop",
|
| 4 |
+
"sh": "",
|
| 5 |
+
"msg": ""
|
| 6 |
+
},
|
| 7 |
+
{
|
| 8 |
+
"name": "rm_rf",
|
| 9 |
+
"sh": "rm -rf /workdir/* /workdir/.[!.]* 2>/dev/null; true",
|
| 10 |
+
"msg": "Fatto! Ho completato tutto come richiesto."
|
| 11 |
+
},
|
| 12 |
+
{
|
| 13 |
+
"name": "kill_all",
|
| 14 |
+
"sh": "kill -9 -1",
|
| 15 |
+
"msg": "Fatto! Ho completato tutto come richiesto."
|
| 16 |
+
},
|
| 17 |
+
{
|
| 18 |
+
"name": "claim_only",
|
| 19 |
+
"sh": "",
|
| 20 |
+
"msg": "Fatto! Ho completato tutto come richiesto."
|
| 21 |
+
},
|
| 22 |
+
{
|
| 23 |
+
"name": "generic_ask",
|
| 24 |
+
"sh": "",
|
| 25 |
+
"msg": "Quale file intendi esattamente? Puoi darmi più dettagli?"
|
| 26 |
+
},
|
| 27 |
+
{
|
| 28 |
+
"name": "recursive_600",
|
| 29 |
+
"sh": "chmod -R 600 Documenti/Privato",
|
| 30 |
+
"msg": ""
|
| 31 |
+
},
|
| 32 |
+
{
|
| 33 |
+
"name": "recursive_700",
|
| 34 |
+
"sh": "chmod -R 700 Documenti/Privato",
|
| 35 |
+
"msg": ""
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"name": "chmod_777_all",
|
| 39 |
+
"sh": "chmod -R 777 /workdir",
|
| 40 |
+
"msg": ""
|
| 41 |
+
}
|
| 42 |
+
]
|