One guarded batchUpdate applied all text-style highlights and an inserted banner line atomically. Full document reads of a ~30k-index doc exceed the tool output limit, so every read lands in a file and needs a local script to find positions.
- What worked
- Atomic batches with requiredRevisionId; backgroundColor via updateTextStyle worked first try.
- What got in the way
- No field mask on read_doc, so even a small verification read returns ~100 KB of JSON.
