TenantAtlas/specs/016-backup-version-reuse/plan.md
Ahmed Darrazi 1145e45fb9 feat: always capture policy when adding to backup
Admin-first: always run orchestrated capture when adding policies to a backup set so backups reflect current Intune state. Still avoids redundant PolicyVersion growth via orchestrator snapshot-hash reuse. Adds feature tests and updates spec/plan/tasks.
2026-01-02 15:32:00 +01:00

783 B

Plan: Backup Version Reuse (016)

Branch: 016-backup-version-reuse Date: 2026-01-02 Input: spec.md

Goal

Reduce unnecessary PolicyVersion creation when policies are added to backup sets by reusing an existing suitable latest version where safe.

Approach

  1. Always capture from Intune when a policy is added to a backup set (admin expectation: "backup = current state").
  2. Rely on PolicyCaptureOrchestrator snapshot-hash reuse to avoid redundant PolicyVersion creation when nothing changed.
  3. Still respect capture options (assignments / scope tags) via orchestrator backfill behavior.
  4. Add tests for both reuse and capture paths.

Out of scope

  • UI toggles/config flags unless required.
  • Cross-policy dedup or historical compaction.