TobyYang7 commited on
Commit
1bb32f1
·
verified ·
1 Parent(s): 6fd91ef

Document every archive's run settings, and which are superseded

Browse files
Files changed (1) hide show
  1. README.md +301 -216
README.md CHANGED
@@ -13,201 +13,313 @@ evolved interface code, every agent trajectory, the builder logs, the evolution
13
  database, the run configuration, and derived result tables. Each archive is
14
  meant to be readable by someone with no access to the machine that produced it.
15
 
16
- ## Which archive to take
17
-
18
- | file | size | contents |
19
- |---|---|---|
20
- | `archives/qwen_syn30v15_128k-redacted.zip` | 3.1 GB | everything, including the 270 raw `claude_trajectory.jsonl` agent transcripts |
21
- | `archives/qwen_syn30v15_128k-slim.zip` | 78 MB | byte-identical apart from those 270 transcripts, which are omitted |
22
-
23
- Take the slim archive to read results or redo analysis — all scores, code,
24
- configuration and derived tables are in it. Take the full one only to replay
25
- what the agent actually did, step by step.
26
-
27
- > **Credentials are redacted.** An OSWorld agent explores the VM it is given,
28
- > and one that runs `env` records the harness's API keys into its own
29
- > transcript. Every text file here has been passed through a redactor that
30
- > replaces such values with `<REDACTED>` while keeping the variable name, so
31
- > the record still shows what was present. For this run that rewrote 22
32
- > occurrences each of four provider keys plus 730 generic `*_TOKEN` /
33
- > `*_SECRET` assignments. Both archives were scanned before upload and contain
34
- > no credential-shaped strings.
35
 
36
  ---
37
 
38
- # Archive structure
39
 
40
- Every archive unpacks to one directory named `<namespace>-<UTC timestamp>/`.
41
- Sizes below are uncompressed, from the `qwen_syn30v15_128k` full archive
42
- (2,191 files).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
43
 
44
  ```
45
- qwen_syn30v15_128k-20260920T005457Z/
46
- ├── MANIFEST.json 8 KB provenance and self-description
47
- ├── config/ 6 KB what was run
48
- ├── db/ 204 KB the evolution state
49
- ├── results/ 2 KB derived tables (read these first)
50
- ├── interfaces/ 75 MB the evolved code, per variant
51
- ├── builder_logs/ 25 MB how each variant was written
52
- ├── logs/ 26 KB orchestrator console log
53
- └── trajectories/ 5.9 GB what the agent did, per variant per task
54
  ```
55
 
56
- ## `MANIFEST.json`
 
 
 
 
 
 
 
 
 
 
57
 
58
- The archive describing itself. Read this before anything else — it records how
59
- the archive was built, not just what it holds.
60
 
61
- | key | meaning |
62
- |---|---|
63
- | `namespace`, `created_utc`, `eval_model` | which run, packaged when, scored by which model |
64
- | `variants` | 6 rows straight from the DB: `id`, `origin`, `step`, `parent_id`, `parent_b_id`, `score`, `val_score`, `tag` |
65
- | `val_task_ids` | the 15 graded task ids for this run |
66
- | `task_cap_seconds` | the per-task wall clock (7200) used to flag truncated runs |
67
- | `counts` | files written, split by kind |
68
- | `truncated_val_runs` | how many val runs hit the wall clock (22) |
69
- | `redacted`, `redactions` | whether redaction ran, and how many substitutions per rule |
70
- | `slim`, `recordings_included` | which variant of the archive this is |
71
- | `run_config` | the full launch configuration, 36 keys |
72
- | `layout`, `caveats` | a short version of this document |
73
 
74
- ## `config/` — what was run
75
 
76
- | file | contents |
77
  |---|---|
78
- | `run_config.json` | the orchestrator's launch record: full command line, builder/eval models and timeouts, scheduler spec, parent selection, VM concurrency, AWS region/subnet/security group, seed file SHA-256s |
79
- | `eval_sets/osworld_v2_val_15.json` | the 15 **graded** val task ids |
80
- | `eval_sets/synthetic_train_30.json` | the 30 synthetic train task ids — **ungraded**, see caveats |
81
- | `seed_context_compaction.json` | the seed's compaction policy: `context_window_tokens`, `reserve_tokens`, `keep_recent_tokens` |
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
82
 
83
- ## `db/` — the evolution state
84
 
85
- `shadow_evolution_osworld_v2_<namespace>.db`, SQLite. Tables: `variants`
86
- (lineage and scores), `eval_results` (per variant per task), `cost_events`,
87
- `dispatch_log`, `history`, `islands`, `eval_sets`, `val_set`.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
88
 
89
- ```sql
90
- select id, origin, step, parent_id, parent_b_id, round(val_score,4)
91
- from variants order by rowid;
92
- ```
93
 
94
- ## `results/` — derived tables
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
95
 
96
- Generated at packaging time from the trajectories, so they agree with the raw
97
- files by construction.
98
 
99
- **`val_matrix.csv`** — 15 rows, one per val task, one column per variant:
100
 
101
- ```
102
- task,…-seed,…-if-001,…-if-002,…-if-003,…-if-004,…-if-005
103
- 007,0.6,0.6,0.6,0.6,0.6,0.4
104
- ```
 
105
 
106
- **`variants.csv`** — 6 rows, the lineage and final scores:
 
 
 
 
 
 
 
 
107
 
108
  ```
109
- id,origin,step,parent_id,parent_b_id,score,val_score
110
- qwen_syn30v15_128k-seed,seed,0,,,0.0,5.375
111
  ```
112
 
113
- **`truncated_runs.csv`** — 22 rows. **Read this before interpreting any zero.**
 
 
114
 
115
- ```
116
- variant,task,exit,elapsed_s,score
117
- qwen_syn30v15_128k-seed,064,0,10929.3,0.0
118
- ```
 
 
119
 
120
- ## `interfaces/` — the evolved code
121
 
122
- ```
123
- interfaces/
124
- ├── <namespace>-<timestamp>.bundle 75 MB git bundle, all 6 variant tags
125
- ├── qwen_syn30v15_128k-seed/shadow_interface/
126
- │ ├── __init__.py __main__.py cli.py setup.sh
127
- │ ├── context_compaction.json
128
- │ └── helpers/{__init__,atree,browser,cli_ops,gui}.py
129
- ├── qwen_syn30v15_128k-if-001/shadow_interface/…
130
- └── … if-002 … if-005
131
- ```
132
 
133
- The per-variant directories are flat snapshots, convenient for reading or
134
- diffing. The **bundle** is the authoritative copy: it carries every tag *and*
135
- the commit graph, so it shows how each variant was derived from its parent,
136
- which the snapshots cannot.
137
 
138
- ```bash
139
- git clone -b evol <namespace>-<timestamp>.bundle evolved
140
- cd evolved && git log --oneline --graph --all
141
- git diff evol/<ns>/seed evol/<ns>/if-001 -- shadow_interface
 
 
 
 
 
 
 
142
  ```
143
 
144
- ## `builder_logs/` — how each variant was written
145
-
146
- One JSONL per builder invocation, named `<variant>_<operation>.jsonl`:
147
 
148
- | file | size |
149
  |---|---|
150
- | `…-if-001_mutation.jsonl` | 5.9 MB |
151
- | `…-if-002_crossover.jsonl` | 5.5 MB |
152
- | `…-if-003_mutation.jsonl` | 4.8 MB |
153
- | `…-if-004_crossover.jsonl` | 2.4 MB |
154
- | `…-if-005_mutation.jsonl` | 6.1 MB |
 
 
 
 
 
155
 
156
- Same event schema as the agent trajectories below. The seed has no builder log
157
- — it was not built by anything.
158
 
159
- ## `logs/`
 
 
 
 
160
 
161
- `console.log` — the orchestrator's own output: step dispatches, parent
162
- selection (`Selected … via tournament`), builder start/finish, per-variant
163
- `scored X/30 (val: Y/15)` lines, and the final `Driver stopping at step=N`.
164
 
165
- ## `trajectories/` — what the agent did
 
 
166
 
167
- ```
168
- trajectories/<variant>/<task>/
 
169
  ```
170
 
171
- 6 variants × 45 tasks = 270 task directories. The 45 tasks are the 15 graded
172
- val ids (`007 010 014 019 041 046 048 058 064 069 072 079 083 105 108`) and 30
173
- synthetic `s_001`…`s_030`.
174
-
175
- | file | present | contents |
176
- |---|---|---|
177
- | `claude_trajectory.jsonl` | 270 | **the raw agent transcript** — omitted from the slim archive |
178
- | `result.txt` | 270 | the final score, one float |
179
- | `env_spec.json` | 270 | the VM spec the task ran on |
180
- | `instruction.txt` | 267 | the task prompt as given to the agent |
181
- | `traj.jsonl` | 267 | one-line run summary (below) |
182
- | `claude_stderr.log` | 264 | agent stderr |
183
- | `exit_code.txt` | 264 | process exit code — **124 means the wall clock killed it** |
184
- | `result.json` | 216 | grading detail, including safety checks |
185
- | `phase_results.json` | 6 | per-phase scores for multi-phase tasks |
186
- | `exit_code_phase_N.txt` | 6/6/3/2 | per-phase exit codes; these tasks have no single `exit_code.txt` |
187
- | `failure.json` | 3 | infra failure record — see caveats |
188
-
189
- **`traj.jsonl`** — a single JSON object summarising the run:
190
 
191
- ```json
192
- {"agent": "shadow_eval", "model": "openai/simular-qwen-3p8-27b-evolving-agents",
193
- "instruction": "…", "elapsed_seconds": 2148.36, "no_tool": false,
194
- "phase_count": 1, "hitl_turns": 0}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
195
  ```
196
 
197
- `elapsed_seconds` is the agent's own clock, started after the VM was ready.
198
- `hitl_turns` counts ASK_USER round trips with the simulated user.
199
 
200
- **`claude_trajectory.jsonl`** — one JSON event per line, in order. Event types
201
- in a typical 128-turn episode:
202
 
203
- | `type` | count | meaning |
204
- |---|---|---|
205
- | `session` / `agent_start` / `agent_end` | 1 each | episode framing; `agent_end` carries the full message list |
206
- | `turn_start` / `turn_end` | 128 each | one model turn — **counting `turn_start` gives the step count** |
207
- | `message_start` / `message_end` | 257 each | streaming boundaries |
208
- | `tool_execution_start` / `_update` / `_end` | 128 / 1314 / 128 | tool calls and their incremental output |
209
 
210
- Token accounting lives on `turn_end`:
211
 
212
  ```json
213
  {"input": 5179, "output": 137, "cacheRead": 0, "cacheWrite": 0,
@@ -215,85 +327,58 @@ Token accounting lives on `turn_end`:
215
  ```
216
 
217
  `cost` is zero throughout: the model is a self-hosted deployment that declares
218
- zero per-token price. That is structural, not a measurement gap. Summing
219
- `totalTokens` over turns gives a cumulative billing-style figure — each turn
220
- re-counts the whole growing prompt.
221
-
222
- **`result.json`** — grading detail, richer than the bare `result.txt`:
223
-
224
- ```json
225
- {"score": 1.0,
226
- "safety": {"checks": [{"name": "document_integrity", "result": "PASS",
227
- "penalty": 0.0}],
228
- "total_penalty": 0.0}}
229
- ```
230
 
231
- **`failure.json`** — written when an attempt failed on infrastructure:
232
- `task_id`, `attempt` / `max_attempts`, `failure_type`, `error`, `status`, and
233
- `valid_for_fitness` (false — the harness excludes these from scoring). A
234
- `failure.json` **next to a `result.txt`** means a later retry succeeded and the
235
- failure record is stale; only a `failure.json` with **no** `result.txt` is a
236
  real gap.
237
 
238
  ---
239
 
240
  # Caveats
241
 
242
- Three things are easy to read wrong. All three are also recorded in
243
- `MANIFEST.json`.
 
 
 
 
 
 
244
 
245
- **1. A truncated run is not a capability zero.** A task cut off by the 2 h
246
  per-task wall clock exits **124** (or reports `elapsed_seconds` above 7200),
247
  writes a **real score** — almost always `0.000` — and writes **no
248
- `failure.json`**, so infra-failure checks cannot see it. In this run **22 of 90
249
- val runs (24%)** were truncated, concentrated on tasks `064` and `108` (all six
250
- variants), `079` (five), and `083`/`058`/`014`/`048`. A zero on those means
251
- "was not allowed to finish", not "cannot do it". `results/truncated_runs.csv`
252
- lists every one.
253
-
254
- **2. The seed ran on a different clock.** Its results were imported from a
255
- standalone evaluation that used `--no-time-limit`, while `if-001`…`if-005` ran
256
- under `--eval-timeout 7200`. The seed's `064` ran 10,929 s and its `108` ran
257
- 8,381 s without being cut. Both still scored 0.000, so its total is unaffected,
258
- but the seed row is not comparable to its children on the truncation axis.
259
-
260
- **3. Synthetic `s_*` tasks are UNGRADED**, constant zero by construction. Their
261
- `result.txt` is always `0.0` and carries no signal; a `train` score of 0.000 is
262
- expected. Only the 15 val ids are graded, and the denominator is the full val
263
- set even when fewer tasks finished.
 
 
 
 
 
 
264
 
265
  ---
266
 
267
- # Runs
268
-
269
- ## `qwen_syn30v15_128k` — 5 evolution steps at a 128K context window
270
-
271
- Qwen 3.8-27B as both builder and evaluator, Prime Agent harness, 45 tasks per
272
- variant, 45-VM concurrency, 2 h per-task wall clock. 16.5 h wall clock, 270
273
- episodes, clean exit. Compaction was healthy throughout: 290 compactions, **0
274
- skipped**, at a 131,072-token window with `keep_recent_tokens = 20000`.
275
 
276
- | variant | op | parent(s) | val partial | val binary |
277
- |---|---|---|---|---|
278
- | seed | — | — | 5.3750 / 15 = 35.83% | 1/15 |
279
- | **if-001** | mutation | seed | **5.8508 / 15 = 39.01%** | 1/15 |
280
- | if-002 | crossover | if-001 × seed | 5.5400 / 15 = 36.93% | 1/15 |
281
- | if-003 | mutation | if-002 | 5.2550 / 15 = 35.03% | 1/15 |
282
- | if-004 | crossover | if-002 × if-001 | 5.2001 / 15 = 34.67% | **3/15** |
283
- | if-005 | mutation | seed | 4.5750 / 15 = 30.50% | **3/15** |
284
-
285
- `val partial` is the mean raw score over the 15 val tasks; `val binary` counts
286
- only full credit. The two disagree: **if-001** leads on partial, while
287
- **if-004** and **if-005** each solve three tasks outright against everyone
288
- else's one.
289
-
290
- Capabilities the evolution opened that the seed did not have:
291
-
292
- | task | best before | opened by | new score |
293
- |---|---|---|---|
294
- | 010 | 0.000 (all five others) | if-005 | **1.000** |
295
- | 105 | 0.350 (four variants tied) | if-004 | 0.970 |
296
- | 069 | 0.871 | if-004 | 1.000 |
297
- | 046 | 0.990 | if-004 | 1.000 |
298
- | 079 | 0.000 | if-002 | 0.220 |
299
- | 058 | 0.000 | if-004 | 0.100 |
 
13
  database, the run configuration, and derived result tables. Each archive is
14
  meant to be readable by someone with no access to the machine that produced it.
15
 
16
+ Three experiments are archived here. They differ in **exactly one intended
17
+ variable each**, and the differences are listed before the numbers because most
18
+ of the numbers are not comparable across them.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
 
20
  ---
21
 
22
+ # Which archive to take
23
 
24
+ | file | size | contents | status |
25
+ |---|---|---|---|
26
+ | `archives/qwen_syn30v15_128k-step15-slim.zip` | 95 MiB | **no scratch VM**, 16 variants, steps 0–15 — scores, code, config, derived tables | **current** |
27
+ | `archives/qwen_syn30v15_128k-step15-redacted.zip` | 13.8 GiB | the same plus all 5,630 raw agent transcripts | **current** |
28
+ | `archives/qwen_syn30v15_128k_scratch-step10-slim.zip` | 94.9 MiB | **with scratch VM**, 11 complete variants | **current** |
29
+ | `archives/qwen_syn30v15_128k_scratch-step10-redacted.zip` | 5.6 GiB | the same plus transcripts, **plus a partial 12th variant** (see below) | **current** |
30
+ | `archives/qwen_syn30v15_128k-bare-redacted.zip` | 1.0 GiB | **no shadow interface at all** — the baseline floor | **current** |
31
+ | `archives/qwen_syn30v15_128k-step12-redacted.zip` | 10.6 GiB | no scratch VM, steps 0–12 | superseded by `step15` |
32
+ | `archives/qwen_syn30v15_128k-step12-slim.zip` | 96 MiB | no scratch VM, steps 0–12 | superseded by `step15` |
33
+ | `archives/qwen_syn30v15_128k-redacted.zip` | 3.3 GiB | no scratch VM, steps 0–5 | superseded by `step15` |
34
+ | `archives/qwen_syn30v15_128k-slim.zip` | 81 MiB | no scratch VM, steps 0–5 | superseded by `step15` |
35
+
36
+ The four superseded archives are kept for link stability. `step15` is a strict
37
+ superset of both `step12` and the unsuffixed pair — same namespace, same
38
+ config, more steps. Take `step15` unless you need a byte-identical copy of what
39
+ an earlier analysis read.
40
+
41
+ Take a **slim** archive to read results or redo analysis: all scores, code,
42
+ configuration and derived tables are in it. Take a **redacted** (full) archive
43
+ only to replay what the agent actually did, step by step.
44
+
45
+ ### Integrity
46
 
47
  ```
48
+ 5ccfa693ba3e37d2122e32f6fffe2d3eb0573d4623cdffc763132afcbc832b9f qwen_syn30v15_128k-step15-redacted.zip
49
+ 3f97ecd726d0c38a61aa1b6d795c74c53a070594d865fdc484114617174c82a9 qwen_syn30v15_128k-step15-slim.zip
50
+ bbc2b8258d64cda3c0167e826bf3c512f52fa99ec81dc837e3395a71676997f9 qwen_syn30v15_128k_scratch-step10-redacted.zip
51
+ 8a31ac3f19cd00d2668c1456f62fb92088135aea3ebc7b228fe67fe260209f38 qwen_syn30v15_128k_scratch-step10-slim.zip
52
+ 095c08ab479f0efaf1235db50186a693275369fe12e63698d0e4696d6d897c48 qwen_syn30v15_128k-bare-redacted.zip
 
 
 
 
53
  ```
54
 
55
+ > **Credentials are redacted.** An OSWorld agent explores the VM it is given,
56
+ > and one that runs `env` records the harness's API keys into its own
57
+ > transcript. This is not an occasional accident: grounding runs as a *tool*,
58
+ > so the agent's model credentials are deliberately readable by any bash action
59
+ > it takes. Every text file here has been passed through a redactor that
60
+ > replaces such values with `<REDACTED>` while keeping the variable name. For
61
+ > `step15` that rewrote 4,099 generic assignments, 2,367 Hugging Face tokens,
62
+ > 109 Anthropic / 99 OpenRouter / 99 LiteLLM-proxy / 98 Parasail keys, and 55
63
+ > private-key blocks or headers. Every archive was scanned before upload with a
64
+ > detection list wider than what the redactor rewrites, and none contains a
65
+ > credential-shaped string.
66
 
67
+ ---
 
68
 
69
+ # The settings
 
 
 
 
 
 
 
 
 
 
 
70
 
71
+ All three runs share this. Deviations are called out per run.
72
 
73
+ | | value |
74
  |---|---|
75
+ | harness | Prime Agent (`--builder-harness prime_agent`, `evaluator_harness=prime_agent`) |
76
+ | builder model | `openai/simular-qwen-3p8-27b-evolving-agents` (self-hosted Qwen 3.8-27B) |
77
+ | eval model | the same deployment — a variant is written and graded by one model |
78
+ | **grounding model** | **also the same deployment.** The evaluator exports `SHADOW_GROUNDING_MODEL=<eval model>`, so the interface's UI-grounding helper calls the island's own model. There is no separate grounding model. (Earlier project runs used Parasail UI-TARS; `PARASAIL_API_KEY` survives in the tool allowlist.) |
79
+ | context window | **131,072 (128K)**, declared in `shadow_interface/context_compaction.json` with `context_window_source = interface` |
80
+ | train set | `synthetic_train_30.json` — 30 synthetic `s_*` tasks, **UNGRADED** |
81
+ | val set | `osworld_v2_val_15.json` — 15 graded tasks: `007 010 014 019 041 046 048 058 064 069 072 079 083 105 108` |
82
+ | selection signal | `val` |
83
+ | parent selection | `tournament` |
84
+ | scheduler | `deterministic:0,2,0` (alternating mutation / crossover) |
85
+ | elimination count | 5 — **no elimination event was ever recorded**; every variant stays in the pool |
86
+ | per-task wall clock | 7,200 s builder, 7,200 s eval |
87
+ | max agent steps | 300 |
88
+ | env concurrency | 45 |
89
+ | region | `us-east-1`, public IP |
90
+ | website deployment | `52.91.237.94.nip.io` — a **self-hosted substitute**, not the pinned `site.hku.icu` |
91
+ | egress proxy | `allow_placeholder_proxy=1` — the proxy config holds placeholder credentials |
92
+
93
+ ### Two settings that bound what these numbers can support
94
+
95
+ **The proxy is not configured.** With placeholder credentials, 6 train tasks
96
+ (`037 055 062 075 098` and `056`) and 2 test tasks (`036 050`) fail for lack of
97
+ an egress proxy. Those failures are indistinguishable from genuine interface
98
+ failures, so they bias every selection step. The orchestrator says so itself on
99
+ every launch: *"This run is a diagnostic, not a reportable result."*
100
+
101
+ **The websites are a substitute stack.** 40 of the tasks are website-backed.
102
+ Scores on them are comparable only to other runs on this same substitute
103
+ deployment — not to any run measured against the pinned `site.hku.icu` host.
104
 
105
+ ---
106
 
107
+ # Run 1 — `qwen_syn30v15_128k`: no scratch VM
108
+
109
+ `--no-scratch-vm`: the builder writes the interface without a VM to try it in.
110
+ `--max-steps 30`, so **this archive is a mid-run snapshot at step 15**, not a
111
+ finished run.
112
+
113
+ 16 variants. `val partial` is the summed raw score over the 15 val tasks;
114
+ `val binary` counts only full credit.
115
+
116
+ | step | variant | op | parent(s) | val partial | val binary |
117
+ |---|---|---|---|---|---|
118
+ | 0 | seed | — | — | 5.375 / 15 = 35.8% | 1/15 |
119
+ | 1 | if-001 | mutation | seed | 5.851 / 15 = 39.0% | 1/15 |
120
+ | 2 | if-002 | crossover | if-001 × seed | 5.540 / 15 = 36.9% | 1/15 |
121
+ | 3 | if-003 | mutation | if-002 | 5.255 / 15 = 35.0% | 1/15 |
122
+ | 4 | if-004 | crossover | if-002 × if-001 | 5.200 / 15 = 34.7% | 3/15 |
123
+ | 5 | if-005 | mutation | seed | 4.575 / 15 = 30.5% | 3/15 |
124
+ | 6 | if-006 | crossover | if-001 × seed | 5.600 / 15 = 37.3% | **4/15** |
125
+ | 7 | if-007 | mutation | if-001 | 7.045 / 15 = 47.0% | 2/15 |
126
+ | 8 | **if-008** | crossover | if-001 × seed | **7.180 / 15 = 47.9%** | 3/15 |
127
+ | 9 | if-009 | mutation | if-008 | 6.070 / 15 = 40.5% | 3/15 |
128
+ | 10 | if-010 | crossover | if-001 × if-009 | 5.965 / 15 = 39.8% | 3/15 |
129
+ | 11 | if-011 | mutation | if-002 | 6.731 / 15 = 44.9% | **4/15** |
130
+ | 12 | if-012 | crossover | if-001 × if-010 | 4.738 / 15 = 31.6% | 2/15 |
131
+ | 13 | if-015 | mutation | if-012 | 5.607 / 15 = 37.4% | 3/15 |
132
+ | 14 | if-016 | crossover | — | 6.645 / 15 = 44.3% | 3/15 |
133
+ | 15 | if-017 | mutation | — | 6.673 / 15 = 44.5% | 3/15 |
134
+
135
+ **`if-013` and `if-014` do not exist.** On 2026-09-22 an expired AWS SSO token
136
+ made VM allocation fail for all 45 tasks of both variants. The harness wrote
137
+ those retry-exhausted tasks as real `0.000` scores with
138
+ `infrastructure_failed: 0`, so they entered the DB as legitimate worst-in-pool
139
+ individuals. They were purged and the two steps re-dispatched; the `if-`
140
+ counter did not rewind, so step 13/14/15 carry `if-015/016/017`.
141
+
142
+ Other facts for this run: 5,630 trajectory files, 4,186 held-out files across
143
+ 101 held-out tasks / 671 runs / **42 rerun pairs**, and **65 of 240 val runs
144
+ (27.1%) truncated** by the 2 h wall clock.
145
 
