Repository navigation
Reuse source discovery during translation candidate checks - #938
Merged
Merged
Conversation
Current translated pages share the inventory already discovered by their validation pass. Each candidate still checks its source path and hash at use; standalone calls discover their own inventory. 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
Translation validation reuses its discovered source membership when checking current outputs, while rechecking each source path and hash.
Why
Each current translated output enumerates the tracked source set again even though its validation pass already has that inventory. Pass the existing membership snapshot to candidate validation instead of repeating repository discovery for each output.
Scope and risk
Change two functions in the translation lifecycle validator and add seven focused regression cases. Standalone candidate checks still discover their own inventory. Current candidates check source membership, a regular source path, the source hash and model before comparing content. A new validation pass discovers source additions and removals.
Only membership is reused within a pass; source bytes and path-safety results are not cached. The snapshot is not an atomic filesystem reservation. Link checks, English fallback validation, source-origin handling and output generation retain their existing behavior.
Compatibility, rollout and rollback
Tests
AI assistance in the code
AI-generated: Codex wrote the validator change and tests. Source membership, path safety, freshness and test boundaries were checked.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist