Files
ukmesh/docs/deferred-migrations
gadgethd 882777eae7 Merge origin/main into deployed tree; reconcile all 52 conflicts
Preserve deployed behavior and adopt main fixes. Full per-file decisions and
checksum proof: docs/reviews/20261025-merge-ledger.md.

Resolved 52 paths:
- .env.example
- .gitignore
- backend/package.json
- backend/src/api/contracts.ts
- backend/src/api/routes/misc.ts
- backend/src/api/routes/owner.ts
- backend/src/api/routes/ownerPacketSharing.test.ts
- backend/src/api/routes/regions.test.ts
- backend/src/api/routes/regions.ts
- backend/src/db/index.ts
- backend/src/db/packetBatch.integration.test.ts
- backend/src/db/packetBatch.test.ts
- backend/src/db/packetBatch.ts
- backend/src/db/packetInput.ts
- backend/src/health/status.ts
- backend/src/health/statusIntegrity.test.ts
- backend/src/index.ts
- backend/src/metrics.test.ts
- backend/src/mqtt/client.ts
- backend/src/mqtt/statusTelemetry.test.ts
- backend/src/mqtt/statusTelemetry.ts
- backend/src/owner/ownerLastHopPrewarm.ts
- backend/src/owner/packetShareForwarder.ts
- backend/src/owner/publicFeedForwarder.test.ts
- backend/src/owner/publicFeedForwarder.ts
- backend/src/owner/publicFeedRepository.ts
- backend/src/ram/liveRead.ts
- backend/src/ram/liveStore.test.ts
- backend/src/ram/runtime.integration.test.ts
- backend/src/ram/writerRuntime.ts
- backend/src/repositories/nodes.ts
- backend/src/spam/cluster.test.ts
- backend/src/spam/cluster.ts
- backend/src/spam/config.ts
- backend/src/tools/rebuildRegionParticipation.ts
- backend/src/workers/alert-receiver.test.ts
- backend/src/workers/alertDeliveryQueue.ts
- backend/src/workers/privacy-rematerialization.ts
- backend/src/ws/server.ts
- backup-receipts/latest.json
- backup-receipts/latest.json.sig
- docker-compose.yml
- docs/openapi.yaml
- docs/spam-detection.md
- frontend/src/components/Map/RegionsMap.tsx
- frontend/src/components/Map/regionOverlay.test.ts
- frontend/src/components/Map/regionOverlay.ts
- frontend/src/pages/RegionsPage.tsx
- frontend/src/pages/regions-page.css
- frontend/src/pages/regionsModel.ts
- rf-coverage/config.ukmesh.yaml
- tagger-worker/Dockerfile

Validation: backend tsc; 673 tests, 670 pass, 0 fail, 3 DB skips; frontend
tsc/build; default frontend 166 tests, 0 fail (10 opt-in browser skips);
contract:check; fixture-only Compose config and adoption tests.
2026-10-25 04:30:19 +00:00
..

Deferred migrations

Migrations in this directory are not part of the applied migration chain and are not copied into the runtime image's migration directory. They are kept here so contributor work is not lost while the live deployment remains the schema of record.

057_node_status_sample_status.sql

  • Source: main (PR #114, re-landed 2026-10-03).
  • Content: ALTER TABLE node_status_samples ADD COLUMN IF NOT EXISTS status TEXT;
  • Why deferred: the live database (60-row ledger) does not have this migration applied and the node_status_samples.status column does not exist. Including it at 057 would have collided with 057_region_scope_participation.sql and changed the schema on the next deploy.
  • Reconciliation 2026-10-25: the identical SQL is present as 061_node_status_sample_status.sql; the live read-only ledger confirms 061 is already applied with its repository checksum. Keep this historical copy outside the runtime chain. See docs/reviews/20261025-merge-ledger.md.