Item 5 of the owner's beta.6 list: after the USB drive's letter changed
and changed back (H: on 2026-09-22 morning, D: after the reboot), the
library showed two entries side by side for the games played from it, and
the relocator's NOT EXISTS refused every move onto the other entry's path
- 5,675 "could not be moved" lines that day.
D26 (owner): two entries for one executable merge, in the Agent.
- ExecutableRelocator: a same-bytes move refused because another library
entry holds the path becomes a merge (IGameMerge / SqliteGameMerge, one
transaction; GameMergePlan picks the entry made first, a tie keeping the
lower id). Sessions are re-parented before the dropped row is deleted
(sessions.game_id cascades), the survivor takes the path after (UNIQUE).
A block either carried is kept (hooking off), a crash auto-disable still
in force is kept, crash counts add; no consent moves between the rows -
hook_enabled only ever goes to 0. The merge re-reads both rows in the
transaction and writes nothing unless they are as planned.
- It waits while a session of either entry runs (CaptureOrchestrator.
IsRecording) or waits in a .partial to be recovered (IPartialSessionStore.
PendingGameIds, read beside a running writer with FileShare.ReadWrite).
- Never with an entry removed from the library; other bytes under a twin
are not merged - the log says once which entry to remove.
D27 (owner): when the only file at the entry's path on another letter has
other bytes (updated meanwhile), the entry follows it through the Change
executable write: hooking off, consent cleared, block kept. The watcher's
adopt follows the same rule.
Also:
- LibraryImporter no longer adds a twin: a store executable that is a
library entry's path on another letter, with that entry's file gone, is
shown "In the library under another drive letter" (Import_Note_Moved,
en/vi/ja) and skipped at import.
- DetectionSweep does not call a merged-away entry unreadable.
- DetectionHostedService catches DbException: a service that throws stops
the Agent's host, and a busy ledger is a retry.
Tests: relocator (merge, survivor choice, busy, refused merge, removed
owner, other bytes not merged, D27 sweep and watcher, ambiguity), plan,
SqliteGameMerge on a real ledger (sessions re-parented, block and
auto-disable carried or not, no consent moved, nothing written when a row
changed), sweep, importer, import review, .partial headers beside a
writer. Docs: 19_SAFETY, 06_DATA_MODEL, HANDOFF D24 done + D26/D27 + traps,
CHANGELOG.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
LibraryImporter over four IStoreLibrarySource adapters: Steam
(libraryfolders.vdf + appmanifest_*.acf through a ValveKeyValues
reader), GOG (the HKLM registry keys, read-only, under whichever hive
and key a caller names), Epic (Manifests\*.item), itch (gzipped
receipts). Steam and itch do not name the game's executable:
ExecutableLocator walks three levels, drops helpers by name fragment
and takes the largest -- a guess the review marks as such.
File > Import library... shows the checklist, adds what was ticked
exactly as File > Add game... would -- hooking off, FR-1.2 -- and
writes the store's platform, id and version through the new
IGameRepository.ApplyStoreMetadataAsync under the same provenance rule
as a detection write. Nothing is launched, nothing is fetched.
Tests: ValveKeyValuesTests, StoreLibrarySourcesTests,
LibraryImporterTests, ImportLibraryFlowTests, SqliteGameRepositoryTests.
15 App strings en/vi/ja. Docs: 05_DETECTION, 06_DATA_MODEL, 08_UI,
14_TESTING, HANDOFF, 15_ROADMAP, CHANGELOG.
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>