146
+ ---
 
 
 
147
 
148
+ # Run 2 — `qwen_syn30v15_128k_scratch`: with scratch VM
149
+
150
+ Identical to Run 1 **except** that the scratch VM is enabled (the builder gets
151
+ a VM to try the interface in while writing it) and `--max-steps 15`. Every
152
+ other flag matches, which makes these two runs a clean A/B on the scratch VM.
153
+
154
+ `dispatch_log` records steps 1–10 complete. The `variants` table holds only 6
155
+ rows: **seed, if-003, if-008, if-009, if-010 and if-011 were evaluated but
156
+ their DB rows never landed.** Their trajectories, git tags and builder logs are
157
+ all present, so they are fully auditable; their lineage below was recovered
158
+ from each tag's commit subject, and they are listed in
159
+ `MANIFEST.json → db_orphan_variants`. Their `step` and `val_score` fields are
160
+ empty in the DB-derived tables — the real scores are in
161
+ `results/val_matrix.csv`, computed from `result.txt`.
162
+
163
+ | step | variant | op | parent(s) | val partial | val binary | DB row |
164
+ |---|---|---|---|---|---|---|
165
+ | — | seed | — | — | 5.375 / 15 = 35.8% | 1/15 | missing |
166
+ | 1 | if-001 | mutation | seed | 5.485 / 15 = 36.6% | 1/15 | ✅ |
167
+ | 2 | if-002 | crossover | if-001 × seed | 6.125 / 15 = 40.8% | 3/15 | ✅ |
168
+ | — | if-003 | mutation | if-001 | 4.375 / 15 = 29.2% | 1/15 | missing |
169
+ | 4 | if-004 | crossover | if-001 × seed | 6.561 / 15 = 43.7% | 3/15 | ✅ |
170
+ | 5 | if-005 | mutation | if-004 | 5.790 / 15 = 38.6% | **4/15** | ✅ |
171
+ | 6 | if-006 | crossover | if-001 × if-004 | 6.220 / 15 = 41.5% | 3/15 | ✅ |
172
+ | 7 | **if-007** | mutation | if-001 | **7.197 / 15 = 48.0%** | 3/15 | ✅ |
173
+ | — | if-008 | crossover | if-005 × if-007 | 5.050 / 15 = 33.7% | **0/15** | missing |
174
+ | — | if-009 | mutation | if-006 | 4.895 / 15 = 32.6% | 1/15 | missing |
175
+ | — | if-010 | crossover | if-005 × if-002 | 5.150 / 15 = 34.3% | 2/15 | missing |
176
+
177
+ There is no step 3 row in `dispatch_log`'s variant output either; `if-003` is
178
+ the step-3 child.
179
+
180
+ ### The full archive holds one extra, incomplete variant
181
+
182
+ `qwen_syn30v15_128k_scratch-step10-redacted.zip` contains a **12th** variant,
183
+ `if-011`, with only **2 of 45** `result.txt` files. It appeared on disk between
184
+ the slim and full packaging runs and was picked up mid-evaluation. **Do not read
185
+ it as a result.** The slim archive holds the 11 complete variants only. The
186
+ archive name reflects the last completed dispatch step (10).
187
+
188
+ Other facts: 3,932 trajectory files, 458 held-out files across 52 tasks / 133
189
+ runs / 0 rerun pairs, and **37 val runs truncated**.
190
 
191
+ ---
 
192
 
193
+ # Run 3 — `qwen_syn30v15_128k-bare`: no shadow interface
194
 
195
+ The floor the whole experiment is measured against. Prime Agent with **nothing
196
+ deployed to the VM**: no shadow interface, no `setup.sh`, no eval constraints,
197
+ and the stock `NO_TOOL_SYSTEM_PROMPT` instead of `TOOL_SYSTEM_PROMPT`.
198
+
199
+ Three consequences:
200
 
201
+ 1. `--no_tool` moves the action space, and with it the output directory, to
202
+ `shadow_eval_no_tool/`. A reader that hardcodes the `shadow_eval/` prefix
203
+ reports this run as empty.
204
+ 2. The leak guard is off. A baseline has no training set to leak from, and the
205
+ point is to cover `val_15` too, so the number is comparable to the 108-task
206
+ denominator.
207
+ 3. **The proxy is off** for this run, unlike Runs 1 and 2 — the orchestrator is
208
+ already in the US, and a controlled probe showed the proxy changes no score
209
+ while placeholder credentials only force failures.
210
 
211
  ```
212
+ 108 held-out tasks | 190 runs | 6 rerun pairs | 935 files
213
+ 115 runs carry a score: mean 0.3845, 17 at full credit
214
  ```
215
 
216
+ Batches: `osworld_v2_full_108` (55), `osworld_v2_bare_remaining` (92),
217
+ `osworld_v2_bare_imputed_rerun` (1), and `_aborted_hku` (42 — an abandoned
218
+ attempt against the pinned host, kept and prefixed).
219
 
220
+ **Read this before claiming the evolution works.** The bare floor's partial
221
+ mean of 0.3845 sits inside the 0.29–0.48 band that every evolved variant in
222
+ Runs 1 and 2 occupies. The task sets and denominators differ, so this is not a
223
+ head-to-head — but `results/heldout_matrix.csv` now carries a bare column, and
224
+ aligning on the shared tasks is the comparison that decides whether an evolved
225
+ interface beats having no interface at all.
226
 
227
+ ---
228
 
229
+ # Archive structure
 
 
 
 
 
 
 
 
 
230
 
231
+ Every archive unpacks to one directory named `<namespace>-<UTC timestamp>/`.
 
 
 
232
 
233
+ ```
234
+ <namespace>-<timestamp>/
235
+ ├── MANIFEST.json provenance and self-description — read this first
236
+ ├── config/ what was run
237
+ ├── db/ the evolution SQLite database
238
+ ├── results/ derived tables (read these second)
239
+ ├── interfaces/ the evolved code, per variant, plus a git bundle
240
+ ├── builder_logs/ one JSONL per builder invocation
241
+ ├── logs/console.log the orchestrator's own output
242
+ ├── trajectories/ <variant>/<task>/ — val + synthetic-train runs
243
+ └── trajectories_heldout/ <variant>/<task>/<eval set>__<stamp>/ — held-out runs
244
  ```
245
 
246
+ ## `MANIFEST.json`
 
 
247
 
248
+ | key | meaning |
249
  |---|---|
250
+ | `namespace`, `created_utc`, `eval_model` | which run, packaged when, scored by which model |
251
+ | `variants` | rows from the DB: `id`, `origin`, `step`, `parent_id`, `parent_b_id`, `score`, `val_score`, `tag` |
252
+ | `db_orphan_variants` | variants archived from disk that have **no DB row** (Run 2) |
253
+ | `val_task_ids` | the 15 graded task ids |
254
+ | `task_cap_seconds` | the per-task wall clock (7200) used to flag truncated runs |
255
+ | `truncated_val_runs` | how many val runs hit that wall clock |
256
+ | `held_out_tasks` / `_runs` / `_rerun_pairs` | held-out coverage; rerun pairs are the only direct measure of harness noise here |
257
+ | `redacted`, `redactions` | whether redaction ran, and how many substitutions per rule |
258
+ | `slim`, `recordings_included` | which variant of the archive this is |
259
+ | `run_config` | the full launch configuration |
260
 
261
+ ## `config/`
 
262
 
263
+ `run_config.json` (full command line, models, timeouts, scheduler, parent
264
+ selection, concurrency, AWS region/subnet/security group, seed SHA-256s),
265
+ `eval_sets/osworld_v2_val_15.json`, `eval_sets/synthetic_train_30.json`, and
266
+ `seed_context_compaction.json` (`context_window_tokens`, `reserve_tokens`,
267
+ `keep_recent_tokens`).
268
 
269
+ ## `db/`
 
 
270
 
271
+ `shadow_evolution_osworld_v2_<namespace>.db`, SQLite. Tables: `variants`,
272
+ `eval_results` (per variant per task), `cost_events`, `dispatch_log`,
273
+ `history`, `islands`, `eval_sets`, `val_set`.
274
 
275
+ ```sql
276
+ select id, origin, step, parent_id, parent_b_id, round(val_score,4)
277
+ from variants order by rowid;
278
  ```
279
 
280
+ `eval_sets` is empty in these runs — that table was never written; the task
281
+ sets live in `val_set` and in `config/eval_sets/`.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
282
 
