Skip to content

[P3] Extract border research orchestration into a testable state machine #367

Closed

Description

@Alkwer

Priority

P3 - complex partial-failure behavior is concentrated in a large React hook without direct orchestration tests.

Finding

useBorderRollResearch coordinates two persistent stores, submission transport, AbortController lifecycle, sampling, finish, retry, reset, archive, and UI messages. borderRollSubmission similarly combines queue model, migration, storage, and HTTP.

Acceptance criteria

  • Express queue and research transitions as a pure reducer or state machine outside React.
  • Give storage and transport explicit injectable interfaces.
  • Cover failure of each finish, send, archive, and retry step, including restart recovery.
  • Keep the hook focused on mapping service state into React.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions