Symptoms
After reloading the workbench a day later, the displayed stash diverges from what is actually on Commons:
- Photos that are in the user's Commons stash do not show up in the workbench UI.
- Photos the user previously soft-deleted (via "Discard" / "Hide") show up again.
- Some of the resurrected soft-deleted photos are flagged as duplicates of other rows — yet the duplicates were exactly what the user had soft-deleted.
Reported by Daanvr, observed in his own session on 2026-05-08 after a reload of https://upload-workbench.toolforge.org/.
Hypothesis
Durable state (soft-delete list, filename cache, item identity, duplicate-detection map) is keyed by MediaWiki's filekey. filekey is a per-stash-entry token and is not stable across stash regeneration / re-upload. sha1 (content hash) is content-defined and would be a stable identifier — the same bytes always produce the same sha1, regardless of how often MediaWiki re-issues the entry.
Investigation + fix plan
See comments below.