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

record the accepted duplicate-card trade in the reconcile docstring

[._.]/ Adam Eivyf62ee7c8d76d
diff --git a/server/services/modelPinAuditNotifier.js b/server/services/modelPinAuditNotifier.js
index 1ca5387c13..adb4947841 100644
--- a/server/services/modelPinAuditNotifier.js
+++ b/server/services/modelPinAuditNotifier.js
@@ -147,7 +147,11 @@ async function announce(pin, providers) {
* a warning raised by any other producer is never touched. A card predating
* #7366 carries no `pinKey`; it is retracted here and re-announced under the
* new key on the same pass if the pin is still stale, so an upgrading install
- * converges on the first audit rather than needing a migration.
+ * converges on the first audit rather than needing a migration. Should that one
+ * retraction fail, the re-announcement leaves two cards for one pin — the
+ * deliberate trade for keeping the two guards independent, and self-healing:
+ * the next audit retracts the legacy card, and a Clear from the panel takes
+ * both at once (`removeByMetadata` matches every card sharing the `pinId`).
*/
async function reconcile(stalePins) {
const { getNotifications, removeNotification, NOTIFICATION_TYPES } = await loadNotificationsModule();