Lion Cipher Lab

Engineer the context you hand a subagent: five assembly policies over a pile of host-compromise evidence, and the measured point where adding more evidence makes the verdict worse

Why it matters

A subagent gets a fresh, empty context window. That is the whole point of it, and it is also the moment the interesting question starts, because an empty window is a blank cheque and somebody has to decide what to spend it on. Watch what people actually do: they pass everything. The host's alerts, its process tree, a fortnight of netflow, the asset record, every prior ticket — dump it in, the window is big, let the model sort it out. On the 240-host compromise-assessment corpus you are about to generate, passing everything scores an accuracy of 0.692. Calling every single host benign without…

What you'll learn

Steps in this lab

  1. The words first: context window, token, context engineering, budget, recency, relevance, summarisation, lost-in-the-middle, precision, recall, inverted-U
  2. Open a terminal and make a scratch folder (all three operating systems)
  3. Generate 240 compromise-assessment cases whose answers you already know
  4. Build the assembly stage — and look at what each policy actually hands over
  5. The reader is a DETERMINISTIC STUB — read this before you paste it
  6. The scorer: accuracy, precision and recall on the compromised class
  7. The baseline: pass everything, and watch it barely beat doing nothing
  8. The sweep: five policies, ten budgets, 12,000 decisions — and the inverted-U
  9. Accuracy per token, and the rule you leave with
  10. The honest negative: summarising what you dropped is worse than dropping it
  11. Lost in the middle, on purpose — then price the cheapest defence there is
  12. Structured facts: the cheapest policy in the lab, and the ceiling it comes with
  13. What to drop first, and why — an ablation instead of a taste
  14. When NOT to do this, and why this rather than that
  15. The way a pro does it
  16. OPTIONAL appendix: swap the stub for a real local model

Open the full interactive lab →