python    : 3.12.3
anthropic : 1.2.0
pydantic  : 2.13.5
model     : claude-opus-4-6

========================================================================
A. REAL CALLS: Before -- Chapter 1's untyped route(), ten tickets
========================================================================
  [ 1] 'billing'                      in QUEUES: True
  [ 2] 'billing'                      in QUEUES: True
  [ 3] 'auth'                         in QUEUES: True
  [ 4] 'bug'                          in QUEUES: True
  [ 5] 'auth'                         in QUEUES: True
  [ 6] 'bug'                          in QUEUES: True
  [ 7] 'billing'                      in QUEUES: True
  [ 8] 'bug'                          in QUEUES: True
  [ 9] 'billing'                      in QUEUES: True
  [10] 'auth'                         in QUEUES: True

  10/10 outputs were exactly one of QUEUES with no cleanup.

========================================================================
B. REAL CALLS: After -- typed route() via messages.parse(), ten tickets
========================================================================
  [ 1] 'billing'                      raised: False
  [ 2] 'billing'                      raised: False
  [ 3] 'auth'                         raised: False
  [ 4] 'bug'                          raised: False
  [ 5] 'auth'                         raised: False
  [ 6] 'bug'                          raised: False
  [ 7] 'billing'                      raised: False
  [ 8] 'bug'                          raised: False
  [ 9] 'billing'                      raised: False
  [10] 'auth'                         raised: False

  10/10 calls returned a typed queue. 0/10 raised instead of returning a wrong shape.

========================================================================
C. REAL CALL: deliberate truncation on TicketRoute (max_tokens=3)
========================================================================
  RAISED ValidationError
    1 validation error for TicketRoute
      Invalid JSON: EOF while parsing a string at line 1 column 10 [type=json_invalid, input_value='{"queue":"', input_type=str]
        For further information visit https://errors.pydantic.dev/2.13/v/json_invalid
  e.errors(): [{"type": "json_invalid", "loc": [], "msg": "Invalid JSON: EOF while parsing a string at line 1 column 10", "input": "{\"queue\":\"", "ctx": {"error": "EOF while parsing a string at line 1 column 10"}, "url": "https://errors.pydantic.dev/2.13/v/json_invalid"}]

========================================================================
Writing artifact
========================================================================
  wrote ch3-router-typed.jsonl

Rename both this script's stdout (tee it) and the .jsonl with today's date to match the repo's naming convention, e.g. ch3-router-typed-2026-09-10.txt / .jsonl
