Search papers, labs, and topics across Lattice.
This paper details the design and implementation of a recovery protocol for long-form translation systems that addresses common output failures, such as truncation and filtering. By introducing a validation mechanism that delays output release and employs typed stream events, the system can effectively distinguish between valid continuations and replacements. The protocol was rigorously tested, passing 38 public tests and demonstrating its ability to maintain translation quality while handling interruptions and ensuring provenance tracking.
A novel recovery protocol for long-form translation systems can significantly enhance output reliability, reducing unusable results from API requests.
A long-form translation request can succeed at the API layer and still produce an unusable result. The output may be empty, truncated, filtered, dominated by source or prompt material, or interrupted after producing text worth keeping. This report describes a recovery protocol developed for a deployed translation system with heterogeneous inputs and provider APIs. It delays the first visible release behind a 64-character window, validates the assembled output, and uses typed stream events to distinguish replacement from continuation. Interrupted work is retained only when a paragraph or sentence prefix can be re-derived from the source. Further attempts follow a stable model order and a shared deadline before entering a provenance-marked fallback path. A sanitized companion artifact implements the protocol and passes 38 public tests. Its fixed cases reproduce all 14 configured completion labels, contain four early-invalid prefixes before any of their 235 characters become visible, retain 31 boundary-safe characters across four interrupted streams, and satisfy the attempt, event, and provenance rules in two end-to-end scenarios. These results are executable checks of the published control flow. Translation quality and detector performance on naturally occurring outputs require a different evaluation.