import { VersionInfo } from '@start9labs/start-sdk'

// Entity-resolution fix for the people double-count (1406) and the runaway
// duplicate-review queue (676). Grid contacts now link back to their existing
// contacts-table person by provable keys only (exact email, or exact name within
// the same investor) and never mint a duplicate person on a miss; leftover grid
// "twins" and superseded pre-:48 rows are soft-deleted (enrichment-protected,
// audited); re-emitted ids are un-tombstoned. Run "Build search index" after
// upgrading to recompute the canonical layer. No data migration.
export const v_0_1_0_51 = VersionInfo.of({
  version: '0.1.0:51',
  releaseNotes: {
    en_US: [
      'Fixes the inflated People count and the oversized duplicate-review queue:',
      'grid contacts now resolve to their existing contact record instead of being',
      'duplicated, and leftover duplicate "twins" are cleaned up safely (enriched',
      'records are never dropped). Run "Build search index" after upgrading to',
      'refresh the numbers.',
    ].join(' '),
  },
  migrations: { up: async () => {}, down: async () => {} },
})
