Files
romm/backend/utils
Georges-Antoine AssiandClaude Opus 5.5 9ecf0656a9 refactor(scan): move missing-ROM matching out of the scan socket (#5861)
* refactor(scan): move missing-ROM matching out of the scan socket

Follow-up to #5795, addressing the review findings left open there.

The scan socket decided which filenames may identify a moved ROM and
named the identity that matched, which is scan logic living in an
endpoint. That logic now sits in handler/scan/reassociation.py:

- find_shared_fs_names lists the filenames several discovered files use.
- find_missing_rom calls get_matching_missing_rom with the parsed
  hashes and title id, and withholds a shared filename.
- matched_identity (was _reassociation_match) names the matched tier.

The socket only calls them. Behavior is unchanged.

The get_matching_missing_rom docstring drops its rationale to one
sentence plus Returns, keeping the title id reason as a short comment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011waFLHbtEToaZiMegnE1D2

* chore(pegasus): describe the owned-keys rule without naming the product

Addresses the review finding left open on #5825: the comment on
ROMM_OWNED_GAME_KEYS made the product the actor. It now states what the
merge does with these keys.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011waFLHbtEToaZiMegnE1D2

---------

Co-authored-by: Claude <noreply@anthropic.com>
2026-12-04 06:38:17 -05:00
..
2026-07-06 22:17:56 -04:00