The doc_optimize body moved from automation/src/lib.rs to documents.rs upstream; the target_bytes ladder is re-applied there. The parity evidence keeps upstream's new optimize_ui path and adds the target-size test.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>