Lesson 070: Structured output contracts
Focus
Document interfaces between retrieval, prompts, and policy engines. Token Structured output contracts:70 keeps neighbouring lessons differentiable.
Key ideas
- Thread: Structured output contracts · drill v10 · spin
168786. - Habit: attach a trace_id to every completion you would paste into an ops dashboard.
- Guardrail: add one RACI bullet for prompt or index changes before tomorrow's standup.
Deep dive notebook
Synthetic drill artefacts
Red-team tableau
1. Actor **contractor**
2. Injection `INJECT-387`
3. Detector `policy-tier-2` → pager `llmops-oncall-3`
4. Log fields `trace_id,tenant_id,redaction_tier`
Practice
Practice Pair with security on one prompt-injection tabletop scenario. — 70 Bump 24.