Ch 2 run: collapse the chain
==========================================================================
model    : claude-opus-4-6
started  : 2026-09-08T00:08:42+00:00
tickets  : 10    queues: billing, auth, bug, general

The answer key is the author's judgement, written before `single` was
run. A reader's key may differ, and the exercise asks them to write
their own. Disagree with a row, not with the total.

   1. billing  I was charged twice for the same month.
      double charge - money, unambiguous
   2. billing  Money left my account and I do not know why.
      unexplained debit - the Ch 1 paraphrase; still money, so billing
   3. auth     Password reset email never arrives. I have checked spam.
      password reset email - account access
   4. bug      After the update the app closes as soon as I open it.
      crashes on open after update - software behaving incorrectly
   5. auth     Locked out since yesterday, it keeps saying session expired.
      locked out, session expired - account access
   6. bug      The export button spins forever and then nothing downloads.
      export hangs and downloads nothing - a broken feature
   7. billing  Can you tell me when my plan renews?
      when does my plan renew - a billing question, not a fault
   8. bug      Getting a 500 on the reports page, started this morning.
      500 on a page - an error
   9. billing  I cancelled last month and was billed anyway.
      cancelled and billed anyway - money
  10. general  Not sure who to ask, but our team cannot see the shared folder.
      team cannot see a shared folder - permissions; arguable against auth, and the one I expect to disagree with a reader

--------------------------------------------------------------------------
chain, three calls per ticket
--------------------------------------------------------------------------
   1. MISS  got '**billing**' key 'billing'
   2. MISS  got '**billing**' key 'billing'
   3. OK   got 'auth'       key 'auth'
   4. MISS  got '**bug**'    key 'bug'
   5. MISS  got '**auth**'   key 'auth'
   6. MISS  got '**general**' key 'bug'
   7. OK   got 'billing'    key 'billing'
   8. OK   got 'bug'        key 'bug'
   9. MISS  got '**billing**' key 'billing'
  10. OK   got 'general'    key 'general'

--------------------------------------------------------------------------
single, one call per ticket
--------------------------------------------------------------------------
   1. OK   got 'billing'    key 'billing'
   2. OK   got 'billing'    key 'billing'
   3. OK   got 'auth'       key 'auth'
   4. OK   got 'bug'        key 'bug'
   5. OK   got 'auth'       key 'auth'
   6. OK   got 'bug'        key 'bug'
   7. OK   got 'billing'    key 'billing'
   8. OK   got 'bug'        key 'bug'
   9. OK   got 'billing'    key 'billing'
  10. OK   got 'general'    key 'general'

--------------------------------------------------------------------------
result
--------------------------------------------------------------------------
  chain   4/10 matches   30 calls (3 per ticket)
  single  10/10 matches   10 calls (1 per ticket)

  disagreements between the two versions:
    ticket 1: chain '**billing**', single 'billing', key 'billing'
    ticket 2: chain '**billing**', single 'billing', key 'billing'
    ticket 4: chain '**bug**', single 'bug', key 'bug'
    ticket 5: chain '**auth**', single 'auth', key 'auth'
    ticket 6: chain '**general**', single 'bug', key 'bug'
    ticket 9: chain '**billing**', single 'billing', key 'billing'

  scored again after stripping non-letters, which separates a wrong
  queue from a right queue wearing markdown:
    chain   4/10 exact -> 9/10 normalised
    single  10/10 exact -> 10/10 normalised

  values returned that are not one of the four queue names:
    [(1, '**billing**'), (2, '**billing**'), (4, '**bug**'), (5, '**auth**'), (6, '**general**'), (9, '**billing**')]
    chain  6/10
    single 0/10
    A caller doing QUEUE_HANDLERS[route(ticket)] raises KeyError on
    every one of those. Ch 1's Before/After predicts exactly this.

--------------------------------------------------------------------------
token usage
--------------------------------------------------------------------------
  chain:summarize     10 calls  in    296  out    219
  chain:candidates    10 calls  in    429  out    488
  chain:pick          10 calls  in    668  out     52
  single              10 calls  in   1206  out     40
  TOTAL               40 calls  in   2599  out    799

  anthropic 1.2.0, python 3.12.13, macOS-14.8.1-x86_64-i386-64bit
finished : 2026-09-08T00:10:06+00:00
