Deleted Field Records Reappear in Sync Snapshots
Level 2 · node · Data · Inverted tombstone filter in snapshot generation
Scenario
A fictional field inspection synchronization service stores records by site. Deletion marks a record as deleted instead of physically removing it. Full snapshots sent to field devices should contain only active records, but deleted entries are included again, making them appear restored. Trace the repository, service, and controller.
Requirements
Exclude logically deleted records from full snapshots while retaining active entries. Preserve isolation between sites, re-creation of deleted identifiers, single-record lookup, and input validation.
Acceptance criteria
- Records marked deleted are omitted from snapshots.
- Active records remain visible in snapshots.
- Deletion in one site does not affect other sites.
- Recreating a deleted identifier restores its new value in snapshots.
- Looking up an unknown record returns null.
- Invalid sites and empty values are rejected.