Covers cross-provider protocol repairs: routing tool results back to the right function name for Gemini, decoding attached documents in any runtime, embedding-cache behavior across calls and resets, and normalizing broken tool transcripts before strict providers reject them.

## Before writing SPEC.md files

Read https://raw.githubusercontent.com/brillout/sdd/refs/heads/main/sdd.md
