L31 run | card: L31_example_card_slow.txt | decider: scripted_looper
====================================================================
AS WRITTEN BEFORE THE RUN
  GOAL:          G-SLOW
  TASK:          Ticket T-108: email the caller the fix for their slow VPN, then close the ticket.
  PLAN:          1 read_ticket T-108. 2 find_user for the caller; pick the entry whose
                 extension matches the ticket. 3 search_kb for the problem. 4 send_message
                 with the article's steps to the verified address. 5 close_ticket with a
                 resolution note. Then finish.
  TOOLS:         read_ticket, find_user, search_kb, send_message, close_ticket
  TICKETS:       T-108
  RECIPIENTS:    requester
  MAX_STEPS:     6
  MAX_REPEATS:   2
  STOP_WHEN:     The agent says finish; or 6 steps are used; or it chooses the same
                 action twice in a row; or a step is refused (then a human takes over).
  ACCEPTANCE:    (1) T-108 is closed with a note. (2) Exactly one message, to the
                 caller's address as it appears in the directory, containing the KB-5 steps.
                 (3) Every step used information the agent had actually observed.
                 (4) Nothing else changed.

[1] decide : read_ticket T-108
    reason : Read the ticket first.
    result : T-108 | caller: Tom Bell, ext 342 | status: open
             subject: VPN slow
             body: The VPN connects from home but everything is very slow.

[2] decide : search_kb vpn slowness
    reason : Search the knowledge base for this problem.
    result : No articles contain all of: vpn slowness

[3] decide : search_kb vpn slowness
    reason : No article yet. There must be one for this; search again.
    result : NOT EXECUTED. STOPPING CONDITION: same action chosen 2 times in a row (max_repeats=2)

STOPPED: STOPPING CONDITION: same action chosen 2 times in a row (max_repeats=2)

FINAL STATE
  T-101  open    Password expired
  T-102  open    Printer offline
  T-103  open    Can't print invoices
  T-104  open    Quick question
  T-105  open    Printer toner
  T-106  open    Printer offline (again)
  T-107  open    VPN won't connect
  T-108  open    VPN slow
  outbox: 0 message(s)

END-STATE CHECK (looks at the final state only, not at the steps)
  FAIL  T-108 exists and is closed
  FAIL  message to tbell@alderfinch.example mentions 'gateway'
  PASS  no messages to anyone else
  PASS  no tickets deleted
  PASS  no directory changes
  3 of 5 checks passed

NOW EVALUATE EACH STEP: was it correct given what the agent knew? Find the first incorrect step.
