TenantAtlas/tests/Feature/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
..
BlockedVerificationReportStubTest.php feat(verification): unify verification surfaces (Spec 084) (#102) 2026-02-09 11:28:09 +00:00
PreviousVerificationReportResolverTest.php Spec 119: Drift cutover to Baseline Compare (golden master) (#144) 2026-03-06 14:30:49 +00:00
ProviderConnectionHealthCheckWritesReportTest.php Spec 081: Provider connection cutover (#98) 2026-02-08 11:28:51 +00:00
VerificationAuthorizationTest.php Spec 081: Provider connection cutover (#98) 2026-02-08 11:28:51 +00:00
VerificationCheckAcknowledgementTest.php Spec 075: Verification Checklist Framework V1.5 (fingerprint + acknowledgements) (#93) 2026-02-05 21:44:19 +00:00
VerificationReportFingerprintTest.php Spec 119: Drift cutover to Baseline Compare (golden master) (#144) 2026-03-06 14:30:49 +00:00
VerificationReportMissingOrMalformedTest.php Spec 078: Operations tenantless canonical detail (#95) 2026-02-07 09:07:26 +00:00
VerificationReportNextStepsSchemaSpec081Test.php Spec 081: Provider connection cutover (#98) 2026-02-08 11:28:51 +00:00
VerificationReportRedactionTest.php Spec 078: Operations tenantless canonical detail (#95) 2026-02-07 09:07:26 +00:00
VerificationReportViewerDbOnlyTest.php Spec 078: Operations tenantless canonical detail (#95) 2026-02-07 09:07:26 +00:00
VerificationStartAfterCompletionTest.php Spec 081: Provider connection cutover (#98) 2026-02-08 11:28:51 +00:00
VerificationStartDedupeTest.php feat(spec-088): remove tenant graphOptions legacy path (#105) 2026-02-12 10:14:44 +00:00