Skip to content

Conversation

@ChrisPenner
Copy link
Member

@ChrisPenner ChrisPenner commented Nov 15, 2025

Overview

  • Adds a task which loads and hash-validates all terms which have more than a single component element.
  • Uses the new Incomplete Element Ordering error to reject problematic components from Share.

Test coverage

Nah

@ChrisPenner ChrisPenner changed the title Background Task to validate all components [NO MERGE] Background Task to validate all components Nov 17, 2025
case err of
Right e -> throwError e
Left (HH.IncompleteElementOrderingError (ComponentHash hash)) ->
throwError $ Sync.InvalidByteEncoding (Hash32.fromHash hash) Sync.TermComponentType "Incomplete element ordering in term components"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unfortunately we don't have a more generic spot for this failure so it goes here.

@ChrisPenner ChrisPenner marked this pull request as ready for review November 19, 2025 19:58
@ChrisPenner ChrisPenner changed the title [NO MERGE] Background Task to validate all components Background Task to validate all components Nov 19, 2025
@ChrisPenner ChrisPenner changed the title Background Task to validate all components Background Task to validate all components and reject invalid components from sync Nov 19, 2025
@ChrisPenner ChrisPenner merged commit c211a2a into main Nov 21, 2025
10 checks passed
@ChrisPenner ChrisPenner deleted the task-validate-all-components branch November 21, 2025 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants