TenantAtlas/app/Support/Baselines/BaselineFullContentRolloutGate.php
Ahmed Darrazi 39fd8ca1ea feat(spec-119): baseline compare drift cutover
- Enrich drift findings evidence_jsonb for diff UX (summary.kind, refs, fidelity, provenance)

- Add baseline policy version resolver and contract asserts

- Remove legacy drift generator + DriftLanding surfaces

- Add one-time cleanup migration for legacy drift findings

- Scope baseline capture/landing warnings to latest inventory sync

- Canonicalize compliance scheduledActionsForRule drift signal
2026-03-06 15:22:42 +01:00

23 lines
486 B
PHP

<?php
declare(strict_types=1);
namespace App\Support\Baselines;
use RuntimeException;
final class BaselineFullContentRolloutGate
{
public function enabled(): bool
{
return (bool) config('tenantpilot.baselines.full_content_capture.enabled', false);
}
public function assertEnabled(): void
{
if (! $this->enabled()) {
throw new RuntimeException('Baseline full-content capture is disabled by rollout configuration.');
}
}
}