Lesson 017: Prompt contract literacy
Focus
Document interfaces between retrieval, prompts, and policy engines. Token Prompt contract literacy:17 keeps neighbouring lessons differentiable.
Key ideas
- Thread: Prompt contract literacy · drill v7 · spin
106070. - 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
Logging contract
| Field | Retention |
|-------|-----------|
| trace_id | 24d |
| prompt_hash | policy-defined |
| completion_excerpt | 24h hot |
Mask tier `pii-v2` before persistence.
Practice
Practice Pair with security on one prompt-injection tabletop scenario. — 17 Bump 14.