File size: 3,949 Bytes
240bbb0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
# fullstackbench-tasks

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`.

## Prerequisites

- `hf` CLI logged in to an ApolloTeam-member account (`hf auth login`)
- Working install of [Harbor](https://github.com/laude-institute/harbor) — provides the `harbor` CLI (ask the Loki team if you don't already have it set up)
- Docker daemon running locally
- ~4 GB free disk per task for the container image

> This repo is **private** — open the URL in a browser only if you're logged in to HF as an ApolloTeam member. For programmatic README fetch use `hf download ApolloTeam/fullstackbench-tasks README.md --repo-type dataset --local-dir .`.

## Layout

```
<task-name>/
  task.toml              # identity, timeouts, resource limits
  instruction.md         # what the agent is asked to do
  environment/
    Dockerfile           # builds golden app + verifier + agent workdir
    app/                 # golden backend + frontend (the reference impl)
    pristine/            # ablated component(s) — the gap the agent must fill
    reference.png        # screenshot baseline (for visual tasks)
  tests/
    test.sh              # boots app, seeds DB, runs verifier
    test_*.py            # Playwright structural checks
    seed.py              # test data fixture
  solution/
    solve.sh             # oracle solution (writes the golden file in-place)
```

Tasks are fully self-contained — the Dockerfile bakes everything needed; no host-path dependencies.

## List tasks

```bash
hf api repos/ApolloTeam/fullstackbench-tasks/tree/main --repo-type dataset \
  | jq -r '.[] | select(.type=="directory") | .path'
```

Or browse in the [HF file viewer](https://huggingface.co/datasets/ApolloTeam/fullstackbench-tasks/tree/main).

## Download one task

```bash
hf download ApolloTeam/fullstackbench-tasks \
    --repo-type dataset \
    --include "screenshot2-add-expense-sparse/*" \
    --local-dir ./tasks
```

## Run a task with Harbor

```bash
harbor run -p ./tasks/screenshot2-add-expense-sparse \
    --agent claude-code \
    -m anthropic/claude-opus-4-7 \
    -k 2 -n 2 \
    --jobs-dir ./jobs/screenshot2-claude-rerun \
    --job-name screenshot2-claude-rerun
```

- `-k N` — trials per task
- `-n N` — concurrent docker containers
- `--job-name` — should match the value you'll pass to `push_trajectories.py` later, since it becomes the config_name suffix

After the run finishes, push the trajectories to the sister repo:

```bash
# Grab the bundled wrapper from the trajectories repo
hf download ApolloTeam/fullstackbench-trajectories \
    --repo-type dataset --include "push_trajectories.py" --local-dir .

# Push your job's trajectories — becomes its own config in the dataset
~/Local/harbor-spike/.venv/bin/python push_trajectories.py \
    --jobs-dir ./jobs/screenshot2-claude-rerun \
    --person <your-slug> --project fullstackbench \
    --experiment-group screenshot-deltas \
    --job-name screenshot2-claude-rerun --date 20260520 \
    --repo ApolloTeam/fullstackbench-trajectories
```

See [ApolloTeam/fullstackbench-trajectories](https://huggingface.co/datasets/ApolloTeam/fullstackbench-trajectories) for the full schema and query patterns.

## Task identifier convention

`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.

## Current tasks

- `screenshot2-add-expense-sparse` — Implement an AddExpense route from a sparse spec + screenshot reference. Tests visual-prior overrides (gemini ignores image, claude reads it).
- `screenshot42-taskmanager-projectdetail` — Rebuild a 377-line Kanban ProjectDetail component from a screenshot. Tests multi-axis layout + interaction reproduction.