Lesson 022: Adapter vs prompt calculus
Focus
Document interfaces between retrieval, prompts, and policy engines. Token Adapter vs prompt calculus:22 keeps neighbouring lessons differentiable.
Key ideas
- Thread: Adapter vs prompt calculus · drill v2 · spin
62608. - 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 | 8d |
| prompt_hash | policy-defined |
| completion_excerpt | 24h hot |
Mask tier `pii-v1` before persistence.
Practice
Practice Pair with security on one prompt-injection tabletop scenario. — 22 Bump 16.