Repository navigation
Retain translation origins for terminal paragraph appends - #953
Merged
Merged
Conversation
Signed-off-by: zlareb1 <[email protected]>
Site attributes accept inline and colonless forms. Keep terminal origin proof within its documented conservative paragraph subset. Signed-off-by: zlareb1 <[email protected]>
Signed-off-by: zlareb1 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog category
Changelog entry
Retain completed translation request origins when English appends ordinary paragraphs under the final heading.
Why
An appended paragraph can belong to the final original request while leaving every earlier request unchanged. The origin planner can prove that ownership from complete historical and current sources.
Scope and risk
Require both raw and prepared historical containers to be exact prefixes of their current containers. The final original request must own the last heading section and historical end of file. Accept only closed, unindented, brace-free paragraphs that leave existing parsed blocks intact. Refuse added headings, lists, tables, code, HTML, reference definitions and ambiguous site extensions.
Extend only the final original endpoint. Keep every earlier cut, separator, completion reference and byte bound. The enlarged request uses changed current input; completed current input retains its reuse priority. Tests cover the two-space ordered-list continuation and colonless or inline attributes that the site parser treats differently from CommonMark. Braces refuse even in literal added prose.
Compatibility, rollout and rollback
Tests
AI assistance in the code
AI-generated: Codex implemented the source-origin proof, regression cases and documentation. Independent internal reviews run on each pushed head.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist