Skip to content

Make profile directory changes safe for in-flight files #843

Description

@StuartFerguson

Parent issue: #801

Objective

Ensure profile directory changes do not orphan, misroute, or lose files already accepted under an earlier profile version.

Scope

  • Resolve processed and failed directories from the file's recorded profile version.
  • Update in-progress recovery to use historical profile-version directory information.
  • Ensure old in-progress files remain discoverable after a directory change.
  • Define and implement the retention/cleanup behavior for old directories.
  • Add tests for old, current, processed, failed, and recovered files.

Dependencies

Acceptance criteria

  • Existing files continue using the directories from their recorded profile version.
  • New files use the new active profile version directories.
  • Recovery can locate files in directories belonging to historical versions.
  • A directory update cannot silently move an accepted file to a newer profile's directory.
  • Directory behavior is covered by integration tests.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions