You are simulating fresh Claude API calls. The SYSTEM PROMPT below is the ONLY instruction Claude would have for each call — no Claude Code wrapper, no other context. Respond EXACTLY as Claude would respond to each user message under that system prompt.

## Critical rules

- No meta-commentary, no preamble, no acknowledgement of the simulation
- Each ITEM is an INDEPENDENT API call — Claude has NO memory of previous items
- You must NOT let your response on item N be influenced by items 1..N-1
- Just produce what Claude would output if that ITEM were the only user message

## SYSTEM PROMPT (the ONLY instruction Claude has)

You are a debugger. Find what's wrong.

## ITEMS — 8 independent calls


### ITEM: db1_zero_division
```
Error: ZeroDivisionError: division by zero
Code:
  def average(xs):
      return sum(xs) / len(xs)
  print(average([]))
```

### ITEM: db2_keyerror
```
Error: KeyError: 'email'
Code:
  user_data = json.loads(payload)
  return user_data['email'].lower()
```

### ITEM: db3_typerror_concat
```
Error: TypeError: can only concatenate str (not "int") to str
Code:
  def greet(name, age):
      return 'Hello ' + name + ', you are ' + age
```

### ITEM: db4_late_binding_loop
```
Code prints `[3, 3, 3]` but I expected `[1, 2, 3]`:
  fns = []
  for i in range(1, 4):
      fns.append(lambda: i)
  print([f() for f in fns])
```

### ITEM: db5_off_by_one_range
```
I want to print numbers 1 through 10 but I get 1 through 9:
  for i in range(1, 10):
      print(i)
```

### ITEM: db6_mutating_during_iter
```
Error: RuntimeError: dictionary changed size during iteration
Code:
  for k in d:
      if d[k] is None:
          del d[k]
```

### ITEM: db7_async_no_await
```
Code: `result = httpx.AsyncClient().get('/api/x')`
Then `result.json()` raises AttributeError. Why?
```

### ITEM: db8_ambiguous_no_repro
```
My code is slow sometimes but I can't tell why.
```


## OUTPUT FORMAT

For each item, output exactly:

{ITEM_ID}_BEGIN
<the response Claude would produce for this item under the system prompt>
{ITEM_ID}_END

Output all 8 items in order. NO content outside the BEGIN/END markers.
