Lion Cipher Lab

Propagate a deadline through an IR agent's tool calls, and measure the work it stops wasting

Why it matters

An analyst asks an AI agent a simple question during an incident: is this host compromised? The agent calls an EDR query, a threat-intel lookup, a SIEM search and maybe a sandbox. Most of the time that takes 15 seconds. Sometimes one tool stalls for a minute or two, because real systems have long tails. If nobody tracks the total time, the answer arrives after the analyst has already moved on, and the agent keeps burning tool time nobody will read. Setting a timeout on each call feels like the fix, but the timeouts add up along the plan, so the whole request is still unbounded. The pattern…

What you'll learn

Steps in this lab

  1. The question, the budget, and the words you need
  2. Open a terminal, check Python, make a folder
  3. Write the simulation: four fake tools, a stub planner, a virtual clock
  4. Measure BEFORE: no overall deadline, and the work nobody reads
  5. Tight per-call timeouts: better, and still not bounded
  6. Propagate ONE absolute deadline, cancel at the deadline, and measure AFTER
  7. Honest negative 1: a partial answer must say what it did not check
  8. Hedge the slow-tail SIEM search, and read the cost curve
  9. Honest negative 3: cancellation only stops code that cooperates
  10. When NOT to do this, and the way a pro does it

Open the full interactive lab →