ericchang00 commited on
Commit
46ccc31
·
verified ·
1 Parent(s): 8830fa5

add README: layout, download, harbor run, join key

Browse files
Files changed (1) hide show
  1. README.md +68 -0
README.md ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # fullstackbench-tasks
2
+
3
+ Harbor task definitions used to benchmark coding agents in the FullStackBench / Loki research program. Each top-level directory is one self-contained task — Dockerfile, golden app, verifier, instruction — runnable via `harbor run`.
4
+
5
+ ## Layout
6
+
7
+ ```
8
+ <task-name>/
9
+ task.toml # identity, timeouts, resource limits
10
+ instruction.md # what the agent is asked to do
11
+ environment/
12
+ Dockerfile # builds golden app + verifier + agent workdir
13
+ app/ # golden backend + frontend (the reference impl)
14
+ pristine/ # ablated component(s) — the gap the agent must fill
15
+ reference.png # screenshot baseline (for visual tasks)
16
+ tests/
17
+ test.sh # boots app, seeds DB, runs verifier
18
+ test_*.py # Playwright structural checks
19
+ seed.py # test data fixture
20
+ solution/
21
+ solve.sh # oracle solution (writes the golden file in-place)
22
+ ```
23
+
24
+ Tasks are fully self-contained — the Dockerfile bakes everything needed; no host-path dependencies.
25
+
26
+ ## List tasks
27
+
28
+ ```bash
29
+ hf api repos/ApolloTeam/fullstackbench-tasks/tree/main --repo-type dataset \
30
+ | jq -r '.[] | select(.type=="directory") | .path'
31
+ ```
32
+
33
+ Or browse in the [HF file viewer](https://huggingface.co/datasets/ApolloTeam/fullstackbench-tasks/tree/main).
34
+
35
+ ## Download one task
36
+
37
+ ```bash
38
+ hf download ApolloTeam/fullstackbench-tasks \
39
+ --repo-type dataset \
40
+ --include "screenshot2-add-expense-sparse/*" \
41
+ --local-dir ./tasks
42
+ ```
43
+
44
+ ## Run a task with Harbor
45
+
46
+ ```bash
47
+ harbor run -p ./tasks/screenshot2-add-expense-sparse \
48
+ --agent claude-code \
49
+ -m anthropic/claude-opus-4-7 \
50
+ -k 2 -n 2 \
51
+ --jobs-dir ./jobs/screenshot2-claude-rerun \
52
+ --job-name screenshot2-claude-rerun
53
+ ```
54
+
55
+ - `-k N` — trials per task
56
+ - `-n N` — concurrent docker containers
57
+ - `--job-name` — should match the value you'll pass to `push_trajectories.py` later, since it becomes the config_name suffix
58
+
59
+ After the run finishes, push the trajectories to the sister repo. See [ApolloTeam/fullstackbench-trajectories](https://huggingface.co/datasets/ApolloTeam/fullstackbench-trajectories) for the wrapper script and schema.
60
+
61
+ ## Task identifier convention
62
+
63
+ `task.toml` declares `name = "loki/<task-name>"`. That string becomes the `task` column on every trajectory row, so it's the join key between this repo and the trajectories repo.
64
+
65
+ ## Current tasks
66
+
67
+ - `screenshot2-add-expense-sparse` — Implement an AddExpense route from a sparse spec + screenshot reference. Tests visual-prior overrides (gemini ignores image, claude reads it).
68
+ - `screenshot42-taskmanager-projectdetail` — Rebuild a 377-line Kanban ProjectDetail component from a screenshot. Tests multi-axis layout + interaction reproduction.