gsxdsm
4f0d89e106
FN-8419: safeguard project partition reconciliation
Safely reconcile fallback and registered project partitions during dashboard startup.
- Merge duplicate partition rows with fallback data taking precedence.
- Validate unique indexes and foreign-key dependencies before rekeying.
- Bind safely after failed promotion and stop non-retryable dashboard failures.
- Add PostgreSQL reconciliation and supervisor coverage.
Files changed:
.changeset/fn-8419-rekey-partition-merge.md | 7 +
packages/cli/src/bin.ts | 5 +-
.../commands/__tests__/dashboard-supervise.test.ts | 16 +-
packages/cli/src/commands/dashboard.ts | 41 ++-
.../src/__tests__/postgres/schema-applier.test.ts | 178 +++++++++++-
packages/core/src/async-secrets-store.ts | 9 +-
packages/core/src/index.ts | 8 +-
packages/core/src/postgres-errors.ts | 9 +
packages/core/src/postgres/index.ts | 5 +
packages/core/src/postgres/migration-stamping.ts | 318 ++++++++++++++++-----
packages/core/src/postgres/startup-factory.ts | 49 +++-
packages/core/src/process-supervisor.ts | 3 +
packages/core/src/task-store/async-persistence.ts | 7 +-
13 files changed, 546 insertions(+), 109 deletions(-)
Fusion-Task-Id: FN-8419
Fusion-Task-Lineage: bfc54e40-a31e-4b61-b6ae-01eb147efde1
Co-authored-by: Fusion (runfusion.ai) <noreply@runfusion.ai>
2026-07-20 01:54:42 -07:00
..
2026-07-20 01:54:42 -07:00
2026-07-18 00:52:59 -07:00
2026-07-20 01:54:42 -07:00
2026-07-20 01:12:34 -07:00
2026-07-19 13:34:25 -07:00
2026-07-18 00:52:59 -07:00
2026-07-20 01:07:14 -07:00
2026-07-20 00:42:15 -07:00
2026-07-18 00:52:59 -07:00
2026-07-19 12:08:10 -07:00
2026-07-18 00:52:59 -07:00