File size: 3,787 Bytes
e5c9fd3
 
240bbb0
e5c9fd3
 
 
f1acc97
240bbb0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
f1acc97
9162798
240bbb0
e5c9fd3
240bbb0
 
 
e5c9fd3
f1acc97
 
 
240bbb0
 
 
 
 
 
 
 
 
 
f1acc97
0f28efb
240bbb0
f1acc97
 
240bbb0
f1acc97
0f28efb
f1acc97
e5c9fd3
f1acc97
240bbb0
 
f1acc97
e5c9fd3
f1acc97
e5c9fd3
f1acc97
240bbb0
f1acc97
e5c9fd3
 
 
 
 
23b1365
 
67a0ef4
23b1365
240bbb0
e5c9fd3
 
 
 
240bbb0
e5c9fd3
 
 
 
 
 
 
240bbb0
e5c9fd3
 
 
23b1365
 
 
 
240bbb0
23b1365
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
95
96
97
98
99
100
101
102
103
104
105
# fullstackbench-trajectories

FullStackBench tasks and the agent trajectories that ran them. One repo, two sibling trees keyed by the same task ID.

## Layout

```
tasks/
└── <task-id>/                              # task definition
    ├── environment/                        # docker-compose, source app, fixtures
    ├── tests/                              # verifier scripts
    └── solution/                           # reference impl (if applicable)

trajectories/
└── <task-id>/                              # mirrors tasks/ key
    └── <contributor>_<model>_<date>/       # one harbor job run
        ├── config.json                     # job-level harbor config
        ├── result.json                     # job-level aggregate stats
        ├── job.log
        ├── trial-0/                        # one per harbor `-k` replicate
        │   ├── config.json
        │   ├── result.json                 # per-trial reward + token totals
        │   ├── trial.log
        │   ├── agent/
        │   │   ├── trajectory.json         # ★ ATIF canonical
        │   │   └── ...                     # agent-native logs
        │   ├── verifier/
        │   │   ├── test-stdout.txt
        │   │   └── test-stderr.txt
        │   └── artifacts/                  # screenshots, container logs
        └── trial-1/
```

Canonical task IDs (from FullStackBench) keep their original names — e.g. `screenshot2-add-expense-sparse`. Contributor-authored variants use `<author>_<descriptor>_<date>` — e.g. `eric_screenshot2-add-expense_2026-05-15`.

`agent/trajectory.json` is the [ATIF](https://harborframework.com) format — full fidelity per-step `metrics` (`prompt_tokens`, `completion_tokens`, `cached_tokens`, `cost_usd`), `tool_calls`, `reasoning_content`, timestamps, multimodal `observation`.

## Browse one task's runs

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

Compare agents on the same task:
```bash
ls fsb/trajectories/screenshot2-add-expense-sparse/
# eric_claude-opus-4-7_2026-05-09
# eric_gemini-3.1-pro-preview_2026-05-09
```

Inspect a trial:
```bash
jq '.steps[] | {source, message, metrics}' \
    fsb/trajectories/screenshot2-add-expense-sparse/*/trial-0/agent/trajectory.json
```

## Convert to a queryable Dataset

```bash
harbor traces export -p ./fsb/trajectories/screenshot2-add-expense-sparse \
    --instruction-metadata --verifier-metadata
```

Or programmatically:
```python
from harbor.utils.traces_utils import export_traces
ds = export_traces(root="./fsb/trajectories/screenshot2-add-expense-sparse",
                   include_instruction=True, include_verifier_output=True)
```

## Add your own trajectories

```bash
hf download ApolloTeam/fullstackbench-trajectories push_trajectories.py \
    --repo-type dataset --local-dir .

python push_trajectories.py \
    --jobs-dir ./jobs/<your-run> \
    --person <slug> \
    --repo ApolloTeam/fullstackbench-trajectories
```

The path is derived from harbor's metadata: `trajectories/<task-id>/<person>_<model>_<date>/`. Re-pushing the same triple overwrites.

## Re-run a task

```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/my-rerun
```

Then push using the wrapper above.

## Prerequisites

- `hf` CLI logged in (`hf auth login`)
- Python with `huggingface_hub` (+ `harbor` for `traces export`)
- For re-running: Docker daemon running locally