TenantAtlas/app/Support/Verification
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
..
BlockedVerificationReportFactory.php feat(verification): unify verification surfaces (Spec 084) (#102) 2026-02-09 11:28:09 +00:00
PreviousVerificationReportResolver.php Spec 119: Drift cutover to Baseline Compare (golden master) (#144) 2026-03-06 14:30:49 +00:00
StaleQueuedVerificationReportFactory.php 085-tenant-operate-hub (#103) 2026-02-11 13:02:03 +00:00
TenantPermissionCheckClusters.php Spec 081: Provider connection cutover (#98) 2026-02-08 11:28:51 +00:00
VerificationCheckSeverity.php feat: verification report framework (074) (#89) 2026-02-03 23:58:17 +00:00
VerificationCheckStatus.php feat: verification report framework (074) (#89) 2026-02-03 23:58:17 +00:00
VerificationReportFingerprint.php Spec 075: Verification Checklist Framework V1.5 (fingerprint + acknowledgements) (#93) 2026-02-05 21:44:19 +00:00
VerificationReportOverall.php feat: verification report framework (074) (#89) 2026-02-03 23:58:17 +00:00
VerificationReportSanitizer.php fix(onboarding): preserve workspace scope and consent flow (#117) 2026-02-15 22:27:55 +00:00
VerificationReportSchema.php Spec 075: Verification Checklist Framework V1.5 (fingerprint + acknowledgements) (#93) 2026-02-05 21:44:19 +00:00
VerificationReportWriter.php Spec 081: Provider connection cutover (#98) 2026-02-08 11:28:51 +00:00