TenantAtlas/database/factories
ahmido da1adbdeb5 Spec 119: Drift cutover to Baseline Compare (golden master) (#144)
Implements Spec 119 (Drift Golden Master Cutover):

- Baseline Compare is the only drift writer (`source = baseline.compare`).
- Drift findings now store diff-compatible `evidence_jsonb` (summary.kind, baseline/current policy_version_id refs, fidelity + provenance).
- Findings UI renders one-sided diffs for `missing_policy`/`unexpected_policy` when a single ref exists; otherwise shows explicit “diff unavailable”.
- Removes legacy drift generator runtime (jobs/services/UI) and related tests.
- Adds one-time migration to delete legacy drift findings (`finding_type=drift` where source is null or != baseline.compare).
- Scopes baseline capture & landing duplicate warnings to latest completed inventory sync.
- Canonicalizes compliance `scheduledActionsForRule` drift signal and keeps legacy snapshots comparable.

Tests:
- `vendor/bin/sail artisan test --compact` (full suite per tasks)
- Focused pack: BaselinePolicyVersionResolverTest, BaselineCompareDriftEvidenceContractTest, DriftFindingDiffUnavailableTest, LegacyDriftFindingsCleanupMigrationTest, ComplianceNoncomplianceActionsDriftTest

Notes:
- Livewire v4+ / Filament v5 compatible (no legacy APIs).
- No new external dependencies.

Co-authored-by: Ahmed Darrazi <ahmed.darrazi@live.de>
Reviewed-on: #144
2026-03-06 14:30:49 +00:00
..
AlertDeliveryFactory.php feat(alerts): test message + last test status + deep links (#122) 2026-02-18 23:12:38 +00:00
AlertDestinationFactory.php feat(alerts): Monitoring cluster + v1 resources (spec 099) (#121) 2026-02-18 15:20:43 +00:00
AlertRuleFactory.php feat(alerts): Monitoring cluster + v1 resources (spec 099) (#121) 2026-02-18 15:20:43 +00:00
BackupItemFactory.php feat/004-assignments-scope-tags (#4) 2025-12-23 21:49:58 +00:00
BackupSetFactory.php feat/004-assignments-scope-tags (#4) 2025-12-23 21:49:58 +00:00
BaselineProfileFactory.php Spec 118: Resumable baseline evidence capture + snapshot UX (#143) 2026-03-04 22:34:13 +00:00
BaselineSnapshotFactory.php Baseline governance UX polish + view Infolist (#123) 2026-02-19 23:56:09 +00:00
BaselineSnapshotItemFactory.php Spec 118: Resumable baseline evidence capture + snapshot UX (#143) 2026-03-04 22:34:13 +00:00
BaselineTenantAssignmentFactory.php Baseline governance UX polish + view Infolist (#123) 2026-02-19 23:56:09 +00:00
EntraGroupFactory.php 051-entra-group-directory-cache (#57) 2026-01-11 23:24:12 +00:00
EntraRoleDefinitionFactory.php 085-tenant-operate-hub (#103) 2026-02-11 13:02:03 +00:00
FindingFactory.php feat(111): findings workflow + SLA settings (#135) 2026-02-25 01:48:01 +00:00
InventoryItemFactory.php feat(spec-087): remove legacy runs (#106) 2026-02-12 12:40:51 +00:00
InventoryLinkFactory.php feat/042-inventory-dependencies-graph (#49) 2026-01-10 00:20:14 +00:00
OperationRunFactory.php 073-unified-managed-tenant-onboarding-wizard (#90) 2026-02-04 23:30:55 +00:00
PlatformUserFactory.php feat: implement auth structure system panel (#77) 2026-01-27 21:49:18 +00:00
PolicyFactory.php feat/005-bulk-operations (#5) 2025-12-25 13:32:36 +00:00
PolicyVersionFactory.php Spec 118: Resumable baseline evidence capture + snapshot UX (#143) 2026-03-04 22:34:13 +00:00
ProviderConnectionFactory.php 073-unified-managed-tenant-onboarding-wizard (#90) 2026-02-04 23:30:55 +00:00
ProviderCredentialFactory.php feat: unify provider connection actions and notifications (#73) 2026-01-25 01:01:37 +00:00
RestoreRunFactory.php feat/004-assignments-scope-tags (#4) 2025-12-23 21:49:58 +00:00
ReviewPackFactory.php Fix Review Pack generation UX + notifications (#133) 2026-02-23 19:42:52 +00:00
StoredReportFactory.php feat(104): Provider Permission Posture (#127) 2026-02-21 22:32:52 +00:00
TenantFactory.php feat: provider access hardening (RBAC write gate) (#132) 2026-02-23 00:49:37 +00:00
TenantSettingFactory.php Settings foundation: workspace controls (#119) 2026-02-16 01:11:24 +00:00
UserFactory.php Initial commit from Specify template 2025-12-10 22:27:21 +01:00
VerificationCheckAcknowledgementFactory.php Spec 119: Drift cutover to Baseline Compare (golden master) (#144) 2026-03-06 14:30:49 +00:00
WorkspaceFactory.php feat: workspace context enforcement (specs 070–072) (#85) 2026-02-02 10:07:41 +00:00
WorkspaceMembershipFactory.php feat: workspace context enforcement (specs 070–072) (#85) 2026-02-02 10:07:41 +00:00
WorkspaceSettingFactory.php Settings foundation: workspace controls (#119) 2026-02-16 01:11:24 +00:00