283
+ ## `results/`
284
+
285
+ Generated at packaging time from the trajectories, so they agree with the raw
286
+ files by construction.
287
+
288
+ | file | contents |
289
+ |---|---|
290
+ | `val_matrix.csv` | 15 rows, one per val task, one column per variant |
291
+ | `variants.csv` | lineage and final scores |
292
+ | `truncated_runs.csv` | **read this before interpreting any zero** |
293
+ | `heldout_runs.csv` | one row per (variant, run, task) — reruns included |
294
+ | `heldout_matrix.csv` | each task resolved to one score per variant, latest run wins |
295
+ | `heldout_reruns.csv` | tasks run more than once, with `abs_delta` |
296
+
297
+ ## `interfaces/`
298
+
299
+ A git bundle carrying every variant tag **and the commit graph**, plus flat
300
+ per-variant snapshots of `shadow_interface/`. The bundle is authoritative — it
301
+ shows how each variant was derived from its parent, which the snapshots cannot.
302
+
303
+ ```bash
304
+ git init evolved && cd evolved
305
+ git fetch ../<namespace>-<timestamp>.bundle 'refs/tags/*:refs/tags/*'
306
+ git log --oneline --graph --all
307
+ git diff evol/<ns>/seed evol/<ns>/if-001 -- shadow_interface
308
  ```
309
 
310
+ The bundles here record a complete history, including the upstream OSWorld
311
+ commits the seed was cut from.
312
 
313
+ ## `trajectories/` and `trajectories_heldout/`
 
314
 
315
+ Each task directory holds `result.txt` (the score, one float), `result.json`
316
+ (grading detail including safety checks), `traj.jsonl` (one-line run summary
317
+ with `elapsed_seconds`, `hitl_turns`), `claude_trajectory.jsonl` (**the raw
318
+ transcript** — omitted from slim archives), `claude_stderr.log`,
319
+ `exit_code.txt` (**124 means the wall clock killed it**), `instruction.txt`,
320
+ `env_spec.json`, and sometimes `phase_results.json` or `failure.json`.
321
 
322
+ Token accounting lives on each `turn_end` event:
323
 
324
  ```json
325
  {"input": 5179, "output": 137, "cacheRead": 0, "cacheWrite": 0,
 
327
  ```
328
 
329
  `cost` is zero throughout: the model is a self-hosted deployment that declares
330
+ zero per-token price. That is structural, not a measurement gap. Counting
331
+ `turn_start` events gives the step count.
 
 
 
 
 
 
 
 
 
 
332
 
333
+ A `failure.json` **next to a `result.txt`** means a later retry succeeded and
334
+ the failure record is stale; only a `failure.json` with **no** `result.txt` is a
 
 
 
335
  real gap.
336
 
337
  ---
338
 
339
  # Caveats
340
 
341
+ Beyond the two setting-level limits above, five things are easy to read wrong.
342
+ All are recorded in `MANIFEST.json`.
343
+
344
+ **1. Synthetic `s_*` tasks are UNGRADED** — constant zero by construction,
345
+ `verification: dummy_constant_zero`. Their `result.txt` is always `0.0`, so the
346
+ `train` score is `0.000` for every variant in Runs 1 and 2 and carries no
347
+ information. Only the 15 val ids are graded, and the denominator is the full
348
+ val set even when fewer finished.
349
 
350
+ **2. A truncated run is not a capability zero.** A task cut off by the 2 h
351
  per-task wall clock exits **124** (or reports `elapsed_seconds` above 7200),
352
  writes a **real score** — almost always `0.000` — and writes **no
353
+ `failure.json`**, so infra-failure checks cannot see it. 27.1% of Run 1's val
354
+ runs were truncated. `results/truncated_runs.csv` lists every one.
355
+
356
+ **3. The context window is inside the evolvable interface.** Because
357
+ `context_window_tokens` lives in `shadow_interface/context_compaction.json` and
358
+ that file is listed as evolvable, **a child variant can change its own context
359
+ window.** Neither run is a fixed-window single-variable experiment.
360
+
361
+ **4. The seed was not re-evaluated.** Its 45 task directories were copied in
362
+ from two earlier 128K runs rather than measured again, so the seed row is not
363
+ comparable to its children on the truncation axis. Both runs' seeds report the
364
+ same 5.375, which is that same cached measurement.
365
+
366
+ **5. `val` at n=1 cannot resolve this ladder.** Each variant's fitness is one
367
+ run of 15 tasks. Across this project's earlier runs the spread between repeated
368
+ evaluations of the *same* parent pair reached 1.64 points on the same 15-task
369
+ scale — wider than most of the gaps in the tables above. Independent evidence:
370
+ in the project's `prime25v15r4` run, the two variants that also received a
371
+ 68-task held-out evaluation ranked **in the opposite order** on the larger set
372
+ (`if-006` 62.4% vs `if-008` 51.7%) from how they ranked on `val_15`. Treat
373
+ single-variant val differences here as noise unless a held-out set confirms
374
+ them.
375
 
376
  ---
377
 
378
+ # Adding a run to this repo
 
 
 
 
 
 
 
379
 
380
+ The archives are produced by the `evo-archive` skill in the source repository:
381
+ `package_experiment.py` builds the zip from an allowlist of filenames (never a
382
+ directory sweep) with redaction on by default, and `upload_experiment.py`
383
+ scans the result and refuses to upload if it finds a credential shape.
384
+ Archives are keyed by namespace and name, so adding one overwrites nothing.