Lion Cipher Lab

Give three specialist subagents typed I/O contracts — a schema at every handoff, with repair, quarantine, and a rule about what repair may never invent — then measure the silent corruption free-form handoffs ship and the good work an over-strict schema throws away

Why it matters

Split a security-alert pipeline across three specialists — one triages, one enriches, one writes the incident up — and you have created two HANDOFFS, which are two places where the pipeline can quietly become wrong. Not break. Become wrong. That distinction is the whole lab. When a database connection fails you get a stack trace, a page, and somebody looking at it within ninety seconds. When your triage specialist writes 'Could be medium, but I would lean critical given the pattern' and the enrichment specialist's regular expression grabs the first severity word it sees, nothing fails. The…

What you'll learn

Steps in this lab

  1. The words first: subagent, specialist, handoff, contract, schema, validation, coercion, quarantine, silent corruption, false reject
  2. Open a terminal and make a scratch folder (all three operating systems)
  3. Generate 240 security alerts and the answer key that makes 'wrong' a countable thing
  4. The three specialists are a DETERMINISTIC STUB — read this before you paste it
  5. The baseline: three specialists handing each other English sentences
  6. Write the schema and the validator yourself — and why not pydantic
  7. The repair rule: information-preserving and unambiguous, or it is a guess wearing a repair's clothes
  8. Run the typed pipeline: 0.0% malformed delivered, 55 loud failures — and 12 errors no contract can see
  9. One alert, both channels, every intermediate string printed
  10. The cost of the contract: strict throws away 47.1% of the queue to prevent 6 wrong write-ups
  11. Turn the rule off and count the bodies: what happens when repair is allowed to invent
  12. Versioned schemas and additive-only evolution — what a required field really costs you
  13. When a typed contract is overkill — and why this, not that
  14. The way a pro does it
  15. OPTIONAL appendix: swap the stub for a real local model

Open the full interactive lab →