{
  "status": "Illustrative acceptance plan, not an executable test suite or observed production result",
  "topic": "HealthKit deleted sample synchronization",
  "date": "2026-11-04",
  "sourceArticle": "https://aptixlabs.com/insights/healthkit-deleted-samples-sync",
  "setup": [
    "Use synthetic accounts and records",
    "Record the environment and implementation version",
    "Agree the expected product contract before testing"
  ],
  "reviewSequence": [
    "Persist source-to-local record identity",
    "Apply changes before advancing the synchronization checkpoint",
    "Invalidate summaries affected by deletions"
  ],
  "cases": [
    {
      "id": "1",
      "condition": "A deleted sample was previously imported",
      "expectedBehavior": "Its local contribution is removed",
      "observedBehavior": null,
      "status": "not_run"
    },
    {
      "id": "2",
      "condition": "Sync crashes before checkpoint commit",
      "expectedBehavior": "Replaying changes remains safe",
      "observedBehavior": null,
      "status": "not_run"
    },
    {
      "id": "3",
      "condition": "Read access is unavailable",
      "expectedBehavior": "Do not interpret an empty result as confirmed deletion",
      "observedBehavior": null,
      "status": "not_run"
    }
  ],
  "tradeoff": "A full reconciliation can be simpler for a small bounded dataset, but it may cost more work than incremental changes. Choose the approach using data size and recovery requirements."
}