Skip to content

Self-hosted, Self-Improving, Federated Everything App — dev management, agent orchestration, persistent mind, digital twin, second brain, and creative pipeline from a single dashboard over Tailscale to port the user into the OS

docs: correct migration 220's note on why non-matching records stay unstamped (#3311)

[._.]/ Adam Eivy88ca6fa1874e
diff --git a/scripts/migrations/220-backfill-media-collection-source.js b/scripts/migrations/220-backfill-media-collection-source.js
index 905ff1d246..495a3b0e48 100644
--- a/scripts/migrations/220-backfill-media-collection-source.js
+++ b/scripts/migrations/220-backfill-media-collection-source.js
@@ -27,9 +27,12 @@
*
* Deliberately NOT written:
* - `source: 'user'` on non-matching records. The client treats an ABSENT
- * stamp as "fall back to the marker heuristic", which returns false for
- * exactly these records — identical behavior with no extra writes, and no
- * risk of freezing a misclassification.
+ * stamp as "fall back to the marker heuristic" — which is exactly the
+ * classification those records get today — so stamping them would add
+ * writes without changing behavior, while freezing an answer the heuristic
+ * would otherwise re-evaluate (a name-only match is the case that matters:
+ * it stays auto until the user renames the collection, and then correctly
+ * stops being auto).
* - Tombstones (`deleted: true`). `deleteCollection` clears the owner links
* and items; nothing renders a tombstone, and rewriting one only adds sync
* noise.